@barchart/portfolio-client-js 1.2.16 → 1.2.17
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 +6 -2
- package/lib/gateway/PortfolioGateway.js +2 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/example/example.js
CHANGED
|
@@ -268,7 +268,11 @@ module.exports = function () {
|
|
|
268
268
|
_this._readTransactionsReportEndpoint = EndpointBuilder.for('read-transaction-report', 'read transaction report').withVerb(VerbType.GET).withProtocol(protocolType).withHost(host).withPort(port).withPathBuilder(function (pb) {
|
|
269
269
|
pb.withLiteralParameter('portfolios', 'portfolios').withVariableParameter('portfolio', 'portfolio', 'portfolio', false).withLiteralParameter('positions', 'positions').withVariableParameter('position', 'position', 'position', true).withLiteralParameter('transactions', 'transactions').withLiteralParameter('formatted', 'formatted');
|
|
270
270
|
}).withQueryBuilder(function (qb) {
|
|
271
|
-
qb.withVariableParameter('start', 'start', 'start', true
|
|
271
|
+
qb.withVariableParameter('start', 'start', 'start', true, function (x) {
|
|
272
|
+
return x.format();
|
|
273
|
+
}).withVariableParameter('end', 'end', 'end', true, function (x) {
|
|
274
|
+
return x.format();
|
|
275
|
+
});
|
|
272
276
|
}).withRequestInterceptor(requestInterceptorToUse).withResponseInterceptor(ResponseInterceptor.DATA).withErrorInterceptor(ErrorInterceptor.GENERAL).endpoint;
|
|
273
277
|
return _this;
|
|
274
278
|
}
|
|
@@ -1352,7 +1356,7 @@ module.exports = function () {
|
|
|
1352
1356
|
return {
|
|
1353
1357
|
JwtGateway: JwtGateway,
|
|
1354
1358
|
PortfolioGateway: PortfolioGateway,
|
|
1355
|
-
version: '1.2.
|
|
1359
|
+
version: '1.2.17'
|
|
1356
1360
|
};
|
|
1357
1361
|
}();
|
|
1358
1362
|
|
|
@@ -313,8 +313,8 @@ module.exports = (() => {
|
|
|
313
313
|
.withLiteralParameter('formatted', 'formatted');
|
|
314
314
|
})
|
|
315
315
|
.withQueryBuilder((qb) => {
|
|
316
|
-
qb.withVariableParameter('start', 'start', 'start', true)
|
|
317
|
-
.withVariableParameter('end', 'end', 'end', true);
|
|
316
|
+
qb.withVariableParameter('start', 'start', 'start', true, x => x.format())
|
|
317
|
+
.withVariableParameter('end', 'end', 'end', true, x => x.format());
|
|
318
318
|
})
|
|
319
319
|
.withRequestInterceptor(requestInterceptorToUse)
|
|
320
320
|
.withResponseInterceptor(ResponseInterceptor.DATA)
|
package/lib/index.js
CHANGED