-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.js
More file actions
38 lines (32 loc) · 855 Bytes
/
constants.js
File metadata and controls
38 lines (32 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const BackendRoute = {
AUTH: '/api/auth',
TEMPLATE: '/api/templates',
CONTACT: '/api/contacts',
ENVELOPE: '/api/envelopes',
NAVIGATOR: '/api/navigator'
};
const AuthMethod = {
JWT: 'jwt-auth',
ACG: 'grand-auth',
};
const TemplateType = {
SC: 'Sales Contract',
SW: 'Statement of work',
NDA: 'NDA document',
};
const ViewType = {
TEMPLATE: 'template',
ENVELOPE: 'envelope',
};
// https://developers.docusign.com/platform/auth/reference/scopes/
// signature - Required to call most eSignature REST API endpoints
const EMBEDDED_SENDING_SCOPES = ['signature', 'impersonation', 'cds_read', 'adm_store_unified_repo_read'];
const ALLOWED_FOR_EDIT_ENVELOPE_STATUSES = ['sent', 'correct'];
module.exports = {
BackendRoute,
AuthMethod,
TemplateType,
ViewType,
EMBEDDED_SENDING_SCOPES,
ALLOWED_FOR_EDIT_ENVELOPE_STATUSES,
};