mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
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.'),
|
|
});
|