Files
DentalManagementMH07/packages/db/shared/schemas/findFirstOrThrowCommunication.schema.ts
Gitead 75ecd7cc20 feat: add Selenium Settings page to configure paymentGroupId per office
Adds a new Settings → Advanced → Selenium Settings page where the office
name (paymentGroupId) used in United/DentalHub portal dropdowns can be
configured without touching code. Previously hardcoded as "Summit Dental
Care"; now injected from DB into the three United workers at job dispatch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 23:53:43 -04:00

44 lines
3.3 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { CommunicationIncludeObjectSchema as CommunicationIncludeObjectSchema } from './objects/CommunicationInclude.schema';
import { CommunicationOrderByWithRelationInputObjectSchema as CommunicationOrderByWithRelationInputObjectSchema } from './objects/CommunicationOrderByWithRelationInput.schema';
import { CommunicationWhereInputObjectSchema as CommunicationWhereInputObjectSchema } from './objects/CommunicationWhereInput.schema';
import { CommunicationWhereUniqueInputObjectSchema as CommunicationWhereUniqueInputObjectSchema } from './objects/CommunicationWhereUniqueInput.schema';
import { CommunicationScalarFieldEnumSchema } from './enums/CommunicationScalarFieldEnum.schema';
// Select schema needs to be in file to prevent circular imports
//------------------------------------------------------
export const CommunicationFindFirstOrThrowSelectSchema: z.ZodType<Prisma.CommunicationSelect> = z.object({
id: z.boolean().optional(),
patientId: z.boolean().optional(),
userId: z.boolean().optional(),
channel: z.boolean().optional(),
direction: z.boolean().optional(),
status: z.boolean().optional(),
body: z.boolean().optional(),
callDuration: z.boolean().optional(),
twilioSid: z.boolean().optional(),
createdAt: z.boolean().optional(),
patient: z.boolean().optional(),
user: z.boolean().optional()
}).strict() as unknown as z.ZodType<Prisma.CommunicationSelect>;
export const CommunicationFindFirstOrThrowSelectZodSchema = z.object({
id: z.boolean().optional(),
patientId: z.boolean().optional(),
userId: z.boolean().optional(),
channel: z.boolean().optional(),
direction: z.boolean().optional(),
status: z.boolean().optional(),
body: z.boolean().optional(),
callDuration: z.boolean().optional(),
twilioSid: z.boolean().optional(),
createdAt: z.boolean().optional(),
patient: z.boolean().optional(),
user: z.boolean().optional()
}).strict();
export const CommunicationFindFirstOrThrowSchema: z.ZodType<Prisma.CommunicationFindFirstOrThrowArgs> = z.object({ select: CommunicationFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => CommunicationIncludeObjectSchema.optional()), orderBy: z.union([CommunicationOrderByWithRelationInputObjectSchema, CommunicationOrderByWithRelationInputObjectSchema.array()]).optional(), where: CommunicationWhereInputObjectSchema.optional(), cursor: CommunicationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([CommunicationScalarFieldEnumSchema, CommunicationScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.CommunicationFindFirstOrThrowArgs>;
export const CommunicationFindFirstOrThrowZodSchema = z.object({ select: CommunicationFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => CommunicationIncludeObjectSchema.optional()), orderBy: z.union([CommunicationOrderByWithRelationInputObjectSchema, CommunicationOrderByWithRelationInputObjectSchema.array()]).optional(), where: CommunicationWhereInputObjectSchema.optional(), cursor: CommunicationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([CommunicationScalarFieldEnumSchema, CommunicationScalarFieldEnumSchema.array()]).optional() }).strict();