@openweb3-io/wallet 0.1.2 → 0.1.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.
Files changed (270) hide show
  1. package/dist/index.d.ts +2 -14
  2. package/dist/index.js +87 -167
  3. package/dist/index.js.map +1 -1
  4. package/dist/openapi/apis/AddressesApi.js +170 -191
  5. package/dist/openapi/apis/AddressesApi.js.map +1 -1
  6. package/dist/openapi/apis/CurrenciesApi.js +94 -111
  7. package/dist/openapi/apis/CurrenciesApi.js.map +1 -1
  8. package/dist/openapi/apis/ExchangesApi.js +278 -311
  9. package/dist/openapi/apis/ExchangesApi.js.map +1 -1
  10. package/dist/openapi/apis/NetworksApi.js +48 -61
  11. package/dist/openapi/apis/NetworksApi.js.map +1 -1
  12. package/dist/openapi/apis/RatesApi.js +105 -122
  13. package/dist/openapi/apis/RatesApi.js.map +1 -1
  14. package/dist/openapi/apis/TransactionsApi.js +256 -285
  15. package/dist/openapi/apis/TransactionsApi.js.map +1 -1
  16. package/dist/openapi/apis/WalletsApi.js +243 -272
  17. package/dist/openapi/apis/WalletsApi.js.map +1 -1
  18. package/dist/openapi/apis/WebhookEndpointsApi.js +190 -219
  19. package/dist/openapi/apis/WebhookEndpointsApi.js.map +1 -1
  20. package/dist/openapi/apis/WebhookEventTypesApi.js +31 -44
  21. package/dist/openapi/apis/WebhookEventTypesApi.js.map +1 -1
  22. package/dist/openapi/apis/WebhookEventsApi.js +83 -100
  23. package/dist/openapi/apis/WebhookEventsApi.js.map +1 -1
  24. package/dist/openapi/dist/apis/AddressesApi.d.ts +12 -0
  25. package/dist/openapi/dist/apis/AddressesApi.js +222 -0
  26. package/dist/openapi/dist/apis/AddressesApi.js.map +1 -0
  27. package/dist/openapi/dist/apis/CurrenciesApi.d.ts +10 -0
  28. package/dist/openapi/dist/apis/CurrenciesApi.js +140 -0
  29. package/dist/openapi/dist/apis/CurrenciesApi.js.map +1 -0
  30. package/dist/openapi/dist/apis/ExchangesApi.d.ts +18 -0
  31. package/dist/openapi/dist/apis/ExchangesApi.js +348 -0
  32. package/dist/openapi/dist/apis/ExchangesApi.js.map +1 -0
  33. package/dist/openapi/dist/apis/NetworksApi.d.ts +8 -0
  34. package/dist/openapi/dist/apis/NetworksApi.js +88 -0
  35. package/dist/openapi/dist/apis/NetworksApi.js.map +1 -0
  36. package/dist/openapi/dist/apis/RatesApi.d.ts +10 -0
  37. package/dist/openapi/dist/apis/RatesApi.js +151 -0
  38. package/dist/openapi/dist/apis/RatesApi.js.map +1 -0
  39. package/dist/openapi/dist/apis/TransactionsApi.d.ts +16 -0
  40. package/dist/openapi/dist/apis/TransactionsApi.js +320 -0
  41. package/dist/openapi/dist/apis/TransactionsApi.js.map +1 -0
  42. package/dist/openapi/dist/apis/WalletsApi.d.ts +16 -0
  43. package/dist/openapi/dist/apis/WalletsApi.js +307 -0
  44. package/dist/openapi/dist/apis/WalletsApi.js.map +1 -0
  45. package/dist/openapi/dist/apis/WebhookEndpointsApi.d.ts +16 -0
  46. package/dist/openapi/dist/apis/WebhookEndpointsApi.js +254 -0
  47. package/dist/openapi/dist/apis/WebhookEndpointsApi.js.map +1 -0
  48. package/dist/openapi/dist/apis/WebhookEventTypesApi.d.ts +8 -0
  49. package/dist/openapi/dist/apis/WebhookEventTypesApi.js +71 -0
  50. package/dist/openapi/dist/apis/WebhookEventTypesApi.js.map +1 -0
  51. package/dist/openapi/dist/apis/WebhookEventsApi.d.ts +10 -0
  52. package/dist/openapi/dist/apis/WebhookEventsApi.js +129 -0
  53. package/dist/openapi/dist/apis/WebhookEventsApi.js.map +1 -0
  54. package/dist/openapi/dist/apis/baseapi.d.ts +14 -0
  55. package/dist/openapi/dist/apis/baseapi.js +25 -0
  56. package/dist/openapi/dist/apis/baseapi.js.map +1 -0
  57. package/dist/openapi/dist/apis/exception.d.ts +5 -0
  58. package/dist/openapi/dist/apis/exception.js +12 -0
  59. package/dist/openapi/dist/apis/exception.js.map +1 -0
  60. package/dist/openapi/dist/auth/auth.d.ts +9 -0
  61. package/dist/openapi/dist/auth/auth.js +27 -0
  62. package/dist/openapi/dist/auth/auth.js.map +1 -0
  63. package/dist/openapi/dist/configuration.d.ts +6 -0
  64. package/dist/openapi/dist/configuration.js +21 -0
  65. package/dist/openapi/dist/configuration.js.map +1 -0
  66. package/dist/openapi/dist/http/http.d.ts +40 -0
  67. package/dist/openapi/dist/http/http.js +171 -0
  68. package/dist/openapi/dist/http/http.js.map +1 -0
  69. package/dist/openapi/dist/http/isomorphic-fetch.d.ts +3 -0
  70. package/dist/openapi/dist/http/isomorphic-fetch.js +31 -0
  71. package/dist/openapi/dist/http/isomorphic-fetch.js.map +1 -0
  72. package/dist/openapi/dist/index.d.ts +7 -0
  73. package/dist/openapi/dist/index.js +31 -0
  74. package/dist/openapi/dist/index.js.map +1 -0
  75. package/dist/openapi/dist/middleware.d.ts +6 -0
  76. package/dist/openapi/dist/middleware.js +17 -0
  77. package/dist/openapi/dist/middleware.js.map +1 -0
  78. package/dist/openapi/dist/models/Account.d.ts +17 -0
  79. package/dist/openapi/dist/models/Account.js +51 -0
  80. package/dist/openapi/dist/models/Account.js.map +1 -0
  81. package/dist/openapi/dist/models/Address.d.ts +17 -0
  82. package/dist/openapi/dist/models/Address.js +33 -0
  83. package/dist/openapi/dist/models/Address.js.map +1 -0
  84. package/dist/openapi/dist/models/ChainNetwork.d.ts +17 -0
  85. package/dist/openapi/dist/models/ChainNetwork.js +63 -0
  86. package/dist/openapi/dist/models/ChainNetwork.js.map +1 -0
  87. package/dist/openapi/dist/models/CreateEndpoint.d.ts +17 -0
  88. package/dist/openapi/dist/models/CreateEndpoint.js +57 -0
  89. package/dist/openapi/dist/models/CreateEndpoint.js.map +1 -0
  90. package/dist/openapi/dist/models/CreateExchange.d.ts +17 -0
  91. package/dist/openapi/dist/models/CreateExchange.js +45 -0
  92. package/dist/openapi/dist/models/CreateExchange.js.map +1 -0
  93. package/dist/openapi/dist/models/CreateTransferRequest.d.ts +17 -0
  94. package/dist/openapi/dist/models/CreateTransferRequest.js +39 -0
  95. package/dist/openapi/dist/models/CreateTransferRequest.js.map +1 -0
  96. package/dist/openapi/dist/models/CreateTransferResponse.d.ts +17 -0
  97. package/dist/openapi/dist/models/CreateTransferResponse.js +21 -0
  98. package/dist/openapi/dist/models/CreateTransferResponse.js.map +1 -0
  99. package/dist/openapi/dist/models/CreateWalletRequest.d.ts +17 -0
  100. package/dist/openapi/dist/models/CreateWalletRequest.js +27 -0
  101. package/dist/openapi/dist/models/CreateWalletRequest.js.map +1 -0
  102. package/dist/openapi/dist/models/CreateWithdrawReply.d.ts +17 -0
  103. package/dist/openapi/dist/models/CreateWithdrawReply.js +21 -0
  104. package/dist/openapi/dist/models/CreateWithdrawReply.js.map +1 -0
  105. package/dist/openapi/dist/models/CreateWithdrawRequest.d.ts +17 -0
  106. package/dist/openapi/dist/models/CreateWithdrawRequest.js +57 -0
  107. package/dist/openapi/dist/models/CreateWithdrawRequest.js.map +1 -0
  108. package/dist/openapi/dist/models/Currency.d.ts +17 -0
  109. package/dist/openapi/dist/models/Currency.js +135 -0
  110. package/dist/openapi/dist/models/Currency.js.map +1 -0
  111. package/dist/openapi/dist/models/CurrencyNetwork.d.ts +17 -0
  112. package/dist/openapi/dist/models/CurrencyNetwork.js +135 -0
  113. package/dist/openapi/dist/models/CurrencyNetwork.js.map +1 -0
  114. package/dist/openapi/dist/models/CurrencyPair.d.ts +17 -0
  115. package/dist/openapi/dist/models/CurrencyPair.js +27 -0
  116. package/dist/openapi/dist/models/CurrencyPair.js.map +1 -0
  117. package/dist/openapi/dist/models/CursorPageAccount.d.ts +17 -0
  118. package/dist/openapi/dist/models/CursorPageAccount.js +39 -0
  119. package/dist/openapi/dist/models/CursorPageAccount.js.map +1 -0
  120. package/dist/openapi/dist/models/CursorPageAddress.d.ts +17 -0
  121. package/dist/openapi/dist/models/CursorPageAddress.js +39 -0
  122. package/dist/openapi/dist/models/CursorPageAddress.js.map +1 -0
  123. package/dist/openapi/dist/models/CursorPageChainNetwork.d.ts +17 -0
  124. package/dist/openapi/dist/models/CursorPageChainNetwork.js +39 -0
  125. package/dist/openapi/dist/models/CursorPageChainNetwork.js.map +1 -0
  126. package/dist/openapi/dist/models/CursorPageCurrency.d.ts +17 -0
  127. package/dist/openapi/dist/models/CursorPageCurrency.js +39 -0
  128. package/dist/openapi/dist/models/CursorPageCurrency.js.map +1 -0
  129. package/dist/openapi/dist/models/CursorPageEndpoint.d.ts +17 -0
  130. package/dist/openapi/dist/models/CursorPageEndpoint.js +39 -0
  131. package/dist/openapi/dist/models/CursorPageEndpoint.js.map +1 -0
  132. package/dist/openapi/dist/models/CursorPageExchange.d.ts +17 -0
  133. package/dist/openapi/dist/models/CursorPageExchange.js +39 -0
  134. package/dist/openapi/dist/models/CursorPageExchange.js.map +1 -0
  135. package/dist/openapi/dist/models/CursorPageTransaction.d.ts +17 -0
  136. package/dist/openapi/dist/models/CursorPageTransaction.js +39 -0
  137. package/dist/openapi/dist/models/CursorPageTransaction.js.map +1 -0
  138. package/dist/openapi/dist/models/CursorPageWallet.d.ts +17 -0
  139. package/dist/openapi/dist/models/CursorPageWallet.js +39 -0
  140. package/dist/openapi/dist/models/CursorPageWallet.js.map +1 -0
  141. package/dist/openapi/dist/models/CursorPageWebhookEvent.d.ts +17 -0
  142. package/dist/openapi/dist/models/CursorPageWebhookEvent.js +39 -0
  143. package/dist/openapi/dist/models/CursorPageWebhookEvent.js.map +1 -0
  144. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.d.ts +17 -0
  145. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.js +21 -0
  146. package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.js.map +1 -0
  147. package/dist/openapi/dist/models/Endpoint.d.ts +17 -0
  148. package/dist/openapi/dist/models/Endpoint.js +69 -0
  149. package/dist/openapi/dist/models/Endpoint.js.map +1 -0
  150. package/dist/openapi/dist/models/EstimateFeeRequest.d.ts +17 -0
  151. package/dist/openapi/dist/models/EstimateFeeRequest.js +45 -0
  152. package/dist/openapi/dist/models/EstimateFeeRequest.js.map +1 -0
  153. package/dist/openapi/dist/models/EstimateFeeResponse.d.ts +17 -0
  154. package/dist/openapi/dist/models/EstimateFeeResponse.js +27 -0
  155. package/dist/openapi/dist/models/EstimateFeeResponse.js.map +1 -0
  156. package/dist/openapi/dist/models/EstimateResponse.d.ts +17 -0
  157. package/dist/openapi/dist/models/EstimateResponse.js +45 -0
  158. package/dist/openapi/dist/models/EstimateResponse.js.map +1 -0
  159. package/dist/openapi/dist/models/EventType.d.ts +17 -0
  160. package/dist/openapi/dist/models/EventType.js +27 -0
  161. package/dist/openapi/dist/models/EventType.js.map +1 -0
  162. package/dist/openapi/dist/models/Exchange.d.ts +17 -0
  163. package/dist/openapi/dist/models/Exchange.js +99 -0
  164. package/dist/openapi/dist/models/Exchange.js.map +1 -0
  165. package/dist/openapi/dist/models/ExchangeCurrencyPairs.d.ts +17 -0
  166. package/dist/openapi/dist/models/ExchangeCurrencyPairs.js +27 -0
  167. package/dist/openapi/dist/models/ExchangeCurrencyPairs.js.map +1 -0
  168. package/dist/openapi/dist/models/ExchangeSubmitResponse.d.ts +17 -0
  169. package/dist/openapi/dist/models/ExchangeSubmitResponse.js +21 -0
  170. package/dist/openapi/dist/models/ExchangeSubmitResponse.js.map +1 -0
  171. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.d.ts +17 -0
  172. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.js +51 -0
  173. package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.js.map +1 -0
  174. package/dist/openapi/dist/models/GetRatesRequest.d.ts +17 -0
  175. package/dist/openapi/dist/models/GetRatesRequest.js +21 -0
  176. package/dist/openapi/dist/models/GetRatesRequest.js.map +1 -0
  177. package/dist/openapi/dist/models/GetRatesResponse.d.ts +17 -0
  178. package/dist/openapi/dist/models/GetRatesResponse.js +21 -0
  179. package/dist/openapi/dist/models/GetRatesResponse.js.map +1 -0
  180. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.d.ts +17 -0
  181. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.js +21 -0
  182. package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.js.map +1 -0
  183. package/dist/openapi/dist/models/ModelError.d.ts +17 -0
  184. package/dist/openapi/dist/models/ModelError.js +27 -0
  185. package/dist/openapi/dist/models/ModelError.js.map +1 -0
  186. package/dist/openapi/dist/models/ObjectSerializer.d.ts +55 -0
  187. package/dist/openapi/dist/models/ObjectSerializer.js +330 -0
  188. package/dist/openapi/dist/models/ObjectSerializer.js.map +1 -0
  189. package/dist/openapi/dist/models/Rate.d.ts +17 -0
  190. package/dist/openapi/dist/models/Rate.js +27 -0
  191. package/dist/openapi/dist/models/Rate.js.map +1 -0
  192. package/dist/openapi/dist/models/ResendWebhookEventRequest.d.ts +17 -0
  193. package/dist/openapi/dist/models/ResendWebhookEventRequest.js +27 -0
  194. package/dist/openapi/dist/models/ResendWebhookEventRequest.js.map +1 -0
  195. package/dist/openapi/dist/models/ResendWebhookEventResponse.d.ts +17 -0
  196. package/dist/openapi/dist/models/ResendWebhookEventResponse.js +21 -0
  197. package/dist/openapi/dist/models/ResendWebhookEventResponse.js.map +1 -0
  198. package/dist/openapi/dist/models/Transaction.d.ts +17 -0
  199. package/dist/openapi/dist/models/Transaction.js +99 -0
  200. package/dist/openapi/dist/models/Transaction.js.map +1 -0
  201. package/dist/openapi/dist/models/TransactionDirection.d.ts +0 -0
  202. package/dist/openapi/dist/models/TransactionDirection.js +2 -0
  203. package/dist/openapi/dist/models/TransactionDirection.js.map +1 -0
  204. package/dist/openapi/dist/models/TransactionStatus.d.ts +0 -0
  205. package/dist/openapi/dist/models/TransactionStatus.js +2 -0
  206. package/dist/openapi/dist/models/TransactionStatus.js.map +1 -0
  207. package/dist/openapi/dist/models/UpdateEndpoint.d.ts +17 -0
  208. package/dist/openapi/dist/models/UpdateEndpoint.js +57 -0
  209. package/dist/openapi/dist/models/UpdateEndpoint.js.map +1 -0
  210. package/dist/openapi/dist/models/UpdateWalletRequest.d.ts +17 -0
  211. package/dist/openapi/dist/models/UpdateWalletRequest.js +27 -0
  212. package/dist/openapi/dist/models/UpdateWalletRequest.js.map +1 -0
  213. package/dist/openapi/dist/models/Wallet.d.ts +17 -0
  214. package/dist/openapi/dist/models/Wallet.js +39 -0
  215. package/dist/openapi/dist/models/Wallet.js.map +1 -0
  216. package/dist/openapi/dist/models/WebhookEvent.d.ts +17 -0
  217. package/dist/openapi/dist/models/WebhookEvent.js +39 -0
  218. package/dist/openapi/dist/models/WebhookEvent.js.map +1 -0
  219. package/dist/openapi/dist/models/all.d.ts +46 -0
  220. package/dist/openapi/dist/models/all.js +59 -0
  221. package/dist/openapi/dist/models/all.js.map +1 -0
  222. package/dist/openapi/dist/rxjsStub.d.ts +10 -0
  223. package/dist/openapi/dist/rxjsStub.js +32 -0
  224. package/dist/openapi/dist/rxjsStub.js.map +1 -0
  225. package/dist/openapi/dist/servers.d.ts +12 -0
  226. package/dist/openapi/dist/servers.js +31 -0
  227. package/dist/openapi/dist/servers.js.map +1 -0
  228. package/dist/openapi/dist/types/ObjectParamAPI.d.ts +82 -0
  229. package/dist/openapi/dist/types/ObjectParamAPI.js +170 -0
  230. package/dist/openapi/dist/types/ObjectParamAPI.js.map +1 -0
  231. package/dist/openapi/dist/types/ObservableAPI.d.ts +92 -0
  232. package/dist/openapi/dist/types/ObservableAPI.js +576 -0
  233. package/dist/openapi/dist/types/ObservableAPI.js.map +1 -0
  234. package/dist/openapi/dist/types/PromiseAPI.d.ts +82 -0
  235. package/dist/openapi/dist/types/PromiseAPI.js +202 -0
  236. package/dist/openapi/dist/types/PromiseAPI.js.map +1 -0
  237. package/dist/openapi/dist/util.d.ts +1 -0
  238. package/dist/openapi/dist/util.js +25 -0
  239. package/dist/openapi/dist/util.js.map +1 -0
  240. package/dist/openapi/http/http.js +23 -36
  241. package/dist/openapi/http/http.js.map +1 -1
  242. package/dist/openapi/index.d.ts +1 -1
  243. package/dist/openapi/index.js +0 -1
  244. package/dist/openapi/index.js.map +1 -1
  245. package/dist/openapi/models/CreateTransferRequest.d.ts +3 -0
  246. package/dist/openapi/models/CreateTransferRequest.js +6 -0
  247. package/dist/openapi/models/CreateTransferRequest.js.map +1 -1
  248. package/dist/openapi/models/Currency.d.ts +2 -0
  249. package/dist/openapi/models/Currency.js +12 -0
  250. package/dist/openapi/models/Currency.js.map +1 -1
  251. package/dist/openapi/models/CurrencyNetwork.d.ts +1 -0
  252. package/dist/openapi/models/CurrencyNetwork.js +6 -0
  253. package/dist/openapi/models/CurrencyNetwork.js.map +1 -1
  254. package/dist/openapi/models/EstimateFeeResponse.js.map +1 -1
  255. package/dist/openapi/models/ObjectSerializer.d.ts +0 -7
  256. package/dist/openapi/models/ObjectSerializer.js +0 -21
  257. package/dist/openapi/models/ObjectSerializer.js.map +1 -1
  258. package/dist/openapi/models/all.d.ts +0 -7
  259. package/dist/openapi/models/all.js +0 -7
  260. package/dist/openapi/models/all.js.map +1 -1
  261. package/dist/openapi/types/ObjectParamAPI.d.ts +0 -37
  262. package/dist/openapi/types/ObjectParamAPI.js +14 -39
  263. package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
  264. package/dist/openapi/types/ObservableAPI.d.ts +0 -19
  265. package/dist/openapi/types/ObservableAPI.js +1 -100
  266. package/dist/openapi/types/ObservableAPI.js.map +1 -1
  267. package/dist/openapi/types/PromiseAPI.d.ts +0 -17
  268. package/dist/openapi/types/PromiseAPI.js +14 -45
  269. package/dist/openapi/types/PromiseAPI.js.map +1 -1
  270. package/package.json +2 -1
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.WebhookEventTypesApiResponseProcessor = exports.WebhookEventTypesApiRequestFactory = void 0;
13
4
  const baseapi_1 = require("./baseapi");
