mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore!: remove without assets (#27835)
* chore!: remove without assets * fix: linting and e2e --------- Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
@@ -1956,15 +1956,6 @@
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "withoutAssets",
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"description": "Exclude assets from response",
|
||||
"schema": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -15305,12 +15296,6 @@
|
||||
"minimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"assets": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/AssetResponseDto"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"contributorCounts": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ContributorCountResponseDto"
|
||||
@@ -15378,7 +15363,6 @@
|
||||
"albumThumbnailAssetId",
|
||||
"albumUsers",
|
||||
"assetCount",
|
||||
"assets",
|
||||
"createdAt",
|
||||
"description",
|
||||
"hasSharedLink",
|
||||
|
||||
@@ -446,172 +446,6 @@ export type AlbumUserResponseDto = {
|
||||
role: AlbumUserRole;
|
||||
user: UserResponseDto;
|
||||
};
|
||||
export type ExifResponseDto = {
|
||||
/** City name */
|
||||
city?: string | null;
|
||||
/** Country name */
|
||||
country?: string | null;
|
||||
/** Original date/time */
|
||||
dateTimeOriginal?: string | null;
|
||||
/** Image description */
|
||||
description?: string | null;
|
||||
/** Image height in pixels */
|
||||
exifImageHeight?: number | null;
|
||||
/** Image width in pixels */
|
||||
exifImageWidth?: number | null;
|
||||
/** Exposure time */
|
||||
exposureTime?: string | null;
|
||||
/** F-number (aperture) */
|
||||
fNumber?: number | null;
|
||||
/** File size in bytes */
|
||||
fileSizeInByte?: number | null;
|
||||
/** Focal length in mm */
|
||||
focalLength?: number | null;
|
||||
/** ISO sensitivity */
|
||||
iso?: number | null;
|
||||
/** GPS latitude */
|
||||
latitude?: number | null;
|
||||
/** Lens model */
|
||||
lensModel?: string | null;
|
||||
/** GPS longitude */
|
||||
longitude?: number | null;
|
||||
/** Camera make */
|
||||
make?: string | null;
|
||||
/** Camera model */
|
||||
model?: string | null;
|
||||
/** Modification date/time */
|
||||
modifyDate?: string | null;
|
||||
/** Image orientation */
|
||||
orientation?: string | null;
|
||||
/** Projection type */
|
||||
projectionType?: string | null;
|
||||
/** Rating */
|
||||
rating?: number | null;
|
||||
/** State/province name */
|
||||
state?: string | null;
|
||||
/** Time zone */
|
||||
timeZone?: string | null;
|
||||
};
|
||||
export type AssetFaceWithoutPersonResponseDto = {
|
||||
/** Bounding box X1 coordinate */
|
||||
boundingBoxX1: number;
|
||||
/** Bounding box X2 coordinate */
|
||||
boundingBoxX2: number;
|
||||
/** Bounding box Y1 coordinate */
|
||||
boundingBoxY1: number;
|
||||
/** Bounding box Y2 coordinate */
|
||||
boundingBoxY2: number;
|
||||
/** Face ID */
|
||||
id: string;
|
||||
/** Image height in pixels */
|
||||
imageHeight: number;
|
||||
/** Image width in pixels */
|
||||
imageWidth: number;
|
||||
sourceType?: SourceType;
|
||||
};
|
||||
export type PersonWithFacesResponseDto = {
|
||||
/** Person date of birth */
|
||||
birthDate: string | null;
|
||||
/** Person color (hex) */
|
||||
color?: string;
|
||||
faces: AssetFaceWithoutPersonResponseDto[];
|
||||
/** Person ID */
|
||||
id: string;
|
||||
/** Is favorite */
|
||||
isFavorite?: boolean;
|
||||
/** Is hidden */
|
||||
isHidden: boolean;
|
||||
/** Person name */
|
||||
name: string;
|
||||
/** Thumbnail path */
|
||||
thumbnailPath: string;
|
||||
/** Last update date */
|
||||
updatedAt?: string;
|
||||
};
|
||||
export type AssetStackResponseDto = {
|
||||
/** Number of assets in stack */
|
||||
assetCount: number;
|
||||
/** Stack ID */
|
||||
id: string;
|
||||
/** Primary asset ID */
|
||||
primaryAssetId: string;
|
||||
};
|
||||
export type TagResponseDto = {
|
||||
/** Tag color (hex) */
|
||||
color?: string;
|
||||
/** Creation date */
|
||||
createdAt: string;
|
||||
/** Tag ID */
|
||||
id: string;
|
||||
/** Tag name */
|
||||
name: string;
|
||||
/** Parent tag ID */
|
||||
parentId?: string;
|
||||
/** Last update date */
|
||||
updatedAt: string;
|
||||
/** Tag value (full path) */
|
||||
value: string;
|
||||
};
|
||||
export type AssetResponseDto = {
|
||||
/** Base64 encoded SHA1 hash */
|
||||
checksum: string;
|
||||
/** The UTC timestamp when the asset was originally uploaded to Immich. */
|
||||
createdAt: string;
|
||||
/** Duplicate group ID */
|
||||
duplicateId?: string | null;
|
||||
/** Video duration (for videos) */
|
||||
duration: string;
|
||||
exifInfo?: ExifResponseDto;
|
||||
/** The actual UTC timestamp when the file was created/captured, preserving timezone information. This is the authoritative timestamp for chronological sorting within timeline groups. Combined with timezone data, this can be used to determine the exact moment the photo was taken. */
|
||||
fileCreatedAt: string;
|
||||
/** The UTC timestamp when the file was last modified on the filesystem. This reflects the last time the physical file was changed, which may be different from when the photo was originally taken. */
|
||||
fileModifiedAt: string;
|
||||
/** Whether asset has metadata */
|
||||
hasMetadata: boolean;
|
||||
/** Asset height */
|
||||
height: number | null;
|
||||
/** Asset ID */
|
||||
id: string;
|
||||
/** Is archived */
|
||||
isArchived: boolean;
|
||||
/** Is edited */
|
||||
isEdited: boolean;
|
||||
/** Is favorite */
|
||||
isFavorite: boolean;
|
||||
/** Is offline */
|
||||
isOffline: boolean;
|
||||
/** Is trashed */
|
||||
isTrashed: boolean;
|
||||
/** Library ID */
|
||||
libraryId?: string | null;
|
||||
/** Live photo video ID */
|
||||
livePhotoVideoId?: string | null;
|
||||
/** The local date and time when the photo/video was taken, derived from EXIF metadata. This represents the photographer's local time regardless of timezone, stored as a timezone-agnostic timestamp. Used for timeline grouping by "local" days and months. */
|
||||
localDateTime: string;
|
||||
/** Original file name */
|
||||
originalFileName: string;
|
||||
/** Original MIME type */
|
||||
originalMimeType?: string;
|
||||
/** Original file path */
|
||||
originalPath: string;
|
||||
owner?: UserResponseDto;
|
||||
/** Owner user ID */
|
||||
ownerId: string;
|
||||
people?: PersonWithFacesResponseDto[];
|
||||
/** Is resized */
|
||||
resized?: boolean;
|
||||
stack?: (AssetStackResponseDto) | null;
|
||||
tags?: TagResponseDto[];
|
||||
/** Thumbhash for thumbnail generation (base64) also used as the c query param for thumbnail cache busting. */
|
||||
thumbhash: string | null;
|
||||
"type": AssetTypeEnum;
|
||||
unassignedFaces?: AssetFaceWithoutPersonResponseDto[];
|
||||
/** The UTC timestamp when the asset record was last updated in the database. This is automatically maintained by the database and reflects when any field in the asset was last modified. */
|
||||
updatedAt: string;
|
||||
visibility: AssetVisibility;
|
||||
/** Asset width */
|
||||
width: number | null;
|
||||
};
|
||||
export type ContributorCountResponseDto = {
|
||||
/** Number of assets contributed */
|
||||
assetCount: number;
|
||||
@@ -626,7 +460,6 @@ export type AlbumResponseDto = {
|
||||
albumUsers: AlbumUserResponseDto[];
|
||||
/** Number of assets */
|
||||
assetCount: number;
|
||||
assets: AssetResponseDto[];
|
||||
contributorCounts?: ContributorCountResponseDto[];
|
||||
/** Creation date */
|
||||
createdAt: string;
|
||||
@@ -910,6 +743,172 @@ export type AssetMetadataBulkResponseDto = {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
export type ExifResponseDto = {
|
||||
/** City name */
|
||||
city?: string | null;
|
||||
/** Country name */
|
||||
country?: string | null;
|
||||
/** Original date/time */
|
||||
dateTimeOriginal?: string | null;
|
||||
/** Image description */
|
||||
description?: string | null;
|
||||
/** Image height in pixels */
|
||||
exifImageHeight?: number | null;
|
||||
/** Image width in pixels */
|
||||
exifImageWidth?: number | null;
|
||||
/** Exposure time */
|
||||
exposureTime?: string | null;
|
||||
/** F-number (aperture) */
|
||||
fNumber?: number | null;
|
||||
/** File size in bytes */
|
||||
fileSizeInByte?: number | null;
|
||||
/** Focal length in mm */
|
||||
focalLength?: number | null;
|
||||
/** ISO sensitivity */
|
||||
iso?: number | null;
|
||||
/** GPS latitude */
|
||||
latitude?: number | null;
|
||||
/** Lens model */
|
||||
lensModel?: string | null;
|
||||
/** GPS longitude */
|
||||
longitude?: number | null;
|
||||
/** Camera make */
|
||||
make?: string | null;
|
||||
/** Camera model */
|
||||
model?: string | null;
|
||||
/** Modification date/time */
|
||||
modifyDate?: string | null;
|
||||
/** Image orientation */
|
||||
orientation?: string | null;
|
||||
/** Projection type */
|
||||
projectionType?: string | null;
|
||||
/** Rating */
|
||||
rating?: number | null;
|
||||
/** State/province name */
|
||||
state?: string | null;
|
||||
/** Time zone */
|
||||
timeZone?: string | null;
|
||||
};
|
||||
export type AssetFaceWithoutPersonResponseDto = {
|
||||
/** Bounding box X1 coordinate */
|
||||
boundingBoxX1: number;
|
||||
/** Bounding box X2 coordinate */
|
||||
boundingBoxX2: number;
|
||||
/** Bounding box Y1 coordinate */
|
||||
boundingBoxY1: number;
|
||||
/** Bounding box Y2 coordinate */
|
||||
boundingBoxY2: number;
|
||||
/** Face ID */
|
||||
id: string;
|
||||
/** Image height in pixels */
|
||||
imageHeight: number;
|
||||
/** Image width in pixels */
|
||||
imageWidth: number;
|
||||
sourceType?: SourceType;
|
||||
};
|
||||
export type PersonWithFacesResponseDto = {
|
||||
/** Person date of birth */
|
||||
birthDate: string | null;
|
||||
/** Person color (hex) */
|
||||
color?: string;
|
||||
faces: AssetFaceWithoutPersonResponseDto[];
|
||||
/** Person ID */
|
||||
id: string;
|
||||
/** Is favorite */
|
||||
isFavorite?: boolean;
|
||||
/** Is hidden */
|
||||
isHidden: boolean;
|
||||
/** Person name */
|
||||
name: string;
|
||||
/** Thumbnail path */
|
||||
thumbnailPath: string;
|
||||
/** Last update date */
|
||||
updatedAt?: string;
|
||||
};
|
||||
export type AssetStackResponseDto = {
|
||||
/** Number of assets in stack */
|
||||
assetCount: number;
|
||||
/** Stack ID */
|
||||
id: string;
|
||||
/** Primary asset ID */
|
||||
primaryAssetId: string;
|
||||
};
|
||||
export type TagResponseDto = {
|
||||
/** Tag color (hex) */
|
||||
color?: string;
|
||||
/** Creation date */
|
||||
createdAt: string;
|
||||
/** Tag ID */
|
||||
id: string;
|
||||
/** Tag name */
|
||||
name: string;
|
||||
/** Parent tag ID */
|
||||
parentId?: string;
|
||||
/** Last update date */
|
||||
updatedAt: string;
|
||||
/** Tag value (full path) */
|
||||
value: string;
|
||||
};
|
||||
export type AssetResponseDto = {
|
||||
/** Base64 encoded SHA1 hash */
|
||||
checksum: string;
|
||||
/** The UTC timestamp when the asset was originally uploaded to Immich. */
|
||||
createdAt: string;
|
||||
/** Duplicate group ID */
|
||||
duplicateId?: string | null;
|
||||
/** Video duration (for videos) */
|
||||
duration: string;
|
||||
exifInfo?: ExifResponseDto;
|
||||
/** The actual UTC timestamp when the file was created/captured, preserving timezone information. This is the authoritative timestamp for chronological sorting within timeline groups. Combined with timezone data, this can be used to determine the exact moment the photo was taken. */
|
||||
fileCreatedAt: string;
|
||||
/** The UTC timestamp when the file was last modified on the filesystem. This reflects the last time the physical file was changed, which may be different from when the photo was originally taken. */
|
||||
fileModifiedAt: string;
|
||||
/** Whether asset has metadata */
|
||||
hasMetadata: boolean;
|
||||
/** Asset height */
|
||||
height: number | null;
|
||||
/** Asset ID */
|
||||
id: string;
|
||||
/** Is archived */
|
||||
isArchived: boolean;
|
||||
/** Is edited */
|
||||
isEdited: boolean;
|
||||
/** Is favorite */
|
||||
isFavorite: boolean;
|
||||
/** Is offline */
|
||||
isOffline: boolean;
|
||||
/** Is trashed */
|
||||
isTrashed: boolean;
|
||||
/** Library ID */
|
||||
libraryId?: string | null;
|
||||
/** Live photo video ID */
|
||||
livePhotoVideoId?: string | null;
|
||||
/** The local date and time when the photo/video was taken, derived from EXIF metadata. This represents the photographer's local time regardless of timezone, stored as a timezone-agnostic timestamp. Used for timeline grouping by "local" days and months. */
|
||||
localDateTime: string;
|
||||
/** Original file name */
|
||||
originalFileName: string;
|
||||
/** Original MIME type */
|
||||
originalMimeType?: string;
|
||||
/** Original file path */
|
||||
originalPath: string;
|
||||
owner?: UserResponseDto;
|
||||
/** Owner user ID */
|
||||
ownerId: string;
|
||||
people?: PersonWithFacesResponseDto[];
|
||||
/** Is resized */
|
||||
resized?: boolean;
|
||||
stack?: (AssetStackResponseDto) | null;
|
||||
tags?: TagResponseDto[];
|
||||
/** Thumbhash for thumbnail generation (base64) also used as the c query param for thumbnail cache busting. */
|
||||
thumbhash: string | null;
|
||||
"type": AssetTypeEnum;
|
||||
unassignedFaces?: AssetFaceWithoutPersonResponseDto[];
|
||||
/** The UTC timestamp when the asset record was last updated in the database. This is automatically maintained by the database and reflects when any field in the asset was last modified. */
|
||||
updatedAt: string;
|
||||
visibility: AssetVisibility;
|
||||
/** Asset width */
|
||||
width: number | null;
|
||||
};
|
||||
export type UpdateAssetDto = {
|
||||
/** Original date and time */
|
||||
dateTimeOriginal?: string;
|
||||
@@ -3668,19 +3667,17 @@ export function deleteAlbum({ id }: {
|
||||
/**
|
||||
* Retrieve an album
|
||||
*/
|
||||
export function getAlbumInfo({ id, key, slug, withoutAssets }: {
|
||||
export function getAlbumInfo({ id, key, slug }: {
|
||||
id: string;
|
||||
key?: string;
|
||||
slug?: string;
|
||||
withoutAssets?: boolean;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: AlbumResponseDto;
|
||||
}>(`/albums/${encodeURIComponent(id)}${QS.query(QS.explode({
|
||||
key,
|
||||
slug,
|
||||
withoutAssets
|
||||
slug
|
||||
}))}`, {
|
||||
...opts
|
||||
}));
|
||||
@@ -6729,17 +6726,6 @@ export enum AlbumUserRole {
|
||||
Editor = "editor",
|
||||
Viewer = "viewer"
|
||||
}
|
||||
export enum SourceType {
|
||||
MachineLearning = "machine-learning",
|
||||
Exif = "exif",
|
||||
Manual = "manual"
|
||||
}
|
||||
export enum AssetTypeEnum {
|
||||
Image = "IMAGE",
|
||||
Video = "VIDEO",
|
||||
Audio = "AUDIO",
|
||||
Other = "OTHER"
|
||||
}
|
||||
export enum BulkIdErrorReason {
|
||||
Duplicate = "duplicate",
|
||||
NoPermission = "no_permission",
|
||||
@@ -6923,6 +6909,17 @@ export enum AssetJobName {
|
||||
RegenerateThumbnail = "regenerate-thumbnail",
|
||||
TranscodeVideo = "transcode-video"
|
||||
}
|
||||
export enum SourceType {
|
||||
MachineLearning = "machine-learning",
|
||||
Exif = "exif",
|
||||
Manual = "manual"
|
||||
}
|
||||
export enum AssetTypeEnum {
|
||||
Image = "IMAGE",
|
||||
Video = "VIDEO",
|
||||
Audio = "AUDIO",
|
||||
Other = "OTHER"
|
||||
}
|
||||
export enum AssetEditAction {
|
||||
Crop = "crop",
|
||||
Rotate = "rotate",
|
||||
|
||||
Reference in New Issue
Block a user