mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
33 lines
844 B
TypeScript
33 lines
844 B
TypeScript
import { RecipientRole } from '@documenso/prisma/client';
|
|
|
|
export const RECIPIENT_ROLES_DESCRIPTION: {
|
|
[key in RecipientRole]: { actionVerb: string; progressiveVerb: string; roleName: string };
|
|
} = {
|
|
[RecipientRole.APPROVER]: {
|
|
actionVerb: 'Approve',
|
|
progressiveVerb: 'Approving',
|
|
roleName: 'Approver',
|
|
},
|
|
[RecipientRole.CC]: {
|
|
actionVerb: 'CC',
|
|
progressiveVerb: 'CC',
|
|
roleName: 'CC',
|
|
},
|
|
[RecipientRole.SIGNER]: {
|
|
actionVerb: 'Sign',
|
|
progressiveVerb: 'Signing',
|
|
roleName: 'Signer',
|
|
},
|
|
[RecipientRole.VIEWER]: {
|
|
actionVerb: 'View',
|
|
progressiveVerb: 'Viewing',
|
|
roleName: 'Viewer',
|
|
},
|
|
};
|
|
|
|
export const RECIPIENT_ROLE_TO_EMAIL_TYPE = {
|
|
[RecipientRole.SIGNER]: 'SIGNING_REQUEST',
|
|
[RecipientRole.VIEWER]: 'VIEW_REQUEST',
|
|
[RecipientRole.APPROVER]: 'APPROVE_REQUEST',
|
|
} as const;
|