From 91ae818213128867c5f2d944c8b173865d9eefd3 Mon Sep 17 00:00:00 2001 From: Catalin Pit Date: Wed, 12 Mar 2025 13:54:58 +0200 Subject: [PATCH] fix: missing prefillfields property from the api v2 documentation (#1700) --- packages/trpc/server/template-router/schema.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/trpc/server/template-router/schema.ts b/packages/trpc/server/template-router/schema.ts index 080939d90..ab238d283 100644 --- a/packages/trpc/server/template-router/schema.ts +++ b/packages/trpc/server/template-router/schema.ts @@ -68,7 +68,12 @@ export const ZCreateDocumentFromTemplateRequestSchema = z.object({ 'The data ID of an alternative PDF to use when creating the document. If not provided, the PDF attached to the template will be used.', ) .optional(), - prefillFields: z.array(ZFieldMetaPrefillFieldsSchema).optional(), + prefillFields: z + .array(ZFieldMetaPrefillFieldsSchema) + .describe( + 'The fields to prefill on the document before sending it out. Useful when you want to create a document from an existing template and pre-fill the fields with specific values.', + ) + .optional(), }); export const ZCreateDocumentFromTemplateResponseSchema = ZDocumentSchema;