@@ -16,45 +7,41 @@ const ObjectSerializer_1 = require("../models/ObjectSerializer");
16
7
  const exception_1 = require("./exception");
17
8
  const util_1 = require("../util");
18
9
  class WebhookEventTypesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
19
- v1WebhooksEventtypesList(_options) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- let _config = _options || this.configuration;
22
- const localVarPath = '/api/v1/webhook/event_types';
23
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
24
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
25
- let authMethod = null;
26
- authMethod = _config.authMethods["ApiKeyAuth"];
27
- if (authMethod) {
28
- yield authMethod.applySecurityAuthentication(requestContext);
29
- }
30
- return requestContext;
31
- });
10
+ async v1WebhooksEventtypesList(_options) {
11
+ let _config = _options || this.configuration;
12
+ const localVarPath = '/api/v1/webhook/event_types';
13
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
14
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
15
+ let authMethod = null;
16
+ authMethod = _config.authMethods["ApiKeyAuth"];
17
+ if (authMethod) {
18
+ await authMethod.applySecurityAuthentication(requestContext);
19
+ }
20
+ return requestContext;
32
21
  }
33
22
  }
34
23
  exports.WebhookEventTypesApiRequestFactory = WebhookEventTypesApiRequestFactory;
35
24
  class WebhookEventTypesApiResponseProcessor {
36
- v1WebhooksEventtypesList(response) {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
39
- if (util_1.isCodeInRange("200", response.httpStatusCode)) {
40
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<EventType>", "");
41
- return body;
42
- }
43
- if (util_1.isCodeInRange("400", response.httpStatusCode)) {
44
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
45
- throw new exception_1.ApiException(400, body);
46
- }
47
- if (util_1.isCodeInRange("500", response.httpStatusCode)) {
48
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
49
- throw new exception_1.ApiException(500, body);
50
- }
51
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
52
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<EventType>", "");
53
- return body;
54
- }
55
- let body = response.body || "";
56
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
57
- });
25
+ async v1WebhooksEventtypesList(response) {
26
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
27
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
28
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Array<EventType>", "");
29
+ return body;
30
+ }
31
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
32
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
33
+ throw new exception_1.ApiException(400, body);
34
+ }
35
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
36
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
37
+ throw new exception_1.ApiException(500, body);
38
+ }
39
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
40
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Array<EventType>", "");
41
+ return body;
42
+ }
43
+ let body = response.body || "";
44
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
58
45
  }
