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:
36
packages/db/shared/schemas/findFirstOfficeContact.schema.ts
Normal file
36
packages/db/shared/schemas/findFirstOfficeContact.schema.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeContactIncludeObjectSchema as OfficeContactIncludeObjectSchema } from './objects/OfficeContactInclude.schema';
|
||||
import { OfficeContactOrderByWithRelationInputObjectSchema as OfficeContactOrderByWithRelationInputObjectSchema } from './objects/OfficeContactOrderByWithRelationInput.schema';
|
||||
import { OfficeContactWhereInputObjectSchema as OfficeContactWhereInputObjectSchema } from './objects/OfficeContactWhereInput.schema';
|
||||
import { OfficeContactWhereUniqueInputObjectSchema as OfficeContactWhereUniqueInputObjectSchema } from './objects/OfficeContactWhereUniqueInput.schema';
|
||||
import { OfficeContactScalarFieldEnumSchema } from './enums/OfficeContactScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const OfficeContactFindFirstSelectSchema: z.ZodType<Prisma.OfficeContactSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
receptionistName: z.boolean().optional(),
|
||||
dentistName: z.boolean().optional(),
|
||||
phoneNumber: z.boolean().optional(),
|
||||
email: z.boolean().optional(),
|
||||
fax: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.OfficeContactSelect>;
|
||||
|
||||
export const OfficeContactFindFirstSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
receptionistName: z.boolean().optional(),
|
||||
dentistName: z.boolean().optional(),
|
||||
phoneNumber: z.boolean().optional(),
|
||||
email: z.boolean().optional(),
|
||||
fax: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const OfficeContactFindFirstSchema: z.ZodType<Prisma.OfficeContactFindFirstArgs> = z.object({ select: OfficeContactFindFirstSelectSchema.optional(), include: z.lazy(() => OfficeContactIncludeObjectSchema.optional()), orderBy: z.union([OfficeContactOrderByWithRelationInputObjectSchema, OfficeContactOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeContactWhereInputObjectSchema.optional(), cursor: OfficeContactWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeContactScalarFieldEnumSchema, OfficeContactScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeContactFindFirstArgs>;
|
||||
|
||||
export const OfficeContactFindFirstZodSchema = z.object({ select: OfficeContactFindFirstSelectSchema.optional(), include: z.lazy(() => OfficeContactIncludeObjectSchema.optional()), orderBy: z.union([OfficeContactOrderByWithRelationInputObjectSchema, OfficeContactOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeContactWhereInputObjectSchema.optional(), cursor: OfficeContactWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeContactScalarFieldEnumSchema, OfficeContactScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
Reference in New Issue
Block a user