@ttahub/common 1.1.5 → 1.1.7

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,6 +18,9 @@ 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.6
22
+ Add suspended as an option to training report URL params and status
23
+
21
24
  ### 1.1.4
22
25
  Distinguish between training report url params and training report statuses
23
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttahub/common",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
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
@@ -115,6 +115,7 @@ const TRAINING_REPORT_STATUSES = {
115
115
  NOT_STARTED: 'Not started',
116
116
  IN_PROGRESS: 'In progress',
117
117
  COMPLETE: 'Complete',
118
+ SUSPENDED: 'Suspended',
118
119
  };
119
120
  exports.TRAINING_REPORT_STATUSES = TRAINING_REPORT_STATUSES;
120
121
 
@@ -122,6 +123,7 @@ const TRAINING_REPORT_STATUSES_URL_PARAMS = {
122
123
  'not-started': TRAINING_REPORT_STATUSES.NOT_STARTED,
123
124
  'in-progress': TRAINING_REPORT_STATUSES.IN_PROGRESS,
124
125
  complete: TRAINING_REPORT_STATUSES.COMPLETE,
126
+ suspended: TRAINING_REPORT_STATUSES.SUSPENDED,
125
127
  };
126
128
 
127
129
  exports.TRAINING_REPORT_STATUSES_URL_PARAMS = TRAINING_REPORT_STATUSES_URL_PARAMS;