mirror of
https://github.com/immich-app/immich.git
synced 2025-09-29 15:33:36 -04:00
* chore(server): tidy up exif typeorm entity definition * chore(server): tidy up shared link typeorm entity definition * chore(server): tidy up smart info typeorm entity definition * chore(server): tidy up tag typeorm entity definition * ci: add job that checks typeorm migrations are correct and up-to-date
37 lines
687 B
TypeScript
37 lines
687 B
TypeScript
import { AssetEntity } from '@app/infra/db/entities';
|
|
|
|
export interface IExifExtractionProcessor {
|
|
/**
|
|
* The Asset entity that was saved in the database
|
|
*/
|
|
asset: AssetEntity;
|
|
|
|
/**
|
|
* Original file name
|
|
*/
|
|
fileName: string;
|
|
}
|
|
|
|
export interface IVideoLengthExtractionProcessor {
|
|
/**
|
|
* The Asset entity that was saved in the database
|
|
*/
|
|
asset: AssetEntity;
|
|
|
|
/**
|
|
* Original file name
|
|
*/
|
|
fileName: string;
|
|
}
|
|
|
|
export interface IReverseGeocodingProcessor {
|
|
assetId: string;
|
|
latitude: number;
|
|
longitude: number;
|
|
}
|
|
|
|
export type IMetadataExtractionJob =
|
|
| IExifExtractionProcessor
|
|
| IVideoLengthExtractionProcessor
|
|
| IReverseGeocodingProcessor;
|