@barchart/portfolio-client-js 1.1.24 → 1.1.25

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.
@@ -179,11 +179,11 @@ module.exports = function () {
179
179
 
180
180
  _this._createPortfolioEndpoint = EndpointBuilder.for('create-portfolio', 'create portfolio').withVerb(VerbType.POST).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
181
181
  pb.withLiteralParameter('portfolios', 'portfolios');
182
- }).withBody('portfolio').withRequestInterceptor(RequestInterceptor.fromDelegate(createPortfolioRequestInterceptor)).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPortfolioDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
182
+ }).withBody('portfolio').withRequestInterceptor(RequestInterceptor.PLAIN_TEXT_RESPONSE).withRequestInterceptor(RequestInterceptor.fromDelegate(createPortfolioRequestInterceptor)).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPortfolioDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
183
183
 
184
184
  _this._updatePortfolioEndpoint = EndpointBuilder.for('update-portfolio', 'update portfolio').withVerb(VerbType.PUT).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
185
185
  pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false);
186
- }).withBody('portfolio').withRequestInterceptor(RequestInterceptor.fromDelegate(updatePortfolioRequestInterceptor)).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPortfolioDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
186
+ }).withBody('portfolio').withRequestInterceptor(RequestInterceptor.PLAIN_TEXT_RESPONSE).withRequestInterceptor(RequestInterceptor.fromDelegate(updatePortfolioRequestInterceptor)).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(responseInterceptorForPortfolioDeserialization).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
187
187
 
188
188
  _this._deletePortfolioEndpoint = EndpointBuilder.for('delete-portfolio', 'delete portfolios').withVerb(VerbType.DELETE).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
189
189
  pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false);
@@ -651,7 +651,7 @@ module.exports = function () {
651
651
  try {
652
652
  return JSON.parse(response.data, PortfolioSchema.CLIENT.schema.getReviver());
653
653
  } catch (e) {
654
- console.log('Error deserializing positions', e);
654
+ console.log('Error deserializing portfolios', e);
655
655
  }
656
656
  });
657
657
 
@@ -1011,7 +1011,7 @@ module.exports = function () {
1011
1011
  return {
1012
1012
  JwtGateway: JwtGateway,
1013
1013
  PortfolioGateway: PortfolioGateway,
1014
- version: '1.1.24'
1014
+ version: '1.1.25'
1015
1015
  };
1016
1016
  }();
1017
1017
 
@@ -77,6 +77,7 @@ module.exports = (() => {
77
77
  pb.withLiteralParameter('portfolios', 'portfolios');
78
78
  })
79
79
  .withBody('portfolio')
80
+ .withRequestInterceptor(RequestInterceptor.PLAIN_TEXT_RESPONSE)
80
81
  .withRequestInterceptor(RequestInterceptor.fromDelegate(createPortfolioRequestInterceptor))
81
82
  .withRequestInterceptor(requestInterceptorToUse)
82
83
  .withResponseInterceptor(responseInterceptorForPortfolioDeserialization)
@@ -93,6 +94,7 @@ module.exports = (() => {
93
94
  .withVariableParameter('portfolio', 'portfolio', 'portfolio', false);
94
95
  })
95
96
  .withBody('portfolio')
97
+ .withRequestInterceptor(RequestInterceptor.PLAIN_TEXT_RESPONSE)
96
98
  .withRequestInterceptor(RequestInterceptor.fromDelegate(updatePortfolioRequestInterceptor))
97
99
  .withRequestInterceptor(requestInterceptorToUse)
98
100
  .withResponseInterceptor(responseInterceptorForPortfolioDeserialization)
@@ -614,7 +616,7 @@ module.exports = (() => {
614
616
  try {
615
617
  return JSON.parse(response.data, PortfolioSchema.CLIENT.schema.getReviver());
616
618
  } catch (e) {
617
- console.log('Error deserializing positions', e);
619
+ console.log('Error deserializing portfolios', e);
618
620
  }
619
621
  });
620
622
 
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.1.24'
10
+ version: '1.1.25'
11
11
  };
12
12
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-client-js",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",