Files
sign/packages/lib/constants/recipient-roles.ts

35 lines
896 B
TypeScript
Raw Normal View History

import { RecipientRole } from '@documenso/prisma/client';
2024-02-15 18:20:10 +11:00
export const RECIPIENT_ROLES_DESCRIPTION = {
[RecipientRole.APPROVER]: {
actionVerb: 'Approve',
2024-02-15 18:20:10 +11:00
actioned: 'Approved',
progressiveVerb: 'Approving',
roleName: 'Approver',
},
[RecipientRole.CC]: {
actionVerb: 'CC',
2024-02-15 18:20:10 +11:00
actioned: 'CCed',
progressiveVerb: 'CC',
2024-02-12 17:30:23 +11:00
roleName: 'Cc',
},
[RecipientRole.SIGNER]: {
actionVerb: 'Sign',
2024-02-15 18:20:10 +11:00
actioned: 'Signed',
progressiveVerb: 'Signing',
roleName: 'Signer',
},
[RecipientRole.VIEWER]: {
actionVerb: 'View',
2024-02-15 18:20:10 +11:00
actioned: 'Viewed',
progressiveVerb: 'Viewing',
roleName: 'Viewer',
},
2024-02-15 18:20:10 +11:00
} 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;