@ttahub/common 2.1.6 → 2.1.8

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,7 +21,11 @@ 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
- ## 1.4.0
24
+ ## 2.1.6
25
+
26
+ Remove constants related to ElasticSearch.
27
+
28
+ ## 1.4.0
25
29
  Add SUPPORT_TYPE
26
30
 
27
31
  ### 1.1.9/1.2.0
@@ -40,7 +44,7 @@ Distinguish between training report url params and training report statuses
40
44
  Add "event target populations"
41
45
 
42
46
  ### 1.1.2
43
- #### 1.1.1
47
+ #### 1.1.1
44
48
  - Add COLLABORATOR_TRAINING_REPORTS permissions
45
49
 
46
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttahub/common",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
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
@@ -277,9 +277,6 @@ const COMMUNICATION_METHODS = [
277
277
  exports.COMMUNICATION_METHODS = COMMUNICATION_METHODS;
278
278
 
279
279
  const COMMUNICATION_PURPOSES = [
280
- 'CLASS',
281
- 'FEI',
282
- 'Monitoring',
283
280
  'New TTA request',
284
281
  'Program Specialist or Regional Office meeting',
285
282
  'Program Specialist\'s Monthly contact',
@@ -381,3 +378,9 @@ exports.DISALLOWED_URLS = DISALLOWED_URLS;
381
378
  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;
382
379
  exports.VALID_URL_REGEX = VALID_URL_REGEX;
383
380
 
381
+ const TOTAL_HOURS_AND_RECIPIENT_GRAPH_TRACE_IDS = {
382
+ TRAINING: 'training',
383
+ TECHNICAL_ASSISTANCE: 'technical-assistance',
384
+ BOTH: 'both',
385
+ };
386
+ exports.TOTAL_HOURS_AND_RECIPIENT_GRAPH_TRACE_IDS = TOTAL_HOURS_AND_RECIPIENT_GRAPH_TRACE_IDS;