@chainstream-io/sdk 2.0.1 → 2.0.3

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/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}/jobs/${jobId}/streaming`, {
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,