@ttahub/common 1.1.3 → 1.1.5

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
@@ -18,7 +18,11 @@ Whenever changes to this package are made, you will need to:
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
23
+
21
24
  ### 1.1.3
25
+ Add "event target populations"
22
26
 
23
27
  ### 1.1.2
24
28
  #### 1.1.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttahub/common",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
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
@@ -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: 'not-started',
116
- IN_PROGRESS: 'in-progress',
117
- COMPLETE: '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': TRAINING_REPORT_STATUSES.NOT_STARTED,
123
+ 'in-progress': TRAINING_REPORT_STATUSES.IN_PROGRESS,
124
+ complete: TRAINING_REPORT_STATUSES.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)',