mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-26 14:57:42 +00:00
* refactor: job to domain * chore: regenerate open api * chore: tests * fix: missing breaks * fix: get asset with missing exif data --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
38 lines
815 B
TypeScript
38 lines
815 B
TypeScript
import { AlbumEntity, AssetEntity, UserEntity } from '@app/infra/db/entities';
|
|
|
|
export interface IBaseJob {
|
|
force?: boolean;
|
|
}
|
|
|
|
export interface IAlbumJob extends IBaseJob {
|
|
album: AlbumEntity;
|
|
}
|
|
|
|
export interface IAssetJob extends IBaseJob {
|
|
asset: AssetEntity;
|
|
}
|
|
|
|
export interface IBulkEntityJob extends IBaseJob {
|
|
ids: string[];
|
|
}
|
|
|
|
export interface IAssetUploadedJob extends IBaseJob {
|
|
asset: AssetEntity;
|
|
fileName: string;
|
|
}
|
|
|
|
export interface IDeleteFilesJob extends IBaseJob {
|
|
files: Array<string | null | undefined>;
|
|
}
|
|
|
|
export interface IUserDeletionJob extends IBaseJob {
|
|
user: UserEntity;
|
|
}
|
|
|
|
export interface IReverseGeocodingJob extends IBaseJob {
|
|
assetId: string;
|
|
latitude: number;
|
|
longitude: number;
|
|
}
|
|
|
|
export type IMetadataExtractionJob = IAssetUploadedJob | IReverseGeocodingJob;
|