2024-02-19 18:03:51 +01:00
|
|
|
export const uuidDto = {
|
|
|
|
invalid: 'invalid-uuid',
|
|
|
|
// valid uuid v4
|
|
|
|
notFound: '00000000-0000-4000-a000-000000000000',
|
|
|
|
};
|
|
|
|
|
|
|
|
const adminLoginDto = {
|
|
|
|
email: 'admin@immich.cloud',
|
|
|
|
password: 'password',
|
|
|
|
};
|
|
|
|
const adminSignupDto = { ...adminLoginDto, name: 'Immich Admin' };
|
|
|
|
|
|
|
|
export const loginDto = {
|
|
|
|
admin: adminLoginDto,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const signupDto = {
|
|
|
|
admin: adminSignupDto,
|
|
|
|
};
|
2024-02-20 04:34:18 +01:00
|
|
|
|
|
|
|
export const createUserDto = {
|
2024-03-09 18:51:58 +01:00
|
|
|
create(key: string) {
|
|
|
|
return {
|
|
|
|
email: `${key}@immich.cloud`,
|
2024-03-10 00:10:24 +01:00
|
|
|
name: `Generated User ${key}`,
|
2024-03-09 18:51:58 +01:00
|
|
|
password: `password-${key}`,
|
|
|
|
};
|
|
|
|
},
|
2024-02-20 04:34:18 +01:00
|
|
|
user1: {
|
|
|
|
email: 'user1@immich.cloud',
|
|
|
|
name: 'User 1',
|
|
|
|
password: 'password1',
|
|
|
|
},
|
|
|
|
user2: {
|
|
|
|
email: 'user2@immich.cloud',
|
|
|
|
name: 'User 2',
|
|
|
|
password: 'password12',
|
|
|
|
},
|
|
|
|
user3: {
|
|
|
|
email: 'user3@immich.cloud',
|
|
|
|
name: 'User 3',
|
|
|
|
password: 'password123',
|
|
|
|
},
|
2024-03-10 00:10:24 +01:00
|
|
|
user4: {
|
|
|
|
email: 'user4@immich.cloud',
|
|
|
|
name: 'User 4',
|
|
|
|
password: 'password123',
|
|
|
|
},
|
2024-03-09 18:51:58 +01:00
|
|
|
userQuota: {
|
|
|
|
email: 'user-quota@immich.cloud',
|
|
|
|
name: 'User Quota',
|
|
|
|
password: 'password-quota',
|
|
|
|
quotaSizeInBytes: 512,
|
|
|
|
},
|
2024-02-20 04:34:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export const userDto = {
|
|
|
|
admin: {
|
|
|
|
name: signupDto.admin.name,
|
|
|
|
email: signupDto.admin.email,
|
|
|
|
password: signupDto.admin.password,
|
|
|
|
storageLabel: 'admin',
|
|
|
|
oauthId: '',
|
|
|
|
shouldChangePassword: false,
|
|
|
|
profileImagePath: '',
|
|
|
|
createdAt: new Date('2021-01-01'),
|
|
|
|
deletedAt: null,
|
|
|
|
updatedAt: new Date('2021-01-01'),
|
|
|
|
tags: [],
|
|
|
|
assets: [],
|
|
|
|
quotaSizeInBytes: null,
|
|
|
|
quotaUsageInBytes: 0,
|
|
|
|
},
|
|
|
|
user1: {
|
|
|
|
name: createUserDto.user1.name,
|
|
|
|
email: createUserDto.user1.email,
|
|
|
|
password: createUserDto.user1.password,
|
|
|
|
storageLabel: null,
|
|
|
|
oauthId: '',
|
|
|
|
shouldChangePassword: false,
|
|
|
|
profileImagePath: '',
|
|
|
|
createdAt: new Date('2021-01-01'),
|
|
|
|
deletedAt: null,
|
|
|
|
updatedAt: new Date('2021-01-01'),
|
|
|
|
tags: [],
|
|
|
|
assets: [],
|
|
|
|
quotaSizeInBytes: null,
|
|
|
|
quotaUsageInBytes: 0,
|
|
|
|
},
|
|
|
|
};
|