Files
DentalManagement09/packages/db/shared/schemas/results/InsuranceCredentialGroupByResult.schema.ts
T
GiteadandClaude Opus 5.5 f5b91a75d4 feat: MassHealth eligibility on new portal with persistent session and Gmail OTP auto-read
- New MH eligibility worker for providers.masshealth-dental.org (same DentaQuest
  portal as Tufts SCO): persistent Chrome profile, OTP via app popup, member
  details PDF, address, service history, plan name and remaining benefit
- Reads the OTP from the office Gmail over IMAP (App Password) and types it in;
  falls back to the manual OTP popup
- Insurance credentials: OTP Email / Phone and OTP Email Password fields
- New patient status ACTIVE_PLAN_NOT_ACCEPTED (coverage active, plan not accepted)
- Removes the old MH eligibility, MH history and CMSP remaining workers/processors;
  batch appointment check and AI conversation use the new MH processor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 16:47:22 -05:00

46 lines
1.4 KiB
TypeScript

import * as z from 'zod';
export const InsuranceCredentialGroupByResultSchema = z.array(z.object({
id: z.number().int(),
userId: z.number().int(),
siteKey: z.string(),
username: z.string(),
password: z.string(),
otpContact: z.string(),
otpContactPassword: z.string(),
_count: z.object({
id: z.number(),
userId: z.number(),
siteKey: z.number(),
username: z.number(),
password: z.number(),
otpContact: z.number(),
otpContactPassword: z.number(),
user: z.number()
}).optional(),
_sum: z.object({
id: z.number().nullable(),
userId: z.number().nullable()
}).nullable().optional(),
_avg: z.object({
id: z.number().nullable(),
userId: z.number().nullable()
}).nullable().optional(),
_min: z.object({
id: z.number().int().nullable(),
userId: z.number().int().nullable(),
siteKey: z.string().nullable(),
username: z.string().nullable(),
password: z.string().nullable(),
otpContact: z.string().nullable(),
otpContactPassword: z.string().nullable()
}).nullable().optional(),
_max: z.object({
id: z.number().int().nullable(),
userId: z.number().int().nullable(),
siteKey: z.string().nullable(),
username: z.string().nullable(),
password: z.string().nullable(),
otpContact: z.string().nullable(),
otpContactPassword: z.string().nullable()
}).nullable().optional()
}));