@barchart/portfolio-api-common 1.0.135 → 1.0.139

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.
@@ -49,6 +49,7 @@ module.exports = (() => {
49
49
 
50
50
  this._dataFormat.key = this._key;
51
51
  this._dataFormat.description = this._description;
52
+ this._dataFormat.hide = false;
52
53
  this._dataFormat.newsExists = false;
53
54
  this._dataFormat.quantity = null;
54
55
  this._dataFormat.basisPrice = null;
@@ -145,7 +146,7 @@ module.exports = (() => {
145
146
  this._dataFormat.newsExists = exists;
146
147
  });
147
148
 
148
- item._fundamentalDataChangeEvent((data, sender) => {
149
+ item.registerFundamentalDataChangeHandler((data, sender) => {
149
150
  this._dataFormat.fundamental = data;
150
151
  });
151
152
  }
@@ -263,7 +264,7 @@ module.exports = (() => {
263
264
  assert.argumentIsRequired(value, 'value', Boolean);
264
265
 
265
266
  if (this._showClosedPositions !== value) {
266
- this._showClosedPositionsChangeEvent(this._showClosedPositions = value);
267
+ this._showClosedPositionsChangeEvent.fire(this._showClosedPositions = value);
267
268
  }
268
269
  }
269
270
 
@@ -172,7 +172,7 @@ module.exports = (() => {
172
172
  setPositionFundamentalData(data) {
173
173
  assert.argumentIsRequired(data, 'data', Object);
174
174
 
175
- this._fundamentalDataChangeEvent(this._data.fundamental = data);
175
+ this._fundamentalDataChangeEvent.fire(this._data.fundamental = data);
176
176
  }
177
177
 
178
178
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.135",
3
+ "version": "1.0.139",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1208,6 +1208,7 @@ module.exports = (() => {
1208
1208
 
1209
1209
  this._dataFormat.key = this._key;
1210
1210
  this._dataFormat.description = this._description;
1211
+ this._dataFormat.hide = false;
1211
1212
  this._dataFormat.newsExists = false;
1212
1213
  this._dataFormat.quantity = null;
1213
1214
  this._dataFormat.basisPrice = null;
@@ -1304,7 +1305,7 @@ module.exports = (() => {
1304
1305
  this._dataFormat.newsExists = exists;
1305
1306
  });
1306
1307
 
1307
- item._fundamentalDataChangeEvent((data, sender) => {
1308
+ item.registerFundamentalDataChangeHandler((data, sender) => {
1308
1309
  this._dataFormat.fundamental = data;
1309
1310
  });
1310
1311
  }
@@ -1422,7 +1423,7 @@ module.exports = (() => {
1422
1423
  assert.argumentIsRequired(value, 'value', Boolean);
1423
1424
 
1424
1425
  if (this._showClosedPositions !== value) {
1425
- this._showClosedPositionsChangeEvent(this._showClosedPositions = value);
1426
+ this._showClosedPositionsChangeEvent.fire(this._showClosedPositions = value);
1426
1427
  }
1427
1428
  }
1428
1429
 
@@ -1898,7 +1899,7 @@ module.exports = (() => {
1898
1899
  setPositionFundamentalData(data) {
1899
1900
  assert.argumentIsRequired(data, 'data', Object);
1900
1901
 
1901
- this._fundamentalDataChangeEvent(this._data.fundamental = data);
1902
+ this._fundamentalDataChangeEvent.fire(this._data.fundamental = data);
1902
1903
  }
1903
1904
 
1904
1905
  /**