From 95aa03ac255fad0b198d792614608961d48a062f Mon Sep 17 00:00:00 2001 From: abouolia <2197422+abouolia@users.noreply.github.com> Date: Sun, 15 Mar 2026 19:30:03 +0000 Subject: [PATCH] chore(sdk): update OpenAPI spec and generated types --- shared/sdk-ts/openapi.json | 71 +++++++++++++++++++++++++++++++++++++ shared/sdk-ts/src/schema.ts | 66 ++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) diff --git a/shared/sdk-ts/openapi.json b/shared/sdk-ts/openapi.json index f000507bd..d84f90d9e 100644 --- a/shared/sdk-ts/openapi.json +++ b/shared/sdk-ts/openapi.json @@ -22955,6 +22955,52 @@ "Contacts" ] } + }, + "/api/exchange-rates/latest": { + "get": { + "operationId": "ExchangeRatesController_getLatestExchangeRate", + "summary": "Get the latest exchange rate", + "parameters": [ + { + "name": "from_currency", + "required": false, + "in": "query", + "description": "Source currency code (ISO 4217)", + "schema": { + "example": "USD", + "type": "string" + } + }, + { + "name": "to_currency", + "required": false, + "in": "query", + "description": "Target currency code (ISO 4217)", + "schema": { + "example": "EUR", + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Successfully retrieved exchange rate", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExchangeRateLatestResponseDto" + } + } + } + }, + "400": { + "description": "Invalid currency code or service error" + } + }, + "tags": [ + "Exchange Rates" + ] + } } }, "info": { @@ -38998,6 +39044,31 @@ "lastName", "password" ] + }, + "ExchangeRateLatestResponseDto": { + "type": "object", + "properties": { + "baseCurrency": { + "type": "string", + "description": "The base currency code", + "example": "USD" + }, + "toCurrency": { + "type": "string", + "description": "The target currency code", + "example": "EUR" + }, + "exchangeRate": { + "type": "number", + "description": "The exchange rate value", + "example": 0.85 + } + }, + "required": [ + "baseCurrency", + "toCurrency", + "exchangeRate" + ] } } } diff --git a/shared/sdk-ts/src/schema.ts b/shared/sdk-ts/src/schema.ts index 8c5290aeb..33338d61c 100644 --- a/shared/sdk-ts/src/schema.ts +++ b/shared/sdk-ts/src/schema.ts @@ -4643,6 +4643,23 @@ export interface paths { patch: operations["ContactsController_inactivateContact"]; trace?: never; }; + "/api/exchange-rates/latest": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Get the latest exchange rate */ + get: operations["ExchangeRatesController_getLatestExchangeRate"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; } export type webhooks = Record; export interface components { @@ -14155,6 +14172,23 @@ export interface components { */ password: string; }; + ExchangeRateLatestResponseDto: { + /** + * @description The base currency code + * @example USD + */ + baseCurrency: string; + /** + * @description The target currency code + * @example EUR + */ + toCurrency: string; + /** + * @description The exchange rate value + * @example 0.85 + */ + exchangeRate: number; + }; }; responses: never; parameters: never; @@ -28771,4 +28805,36 @@ export interface operations { }; }; }; + ExchangeRatesController_getLatestExchangeRate: { + parameters: { + query?: { + /** @description Source currency code (ISO 4217) */ + from_currency?: string; + /** @description Target currency code (ISO 4217) */ + to_currency?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successfully retrieved exchange rate */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ExchangeRateLatestResponseDto"]; + }; + }; + /** @description Invalid currency code or service error */ + 400: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + }; + }; }