Files
DentalManagement09/packages/db/shared/schemas/findFirstOrThrowInsuranceCredential.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

36 lines
3.3 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { InsuranceCredentialIncludeObjectSchema as InsuranceCredentialIncludeObjectSchema } from './objects/InsuranceCredentialInclude.schema';
import { InsuranceCredentialOrderByWithRelationInputObjectSchema as InsuranceCredentialOrderByWithRelationInputObjectSchema } from './objects/InsuranceCredentialOrderByWithRelationInput.schema';
import { InsuranceCredentialWhereInputObjectSchema as InsuranceCredentialWhereInputObjectSchema } from './objects/InsuranceCredentialWhereInput.schema';
import { InsuranceCredentialWhereUniqueInputObjectSchema as InsuranceCredentialWhereUniqueInputObjectSchema } from './objects/InsuranceCredentialWhereUniqueInput.schema';
import { InsuranceCredentialScalarFieldEnumSchema } from './enums/InsuranceCredentialScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const InsuranceCredentialFindFirstOrThrowSelectSchema: z.ZodType<Prisma.InsuranceCredentialSelect> = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
siteKey: z.boolean().optional(),
username: z.boolean().optional(),
password: z.boolean().optional(),
otpContact: z.boolean().optional(),
otpContactPassword: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.InsuranceCredentialSelect>;
export const InsuranceCredentialFindFirstOrThrowSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
siteKey: z.boolean().optional(),
username: z.boolean().optional(),
password: z.boolean().optional(),
otpContact: z.boolean().optional(),
otpContactPassword: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const InsuranceCredentialFindFirstOrThrowSchema: z.ZodType<Prisma.InsuranceCredentialFindFirstOrThrowArgs> = z.object({ select: InsuranceCredentialFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => InsuranceCredentialIncludeObjectSchema.optional()), orderBy: z.union([InsuranceCredentialOrderByWithRelationInputObjectSchema, InsuranceCredentialOrderByWithRelationInputObjectSchema.array()]).optional(), where: InsuranceCredentialWhereInputObjectSchema.optional(), cursor: InsuranceCredentialWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([InsuranceCredentialScalarFieldEnumSchema, InsuranceCredentialScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.InsuranceCredentialFindFirstOrThrowArgs>;
export const InsuranceCredentialFindFirstOrThrowZodSchema = z.object({ select: InsuranceCredentialFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => InsuranceCredentialIncludeObjectSchema.optional()), orderBy: z.union([InsuranceCredentialOrderByWithRelationInputObjectSchema, InsuranceCredentialOrderByWithRelationInputObjectSchema.array()]).optional(), where: InsuranceCredentialWhereInputObjectSchema.optional(), cursor: InsuranceCredentialWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([InsuranceCredentialScalarFieldEnumSchema, InsuranceCredentialScalarFieldEnumSchema.array()]).optional() }).strict();