mirror of
https://github.com/documenso/documenso.git
synced 2025-11-27 06:54:01 +10:00
feat: add default recipients for teams and orgs
This commit is contained in:
12
packages/lib/types/default-recipients.ts
Normal file
12
packages/lib/types/default-recipients.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { RecipientRole } from '@prisma/client';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const ZDefaultRecipientSchema = z.object({
|
||||
email: z.string().email(),
|
||||
name: z.string(),
|
||||
role: z.nativeEnum(RecipientRole),
|
||||
});
|
||||
|
||||
export const ZDefaultRecipientsSchema = z.array(ZDefaultRecipientSchema);
|
||||
|
||||
export type TDefaultRecipients = z.infer<typeof ZDefaultRecipientsSchema>;
|
||||
Reference in New Issue
Block a user