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 | 284x 284x 284x 284x 284x | import { z } from "zod";
import { attachmentArraySchema, attachmentArraySchemaOptional } from "../attachments";
import { sharedSchema } from "./base-schema";
export const medicaidSpaAttachments = z.object({
raiResponseLetter: z.object({
files: attachmentArraySchema(),
label: z.string().default("RAI Response Letter"),
}),
other: z.object({
files: attachmentArraySchemaOptional(),
label: z.string().default("Other"),
}),
});
export const waiverAttachments = z.object({
raiResponseLetterWaiver: z.object({
files: attachmentArraySchema(),
label: z.string().default("Waiver RAI Response Letter"),
}),
other: z.object({
files: attachmentArraySchemaOptional(),
label: z.string().default("Other"),
}),
});
export const chipSpaAttachments = z.object({
revisedAmendedStatePlanLanguage: z.object({
files: attachmentArraySchema(),
label: z.string().default("Revised Amended State Plan Language"),
}),
officialRAIResponse: z.object({
files: attachmentArraySchema(),
label: z.string().default("Official RAI Response"),
}),
budgetDocuments: z.object({
files: attachmentArraySchemaOptional(),
label: z.string().default("Budget Documents"),
}),
publicNotice: z.object({
files: attachmentArraySchemaOptional(),
label: z.string().default("Public Notice"),
}),
tribalConsultation: z.object({
files: attachmentArraySchemaOptional(),
label: z.string().default("Tribal Consultation"),
}),
other: z.object({
files: attachmentArraySchemaOptional(),
label: z.string().default("Other"),
}),
});
export const baseSchema = z.object({
event: z.literal("respond-to-rai").default("respond-to-rai"),
authority: z.string(),
actionType: z.string().optional(),
additionalInformation: z.string().max(4000).nullable().default(null),
attachments: chipSpaAttachments.or(waiverAttachments).or(medicaidSpaAttachments),
id: z.string(),
});
export const schema = baseSchema.merge(sharedSchema);
|