@openweb3-io/wallet 0.1.0

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 (230) hide show
  1. package/README.md +91 -0
  2. package/dist/index.d.ts +158 -0
  3. package/dist/index.js +339 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/openapi/apis/AddressesApi.d.ts +15 -0
  6. package/dist/openapi/apis/AddressesApi.js +224 -0
  7. package/dist/openapi/apis/AddressesApi.js.map +1 -0
  8. package/dist/openapi/apis/CurrenciesApi.d.ts +13 -0
  9. package/dist/openapi/apis/CurrenciesApi.js +138 -0
  10. package/dist/openapi/apis/CurrenciesApi.js.map +1 -0
  11. package/dist/openapi/apis/ExchangesApi.d.ts +25 -0
  12. package/dist/openapi/apis/ExchangesApi.js +338 -0
  13. package/dist/openapi/apis/ExchangesApi.js.map +1 -0
  14. package/dist/openapi/apis/NetworksApi.d.ts +10 -0
  15. package/dist/openapi/apis/NetworksApi.js +82 -0
  16. package/dist/openapi/apis/NetworksApi.js.map +1 -0
  17. package/dist/openapi/apis/RatesApi.d.ts +14 -0
  18. package/dist/openapi/apis/RatesApi.js +149 -0
  19. package/dist/openapi/apis/RatesApi.js.map +1 -0
  20. package/dist/openapi/apis/SweepFundsApi.d.ts +11 -0
  21. package/dist/openapi/apis/SweepFundsApi.js +86 -0
  22. package/dist/openapi/apis/SweepFundsApi.js.map +1 -0
  23. package/dist/openapi/apis/TransactionsApi.d.ts +25 -0
  24. package/dist/openapi/apis/TransactionsApi.js +322 -0
  25. package/dist/openapi/apis/TransactionsApi.js.map +1 -0
  26. package/dist/openapi/apis/WalletsApi.d.ts +22 -0
  27. package/dist/openapi/apis/WalletsApi.js +317 -0
  28. package/dist/openapi/apis/WalletsApi.js.map +1 -0
  29. package/dist/openapi/apis/WebhookEndpointsApi.d.ts +22 -0
  30. package/dist/openapi/apis/WebhookEndpointsApi.js +264 -0
  31. package/dist/openapi/apis/WebhookEndpointsApi.js.map +1 -0
  32. package/dist/openapi/apis/WebhookEventTypesApi.d.ts +10 -0
  33. package/dist/openapi/apis/WebhookEventTypesApi.js +65 -0
  34. package/dist/openapi/apis/WebhookEventTypesApi.js.map +1 -0
  35. package/dist/openapi/apis/WebhookEventsApi.d.ts +14 -0
  36. package/dist/openapi/apis/WebhookEventsApi.js +127 -0
  37. package/dist/openapi/apis/WebhookEventsApi.js.map +1 -0
  38. package/dist/openapi/apis/baseapi.d.ts +16 -0
  39. package/dist/openapi/apis/baseapi.js +25 -0
  40. package/dist/openapi/apis/baseapi.js.map +1 -0
  41. package/dist/openapi/apis/exception.d.ts +5 -0
  42. package/dist/openapi/apis/exception.js +12 -0
  43. package/dist/openapi/apis/exception.js.map +1 -0
  44. package/dist/openapi/auth/auth.d.ts +40 -0
  45. package/dist/openapi/auth/auth.js +42 -0
  46. package/dist/openapi/auth/auth.js.map +1 -0
  47. package/dist/openapi/configuration.d.ts +18 -0
  48. package/dist/openapi/configuration.js +21 -0
  49. package/dist/openapi/configuration.js.map +1 -0
  50. package/dist/openapi/http/http.d.ts +69 -0
  51. package/dist/openapi/http/http.js +162 -0
  52. package/dist/openapi/http/http.js.map +1 -0
  53. package/dist/openapi/http/isomorphic-fetch.d.ts +6 -0
  54. package/dist/openapi/http/isomorphic-fetch.js +31 -0
  55. package/dist/openapi/http/isomorphic-fetch.js.map +1 -0
  56. package/dist/openapi/index.d.ts +9 -0
  57. package/dist/openapi/index.js +32 -0
  58. package/dist/openapi/index.js.map +1 -0
  59. package/dist/openapi/middleware.d.ts +16 -0
  60. package/dist/openapi/middleware.js +17 -0
  61. package/dist/openapi/middleware.js.map +1 -0
  62. package/dist/openapi/models/Account.d.ts +22 -0
  63. package/dist/openapi/models/Account.js +51 -0
  64. package/dist/openapi/models/Account.js.map +1 -0
  65. package/dist/openapi/models/Address.d.ts +19 -0
  66. package/dist/openapi/models/Address.js +33 -0
  67. package/dist/openapi/models/Address.js.map +1 -0
  68. package/dist/openapi/models/ChainNetwork.d.ts +24 -0
  69. package/dist/openapi/models/ChainNetwork.js +63 -0
  70. package/dist/openapi/models/ChainNetwork.js.map +1 -0
  71. package/dist/openapi/models/CreateEndpoint.d.ts +27 -0
  72. package/dist/openapi/models/CreateEndpoint.js +57 -0
  73. package/dist/openapi/models/CreateEndpoint.js.map +1 -0
  74. package/dist/openapi/models/CreateExchange.d.ts +21 -0
  75. package/dist/openapi/models/CreateExchange.js +45 -0
  76. package/dist/openapi/models/CreateExchange.js.map +1 -0
  77. package/dist/openapi/models/CreateTransferRequest.d.ts +20 -0
  78. package/dist/openapi/models/CreateTransferRequest.js +39 -0
  79. package/dist/openapi/models/CreateTransferRequest.js.map +1 -0
  80. package/dist/openapi/models/CreateTransferResponse.d.ts +17 -0
  81. package/dist/openapi/models/CreateTransferResponse.js +21 -0
  82. package/dist/openapi/models/CreateTransferResponse.js.map +1 -0
  83. package/dist/openapi/models/CreateWalletRequest.d.ts +18 -0
  84. package/dist/openapi/models/CreateWalletRequest.js +27 -0
  85. package/dist/openapi/models/CreateWalletRequest.js.map +1 -0
  86. package/dist/openapi/models/CreateWithdrawReply.d.ts +17 -0
  87. package/dist/openapi/models/CreateWithdrawReply.js +21 -0
  88. package/dist/openapi/models/CreateWithdrawReply.js.map +1 -0
  89. package/dist/openapi/models/CreateWithdrawRequest.d.ts +23 -0
  90. package/dist/openapi/models/CreateWithdrawRequest.js +57 -0
  91. package/dist/openapi/models/CreateWithdrawRequest.js.map +1 -0
  92. package/dist/openapi/models/Currency.d.ts +37 -0
  93. package/dist/openapi/models/Currency.js +135 -0
  94. package/dist/openapi/models/Currency.js.map +1 -0
  95. package/dist/openapi/models/CurrencyNetwork.d.ts +36 -0
  96. package/dist/openapi/models/CurrencyNetwork.js +135 -0
  97. package/dist/openapi/models/CurrencyNetwork.js.map +1 -0
  98. package/dist/openapi/models/CurrencyPair.d.ts +18 -0
  99. package/dist/openapi/models/CurrencyPair.js +27 -0
  100. package/dist/openapi/models/CurrencyPair.js.map +1 -0
  101. package/dist/openapi/models/CursorPageAccount.d.ts +21 -0
  102. package/dist/openapi/models/CursorPageAccount.js +39 -0
  103. package/dist/openapi/models/CursorPageAccount.js.map +1 -0
  104. package/dist/openapi/models/CursorPageAddress.d.ts +21 -0
  105. package/dist/openapi/models/CursorPageAddress.js +39 -0
  106. package/dist/openapi/models/CursorPageAddress.js.map +1 -0
  107. package/dist/openapi/models/CursorPageChainNetwork.d.ts +21 -0
  108. package/dist/openapi/models/CursorPageChainNetwork.js +39 -0
  109. package/dist/openapi/models/CursorPageChainNetwork.js.map +1 -0
  110. package/dist/openapi/models/CursorPageCurrency.d.ts +21 -0
  111. package/dist/openapi/models/CursorPageCurrency.js +39 -0
  112. package/dist/openapi/models/CursorPageCurrency.js.map +1 -0
  113. package/dist/openapi/models/CursorPageEndpoint.d.ts +21 -0
  114. package/dist/openapi/models/CursorPageEndpoint.js +39 -0
  115. package/dist/openapi/models/CursorPageEndpoint.js.map +1 -0
  116. package/dist/openapi/models/CursorPageExchange.d.ts +21 -0
  117. package/dist/openapi/models/CursorPageExchange.js +39 -0
  118. package/dist/openapi/models/CursorPageExchange.js.map +1 -0
  119. package/dist/openapi/models/CursorPageTransaction.d.ts +21 -0
  120. package/dist/openapi/models/CursorPageTransaction.js +39 -0
  121. package/dist/openapi/models/CursorPageTransaction.js.map +1 -0
  122. package/dist/openapi/models/CursorPageWallet.d.ts +21 -0
  123. package/dist/openapi/models/CursorPageWallet.js +39 -0
  124. package/dist/openapi/models/CursorPageWallet.js.map +1 -0
  125. package/dist/openapi/models/CursorPageWebhookEvent.d.ts +21 -0
  126. package/dist/openapi/models/CursorPageWebhookEvent.js +39 -0
  127. package/dist/openapi/models/CursorPageWebhookEvent.js.map +1 -0
  128. package/dist/openapi/models/DeleteWebhookEndpointResponse.d.ts +17 -0
  129. package/dist/openapi/models/DeleteWebhookEndpointResponse.js +21 -0
  130. package/dist/openapi/models/DeleteWebhookEndpointResponse.js.map +1 -0
  131. package/dist/openapi/models/Endpoint.d.ts +29 -0
  132. package/dist/openapi/models/Endpoint.js +69 -0
  133. package/dist/openapi/models/Endpoint.js.map +1 -0
  134. package/dist/openapi/models/EstimateFeeRequest.d.ts +21 -0
  135. package/dist/openapi/models/EstimateFeeRequest.js +45 -0
  136. package/dist/openapi/models/EstimateFeeRequest.js.map +1 -0
  137. package/dist/openapi/models/EstimateFeeResponse.d.ts +18 -0
  138. package/dist/openapi/models/EstimateFeeResponse.js +27 -0
  139. package/dist/openapi/models/EstimateFeeResponse.js.map +1 -0
  140. package/dist/openapi/models/EstimateResponse.d.ts +21 -0
  141. package/dist/openapi/models/EstimateResponse.js +45 -0
  142. package/dist/openapi/models/EstimateResponse.js.map +1 -0
  143. package/dist/openapi/models/EventType.d.ts +18 -0
  144. package/dist/openapi/models/EventType.js +27 -0
  145. package/dist/openapi/models/EventType.js.map +1 -0
  146. package/dist/openapi/models/Exchange.d.ts +30 -0
  147. package/dist/openapi/models/Exchange.js +99 -0
  148. package/dist/openapi/models/Exchange.js.map +1 -0
  149. package/dist/openapi/models/ExchangeCurrencyPairs.d.ts +18 -0
  150. package/dist/openapi/models/ExchangeCurrencyPairs.js +27 -0
  151. package/dist/openapi/models/ExchangeCurrencyPairs.js.map +1 -0
  152. package/dist/openapi/models/ExchangeSubmitResponse.d.ts +17 -0
  153. package/dist/openapi/models/ExchangeSubmitResponse.js +21 -0
  154. package/dist/openapi/models/ExchangeSubmitResponse.js.map +1 -0
  155. package/dist/openapi/models/GetCurrencyPairQuotaResponse.d.ts +22 -0
  156. package/dist/openapi/models/GetCurrencyPairQuotaResponse.js +51 -0
  157. package/dist/openapi/models/GetCurrencyPairQuotaResponse.js.map +1 -0
  158. package/dist/openapi/models/GetRatesRequest.d.ts +18 -0
  159. package/dist/openapi/models/GetRatesRequest.js +21 -0
  160. package/dist/openapi/models/GetRatesRequest.js.map +1 -0
  161. package/dist/openapi/models/GetRatesResponse.d.ts +18 -0
  162. package/dist/openapi/models/GetRatesResponse.js +21 -0
  163. package/dist/openapi/models/GetRatesResponse.js.map +1 -0
  164. package/dist/openapi/models/ListExchangeCurrencyPairsResponse.d.ts +18 -0
  165. package/dist/openapi/models/ListExchangeCurrencyPairsResponse.js +21 -0
  166. package/dist/openapi/models/ListExchangeCurrencyPairsResponse.js.map +1 -0
  167. package/dist/openapi/models/ModelError.d.ts +18 -0
  168. package/dist/openapi/models/ModelError.js +27 -0
  169. package/dist/openapi/models/ModelError.js.map +1 -0
  170. package/dist/openapi/models/ObjectSerializer.d.ts +57 -0
  171. package/dist/openapi/models/ObjectSerializer.js +336 -0
  172. package/dist/openapi/models/ObjectSerializer.js.map +1 -0
  173. package/dist/openapi/models/Rate.d.ts +19 -0
  174. package/dist/openapi/models/Rate.js +27 -0
  175. package/dist/openapi/models/Rate.js.map +1 -0
  176. package/dist/openapi/models/ResendWebhookEventRequest.d.ts +18 -0
  177. package/dist/openapi/models/ResendWebhookEventRequest.js +27 -0
  178. package/dist/openapi/models/ResendWebhookEventRequest.js.map +1 -0
  179. package/dist/openapi/models/ResendWebhookEventResponse.d.ts +17 -0
  180. package/dist/openapi/models/ResendWebhookEventResponse.js +21 -0
  181. package/dist/openapi/models/ResendWebhookEventResponse.js.map +1 -0
  182. package/dist/openapi/models/SweepAddressRequest.d.ts +17 -0
  183. package/dist/openapi/models/SweepAddressRequest.js +21 -0
  184. package/dist/openapi/models/SweepAddressRequest.js.map +1 -0
  185. package/dist/openapi/models/SweepAddressResponse.d.ts +17 -0
  186. package/dist/openapi/models/SweepAddressResponse.js +21 -0
  187. package/dist/openapi/models/SweepAddressResponse.js.map +1 -0
  188. package/dist/openapi/models/Transaction.d.ts +32 -0
  189. package/dist/openapi/models/Transaction.js +99 -0
  190. package/dist/openapi/models/Transaction.js.map +1 -0
  191. package/dist/openapi/models/TransactionDirection.d.ts +1 -0
  192. package/dist/openapi/models/TransactionDirection.js +3 -0
  193. package/dist/openapi/models/TransactionDirection.js.map +1 -0
  194. package/dist/openapi/models/TransactionStatus.d.ts +1 -0
  195. package/dist/openapi/models/TransactionStatus.js +3 -0
  196. package/dist/openapi/models/TransactionStatus.js.map +1 -0
  197. package/dist/openapi/models/UpdateEndpoint.d.ts +27 -0
  198. package/dist/openapi/models/UpdateEndpoint.js +57 -0
  199. package/dist/openapi/models/UpdateEndpoint.js.map +1 -0
  200. package/dist/openapi/models/UpdateWalletRequest.d.ts +18 -0
  201. package/dist/openapi/models/UpdateWalletRequest.js +27 -0
  202. package/dist/openapi/models/UpdateWalletRequest.js.map +1 -0
  203. package/dist/openapi/models/Wallet.d.ts +20 -0
  204. package/dist/openapi/models/Wallet.js +39 -0
  205. package/dist/openapi/models/Wallet.js.map +1 -0
  206. package/dist/openapi/models/WebhookEvent.d.ts +22 -0
  207. package/dist/openapi/models/WebhookEvent.js +39 -0
  208. package/dist/openapi/models/WebhookEvent.js.map +1 -0
  209. package/dist/openapi/models/all.d.ts +48 -0
  210. package/dist/openapi/models/all.js +61 -0
  211. package/dist/openapi/models/all.js.map +1 -0
  212. package/dist/openapi/rxjsStub.d.ts +10 -0
  213. package/dist/openapi/rxjsStub.js +32 -0
  214. package/dist/openapi/rxjsStub.js.map +1 -0
  215. package/dist/openapi/servers.d.ts +17 -0
  216. package/dist/openapi/servers.js +31 -0
  217. package/dist/openapi/servers.js.map +1 -0
  218. package/dist/openapi/types/ObjectParamAPI.d.ts +259 -0
  219. package/dist/openapi/types/ObjectParamAPI.js +180 -0
  220. package/dist/openapi/types/ObjectParamAPI.js.map +1 -0
  221. package/dist/openapi/types/ObservableAPI.d.ts +150 -0
  222. package/dist/openapi/types/ObservableAPI.js +600 -0
  223. package/dist/openapi/types/ObservableAPI.js.map +1 -0
  224. package/dist/openapi/types/PromiseAPI.d.ts +127 -0
  225. package/dist/openapi/types/PromiseAPI.js +213 -0
  226. package/dist/openapi/types/PromiseAPI.js.map +1 -0
  227. package/dist/openapi/util.d.ts +1 -0
  228. package/dist/openapi/util.js +25 -0
  229. package/dist/openapi/util.js.map +1 -0
  230. package/package.json +51 -0
