1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

chore(server): deprecate resized property (#12143)

* chore: add dummy resized value for release

* openapi

* add deprecation life cycle info

* use correct default value
This commit is contained in:
Alex 2024-08-30 11:01:50 -05:00 committed by GitHub
parent b1e780561d
commit b3b599e071
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 0 deletions

Binary file not shown.

View File

@ -8395,6 +8395,11 @@
},
"type": "array"
},
"resized": {
"deprecated": true,
"description": "This property was deprecated in v1.113.0",
"type": "boolean"
},
"smartInfo": {
"$ref": "#/components/schemas/SmartInfoResponseDto"
},

View File

@ -261,6 +261,8 @@ export type AssetResponseDto = {
owner?: UserResponseDto;
ownerId: string;
people?: PersonWithFacesResponseDto[];
/** This property was deprecated in v1.113.0 */
resized?: boolean;
smartInfo?: SmartInfoResponseDto;
stack?: (AssetStackResponseDto) | null;
tags?: TagResponseDto[];

View File

@ -53,6 +53,9 @@ export class AssetResponseDto extends SanitizedAssetResponseDto {
checksum!: string;
stack?: AssetStackResponseDto | null;
duplicateId?: string | null;
@PropertyLifecycle({ deprecatedAt: 'v1.113.0' })
resized?: boolean;
}
export class AssetStackResponseDto {
@ -148,6 +151,7 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As
isOffline: entity.isOffline,
hasMetadata: true,
duplicateId: entity.duplicateId,
resized: true,
};
}