@chainstream-io/sdk 0.1.5 → 0.1.7

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 (147) hide show
  1. package/README.md +46 -0
  2. package/dist/esm/index.d.ts +1 -1
  3. package/dist/esm/index.js +76 -60
  4. package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
  5. package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
  6. package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
  7. package/dist/esm/openapi/apis/DexApi.js +205 -176
  8. package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
  9. package/dist/esm/openapi/apis/EndpointApi.js +212 -175
  10. package/dist/esm/openapi/apis/IpfsApi.js +38 -25
  11. package/dist/esm/openapi/apis/JobsApi.js +65 -48
  12. package/dist/esm/openapi/apis/RankingApi.js +278 -249
  13. package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
  14. package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
  15. package/dist/esm/openapi/apis/TradeApi.js +233 -208
  16. package/dist/esm/openapi/apis/TransactionApi.js +42 -29
  17. package/dist/esm/openapi/apis/WalletApi.js +148 -123
  18. package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
  19. package/dist/esm/openapi/runtime.js +81 -69
  20. package/dist/esm/stream/index.d.ts +3 -0
  21. package/dist/esm/stream/index.js +3 -0
  22. package/dist/esm/{api → stream}/stream.js +36 -29
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +75 -59
  25. package/dist/openapi/apis/BlockchainApi.js +62 -78
  26. package/dist/openapi/apis/DefiSolanaMoonshotApi.js +68 -84
  27. package/dist/openapi/apis/DefiSolanaPumpfunApi.js +39 -59
  28. package/dist/openapi/apis/DexApi.js +206 -210
  29. package/dist/openapi/apis/DexPoolApi.js +42 -62
  30. package/dist/openapi/apis/EndpointApi.js +213 -209
  31. package/dist/openapi/apis/IpfsApi.js +39 -59
  32. package/dist/openapi/apis/JobsApi.js +66 -82
  33. package/dist/openapi/apis/RankingApi.js +279 -283
  34. package/dist/openapi/apis/RedPacketApi.js +295 -287
  35. package/dist/openapi/apis/TokenApi.js +1146 -1090
  36. package/dist/openapi/apis/TradeApi.js +234 -242
  37. package/dist/openapi/apis/TransactionApi.js +43 -63
  38. package/dist/openapi/apis/WalletApi.js +149 -157
  39. package/dist/openapi/apis/WatchlistApi.js +42 -62
  40. package/dist/openapi/runtime.js +81 -69
  41. package/dist/stream/index.d.ts +3 -0
  42. package/dist/stream/index.js +19 -0
  43. package/dist/{api → stream}/stream.js +36 -29
  44. package/package.json +29 -26
  45. package/src/api/stream.fields.ts +0 -271
  46. package/src/api/stream.model.ts +0 -307
  47. package/src/api/stream.ts +0 -1086
  48. package/src/index.ts +0 -188
  49. package/src/openapi/apis/BlockchainApi.ts +0 -140
  50. package/src/openapi/apis/DefiSolanaMoonshotApi.ts +0 -145
  51. package/src/openapi/apis/DefiSolanaPumpfunApi.ts +0 -86
  52. package/src/openapi/apis/DexApi.ts +0 -490
  53. package/src/openapi/apis/DexPoolApi.ts +0 -107
  54. package/src/openapi/apis/EndpointApi.ts +0 -421
  55. package/src/openapi/apis/IpfsApi.ts +0 -66
  56. package/src/openapi/apis/JobsApi.ts +0 -135
  57. package/src/openapi/apis/RankingApi.ts +0 -939
  58. package/src/openapi/apis/RedPacketApi.ts +0 -621
  59. package/src/openapi/apis/TokenApi.ts +0 -2569
  60. package/src/openapi/apis/TradeApi.ts +0 -596
  61. package/src/openapi/apis/TransactionApi.ts +0 -95
  62. package/src/openapi/apis/WalletApi.ts +0 -365
  63. package/src/openapi/apis/WatchlistApi.ts +0 -107
  64. package/src/openapi/apis/index.ts +0 -17
  65. package/src/openapi/index.ts +0 -5
  66. package/src/openapi/models/BlockchainDTO.ts +0 -93
  67. package/src/openapi/models/BlockchainLatestBlockDTO.ts +0 -75
  68. package/src/openapi/models/BooleanResultDTO.ts +0 -66
  69. package/src/openapi/models/CalculatePnlInput.ts +0 -65
  70. package/src/openapi/models/Candle.ts +0 -130
  71. package/src/openapi/models/ClaimRedPacketInput.ts +0 -90
  72. package/src/openapi/models/CreateEndpointInput.ts +0 -121
  73. package/src/openapi/models/CreateRedPacketInput.ts +0 -124
  74. package/src/openapi/models/CreateRedPacketReply.ts +0 -75
  75. package/src/openapi/models/CreateTokenInput.ts +0 -139
  76. package/src/openapi/models/CreateTokenReply.ts +0 -75
  77. package/src/openapi/models/DexDTO.ts +0 -90
  78. package/src/openapi/models/DexPage.ts +0 -114
  79. package/src/openapi/models/DexPoolDTO.ts +0 -141
  80. package/src/openapi/models/EndpointListResponse.ts +0 -97
  81. package/src/openapi/models/EndpointOperationResponse.ts +0 -65
  82. package/src/openapi/models/EndpointResponse.ts +0 -145
  83. package/src/openapi/models/EndpointSecretResponse.ts +0 -65
  84. package/src/openapi/models/FilterCondition.ts +0 -135
  85. package/src/openapi/models/GainersAndLosersDTO.ts +0 -93
  86. package/src/openapi/models/GainersAndLosersPage.ts +0 -114
  87. package/src/openapi/models/JobDTO.ts +0 -75
  88. package/src/openapi/models/JobStreamingDTO.ts +0 -75
  89. package/src/openapi/models/Link.ts +0 -88
  90. package/src/openapi/models/MoonshotCreateTokenInput.ts +0 -182
  91. package/src/openapi/models/MoonshotCreateTokenReply.ts +0 -75
  92. package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +0 -73
  93. package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +0 -74
  94. package/src/openapi/models/PumpCreateTokenInput.ts +0 -180
  95. package/src/openapi/models/PumpCreateTokenReply.ts +0 -74
  96. package/src/openapi/models/QuoteResponse.ts +0 -105
  97. package/src/openapi/models/RedPacketClaimDTO.ts +0 -148
  98. package/src/openapi/models/RedPacketClaimsPage.ts +0 -110
  99. package/src/openapi/models/RedPacketDTO.ts +0 -229
  100. package/src/openapi/models/RedPacketReply.ts +0 -66
  101. package/src/openapi/models/RedPacketSendTxInput.ts +0 -66
  102. package/src/openapi/models/RedPacketSendTxResponse.ts +0 -66
  103. package/src/openapi/models/RedPacketsPage.ts +0 -110
  104. package/src/openapi/models/Resolution.ts +0 -61
  105. package/src/openapi/models/SendTxInput.ts +0 -93
  106. package/src/openapi/models/SendTxResponse.ts +0 -84
  107. package/src/openapi/models/SwapInput.ts +0 -157
  108. package/src/openapi/models/SwapReply.ts +0 -75
  109. package/src/openapi/models/SwapRouteInput.ts +0 -186
  110. package/src/openapi/models/SwapRouteResponse.ts +0 -101
  111. package/src/openapi/models/Token.ts +0 -251
  112. package/src/openapi/models/TokenCreationDTO.ts +0 -131
  113. package/src/openapi/models/TokenCreationPage.ts +0 -114
  114. package/src/openapi/models/TokenCreatorsDTO.ts +0 -81
  115. package/src/openapi/models/TokenExtraDTO.ts +0 -225
  116. package/src/openapi/models/TokenHolder.ts +0 -93
  117. package/src/openapi/models/TokenHolderPage.ts +0 -114
  118. package/src/openapi/models/TokenListPage.ts +0 -114
  119. package/src/openapi/models/TokenMarketData.ts +0 -190
  120. package/src/openapi/models/TokenMetadata.ts +0 -188
  121. package/src/openapi/models/TokenPage.ts +0 -122
  122. package/src/openapi/models/TokenPriceDTO.ts +0 -93
  123. package/src/openapi/models/TokenPricePage.ts +0 -114
  124. package/src/openapi/models/TokenSocialMediasDTO.ts +0 -161
  125. package/src/openapi/models/TokenStat.ts +0 -1152
  126. package/src/openapi/models/TopTradersDTO.ts +0 -164
  127. package/src/openapi/models/TopTradersPage.ts +0 -114
  128. package/src/openapi/models/TradeDetailDTO.ts +0 -282
  129. package/src/openapi/models/TradeEvent.ts +0 -184
  130. package/src/openapi/models/TradePage.ts +0 -114
  131. package/src/openapi/models/TradeType.ts +0 -53
  132. package/src/openapi/models/UpdateEndpointInput.ts +0 -129
  133. package/src/openapi/models/WalletBalanceDetailDTO.ts +0 -282
  134. package/src/openapi/models/WalletBalancesDTO.ts +0 -92
  135. package/src/openapi/models/WalletPnlDTO.ts +0 -264
  136. package/src/openapi/models/index.ts +0 -72
  137. package/src/openapi/runtime.ts +0 -432
  138. /package/dist/{api → esm/stream}/stream.d.ts +0 -0
  139. /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
  140. /package/dist/esm/{api → stream}/stream.fields.js +0 -0
  141. /package/dist/{api → esm/stream}/stream.model.d.ts +0 -0
  142. /package/dist/esm/{api → stream}/stream.model.js +0 -0
  143. /package/dist/{esm/api → stream}/stream.d.ts +0 -0
  144. /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
  145. /package/dist/{api → stream}/stream.fields.js +0 -0
  146. /package/dist/{esm/api → stream}/stream.model.d.ts +0 -0
  147. /package/dist/{api → stream}/stream.model.js +0 -0