59
46
  }
60
47
  exports.WebhookEventTypesApiResponseProcessor = WebhookEventTypesApiResponseProcessor;
@@ -1 +1 @@
1
- {"version":3,"file":"WebhookEventTypesApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/WebhookEventTypesApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAAiE;AAEjE,uCAAoF;AACpF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsC;AAOtC,MAAa,kCAAmC,SAAQ,+BAAqB;IAM5D,wBAAwB,CAAC,QAAwB;;YAC1D,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;YAG7C,MAAM,YAAY,GAAG,6BAA6B,CAAC;YAGnD,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,YAAY,EAAE,iBAAU,CAAC,GAAG,CAAC,CAAC;YAC3F,cAAc,CAAC,cAAc,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAA;YAWtE,IAAI,UAAU,GAAG,IAAI,CAAC;YAEtB,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;YAC9C,IAAI,UAAU,EAAE;gBACZ,MAAM,UAAU,CAAC,2BAA2B,CAAC,cAAc,CAAC,CAAC;aAChE;YAED,OAAO,cAAc,CAAC;QAC1B,CAAC;KAAA;CAEJ;AAnCD,gFAmCC;AAED,MAAa,qCAAqC;IAShC,wBAAwB,CAAC,QAAyB;;YAC5D,MAAM,WAAW,GAAG,mCA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wBAAY,CAAS,QAAQ,CAAC,cAAc,EAAE,oCAAoC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAChH,CAAC;CAEJ;AA9CD,sFA8CC"}
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.WebhookEventsApiResponseProcessor = exports.WebhookEventsApiRequestFactory = void 0;
13
4
  const baseapi_1 = require("./baseapi");
