mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00: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
4 changed files with 11 additions and 0 deletions
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"
|
"type": "array"
|
||||||
},
|
},
|
||||||
|
"resized": {
|
||||||
|
"deprecated": true,
|
||||||
|
"description": "This property was deprecated in v1.113.0",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"smartInfo": {
|
"smartInfo": {
|
||||||
"$ref": "#/components/schemas/SmartInfoResponseDto"
|
"$ref": "#/components/schemas/SmartInfoResponseDto"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -261,6 +261,8 @@ export type AssetResponseDto = {
|
||||||
owner?: UserResponseDto;
|
owner?: UserResponseDto;
|
||||||
ownerId: string;
|
ownerId: string;
|
||||||
people?: PersonWithFacesResponseDto[];
|
people?: PersonWithFacesResponseDto[];
|
||||||
|
/** This property was deprecated in v1.113.0 */
|
||||||
|
resized?: boolean;
|
||||||
smartInfo?: SmartInfoResponseDto;
|
smartInfo?: SmartInfoResponseDto;
|
||||||
stack?: (AssetStackResponseDto) | null;
|
stack?: (AssetStackResponseDto) | null;
|
||||||
tags?: TagResponseDto[];
|
tags?: TagResponseDto[];
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,9 @@ export class AssetResponseDto extends SanitizedAssetResponseDto {
|
||||||
checksum!: string;
|
checksum!: string;
|
||||||
stack?: AssetStackResponseDto | null;
|
stack?: AssetStackResponseDto | null;
|
||||||
duplicateId?: string | null;
|
duplicateId?: string | null;
|
||||||
|
|
||||||
|
@PropertyLifecycle({ deprecatedAt: 'v1.113.0' })
|
||||||
|
resized?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class AssetStackResponseDto {
|
export class AssetStackResponseDto {
|
||||||
|
|
@ -148,6 +151,7 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As
|
||||||
isOffline: entity.isOffline,
|
isOffline: entity.isOffline,
|
||||||
hasMetadata: true,
|
hasMetadata: true,
|
||||||
duplicateId: entity.duplicateId,
|
duplicateId: entity.duplicateId,
|
||||||
|
resized: true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue