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; getAssetsByChecksums(userId: string, checksums: Buffer[]): Promise; } export const IAssetRepositoryV1 = 'IAssetRepositoryV1';