@@ -16,103 +7,95 @@ const ObjectSerializer_1 = require("../models/ObjectSerializer");
16
7
  const exception_1 = require("./exception");
17
8
  const util_1 = require("../util");
18
9
  class WebhookEventsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
19
- v1WebhooksEventsList(limit, cursor, eventTypes, _options) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- let _config = _options || this.configuration;
22
- if (limit === null || limit === undefined) {
23
- throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WebhooksEventsList.');
24
- }
25
- const localVarPath = '/api/v1/webhook/events';
26
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
27
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
28
- if (cursor !== undefined) {
29
- requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
30
- }
31
- if (eventTypes !== undefined) {
32
- requestContext.setQueryParam("event_types", ObjectSerializer_1.ObjectSerializer.serialize(eventTypes, "Array<string>", ""));
33
- }
34
- if (limit !== undefined) {
35
- requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
36
- }
37
- let authMethod = null;
38
- authMethod = _config.authMethods["ApiKeyAuth"];
39
- if (authMethod) {
40
- yield authMethod.applySecurityAuthentication(requestContext);
41
- }
42
- return requestContext;
43
- });
10
+ async v1WebhooksEventsList(limit, cursor, eventTypes, _options) {
11
+ let _config = _options || this.configuration;
12
+ if (limit === null || limit === undefined) {
13
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WebhooksEventsList.');
14
+ }
15
+ const localVarPath = '/api/v1/webhook/events';
16
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
17
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
18
+ if (cursor !== undefined) {
19
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
20
+ }
21
+ if (eventTypes !== undefined) {
22
+ requestContext.setQueryParam("event_types", ObjectSerializer_1.ObjectSerializer.serialize(eventTypes, "Array<string>", ""));
23
+ }
24
+ if (limit !== undefined) {
25
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
26
+ }
27
+ let authMethod = null;
28
+ authMethod = _config.authMethods["ApiKeyAuth"];
29
+ if (authMethod) {
30
+ await authMethod.applySecurityAuthentication(requestContext);
31
+ }
32
+ return requestContext;
44
33
  }
