@barchart/portfolio-client-js 1.2.10 → 1.2.11

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.
@@ -243,7 +243,7 @@ module.exports = function () {
243
243
  pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false).withLiteralParameter('positions', 'positions').withVariableParameter('position', 'position', 'position', false).withLiteralParameter('transactions', 'transactions');
244
244
  }).withQueryBuilder(function (qb) {
245
245
  qb.withVariableParameter('type', 'type', 'type', false, function (t) {
246
- return getTransactionTypeCode(t);
246
+ return t.code;
247
247
  });
248
248
  }).withBody('transaction').withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPositionMutateDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
249
249
 
@@ -255,7 +255,7 @@ module.exports = function () {
255
255
  pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false).withLiteralParameter('positions', 'positions').withVariableParameter('position', 'position', 'position', false).withLiteralParameter('transactions', 'transactions').withVariableParameter('sequence', 'sequence', 'sequence', false);
256
256
  }).withQueryBuilder(function (qb) {
257
257
  qb.withVariableParameter('type', 'type', 'type', false, function (t) {
258
- return getTransactionTypeCode(t);
258
+ return t.code;
259
259
  });
260
260
  }).withBody('transaction').withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPositionMutateDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
261
261
 
@@ -1322,7 +1322,7 @@ module.exports = function () {
1322
1322
  return {
1323
1323
  JwtGateway: JwtGateway,
1324
1324
  PortfolioGateway: PortfolioGateway,
1325
- version: '1.2.10'
1325
+ version: '1.2.11'
1326
1326
  };
1327
1327
  }();
1328
1328
 
@@ -229,7 +229,7 @@ module.exports = (() => {
229
229
  .withLiteralParameter('transactions', 'transactions');
230
230
  })
231
231
  .withQueryBuilder((qb) => {
232
- qb.withVariableParameter('type', 'type', 'type', false, t => getTransactionTypeCode(t));
232
+ qb.withVariableParameter('type', 'type', 'type', false, t => t.code);
233
233
  })
234
234
  .withBody('transaction')
235
235
  .withRequestInterceptor(requestInterceptorToUse)
@@ -269,7 +269,7 @@ module.exports = (() => {
269
269
  .withVariableParameter('sequence', 'sequence', 'sequence', false);
270
270
  })
271
271
  .withQueryBuilder((qb) => {
272
- qb.withVariableParameter('type', 'type', 'type', false, t => getTransactionTypeCode(t));
272
+ qb.withVariableParameter('type', 'type', 'type', false, t => t.code);
273
273
  })
274
274
  .withBody('transaction')
275
275
  .withRequestInterceptor(requestInterceptorToUse)
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.10'
10
+ version: '1.2.11'
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.10",
3
+ "version": "1.2.11",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",