refactor(server): view repository (#12755)

This commit is contained in:
Jason Rasmussen 2024-09-17 16:32:09 -04:00 committed by GitHub
parent f53e4721cf
commit 1e6ef5c9e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 159 additions and 166 deletions

View file

@ -0,0 +1,8 @@
import { AssetEntity } from 'src/entities/asset.entity';
export const IViewRepository = 'IViewRepository';
export interface IViewRepository {
getAssetsByOriginalPath(userId: string, partialPath: string): Promise<AssetEntity[]>;
getUniqueOriginalPaths(userId: string): Promise<string[]>;
}