@ttahub/common 1.1.2 → 1.1.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.
- package/README.md +10 -1
- package/package.json +1 -1
- package/src/index.js +26 -3
package/README.md
CHANGED
|
@@ -17,7 +17,16 @@ Whenever changes to this package are made, you will need to:
|
|
|
17
17
|
|
|
18
18
|
If your PR depends on the latest version of this package, please don't forget to run `yarn upgrade @ttahub/common` and commit the changes to `package.json` and `yarn.lock`.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## Versions
|
|
21
|
+
### 1.1.4
|
|
22
|
+
Distinguish between training report url params and training report statuses
|
|
21
23
|
|
|
24
|
+
### 1.1.3
|
|
25
|
+
Add "event target populations"
|
|
26
|
+
|
|
27
|
+
### 1.1.2
|
|
22
28
|
#### 1.1.1
|
|
23
29
|
- Add COLLABORATOR_TRAINING_REPORTS permissions
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -112,12 +112,27 @@ const REPORT_STATUSES = {
|
|
|
112
112
|
exports.REPORT_STATUSES = REPORT_STATUSES;
|
|
113
113
|
|
|
114
114
|
const TRAINING_REPORT_STATUSES = {
|
|
115
|
-
NOT_STARTED: '
|
|
116
|
-
IN_PROGRESS: '
|
|
117
|
-
COMPLETE: '
|
|
115
|
+
NOT_STARTED: 'Not started',
|
|
116
|
+
IN_PROGRESS: 'In progress',
|
|
117
|
+
COMPLETE: 'Complete',
|
|
118
118
|
};
|
|
119
119
|
exports.TRAINING_REPORT_STATUSES = TRAINING_REPORT_STATUSES;
|
|
120
120
|
|
|
121
|
+
const TRAINING_REPORT_STATUSES_URL_PARAMS = {
|
|
122
|
+
'not-started': EVENT_STATUS.NOT_STARTED,
|
|
123
|
+
'in-progress': EVENT_STATUS.IN_PROGRESS,
|
|
124
|
+
complete: EVENT_STATUS.COMPLETE,
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
exports.TRAINING_REPORT_STATUSES_URL_PARAMS = TRAINING_REPORT_STATUSES_URL_PARAMS;
|
|
128
|
+
|
|
129
|
+
const EVENT_REPORT_STATUSES = {
|
|
130
|
+
IN_PROGRESS: 'In progress',
|
|
131
|
+
COMPLETE: 'Complete',
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
exports.EVENT_REPORT_STATUSES = EVENT_REPORT_STATUSES;
|
|
135
|
+
|
|
121
136
|
const TARGET_POPULATIONS = [
|
|
122
137
|
'Infants and Toddlers (ages birth to 3)',
|
|
123
138
|
'Preschool (ages 3-5)',
|
|
@@ -132,6 +147,14 @@ const TARGET_POPULATIONS = [
|
|
|
132
147
|
];
|
|
133
148
|
exports.TARGET_POPULATIONS = TARGET_POPULATIONS;
|
|
134
149
|
|
|
150
|
+
const EVENT_TARGET_POPULATIONS = [
|
|
151
|
+
'Children/Families affected by systemic discrimination/bias/exclusion',
|
|
152
|
+
'Children/Families affected by traumatic events',
|
|
153
|
+
'Parents/Families impacted by health disparities'
|
|
154
|
+
];
|
|
155
|
+
|
|
156
|
+
exports.EVENT_TARGET_POPULATIONS = EVENT_TARGET_POPULATIONS;
|
|
157
|
+
|
|
135
158
|
const USER_ROLES = [
|
|
136
159
|
'Central Office',
|
|
137
160
|
'Other Federal Staff',
|