@codex-data/sdk 1.0.40 → 1.1.0-beta.1

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.
Files changed (59) hide show
  1. package/README.md +137 -39
  2. package/dist/index.d.ts +3 -3
  3. package/dist/index.js +6 -26
  4. package/dist/index.mjs +4 -0
  5. package/dist/sdk/Mutation.d.ts +3 -3
  6. package/dist/sdk/Mutation.js +2 -2
  7. package/dist/sdk/Mutation.mjs +13 -0
  8. package/dist/sdk/Query.d.ts +53 -54
  9. package/dist/sdk/Query.js +53 -54
  10. package/dist/sdk/Query.mjs +74 -0
  11. package/dist/sdk/Subscribe.d.ts +17 -18
  12. package/dist/sdk/Subscribe.js +84 -184
  13. package/dist/sdk/Subscribe.mjs +138 -0
  14. package/dist/sdk/generated/gql.d.ts +47 -43
  15. package/dist/sdk/generated/gql.js +22 -22
  16. package/dist/sdk/generated/gql.mjs +103 -0
  17. package/dist/sdk/generated/graphql.d.ts +213 -16
  18. package/dist/sdk/generated/graphql.js +33 -25
  19. package/dist/sdk/generated/graphql.mjs +1739 -0
  20. package/dist/sdk/generated/index.d.ts +0 -2
  21. package/dist/sdk/generated/index.js +0 -2
  22. package/dist/sdk/generated/index.mjs +1 -0
  23. package/dist/sdk/index.d.ts +0 -1
  24. package/dist/sdk/index.js +0 -1
  25. package/dist/sdk/index.mjs +150 -0
  26. package/dist/sdk/invariant.d.ts +0 -1
  27. package/dist/sdk/invariant.js +0 -1
  28. package/dist/sdk/invariant.mjs +26 -0
  29. package/package.json +54 -26
  30. package/dist/index.d.ts.map +0 -1
  31. package/dist/index.js.map +0 -1
  32. package/dist/resources/graphql.d.ts +0 -9875
  33. package/dist/resources/graphql.d.ts.map +0 -1
  34. package/dist/resources/graphql.js +0 -1640
  35. package/dist/resources/graphql.js.map +0 -1
  36. package/dist/sdk/Mutation.d.ts.map +0 -1
  37. package/dist/sdk/Mutation.js.map +0 -1
  38. package/dist/sdk/Query.d.ts.map +0 -1
  39. package/dist/sdk/Query.js.map +0 -1
  40. package/dist/sdk/Subscribe.d.ts.map +0 -1
  41. package/dist/sdk/Subscribe.js.map +0 -1
  42. package/dist/sdk/generated/fragment-masking.d.ts +0 -20
  43. package/dist/sdk/generated/fragment-masking.d.ts.map +0 -1
  44. package/dist/sdk/generated/fragment-masking.js +0 -22
  45. package/dist/sdk/generated/fragment-masking.js.map +0 -1
  46. package/dist/sdk/generated/gql.d.ts.map +0 -1
  47. package/dist/sdk/generated/gql.js.map +0 -1
  48. package/dist/sdk/generated/graphql.d.ts.map +0 -1
  49. package/dist/sdk/generated/graphql.js.map +0 -1
  50. package/dist/sdk/generated/index.d.ts.map +0 -1
  51. package/dist/sdk/generated/index.js.map +0 -1
  52. package/dist/sdk/index.d.ts.map +0 -1
  53. package/dist/sdk/index.js.map +0 -1
  54. package/dist/sdk/index.test.d.ts +0 -2
  55. package/dist/sdk/index.test.d.ts.map +0 -1
  56. package/dist/sdk/index.test.js +0 -321
  57. package/dist/sdk/index.test.js.map +0 -1
  58. package/dist/sdk/invariant.d.ts.map +0 -1
  59. package/dist/sdk/invariant.js.map +0 -1
