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:
2026-10-08 23:29:27 -04:00
co-authored by Claude Opus 5.5
parent 2c0c595af5
commit 1abc2c705d
664 changed files with 6263 additions and 843 deletions
@@ -55,6 +55,10 @@ exports.OfficeContactFindFirstSelectSchema = z.object({
city: z.boolean().optional(),
state: z.boolean().optional(),
zipCode: z.boolean().optional(),
billingName: z.boolean().optional(),
billingNpi: z.boolean().optional(),
billingLicense: z.boolean().optional(),
billingTaxId: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
exports.OfficeContactFindFirstSelectZodSchema = z.object({
@@ -70,6 +74,10 @@ exports.OfficeContactFindFirstSelectZodSchema = z.object({
city: z.boolean().optional(),
state: z.boolean().optional(),
zipCode: z.boolean().optional(),
billingName: z.boolean().optional(),
billingNpi: z.boolean().optional(),
billingLicense: z.boolean().optional(),
billingTaxId: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
exports.OfficeContactFindFirstSchema = z.object({ select: exports.OfficeContactFindFirstSelectSchema.optional(), include: z.lazy(() => OfficeContactInclude_schema_1.OfficeContactIncludeObjectSchema.optional()), orderBy: z.union([OfficeContactOrderByWithRelationInput_schema_1.OfficeContactOrderByWithRelationInputObjectSchema, OfficeContactOrderByWithRelationInput_schema_1.OfficeContactOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeContactWhereInput_schema_1.OfficeContactWhereInputObjectSchema.optional(), cursor: OfficeContactWhereUniqueInput_schema_1.OfficeContactWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeContactScalarFieldEnum_schema_1.OfficeContactScalarFieldEnumSchema, OfficeContactScalarFieldEnum_schema_1.OfficeContactScalarFieldEnumSchema.array()]).optional() }).strict();