@chainstream-io/sdk 2.0.2 → 2.0.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/dist/{chainstream-CoMtjKRz.d.cts → chainstream-CEzLVb40.d.cts} +21 -1
- package/dist/{chainstream-CoMtjKRz.d.ts → chainstream-CEzLVb40.d.ts} +21 -1
- package/dist/chainstream.cjs +1 -1
- package/dist/chainstream.cjs.map +1 -1
- package/dist/chainstream.d.cts +1 -1
- package/dist/chainstream.d.ts +1 -1
- package/dist/chainstream.mjs +1 -1
- package/dist/chainstream.mjs.map +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/dist/stream/index.d.cts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -56,6 +56,7 @@ __export(index_exports, {
|
|
|
56
56
|
RankingDuration: () => RankingDuration,
|
|
57
57
|
RankingTag: () => RankingTag,
|
|
58
58
|
Resolution: () => Resolution,
|
|
59
|
+
SearchMode: () => SearchMode,
|
|
59
60
|
SearchSortBy: () => SearchSortBy,
|
|
60
61
|
SendTxInputSubmitType: () => SendTxInputSubmitType,
|
|
61
62
|
SortDirection: () => SortDirection,
|
|
@@ -2552,7 +2553,7 @@ var ChainStreamClient = class {
|
|
|
2552
2553
|
async waitForJob(jobId, timeout = 6e4) {
|
|
2553
2554
|
const accessToken = typeof this.requestCtx.accessToken === "string" ? this.requestCtx.accessToken : await this.requestCtx.accessToken.getToken();
|
|
2554
2555
|
return new Promise((resolve, reject) => {
|
|
2555
|
-
const sse = new import_event_source_polyfill.EventSourcePolyfill(`${this.requestCtx.baseUrl}/
|
|
2556
|
+
const sse = new import_event_source_polyfill.EventSourcePolyfill(`${this.requestCtx.baseUrl}/v2/job/${jobId}/streaming`, {
|
|
2556
2557
|
headers: {
|
|
2557
2558
|
Authorization: `Bearer ${accessToken}`
|
|
2558
2559
|
}
|
|
@@ -2766,6 +2767,10 @@ var Resolution = {
|
|
|
2766
2767
|
"1w": "1w",
|
|
2767
2768
|
"1M": "1M"
|
|
2768
2769
|
};
|
|
2770
|
+
var SearchMode = {
|
|
2771
|
+
fast: "fast",
|
|
2772
|
+
normal: "normal"
|
|
2773
|
+
};
|
|
2769
2774
|
var SearchSortBy = {
|
|
2770
2775
|
marketCapInUsd: "marketCapInUsd",
|
|
2771
2776
|
liquidityInUsd: "liquidityInUsd",
|
|
@@ -3023,6 +3028,7 @@ var QuoteDex = {
|
|
|
3023
3028
|
RankingDuration,
|
|
3024
3029
|
RankingTag,
|
|
3025
3030
|
Resolution,
|
|
3031
|
+
SearchMode,
|
|
3026
3032
|
SearchSortBy,
|
|
3027
3033
|
SendTxInputSubmitType,
|
|
3028
3034
|
SortDirection,
|