All files / libs/kernel/testing/server/bed/src/test-utils/fixtures/abTasty users.ts

100% Statements 82/82
100% Branches 0/0
100% Functions 0/0
100% Lines 82/82

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 831x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import { USER_DEFAULT_SETTINGS, type User } from '@amalia/core/models';
import { CurrencySymbolsEnum } from '@amalia/ext/iso-4217';
import { LanguagesEnum } from '@amalia/kernel/intl/types';
import { UserExternalIdSource, UserHrisIdSource, UserRole, UserStatus } from '@amalia/tenants/users/types';
 
import { company } from './company';
 
export const users = {
  admin: {
    id: '0cb30c49-3796-4b44-8d18-ebee497bdef4',
    email: 'matthieu+api+abtasty+admin2@amalia.io',
    externalId: 'other_abtasty_extid',
    hrisId: 'other_abtasty_hrisid',
    firstName: 'Other',
    lastName: 'abtasty',
    role: UserRole.ADMIN,
    companyId: company.id,
    authToken: process.env['ADMIN_ABTASTY']!,
    externalIdSource: UserExternalIdSource.SALESFORCE,
    hrisIdSource: UserHrisIdSource.PERSONIO,
    currency: CurrencySymbolsEnum.USD,
    pictureURL: null,
    clearedAt: null,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    invitationSentAt: null,
    joinedAt: new Date(),
    language: LanguagesEnum.en,
    lastConnection: null,
    settings: USER_DEFAULT_SETTINGS,
    status: UserStatus.ACTIVE,
  },
  antoine: {
    id: '2528993a-2532-4225-8b59-88daa425751d',
    email: 'matthieu+api+abtasty+admin@amalia.io',
    firstName: 'Antoine',
    lastName: 'Faible',
    externalId: 'antoine_failble_extid',
    role: UserRole.ADMIN,
    currency: CurrencySymbolsEnum.USD,
    pictureURL: null,
    externalIdSource: UserExternalIdSource.OTHERSOURCE,
    clearedAt: null,
    company,
    companyId: company.id,
    createdAt: new Date(),
    updatedAt: new Date(),
    hrisId: null,
    hrisIdSource: UserHrisIdSource.NONE,
    invitationSentAt: null,
    joinedAt: null,
    language: LanguagesEnum.en,
    lastConnection: null,
    settings: USER_DEFAULT_SETTINGS,
    status: UserStatus.INACTIVE,
  },
  manager: {
    id: '2327993a-2532-4225-8b59-88daa425763e',
    email: 'deu+api+manager@amalia.io',
    firstName: 'Matthieu',
    lastName: 'REMY',
    externalId: '0056N000000pLEABdM',
    role: UserRole.MANAGER,
    currency: CurrencySymbolsEnum.USD,
    pictureURL: null,
    externalIdSource: UserExternalIdSource.OTHERSOURCE,
    clearedAt: null,
    company,
    companyId: company.id,
    createdAt: new Date(),
    updatedAt: new Date(),
    hrisId: null,
    hrisIdSource: UserHrisIdSource.NONE,
    invitationSentAt: null,
    joinedAt: null,
    language: LanguagesEnum.en,
    lastConnection: null,
    settings: USER_DEFAULT_SETTINGS,
    status: UserStatus.ACTIVE,
  },
} as const satisfies Record<string, User & { authToken?: string }>;