45
- v1WebhooksEventsResend(request, _options) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- let _config = _options || this.configuration;
48
- if (request === null || request === undefined) {
49
- throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WebhooksEventsResend.');
50
- }
51
- const localVarPath = '/api/v1/webhook/events/resend';
52
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
53
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
54
- const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
55
- "application/json"
56
- ]);
57
- requestContext.setHeaderParam("Content-Type", contentType);
58
- const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "ResendWebhookEventRequest", ""), contentType);
59
- requestContext.setBody(serializedBody);
60
- let authMethod = null;
61
- authMethod = _config.authMethods["ApiKeyAuth"];
62
- if (authMethod) {
63
- yield authMethod.applySecurityAuthentication(requestContext);
64
- }
65
- return requestContext;
66
- });
34
+ async v1WebhooksEventsResend(request, _options) {
35
+ let _config = _options || this.configuration;
36
+ if (request === null || request === undefined) {
37
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1WebhooksEventsResend.');
38
+ }
39
+ const localVarPath = '/api/v1/webhook/events/resend';
40
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
41
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
42
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
43
+ "application/json"
44
+ ]);
45
+ requestContext.setHeaderParam("Content-Type", contentType);
46
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "ResendWebhookEventRequest", ""), contentType);
47
+ requestContext.setBody(serializedBody);
48
+ let authMethod = null;
49
+ authMethod = _config.authMethods["ApiKeyAuth"];
50
+ if (authMethod) {
51
+ await authMethod.applySecurityAuthentication(requestContext);
52
+ }
53
+ return requestContext;
67
54
  }
