Files
DentalManagementMH06/packages/db/shared/schemas/objects/OfficeContactOrderByWithAggregationInput.schema.ts
Gitead 800008792a feat: add Office Contact settings page and reorder Advanced sidebar
- Add OfficeContact Prisma model with receptionist name, dentist name, phone, email, fax fields
- Create GET/PUT /api/office-contact backend route and storage
- Add OfficeContactCard frontend component under Settings > Advanced
- Reorder Advanced sidebar: Office Hours → Office Contact → Twilio Settings → Google AI Settings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 21:19:30 -04:00

27 lines
2.4 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 { OfficeContactCountOrderByAggregateInputObjectSchema as OfficeContactCountOrderByAggregateInputObjectSchema } from './OfficeContactCountOrderByAggregateInput.schema';
import { OfficeContactAvgOrderByAggregateInputObjectSchema as OfficeContactAvgOrderByAggregateInputObjectSchema } from './OfficeContactAvgOrderByAggregateInput.schema';
import { OfficeContactMaxOrderByAggregateInputObjectSchema as OfficeContactMaxOrderByAggregateInputObjectSchema } from './OfficeContactMaxOrderByAggregateInput.schema';
import { OfficeContactMinOrderByAggregateInputObjectSchema as OfficeContactMinOrderByAggregateInputObjectSchema } from './OfficeContactMinOrderByAggregateInput.schema';
import { OfficeContactSumOrderByAggregateInputObjectSchema as OfficeContactSumOrderByAggregateInputObjectSchema } from './OfficeContactSumOrderByAggregateInput.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
receptionistName: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
dentistName: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
phoneNumber: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
email: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
fax: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
_count: z.lazy(() => OfficeContactCountOrderByAggregateInputObjectSchema).optional(),
_avg: z.lazy(() => OfficeContactAvgOrderByAggregateInputObjectSchema).optional(),
_max: z.lazy(() => OfficeContactMaxOrderByAggregateInputObjectSchema).optional(),
_min: z.lazy(() => OfficeContactMinOrderByAggregateInputObjectSchema).optional(),
_sum: z.lazy(() => OfficeContactSumOrderByAggregateInputObjectSchema).optional()
}).strict();
export const OfficeContactOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.OfficeContactOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.OfficeContactOrderByWithAggregationInput>;
export const OfficeContactOrderByWithAggregationInputObjectZodSchema = makeSchema();