feat: asset copy (#23172)

This commit is contained in:
Daniel Dietzler
2025-10-29 14:43:47 +01:00
committed by GitHub
parent fdfb04d83c
commit 4ae7cadeae
20 changed files with 644 additions and 2 deletions

View File

@@ -186,6 +186,29 @@ export class AssetMetadataResponseDto {
updatedAt!: Date;
}
export class AssetCopyDto {
@ValidateUUID()
sourceId!: string;
@ValidateUUID()
targetId!: string;
@ValidateBoolean({ optional: true, default: true })
sharedLinks?: boolean;
@ValidateBoolean({ optional: true, default: true })
albums?: boolean;
@ValidateBoolean({ optional: true, default: true })
sidecar?: boolean;
@ValidateBoolean({ optional: true, default: true })
stack?: boolean;
@ValidateBoolean({ optional: true, default: true })
favorite?: boolean;
}
export const mapStats = (stats: AssetStats): AssetStatsResponseDto => {
return {
images: stats[AssetType.Image],