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

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

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 351x 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: 'a62a4cad-c90f-494b-8aa0-d23bc9490de2',
    email: 'matthieu+api+abtasty+salesforce+admin@amalia.io',
    firstName: 'admin',
    lastName: 'admin',
    role: UserRole.ADMIN,
    authToken: process.env['ADMIN_ABTASTY_SALESFORCE']!,
    pictureURL: null,
    externalId: null,
    externalIdSource: UserExternalIdSource.OTHERSOURCE,
    clearedAt: null,
    company,
    companyId: company.id,
    currency: CurrencySymbolsEnum.EUR,
    createdAt: new Date(),
    updatedAt: new Date(),
    hrisId: null,
    hrisIdSource: UserHrisIdSource.NONE,
    invitationSentAt: new Date(),
    joinedAt: null,
    language: LanguagesEnum.en,
    lastConnection: null,
    settings: USER_DEFAULT_SETTINGS,
    status: UserStatus.ACTIVE,
  },
} as const satisfies Record<string, User & { authToken?: string }>;