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 | 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 { type Team, type TeamAssignment, type User } from '@amalia/core/models';
import { TeamRole } from '@amalia/tenants/assignments/teams/types';
export const makeSampleTeamAssignments = (
teams: Team[],
users: User[],
emailPrefix: string,
): Partial<TeamAssignment>[] => [
{
team: teams.find(({ name }) => name === 'Europe'),
user: users.find(({ email }) => email === `${emailPrefix}lewys+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'UK'),
user: users.find(({ email }) => email === `${emailPrefix}annette+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'France'),
user: users.find(({ email }) => email === `${emailPrefix}rachelle+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'France'),
user: users.find(({ email }) => email === `${emailPrefix}trevor+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'Germany'),
user: users.find(({ email }) => email === `${emailPrefix}jenny+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'Singapore'),
user: users.find(({ email }) => email === `${emailPrefix}darrell+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'USA'),
user: users.find(({ email }) => email === `${emailPrefix}floyd+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'France'),
user: users.find(({ email }) => email === `${emailPrefix}brooklyn+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'France'),
user: users.find(({ email }) => email === `${emailPrefix}theresa@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'USA'),
user: users.find(({ email }) => email === `${emailPrefix}ronald@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_EMPLOYEE,
},
{
team: teams.find(({ name }) => name === 'France'),
user: users.find(({ email }) => email === `${emailPrefix}lewys+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_MANAGER,
},
{
team: teams.find(({ name }) => name === 'UK'),
user: users.find(({ email }) => email === `${emailPrefix}dianne+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_MANAGER,
},
{
team: teams.find(({ name }) => name === 'USA'),
user: users.find(({ email }) => email === `${emailPrefix}marvin+salesforce@amalia.io`.toLowerCase()),
teamRole: TeamRole.TEAM_MANAGER,
},
];
|