Adapt web client to consume new server response format

This commit is contained in:
Min Idzelis
2025-04-29 13:45:40 +00:00
parent 077703adcc
commit bc5d4b45a6
17 changed files with 367 additions and 60 deletions

View File

@@ -13847,6 +13847,13 @@
},
"TimeBucketAssetResponseDto": {
"properties": {
"description": {
"default": [],
"items": {
"$ref": "#/components/schemas/TimelineAssetDescriptionDto"
},
"type": "array"
},
"duration": {
"default": [],
"items": {
@@ -13976,6 +13983,7 @@
}
},
"required": [
"description",
"duration",
"id",
"isArchived",
@@ -14023,6 +14031,23 @@
],
"type": "object"
},
"TimelineAssetDescriptionDto": {
"properties": {
"city": {
"nullable": true,
"type": "string"
},
"country": {
"nullable": true,
"type": "string"
}
},
"required": [
"city",
"country"
],
"type": "object"
},
"TimelineStackResponseDto": {
"properties": {
"assetCount": {

View File

@@ -1407,12 +1407,17 @@ export type TagBulkAssetsResponseDto = {
export type TagUpdateDto = {
color?: string | null;
};
export type TimelineAssetDescriptionDto = {
city: string | null;
country: string | null;
};
export type TimelineStackResponseDto = {
assetCount: number;
id: string;
primaryAssetId: string;
};
export type TimeBucketAssetResponseDto = {
description: TimelineAssetDescriptionDto[];
duration: (string | number)[];
id: string[];
isArchived: number[];