diff --git a/src/shared/api/generated/schema.d.ts b/src/shared/api/generated/schema.d.ts index a9a7864..897caf0 100644 --- a/src/shared/api/generated/schema.d.ts +++ b/src/shared/api/generated/schema.d.ts @@ -1232,6 +1232,12 @@ export interface components { data: components["schemas"]["IncomeAnalyticsDto"] | null; meta: components["schemas"]["IncomeAnalyticsMetaDto"]; }; + UpcomingEventsWindowDto: { + /** Format: date */ + from: string; + /** Format: date */ + to: string; + }; UpcomingEventDto: { account?: components["schemas"]["AccountReferenceDto"]; /** @enum {string} */ @@ -1252,6 +1258,8 @@ export interface components { accountId: string; /** Format: date-time */ calculatedAt: string; + /** @description Inclusive UTC window the saved forecast was calculated for. Unchanged by the requested from/to filter. */ + window: components["schemas"]["UpcomingEventsWindowDto"]; events: components["schemas"]["UpcomingEventDto"][]; incomeTotalsByCurrency: components["schemas"]["MoneyDto"][]; }; diff --git a/src/shared/api/spec/openapi.json b/src/shared/api/spec/openapi.json index d3881bd..b5b5e6c 100644 --- a/src/shared/api/spec/openapi.json +++ b/src/shared/api/spec/openapi.json @@ -7243,6 +7243,23 @@ "meta" ] }, + "UpcomingEventsWindowDto": { + "type": "object", + "properties": { + "from": { + "type": "string", + "format": "date" + }, + "to": { + "type": "string", + "format": "date" + } + }, + "required": [ + "from", + "to" + ] + }, "UpcomingEventDto": { "type": "object", "properties": { @@ -7324,6 +7341,14 @@ "type": "string", "format": "date-time" }, + "window": { + "description": "Inclusive UTC window the saved forecast was calculated for. Unchanged by the requested from/to filter.", + "allOf": [ + { + "$ref": "#/components/schemas/UpcomingEventsWindowDto" + } + ] + }, "events": { "type": "array", "items": { @@ -7340,6 +7365,7 @@ "required": [ "accountId", "calculatedAt", + "window", "events", "incomeTotalsByCurrency" ]