-
Notifications
You must be signed in to change notification settings - Fork 3
/
coi-constants.js
179 lines (147 loc) · 3.9 KB
/
coi-constants.js
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
/*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
*/
export const DISCLOSURE_STEP = {
QUESTIONNAIRE: 'Questionnaire',
QUESTIONNAIRE_SUMMARY: 'questionnairesummary',
ENTITIES: 'entities',
PROJECTS: 'projects',
MANUAL: 'manual',
CERTIFY: 'certify'
};
export const INSTRUCTION_STEP = {
SCREENING_QUESTIONNAIRE: 'Questionnaire',
FINANCIAL_ENTITIES: 'Financial Entities',
PROJECT_DECLARATIONS: 'Project Declaration',
CERTIFICATION: 'Certification'
};
export const DISCLOSURE_STATUS = {
IN_PROGRESS: 1, // Admin: <not shown>
SUBMITTED_FOR_APPROVAL: 2,
UP_TO_DATE: 3, // Admin: Approved
REVISION_REQUIRED: 4, // Admin: Sent back
EXPIRED: 5,
RESUBMITTED: 6,
UPDATE_REQUIRED: 7,
RETURNED: 8
};
export const DATE_TYPE = {
ASSIGNED: 'Assigned',
COMPLETED: 'Completed',
UNASSIGNED: 'Unassigned'
};
export const FILE_TYPE = {
FINANCIAL_ENTITY: 'financialEntity',
DISCLOSURE: 'disclosure',
MANAGEMENT_PLAN: 'managementPlan',
ADMIN: 'admin'
};
export const DISCLOSURE_TYPE = {
MANUAL: '1',
ANNUAL: '2',
PROJECT: '3',
TRAVEL: '4'
};
export const SORT_DIRECTION = {
ASCENDING: 'ASCENDING',
DESCENDING: 'DESCENDING'
};
export const ARCHIVE_SORT_FIELD = {
TITLE: 'TITLE',
SUBMITTED: 'SUBMITTED',
APPROVED: 'APPROVED',
START: 'START',
TYPE: 'TYPE'
};
export const ENTITY_RELATIONSHIP = {
OWNERSHIP: 1,
OFFICES_POSITIONS: 2,
PAID_ACTIVITIES: 3,
INTELLECTUAL_PROPERTY: 4,
OTHER: 5,
TRAVEL: 6
};
export const QUESTION_TYPE = {
YESNO: 'Yes/No',
YESNONA: 'Yes/No/NA',
NUMBER: 'Number',
DATE: 'Date',
TEXTAREA: 'Text area',
MULTISELECT: 'Multiselect'
};
export const RETURN_KEY = 13;
export const TMP_PLACEHOLDER = 'TMP';
export const QUESTIONNAIRE_TYPE = {
SCREENING: 'screening',
ENTITY: 'entities'
};
export const ROLES = {
ADMIN: 'admin',
REVIEWER: 'reviewer',
USER: 'user'
};
export const RELATIONSHIP_STATUS = {
PENDING: 'PENDING',
IN_PROGRESS: 'IN PROGRESS',
DISCLOSED: 'DISCLOSED'
};
export const LOG_LEVEL = {
VERBOSE: -1,
INFO: 0,
WARN: 1,
ERROR: 2
};
export const STATE_TYPE = {
ANNUAL_DISCLOSURE_STATE: 'annual_disclosure_state'
};
export const PROJECT_DISCLOSURE_STATUSES = {
NOT_YET_DISCLOSED: 'Not Yet Disclosed',
DISCLOSURE_NOT_REQUIRED: 'Disclosure Not Required',
UPDATE_NEEDED: 'Update Needed',
UP_TO_DATE: 'Up To Date'
};
export const SYSTEM_USER = 'system';
export const COI_ADMIN = 'COI Admin';
export const PI_ROLE_CODE = 'PI';
export const NO_DISPOSITION_DESCRIPTION = 'None';
export const EDITABLE_STATUSES = [
DISCLOSURE_STATUS.EXPIRED,
DISCLOSURE_STATUS.IN_PROGRESS,
DISCLOSURE_STATUS.UP_TO_DATE,
DISCLOSURE_STATUS.UPDATE_REQUIRED,
DISCLOSURE_STATUS.RETURNED
];
export const APPROVED_STATUSES = [
DISCLOSURE_STATUS.EXPIRED,
DISCLOSURE_STATUS.UP_TO_DATE,
DISCLOSURE_STATUS.UPDATE_REQUIRED
];
export const COMMENT_TITLES = {
QUESTION: 'QUESTION:',
ENTITY: 'FINANCIAL ENTITY:',
DECLARATION: 'PROJECT - FINANCIAL ENTITY:'
};
export const NOTIFICATIONS_MODE = {
OFF: 0,
TEST: 1,
PROD: 2
};
export const LANES = {
TEST: 'tst',
STAGE: 'stg',
SANDBOX: 'sbx',
PRODUCTION: 'prd'
};
export const NO_DISPOSITION = -1;
export const ADMIN_PAGE_SIZE = 40;