mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	* feat(web,server): user preference for time-based memories * chore: open api * dev: mobile * fix: update * mobile work --------- Co-authored-by: Alex <alex.tran1502@gmail.com> Co-authored-by: Alex Tran <Alex.Tran@conductix.com>
		
			
				
	
	
		
			74 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { UserEntity } from '@app/infra/entities';
 | 
						|
import { authStub } from './auth.stub';
 | 
						|
 | 
						|
export const userStub = {
 | 
						|
  admin: Object.freeze<UserEntity>({
 | 
						|
    ...authStub.admin,
 | 
						|
    password: 'admin_password',
 | 
						|
    firstName: 'admin_first_name',
 | 
						|
    lastName: 'admin_last_name',
 | 
						|
    storageLabel: 'admin',
 | 
						|
    externalPath: null,
 | 
						|
    oauthId: '',
 | 
						|
    shouldChangePassword: false,
 | 
						|
    profileImagePath: '',
 | 
						|
    createdAt: new Date('2021-01-01'),
 | 
						|
    deletedAt: null,
 | 
						|
    updatedAt: new Date('2021-01-01'),
 | 
						|
    tags: [],
 | 
						|
    assets: [],
 | 
						|
    memoriesEnabled: true,
 | 
						|
  }),
 | 
						|
  user1: Object.freeze<UserEntity>({
 | 
						|
    ...authStub.user1,
 | 
						|
    password: 'immich_password',
 | 
						|
    firstName: 'immich_first_name',
 | 
						|
    lastName: 'immich_last_name',
 | 
						|
    storageLabel: null,
 | 
						|
    externalPath: null,
 | 
						|
    oauthId: '',
 | 
						|
    shouldChangePassword: false,
 | 
						|
    profileImagePath: '',
 | 
						|
    createdAt: new Date('2021-01-01'),
 | 
						|
    deletedAt: null,
 | 
						|
    updatedAt: new Date('2021-01-01'),
 | 
						|
    tags: [],
 | 
						|
    assets: [],
 | 
						|
    memoriesEnabled: true,
 | 
						|
  }),
 | 
						|
  user2: Object.freeze<UserEntity>({
 | 
						|
    ...authStub.user2,
 | 
						|
    password: 'immich_password',
 | 
						|
    firstName: 'immich_first_name',
 | 
						|
    lastName: 'immich_last_name',
 | 
						|
    storageLabel: null,
 | 
						|
    externalPath: null,
 | 
						|
    oauthId: '',
 | 
						|
    shouldChangePassword: false,
 | 
						|
    profileImagePath: '',
 | 
						|
    createdAt: new Date('2021-01-01'),
 | 
						|
    deletedAt: null,
 | 
						|
    updatedAt: new Date('2021-01-01'),
 | 
						|
    tags: [],
 | 
						|
    assets: [],
 | 
						|
    memoriesEnabled: true,
 | 
						|
  }),
 | 
						|
  storageLabel: Object.freeze<UserEntity>({
 | 
						|
    ...authStub.user1,
 | 
						|
    password: 'immich_password',
 | 
						|
    firstName: 'immich_first_name',
 | 
						|
    lastName: 'immich_last_name',
 | 
						|
    storageLabel: 'label-1',
 | 
						|
    externalPath: null,
 | 
						|
    oauthId: '',
 | 
						|
    shouldChangePassword: false,
 | 
						|
    profileImagePath: '',
 | 
						|
    createdAt: new Date('2021-01-01'),
 | 
						|
    deletedAt: null,
 | 
						|
    updatedAt: new Date('2021-01-01'),
 | 
						|
    tags: [],
 | 
						|
    assets: [],
 | 
						|
    memoriesEnabled: true,
 | 
						|
  }),
 | 
						|
};
 |