@ttahub/common 1.4.2 → 1.4.4

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