import { UserAvatarColor, UserEntity } from '@app/infra/entities'; import { authStub } from './auth.stub'; export const userDto = { user1: { email: 'user1@immich.app', password: 'Password123', name: 'User 1', }, user2: { email: 'user2@immich.app', password: 'Password123', name: 'User 2', }, user3: { email: 'user3@immich.app', password: 'Password123', name: 'User 3', }, }; export const userStub = { admin: Object.freeze({ ...authStub.admin.user, password: 'admin_password', name: 'admin_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, avatarColor: UserAvatarColor.PRIMARY, }), user1: Object.freeze({ ...authStub.user1.user, password: 'immich_password', name: 'immich_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, avatarColor: UserAvatarColor.PRIMARY, }), user2: Object.freeze({ ...authStub.user2.user, password: 'immich_password', name: 'immich_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, avatarColor: UserAvatarColor.PRIMARY, }), storageLabel: Object.freeze({ ...authStub.user1.user, password: 'immich_password', name: 'immich_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, avatarColor: UserAvatarColor.PRIMARY, }), externalPath1: Object.freeze({ ...authStub.user1.user, password: 'immich_password', name: 'immich_name', storageLabel: 'label-1', externalPath: '/data/user1', oauthId: '', shouldChangePassword: false, profileImagePath: '', createdAt: new Date('2021-01-01'), deletedAt: null, updatedAt: new Date('2021-01-01'), tags: [], assets: [], memoriesEnabled: true, avatarColor: UserAvatarColor.PRIMARY, }), externalPath2: Object.freeze({ ...authStub.user1.user, password: 'immich_password', name: 'immich_name', storageLabel: 'label-1', externalPath: '/data/user2', oauthId: '', shouldChangePassword: false, profileImagePath: '', createdAt: new Date('2021-01-01'), deletedAt: null, updatedAt: new Date('2021-01-01'), tags: [], assets: [], memoriesEnabled: true, avatarColor: UserAvatarColor.PRIMARY, }), profilePath: Object.freeze({ ...authStub.user1.user, password: 'immich_password', name: 'immich_name', storageLabel: 'label-1', externalPath: null, oauthId: '', shouldChangePassword: false, profileImagePath: '/path/to/profile.jpg', createdAt: new Date('2021-01-01'), deletedAt: null, updatedAt: new Date('2021-01-01'), tags: [], assets: [], memoriesEnabled: true, avatarColor: UserAvatarColor.PRIMARY, }), };