mirror of
https://github.com/immich-app/immich.git
synced 2026-03-07 18:47:31 +03:00
feat: endpoint versioning (#23858)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Selectable } from 'kysely';
|
||||
import { AssetFace, AssetFile, Exif, Stack, Tag, User } from 'src/database';
|
||||
import { PropertyLifecycle } from 'src/decorators';
|
||||
import { HistoryBuilder, Property } from 'src/decorators';
|
||||
import { AuthDto } from 'src/dtos/auth.dto';
|
||||
import { ExifResponseDto, mapExif } from 'src/dtos/exif.dto';
|
||||
import {
|
||||
@@ -48,7 +48,7 @@ export class AssetResponseDto extends SanitizedAssetResponseDto {
|
||||
deviceId!: string;
|
||||
ownerId!: string;
|
||||
owner?: UserResponseDto;
|
||||
@PropertyLifecycle({ deprecatedAt: 'v1.106.0' })
|
||||
@Property({ history: new HistoryBuilder().added('v1').deprecated('v1') })
|
||||
libraryId?: string | null;
|
||||
originalPath!: string;
|
||||
originalFileName!: string;
|
||||
@@ -91,7 +91,7 @@ export class AssetResponseDto extends SanitizedAssetResponseDto {
|
||||
stack?: AssetStackResponseDto | null;
|
||||
duplicateId?: string | null;
|
||||
|
||||
@PropertyLifecycle({ deprecatedAt: 'v1.113.0' })
|
||||
@Property({ history: new HistoryBuilder().added('v1').deprecated('v1.113.0') })
|
||||
resized?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user