@@ -0,0 +1,338 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ExchangesApiResponseProcessor = exports.ExchangesApiRequestFactory = void 0;
13
+ const baseapi_1 = require("./baseapi");
14
+ const http_1 = require("../http/http");
15
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
16
+ const exception_1 = require("./exception");
17
+ const util_1 = require("../util");
18
+ class ExchangesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
19
+ v1ExchangesCreate(request, _options) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ let _config = _options || this.configuration;
22
+ if (request === null || request === undefined) {
23
+ throw new baseapi_1.RequiredError('Required parameter request was null or undefined when calling v1ExchangesCreate.');
24
+ }
25
+ const localVarPath = '/api/v1/exchanges';
26
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
27
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
28
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
29
+ "application/json"
30
+ ]);
31
+ requestContext.setHeaderParam("Content-Type", contentType);
32
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(request, "CreateExchange", ""), contentType);
33
+ requestContext.setBody(serializedBody);
34
+ let authMethod = null;
35
+ authMethod = _config.authMethods["ApiKeyAuth"];
36
+ if (authMethod) {
37
+ yield authMethod.applySecurityAuthentication(requestContext);
38
+ }
39
+ return requestContext;
40
+ });
41
+ }
42
+ v1ExchangesCurrencyPairs(_options) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ let _config = _options || this.configuration;
45
+ const localVarPath = '/api/v1/exchanges/currency_pairs';
46
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
47
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
48
+ let authMethod = null;
49
+ authMethod = _config.authMethods["ApiKeyAuth"];
50
+ if (authMethod) {
51
+ yield authMethod.applySecurityAuthentication(requestContext);
52
+ }
53
+ return requestContext;
54
+ });
55
+ }
56
+ v1ExchangesCurrencyQuota(fromCurrency, toCurrency, _options) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ let _config = _options || this.configuration;
59
+ if (fromCurrency === null || fromCurrency === undefined) {
60
+ throw new baseapi_1.RequiredError('Required parameter fromCurrency was null or undefined when calling v1ExchangesCurrencyQuota.');
61
+ }
62
+ if (toCurrency === null || toCurrency === undefined) {
63
+ throw new baseapi_1.RequiredError('Required parameter toCurrency was null or undefined when calling v1ExchangesCurrencyQuota.');
64
+ }
65
+ const localVarPath = '/api/v1/exchanges/currency_pair_quota';
66
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
67
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
68
+ if (fromCurrency !== undefined) {
69
+ requestContext.setQueryParam("from_currency", ObjectSerializer_1.ObjectSerializer.serialize(fromCurrency, "string", ""));
70
+ }
71
+ if (toCurrency !== undefined) {
72
+ requestContext.setQueryParam("to_currency", ObjectSerializer_1.ObjectSerializer.serialize(toCurrency, "string", ""));
73
+ }
74
+ let authMethod = null;
75
+ authMethod = _config.authMethods["ApiKeyAuth"];
76
+ if (authMethod) {
77
+ yield authMethod.applySecurityAuthentication(requestContext);
78
+ }
79
+ return requestContext;
80
+ });
81
+ }
82
+ v1ExchangesList(limit, walletId, cursor, _options) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ let _config = _options || this.configuration;
85
+ if (limit === null || limit === undefined) {
86
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1ExchangesList.');
87
+ }
88
+ if (walletId === null || walletId === undefined) {
89
+ throw new baseapi_1.RequiredError('Required parameter walletId was null or undefined when calling v1ExchangesList.');
90
+ }
91
+ const localVarPath = '/api/v1/exchanges';
92
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
93
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
94
+ if (cursor !== undefined) {
95
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
96
+ }
97
+ if (limit !== undefined) {
98
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
99
+ }
100
+ if (walletId !== undefined) {
101
+ requestContext.setQueryParam("wallet_id", ObjectSerializer_1.ObjectSerializer.serialize(walletId, "string", ""));
102
+ }
103
+ let authMethod = null;
104
+ authMethod = _config.authMethods["ApiKeyAuth"];
105
+ if (authMethod) {
106
+ yield authMethod.applySecurityAuthentication(requestContext);
107
+ }
108
+ return requestContext;
109
+ });
110
+ }
111
+ v1ExchangesRetrieve(exchangeId, _options) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ let _config = _options || this.configuration;
114
+ if (exchangeId === null || exchangeId === undefined) {
115
+ throw new baseapi_1.RequiredError('Required parameter exchangeId was null or undefined when calling v1ExchangesRetrieve.');
116
+ }
117
+ const localVarPath = '/api/v1/exchanges/{exchangeId}'
118
+ .replace('{' + 'exchangeId' + '}', encodeURIComponent(String(exchangeId)));
119
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
120
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
121
+ let authMethod = null;
122
+ authMethod = _config.authMethods["ApiKeyAuth"];
123
+ if (authMethod) {
124
+ yield authMethod.applySecurityAuthentication(requestContext);
125
+ }
126
+ return requestContext;
127
+ });
128
+ }
129
+ v1ExchangesSubmit(exchangeId, _options) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ let _config = _options || this.configuration;
132
+ if (exchangeId === null || exchangeId === undefined) {
133
+ throw new baseapi_1.RequiredError('Required parameter exchangeId was null or undefined when calling v1ExchangesSubmit.');
134
+ }
135
+ const localVarPath = '/api/v1/exchanges/{exchangeId}/submit'
136
+ .replace('{' + 'exchangeId' + '}', encodeURIComponent(String(exchangeId)));
137
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
138
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
139
+ let authMethod = null;
140
+ authMethod = _config.authMethods["ApiKeyAuth"];
141
+ if (authMethod) {
142
+ yield authMethod.applySecurityAuthentication(requestContext);
143
+ }
144
+ return requestContext;
145
+ });
146
+ }
147
+ }
148
+ exports.ExchangesApiRequestFactory = ExchangesApiRequestFactory;
149
+ class ExchangesApiResponseProcessor {
150
+ v1ExchangesCreate(response) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
153
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
154
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Exchange", "");
155
+ return body;
156
+ }
157
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
158
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
159
+ throw new exception_1.ApiException(400, body);
160
+ }
161
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
162
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
163
+ throw new exception_1.ApiException(401, body);
164
+ }
165
+ if (util_1.isCodeInRange("404", 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(404, body);
168
+ }
169
+ if (util_1.isCodeInRange("500", 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(500, body);
172
+ }
173
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
174
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Exchange", "");
175
+ return body;
176
+ }
177
+ let body = response.body || "";
178
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
179
+ });
180
+ }
181
+ v1ExchangesCurrencyPairs(response) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
184
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
185
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListExchangeCurrencyPairsResponse", "");
186
+ return body;
187
+ }
188
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
189
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
190
+ throw new exception_1.ApiException(400, body);
191
+ }
192
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
193
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
194
+ throw new exception_1.ApiException(401, body);
195
+ }
196
+ if (util_1.isCodeInRange("404", 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(404, body);
199
+ }
200
+ if (util_1.isCodeInRange("500", 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(500, body);
203
+ }
204
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
205
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListExchangeCurrencyPairsResponse", "");
206
+ return body;
207
+ }
208
+ let body = response.body || "";
209
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
210
+ });
211
+ }
212
+ v1ExchangesCurrencyQuota(response) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
215
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
216
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetCurrencyPairQuotaResponse", "");
217
+ return body;
218
+ }
219
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
220
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
221
+ throw new exception_1.ApiException(400, body);
222
+ }
223
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
224
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
225
+ throw new exception_1.ApiException(401, body);
226
+ }
227
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
228
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
229
+ throw new exception_1.ApiException(404, body);
230
+ }
231
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
232
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
233
+ throw new exception_1.ApiException(500, body);
234
+ }
235
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
236
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetCurrencyPairQuotaResponse", "");
237
+ return body;
238
+ }
239
+ let body = response.body || "";
240
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
241
+ });
242
+ }
243
+ v1ExchangesList(response) {
244
+ return __awaiter(this, void 0, void 0, function* () {
245
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
246
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
247
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageExchange", "");
248
+ return body;
249
+ }
250
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
251
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
252
+ throw new exception_1.ApiException(400, body);
253
+ }
254
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
255
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
256
+ throw new exception_1.ApiException(401, body);
257
+ }
258
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
259
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
260
+ throw new exception_1.ApiException(404, body);
261
+ }
262
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
263
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
264
+ throw new exception_1.ApiException(500, body);
265
+ }
266
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
267
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageExchange", "");
268
+ return body;
269
+ }
270
+ let body = response.body || "";
271
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
272
+ });
273
+ }
274
+ v1ExchangesRetrieve(response) {
275
+ return __awaiter(this, void 0, void 0, function* () {
276
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
277
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
278
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Exchange", "");
279
+ return body;
280
+ }
281
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
282
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
283
+ throw new exception_1.ApiException(400, body);
284
+ }
285
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
286
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
287
+ throw new exception_1.ApiException(401, body);
288
+ }
289
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
290
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
291
+ throw new exception_1.ApiException(404, body);
292
+ }
293
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
294
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
295
+ throw new exception_1.ApiException(500, body);
296
+ }
297
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
298
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Exchange", "");
299
+ return body;
300
+ }
301
+ let body = response.body || "";
302
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
303
+ });
304
+ }
305
+ v1ExchangesSubmit(response) {
306
+ return __awaiter(this, void 0, void 0, function* () {
307
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
308
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
309
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ExchangeSubmitResponse", "");
310
+ return body;
311
+ }
312
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
313
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
314
+ throw new exception_1.ApiException(400, body);
315
+ }
316
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
317
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
318
+ throw new exception_1.ApiException(401, body);
319
+ }
320
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
321
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
322
+ throw new exception_1.ApiException(404, body);
323
+ }
324
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
325
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
326
+ throw new exception_1.ApiException(500, body);
327
+ }
328
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
329
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ExchangeSubmitResponse", "");
330
+ return body;
331
+ }
332
+ let body = response.body || "";
333
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
334
+ });
335
+ }
336
+ }
337
+ exports.ExchangesApiResponseProcessor = ExchangesApiResponseProcessor;
338
+ //# sourceMappingURL=ExchangesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExchangesApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/ExchangesApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAAiE;AAEjE,uCAAoF;AACpF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsC;AAYtC,MAAa,0BAA2B,SAAQ,+BAAqB;IAOpD,iBAAiB,CAAC,OAAuB,EAAE,QAAwB;;YAC5E,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;YAG7C,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE;gBAC3C,MAAM,IAAI,uBAAa,CAAC,kFAAkF,CAAC,CAAC;aAC/G;YAID,MAAM,YAAY,GAAG,mBAAmB,CAAC;YAGzC,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,YAAY,EAAE,iBAAU,CAAC,IAAI,CAAC,CAAC;YAC5F,cAAc,CAAC,cAAc,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAA;YAUtE,MAAM,WAAW,GAAG,mCAAgB,CAAC,qBAAqB,CAAC;gBACvD,kBAAkB;aACrB,CAAC,CAAC;YACH,cAAc,CAAC,cAAc,CAA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EAAE,WAAW,CAAC,EAC/D,OAAO,EAAE,EAAE,CACL,CAAC;gBACX,MAAM,IAAI,wBAAY,CAAQ,GAAG,EAAE,IAAI,CAAC,CAAC;aAC5C;YAGD,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,EAAE;gBAClE,MAAM,IAAI,GAA2B,mCAAgB,CAAC,WAAW,CAC7D,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,wBAAwB,EAAE,EAAE,CACL,CAAC;gBAC5B,OAAO,IAAI,CAAC;aACf;YAED,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YAC/B,MAAM,IAAI,wBAAY,CAAS,QAAQ,CAAC,cAAc,EAAE,oCAAoC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;QAChH,CAAC;KAAA;CAEJ;AA9VD,sEA8VC"}
@@ -0,0 +1,10 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext } from '../http/http';
4
+ import { CursorPageChainNetwork } from '../models/CursorPageChainNetwork';
5
+ export declare class NetworksApiRequestFactory extends BaseAPIRequestFactory {
6
+ v1NetworksList(limit: number, cursor?: string, _options?: Configuration): Promise<RequestContext>;
7
+ }
8
+ export declare class NetworksApiResponseProcessor {
9
+ v1NetworksList(response: ResponseContext): Promise<CursorPageChainNetwork>;
10
+ }
@@ -0,0 +1,82 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.NetworksApiResponseProcessor = exports.NetworksApiRequestFactory = void 0;
13
+ const baseapi_1 = require("./baseapi");
14
+ const http_1 = require("../http/http");
15
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
16
+ const exception_1 = require("./exception");
17
+ const util_1 = require("../util");
18
+ class NetworksApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
19
+ v1NetworksList(limit, cursor, _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 v1NetworksList.');
24
+ }
25
+ const localVarPath = '/api/v1/networks';
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 (limit !== undefined) {
32
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
33
+ }
34
+ let authMethod = null;
35
+ authMethod = _config.authMethods["ApiKeyAuth"];
36
+ if (authMethod) {
37
+ yield authMethod.applySecurityAuthentication(requestContext);
38
+ }
39
+ authMethod = _config.authMethods["SignatureAuth"];
40
+ if (authMethod) {
41
+ yield authMethod.applySecurityAuthentication(requestContext);
42
+ }
43
+ return requestContext;
44
+ });
45
+ }
46
+ }
47
+ exports.NetworksApiRequestFactory = NetworksApiRequestFactory;
48
+ class NetworksApiResponseProcessor {
49
+ v1NetworksList(response) {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
52
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
53
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageChainNetwork", "");
54
+ return body;
55
+ }
56
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
57
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
58
+ throw new exception_1.ApiException(400, body);
59
+ }
60
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
61
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
62
+ throw new exception_1.ApiException(401, body);
63
+ }
64
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
65
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
66
+ throw new exception_1.ApiException(404, body);
67
+ }
68
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
69
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield 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(yield response.body.text(), contentType), "CursorPageChainNetwork", "");
74
+ return body;
75
+ }
76
+ let body = response.body || "";
77
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
78
+ });
79
+ }
80
+ }
81
+ exports.NetworksApiResponseProcessor = NetworksApiResponseProcessor;
82
+ //# sourceMappingURL=NetworksApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetworksApi.js","sourceRoot":"","sources":["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AC/C,MAAM,IAAI,GAAU,mCAAgB,CAAC,WAAW,CAC5C,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,OAAO,EAAE,EAAE,CACL,CAAC;gBACX,MAAM,IAAI,wBAAY,CAAQ,GAAG,EAAE,IAAI,CAAC,CAAC;aAC5C;YACD,IAAI,oBAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE;gBAC/C,MAAM,IAAI,GAAU,mCAAgB,CAAC,WAAW,CAC5C,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,OAAO,EAAE,EAAE,CACL,CAAC;gBACX,MAAM,IAAI,wBAAY,CAAQ,GAAG,EAAE,IAAI,CAAC,CAAC;aAC5C;YAGD,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,EAAE;gBAClE,MAAM,IAAI,GAA2B,mCAAgB,CAAC,WAAW,CAC7D,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,wBAAwB,EAAE,EAAE,CACL,CAAC;gBAC5B,OAAO,IAAI,CAAC;aACf;YAED,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YAC/B,MAAM,IAAI,wBAAY,CAAS,QAAQ,CAAC,cAAc,EAAE,oCAAoC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;QAChH,CAAC;KAAA;CAEJ;AA5DD,oEA4DC"}
@@ -0,0 +1,14 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext } from '../http/http';
4
+ import { EstimateResponse } from '../models/EstimateResponse';
5
+ import { GetRatesRequest } from '../models/GetRatesRequest';
6
+ import { GetRatesResponse } from '../models/GetRatesResponse';
7
+ export declare class RatesApiRequestFactory extends BaseAPIRequestFactory {
8
+ v1RatesEstimate(baseAmount: string, baseCurrency: string, toCurrency: string, _options?: Configuration): Promise<RequestContext>;
9
+ v1RatesList(request: GetRatesRequest, _options?: Configuration): Promise<RequestContext>;
10
+ }
11
+ export declare class RatesApiResponseProcessor {
12
+ v1RatesEstimate(response: ResponseContext): Promise<EstimateResponse>;
13
+ v1RatesList(response: ResponseContext): Promise<GetRatesResponse>;
14
+ }