@@ -1,225 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface TokenExtraDTO
20
- */
21
- export interface TokenExtraDTO {
22
- /**
23
- * DTO.TOKEN.EXTRA.COLLECTION_ADDRESS
24
- * @type {string}
25
- * @memberof TokenExtraDTO
26
- */
27
- collectionAddress?: string;
28
- /**
29
- * DTO.TOKEN.EXTRA.EDITION_NONCE
30
- * @type {number}
31
- * @memberof TokenExtraDTO
32
- */
33
- editionNonce?: number;
34
- /**
35
- * DTO.TOKEN.EXTRA.FUNGIBLE
36
- * @type {boolean}
37
- * @memberof TokenExtraDTO
38
- */
39
- fungible?: boolean;
40
- /**
41
- * DTO.TOKEN.EXTRA.IS_MUTABLE
42
- * @type {boolean}
43
- * @memberof TokenExtraDTO
44
- */
45
- isMutable?: boolean;
46
- /**
47
- * DTO.TOKEN.EXTRA.KEY
48
- * @type {string}
49
- * @memberof TokenExtraDTO
50
- */
51
- key?: string;
52
- /**
53
- * DTO.TOKEN.EXTRA.IS_NATIVE
54
- * @type {boolean}
55
- * @memberof TokenExtraDTO
56
- */
57
- isNative?: boolean;
58
- /**
59
- * DTO.TOKEN.EXTRA.PRIMARY_SALE_HAPPENED
60
- * @type {boolean}
61
- * @memberof TokenExtraDTO
62
- */
63
- primarySaleHappened?: boolean;
64
- /**
65
- * DTO.TOKEN.EXTRA.LAUNCH_FROM_PROGRAM_ADDRESS
66
- * @type {string}
67
- * @memberof TokenExtraDTO
68
- */
69
- launchFromProgramAddress?: string;
70
- /**
71
- * DTO.TOKEN.EXTRA.LAUNCH_FROM_PROTOCOL_FAMILY
72
- * @type {string}
73
- * @memberof TokenExtraDTO
74
- */
75
- launchFromProtocolFamily?: string;
76
- /**
77
- * DTO.TOKEN.EXTRA.PROGRAM_ADDRESS
78
- * @type {string}
79
- * @memberof TokenExtraDTO
80
- */
81
- programAddress?: string;
82
- /**
83
- * DTO.TOKEN.EXTRA.MIGRATED_TO_PROGRAM_ADDRESS
84
- * @type {string}
85
- * @memberof TokenExtraDTO
86
- */
87
- migratedToProgramAddress?: string;
88
- /**
89
- * DTO.TOKEN.EXTRA.MIGRATED_TO_PROTOCOL_FAMILY
90
- * @type {string}
91
- * @memberof TokenExtraDTO
92
- */
93
- migratedToProtocolFamily?: string;
94
- /**
95
- * DTO.TOKEN.EXTRA.MIGRATED_TO_POOL_ADDRESS
96
- * @type {string}
97
- * @memberof TokenExtraDTO
98
- */
99
- migratedToPoolAddress?: string;
100
- /**
101
- * DTO.TOKEN.EXTRA.MIGRATED_AT
102
- * @type {number}
103
- * @memberof TokenExtraDTO
104
- */
105
- migratedAt?: number;
106
- /**
107
- * DTO.TOKEN.EXTRA.SELLER_FEE_BASIS_POINTS
108
- * @type {number}
109
- * @memberof TokenExtraDTO
110
- */
111
- sellerFeeBasisPoints?: number;
112
- /**
113
- * DTO.TOKEN.EXTRA.TOKEN_STANDARD
114
- * @type {string}
115
- * @memberof TokenExtraDTO
116
- */
117
- tokenStandard?: string;
118
- /**
119
- * DTO.TOKEN.EXTRA.MINT_AUTHORITY
120
- * @type {string}
121
- * @memberof TokenExtraDTO
122
- */
123
- mintAuthority?: string;
124
- /**
125
- * DTO.TOKEN.EXTRA.FREEZE_AUTHORITY
126
- * @type {string}
127
- * @memberof TokenExtraDTO
128
- */
129
- freezeAuthority?: string;
130
- /**
131
- * DTO.TOKEN.EXTRA.UPDATE_AUTHORITY
132
- * @type {string}
133
- * @memberof TokenExtraDTO
134
- */
135
- updateAuthority?: string;
136
- /**
137
- * DTO.TOKEN.EXTRA.IS_VERIFIED_COLLECTION
138
- * @type {boolean}
139
- * @memberof TokenExtraDTO
140
- */
141
- isVerifiedCollection?: boolean;
142
- /**
143
- * DTO.TOKEN.EXTRA.IS_WRAPPED
144
- * @type {boolean}
145
- * @memberof TokenExtraDTO
146
- */
147
- isWrapped?: boolean;
148
- }
149
-
150
- /**
151
- * Check if a given object implements the TokenExtraDTO interface.
152
- */
153
- export function instanceOfTokenExtraDTO(value: object): value is TokenExtraDTO {
154
- return true;
155
- }
156
-
157
- export function TokenExtraDTOFromJSON(json: any): TokenExtraDTO {
158
- return TokenExtraDTOFromJSONTyped(json, false);
159
- }
160
-
161
- export function TokenExtraDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenExtraDTO {
162
- if (json == null) {
163
- return json;
164
- }
165
- return {
166
-
167
- 'collectionAddress': json['collectionAddress'] == null ? undefined : json['collectionAddress'],
168
- 'editionNonce': json['editionNonce'] == null ? undefined : json['editionNonce'],
169
- 'fungible': json['fungible'] == null ? undefined : json['fungible'],
170
- 'isMutable': json['isMutable'] == null ? undefined : json['isMutable'],
171
- 'key': json['key'] == null ? undefined : json['key'],
172
- 'isNative': json['isNative'] == null ? undefined : json['isNative'],
173
- 'primarySaleHappened': json['primarySaleHappened'] == null ? undefined : json['primarySaleHappened'],
174
- 'launchFromProgramAddress': json['launchFromProgramAddress'] == null ? undefined : json['launchFromProgramAddress'],
175
- 'launchFromProtocolFamily': json['launchFromProtocolFamily'] == null ? undefined : json['launchFromProtocolFamily'],
176
- 'programAddress': json['programAddress'] == null ? undefined : json['programAddress'],
177
- 'migratedToProgramAddress': json['migratedToProgramAddress'] == null ? undefined : json['migratedToProgramAddress'],
178
- 'migratedToProtocolFamily': json['migratedToProtocolFamily'] == null ? undefined : json['migratedToProtocolFamily'],
179
- 'migratedToPoolAddress': json['migratedToPoolAddress'] == null ? undefined : json['migratedToPoolAddress'],
180
- 'migratedAt': json['migratedAt'] == null ? undefined : json['migratedAt'],
181
- 'sellerFeeBasisPoints': json['sellerFeeBasisPoints'] == null ? undefined : json['sellerFeeBasisPoints'],
182
- 'tokenStandard': json['tokenStandard'] == null ? undefined : json['tokenStandard'],
183
- 'mintAuthority': json['mintAuthority'] == null ? undefined : json['mintAuthority'],
184
- 'freezeAuthority': json['freezeAuthority'] == null ? undefined : json['freezeAuthority'],
185
- 'updateAuthority': json['updateAuthority'] == null ? undefined : json['updateAuthority'],
186
- 'isVerifiedCollection': json['isVerifiedCollection'] == null ? undefined : json['isVerifiedCollection'],
187
- 'isWrapped': json['isWrapped'] == null ? undefined : json['isWrapped'],
188
- };
189
- }
190
-
191
- export function TokenExtraDTOToJSON(json: any): TokenExtraDTO {
192
- return TokenExtraDTOToJSONTyped(json, false);
193
- }
194
-
195
- export function TokenExtraDTOToJSONTyped(value?: TokenExtraDTO | null, ignoreDiscriminator: boolean = false): any {
196
- if (value == null) {
197
- return value;
198
- }
199
-
200
- return {
201
-
202
- 'collectionAddress': value['collectionAddress'],
203
- 'editionNonce': value['editionNonce'],
204
- 'fungible': value['fungible'],
205
- 'isMutable': value['isMutable'],
206
- 'key': value['key'],
207
- 'isNative': value['isNative'],
208
- 'primarySaleHappened': value['primarySaleHappened'],
209
- 'launchFromProgramAddress': value['launchFromProgramAddress'],
210
- 'launchFromProtocolFamily': value['launchFromProtocolFamily'],
211
- 'programAddress': value['programAddress'],
212
- 'migratedToProgramAddress': value['migratedToProgramAddress'],
213
- 'migratedToProtocolFamily': value['migratedToProtocolFamily'],
214
- 'migratedToPoolAddress': value['migratedToPoolAddress'],
215
- 'migratedAt': value['migratedAt'],
216
- 'sellerFeeBasisPoints': value['sellerFeeBasisPoints'],
217
- 'tokenStandard': value['tokenStandard'],
218
- 'mintAuthority': value['mintAuthority'],
219
- 'freezeAuthority': value['freezeAuthority'],
220
- 'updateAuthority': value['updateAuthority'],
221
- 'isVerifiedCollection': value['isVerifiedCollection'],
222
- 'isWrapped': value['isWrapped'],
223
- };
224
- }
225
-
@@ -1,93 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface TokenHolder
20
- */
21
- export interface TokenHolder {
22
- /**
23
- * DTO.TOKEN_HOLDER.WALLET_ADDRESS
24
- * @type {string}
25
- * @memberof TokenHolder
26
- */
27
- walletAddress: string;
28
- /**
29
- * DTO.TOKEN_HOLDER.AMOUNT
30
- * @type {number}
31
- * @memberof TokenHolder
32
- */
33
- amount: number;
34
- /**
35
- * DTO.TOKEN_HOLDER.AMOUNT_USD
36
- * @type {number}
37
- * @memberof TokenHolder
38
- */
39
- amountInUsd: number;
40
- /**
41
- * DTO.TOKEN_HOLDER.PERCENTAGE
42
- * @type {string}
43
- * @memberof TokenHolder
44
- */
45
- percentage: string;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the TokenHolder interface.
50
- */
51
- export function instanceOfTokenHolder(value: object): value is TokenHolder {
52
- if (!('walletAddress' in value) || value['walletAddress'] === undefined) return false;
53
- if (!('amount' in value) || value['amount'] === undefined) return false;
54
- if (!('amountInUsd' in value) || value['amountInUsd'] === undefined) return false;
55
- if (!('percentage' in value) || value['percentage'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function TokenHolderFromJSON(json: any): TokenHolder {
60
- return TokenHolderFromJSONTyped(json, false);
61
- }
62
-
63
- export function TokenHolderFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenHolder {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'walletAddress': json['walletAddress'],
70
- 'amount': json['amount'],
71
- 'amountInUsd': json['amountInUsd'],
72
- 'percentage': json['percentage'],
73
- };
74
- }
75
-
76
- export function TokenHolderToJSON(json: any): TokenHolder {
77
- return TokenHolderToJSONTyped(json, false);
78
- }
79
-
80
- export function TokenHolderToJSONTyped(value?: TokenHolder | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
84
-
85
- return {
86
-
87
- 'walletAddress': value['walletAddress'],
88
- 'amount': value['amount'],
89
- 'amountInUsd': value['amountInUsd'],
90
- 'percentage': value['percentage'],
91
- };
92
- }
93
-
@@ -1,114 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { TokenHolder } from './TokenHolder';
17
- import {
18
- TokenHolderFromJSON,
19
- TokenHolderFromJSONTyped,
20
- TokenHolderToJSON,
21
- TokenHolderToJSONTyped,
22
- } from './TokenHolder';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface TokenHolderPage
28
- */
29
- export interface TokenHolderPage {
30
- /**
31
- * DTO.PAGE.HAS_NEXT
32
- * @type {boolean}
33
- * @memberof TokenHolderPage
34
- */
35
- hasNext?: boolean;
36
- /**
37
- * DTO.PAGE.HAS_PREV
38
- * @type {boolean}
39
- * @memberof TokenHolderPage
40
- */
41
- hasPrev?: boolean;
42
- /**
43
- * DTO.PAGE.START_CURSOR
44
- * @type {string}
45
- * @memberof TokenHolderPage
46
- */
47
- startCursor?: string;
48
- /**
49
- * DTO.PAGE.END_CURSOR
50
- * @type {string}
51
- * @memberof TokenHolderPage
52
- */
53
- endCursor?: string;
54
- /**
55
- * DTO.PAGE.TOTAL
56
- * @type {number}
57
- * @memberof TokenHolderPage
58
- */
59
- total?: number;
60
- /**
61
- * DTO.TOKEN_HOLDER.PAGE.DATA
62
- * @type {Array<TokenHolder>}
63
- * @memberof TokenHolderPage
64
- */
65
- data: Array<TokenHolder>;
66
- }
67
-
68
- /**
69
- * Check if a given object implements the TokenHolderPage interface.
70
- */
71
- export function instanceOfTokenHolderPage(value: object): value is TokenHolderPage {
72
- if (!('data' in value) || value['data'] === undefined) return false;
73
- return true;
74
- }
75
-
76
- export function TokenHolderPageFromJSON(json: any): TokenHolderPage {
77
- return TokenHolderPageFromJSONTyped(json, false);
78
- }
79
-
80
- export function TokenHolderPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenHolderPage {
81
- if (json == null) {
82
- return json;
83
- }
84
- return {
85
-
86
- 'hasNext': json['hasNext'] == null ? undefined : json['hasNext'],
87
- 'hasPrev': json['hasPrev'] == null ? undefined : json['hasPrev'],
88
- 'startCursor': json['startCursor'] == null ? undefined : json['startCursor'],
89
- 'endCursor': json['endCursor'] == null ? undefined : json['endCursor'],
90
- 'total': json['total'] == null ? undefined : json['total'],
91
- 'data': ((json['data'] as Array<any>).map(TokenHolderFromJSON)),
92
- };
93
- }
94
-
95
- export function TokenHolderPageToJSON(json: any): TokenHolderPage {
96
- return TokenHolderPageToJSONTyped(json, false);
97
- }
98
-
99
- export function TokenHolderPageToJSONTyped(value?: TokenHolderPage | null, ignoreDiscriminator: boolean = false): any {
100
- if (value == null) {
101
- return value;
102
- }
103
-
104
- return {
105
-
106
- 'hasNext': value['hasNext'],
107
- 'hasPrev': value['hasPrev'],
108
- 'startCursor': value['startCursor'],
109
- 'endCursor': value['endCursor'],
110
- 'total': value['total'],
111
- 'data': ((value['data'] as Array<any>).map(TokenHolderToJSON)),
112
- };
113
- }
114
-
@@ -1,114 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { Token } from './Token';
17
- import {
18
- TokenFromJSON,
19
- TokenFromJSONTyped,
20
- TokenToJSON,
21
- TokenToJSONTyped,
22
- } from './Token';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface TokenListPage
28
- */
29
- export interface TokenListPage {
30
- /**
31
- * DTO.PAGE.HAS_NEXT
32
- * @type {boolean}
33
- * @memberof TokenListPage
34
- */
35
- hasNext?: boolean;
36
- /**
37
- * DTO.PAGE.HAS_PREV
38
- * @type {boolean}
39
- * @memberof TokenListPage
40
- */
41
- hasPrev?: boolean;
42
- /**
43
- * DTO.PAGE.START_CURSOR
44
- * @type {string}
45
- * @memberof TokenListPage
46
- */
47
- startCursor?: string;
48
- /**
49
- * DTO.PAGE.END_CURSOR
50
- * @type {string}
51
- * @memberof TokenListPage
52
- */
53
- endCursor?: string;
54
- /**
55
- * DTO.PAGE.TOTAL
56
- * @type {number}
57
- * @memberof TokenListPage
58
- */
59
- total?: number;
60
- /**
61
- * DTO.TOKEN.PAGE.DATA
62
- * @type {Array<Token>}
63
- * @memberof TokenListPage
64
- */
65
- data: Array<Token>;
66
- }
67
-
68
- /**
69
- * Check if a given object implements the TokenListPage interface.
70
- */
71
- export function instanceOfTokenListPage(value: object): value is TokenListPage {
72
- if (!('data' in value) || value['data'] === undefined) return false;
73
- return true;
74
- }
75
-
76
- export function TokenListPageFromJSON(json: any): TokenListPage {
77
- return TokenListPageFromJSONTyped(json, false);
78
- }
79
-
80
- export function TokenListPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenListPage {
81
- if (json == null) {
82
- return json;
83
- }
84
- return {
85
-
86
- 'hasNext': json['hasNext'] == null ? undefined : json['hasNext'],
87
- 'hasPrev': json['hasPrev'] == null ? undefined : json['hasPrev'],
88
- 'startCursor': json['startCursor'] == null ? undefined : json['startCursor'],
89
- 'endCursor': json['endCursor'] == null ? undefined : json['endCursor'],
90
- 'total': json['total'] == null ? undefined : json['total'],
91
- 'data': ((json['data'] as Array<any>).map(TokenFromJSON)),
92
- };
93
- }
94
-
95
- export function TokenListPageToJSON(json: any): TokenListPage {
96
- return TokenListPageToJSONTyped(json, false);
97
- }
98
-
99
- export function TokenListPageToJSONTyped(value?: TokenListPage | null, ignoreDiscriminator: boolean = false): any {
100
- if (value == null) {
101
- return value;
102
- }
103
-
104
- return {
105
-
106
- 'hasNext': value['hasNext'],
107
- 'hasPrev': value['hasPrev'],
108
- 'startCursor': value['startCursor'],
109
- 'endCursor': value['endCursor'],
110
- 'total': value['total'],
111
- 'data': ((value['data'] as Array<any>).map(TokenToJSON)),
112
- };
113
- }
114
-