mirror of
https://github.com/immich-app/immich.git
synced 2026-03-07 10:37:22 +03:00
feat: download original asset (#25302)
Co-authored-by: bwees <brandonwees@gmail.com>
This commit is contained in:
@@ -98,6 +98,8 @@ export class AssetResponseDto extends SanitizedAssetResponseDto {
|
||||
|
||||
@Property({ history: new HistoryBuilder().added('v1').deprecated('v1.113.0') })
|
||||
resized?: boolean;
|
||||
@Property({ history: new HistoryBuilder().added('v2.5.0').beta('v2.5.0') })
|
||||
isEdited!: boolean;
|
||||
}
|
||||
|
||||
export type MapAsset = {
|
||||
@@ -137,6 +139,7 @@ export type MapAsset = {
|
||||
type: AssetType;
|
||||
width: number | null;
|
||||
height: number | null;
|
||||
editCount: number;
|
||||
};
|
||||
|
||||
export class AssetStackResponseDto {
|
||||
@@ -245,5 +248,6 @@ export function mapAsset(entity: MapAsset, options: AssetMapOptions = {}): Asset
|
||||
resized: true,
|
||||
width: entity.width,
|
||||
height: entity.height,
|
||||
isEdited: entity.editCount > 0,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -121,6 +121,8 @@ export class SyncAssetV1 {
|
||||
width!: number | null;
|
||||
@ApiProperty({ type: 'integer' })
|
||||
height!: number | null;
|
||||
@ApiProperty({ type: 'integer' })
|
||||
editCount!: number;
|
||||
}
|
||||
|
||||
@ExtraModel()
|
||||
|
||||
Reference in New Issue
Block a user