2023-03-02 21:47:08 -05:00
|
|
|
import { AlbumEntity, AssetEntity, UserEntity } from '@app/infra/db/entities';
|
|
|
|
|
|
|
|
|
|
export interface IAlbumJob {
|
|
|
|
|
album: AlbumEntity;
|
|
|
|
|
}
|
2023-02-25 09:12:03 -05:00
|
|
|
|
|
|
|
|
export interface IAssetJob {
|
|
|
|
|
asset: AssetEntity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IAssetUploadedJob {
|
|
|
|
|
asset: AssetEntity;
|
|
|
|
|
fileName: string;
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-02 21:47:08 -05:00
|
|
|
export interface IDeleteJob {
|
|
|
|
|
id: string;
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-25 09:12:03 -05:00
|
|
|
export interface IDeleteFilesJob {
|
|
|
|
|
files: Array<string | null | undefined>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IUserDeletionJob {
|
|
|
|
|
user: UserEntity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IReverseGeocodingJob {
|
|
|
|
|
assetId: string;
|
|
|
|
|
latitude: number;
|
|
|
|
|
longitude: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IMetadataExtractionJob = IAssetUploadedJob | IReverseGeocodingJob;
|