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>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user