mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 20:25:32 -04:00
* Refactor controller methods, non-breaking change * Remove getAllAssets * used imports * sync:sql * missing mock * Removing remaining references * chore: remove unused code --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
18 lines
430 B
TypeScript
18 lines
430 B
TypeScript
import { AssetEntity } from 'src/entities/asset.entity';
|
|
|
|
export interface AssetCheck {
|
|
id: string;
|
|
checksum: Buffer;
|
|
}
|
|
|
|
export interface AssetOwnerCheck extends AssetCheck {
|
|
ownerId: string;
|
|
}
|
|
|
|
export interface IAssetRepositoryV1 {
|
|
get(id: string): Promise<AssetEntity | null>;
|
|
getAssetsByChecksums(userId: string, checksums: Buffer[]): Promise<AssetCheck[]>;
|
|
}
|
|
|
|
export const IAssetRepositoryV1 = 'IAssetRepositoryV1';
|