@barchart/portfolio-client-js 1.3.1 → 1.3.2

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.
@@ -541,7 +541,7 @@ module.exports = function () {
541
541
  * @public
542
542
  * @param {String=} portfolio
543
543
  * @param {String=} position
544
- * @param {PositionSummaryFrame[]=|String[]=} frames
544
+ * @param {Array<PositionSummaryFrame>=|Array<String>=} frames
545
545
  * @param {Number=} periods
546
546
  * @param {Day=|String=} start
547
547
  * @returns {Promise<Position[]>}
@@ -1514,7 +1514,7 @@ module.exports = function () {
1514
1514
 
1515
1515
  function _forDevelopment(userId, legacyUserId) {
1516
1516
  return EndpointBuilder.for('read-jwt-token-for-development', 'lookup user identity').withVerb(VerbType.GET).withProtocol(ProtocolType.HTTPS).withHost(Configuration.developmentHost).withPathBuilder(function (pb) {
1517
- pb.withLiteralParameter('token', 'token').withLiteralParameter('barchart', 'barchart').withLiteralParameter('generator', 'generator');
1517
+ pb.withLiteralParameter('json', 'json').withLiteralParameter('token', 'token').withLiteralParameter('barchart', 'barchart').withLiteralParameter('generator', 'generator');
1518
1518
  }).withQueryBuilder(function (qb) {
1519
1519
  qb.withLiteralParameter('user', 'userId', userId).withLiteralParameter('legacy user', 'userLegacyId', legacyUserId).withLiteralParameter('user context', 'userContext', 'TGAM').withLiteralParameter('user permission level', 'userPermissions', 'registered');
1520
1520
  }).withResponseInterceptor(ResponseInterceptor.DATA).endpoint;
@@ -1522,13 +1522,13 @@ module.exports = function () {
1522
1522
 
1523
1523
  function _forStaging(externalRequestInterceptor) {
1524
1524
  return EndpointBuilder.for('translate-jwt-token-for-staging', 'lookup Barchart user identity').withVerb(VerbType.GET).withProtocol(ProtocolType.HTTPS).withHost(Configuration.stagingHost).withPathBuilder(function (pb) {
1525
- return pb.withLiteralParameter('token', 'token').withLiteralParameter('system', 'tgam').withLiteralParameter('converter', 'converter');
1525
+ pb.withLiteralParameter('json', 'json').withLiteralParameter('token', 'token').withLiteralParameter('system', 'tgam').withLiteralParameter('converter', 'converter');
1526
1526
  }).withRequestInterceptor(externalRequestInterceptor).withResponseInterceptor(ResponseInterceptor.DATA).endpoint;
1527
1527
  }
1528
1528
 
1529
1529
  function _forProduction(externalRequestInterceptor) {
1530
1530
  return EndpointBuilder.for('translate-jwt-token-for-production', 'lookup Barchart user identity').withVerb(VerbType.GET).withProtocol(ProtocolType.HTTPS).withHost(Configuration.productionHost).withPathBuilder(function (pb) {
1531
- return pb.withLiteralParameter('token', 'token').withLiteralParameter('system', 'tgam').withLiteralParameter('converter', 'converter');
1531
+ pb.withLiteralParameter('json', 'json').withLiteralParameter('token', 'token').withLiteralParameter('system', 'tgam').withLiteralParameter('converter', 'converter');
1532
1532
  }).withRequestInterceptor(externalRequestInterceptor).withResponseInterceptor(ResponseInterceptor.DATA).endpoint;
1533
1533
  }
1534
1534
 
@@ -1563,7 +1563,7 @@ module.exports = function () {
1563
1563
  return {
1564
1564
  JwtGateway: JwtGateway,
1565
1565
  PortfolioGateway: PortfolioGateway,
1566
- version: '1.3.1'
1566
+ version: '1.3.2'
1567
1567
  };
1568
1568
  }();
1569
1569
 
@@ -577,7 +577,7 @@ module.exports = (() => {
577
577
  * @public
578
578
  * @param {String=} portfolio
579
579
  * @param {String=} position
580
- * @param {PositionSummaryFrame[]=|String[]=} frames
580
+ * @param {Array<PositionSummaryFrame>=|Array<String>=} frames
581
581
  * @param {Number=} periods
582
582
  * @param {Day=|String=} start
583
583
  * @returns {Promise<Position[]>}
@@ -298,7 +298,8 @@ module.exports = (() => {
298
298
  .withProtocol(ProtocolType.HTTPS)
299
299
  .withHost(Configuration.developmentHost)
300
300
  .withPathBuilder((pb) => {
301
- pb.withLiteralParameter('token', 'token')
301
+ pb.withLiteralParameter('json', 'json')
302
+ .withLiteralParameter('token', 'token')
302
303
  .withLiteralParameter('barchart', 'barchart')
303
304
  .withLiteralParameter('generator', 'generator');
304
305
  })
@@ -317,7 +318,12 @@ module.exports = (() => {
317
318
  .withVerb(VerbType.GET)
318
319
  .withProtocol(ProtocolType.HTTPS)
319
320
  .withHost(Configuration.stagingHost)
320
- .withPathBuilder((pb) => pb.withLiteralParameter('token', 'token').withLiteralParameter('system', 'tgam').withLiteralParameter('converter', 'converter'))
321
+ .withPathBuilder((pb) => {
322
+ pb.withLiteralParameter('json', 'json')
323
+ .withLiteralParameter('token', 'token')
324
+ .withLiteralParameter('system', 'tgam')
325
+ .withLiteralParameter('converter', 'converter');
326
+ })
321
327
  .withRequestInterceptor(externalRequestInterceptor)
322
328
  .withResponseInterceptor(ResponseInterceptor.DATA)
323
329
  .endpoint;
@@ -328,7 +334,12 @@ module.exports = (() => {
328
334
  .withVerb(VerbType.GET)
329
335
  .withProtocol(ProtocolType.HTTPS)
330
336
  .withHost(Configuration.productionHost)
331
- .withPathBuilder((pb) => pb.withLiteralParameter('token', 'token').withLiteralParameter('system', 'tgam').withLiteralParameter('converter', 'converter'))
337
+ .withPathBuilder((pb) => {
338
+ pb.withLiteralParameter('json', 'json')
339
+ .withLiteralParameter('token', 'token')
340
+ .withLiteralParameter('system', 'tgam')
341
+ .withLiteralParameter('converter', 'converter');
342
+ })
332
343
  .withRequestInterceptor(externalRequestInterceptor)
333
344
  .withResponseInterceptor(ResponseInterceptor.DATA)
334
345
  .endpoint;
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.3.1'
10
+ version: '1.3.2'
11
11
  };
12
12
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-client-js",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",