mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 09:12:02 +10:00
feat: extend use envelope response (#2192)
This commit is contained in:
16
packages/trpc/server/envelope-router/schema.ts
Normal file
16
packages/trpc/server/envelope-router/schema.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import RecipientSchema from '@documenso/prisma/generated/zod/modelSchema/RecipientSchema';
|
||||
|
||||
// Common schemas between envelope routes.
|
||||
|
||||
export const ZRecipientWithSigningUrlSchema = RecipientSchema.pick({
|
||||
id: true,
|
||||
name: true,
|
||||
email: true,
|
||||
token: true,
|
||||
role: true,
|
||||
signingOrder: true,
|
||||
}).extend({
|
||||
signingUrl: z.string().describe('The URL which the recipient uses to sign the document.'),
|
||||
});
|
||||
Reference in New Issue
Block a user