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

27 lines
2.3 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { SortOrderSchema } from '../enums/SortOrder.schema';
import { SortOrderInputObjectSchema as SortOrderInputObjectSchema } from './SortOrderInput.schema';
import { InsuranceCredentialCountOrderByAggregateInputObjectSchema as InsuranceCredentialCountOrderByAggregateInputObjectSchema } from './InsuranceCredentialCountOrderByAggregateInput.schema';
import { InsuranceCredentialAvgOrderByAggregateInputObjectSchema as InsuranceCredentialAvgOrderByAggregateInputObjectSchema } from './InsuranceCredentialAvgOrderByAggregateInput.schema';
import { InsuranceCredentialMaxOrderByAggregateInputObjectSchema as InsuranceCredentialMaxOrderByAggregateInputObjectSchema } from './InsuranceCredentialMaxOrderByAggregateInput.schema';
import { InsuranceCredentialMinOrderByAggregateInputObjectSchema as InsuranceCredentialMinOrderByAggregateInputObjectSchema } from './InsuranceCredentialMinOrderByAggregateInput.schema';
import { InsuranceCredentialSumOrderByAggregateInputObjectSchema as InsuranceCredentialSumOrderByAggregateInputObjectSchema } from './InsuranceCredentialSumOrderByAggregateInput.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
siteKey: SortOrderSchema.optional(),
username: SortOrderSchema.optional(),
password: SortOrderSchema.optional(),
otpContact: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
otpContactPassword: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
_count: z.lazy(() => InsuranceCredentialCountOrderByAggregateInputObjectSchema).optional(),
_avg: z.lazy(() => InsuranceCredentialAvgOrderByAggregateInputObjectSchema).optional(),
_max: z.lazy(() => InsuranceCredentialMaxOrderByAggregateInputObjectSchema).optional(),
_min: z.lazy(() => InsuranceCredentialMinOrderByAggregateInputObjectSchema).optional(),
_sum: z.lazy(() => InsuranceCredentialSumOrderByAggregateInputObjectSchema).optional()
}).strict();
export const InsuranceCredentialOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.InsuranceCredentialOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.InsuranceCredentialOrderByWithAggregationInput>;
export const InsuranceCredentialOrderByWithAggregationInputObjectZodSchema = makeSchema();