@ttahub/common 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +0 -27
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -16,7 +16,6 @@ const RECIPIENT_PARTICIPANTS = [
|
|
|
16
16
|
'Teacher / Infant-Toddler Caregiver',
|
|
17
17
|
'Volunteer',
|
|
18
18
|
];
|
|
19
|
-
exports.RECIPIENT_PARTICIPANTS = RECIPIENT_PARTICIPANTS;
|
|
20
19
|
|
|
21
20
|
const OTHER_ENTITY_PARTICIPANTS = [
|
|
22
21
|
'HSCO',
|
|
@@ -29,13 +28,11 @@ const OTHER_ENTITY_PARTICIPANTS = [
|
|
|
29
28
|
'State Head Start Association',
|
|
30
29
|
'Other',
|
|
31
30
|
];
|
|
32
|
-
exports.OTHER_ENTITY_PARTICIPANTS = OTHER_ENTITY_PARTICIPANTS;
|
|
33
31
|
|
|
34
32
|
const ALL_PARTICIPANTS = [
|
|
35
33
|
...RECIPIENT_PARTICIPANTS,
|
|
36
34
|
...OTHER_ENTITY_PARTICIPANTS,
|
|
37
35
|
];
|
|
38
|
-
exports.ALL_PARTICIPANTS = ALL_PARTICIPANTS;
|
|
39
36
|
|
|
40
37
|
const TOPICS = [
|
|
41
38
|
'Behavioral / Mental Health / Trauma',
|
|
@@ -79,7 +76,6 @@ const TOPICS = [
|
|
|
79
76
|
'Transition Practices',
|
|
80
77
|
'Transportation',
|
|
81
78
|
];
|
|
82
|
-
exports.TOPICS = TOPICS;
|
|
83
79
|
|
|
84
80
|
const REASONS = [
|
|
85
81
|
'Below Competitive Threshold (CLASS)',
|
|
@@ -100,7 +96,6 @@ const REASONS = [
|
|
|
100
96
|
'Monitoring | Noncompliance',
|
|
101
97
|
'Monitoring | Deficiency',
|
|
102
98
|
];
|
|
103
|
-
exports.REASONS = REASONS;
|
|
104
99
|
|
|
105
100
|
const REPORT_STATUSES = {
|
|
106
101
|
DRAFT: 'draft',
|
|
@@ -109,7 +104,6 @@ const REPORT_STATUSES = {
|
|
|
109
104
|
APPROVED: 'approved',
|
|
110
105
|
NEEDS_ACTION: 'needs_action',
|
|
111
106
|
};
|
|
112
|
-
exports.REPORT_STATUSES = REPORT_STATUSES;
|
|
113
107
|
|
|
114
108
|
const TRAINING_REPORT_STATUSES = {
|
|
115
109
|
NOT_STARTED: 'Not started',
|
|
@@ -117,7 +111,6 @@ const TRAINING_REPORT_STATUSES = {
|
|
|
117
111
|
COMPLETE: 'Complete',
|
|
118
112
|
SUSPENDED: 'Suspended',
|
|
119
113
|
};
|
|
120
|
-
exports.TRAINING_REPORT_STATUSES = TRAINING_REPORT_STATUSES;
|
|
121
114
|
|
|
122
115
|
const TRAINING_REPORT_STATUSES_URL_PARAMS = {
|
|
123
116
|
'not-started': TRAINING_REPORT_STATUSES.NOT_STARTED,
|
|
@@ -126,15 +119,11 @@ const TRAINING_REPORT_STATUSES_URL_PARAMS = {
|
|
|
126
119
|
complete: TRAINING_REPORT_STATUSES.COMPLETE,
|
|
127
120
|
};
|
|
128
121
|
|
|
129
|
-
exports.TRAINING_REPORT_STATUSES_URL_PARAMS = TRAINING_REPORT_STATUSES_URL_PARAMS;
|
|
130
|
-
|
|
131
122
|
const EVENT_REPORT_STATUSES = {
|
|
132
123
|
IN_PROGRESS: 'In progress',
|
|
133
124
|
COMPLETE: 'Complete',
|
|
134
125
|
}
|
|
135
126
|
|
|
136
|
-
exports.EVENT_REPORT_STATUSES = EVENT_REPORT_STATUSES;
|
|
137
|
-
|
|
138
127
|
const TARGET_POPULATIONS = [
|
|
139
128
|
'Infants and Toddlers (ages birth to 3)',
|
|
140
129
|
'Preschool (ages 3-5)',
|
|
@@ -148,7 +137,6 @@ const TARGET_POPULATIONS = [
|
|
|
148
137
|
'Dual-Language Learners',
|
|
149
138
|
'Program Staff',
|
|
150
139
|
];
|
|
151
|
-
exports.TARGET_POPULATIONS = TARGET_POPULATIONS;
|
|
152
140
|
|
|
153
141
|
const EVENT_TARGET_POPULATIONS = [
|
|
154
142
|
'Children/Families affected by systemic discrimination/bias/exclusion',
|
|
@@ -156,8 +144,6 @@ const EVENT_TARGET_POPULATIONS = [
|
|
|
156
144
|
'Parents/Families impacted by health disparities'
|
|
157
145
|
];
|
|
158
146
|
|
|
159
|
-
exports.EVENT_TARGET_POPULATIONS = EVENT_TARGET_POPULATIONS;
|
|
160
|
-
|
|
161
147
|
const USER_ROLES = [
|
|
162
148
|
'Central Office',
|
|
163
149
|
'Other Federal Staff',
|
|
@@ -178,7 +164,6 @@ const USER_ROLES = [
|
|
|
178
164
|
'Health Specialist',
|
|
179
165
|
'System Specialist',
|
|
180
166
|
];
|
|
181
|
-
exports.USER_ROLES = USER_ROLES;
|
|
182
167
|
|
|
183
168
|
// TODO: This is the deduped combination of GOAL_CLOSE_REASONS and GOAL_SUSPEND_REASONS
|
|
184
169
|
const CLOSE_SUSPEND_REASONS = [
|
|
@@ -190,15 +175,12 @@ const CLOSE_SUSPEND_REASONS = [
|
|
|
190
175
|
'TTA complete',
|
|
191
176
|
];
|
|
192
177
|
|
|
193
|
-
exports.CLOSE_SUSPEND_REASONS = CLOSE_SUSPEND_REASONS;
|
|
194
|
-
|
|
195
178
|
const GOAL_CLOSE_REASONS = [
|
|
196
179
|
'Duplicate goal',
|
|
197
180
|
'Recipient request',
|
|
198
181
|
'Regional Office request',
|
|
199
182
|
'TTA complete',
|
|
200
183
|
];
|
|
201
|
-
exports.GOAL_CLOSE_REASONS = GOAL_CLOSE_REASONS;
|
|
202
184
|
|
|
203
185
|
const GOAL_SUSPEND_REASONS = [
|
|
204
186
|
'Key staff turnover / vacancies',
|
|
@@ -206,7 +188,6 @@ const GOAL_SUSPEND_REASONS = [
|
|
|
206
188
|
'Recipient is not responding',
|
|
207
189
|
'Regional Office request',
|
|
208
190
|
];
|
|
209
|
-
exports.GOAL_SUSPEND_REASONS = GOAL_SUSPEND_REASONS;
|
|
210
191
|
|
|
211
192
|
const GOAL_SOURCES = [
|
|
212
193
|
'Federal monitoring issues, including CLASS and RANs',
|
|
@@ -216,13 +197,10 @@ const GOAL_SOURCES = [
|
|
|
216
197
|
'Training event follow-up',
|
|
217
198
|
];
|
|
218
199
|
|
|
219
|
-
exports.GOAL_SOURCES = GOAL_SOURCES;
|
|
220
|
-
|
|
221
200
|
const APPROVER_STATUSES = {
|
|
222
201
|
APPROVED: 'approved',
|
|
223
202
|
NEEDS_ACTION: 'needs_action',
|
|
224
203
|
};
|
|
225
|
-
exports.APPROVER_STATUSES = APPROVER_STATUSES;
|
|
226
204
|
|
|
227
205
|
const SCOPE_IDS = {
|
|
228
206
|
SITE_ACCESS: 1,
|
|
@@ -235,29 +213,24 @@ const SCOPE_IDS = {
|
|
|
235
213
|
READ_TRAINING_REPORTS: 8,
|
|
236
214
|
POC_TRAINING_REPORTS: 9,
|
|
237
215
|
};
|
|
238
|
-
exports.SCOPE_IDS = SCOPE_IDS;
|
|
239
216
|
|
|
240
217
|
const DECIMAL_BASE = 10;
|
|
241
|
-
exports.DECIMAL_BASE = DECIMAL_BASE;
|
|
242
218
|
|
|
243
219
|
const ALERT_STATUSES = {
|
|
244
220
|
UNPUBLISHED: 'Unpublished',
|
|
245
221
|
PUBLISHED: 'Published'
|
|
246
222
|
};
|
|
247
|
-
exports.ALERT_STATUSES = ALERT_STATUSES;
|
|
248
223
|
|
|
249
224
|
const ALERT_VARIANTS = {
|
|
250
225
|
INFO: 'info',
|
|
251
226
|
EMERGENCY: 'emergency'
|
|
252
227
|
};
|
|
253
|
-
exports.ALERT_VARIANTS = ALERT_VARIANTS;
|
|
254
228
|
|
|
255
229
|
const ALERT_SIZES = {
|
|
256
230
|
STANDARD: 'standard',
|
|
257
231
|
SLIM: 'slim',
|
|
258
232
|
LARGE: 'large'
|
|
259
233
|
};
|
|
260
|
-
exports.ALERT_SIZES = ALERT_SIZES;
|
|
261
234
|
|
|
262
235
|
module.exports = {
|
|
263
236
|
RECIPIENT_PARTICIPANTS,
|