2023-08-01 03:28:07 +02:00
|
|
|
import { SearchResult } from '@app/domain';
|
2023-12-18 03:16:08 +01:00
|
|
|
import { AssetEntity, ExifEntity, SmartInfoEntity } from '@app/infra/entities';
|
2023-09-11 17:56:38 +02:00
|
|
|
import { assetStub } from '.';
|
2023-08-01 03:28:07 +02:00
|
|
|
|
|
|
|
export const searchStub = {
|
|
|
|
emptyResults: Object.freeze<SearchResult<any>>({
|
|
|
|
total: 0,
|
|
|
|
count: 0,
|
|
|
|
page: 1,
|
|
|
|
items: [],
|
|
|
|
facets: [],
|
|
|
|
distances: [],
|
|
|
|
}),
|
2023-09-11 17:56:38 +02:00
|
|
|
|
|
|
|
withImage: Object.freeze<SearchResult<AssetEntity>>({
|
|
|
|
total: 1,
|
|
|
|
count: 1,
|
|
|
|
page: 1,
|
|
|
|
items: [assetStub.image],
|
|
|
|
facets: [],
|
|
|
|
distances: [],
|
|
|
|
}),
|
2023-12-18 03:16:08 +01:00
|
|
|
|
|
|
|
exif: Object.freeze<Partial<ExifEntity>>({
|
|
|
|
latitude: 90,
|
|
|
|
longitude: 90,
|
|
|
|
city: 'Immich',
|
|
|
|
state: 'Nebraska',
|
|
|
|
country: 'United States',
|
|
|
|
make: 'Canon',
|
|
|
|
model: 'EOS Rebel T7',
|
|
|
|
lensModel: 'Fancy lens',
|
|
|
|
}),
|
|
|
|
|
|
|
|
smartInfo: Object.freeze<Partial<SmartInfoEntity>>({ objects: ['car', 'tree'], tags: ['accident'] }),
|
2023-08-01 03:28:07 +02:00
|
|
|
};
|