@barchart/portfolio-client-js 1.2.16 → 1.2.17

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
  }
@@ -1352,7 +1356,7 @@ module.exports = function () {
1352
1356
  return {
1353
1357
  JwtGateway: JwtGateway,
1354
1358
  PortfolioGateway: PortfolioGateway,
1355
- version: '1.2.16'
1359
+ version: '1.2.17'
1356
1360
  };
1357
1361
  }();
1358
1362
 
@@ -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)
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.16'
10
+ version: '1.2.17'
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.16",
3
+ "version": "1.2.17",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",