- Add streetAddress/city/state/zipCode fields to OfficeContact (schema + storage + UI)
- Support {officeAddress} variable in batch reminder SMS
- Replace single SMS template field with full CRUD template list (add/rename/edit/delete)
- Store SMS template list under _sms_template_list; first template synced to batch reminder
- Hardcode all AI chat template defaults into codebase (reminder SMS, greetings, fallback)
- Add seed-templates.ts that auto-seeds default templates for all users on server boot
- Update README: note that templates are auto-configured on first boot
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
46 lines
3.4 KiB
TypeScript
46 lines
3.4 KiB
TypeScript
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(),
|
|
officeName: z.boolean().optional(),
|
|
receptionistName: z.boolean().optional(),
|
|
dentistName: z.boolean().optional(),
|
|
phoneNumber: z.boolean().optional(),
|
|
email: z.boolean().optional(),
|
|
fax: z.boolean().optional(),
|
|
streetAddress: z.boolean().optional(),
|
|
city: z.boolean().optional(),
|
|
state: z.boolean().optional(),
|
|
zipCode: 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(),
|
|
officeName: z.boolean().optional(),
|
|
receptionistName: z.boolean().optional(),
|
|
dentistName: z.boolean().optional(),
|
|
phoneNumber: z.boolean().optional(),
|
|
email: z.boolean().optional(),
|
|
fax: z.boolean().optional(),
|
|
streetAddress: z.boolean().optional(),
|
|
city: z.boolean().optional(),
|
|
state: z.boolean().optional(),
|
|
zipCode: 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(); |