feat(web): use timeline in geolocation manager (#21492)
This commit is contained in:
@@ -53,6 +53,12 @@ export class TimeBucketDto {
|
||||
description: 'Filter by asset visibility status (ARCHIVE, TIMELINE, HIDDEN, LOCKED)',
|
||||
})
|
||||
visibility?: AssetVisibility;
|
||||
|
||||
@ValidateBoolean({
|
||||
optional: true,
|
||||
description: 'Include location data in the response',
|
||||
})
|
||||
withCoordinates?: boolean;
|
||||
}
|
||||
|
||||
export class TimeBucketAssetDto extends TimeBucketDto {
|
||||
@@ -185,6 +191,22 @@ export class TimeBucketAssetResponseDto {
|
||||
description: 'Array of country names extracted from EXIF GPS data',
|
||||
})
|
||||
country!: (string | null)[];
|
||||
|
||||
@ApiProperty({
|
||||
type: 'array',
|
||||
required: false,
|
||||
items: { type: 'number', nullable: true },
|
||||
description: 'Array of latitude coordinates extracted from EXIF GPS data',
|
||||
})
|
||||
latitude!: number[];
|
||||
|
||||
@ApiProperty({
|
||||
type: 'array',
|
||||
required: false,
|
||||
items: { type: 'number', nullable: true },
|
||||
description: 'Array of longitude coordinates extracted from EXIF GPS data',
|
||||
})
|
||||
longitude!: number[];
|
||||
}
|
||||
|
||||
export class TimeBucketsResponseDto {
|
||||
|
||||
Reference in New Issue
Block a user