fix: support dynamic external ids for direct templates (#1274)

Adds support for an `externalId` query param to be passed when linking a
user to a direct template. This external id will then be stored on the
document upon signing completion.
This commit is contained in:
Lucas Smith
2024-08-09 11:06:17 +10:00
committed by GitHub
parent c605877924
commit e5f73452b3
4 changed files with 15 additions and 1 deletions

View File

@ -20,6 +20,7 @@ export const ZCreateDocumentFromDirectTemplateMutationSchema = z.object({
directRecipientName: z.string().optional(),
directRecipientEmail: z.string().email(),
directTemplateToken: z.string().min(1),
directTemplateExternalId: z.string().optional(),
signedFieldValues: z.array(ZSignFieldWithTokenMutationSchema),
templateUpdatedAt: z.date(),
});