mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 09:30: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>
21 lines
808 B
TypeScript
21 lines
808 B
TypeScript
import type { UserResponseDto } from '@api';
|
|
import { faker } from '@faker-js/faker';
|
|
import { Sync } from 'factory.ts';
|
|
|
|
export const userFactory = Sync.makeFactory<UserResponseDto>({
|
|
id: Sync.each(() => faker.datatype.uuid()),
|
|
email: Sync.each(() => faker.internet.email()),
|
|
firstName: Sync.each(() => faker.name.firstName()),
|
|
lastName: Sync.each(() => faker.name.lastName()),
|
|
storageLabel: Sync.each(() => faker.random.alphaNumeric()),
|
|
externalPath: Sync.each(() => faker.random.alphaNumeric()),
|
|
profileImagePath: '',
|
|
shouldChangePassword: Sync.each(() => faker.datatype.boolean()),
|
|
isAdmin: true,
|
|
createdAt: Sync.each(() => faker.date.past().toISOString()),
|
|
deletedAt: null,
|
|
updatedAt: Sync.each(() => faker.date.past().toISOString()),
|
|
memoriesEnabled: true,
|
|
oauthId: '',
|
|
});
|