@barchart/portfolio-client-js 1.2.3 → 1.2.4

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.
@@ -215,7 +215,7 @@ module.exports = function () {
215
215
 
216
216
  _this._updatePositionEndpoint = EndpointBuilder.for('update-position', 'update position').withVerb(VerbType.PUT).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
217
217
  pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false).withLiteralParameter('positions', 'positions').withVariableParameter('position', 'position', 'position', false);
218
- }).withBody('portfolio').withRequestInterceptor(RequestInterceptor.PLAIN_TEXT_RESPONSE).withRequestInterceptor(RequestInterceptor.fromDelegate(updatePositionRequestInterceptor)).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPositionDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
218
+ }).withBody('portfolio').withRequestInterceptor(RequestInterceptor.fromDelegate(updatePositionRequestInterceptor)).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPositionMutateDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
219
219
 
220
220
  _this._deletePositionEndpoint = EndpointBuilder.for('delete-position', 'delete position').withVerb(VerbType.DELETE).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
221
221
  pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false).withLiteralParameter('positions', 'positions').withVariableParameter('position', 'position', 'position', false);
@@ -581,7 +581,7 @@ module.exports = function () {
581
581
  * @public
582
582
  * @param {String} portfolio
583
583
  * @param {String} position
584
- * @param {Number} transaction
584
+ * @param {Number} sequence
585
585
  * @param {Boolean=} force
586
586
  * @param {Boolean=} echo
587
587
  * @returns {Promise.<TransactionMutateResult>}
@@ -1210,7 +1210,7 @@ module.exports = function () {
1210
1210
  return {
1211
1211
  JwtGateway: JwtGateway,
1212
1212
  PortfolioGateway: PortfolioGateway,
1213
- version: '1.2.3'
1213
+ version: '1.2.4'
1214
1214
  };
1215
1215
  }();
1216
1216
 
@@ -150,10 +150,9 @@ module.exports = (() => {
150
150
  .withVariableParameter('position', 'position', 'position', false);
151
151
  })
152
152
  .withBody('portfolio')
153
- .withRequestInterceptor(RequestInterceptor.PLAIN_TEXT_RESPONSE)
154
153
  .withRequestInterceptor(RequestInterceptor.fromDelegate(updatePositionRequestInterceptor))
155
154
  .withRequestInterceptor(requestInterceptorToUse)
156
- .withResponseInterceptor(responseInterceptorForPositionDeserialization)
155
+ .withResponseInterceptor(responseInterceptorForPositionMutateDeserialization)
157
156
  .withErrorInterceptor(ErrorInterceptor.GENERAL)
158
157
  .endpoint;
159
158
 
@@ -563,7 +562,7 @@ module.exports = (() => {
563
562
  * @public
564
563
  * @param {String} portfolio
565
564
  * @param {String} position
566
- * @param {Number} transaction
565
+ * @param {Number} sequence
567
566
  * @param {Boolean=} force
568
567
  * @param {Boolean=} echo
569
568
  * @returns {Promise.<TransactionMutateResult>}
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.3'
10
+ version: '1.2.4'
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.3",
3
+ "version": "1.2.4",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",