68
55
  }
69
56
  exports.WebhookEventsApiRequestFactory = WebhookEventsApiRequestFactory;
70
57
  class WebhookEventsApiResponseProcessor {
71
- v1WebhooksEventsList(response) {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
74
- if (util_1.isCodeInRange("200", response.httpStatusCode)) {
75
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageWebhookEvent", "");
76
- return body;
77
- }
78
- if (util_1.isCodeInRange("400", response.httpStatusCode)) {
79
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
80
- throw new exception_1.ApiException(400, body);
81
- }
82
- if (util_1.isCodeInRange("500", response.httpStatusCode)) {
83
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
84
- throw new exception_1.ApiException(500, body);
85
- }
86
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
87
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageWebhookEvent", "");
88
- return body;
89
- }
90
- let body = response.body || "";
91
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
92
- });
58
+ async v1WebhooksEventsList(response) {
59
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
60
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
61
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CursorPageWebhookEvent", "");
62
+ return body;
63
+ }
64
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
65
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
66
+ throw new exception_1.ApiException(400, body);
67
+ }
68
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
69
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
70
+ throw new exception_1.ApiException(500, body);
71
+ }
72
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
73
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CursorPageWebhookEvent", "");
74
+ return body;
75
+ }
76
+ let body = response.body || "";
77
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
93
78
  }
