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