@ttahub/common 1.5.0 → 1.5.2

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/README.md CHANGED
File without changes
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
- {
2
- "name": "@ttahub/common",
3
- "version": "1.5.0",
4
- "description": "The purpose of this package is to reduce code duplication between the frontend and backend projects.",
5
- "main": "src/index.js",
6
- "author": "",
7
- "license": "ISC",
8
- "devDependencies": {}
9
- }
1
+ {
2
+ "name": "@ttahub/common",
3
+ "version": "1.5.2",
4
+ "description": "The purpose of this package is to reduce code duplication between the frontend and backend projects.",
5
+ "main": "src/index.js",
6
+ "author": "",
7
+ "license": "ISC",
8
+ "devDependencies": {}
9
+ }
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,26 +162,23 @@ const USER_ROLES = [
178
162
  'Health Specialist',
179
163
  'System Specialist',
180
164
  ];
181
- exports.USER_ROLES = USER_ROLES;
182
165
 
183
- const CLOSE_SUSPEND_REASONS = [
184
- 'Duplicate goal',
185
- 'Key staff turnover / vacancies',
186
- 'Recipient is not responding',
187
- 'Recipient request',
166
+ // TODO: This is the deduped combination of GOAL_CLOSE_REASONS and GOAL_SUSPEND_REASONS
167
+ const CLOSE_SUSPEND_REASONS = [
168
+ 'Duplicate goal',
169
+ 'Key staff turnover / vacancies',
170
+ 'Recipient is not responding',
171
+ 'Recipient request',
188
172
  'Regional Office request',
189
173
  'TTA complete',
190
174
  ];
191
175
 
192
- exports.CLOSE_SUSPEND_REASONS = CLOSE_SUSPEND_REASONS;
193
-
194
176
  const GOAL_CLOSE_REASONS = [
195
177
  'Duplicate goal',
196
178
  'Recipient request',
197
179
  'Regional Office request',
198
180
  'TTA complete',
199
181
  ];
200
- exports.GOAL_CLOSE_REASONS = GOAL_CLOSE_REASONS;
201
182
 
202
183
  const GOAL_SUSPEND_REASONS = [
203
184
  'Key staff turnover / vacancies',
@@ -205,7 +186,6 @@ const GOAL_SUSPEND_REASONS = [
205
186
  'Recipient is not responding',
206
187
  'Regional Office request',
207
188
  ];
208
- exports.GOAL_SUSPEND_REASONS = GOAL_SUSPEND_REASONS;
209
189
 
210
190
  const GOAL_SOURCES = [
211
191
  'Federal monitoring issues, including CLASS and RANs',
@@ -215,13 +195,10 @@ const GOAL_SOURCES = [
215
195
  'Training event follow-up',
216
196
  ];
217
197
 
218
- exports.GOAL_SOURCES = GOAL_SOURCES;
219
-
220
198
  const APPROVER_STATUSES = {
221
199
  APPROVED: 'approved',
222
200
  NEEDS_ACTION: 'needs_action',
223
201
  };
224
- exports.APPROVER_STATUSES = APPROVER_STATUSES;
225
202
 
226
203
  const SCOPE_IDS = {
227
204
  SITE_ACCESS: 1,
@@ -234,26 +211,46 @@ const SCOPE_IDS = {
234
211
  READ_TRAINING_REPORTS: 8,
235
212
  POC_TRAINING_REPORTS: 9,
236
213
  };
237
- exports.SCOPE_IDS = SCOPE_IDS;
238
214
 
239
215
  const DECIMAL_BASE = 10;
240
- exports.DECIMAL_BASE = DECIMAL_BASE;
241
216
 
242
217
  const ALERT_STATUSES = {
243
218
  UNPUBLISHED: 'Unpublished',
244
219
  PUBLISHED: 'Published'
245
220
  };
246
- exports.ALERT_STATUSES = ALERT_STATUSES;
247
221
 
248
222
  const ALERT_VARIANTS = {
249
223
  INFO: 'info',
250
224
  EMERGENCY: 'emergency'
251
225
  };
252
- exports.ALERT_VARIANTS = ALERT_VARIANTS;
253
226
 
254
227
  const ALERT_SIZES = {
255
228
  STANDARD: 'standard',
256
229
  SLIM: 'slim',
257
230
  LARGE: 'large'
258
231
  };
259
- exports.ALERT_SIZES = ALERT_SIZES;
232
+
233
+ module.exports = {
234
+ RECIPIENT_PARTICIPANTS,
235
+ OTHER_ENTITY_PARTICIPANTS,
236
+ ALL_PARTICIPANTS,
237
+ TOPICS,
238
+ REASONS,
239
+ REPORT_STATUSES,
240
+ TRAINING_REPORT_STATUSES,
241
+ TRAINING_REPORT_STATUSES_URL_PARAMS,
242
+ EVENT_REPORT_STATUSES,
243
+ TARGET_POPULATIONS,
244
+ EVENT_TARGET_POPULATIONS,
245
+ USER_ROLES,
246
+ CLOSE_SUSPEND_REASONS,
247
+ GOAL_CLOSE_REASONS,
248
+ GOAL_SUSPEND_REASONS,
249
+ GOAL_SOURCES,
250
+ APPROVER_STATUSES,
251
+ SCOPE_IDS,
252
+ DECIMAL_BASE,
253
+ ALERT_STATUSES,
254
+ ALERT_VARIANTS,
255
+ ALERT_SIZES,
256
+ };
package/yarn-error.log DELETED
@@ -1,45 +0,0 @@
1
- Arguments:
2
- C:\Program Files\nodejs\node.exe C:\Users\Adam Levin\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js --cwd ./packages/common publish
3
-
4
- PATH:
5
- C:\Users\ADAMLE~1\AppData\Local\Temp\yarn--1691156345583-0.05828766129489682;C:\Develop\Repos\HHS-Head-Start-TTADP\node_modules\.bin;C:\Users\Adam Levin\AppData\Local\Yarn\Data\link\node_modules\.bin;C:\Users\Adam Levin\AppData\Local\Yarn\bin;C:\Program Files\libexec\lib\node_modules\npm\bin\node-gyp-bin;C:\Program Files\lib\node_modules\npm\bin\node-gyp-bin;C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Python311\Scripts\;C:\Python311\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\HashiCorp\Vagrant\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\SourceGear\Common\DiffMerge\;C:\Program Files (x86)\dotnet\;C:\ProgramData\chocolatey\bin;C:\Develop\Tools\Terraform\;C:\Program Files\Git\cmd;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Docker\Docker\resources\bin;C:\Users\Adam Levin\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\nodejs\;C:\Users\Adam Levin\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\Adam Levin\AppData\Local\Programs\Python\Python39\;C:\Users\Adam Levin\AppData\Local\Microsoft\WindowsApps;C:\Users\Adam Levin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Git\bin;C:\Users\Adam Levin\AppData\Local\Microsoft\WindowsApps\;C:\Users\Adam Levin\.dotnet\tools;C:\Users\Adam Levin\AppData\Local\GitHubDesktop\bin;C:\Program Files\PostgreSQL\13\bin;c:\;C:\Program Files\ClamAV;C:\Users\Adam Levin\AppData\Roaming\nvm;C:\Users\Adam Levin\AppData\Roaming\npm;C:\Users\Adam Levin\AppData\Local\Keybase\
6
-
7
- Yarn version:
8
- 1.22.10
9
-
10
- Node version:
11
- 18.16.0
12
-
13
- Platform:
14
- win32 x64
15
-
16
- Trace:
17
- Error: canceled
18
- at Interface.<anonymous> (C:\Users\Adam Levin\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:136216:13)
19
- at Interface.emit (node:events:513:28)
20
- at [_ttyWrite] [as _ttyWrite] (node:internal/readline/interface:1131:18)
21
- at ReadStream.onkeypress (node:internal/readline/interface:270:20)
22
- at ReadStream.emit (node:events:513:28)
23
- at emitKeys (node:internal/readline/utils:357:14)
24
- at emitKeys.next (<anonymous>)
25
- at ReadStream.onData (node:internal/readline/emitKeypressEvents:64:36)
26
- at ReadStream.emit (node:events:513:28)
27
- at addChunk (node:internal/streams/readable:324:12)
28
-
29
- npm manifest:
30
- {
31
- "name": "@ttahub/common",
32
- "version": "1.3.0",
33
- "description": "The purpose of this package is to reduce code duplication between the frontend and backend projects.",
34
- "main": "src/index.js",
35
- "author": "",
36
- "license": "ISC",
37
- "devDependencies": {}
38
- }
39
-
40
- yarn manifest:
41
- No manifest
42
-
43
- Lockfile:
44
- # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
45
- # yarn lockfile v1