@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,224 @@
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.AddressesApiResponseProcessor = exports.AddressesApiRequestFactory = 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 AddressesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
19
+ v1AddressesList(limit, currency, cursor, type, walletId, _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 v1AddressesList.');
24
+ }
25
+ const localVarPath = '/api/v1/addresses';
26
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
27
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
28
+ if (currency !== undefined) {
29
+ requestContext.setQueryParam("currency", ObjectSerializer_1.ObjectSerializer.serialize(currency, "string", ""));
30
+ }
31
+ if (cursor !== undefined) {
32
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
33
+ }
34
+ if (limit !== undefined) {
35
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
36
+ }
37
+ if (type !== undefined) {
38
+ requestContext.setQueryParam("type", ObjectSerializer_1.ObjectSerializer.serialize(type, "string", ""));
39
+ }
40
+ if (walletId !== undefined) {
41
+ requestContext.setQueryParam("walletId", ObjectSerializer_1.ObjectSerializer.serialize(walletId, "string", ""));
42
+ }
43
+ let authMethod = null;
44
+ authMethod = _config.authMethods["ApiKeyAuth"];
45
+ if (authMethod) {
46
+ yield authMethod.applySecurityAuthentication(requestContext);
47
+ }
48
+ authMethod = _config.authMethods["SignatureAuth"];
49
+ if (authMethod) {
50
+ yield authMethod.applySecurityAuthentication(requestContext);
51
+ }
52
+ return requestContext;
53
+ });
54
+ }
55
+ v1WalletsGetDepositAddress(walletId, currency, network, _options) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ let _config = _options || this.configuration;
58
+ if (walletId === null || walletId === undefined) {
59
+ throw new baseapi_1.RequiredError('Required parameter walletId was null or undefined when calling v1WalletsGetDepositAddress.');
60
+ }
61
+ if (currency === null || currency === undefined) {
62
+ throw new baseapi_1.RequiredError('Required parameter currency was null or undefined when calling v1WalletsGetDepositAddress.');
63
+ }
64
+ if (network === null || network === undefined) {
65
+ throw new baseapi_1.RequiredError('Required parameter network was null or undefined when calling v1WalletsGetDepositAddress.');
66
+ }
67
+ const localVarPath = '/api/v1/wallets/{walletId}/deposit_address'
68
+ .replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
69
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
70
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
71
+ if (currency !== undefined) {
72
+ requestContext.setQueryParam("currency", ObjectSerializer_1.ObjectSerializer.serialize(currency, "string", ""));
73
+ }
74
+ if (network !== undefined) {
75
+ requestContext.setQueryParam("network", ObjectSerializer_1.ObjectSerializer.serialize(network, "string", ""));
76
+ }
77
+ let authMethod = null;
78
+ authMethod = _config.authMethods["ApiKeyAuth"];
79
+ if (authMethod) {
80
+ yield authMethod.applySecurityAuthentication(requestContext);
81
+ }
82
+ authMethod = _config.authMethods["SignatureAuth"];
83
+ if (authMethod) {
84
+ yield authMethod.applySecurityAuthentication(requestContext);
85
+ }
86
+ return requestContext;
87
+ });
88
+ }
89
+ v1WalletsListDepositAddresses(walletId, limit, currency, cursor, network, _options) {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ let _config = _options || this.configuration;
92
+ if (walletId === null || walletId === undefined) {
93
+ throw new baseapi_1.RequiredError('Required parameter walletId was null or undefined when calling v1WalletsListDepositAddresses.');
94
+ }
95
+ if (limit === null || limit === undefined) {
96
+ throw new baseapi_1.RequiredError('Required parameter limit was null or undefined when calling v1WalletsListDepositAddresses.');
97
+ }
98
+ const localVarPath = '/api/v1/wallets/{walletId}/deposit_addresses'
99
+ .replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
100
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
101
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
102
+ if (currency !== undefined) {
103
+ requestContext.setQueryParam("currency", ObjectSerializer_1.ObjectSerializer.serialize(currency, "string", ""));
104
+ }
105
+ if (cursor !== undefined) {
106
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
107
+ }
108
+ if (limit !== undefined) {
109
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
110
+ }
111
+ if (network !== undefined) {
112
+ requestContext.setQueryParam("network", ObjectSerializer_1.ObjectSerializer.serialize(network, "string", ""));
113
+ }
114
+ let authMethod = null;
115
+ authMethod = _config.authMethods["ApiKeyAuth"];
116
+ if (authMethod) {
117
+ yield authMethod.applySecurityAuthentication(requestContext);
118
+ }
119
+ authMethod = _config.authMethods["SignatureAuth"];
120
+ if (authMethod) {
121
+ yield authMethod.applySecurityAuthentication(requestContext);
122
+ }
123
+ return requestContext;
124
+ });
125
+ }
126
+ }
127
+ exports.AddressesApiRequestFactory = AddressesApiRequestFactory;
128
+ class AddressesApiResponseProcessor {
129
+ v1AddressesList(response) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
132
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
133
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAddress", "");
134
+ return body;
135
+ }
136
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
137
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
138
+ throw new exception_1.ApiException(400, body);
139
+ }
140
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
141
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
142
+ throw new exception_1.ApiException(401, body);
143
+ }
144
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
145
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
146
+ throw new exception_1.ApiException(404, body);
147
+ }
148
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
149
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
150
+ throw new exception_1.ApiException(500, body);
151
+ }
152
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
153
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAddress", "");
154
+ return body;
155
+ }
156
+ let body = response.body || "";
157
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
158
+ });
159
+ }
160
+ v1WalletsGetDepositAddress(response) {
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
163
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
164
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Address", "");
165
+ return body;
166
+ }
167
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
168
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
169
+ throw new exception_1.ApiException(400, body);
170
+ }
171
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
172
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
173
+ throw new exception_1.ApiException(401, body);
174
+ }
175
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
176
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
177
+ throw new exception_1.ApiException(404, body);
178
+ }
179
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
180
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
181
+ throw new exception_1.ApiException(500, body);
182
+ }
183
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
184
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Address", "");
185
+ return body;
186
+ }
187
+ let body = response.body || "";
188
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
189
+ });
190
+ }
191
+ v1WalletsListDepositAddresses(response) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
194
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
195
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAddress", "");
196
+ return body;
197
+ }
198
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
199
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
200
+ throw new exception_1.ApiException(400, body);
201
+ }
202
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
203
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
204
+ throw new exception_1.ApiException(401, body);
205
+ }
206
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
207
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
208
+ throw new exception_1.ApiException(404, body);
209
+ }
210
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
211
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
212
+ throw new exception_1.ApiException(500, body);
213
+ }
214
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
215
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageAddress", "");
216
+ return body;
217
+ }
218
+ let body = response.body || "";
219
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
220
+ });
221
+ }
222
+ }
223
+ exports.AddressesApiResponseProcessor = AddressesApiResponseProcessor;
224
+ //# sourceMappingURL=AddressesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddressesApi.js","sourceRoot":"","sources":["../../../src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AAI,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,EAAE;gBAClE,MAAM,IAAI,GAAsB,mCAAgB,CAAC,WAAW,CACxD,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,mBAAmB,EAAE,EAAE,CACL,CAAC;gBACvB,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;AAhLD,sEAgLC"}
@@ -0,0 +1,13 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext } from '../http/http';
4
+ import { Currency } from '../models/Currency';
5
+ import { CursorPageCurrency } from '../models/CursorPageCurrency';
6
+ export declare class CurrenciesApiRequestFactory extends BaseAPIRequestFactory {
7
+ v1CurrenciesList(limit: number, cursor?: string, rated?: boolean, _options?: Configuration): Promise<RequestContext>;
8
+ v1CurrenciesRetrieve(code: string, _options?: Configuration): Promise<RequestContext>;
9
+ }
10
+ export declare class CurrenciesApiResponseProcessor {
11
+ v1CurrenciesList(response: ResponseContext): Promise<CursorPageCurrency>;
12
+ v1CurrenciesRetrieve(response: ResponseContext): Promise<Currency>;
13
+ }
@@ -0,0 +1,138 @@
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.CurrenciesApiResponseProcessor = exports.CurrenciesApiRequestFactory = 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 CurrenciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
19
+ v1CurrenciesList(limit, cursor, rated, _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 v1CurrenciesList.');
24
+ }
25
+ const localVarPath = '/api/v1/currencies';
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
+ if (rated !== undefined) {
35
+ requestContext.setQueryParam("rated", ObjectSerializer_1.ObjectSerializer.serialize(rated, "boolean", ""));
36
+ }
37
+ let authMethod = null;
38
+ authMethod = _config.authMethods["ApiKeyAuth"];
39
+ if (authMethod) {
40
+ yield authMethod.applySecurityAuthentication(requestContext);
41
+ }
42
+ authMethod = _config.authMethods["SignatureAuth"];
43
+ if (authMethod) {
44
+ yield authMethod.applySecurityAuthentication(requestContext);
45
+ }
46
+ return requestContext;
47
+ });
48
+ }
49
+ v1CurrenciesRetrieve(code, _options) {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ let _config = _options || this.configuration;
52
+ if (code === null || code === undefined) {
53
+ throw new baseapi_1.RequiredError('Required parameter code was null or undefined when calling v1CurrenciesRetrieve.');
54
+ }
55
+ const localVarPath = '/api/v1/currencies/{code}'
56
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)));
57
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
58
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
59
+ let authMethod = null;
60
+ authMethod = _config.authMethods["ApiKeyAuth"];
61
+ if (authMethod) {
62
+ yield authMethod.applySecurityAuthentication(requestContext);
63
+ }
64
+ authMethod = _config.authMethods["SignatureAuth"];
65
+ if (authMethod) {
66
+ yield authMethod.applySecurityAuthentication(requestContext);
67
+ }
68
+ return requestContext;
69
+ });
70
+ }
71
+ }
72
+ exports.CurrenciesApiRequestFactory = CurrenciesApiRequestFactory;
73
+ class CurrenciesApiResponseProcessor {
74
+ v1CurrenciesList(response) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
77
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
78
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageCurrency", "");
79
+ return body;
80
+ }
81
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
82
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
83
+ throw new exception_1.ApiException(400, body);
84
+ }
85
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
86
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
87
+ throw new exception_1.ApiException(401, body);
88
+ }
89
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
90
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
91
+ throw new exception_1.ApiException(404, body);
92
+ }
93
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
94
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
95
+ throw new exception_1.ApiException(500, body);
96
+ }
97
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
98
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CursorPageCurrency", "");
99
+ return body;
100
+ }
101
+ let body = response.body || "";
102
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
103
+ });
104
+ }
105
+ v1CurrenciesRetrieve(response) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
108
+ if (util_1.isCodeInRange("200", response.httpStatusCode)) {
109
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Currency", "");
110
+ return body;
111
+ }
112
+ if (util_1.isCodeInRange("400", response.httpStatusCode)) {
113
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
114
+ throw new exception_1.ApiException(400, body);
115
+ }
116
+ if (util_1.isCodeInRange("401", response.httpStatusCode)) {
117
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
118
+ throw new exception_1.ApiException(401, body);
119
+ }
120
+ if (util_1.isCodeInRange("404", response.httpStatusCode)) {
121
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
122
+ throw new exception_1.ApiException(404, body);
123
+ }
124
+ if (util_1.isCodeInRange("500", response.httpStatusCode)) {
125
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Error", "");
126
+ throw new exception_1.ApiException(500, body);
127
+ }
128
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
129
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Currency", "");
130
+ return body;
131
+ }
132
+ let body = response.body || "";
133
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
134
+ });
135
+ }
136
+ }
137
+ exports.CurrenciesApiResponseProcessor = CurrenciesApiResponseProcessor;
138
+ //# sourceMappingURL=CurrenciesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrenciesApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/CurrenciesApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAAiE;AAEjE,uCAAoF;AACpF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsC;AAQtC,MAAa,2BAA4B,SAAQ,+BAAqB;IASrD,gBAAgB,CAAC,KAAa,EAAE,MAAe,EAAE,KAAe,EAAE,QAAwB;;YACnG,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;YAG7C,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;gBACvC,MAAM,IAAI,uBAAa,CAAC,+EAA+E,CAAC,CAAC;aAC5G;YAMD,MAAM,YAAY,GAAG,oBAAoB,CAAC;YAG1C,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,YAAY,EAAE,iBAAU,CAAC,GAAG,CAAC,CAAC;YAC3F,cAAc,CAAC,cAAc,CAAC,QAAQ,EA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 -0,0 +1,25 @@
1
+ import { BaseAPIRequestFactory } from './baseapi';
2
+ import { Configuration } from '../configuration';
3
+ import { RequestContext, ResponseContext } from '../http/http';
4
+ import { CreateExchange } from '../models/CreateExchange';
5
+ import { CursorPageExchange } from '../models/CursorPageExchange';
6
+ import { Exchange } from '../models/Exchange';
7
+ import { ExchangeSubmitResponse } from '../models/ExchangeSubmitResponse';
8
+ import { GetCurrencyPairQuotaResponse } from '../models/GetCurrencyPairQuotaResponse';
9
+ import { ListExchangeCurrencyPairsResponse } from '../models/ListExchangeCurrencyPairsResponse';
10
+ export declare class ExchangesApiRequestFactory extends BaseAPIRequestFactory {
11
+ v1ExchangesCreate(request: CreateExchange, _options?: Configuration): Promise<RequestContext>;
12
+ v1ExchangesCurrencyPairs(_options?: Configuration): Promise<RequestContext>;
13
+ v1ExchangesCurrencyQuota(fromCurrency: string, toCurrency: string, _options?: Configuration): Promise<RequestContext>;
14
+ v1ExchangesList(limit: number, walletId: string, cursor?: string, _options?: Configuration): Promise<RequestContext>;
15
+ v1ExchangesRetrieve(exchangeId: string, _options?: Configuration): Promise<RequestContext>;
16
+ v1ExchangesSubmit(exchangeId: string, _options?: Configuration): Promise<RequestContext>;
17
+ }
18
+ export declare class ExchangesApiResponseProcessor {
19
+ v1ExchangesCreate(response: ResponseContext): Promise<Exchange>;
20
+ v1ExchangesCurrencyPairs(response: ResponseContext): Promise<ListExchangeCurrencyPairsResponse>;
21
+ v1ExchangesCurrencyQuota(response: ResponseContext): Promise<GetCurrencyPairQuotaResponse>;
22
+ v1ExchangesList(response: ResponseContext): Promise<CursorPageExchange>;
23
+ v1ExchangesRetrieve(response: ResponseContext): Promise<Exchange>;
24
+ v1ExchangesSubmit(response: ResponseContext): Promise<ExchangeSubmitResponse>;
25
+ }