Files
calendar/packages/features/ee/cal-ai-phone/getTemplateFieldsSchema.ts
T
199d95b35f feat: cal ai templates (#15391)
* chore: save progress

* feat: add schema and fieds

* chore: update code

* chore: save

* refactor: code and type error

* feat: use facade + command design pattern

* chore: missing param

* feat: add custom template feature

* refactor: code

* chore: move the default prompt

* fix: type err

* fix: code and ux improvements

* chore: change default template

* fix: ui and typo

* fix: add validation check for my phone number

---------

Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
2024-07-30 13:09:12 +02:00

7 lines
243 B
TypeScript

import type { TemplateType } from "./zod-utils";
import { fieldSchemaMap } from "./zod-utils";
export const getTemplateFieldsSchema = ({ templateType }: { templateType: string }) => {
return fieldSchemaMap[templateType as TemplateType];
};