1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00
Files
immich/server/test/fixtures/user.stub.ts

59 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2025-04-10 15:53:21 +01:00
import { UserAdmin } from 'src/database';
2025-04-28 09:54:51 -04:00
import { UserStatus } from 'src/enum';
import { authStub } from 'test/fixtures/auth.stub';
export const userStub = {
2025-04-10 15:53:21 +01:00
admin: <UserAdmin>{
...authStub.admin.user,
2025-07-15 14:50:13 -04:00
status: UserStatus.Active,
profileChangedAt: new Date('2021-01-01'),
name: 'admin_name',
id: 'admin_id',
storageLabel: 'admin',
oauthId: '',
shouldChangePassword: false,
2025-04-28 09:54:51 -04:00
avatarColor: null,
profileImagePath: '',
createdAt: new Date('2021-01-01'),
deletedAt: null,
updatedAt: new Date('2021-01-01'),
metadata: [],
quotaSizeInBytes: null,
quotaUsageInBytes: 0,
2025-04-10 15:53:21 +01:00
},
user1: <UserAdmin>{
...authStub.user1.user,
2025-07-15 14:50:13 -04:00
status: UserStatus.Active,
profileChangedAt: new Date('2021-01-01'),
name: 'immich_name',
storageLabel: null,
oauthId: '',
shouldChangePassword: false,
2025-04-28 09:54:51 -04:00
avatarColor: null,
profileImagePath: '',
createdAt: new Date('2021-01-01'),
deletedAt: null,
updatedAt: new Date('2021-01-01'),
2025-04-28 09:54:51 -04:00
metadata: [],
quotaSizeInBytes: null,
quotaUsageInBytes: 0,
2025-04-10 15:53:21 +01:00
},
user2: <UserAdmin>{
...authStub.user2.user,
2025-07-15 14:50:13 -04:00
status: UserStatus.Active,
profileChangedAt: new Date('2021-01-01'),
metadata: [],
name: 'immich_name',
storageLabel: null,
oauthId: '',
shouldChangePassword: false,
2025-04-28 09:54:51 -04:00
avatarColor: null,
profileImagePath: '',
createdAt: new Date('2021-01-01'),
deletedAt: null,
updatedAt: new Date('2021-01-01'),
quotaSizeInBytes: null,
quotaUsageInBytes: 0,
2025-04-10 15:53:21 +01:00
},
};