From 9b705e445076db9206bc7ee4b0a878372819de60 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 27 Mar 2024 22:27:26 -0500 Subject: [PATCH] chore(server): open-api memory lane number generation (#8314) chore(server): openaapi memory lane number generation --- mobile/openapi/doc/MemoryLaneResponseDto.md | Bin 535 -> 535 bytes .../lib/model/memory_lane_response_dto.dart | Bin 3369 -> 3375 bytes .../test/memory_lane_response_dto_test.dart | Bin 818 -> 818 bytes open-api/immich-openapi-specs.json | 2 +- server/src/dtos/asset-response.dto.ts | 3 +++ 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mobile/openapi/doc/MemoryLaneResponseDto.md b/mobile/openapi/doc/MemoryLaneResponseDto.md index 102c45f1617f36fc72163679dec3025d58a0e896..54d1a4769a4ad1c7c13840c3df60860776e0d6a9 100644 GIT binary patch delta 15 WcmbQvGM!~Z8Y6RNUdiN4#&rNFmIX%u delta 15 WcmbQvGM!~Z8Y6RFY3}4q#&rNFzy(YI diff --git a/mobile/openapi/lib/model/memory_lane_response_dto.dart b/mobile/openapi/lib/model/memory_lane_response_dto.dart index 4d6f86fb4752fe59981eaab8cc65e810903e363d..a0df079388335035505b2a33fc356dbef94810e2 100644 GIT binary patch delta 61 zcmZ1}wO(q23=?x^Udd*8rui)Dxrqf~i8-aI{%IkV1*tYbaXXEy;`}@vg(CIJ)Wo7< P$Mk%4O~uXk*}T{QjcpY9 delta 55 zcmZ24wNh$>3=?x+Y3^ourui(2K!#pHVo`CbhPq01R&jn_bdh>xDp0^NJzqVxR$X)R IQ#LO)01dkm^#A|> diff --git a/mobile/openapi/test/memory_lane_response_dto_test.dart b/mobile/openapi/test/memory_lane_response_dto_test.dart index 1106ee7d95fd347a19fd96c0dfb4dd6b2d804db5..4ed84f5ecd0564702f4d0e4a1e37334d5ddf9486 100644 GIT binary patch delta 15 WcmdnQwux=SStjPpypqWmn34c6xCR9P delta 15 WcmdnQwux=SStjPZ(%i`xn34c6;sy!; diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index 129b001a8d..c45914319f 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -8431,7 +8431,7 @@ "type": "string" }, "yearsAgo": { - "type": "number" + "type": "integer" } }, "required": [ diff --git a/server/src/dtos/asset-response.dto.ts b/server/src/dtos/asset-response.dto.ts index 59c9b90707..cf16a99a29 100644 --- a/server/src/dtos/asset-response.dto.ts +++ b/server/src/dtos/asset-response.dto.ts @@ -133,7 +133,10 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As export class MemoryLaneResponseDto { @ApiProperty({ deprecated: true }) title!: string; + + @ApiProperty({ type: 'integer' }) yearsAgo!: number; + assets!: AssetResponseDto[]; }