@barchart/portfolio-api-common 1.2.119 → 1.2.120

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.
@@ -11,13 +11,10 @@ module.exports = (() => {
11
11
  * @extends {Enum}
12
12
  * @param {String} code
13
13
  * @param {String} description
14
- * @param {Boolean} internal
15
14
  */
16
15
  class CorporateActionType extends Enum {
17
- constructor(code, description, internal) {
16
+ constructor(code, description) {
18
17
  super(code, description);
19
-
20
- this._internal = is.boolean(internal) && internal;
21
18
  }
22
19
 
23
20
  /**
@@ -76,14 +73,14 @@ module.exports = (() => {
76
73
  }
77
74
 
78
75
  /**
79
- * A fictitious event, used for internal system purposes.
76
+ * A delisting.
80
77
  *
81
78
  * @public
82
79
  * @static
83
80
  * @returns {CorporateActionType}
84
81
  */
85
- static get JOB() {
86
- return job;
82
+ static get DELIST() {
83
+ return delist;
87
84
  }
88
85
  }
89
86
 
@@ -91,7 +88,7 @@ module.exports = (() => {
91
88
  const nameChange = new CorporateActionType('NAME_CHANGE', 'Name Change', false);
92
89
  const dividend = new CorporateActionType('DIVIDEND', 'Dividend', false);
93
90
  const split = new CorporateActionType('SPLIT', 'Split', false);
94
- const job = new CorporateActionType('JOB', 'Job', true);
91
+ const delist = new CorporateActionType('DELIST', 'Delist', false);
95
92
 
96
93
  return CorporateActionType;
97
94
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.2.119",
3
+ "version": "1.2.120",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",