@@ -0,0 +1,74 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
2
+ import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, ChartUrlsDocument, DetailedWalletStatsDocument, FilterExchangesDocument, FilterNftCollectionsDocument, FilterNftParallelAssetsDocument, FilterNftPoolCollectionsDocument, FilterNftPoolsDocument, FilterPairsDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedNftStatsDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetNftAssetsDocument, GetNftCollectionMetadataDocument, GetNftContractsDocument, GetNftEventsDocument, GetNftPoolCollectionDocument, GetNftPoolCollectionsByExchangeDocument, GetNftPoolDocument, GetNftPoolEventsDocument, GetNftPoolsByCollectionAndExchangeDocument, GetNftPoolsByOwnerDocument, GetNftPoolStatsDocument, GetParallelCardChangesDocument, GetPrimePoolAssetsDocument, GetPrimePoolEventsDocument, GetPrimePoolsDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument, LiquidityLocksDocument, LiquidityMetadataByTokenDocument, LiquidityMetadataDocument, ListPairsForTokenDocument, ListPairsWithMetadataForTokenDocument, NftHoldersDocument, PairMetadataDocument, PrimeHoldersDocument, SearchNftsDocument, TokenDocument, TokenLifecycleEventsDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, WalletNftCollectionAssetsDocument, WalletNftCollectionsDocument, } from "./generated/graphql";
3
+ export class Query {
4
+ constructor(sdk) {
5
+ this.sdk = sdk;
6
+ this.apiToken = async (vars) => this.sdk.query(ApiTokenDocument, vars);
7
+ this.apiTokens = async (vars) => this.sdk.query(ApiTokensDocument, vars);
8
+ this.balances = async (vars) => this.sdk.query(BalancesDocument, vars);
9
+ this.blocks = async (vars) => this.sdk.query(BlocksDocument, vars);
10
+ this.chartUrls = async (vars) => this.sdk.query(ChartUrlsDocument, vars);
11
+ this.detailedWalletStats = async (vars) => this.sdk.query(DetailedWalletStatsDocument, vars);
12
+ this.filterExchanges = async (vars) => this.sdk.query(FilterExchangesDocument, vars);
13
+ this.filterNftCollections = async (vars) => this.sdk.query(FilterNftCollectionsDocument, vars);
14
+ this.filterNftParallelAssets = async (vars) => this.sdk.query(FilterNftParallelAssetsDocument, vars);
15
+ this.filterNftPoolCollections = async (vars) => this.sdk.query(FilterNftPoolCollectionsDocument, vars);
16
+ this.filterNftPools = async (vars) => this.sdk.query(FilterNftPoolsDocument, vars);
17
+ this.filterPairs = async (vars) => this.sdk.query(FilterPairsDocument, vars);
18
+ this.filterTokenWallets = async (vars) => this.sdk.query(FilterTokenWalletsDocument, vars);
19
+ this.filterTokens = async (vars) => this.sdk.query(FilterTokensDocument, vars);
20
+ this.filterWallets = async (vars) => this.sdk.query(FilterWalletsDocument, vars);
21
+ this.getBars = async (vars) => this.sdk.query(GetBarsDocument, vars);
22
+ this.getCommunityNotes = async (vars) => this.sdk.query(GetCommunityNotesDocument, vars);
23
+ this.getDetailedNftStats = async (vars) => this.sdk.query(GetDetailedNftStatsDocument, vars);
24
+ this.getDetailedPairStats = async (vars) => this.sdk.query(GetDetailedPairStatsDocument, vars);
25
+ this.getDetailedPairsStats = async (vars) => this.sdk.query(GetDetailedPairsStatsDocument, vars);
26
+ this.getEventLabels = async (vars) => this.sdk.query(GetEventLabelsDocument, vars);
27
+ this.getExchanges = async (vars) => this.sdk.query(GetExchangesDocument, vars);
28
+ this.getNetworkConfigs = async (vars) => this.sdk.query(GetNetworkConfigsDocument, vars);
29
+ this.getNetworkStats = async (vars) => this.sdk.query(GetNetworkStatsDocument, vars);
30
+ this.getNetworkStatus = async (vars) => this.sdk.query(GetNetworkStatusDocument, vars);
31
+ this.getNetworks = async (vars) => this.sdk.query(GetNetworksDocument, vars);
32
+ this.getNftAssets = async (vars) => this.sdk.query(GetNftAssetsDocument, vars);
33
+ this.getNftCollectionMetadata = async (vars) => this.sdk.query(GetNftCollectionMetadataDocument, vars);
34
+ this.getNftContracts = async (vars) => this.sdk.query(GetNftContractsDocument, vars);
35
+ this.getNftEvents = async (vars) => this.sdk.query(GetNftEventsDocument, vars);
36
+ this.getNftPool = async (vars) => this.sdk.query(GetNftPoolDocument, vars);
37
+ this.getNftPoolCollection = async (vars) => this.sdk.query(GetNftPoolCollectionDocument, vars);
38
+ this.getNftPoolCollectionsByExchange = async (vars) => this.sdk.query(GetNftPoolCollectionsByExchangeDocument, vars);
39
+ this.getNftPoolEvents = async (vars) => this.sdk.query(GetNftPoolEventsDocument, vars);
40
+ this.getNftPoolStats = async (vars) => this.sdk.query(GetNftPoolStatsDocument, vars);
41
+ this.getNftPoolsByCollectionAndExchange = async (vars) => this.sdk.query(GetNftPoolsByCollectionAndExchangeDocument, vars);
42
+ this.getNftPoolsByOwner = async (vars) => this.sdk.query(GetNftPoolsByOwnerDocument, vars);
43
+ this.getParallelCardChanges = async (vars) => this.sdk.query(GetParallelCardChangesDocument, vars);
44
+ this.getPrimePoolAssets = async (vars) => this.sdk.query(GetPrimePoolAssetsDocument, vars);
45
+ this.getPrimePoolEvents = async (vars) => this.sdk.query(GetPrimePoolEventsDocument, vars);
46
+ this.getPrimePools = async (vars) => this.sdk.query(GetPrimePoolsDocument, vars);
47
+ this.getSymbol = async (vars) => this.sdk.query(GetSymbolDocument, vars);
48
+ this.getTokenBars = async (vars) => this.sdk.query(GetTokenBarsDocument, vars);
49
+ this.getTokenEvents = async (vars) => this.sdk.query(GetTokenEventsDocument, vars);
50
+ this.getTokenEventsForMaker = async (vars) => this.sdk.query(GetTokenEventsForMakerDocument, vars);
51
+ this.getTokenPrices = async (vars) => this.sdk.query(GetTokenPricesDocument, vars);
52
+ this.getWebhooks = async (vars) => this.sdk.query(GetWebhooksDocument, vars);
53
+ this.holders = async (vars) => this.sdk.query(HoldersDocument, vars);
54
+ this.liquidityLocks = async (vars) => this.sdk.query(LiquidityLocksDocument, vars);
55
+ this.liquidityMetadata = async (vars) => this.sdk.query(LiquidityMetadataDocument, vars);
56
+ this.liquidityMetadataByToken = async (vars) => this.sdk.query(LiquidityMetadataByTokenDocument, vars);
57
+ this.listPairsForToken = async (vars) => this.sdk.query(ListPairsForTokenDocument, vars);
58
+ this.listPairsWithMetadataForToken = async (vars) => this.sdk.query(ListPairsWithMetadataForTokenDocument, vars);
59
+ this.nftHolders = async (vars) => this.sdk.query(NftHoldersDocument, vars);
60
+ this.pairMetadata = async (vars) => this.sdk.query(PairMetadataDocument, vars);
61
+ this.primeHolders = async (vars) => this.sdk.query(PrimeHoldersDocument, vars);
62
+ this.searchNfts = async (vars) => this.sdk.query(SearchNftsDocument, vars);
63
+ this.token = async (vars) => this.sdk.query(TokenDocument, vars);
64
+ this.tokenLifecycleEvents = async (vars) => this.sdk.query(TokenLifecycleEventsDocument, vars);
65
+ this.tokenSparklines = async (vars) => this.sdk.query(TokenSparklinesDocument, vars);
66
+ this.tokenTopTraders = async (vars) => this.sdk.query(TokenTopTradersDocument, vars);
67
+ this.tokens = async (vars) => this.sdk.query(TokensDocument, vars);
68
+ this.top10HoldersPercent = async (vars) => this.sdk.query(Top10HoldersPercentDocument, vars);
69
+ this.walletAggregateBackfillState = async (vars) => this.sdk.query(WalletAggregateBackfillStateDocument, vars);
70
+ this.walletChart = async (vars) => this.sdk.query(WalletChartDocument, vars);
71
+ this.walletNftCollectionAssets = async (vars) => this.sdk.query(WalletNftCollectionAssetsDocument, vars);
72
+ this.walletNftCollections = async (vars) => this.sdk.query(WalletNftCollectionsDocument, vars);
73
+ }
74
+ }
@@ -4,28 +4,27 @@ import { Codex } from "./index";
4
4
  export declare class Subscribe {
5
5
  private sdk;
6
6
  constructor(sdk: Codex);
7
- onUnconfirmedEventsCreatedByMaker: (vars: OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedByMakerSubscription>>) => import("./index").CleanupFunction;
8
- onNftPoolEventsCreated: (vars: OnNftPoolEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftPoolEventsCreatedSubscription>>) => import("./index").CleanupFunction;
9
- onNftAssetsCreated: (vars: OnNftAssetsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftAssetsCreatedSubscription>>) => import("./index").CleanupFunction;
10
- onTokenEventsCreated: (vars: OnTokenEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenEventsCreatedSubscription>>) => import("./index").CleanupFunction;
11
- onLatestPairUpdated: (vars: OnLatestPairUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestPairUpdatedSubscription>>) => import("./index").CleanupFunction;
7
+ onBalanceUpdated: (vars: OnBalanceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBalanceUpdatedSubscription>>) => import("./index").CleanupFunction;
12
8
  onBarsUpdated: (vars: OnBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
13
- onTokenBarsUpdated: (vars: OnTokenBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
14
- onLatestTokens: (vars: OnLatestTokensSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestTokensSubscription>>) => import("./index").CleanupFunction;
15
- onHoldersUpdated: (vars: OnHoldersUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnHoldersUpdatedSubscription>>) => import("./index").CleanupFunction;
16
- onNftEventsCreated: (vars: OnNftEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription>>) => import("./index").CleanupFunction;
9
+ onDetailedStatsUpdated: (vars: OnDetailedStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
10
+ onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>) => import("./index").CleanupFunction;
17
11
  onEventsCreated: (vars: OnEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>) => import("./index").CleanupFunction;
18
- onTokenLifecycleEventsCreated: (vars: OnTokenLifecycleEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenLifecycleEventsCreatedSubscription>>) => import("./index").CleanupFunction;
19
- onUnconfirmedEventsCreated: (vars: OnUnconfirmedEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedSubscription>>) => import("./index").CleanupFunction;
20
- onLaunchpadTokenEventBatch: (vars: OnLaunchpadTokenEventBatchSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventBatchSubscription>>) => import("./index").CleanupFunction;
12
+ onEventsCreatedByMaker: (vars: OnEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>) => import("./index").CleanupFunction;
13
+ onHoldersUpdated: (vars: OnHoldersUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnHoldersUpdatedSubscription>>) => import("./index").CleanupFunction;
14
+ onLatestPairUpdated: (vars: OnLatestPairUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestPairUpdatedSubscription>>) => import("./index").CleanupFunction;
15
+ onLatestTokens: (vars: OnLatestTokensSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestTokensSubscription>>) => import("./index").CleanupFunction;
21
16
  onLaunchpadTokenEvent: (vars: OnLaunchpadTokenEventSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventSubscription>>) => import("./index").CleanupFunction;
17
+ onLaunchpadTokenEventBatch: (vars: OnLaunchpadTokenEventBatchSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventBatchSubscription>>) => import("./index").CleanupFunction;
18
+ onNftAssetsCreated: (vars: OnNftAssetsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftAssetsCreatedSubscription>>) => import("./index").CleanupFunction;
19
+ onNftEventsCreated: (vars: OnNftEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription>>) => import("./index").CleanupFunction;
20
+ onNftPoolEventsCreated: (vars: OnNftPoolEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftPoolEventsCreatedSubscription>>) => import("./index").CleanupFunction;
22
21
  onPairMetadataUpdated: (vars: OnPairMetadataUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPairMetadataUpdatedSubscription>>) => import("./index").CleanupFunction;
22
+ onPriceUpdated: (vars: OnPriceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPriceUpdatedSubscription>>) => import("./index").CleanupFunction;
23
23
  onPricesUpdated: (vars: OnPricesUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPricesUpdatedSubscription>>) => import("./index").CleanupFunction;
24
+ onTokenBarsUpdated: (vars: OnTokenBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
25
+ onTokenEventsCreated: (vars: OnTokenEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenEventsCreatedSubscription>>) => import("./index").CleanupFunction;
26
+ onTokenLifecycleEventsCreated: (vars: OnTokenLifecycleEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenLifecycleEventsCreatedSubscription>>) => import("./index").CleanupFunction;
24
27
  onUnconfirmedBarsUpdated: (vars: OnUnconfirmedBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnUnconfirmedBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
25
- onPriceUpdated: (vars: OnPriceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPriceUpdatedSubscription>>) => import("./index").CleanupFunction;
26
- onEventsCreatedByMaker: (vars: OnEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>) => import("./index").CleanupFunction;
27
- onDetailedStatsUpdated: (vars: OnDetailedStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
28
- onBalanceUpdated: (vars: OnBalanceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBalanceUpdatedSubscription>>) => import("./index").CleanupFunction;
29
- onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>) => import("./index").CleanupFunction;
28
+ onUnconfirmedEventsCreated: (vars: OnUnconfirmedEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedSubscription>>) => import("./index").CleanupFunction;
29
+ onUnconfirmedEventsCreatedByMaker: (vars: OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedByMakerSubscription>>) => import("./index").CleanupFunction;
30
30
  }
31
- //# sourceMappingURL=Subscribe.d.ts.map