removed stub search repo

This commit is contained in:
mertalev 2023-12-05 22:21:49 -05:00
parent 13d7222a72
commit 4bfbd2de4c
No known key found for this signature in database
GPG key ID: 9181CD92C0A1C5E3
5 changed files with 1 additions and 26 deletions

View file

@ -1,4 +1,4 @@
import { AssetEntity, AssetType } from '@app/infra/entities';
import { AssetType } from '@app/infra/entities';
export enum SearchStrategy {
CLIP = 'CLIP',
@ -54,9 +54,3 @@ export interface SearchExploreItem<T> {
fieldName: string;
items: SearchExploreItemSet<T>;
}
export const ISearchRepository = 'ISearchRepository';
export interface ISearchRepository {
explore(userId: string): Promise<SearchExploreItem<AssetEntity>[]>;
}

View file

@ -15,7 +15,6 @@ import {
IMoveRepository,
IPartnerRepository,
IPersonRepository,
ISearchRepository,
IServerInfoRepository,
ISharedLinkRepository,
ISmartInfoRepository,
@ -53,7 +52,6 @@ import {
MoveRepository,
PartnerRepository,
PersonRepository,
SearchRepository,
ServerInfoRepository,
SharedLinkRepository,
SmartInfoRepository,
@ -80,7 +78,6 @@ const providers: Provider[] = [
{ provide: IMoveRepository, useClass: MoveRepository },
{ provide: IPartnerRepository, useClass: PartnerRepository },
{ provide: IPersonRepository, useClass: PersonRepository },
{ provide: ISearchRepository, useClass: SearchRepository },
{ provide: IServerInfoRepository, useClass: ServerInfoRepository },
{ provide: ISharedLinkRepository, useClass: SharedLinkRepository },
{ provide: ISmartInfoRepository, useClass: SmartInfoRepository },

View file

@ -1,8 +0,0 @@
import { ISearchRepository, SearchExploreItem } from '@app/domain';
import { AssetEntity } from '../entities';
export class SearchRepository implements ISearchRepository {
async explore(): Promise<SearchExploreItem<AssetEntity>[]> {
return [];
}
}

View file

@ -13,7 +13,6 @@ export * from './metadata.repository.mock';
export * from './move.repository.mock';
export * from './partner.repository.mock';
export * from './person.repository.mock';
export * from './search.repository.mock';
export * from './shared-link.repository.mock';
export * from './smart-info.repository.mock';
export * from './storage.repository.mock';

View file

@ -1,7 +0,0 @@
import { ISearchRepository } from '@app/domain';
export const newSearchRepositoryMock = (): jest.Mocked<ISearchRepository> => {
return {
explore: jest.fn(),
};
};