mirror of
https://github.com/documenso/documenso.git
synced 2026-07-25 09:25:08 +10:00
feat: configure audit log embedding per document
This commit is contained in:
@@ -19,6 +19,7 @@ import { ZDocumentEmailSettingsSchema } from './document-email';
|
||||
export const ZDocumentMetaSchema = DocumentMetaSchema.pick({
|
||||
signingOrder: true,
|
||||
distributionMethod: true,
|
||||
includeAuditLog: true,
|
||||
id: true,
|
||||
subject: true,
|
||||
message: true,
|
||||
@@ -93,6 +94,10 @@ export const ZDocumentMetaDistributionMethodSchema = z
|
||||
.nativeEnum(DocumentDistributionMethod)
|
||||
.describe('The distribution method to use when sending the document to the recipients.');
|
||||
|
||||
export const ZDocumentMetaIncludeAuditLogSchema = z
|
||||
.boolean()
|
||||
.describe('Whether to include the audit logs in the sealed document PDF.');
|
||||
|
||||
export const ZDocumentMetaTypedSignatureEnabledSchema = z
|
||||
.boolean()
|
||||
.describe('Whether to allow recipients to sign using a typed signature.');
|
||||
@@ -116,6 +121,7 @@ export const ZDocumentMetaCreateSchema = z.object({
|
||||
timezone: ZDocumentMetaTimezoneSchema.optional(),
|
||||
dateFormat: ZDocumentMetaDateFormatSchema.optional(),
|
||||
distributionMethod: ZDocumentMetaDistributionMethodSchema.optional(),
|
||||
includeAuditLog: ZDocumentMetaIncludeAuditLogSchema.optional(),
|
||||
signingOrder: z.nativeEnum(DocumentSigningOrder).optional(),
|
||||
allowDictateNextSigner: z.boolean().optional(),
|
||||
redirectUrl: ZDocumentMetaRedirectUrlSchema.optional(),
|
||||
|
||||
@@ -53,6 +53,7 @@ export const ZDocumentSchema = LegacyDocumentSchema.pick({
|
||||
documentMeta: DocumentMetaSchema.pick({
|
||||
signingOrder: true,
|
||||
distributionMethod: true,
|
||||
includeAuditLog: true,
|
||||
id: true,
|
||||
subject: true,
|
||||
message: true,
|
||||
|
||||
@@ -270,6 +270,7 @@ export const ZEditorEnvelopeSchema = EnvelopeSchema.pick({
|
||||
documentMeta: DocumentMetaSchema.pick({
|
||||
signingOrder: true,
|
||||
distributionMethod: true,
|
||||
includeAuditLog: true,
|
||||
id: true,
|
||||
subject: true,
|
||||
message: true,
|
||||
|
||||
@@ -40,6 +40,7 @@ export const ZEnvelopeSchema = EnvelopeSchema.pick({
|
||||
documentMeta: DocumentMetaSchema.pick({
|
||||
signingOrder: true,
|
||||
distributionMethod: true,
|
||||
includeAuditLog: true,
|
||||
id: true,
|
||||
subject: true,
|
||||
message: true,
|
||||
|
||||
@@ -56,6 +56,7 @@ export const ZTemplateSchema = TemplateSchema.pick({
|
||||
drawSignatureEnabled: true,
|
||||
allowDictateNextSigner: true,
|
||||
distributionMethod: true,
|
||||
includeAuditLog: true,
|
||||
redirectUrl: true,
|
||||
language: true,
|
||||
emailSettings: true,
|
||||
@@ -149,6 +150,7 @@ export const ZTemplateManySchema = TemplateSchema.pick({
|
||||
templateMeta: DocumentMetaSchema.pick({
|
||||
signingOrder: true,
|
||||
distributionMethod: true,
|
||||
includeAuditLog: true,
|
||||
}).nullable(),
|
||||
directLink: LegacyTemplateDirectLinkSchema.pick({
|
||||
token: true,
|
||||
|
||||
@@ -56,6 +56,7 @@ export const ZWebhookDocumentMetaSchema = z.object({
|
||||
drawSignatureEnabled: z.boolean(),
|
||||
language: z.string(),
|
||||
distributionMethod: z.nativeEnum(DocumentDistributionMethod),
|
||||
includeAuditLog: z.boolean(),
|
||||
emailSettings: z.any().nullable(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user