Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
import { faker } from '@faker-js/faker'
import { SERVER_NAME } from '../../../common/shared.js'
import { USER_PERMISSION, USER_ROLE } from '../constants/user.js'
import type { UserModel } from '../models/user.model.js'
export function generateUserTest(withId: boolean = true): Partial<UserModel> {
return {
...(withId && { id: -faker.number.int() }),
login: faker.internet.username(),
email: faker.internet.email(),
firstName: SERVER_NAME,
lastName: 'Testing',
role: USER_ROLE.USER,
isActive: true,
password: 'password',
applications: Object.values(USER_PERMISSION)
}
}