94
- v1WebhooksEventsResend(response) {
95
- return __awaiter(this, void 0, void 0, function* () {
96
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
97
- if (util_1.isCodeInRange("200", response.httpStatusCode)) {
98
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ResendWebhookEventResponse", "");
99
- return body;
100
- }
101
- if (util_1.isCodeInRange("400", response.httpStatusCode)) {
102
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
103
- throw new exception_1.ApiException(400, body);
104
- }
105
- if (util_1.isCodeInRange("500", response.httpStatusCode)) {
106
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
107
- throw new exception_1.ApiException(500, body);
108
- }
109
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
110
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ResendWebhookEventResponse", "");
111
- return body;
112
- }
113
- let body = response.body || "";
114
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
115
- });
79
+ async v1WebhooksEventsResend(response) {
80
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
81
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
82
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ResendWebhookEventResponse", "");
83
+ return body;
84
+ }
85
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
86
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
87
+ throw new exception_1.ApiException(400, body);
88
+ }
89
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
90
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "Error", "");
91
+ throw new exception_1.ApiException(500, body);
92
+ }
93
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
94
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ResendWebhookEventResponse", "");
95
+ return body;
96
+ }
97
+ let body = response.body || "";
98
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
116
99
  }
117
100
  }
118
101
  exports.WebhookEventsApiResponseProcessor = WebhookEventsApiResponseProcessor;
