All files / libs/kernel/testing/server/bed/src/test-utils/fixtures/amalia planAssignments.ts

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

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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 1261x 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 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 PlanAssignment } from '@amalia/core/models';
 
import { company } from './company';
import { plans } from './plans';
import { users } from './users';
 
export const planAssignments = [
  {
    id: '3672d375-39c0-423e-a1df-3e33db00b35e',
    planId: plans.planScopedOverwrites.id,
    userId: users.admin.id,
    plan: plans.planScopedOverwrites,
    user: users.admin,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
  {
    id: 'a21a03e1-a8a4-4eb2-b44e-b42b42b5c2c4',
    planId: plans.planScopedOverwrites.id,
    plan: plans.planScopedOverwrites,
    userId: users.employee1.id,
    user: users.employee1,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
  {
    id: '7cd8d604-437f-4858-b656-2666d14832be',
    planId: plans.planScopedOverwrites.id,
    plan: plans.planScopedOverwrites,
    userId: users.deactivatedAdmin.id,
    user: users.deactivatedAdmin,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
  {
    id: '81a3c42b-35eb-4e2b-911b-2dae9c28628f',
    planId: plans.planWithoutRules.id,
    plan: plans.planWithoutRules,
    userId: users.employee1.id,
    user: users.employee1,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
  {
    id: '81a3c42b-35eb-4e2b-911b-aaaaac28628f',
    planId: plans.anotherPlan.id,
    plan: plans.anotherPlan,
    userId: users.employee2.id,
    user: users.employee2,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
  {
    id: '8122c42b-35eb-4e2b-911b-aaaaac28628f',
    planId: plans.hiddenPlan.id,
    plan: plans.hiddenPlan,
    userId: users.employee2.id,
    user: users.employee2,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
  {
    id: '5ca49528-c306-4ee4-a7ca-08d1cdc7073d',
    planId: plans.planWithRule.id,
    plan: plans.planWithRule,
    userId: users.employee1.id,
    user: users.employee1,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
  {
    id: '64bb225f-f050-490c-ae2c-97940cdc3c6c',
    planId: plans.planWithRule.id,
    plan: plans.planWithRule,
    userId: users.deactivatedAdmin.id,
    user: users.deactivatedAdmin,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
  {
    id: '4f15b8ab-eef3-48b7-be57-80dee642164e',
    planId: plans.planToTestPlanAgreement.id,
    plan: plans.planToTestPlanAgreement,
    userId: users.admin.id,
    user: users.admin,
    company,
    createdAt: new Date(),
    updatedAt: new Date(),
    effectiveAsOf: null,
    effectiveUntil: null,
    mainTeamId: null,
  },
] as const satisfies PlanAssignment[];