mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:39:03 -04:00 
			
		
		
		
	* don't require ml * update e2e * fixes * fix e2e * add additional conditions * select all exif columns * more fixes * update sql
		
			
				
	
	
		
			37 lines
		
	
	
		
			846 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			846 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { SearchResult } from '@app/domain';
 | |
| import { AssetEntity, ExifEntity, SmartInfoEntity } from '@app/infra/entities';
 | |
| import { assetStub } from '.';
 | |
| 
 | |
| export const searchStub = {
 | |
|   emptyResults: Object.freeze<SearchResult<any>>({
 | |
|     total: 0,
 | |
|     count: 0,
 | |
|     page: 1,
 | |
|     items: [],
 | |
|     facets: [],
 | |
|     distances: [],
 | |
|   }),
 | |
| 
 | |
|   withImage: Object.freeze<SearchResult<AssetEntity>>({
 | |
|     total: 1,
 | |
|     count: 1,
 | |
|     page: 1,
 | |
|     items: [assetStub.image],
 | |
|     facets: [],
 | |
|     distances: [],
 | |
|   }),
 | |
| 
 | |
|   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'] }),
 | |
| };
 |