mirror of
https://github.com/immich-app/immich.git
synced 2024-11-24 08:52:28 +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:
parent
b1e780561d
commit
b3b599e071
BIN
mobile/openapi/lib/model/asset_response_dto.dart
generated
BIN
mobile/openapi/lib/model/asset_response_dto.dart
generated
Binary file not shown.
@ -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"
|
||||
},
|
||||
|
@ -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[];
|
||||
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user