@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.
- package/dist/index.d.ts +2 -14
- package/dist/index.js +87 -167
- package/dist/index.js.map +1 -1
- package/dist/openapi/apis/AddressesApi.js +170 -191
- package/dist/openapi/apis/AddressesApi.js.map +1 -1
- package/dist/openapi/apis/CurrenciesApi.js +94 -111
- package/dist/openapi/apis/CurrenciesApi.js.map +1 -1
- package/dist/openapi/apis/ExchangesApi.js +278 -311
- package/dist/openapi/apis/ExchangesApi.js.map +1 -1
- package/dist/openapi/apis/NetworksApi.js +48 -61
- package/dist/openapi/apis/NetworksApi.js.map +1 -1
- package/dist/openapi/apis/RatesApi.js +105 -122
- package/dist/openapi/apis/RatesApi.js.map +1 -1
- package/dist/openapi/apis/TransactionsApi.js +256 -285
- package/dist/openapi/apis/TransactionsApi.js.map +1 -1
- package/dist/openapi/apis/WalletsApi.js +243 -272
- package/dist/openapi/apis/WalletsApi.js.map +1 -1
- package/dist/openapi/apis/WebhookEndpointsApi.js +190 -219
- package/dist/openapi/apis/WebhookEndpointsApi.js.map +1 -1
- package/dist/openapi/apis/WebhookEventTypesApi.js +31 -44
- package/dist/openapi/apis/WebhookEventTypesApi.js.map +1 -1
- package/dist/openapi/apis/WebhookEventsApi.js +83 -100
- package/dist/openapi/apis/WebhookEventsApi.js.map +1 -1
- package/dist/openapi/dist/apis/AddressesApi.d.ts +12 -0
- package/dist/openapi/dist/apis/AddressesApi.js +222 -0
- package/dist/openapi/dist/apis/AddressesApi.js.map +1 -0
- package/dist/openapi/dist/apis/CurrenciesApi.d.ts +10 -0
- package/dist/openapi/dist/apis/CurrenciesApi.js +140 -0
- package/dist/openapi/dist/apis/CurrenciesApi.js.map +1 -0
- package/dist/openapi/dist/apis/ExchangesApi.d.ts +18 -0
- package/dist/openapi/dist/apis/ExchangesApi.js +348 -0
- package/dist/openapi/dist/apis/ExchangesApi.js.map +1 -0
- package/dist/openapi/dist/apis/NetworksApi.d.ts +8 -0
- package/dist/openapi/dist/apis/NetworksApi.js +88 -0
- package/dist/openapi/dist/apis/NetworksApi.js.map +1 -0
- package/dist/openapi/dist/apis/RatesApi.d.ts +10 -0
- package/dist/openapi/dist/apis/RatesApi.js +151 -0
- package/dist/openapi/dist/apis/RatesApi.js.map +1 -0
- package/dist/openapi/dist/apis/TransactionsApi.d.ts +16 -0
- package/dist/openapi/dist/apis/TransactionsApi.js +320 -0
- package/dist/openapi/dist/apis/TransactionsApi.js.map +1 -0
- package/dist/openapi/dist/apis/WalletsApi.d.ts +16 -0
- package/dist/openapi/dist/apis/WalletsApi.js +307 -0
- package/dist/openapi/dist/apis/WalletsApi.js.map +1 -0
- package/dist/openapi/dist/apis/WebhookEndpointsApi.d.ts +16 -0
- package/dist/openapi/dist/apis/WebhookEndpointsApi.js +254 -0
- package/dist/openapi/dist/apis/WebhookEndpointsApi.js.map +1 -0
- package/dist/openapi/dist/apis/WebhookEventTypesApi.d.ts +8 -0
- package/dist/openapi/dist/apis/WebhookEventTypesApi.js +71 -0
- package/dist/openapi/dist/apis/WebhookEventTypesApi.js.map +1 -0
- package/dist/openapi/dist/apis/WebhookEventsApi.d.ts +10 -0
- package/dist/openapi/dist/apis/WebhookEventsApi.js +129 -0
- package/dist/openapi/dist/apis/WebhookEventsApi.js.map +1 -0
- package/dist/openapi/dist/apis/baseapi.d.ts +14 -0
- package/dist/openapi/dist/apis/baseapi.js +25 -0
- package/dist/openapi/dist/apis/baseapi.js.map +1 -0
- package/dist/openapi/dist/apis/exception.d.ts +5 -0
- package/dist/openapi/dist/apis/exception.js +12 -0
- package/dist/openapi/dist/apis/exception.js.map +1 -0
- package/dist/openapi/dist/auth/auth.d.ts +9 -0
- package/dist/openapi/dist/auth/auth.js +27 -0
- package/dist/openapi/dist/auth/auth.js.map +1 -0
- package/dist/openapi/dist/configuration.d.ts +6 -0
- package/dist/openapi/dist/configuration.js +21 -0
- package/dist/openapi/dist/configuration.js.map +1 -0
- package/dist/openapi/dist/http/http.d.ts +40 -0
- package/dist/openapi/dist/http/http.js +171 -0
- package/dist/openapi/dist/http/http.js.map +1 -0
- package/dist/openapi/dist/http/isomorphic-fetch.d.ts +3 -0
- package/dist/openapi/dist/http/isomorphic-fetch.js +31 -0
- package/dist/openapi/dist/http/isomorphic-fetch.js.map +1 -0
- package/dist/openapi/dist/index.d.ts +7 -0
- package/dist/openapi/dist/index.js +31 -0
- package/dist/openapi/dist/index.js.map +1 -0
- package/dist/openapi/dist/middleware.d.ts +6 -0
- package/dist/openapi/dist/middleware.js +17 -0
- package/dist/openapi/dist/middleware.js.map +1 -0
- package/dist/openapi/dist/models/Account.d.ts +17 -0
- package/dist/openapi/dist/models/Account.js +51 -0
- package/dist/openapi/dist/models/Account.js.map +1 -0
- package/dist/openapi/dist/models/Address.d.ts +17 -0
- package/dist/openapi/dist/models/Address.js +33 -0
- package/dist/openapi/dist/models/Address.js.map +1 -0
- package/dist/openapi/dist/models/ChainNetwork.d.ts +17 -0
- package/dist/openapi/dist/models/ChainNetwork.js +63 -0
- package/dist/openapi/dist/models/ChainNetwork.js.map +1 -0
- package/dist/openapi/dist/models/CreateEndpoint.d.ts +17 -0
- package/dist/openapi/dist/models/CreateEndpoint.js +57 -0
- package/dist/openapi/dist/models/CreateEndpoint.js.map +1 -0
- package/dist/openapi/dist/models/CreateExchange.d.ts +17 -0
- package/dist/openapi/dist/models/CreateExchange.js +45 -0
- package/dist/openapi/dist/models/CreateExchange.js.map +1 -0
- package/dist/openapi/dist/models/CreateTransferRequest.d.ts +17 -0
- package/dist/openapi/dist/models/CreateTransferRequest.js +39 -0
- package/dist/openapi/dist/models/CreateTransferRequest.js.map +1 -0
- package/dist/openapi/dist/models/CreateTransferResponse.d.ts +17 -0
- package/dist/openapi/dist/models/CreateTransferResponse.js +21 -0
- package/dist/openapi/dist/models/CreateTransferResponse.js.map +1 -0
- package/dist/openapi/dist/models/CreateWalletRequest.d.ts +17 -0
- package/dist/openapi/dist/models/CreateWalletRequest.js +27 -0
- package/dist/openapi/dist/models/CreateWalletRequest.js.map +1 -0
- package/dist/openapi/dist/models/CreateWithdrawReply.d.ts +17 -0
- package/dist/openapi/dist/models/CreateWithdrawReply.js +21 -0
- package/dist/openapi/dist/models/CreateWithdrawReply.js.map +1 -0
- package/dist/openapi/dist/models/CreateWithdrawRequest.d.ts +17 -0
- package/dist/openapi/dist/models/CreateWithdrawRequest.js +57 -0
- package/dist/openapi/dist/models/CreateWithdrawRequest.js.map +1 -0
- package/dist/openapi/dist/models/Currency.d.ts +17 -0
- package/dist/openapi/dist/models/Currency.js +135 -0
- package/dist/openapi/dist/models/Currency.js.map +1 -0
- package/dist/openapi/dist/models/CurrencyNetwork.d.ts +17 -0
- package/dist/openapi/dist/models/CurrencyNetwork.js +135 -0
- package/dist/openapi/dist/models/CurrencyNetwork.js.map +1 -0
- package/dist/openapi/dist/models/CurrencyPair.d.ts +17 -0
- package/dist/openapi/dist/models/CurrencyPair.js +27 -0
- package/dist/openapi/dist/models/CurrencyPair.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageAccount.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageAccount.js +39 -0
- package/dist/openapi/dist/models/CursorPageAccount.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageAddress.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageAddress.js +39 -0
- package/dist/openapi/dist/models/CursorPageAddress.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageChainNetwork.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageChainNetwork.js +39 -0
- package/dist/openapi/dist/models/CursorPageChainNetwork.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageCurrency.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageCurrency.js +39 -0
- package/dist/openapi/dist/models/CursorPageCurrency.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageEndpoint.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageEndpoint.js +39 -0
- package/dist/openapi/dist/models/CursorPageEndpoint.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageExchange.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageExchange.js +39 -0
- package/dist/openapi/dist/models/CursorPageExchange.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageTransaction.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageTransaction.js +39 -0
- package/dist/openapi/dist/models/CursorPageTransaction.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageWallet.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageWallet.js +39 -0
- package/dist/openapi/dist/models/CursorPageWallet.js.map +1 -0
- package/dist/openapi/dist/models/CursorPageWebhookEvent.d.ts +17 -0
- package/dist/openapi/dist/models/CursorPageWebhookEvent.js +39 -0
- package/dist/openapi/dist/models/CursorPageWebhookEvent.js.map +1 -0
- package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.d.ts +17 -0
- package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.js +21 -0
- package/dist/openapi/dist/models/DeleteWebhookEndpointResponse.js.map +1 -0
- package/dist/openapi/dist/models/Endpoint.d.ts +17 -0
- package/dist/openapi/dist/models/Endpoint.js +69 -0
- package/dist/openapi/dist/models/Endpoint.js.map +1 -0
- package/dist/openapi/dist/models/EstimateFeeRequest.d.ts +17 -0
- package/dist/openapi/dist/models/EstimateFeeRequest.js +45 -0
- package/dist/openapi/dist/models/EstimateFeeRequest.js.map +1 -0
- package/dist/openapi/dist/models/EstimateFeeResponse.d.ts +17 -0
- package/dist/openapi/dist/models/EstimateFeeResponse.js +27 -0
- package/dist/openapi/dist/models/EstimateFeeResponse.js.map +1 -0
- package/dist/openapi/dist/models/EstimateResponse.d.ts +17 -0
- package/dist/openapi/dist/models/EstimateResponse.js +45 -0
- package/dist/openapi/dist/models/EstimateResponse.js.map +1 -0
- package/dist/openapi/dist/models/EventType.d.ts +17 -0
- package/dist/openapi/dist/models/EventType.js +27 -0
- package/dist/openapi/dist/models/EventType.js.map +1 -0
- package/dist/openapi/dist/models/Exchange.d.ts +17 -0
- package/dist/openapi/dist/models/Exchange.js +99 -0
- package/dist/openapi/dist/models/Exchange.js.map +1 -0
- package/dist/openapi/dist/models/ExchangeCurrencyPairs.d.ts +17 -0
- package/dist/openapi/dist/models/ExchangeCurrencyPairs.js +27 -0
- package/dist/openapi/dist/models/ExchangeCurrencyPairs.js.map +1 -0
- package/dist/openapi/dist/models/ExchangeSubmitResponse.d.ts +17 -0
- package/dist/openapi/dist/models/ExchangeSubmitResponse.js +21 -0
- package/dist/openapi/dist/models/ExchangeSubmitResponse.js.map +1 -0
- package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.d.ts +17 -0
- package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.js +51 -0
- package/dist/openapi/dist/models/GetCurrencyPairQuotaResponse.js.map +1 -0
- package/dist/openapi/dist/models/GetRatesRequest.d.ts +17 -0
- package/dist/openapi/dist/models/GetRatesRequest.js +21 -0
- package/dist/openapi/dist/models/GetRatesRequest.js.map +1 -0
- package/dist/openapi/dist/models/GetRatesResponse.d.ts +17 -0
- package/dist/openapi/dist/models/GetRatesResponse.js +21 -0
- package/dist/openapi/dist/models/GetRatesResponse.js.map +1 -0
- package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.d.ts +17 -0
- package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.js +21 -0
- package/dist/openapi/dist/models/ListExchangeCurrencyPairsResponse.js.map +1 -0
- package/dist/openapi/dist/models/ModelError.d.ts +17 -0
- package/dist/openapi/dist/models/ModelError.js +27 -0
- package/dist/openapi/dist/models/ModelError.js.map +1 -0
- package/dist/openapi/dist/models/ObjectSerializer.d.ts +55 -0
- package/dist/openapi/dist/models/ObjectSerializer.js +330 -0
- package/dist/openapi/dist/models/ObjectSerializer.js.map +1 -0
- package/dist/openapi/dist/models/Rate.d.ts +17 -0
- package/dist/openapi/dist/models/Rate.js +27 -0
- package/dist/openapi/dist/models/Rate.js.map +1 -0
- package/dist/openapi/dist/models/ResendWebhookEventRequest.d.ts +17 -0
- package/dist/openapi/dist/models/ResendWebhookEventRequest.js +27 -0
- package/dist/openapi/dist/models/ResendWebhookEventRequest.js.map +1 -0
- package/dist/openapi/dist/models/ResendWebhookEventResponse.d.ts +17 -0
- package/dist/openapi/dist/models/ResendWebhookEventResponse.js +21 -0
- package/dist/openapi/dist/models/ResendWebhookEventResponse.js.map +1 -0
- package/dist/openapi/dist/models/Transaction.d.ts +17 -0
- package/dist/openapi/dist/models/Transaction.js +99 -0
- package/dist/openapi/dist/models/Transaction.js.map +1 -0
- package/dist/openapi/dist/models/TransactionDirection.d.ts +0 -0
- package/dist/openapi/dist/models/TransactionDirection.js +2 -0
- package/dist/openapi/dist/models/TransactionDirection.js.map +1 -0
- package/dist/openapi/dist/models/TransactionStatus.d.ts +0 -0
- package/dist/openapi/dist/models/TransactionStatus.js +2 -0
- package/dist/openapi/dist/models/TransactionStatus.js.map +1 -0
- package/dist/openapi/dist/models/UpdateEndpoint.d.ts +17 -0
- package/dist/openapi/dist/models/UpdateEndpoint.js +57 -0
- package/dist/openapi/dist/models/UpdateEndpoint.js.map +1 -0
- package/dist/openapi/dist/models/UpdateWalletRequest.d.ts +17 -0
- package/dist/openapi/dist/models/UpdateWalletRequest.js +27 -0
- package/dist/openapi/dist/models/UpdateWalletRequest.js.map +1 -0
- package/dist/openapi/dist/models/Wallet.d.ts +17 -0
- package/dist/openapi/dist/models/Wallet.js +39 -0
- package/dist/openapi/dist/models/Wallet.js.map +1 -0
- package/dist/openapi/dist/models/WebhookEvent.d.ts +17 -0
- package/dist/openapi/dist/models/WebhookEvent.js +39 -0
- package/dist/openapi/dist/models/WebhookEvent.js.map +1 -0
- package/dist/openapi/dist/models/all.d.ts +46 -0
- package/dist/openapi/dist/models/all.js +59 -0
- package/dist/openapi/dist/models/all.js.map +1 -0
- package/dist/openapi/dist/rxjsStub.d.ts +10 -0
- package/dist/openapi/dist/rxjsStub.js +32 -0
- package/dist/openapi/dist/rxjsStub.js.map +1 -0
- package/dist/openapi/dist/servers.d.ts +12 -0
- package/dist/openapi/dist/servers.js +31 -0
- package/dist/openapi/dist/servers.js.map +1 -0
- package/dist/openapi/dist/types/ObjectParamAPI.d.ts +82 -0
- package/dist/openapi/dist/types/ObjectParamAPI.js +170 -0
- package/dist/openapi/dist/types/ObjectParamAPI.js.map +1 -0
- package/dist/openapi/dist/types/ObservableAPI.d.ts +92 -0
- package/dist/openapi/dist/types/ObservableAPI.js +576 -0
- package/dist/openapi/dist/types/ObservableAPI.js.map +1 -0
- package/dist/openapi/dist/types/PromiseAPI.d.ts +82 -0
- package/dist/openapi/dist/types/PromiseAPI.js +202 -0
- package/dist/openapi/dist/types/PromiseAPI.js.map +1 -0
- package/dist/openapi/dist/util.d.ts +1 -0
- package/dist/openapi/dist/util.js +25 -0
- package/dist/openapi/dist/util.js.map +1 -0
- package/dist/openapi/http/http.js +23 -36
- package/dist/openapi/http/http.js.map +1 -1
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +0 -1
- package/dist/openapi/index.js.map +1 -1
- package/dist/openapi/models/CreateTransferRequest.d.ts +3 -0
- package/dist/openapi/models/CreateTransferRequest.js +6 -0
- package/dist/openapi/models/CreateTransferRequest.js.map +1 -1
- package/dist/openapi/models/Currency.d.ts +2 -0
- package/dist/openapi/models/Currency.js +12 -0
- package/dist/openapi/models/Currency.js.map +1 -1
- package/dist/openapi/models/CurrencyNetwork.d.ts +1 -0
- package/dist/openapi/models/CurrencyNetwork.js +6 -0
- package/dist/openapi/models/CurrencyNetwork.js.map +1 -1
- package/dist/openapi/models/EstimateFeeResponse.js.map +1 -1
- package/dist/openapi/models/ObjectSerializer.d.ts +0 -7
- package/dist/openapi/models/ObjectSerializer.js +0 -21
- package/dist/openapi/models/ObjectSerializer.js.map +1 -1
- package/dist/openapi/models/all.d.ts +0 -7
- package/dist/openapi/models/all.js +0 -7
- package/dist/openapi/models/all.js.map +1 -1
- package/dist/openapi/types/ObjectParamAPI.d.ts +0 -37
- package/dist/openapi/types/ObjectParamAPI.js +14 -39
- package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
- package/dist/openapi/types/ObservableAPI.d.ts +0 -19
- package/dist/openapi/types/ObservableAPI.js +1 -100
- package/dist/openapi/types/ObservableAPI.js.map +1 -1
- package/dist/openapi/types/PromiseAPI.d.ts +0 -17
- package/dist/openapi/types/PromiseAPI.js +14 -45
- package/dist/openapi/types/PromiseAPI.js.map +1 -1
- 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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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":"
|
|
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;IAMlE,KAAK,CAAC,wBAAwB,CAAC,QAAwB;QAC1D,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;QAG7C,MAAM,YAAY,GAAG,6BAA6B,CAAC;QAGnD,MAAM,cAAc,G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AAI,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;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,GAAqB,mCAAgB,CAAC,WAAW,CACvD,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,kBAAkB,EAAE,EAAE,CACL,CAAC;YACtB,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;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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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":"
|
|
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;IAS9D,KAAK,CAAC,oBAAoB,CAAC,KAAa,EAAE,MAAe,EAAE,UAA0B,EAAE,QAAwB;QAClH,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;QAG7C,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;YACvC,MAAM,IAAI,uBAAa,CAAC,mFAAmF,CAAC,CAAC;SAChH;QAMD,MAAM,YAAY,GAAG,wBAAwB,CAAC;QAG9C,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,YAAY,EAAE,iBAAU,CAAC,GAAG,CAAC,CAAC;QAC3F,cAAc,CAAC,cAAc,CAAC,QAAQ,EAAE,6BAA6B,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
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,GAAG,OAAO,CAAC,CAAC,CAAC,UAAU,OAAO,EAAE,MAAM;QACrD,SAAS,SAAS,CAAC,KAAK,IAAI,IAAI;YAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;SAAE;QAAC,OAAO,CAAC,EAAE;YAAE,MAAM,CAAC,CAAC,CAAC,CAAC;S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