mirror of
https://github.com/documenso/documenso.git
synced 2026-07-26 01:45:08 +10:00
feat: add external ID to use template (#2264)
This commit is contained in:
@@ -459,6 +459,7 @@ export const templateRouter = router({
|
|||||||
customDocumentDataId,
|
customDocumentDataId,
|
||||||
folderId,
|
folderId,
|
||||||
prefillFields,
|
prefillFields,
|
||||||
|
externalId,
|
||||||
override,
|
override,
|
||||||
attachments,
|
attachments,
|
||||||
} = input;
|
} = input;
|
||||||
@@ -497,6 +498,7 @@ export const templateRouter = router({
|
|||||||
requestMetadata: ctx.metadata,
|
requestMetadata: ctx.metadata,
|
||||||
folderId,
|
folderId,
|
||||||
prefillFields,
|
prefillFields,
|
||||||
|
externalId,
|
||||||
override,
|
override,
|
||||||
attachments,
|
attachments,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import {
|
|||||||
ZTemplateSchema,
|
ZTemplateSchema,
|
||||||
} from '@documenso/lib/types/template';
|
} from '@documenso/lib/types/template';
|
||||||
import { LegacyTemplateDirectLinkSchema } from '@documenso/prisma/types/template-legacy-schema';
|
import { LegacyTemplateDirectLinkSchema } from '@documenso/prisma/types/template-legacy-schema';
|
||||||
|
import { ZDocumentExternalIdSchema } from '@documenso/trpc/server/document-router/schema';
|
||||||
|
|
||||||
import { zodFormData } from '../../utils/zod-form-data';
|
import { zodFormData } from '../../utils/zod-form-data';
|
||||||
import { ZSignFieldWithTokenMutationSchema } from '../field-router/schema';
|
import { ZSignFieldWithTokenMutationSchema } from '../field-router/schema';
|
||||||
@@ -96,6 +97,7 @@ export const ZCreateDocumentFromDirectTemplateRequestSchema = z.object({
|
|||||||
|
|
||||||
export const ZCreateDocumentFromTemplateRequestSchema = z.object({
|
export const ZCreateDocumentFromTemplateRequestSchema = z.object({
|
||||||
templateId: z.number(),
|
templateId: z.number(),
|
||||||
|
externalId: ZDocumentExternalIdSchema.optional(),
|
||||||
recipients: z
|
recipients: z
|
||||||
.array(
|
.array(
|
||||||
z.object({
|
z.object({
|
||||||
|
|||||||
Reference in New Issue
Block a user