From 026660da8cdf16306f22de1c1c52d62d690d337e Mon Sep 17 00:00:00 2001 From: Jack Bailey <81699395+JackBailey@users.noreply.github.com> Date: Wed, 31 Jan 2024 12:03:58 +0000 Subject: [PATCH] Update API docs --- backend/app/api/static/docs/swagger.json | 6 ++++++ docs/docs/api/openapi-2.0.json | 6 ++++++ frontend/lib/api/types/data-contracts.ts | 2 ++ 3 files changed, 14 insertions(+) diff --git a/backend/app/api/static/docs/swagger.json b/backend/app/api/static/docs/swagger.json index 2ff1295..4d54685 100644 --- a/backend/app/api/static/docs/swagger.json +++ b/backend/app/api/static/docs/swagger.json @@ -2408,6 +2408,9 @@ "parent": { "$ref": "#/definitions/repo.LocationSummary" }, + "totalPrice": { + "type": "number" + }, "updatedAt": { "type": "string" } @@ -2646,6 +2649,9 @@ }, "total": { "type": "integer" + }, + "totalPrice": { + "type": "number" } } }, diff --git a/docs/docs/api/openapi-2.0.json b/docs/docs/api/openapi-2.0.json index 2ff1295..4d54685 100644 --- a/docs/docs/api/openapi-2.0.json +++ b/docs/docs/api/openapi-2.0.json @@ -2408,6 +2408,9 @@ "parent": { "$ref": "#/definitions/repo.LocationSummary" }, + "totalPrice": { + "type": "number" + }, "updatedAt": { "type": "string" } @@ -2646,6 +2649,9 @@ }, "total": { "type": "integer" + }, + "totalPrice": { + "type": "number" } } }, diff --git a/frontend/lib/api/types/data-contracts.ts b/frontend/lib/api/types/data-contracts.ts index 67c4f9c..2fbf46b 100644 --- a/frontend/lib/api/types/data-contracts.ts +++ b/frontend/lib/api/types/data-contracts.ts @@ -221,6 +221,7 @@ export interface LocationOut { id: string; name: string; parent: LocationSummary; + totalPrice: number; updatedAt: Date | string; } @@ -318,6 +319,7 @@ export interface PaginationResultItemSummary { page: number; pageSize: number; total: number; + totalPrice: number; } export interface TotalsByOrganizer {