* feat: cal ai self serve architecture * chore: add package * chore: update evnet controller * refactor: improvements * chore: rename * chore: type error and naming * chore: just set it to nul * chore: just set it to nul * chore: some more improvements * chore: packate version * fix: API v2 * chore: change name of files * chore: add select * chore: add missing teamId * chore: save progress * refactor: split into multiple services * refactor: make schema provider agonistic * chore: improvements * chore: * chore: remove duplicate files * chore: semicolon * chore: formatting * refactor: logging and error handling * chore: rename variable * refactor: use trpc error * chore: replace with HttpError * chore: remove from option * We need the enum and not just the type --------- Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
7 lines
243 B
TypeScript
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];
|
|
};
|