@@ -1 +1 @@
1
- {"version":3,"file":"WebhookEventsApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/WebhookEventsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAAiE;AAEjE,uCAAoF;AACpF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsC;AAStC,MAAa,8BAA+B,SAAQ,+BAAqB;IASxD,oBAAoB,CAAC,KAAa,EAAE,MAAe,EAAE,UAA0B,EAAE,QAAwB;;YAClH,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;YAG7C,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;gBACvC,MAAM,IAAI,uBAAa,CAAC,mFAAmF,CAAC,CAAC;aAChH;YAMD,MAAM,YAAY,GAAG,wBAAwB,CAAC;YAG9C,MAAM,cA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AC,EAC/D,OAAO,EAAE,EAAE,CACL,CAAC;YACX,MAAM,IAAI,wBAAY,CAAQ,GAAG,EAAE,IAAI,CAAC,CAAC;SAC5C;QAGD,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,EAAE;YAClE,MAAM,IAAI,GAA+B,mCAAgB,CAAC,WAAW,CACjE,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,4BAA4B,EAAE,EAAE,CACL,CAAC;YAChC,OAAO,IAAI,CAAC;SACf;QAED,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;QAC/B,MAAM,IAAI,wBAAY,CAAS,QAAQ,CAAC,cAAc,EAAE,oCAAoC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAChH,CAAC;CAEJ;AA1FD,8EA0FC"}
@@ -0,0 +1,12 @@
1
+ export class AddressesApiRequestFactory extends BaseAPIRequestFactory {
2
+ constructor(configuration: import("..").Configuration);
3
+ v1AddressesList(limit: any, currency: any, cursor: any, type: any, walletId: any, _options: any): any;
4
+ v1WalletsGetDepositAddress(walletId: any, currency: any, network: any, _options: any): any;
5
+ v1WalletsListDepositAddresses(walletId: any, limit: any, currency: any, cursor: any, network: any, _options: any): any;
6
+ }
7
+ export class AddressesApiResponseProcessor {
8
+ v1AddressesList(response: any): any;
9
+ v1WalletsGetDepositAddress(response: any): any;
10
+ v1WalletsListDepositAddresses(response: any): any;
11
+ }
12
+ import { BaseAPIRequestFactory } from "./baseapi";
@@ -0,0 +1,222 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddressesApiResponseProcessor = exports.AddressesApiRequestFactory = void 0;
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try {
8
+ step(generator.next(value));
9
+ }
10
+ catch (e) {
11
+ reject(e);
12
+ } }
13
+ function rejected(value) { try {
14
+ step(generator["throw"](value));
15
+ }
16
+ catch (e) {
17
+ reject(e);
18
+ } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ const baseapi_1 = require("./baseapi");
24
+ const http_1 = require("../http/http");
25
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
26
+ const exception_1 = require("./exception");
27
+ const util_1 = require("../util");
28
+ class AddressesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
29
+ v1AddressesList(limit, currency, cursor, type, walletId, _options) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ let _config = _options || this.configuration;
32
+ if (limit === null || limit === undefined) {
33
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1AddressesList.');
34
+ }
35
+ const localVarPath = '/api/v1/addresses';
36
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
37
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
38
+ if (currency !== undefined) {
39
+ requestContext.setQueryParam("currency", ObjectSerializer_1.ObjectSerializer.serialize(currency, "string", ""));
40
+ }
41
+ if (cursor !== undefined) {
42
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
43
+ }
44
+ if (limit !== undefined) {
45
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
46
+ }
47
+ if (type !== undefined) {
48
+ requestContext.setQueryParam("type", ObjectSerializer_1.ObjectSerializer.serialize(type, "string", ""));
49
+ }
50
+ if (walletId !== undefined) {
51
+ requestContext.setQueryParam("walletId", ObjectSerializer_1.ObjectSerializer.serialize(walletId, "string", ""));
52
+ }
53
+ let authMethod = null;
54
+ authMethod = _config.authMethods["ApiKeyAuth"];
55
+ if (authMethod) {
56
+ yield authMethod.applySecurityAuthentication(requestContext);
57
+ }
58
+ return requestContext;
59
+ });
60
+ }
61
+ v1WalletsGetDepositAddress(walletId, currency, network, _options) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ let _config = _options || this.configuration;
64
+ if (walletId === null || walletId === undefined) {
65
+ throw new baseapi_1.RequiredError('Required parameter walletId was null or undefined when calling v1WalletsGetDepositAddress.');
66
+ }
67
+ if (currency === null || currency === undefined) {
68
+ throw new baseapi_1.RequiredError('Required parameter currency was null or undefined when calling v1WalletsGetDepositAddress.');
69
+ }
70
+ if (network === null || network === undefined) {
71
+ throw new baseapi_1.RequiredError('Required parameter network was null or undefined when calling v1WalletsGetDepositAddress.');
72
+ }
73
+ const localVarPath = '/api/v1/wallets/{walletId}/deposit_address'
74
+ .replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
75
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
76
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
77
+ if (currency !== undefined) {
78
+ requestContext.setQueryParam("currency", ObjectSerializer_1.ObjectSerializer.serialize(currency, "string", ""));
79
+ }
80
+ if (network !== undefined) {
81
+ requestContext.setQueryParam("network", ObjectSerializer_1.ObjectSerializer.serialize(network, "string", ""));
82
+ }
83
+ let authMethod = null;
84
+ authMethod = _config.authMethods["ApiKeyAuth"];
85
+ if (authMethod) {
86
+ yield authMethod.applySecurityAuthentication(requestContext);
87
+ }
88
+ return requestContext;
89
+ });
90
+ }
91
+ v1WalletsListDepositAddresses(walletId, limit, currency, cursor, network, _options) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ let _config = _options || this.configuration;
94
+ if (walletId === null || walletId === undefined) {
95
+ throw new baseapi_1.RequiredError('Required parameter walletId was null or undefined when calling v1WalletsListDepositAddresses.');
96
+ }
97
+ if (limit === null || limit === undefined) {
98
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WalletsListDepositAddresses.');
99
+ }
100
+ const localVarPath = '/api/v1/wallets/{walletId}/deposit_addresses'
101
+ .replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
102
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
103
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
104
+ if (currency !== undefined) {
105
+ requestContext.setQueryParam("currency", ObjectSerializer_1.ObjectSerializer.serialize(currency, "string", ""));
106
+ }
107
+ if (cursor !== undefined) {
108
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
109
+ }
110
+ if (limit !== undefined) {
111
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
112
+ }
113
+ if (network !== undefined) {
114
+ requestContext.setQueryParam("network", ObjectSerializer_1.ObjectSerializer.serialize(network, "string", ""));
115
+ }
116
+ let authMethod = null;
117
+ authMethod = _config.authMethods["ApiKeyAuth"];
118
+ if (authMethod) {
119
+ yield authMethod.applySecurityAuthentication(requestContext);
120
+ }
121
+ return requestContext;
122
+ });
123
+ }
124
+ }
125
+ exports.AddressesApiRequestFactory = AddressesApiRequestFactory;
126
+ class AddressesApiResponseProcessor {
127
+ v1AddressesList(response) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
130
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
131
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAddress", "");
132
+ return body;
133
+ }
134
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
135
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
136
+ throw new exception_1.ApiException(400, body);
137
+ }
138
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
139
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
140
+ throw new exception_1.ApiException(401, body);
141
+ }
142
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
143
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
144
+ throw new exception_1.ApiException(404, body);
145
+ }
146
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
147
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
148
+ throw new exception_1.ApiException(500, body);
149
+ }
150
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
151
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAddress", "");
152
+ return body;
153
+ }
154
+ let body = response.body || "";
155
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
156
+ });
157
+ }
158
+ v1WalletsGetDepositAddress(response) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
161
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
162
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Address", "");
163
+ return body;
164
+ }
165
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
166
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
167
+ throw new exception_1.ApiException(400, body);
168
+ }
169
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
170
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
171
+ throw new exception_1.ApiException(401, body);
172
+ }
173
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
174
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
175
+ throw new exception_1.ApiException(404, body);
176
+ }
177
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
178
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
179
+ throw new exception_1.ApiException(500, body);
180
+ }
181
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
182
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Address", "");
183
+ return body;
184
+ }
185
+ let body = response.body || "";
186
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
187
+ });
188
+ }
189
+ v1WalletsListDepositAddresses(response) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
192
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
193
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAddress", "");
194
+ return body;
195
+ }
196
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
197
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
198
+ throw new exception_1.ApiException(400, body);
199
+ }
200
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
201
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
202
+ throw new exception_1.ApiException(401, body);
203
+ }
204
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
205
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
206
+ throw new exception_1.ApiException(404, body);
207
+ }
208
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
209
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
210
+ throw new exception_1.ApiException(500, body);
211
+ }
212
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
213
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAddress", "");
214
+ return body;
215
+ }
216
+ let body = response.body || "";
217
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
218
+ });
219
+ }
220
+ }
221
+ exports.AddressesApiResponseProcessor = AddressesApiResponseProcessor;
222
+ //# sourceMappingURL=AddressesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddressesApi.js","sourceRoot":"","sources":["../../../../src/openapi/dist/apis/AddressesApi.js"],"names":[],"mappings":";;;AAAA,IAAI,SAAS,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS;IACnF,SAAS,KAAK,CAAC,KAAK,IAAI,OAAO,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5G,OAAO,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,GA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