Skip to content

Commit

Permalink
add additional plan type and modify test form
Browse files Browse the repository at this point in the history
  • Loading branch information
13bfrancis committed Jan 22, 2024
1 parent 9ea8945 commit ae2c14d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/services/api/handlers/submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ export const submit = async (event: APIGatewayEvent) => {
});
}

const activeSubmissionTypes = [PlanType.CHIP_SPA, PlanType.MED_SPA];
const activeSubmissionTypes = [
PlanType.CHIP_SPA,
PlanType.MED_SPA,
PlanType["1915b"],
];
if (!activeSubmissionTypes.includes(body.authority)) {
return response({
statusCode: 400,
Expand Down
9 changes: 7 additions & 2 deletions src/services/ui/src/pages/form/1915b-waiver-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { formCrumbsFromPath } from "@/pages/form/form-breadcrumbs";
import { FAQ_TAB } from "@/components/Routing/consts";

const formSchema = z.object({
id: zSpaIdSchema,
id: z.string(),
additionalInformation: z.string().max(4000).optional(),
// attachments: z.object({
// cmsForm179: zAttachmentRequired({
Expand Down Expand Up @@ -73,8 +73,13 @@ export const WaiverForm1915B = () => {
const { setCancelModalOpen, setSuccessModalOpen } = useModalContext();
const handleSubmit: SubmitHandler<Waiver1915B> = async (formData) => {
try {
// AK-0260.R04.02
await submit<Waiver1915B>({
data: formData,
data: {
id: formData.id,
proposedEffectiveDate: new Date(),
additionalInformation: "testing",
},
endpoint: "/submit",
user,
authority: PlanType["1915b"],
Expand Down

0 comments on commit ae2c14d

Please sign in to comment.