@ttahub/common 2.2.20 → 2.2.22

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
@@ -21,6 +21,12 @@ Note: On Windows you will need to use `yarn add @ttahub/common@1.x.0` to update
21
21
 
22
22
  ## Versions
23
23
 
24
+ # 2.2.22
25
+ Add additional indicators
26
+
27
+ # 2.2.21
28
+ Add additional trace IDs
29
+
24
30
  # 2.2.18
25
31
  Added indicator names.
26
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttahub/common",
3
- "version": "2.2.20",
3
+ "version": "2.2.22",
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/constants.js CHANGED
@@ -121,6 +121,7 @@ const PRIORITY_INDICATORS = [
121
121
  'New recipient',
122
122
  'New staff',
123
123
  'No TTA',
124
+ 'Underenrolled',
124
125
  ];
125
126
 
126
127
  exports.PRIORITY_INDICATORS = PRIORITY_INDICATORS;
@@ -439,15 +440,17 @@ exports.DISALLOWED_URLS = DISALLOWED_URLS;
439
440
  const VALID_URL_REGEX = /(?<url>(?<scheme>http(?:s)?):\/\/(?:(?<user>[a-zA-Z0-9._]+)(?:[:](?<password>[a-zA-Z0-9%._\+~#=]+))?[@])?(?:(?:www\.)?(?<host>[-a-zA-Z0-9%._\+~#=]{1,}\.[a-z]{2,6})|(?<ip>(?:[0-9]{1,3}\.){3}[0-9]{1,3}))(?:[:](?<port>[0-9]+))?(?:[\/](?<path>[-a-zA-Z0-9'@:%_\+.,~#&\/=()]*[-a-zA-Z0-9@:%_\+.~#&\/=()])?)?(?:[?](?<query>[-a-zA-Z0-9@:%_\+.~#&\/=()]*))*)/ig;
440
441
  exports.VALID_URL_REGEX = VALID_URL_REGEX;
441
442
 
442
- const TOTAL_HOURS_AND_RECIPIENT_GRAPH_TRACE_IDS = {
443
+ const TRACE_IDS = {
443
444
  TRAINING: 'training',
444
445
  TECHNICAL_ASSISTANCE: 'technical-assistance',
445
446
  BOTH: 'both',
447
+ ACTIVE_DEFICIENCIES_WITH_TTA_SUPPORT: 'active-deficiencies-with-tta-support',
448
+ ALL_ACTIVE_DEFICIENCIES: 'all-active-deficiencies',
446
449
  };
447
- exports.TOTAL_HOURS_AND_RECIPIENT_GRAPH_TRACE_IDS = TOTAL_HOURS_AND_RECIPIENT_GRAPH_TRACE_IDS;
450
+
451
+ exports.TRACE_IDS = TRACE_IDS;
448
452
 
449
-
450
- const COLLAB_REPORT_PARTICIPANTS = [
453
+ const COLLAB_REPORT_PARTICIPANTS = [
451
454
  "Child Care and Development Fund",
452
455
  "Child care licensing",
453
456
  "Child Care Training and Technical Assistance Network",