import { AssetSearchDto, CheckExistingAssetsDto } from 'src/dtos/asset-v1.dto'; 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; getAllByUserId(userId: string, dto: AssetSearchDto): Promise; getAssetsByChecksums(userId: string, checksums: Buffer[]): Promise; getExistingAssets(userId: string, checkDuplicateAssetDto: CheckExistingAssetsDto): Promise; getByOriginalPath(originalPath: string): Promise; } export const IAssetRepositoryV1 = 'IAssetRepositoryV1';