From fa8f49882f7ae3f627c87c4f0529acbdbe7ea3e0 Mon Sep 17 00:00:00 2001 From: Hana Worku Date: Tue, 6 Feb 2024 14:30:55 -0600 Subject: [PATCH] app-api tests passing --- services/app-api/src/testHelpers/gqlHelpers.ts | 2 ++ services/app-graphql/src/mutations/submitRate.graphql | 2 ++ services/app-graphql/src/schema.graphql | 1 + services/app-proto/src/health_plan_form_data.proto | 1 + .../src/common-code/proto/healthPlanFormDataProto/zodSchemas.ts | 1 + 5 files changed, 7 insertions(+) diff --git a/services/app-api/src/testHelpers/gqlHelpers.ts b/services/app-api/src/testHelpers/gqlHelpers.ts index e2f7cc706f..a775bfe2c0 100644 --- a/services/app-api/src/testHelpers/gqlHelpers.ts +++ b/services/app-api/src/testHelpers/gqlHelpers.ts @@ -262,6 +262,7 @@ const createAndUpdateTestHealthPlanPackage = async ( rateProgramIDs: [ratePrograms.reverse()[0].id], actuaryContacts: [ { + id: '123-abc', name: 'test name', titleRole: 'test title', email: 'email@example.com', @@ -275,6 +276,7 @@ const createAndUpdateTestHealthPlanPackage = async ( ] draft.addtlActuaryContacts = [ { + id: '123-addtl-abv', name: 'test name', titleRole: 'test title', email: 'email@example.com', diff --git a/services/app-graphql/src/mutations/submitRate.graphql b/services/app-graphql/src/mutations/submitRate.graphql index 87a1be9562..96c3de8365 100644 --- a/services/app-graphql/src/mutations/submitRate.graphql +++ b/services/app-graphql/src/mutations/submitRate.graphql @@ -52,6 +52,7 @@ mutation submitRate($input: SubmitRateInput!) { rateProgramIDs, rateCertificationName, certifyingActuaryContacts { + id name titleRole email @@ -59,6 +60,7 @@ mutation submitRate($input: SubmitRateInput!) { actuarialFirmOther }, addtlActuaryContacts { + id name titleRole email diff --git a/services/app-graphql/src/schema.graphql b/services/app-graphql/src/schema.graphql index 16f4b2b6b4..f39f27b7c4 100644 --- a/services/app-graphql/src/schema.graphql +++ b/services/app-graphql/src/schema.graphql @@ -1023,6 +1023,7 @@ type ActuaryContact { "Contact information input for the certifying or additional state actuary" input ActuaryContactInput { + id: ID name: String titleRole: String email: String diff --git a/services/app-proto/src/health_plan_form_data.proto b/services/app-proto/src/health_plan_form_data.proto index adc552ccb2..33185706af 100644 --- a/services/app-proto/src/health_plan_form_data.proto +++ b/services/app-proto/src/health_plan_form_data.proto @@ -70,6 +70,7 @@ message Contact { optional string name = 1; optional string title_role = 2; optional string email = 3; + optional string id = 4; } // ContractInfo subtypes diff --git a/services/app-web/src/common-code/proto/healthPlanFormDataProto/zodSchemas.ts b/services/app-web/src/common-code/proto/healthPlanFormDataProto/zodSchemas.ts index 537498e3cb..466fe5adc1 100644 --- a/services/app-web/src/common-code/proto/healthPlanFormDataProto/zodSchemas.ts +++ b/services/app-web/src/common-code/proto/healthPlanFormDataProto/zodSchemas.ts @@ -96,6 +96,7 @@ const stateContactSchema = z.object({ }) const actuaryContactSchema = z.object({ + id: z.string().optional(), name: z.string().optional(), titleRole: z.string().optional(), email: z.string().optional(),