fix: allow letters in insurance ID; add patient state (default MA)
- Backend insurance ID check now accepts letters + digits (BCBS IDs have a letter prefix), matching the frontend schema; create route validates the normalized body - Patient.state column (default "MA") with State select on the patient form; ADA claim form uses the patient's state instead of the office's - Rebuild stale packages/db compiled .js so the runtime schemas include new fields (state, office billing NPI fields, Telnyx settings) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,7 @@ export declare const CommunicationFindFirstOrThrowSelectZodSchema: z.ZodObject<{
|
||||
channel: z.ZodOptional<z.ZodBoolean>;
|
||||
direction: z.ZodOptional<z.ZodBoolean>;
|
||||
status: z.ZodOptional<z.ZodBoolean>;
|
||||
provider: z.ZodOptional<z.ZodBoolean>;
|
||||
body: z.ZodOptional<z.ZodBoolean>;
|
||||
callDuration: z.ZodOptional<z.ZodBoolean>;
|
||||
twilioSid: z.ZodOptional<z.ZodBoolean>;
|
||||
@@ -24,6 +25,7 @@ export declare const CommunicationFindFirstOrThrowSelectZodSchema: z.ZodObject<{
|
||||
user?: boolean | undefined;
|
||||
channel?: boolean | undefined;
|
||||
direction?: boolean | undefined;
|
||||
provider?: boolean | undefined;
|
||||
body?: boolean | undefined;
|
||||
callDuration?: boolean | undefined;
|
||||
twilioSid?: boolean | undefined;
|
||||
@@ -37,6 +39,7 @@ export declare const CommunicationFindFirstOrThrowSelectZodSchema: z.ZodObject<{
|
||||
user?: boolean | undefined;
|
||||
channel?: boolean | undefined;
|
||||
direction?: boolean | undefined;
|
||||
provider?: boolean | undefined;
|
||||
body?: boolean | undefined;
|
||||
callDuration?: boolean | undefined;
|
||||
twilioSid?: boolean | undefined;
|
||||
@@ -50,7 +53,7 @@ export declare const CommunicationFindFirstOrThrowZodSchema: z.ZodObject<{
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.CommunicationWhereUniqueInput, z.ZodTypeDef, Prisma.CommunicationWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "patientId", "userId", "channel", "direction", "status", "body", "callDuration", "twilioSid", "createdAt"]>, z.ZodArray<z.ZodEnum<["id", "patientId", "userId", "channel", "direction", "status", "body", "callDuration", "twilioSid", "createdAt"]>, "many">]>>;
|
||||
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "patientId", "userId", "channel", "direction", "status", "provider", "body", "callDuration", "twilioSid", "createdAt"]>, z.ZodArray<z.ZodEnum<["id", "patientId", "userId", "channel", "direction", "status", "provider", "body", "callDuration", "twilioSid", "createdAt"]>, "many">]>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.CommunicationWhereInput | undefined;
|
||||
include?: Prisma.CommunicationInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
|
||||
@@ -59,7 +62,7 @@ export declare const CommunicationFindFirstOrThrowZodSchema: z.ZodObject<{
|
||||
cursor?: Prisma.CommunicationWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
distinct?: "status" | "id" | "createdAt" | "patientId" | "userId" | "channel" | "direction" | "body" | "callDuration" | "twilioSid" | ("status" | "id" | "createdAt" | "patientId" | "userId" | "channel" | "direction" | "body" | "callDuration" | "twilioSid")[] | undefined;
|
||||
distinct?: "status" | "id" | "createdAt" | "patientId" | "userId" | "channel" | "direction" | "provider" | "body" | "callDuration" | "twilioSid" | ("status" | "id" | "createdAt" | "patientId" | "userId" | "channel" | "direction" | "provider" | "body" | "callDuration" | "twilioSid")[] | undefined;
|
||||
}, {
|
||||
where?: Prisma.CommunicationWhereInput | undefined;
|
||||
include?: Prisma.CommunicationInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
|
||||
@@ -68,6 +71,6 @@ export declare const CommunicationFindFirstOrThrowZodSchema: z.ZodObject<{
|
||||
cursor?: Prisma.CommunicationWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
distinct?: "status" | "id" | "createdAt" | "patientId" | "userId" | "channel" | "direction" | "body" | "callDuration" | "twilioSid" | ("status" | "id" | "createdAt" | "patientId" | "userId" | "channel" | "direction" | "body" | "callDuration" | "twilioSid")[] | undefined;
|
||||
distinct?: "status" | "id" | "createdAt" | "patientId" | "userId" | "channel" | "direction" | "provider" | "body" | "callDuration" | "twilioSid" | ("status" | "id" | "createdAt" | "patientId" | "userId" | "channel" | "direction" | "provider" | "body" | "callDuration" | "twilioSid")[] | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=findFirstOrThrowCommunication.schema.d.ts.map
|
||||
Reference in New Issue
Block a user