* feat: libraries Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
47 lines
943 B
TypeScript
47 lines
943 B
TypeScript
import { BoundingBox } from '../smart-info';
|
|
|
|
export interface IBaseJob {
|
|
force?: boolean;
|
|
}
|
|
|
|
export interface IAssetFaceJob extends IBaseJob {
|
|
assetId: string;
|
|
personId: string;
|
|
}
|
|
|
|
export interface IFaceThumbnailJob extends IAssetFaceJob {
|
|
imageWidth: number;
|
|
imageHeight: number;
|
|
boundingBox: BoundingBox;
|
|
assetId: string;
|
|
personId: string;
|
|
}
|
|
|
|
export interface IEntityJob extends IBaseJob {
|
|
id: string;
|
|
source?: 'upload';
|
|
}
|
|
|
|
export interface IOfflineLibraryFileJob extends IEntityJob {
|
|
assetPath: string;
|
|
}
|
|
|
|
export interface ILibraryFileJob extends IEntityJob {
|
|
ownerId: string;
|
|
assetPath: string;
|
|
forceRefresh: boolean;
|
|
}
|
|
|
|
export interface ILibraryRefreshJob extends IEntityJob {
|
|
refreshModifiedFiles: boolean;
|
|
refreshAllFiles: boolean;
|
|
}
|
|
|
|
export interface IBulkEntityJob extends IBaseJob {
|
|
ids: string[];
|
|
}
|
|
|
|
export interface IDeleteFilesJob extends IBaseJob {
|
|
files: Array<string | null | undefined>;
|
|
}
|