@barchart/portfolio-client-js 1.1.21 → 1.1.22

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,7 +179,7 @@ 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);
@@ -1004,7 +1004,7 @@ module.exports = function () {
1004
1004
  return {
1005
1005
  JwtGateway: JwtGateway,
1006
1006
  PortfolioGateway: PortfolioGateway,
1007
- version: '1.1.21'
1007
+ version: '1.1.22'
1008
1008
  };
1009
1009
  }();
1010
1010
 
@@ -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)
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.21'
10
+ version: '1.1.22'
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.21",
3
+ "version": "1.1.22",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",