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

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

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 741x 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 PlanAgreement } from '@amalia/core/models';
import { PlanAgreementConfirmationMethod, PlanAgreementStatus } from '@amalia/plan-agreements/types';
 
import { company } from './company';
import { plans } from './plans';
 
export const planAgreements = {
  planAgreementDraft1: {
    id: 'ea203cfa-e3cb-4df1-bf48-1d941b178bf1',
    confirmationMethod: PlanAgreementConfirmationMethod.IN_APP_CONFIRMATION,
    name: 'Plan Agreement Draft 1',
    plan: plans.planScopedOverwrites,
    status: PlanAgreementStatus.DRAFT,
    googleDocFolderId: '1234',
    externalGoogleDocId: 'externalGoogleDocId',
    internalGoogleDocId: 'internalGoogleDocId',
    year: 2023,
    assignments: [],
    companyId: company.id,
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  planAgreementDraft2: {
    id: '9ee7a00f-16a5-4ee4-b1d2-9c0c36e7bcba',
    confirmationMethod: PlanAgreementConfirmationMethod.IN_APP_CONFIRMATION,
    name: 'Plan Agreement Draft 2',
    status: PlanAgreementStatus.DRAFT,
    googleDocFolderId: '1234',
    assignments: [],
    companyId: company.id,
    createdAt: new Date(),
    updatedAt: new Date(),
    plan: null,
  },
  planAgreementDraft3: {
    id: '99aaf3ab-b150-41b2-a444-8f5cfdf882a1',
    confirmationMethod: PlanAgreementConfirmationMethod.IN_APP_CONFIRMATION,
    name: 'Plan Agreement Draft 3',
    status: PlanAgreementStatus.DRAFT,
    googleDocFolderId: '1234',
    plan: plans.planToTestPlanAgreement,
    year: 2023,
    assignments: [],
    companyId: company.id,
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  planAgreementDraftForDeletion: {
    id: 'be567a92-cc84-41ec-899c-f2438b7a0272',
    confirmationMethod: PlanAgreementConfirmationMethod.IN_APP_CONFIRMATION,
    name: 'Plan Agreement Draft For Deletion',
    status: PlanAgreementStatus.DRAFT,
    googleDocFolderId: '1234',
    assignments: [],
    companyId: company.id,
    createdAt: new Date(),
    updatedAt: new Date(),
    plan: null,
  },
  planAgreementFinalized: {
    id: 'd8d61985-1148-426f-983b-e9f14dc41c44',
    confirmationMethod: PlanAgreementConfirmationMethod.IN_APP_CONFIRMATION,
    name: 'Plan Agreement Finalized',
    status: PlanAgreementStatus.FINALIZED,
    googleDocFolderId: '1234',
    plan: plans.planToTestPlanAgreement,
    year: 2023,
    assignments: [],
    companyId: company.id,
    createdAt: new Date(),
    updatedAt: new Date(),
  },
} as const satisfies Record<string, PlanAgreement>;