@orbis-systems/orbis-api-clients 0.5.2 → 0.6.0
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/dist/aesmidas/index.d.ts +274 -18
- package/dist/aesmidas/index.d.ts.map +1 -1
- package/dist/aesmidas/index.esm.js +54 -6
- package/dist/aesmidas/index.esm.js.map +1 -1
- package/dist/aesmidas/index.js +54 -6
- package/dist/aesmidas/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/insight/index.d.ts +1844 -244
- package/dist/insight/index.d.ts.map +1 -1
- package/dist/insight/index.esm.js +198 -107
- package/dist/insight/index.esm.js.map +1 -1
- package/dist/insight/index.js +197 -106
- package/dist/insight/index.js.map +1 -1
- package/dist/middleware/index.d.ts +1 -0
- package/dist/middleware/index.d.ts.map +1 -1
- package/dist/middleware/index.esm.js +3 -1
- package/dist/middleware/index.esm.js.map +1 -1
- package/dist/middleware/index.js +3 -1
- package/dist/middleware/index.js.map +1 -1
- package/dist/orbis/index.d.ts +12 -0
- package/dist/orbis/index.d.ts.map +1 -1
- package/dist/orbis/index.esm.js +19 -2
- package/dist/orbis/index.esm.js.map +1 -1
- package/dist/orbis/index.js +19 -2
- package/dist/orbis/index.js.map +1 -1
- package/dist/uma/index.d.ts +221 -17
- package/dist/uma/index.d.ts.map +1 -1
- package/dist/uma/index.esm.js +158 -15
- package/dist/uma/index.esm.js.map +1 -1
- package/dist/uma/index.js +157 -14
- package/dist/uma/index.js.map +1 -1
- package/package.json +137 -137
package/dist/aesmidas/index.js
CHANGED
|
@@ -86,6 +86,7 @@ class $3621850f1f570615$export$4f22f74eddb7716a {
|
|
|
86
86
|
this.storage = config.storage ?? sessionStorage;
|
|
87
87
|
this.axiosInstance = (0, ($parcel$interopDefault($5Loj3$axios))).create({
|
|
88
88
|
baseURL: config.baseUrl,
|
|
89
|
+
withCredentials: config.withCredentials,
|
|
89
90
|
headers: {
|
|
90
91
|
'Content-Type': 'application/json',
|
|
91
92
|
...config.defaultHeaders
|
|
@@ -227,6 +228,7 @@ class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$ex
|
|
|
227
228
|
this.renewTokenCallback = renewTokenCallback;
|
|
228
229
|
}
|
|
229
230
|
async prepareAuthRequestConfig() {
|
|
231
|
+
if (this.config.withCredentials) return {};
|
|
230
232
|
let { accessToken: accessToken } = this.getAuthData() || {};
|
|
231
233
|
if (!accessToken) {
|
|
232
234
|
(0, $5Loj3$consola.consola).warn('No access token found. Please set auth data after authorization.');
|
|
@@ -251,7 +253,7 @@ class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$ex
|
|
|
251
253
|
isTokenExpired(token) {
|
|
252
254
|
const payload = (0, $5Loj3$jwtdecode.jwtDecode)(token);
|
|
253
255
|
if (!payload.exp) return true;
|
|
254
|
-
return (0, $5Loj3$datefns.isBefore)((0, $5Loj3$datefns.subMinutes)(payload.exp * 1000,
|
|
256
|
+
return (0, $5Loj3$datefns.isBefore)((0, $5Loj3$datefns.subMinutes)(payload.exp * 1000, 1), Date.now());
|
|
255
257
|
}
|
|
256
258
|
async renewToken() {
|
|
257
259
|
const callback = this.config.onRenewToken ?? this.renewTokenCallback;
|
|
@@ -375,6 +377,20 @@ class $94a67bf1856cdfc2$export$accd73d198d77d2f {
|
|
|
375
377
|
secure: true
|
|
376
378
|
});
|
|
377
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* @tags DataSource
|
|
382
|
+
* @name GetDataSourceBitMapping
|
|
383
|
+
* @summary Get All DataSource Bit Mappings - All users - available in Microservice
|
|
384
|
+
* @request GET:/api/datasource/data-source-bit-mapping
|
|
385
|
+
* @secure
|
|
386
|
+
*/ getDataSourceBitMapping(config) {
|
|
387
|
+
return this.apiClient.request({
|
|
388
|
+
...config,
|
|
389
|
+
url: `/datasource/data-source-bit-mapping`,
|
|
390
|
+
method: 'GET',
|
|
391
|
+
secure: true
|
|
392
|
+
});
|
|
393
|
+
}
|
|
378
394
|
/**
|
|
379
395
|
* @tags DataSource
|
|
380
396
|
* @name GetDataSourceTallyCount
|
|
@@ -1525,6 +1541,22 @@ class $da89e2663382a79a$export$82b8d343c504672 {
|
|
|
1525
1541
|
responseType: 'json'
|
|
1526
1542
|
});
|
|
1527
1543
|
}
|
|
1544
|
+
/**
|
|
1545
|
+
* @tags Quote
|
|
1546
|
+
* @name GetOptionDayChart
|
|
1547
|
+
* @summary Query Option Day Chart - All users - available in Microservice
|
|
1548
|
+
* @request GET:/api/quote/option-day-chart
|
|
1549
|
+
* @secure
|
|
1550
|
+
*/ getOptionDayChart(query, config) {
|
|
1551
|
+
return this.apiClient.request({
|
|
1552
|
+
...config,
|
|
1553
|
+
url: `/quote/option-day-chart`,
|
|
1554
|
+
method: 'GET',
|
|
1555
|
+
params: query,
|
|
1556
|
+
secure: true,
|
|
1557
|
+
responseType: 'json'
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1528
1560
|
/**
|
|
1529
1561
|
* @tags Quote
|
|
1530
1562
|
* @name GetEquiductLevel1
|
|
@@ -1737,14 +1769,14 @@ class $cbc117ce07829f62$export$304305f55794ea0e {
|
|
|
1737
1769
|
}
|
|
1738
1770
|
/**
|
|
1739
1771
|
* @tags QuotesReformat
|
|
1740
|
-
* @name
|
|
1741
|
-
* @summary Query
|
|
1742
|
-
* @request GET:/api/quotes/
|
|
1772
|
+
* @name GetOptionHistorical
|
|
1773
|
+
* @summary Query option Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
|
|
1774
|
+
* @request GET:/api/quotes/option/historical
|
|
1743
1775
|
* @secure
|
|
1744
|
-
*/
|
|
1776
|
+
*/ getOptionHistorical(query, config) {
|
|
1745
1777
|
return this.apiClient.request({
|
|
1746
1778
|
...config,
|
|
1747
|
-
url: `/quotes/
|
|
1779
|
+
url: `/quotes/option/historical`,
|
|
1748
1780
|
method: 'GET',
|
|
1749
1781
|
params: query,
|
|
1750
1782
|
secure: true,
|
|
@@ -1814,6 +1846,22 @@ class $cbc117ce07829f62$export$304305f55794ea0e {
|
|
|
1814
1846
|
responseType: 'json'
|
|
1815
1847
|
});
|
|
1816
1848
|
}
|
|
1849
|
+
/**
|
|
1850
|
+
* @tags QuotesReformat
|
|
1851
|
+
* @name GetEquityHistorical
|
|
1852
|
+
* @summary Query Historical Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
|
|
1853
|
+
* @request GET:/api/quotes/equity/historical
|
|
1854
|
+
* @secure
|
|
1855
|
+
*/ getEquityHistorical(query, config) {
|
|
1856
|
+
return this.apiClient.request({
|
|
1857
|
+
...config,
|
|
1858
|
+
url: `/quotes/equity/historical`,
|
|
1859
|
+
method: 'GET',
|
|
1860
|
+
params: query,
|
|
1861
|
+
secure: true,
|
|
1862
|
+
responseType: 'json'
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1817
1865
|
/**
|
|
1818
1866
|
* @tags QuotesReformat
|
|
1819
1867
|
* @name GetBonds
|