@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.
- package/example/example.js +3 -3
- package/lib/gateway/PortfolioGateway.js +2 -3
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/example/example.js
CHANGED
|
@@ -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.
|
|
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}
|
|
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.
|
|
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(
|
|
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}
|
|
565
|
+
* @param {Number} sequence
|
|
567
566
|
* @param {Boolean=} force
|
|
568
567
|
* @param {Boolean=} echo
|
|
569
568
|
* @returns {Promise.<TransactionMutateResult>}
|
package/lib/index.js
CHANGED