mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
35 lines
896 B
TypeScript
35 lines
896 B
TypeScript
import { RecipientRole } from '@documenso/prisma/client';
|
|
|
|
export const RECIPIENT_ROLES_DESCRIPTION = {
|
|
[RecipientRole.APPROVER]: {
|
|
actionVerb: 'Approve',
|
|
actioned: 'Approved',
|
|
progressiveVerb: 'Approving',
|
|
roleName: 'Approver',
|
|
},
|
|
[RecipientRole.CC]: {
|
|
actionVerb: 'CC',
|
|
actioned: `CC'd`,
|
|
progressiveVerb: 'CC',
|
|
roleName: 'Cc',
|
|
},
|
|
[RecipientRole.SIGNER]: {
|
|
actionVerb: 'Sign',
|
|
actioned: 'Signed',
|
|
progressiveVerb: 'Signing',
|
|
roleName: 'Signer',
|
|
},
|
|
[RecipientRole.VIEWER]: {
|
|
actionVerb: 'View',
|
|
actioned: 'Viewed',
|
|
progressiveVerb: 'Viewing',
|
|
roleName: 'Viewer',
|
|
},
|
|
} satisfies Record<keyof typeof RecipientRole, unknown>;
|
|
|
|
export const RECIPIENT_ROLE_TO_EMAIL_TYPE = {
|
|
[RecipientRole.SIGNER]: 'SIGNING_REQUEST',
|
|
[RecipientRole.VIEWER]: 'VIEW_REQUEST',
|
|
[RecipientRole.APPROVER]: 'APPROVE_REQUEST',
|
|
} as const;
|