@barchart/portfolio-client-js 1.2.15 → 1.2.18

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.
@@ -268,7 +268,11 @@ module.exports = function () {
268
268
  _this._readTransactionsReportEndpoint = EndpointBuilder.for('read-transaction-report', 'read transaction report').withVerb(VerbType.GET).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
269
269
  pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false).withLiteralParameter('positions', 'positions').withVariableParameter('position', 'position', 'position', true).withLiteralParameter('transactions', 'transactions').withLiteralParameter('formatted', 'formatted');
270
270
  }).withQueryBuilder(function (qb) {
271
- qb.withVariableParameter('start', 'start', 'start', true).withVariableParameter('end', 'end', 'end', true);
271
+ qb.withVariableParameter('start', 'start', 'start', true, function (x) {
272
+ return x.format();
273
+ }).withVariableParameter('end', 'end', 'end', true, function (x) {
274
+ return x.format();
275
+ });
272
276
  }).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(ResponseInterceptor.DATA).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
273
277
  return _this;
274
278
  }
@@ -754,16 +758,21 @@ module.exports = function () {
754
758
  payload.position = position || '*';
755
759
 
756
760
  if (startDay) {
757
- payload.startDay = startDay;
761
+ payload.start = startDay;
758
762
  }
759
763
 
760
764
  if (endDay) {
761
- payload.endDay = endDay;
765
+ payload.end = endDay;
762
766
  }
763
767
 
764
768
  return Gateway.invoke(_this17._readTransactionsReportEndpoint, payload);
765
769
  });
766
770
  }
771
+ }, {
772
+ key: 'readTransactionsFormattedPage',
773
+ value: function readTransactionsFormattedPage(portfolio, position, start, count) {
774
+ return Promise.resolve([]);
775
+ }
767
776
 
768
777
  /**
769
778
  * Creates and starts a new {@link PortfolioGateway} for use in the development environment.
@@ -1352,7 +1361,7 @@ module.exports = function () {
1352
1361
  return {
1353
1362
  JwtGateway: JwtGateway,
1354
1363
  PortfolioGateway: PortfolioGateway,
1355
- version: '1.2.15'
1364
+ version: '1.2.18'
1356
1365
  };
1357
1366
  }();
1358
1367
 
@@ -313,8 +313,8 @@ module.exports = (() => {
313
313
  .withLiteralParameter('formatted', 'formatted');
314
314
  })
315
315
  .withQueryBuilder((qb) => {
316
- qb.withVariableParameter('start', 'start', 'start', true)
317
- .withVariableParameter('end', 'end', 'end', true);
316
+ qb.withVariableParameter('start', 'start', 'start', true, x => x.format())
317
+ .withVariableParameter('end', 'end', 'end', true, x => x.format());
318
318
  })
319
319
  .withRequestInterceptor(requestInterceptorToUse)
320
320
  .withResponseInterceptor(ResponseInterceptor.DATA)
@@ -742,17 +742,21 @@ module.exports = (() => {
742
742
  payload.position = position || '*';
743
743
 
744
744
  if (startDay) {
745
- payload.startDay = startDay;
745
+ payload.start = startDay;
746
746
  }
747
747
 
748
748
  if (endDay) {
749
- payload.endDay = endDay;
749
+ payload.end = endDay;
750
750
  }
751
751
 
752
752
  return Gateway.invoke(this._readTransactionsReportEndpoint, payload);
753
753
  });
754
754
  }
755
755
 
756
+ readTransactionsFormattedPage(portfolio, position, start, count) {
757
+ return Promise.resolve([ ]);
758
+ }
759
+
756
760
  /**
757
761
  * Creates and starts a new {@link PortfolioGateway} for use in the development environment.
758
762
  *
package/lib/index.js CHANGED
@@ -7,6 +7,6 @@ module.exports = (() => {
7
7
  return {
8
8
  JwtGateway: JwtGateway,
9
9
  PortfolioGateway: PortfolioGateway,
10
- version: '1.2.15'
10
+ version: '1.2.18'
11
11
  };
12
12
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-client-js",
3
- "version": "1.2.15",
3
+ "version": "1.2.18",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",