@ember-finance/sdk 1.0.9 → 1.0.10
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 +0 -1
- package/dist/index.js +0 -1
- package/dist/src/common/types.d.ts +0 -1
- package/dist/src/common/types.js +0 -1
- package/dist/src/vaults/api/api.d.ts +2 -2
- package/dist/src/vaults/api/apis/accounts-api.d.ts +112 -31
- package/dist/src/vaults/api/apis/accounts-api.js +98 -112
- package/dist/src/vaults/api/apis/vaults-api.d.ts +186 -31
- package/dist/src/vaults/api/apis/vaults-api.js +140 -220
- package/dist/src/vaults/api/base.d.ts +26 -2
- package/dist/src/vaults/api/base.js +21 -1
- package/dist/src/vaults/api/common.d.ts +38 -1
- package/dist/src/vaults/api/common.js +47 -17
- package/dist/src/vaults/api/configuration.d.ts +17 -0
- package/dist/src/vaults/api/configuration.js +4 -5
- package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
- package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
- package/dist/src/vaults/api/models/account-transaction.js +12 -7
- package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
- package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
- package/dist/src/vaults/api/models/apy-history.d.ts +17 -4
- package/dist/src/vaults/api/models/asset.d.ts +26 -7
- package/dist/src/vaults/api/models/borrowed.d.ts +21 -5
- package/dist/src/vaults/api/models/coin-price.d.ts +11 -2
- package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
- package/dist/src/vaults/api/models/exposure-protocol.d.ts +38 -13
- package/dist/src/vaults/api/models/exposure.d.ts +16 -5
- package/dist/src/vaults/api/models/fee.d.ts +18 -4
- package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
- package/dist/src/vaults/api/models/history-interval.js +12 -6
- package/dist/src/vaults/api/models/index.d.ts +60 -60
- package/dist/src/vaults/api/models/lp.d.ts +44 -13
- package/dist/src/vaults/api/models/manager.d.ts +26 -4
- package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/perps.d.ts +12 -3
- package/dist/src/vaults/api/models/pnl-history-interval.d.ts +10 -6
- package/dist/src/vaults/api/models/pnl-history-interval.js +11 -5
- package/dist/src/vaults/api/models/pnl-history.d.ts +14 -3
- package/dist/src/vaults/api/models/position-value.d.ts +23 -6
- package/dist/src/vaults/api/models/position.d.ts +17 -4
- package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +35 -10
- package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +26 -7
- package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
- package/dist/src/vaults/api/models/protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +18 -17
- package/dist/src/vaults/api/models/raw-event.d.ts +44 -25
- package/dist/src/vaults/api/models/raw-event.js +24 -19
- package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
- package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
- package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
- package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
- package/dist/src/vaults/api/models/reward.d.ts +18 -4
- package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
- package/dist/src/vaults/api/models/strategy.d.ts +26 -7
- package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
- package/dist/src/vaults/api/models/supplied.d.ts +21 -5
- package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
- package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
- package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
- package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +26 -7
- package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
- package/dist/src/vaults/api/models/vault-detail.js +11 -6
- package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
- package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +26 -7
- package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +17 -4
- package/package.json +4 -3
|
@@ -9,25 +9,45 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from
|
|
13
|
-
import type { AxiosInstance, RawAxiosRequestConfig } from
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
15
19
|
export declare const COLLECTION_FORMATS: {
|
|
16
20
|
csv: string;
|
|
17
21
|
ssv: string;
|
|
18
22
|
tsv: string;
|
|
19
23
|
pipes: string;
|
|
20
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
21
30
|
export interface RequestArgs {
|
|
22
31
|
url: string;
|
|
23
32
|
options: RawAxiosRequestConfig;
|
|
24
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
25
39
|
export declare class BaseAPI {
|
|
26
40
|
protected basePath: string;
|
|
27
41
|
protected axios: AxiosInstance;
|
|
28
42
|
protected configuration: Configuration | undefined;
|
|
29
43
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
30
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
31
51
|
export declare class RequiredError extends Error {
|
|
32
52
|
field: string;
|
|
33
53
|
constructor(field: string, msg?: string);
|
|
@@ -38,5 +58,9 @@ interface ServerMap {
|
|
|
38
58
|
description: string;
|
|
39
59
|
}[];
|
|
40
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
41
65
|
export declare const operationServerMap: ServerMap;
|
|
42
66
|
export {};
|
|
@@ -19,12 +19,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "https://vaults.api.sui-staging.bluefin.io".replace(/\/+$/, "");
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
22
26
|
exports.COLLECTION_FORMATS = {
|
|
23
27
|
csv: ",",
|
|
24
28
|
ssv: " ",
|
|
25
29
|
tsv: "\t",
|
|
26
|
-
pipes: "|"
|
|
30
|
+
pipes: "|",
|
|
27
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
* @class BaseAPI
|
|
36
|
+
*/
|
|
28
37
|
class BaseAPI {
|
|
29
38
|
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
30
39
|
this.basePath = basePath;
|
|
@@ -36,6 +45,13 @@ class BaseAPI {
|
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
exports.BaseAPI = BaseAPI;
|
|
48
|
+
;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @export
|
|
52
|
+
* @class RequiredError
|
|
53
|
+
* @extends {Error}
|
|
54
|
+
*/
|
|
39
55
|
class RequiredError extends Error {
|
|
40
56
|
constructor(field, msg) {
|
|
41
57
|
super(msg);
|
|
@@ -44,4 +60,8 @@ class RequiredError extends Error {
|
|
|
44
60
|
}
|
|
45
61
|
}
|
|
46
62
|
exports.RequiredError = RequiredError;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
47
67
|
exports.operationServerMap = {};
|
|
@@ -11,18 +11,55 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
|
-
import type { AxiosInstance, AxiosResponse } from
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
15
19
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
16
20
|
/**
|
|
17
21
|
*
|
|
18
22
|
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
19
24
|
*/
|
|
20
25
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
21
30
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
22
35
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
23
40
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
24
45
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
25
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
26
55
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
27
60
|
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
28
65
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -15,10 +15,15 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
17
|
const base_1 = require("./base");
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
19
23
|
/**
|
|
20
24
|
*
|
|
21
25
|
* @throws {RequiredError}
|
|
26
|
+
* @export
|
|
22
27
|
*/
|
|
23
28
|
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
24
29
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -26,36 +31,49 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
26
31
|
}
|
|
27
32
|
};
|
|
28
33
|
exports.assertParamExists = assertParamExists;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
29
38
|
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
30
39
|
if (configuration && configuration.apiKey) {
|
|
31
|
-
const localVarApiKeyValue = typeof configuration.apiKey ===
|
|
40
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
32
41
|
? await configuration.apiKey(keyParamName)
|
|
33
42
|
: await configuration.apiKey;
|
|
34
43
|
object[keyParamName] = localVarApiKeyValue;
|
|
35
44
|
}
|
|
36
45
|
};
|
|
37
46
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
38
51
|
const setBasicAuthToObject = function (object, configuration) {
|
|
39
52
|
if (configuration && (configuration.username || configuration.password)) {
|
|
40
|
-
object["auth"] = {
|
|
41
|
-
username: configuration.username,
|
|
42
|
-
password: configuration.password
|
|
43
|
-
};
|
|
53
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
44
54
|
}
|
|
45
55
|
};
|
|
46
56
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
47
61
|
const setBearerAuthToObject = async function (object, configuration) {
|
|
48
62
|
if (configuration && configuration.accessToken) {
|
|
49
|
-
const accessToken = typeof configuration.accessToken ===
|
|
63
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
50
64
|
? await configuration.accessToken()
|
|
51
65
|
: await configuration.accessToken;
|
|
52
66
|
object["Authorization"] = "Bearer " + accessToken;
|
|
53
67
|
}
|
|
54
68
|
};
|
|
55
69
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
56
74
|
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
57
75
|
if (configuration && configuration.accessToken) {
|
|
58
|
-
const localVarAccessTokenValue = typeof configuration.accessToken ===
|
|
76
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
59
77
|
? await configuration.accessToken(name, scopes)
|
|
60
78
|
: await configuration.accessToken;
|
|
61
79
|
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
@@ -70,7 +88,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
70
88
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
71
89
|
}
|
|
72
90
|
else {
|
|
73
|
-
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !==
|
|
91
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
74
92
|
}
|
|
75
93
|
}
|
|
76
94
|
else {
|
|
@@ -82,33 +100,45 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
82
100
|
}
|
|
83
101
|
}
|
|
84
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
85
107
|
const setSearchParams = function (url, ...objects) {
|
|
86
108
|
const searchParams = new URLSearchParams(url.search);
|
|
87
109
|
setFlattenedQueryParams(searchParams, objects);
|
|
88
110
|
url.search = searchParams.toString();
|
|
89
111
|
};
|
|
90
112
|
exports.setSearchParams = setSearchParams;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @export
|
|
116
|
+
*/
|
|
91
117
|
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
92
|
-
const nonString = typeof value !==
|
|
118
|
+
const nonString = typeof value !== 'string';
|
|
93
119
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
94
|
-
? configuration.isJsonMime(requestOptions.headers[
|
|
120
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
95
121
|
: nonString;
|
|
96
122
|
return needsSerialization
|
|
97
123
|
? JSON.stringify(value !== undefined ? value : {})
|
|
98
|
-
: value || "";
|
|
124
|
+
: (value || "");
|
|
99
125
|
};
|
|
100
126
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @export
|
|
130
|
+
*/
|
|
101
131
|
const toPathString = function (url) {
|
|
102
132
|
return url.pathname + url.search + url.hash;
|
|
103
133
|
};
|
|
104
134
|
exports.toPathString = toPathString;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
105
139
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
106
140
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
107
|
-
const axiosRequestArgs = {
|
|
108
|
-
...axiosArgs.options,
|
|
109
|
-
url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) +
|
|
110
|
-
axiosArgs.url
|
|
111
|
-
};
|
|
141
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
112
142
|
return axios.request(axiosRequestArgs);
|
|
113
143
|
};
|
|
114
144
|
};
|
|
@@ -23,32 +23,49 @@ export declare class Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* parameter for apiKey security
|
|
25
25
|
* @param name security name
|
|
26
|
+
* @memberof Configuration
|
|
26
27
|
*/
|
|
27
28
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
29
|
/**
|
|
29
30
|
* parameter for basic security
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Configuration
|
|
30
34
|
*/
|
|
31
35
|
username?: string;
|
|
32
36
|
/**
|
|
33
37
|
* parameter for basic security
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Configuration
|
|
34
41
|
*/
|
|
35
42
|
password?: string;
|
|
36
43
|
/**
|
|
37
44
|
* parameter for oauth2 security
|
|
38
45
|
* @param name security name
|
|
39
46
|
* @param scopes oauth2 scope
|
|
47
|
+
* @memberof Configuration
|
|
40
48
|
*/
|
|
41
49
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
42
50
|
/**
|
|
43
51
|
* override base path
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof Configuration
|
|
44
55
|
*/
|
|
45
56
|
basePath?: string;
|
|
46
57
|
/**
|
|
47
58
|
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
48
62
|
*/
|
|
49
63
|
serverIndex?: number;
|
|
50
64
|
/**
|
|
51
65
|
* base options for axios calls
|
|
66
|
+
*
|
|
67
|
+
* @type {any}
|
|
68
|
+
* @memberof Configuration
|
|
52
69
|
*/
|
|
53
70
|
baseOptions?: any;
|
|
54
71
|
/**
|
|
@@ -25,8 +25,8 @@ class Configuration {
|
|
|
25
25
|
this.baseOptions = {
|
|
26
26
|
...param.baseOptions,
|
|
27
27
|
headers: {
|
|
28
|
-
...param.baseOptions?.headers
|
|
29
|
-
}
|
|
28
|
+
...param.baseOptions?.headers,
|
|
29
|
+
},
|
|
30
30
|
};
|
|
31
31
|
this.formDataCtor = param.formDataCtor;
|
|
32
32
|
}
|
|
@@ -41,9 +41,8 @@ class Configuration {
|
|
|
41
41
|
* @return True if the given MIME is JSON, false otherwise.
|
|
42
42
|
*/
|
|
43
43
|
isJsonMime(mime) {
|
|
44
|
-
const jsonMime = new RegExp(
|
|
45
|
-
return
|
|
46
|
-
(jsonMime.test(mime) || mime.toLowerCase() === "application/json-patch+json"));
|
|
44
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
45
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
exports.Configuration = Configuration;
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { DepositTransaction } from
|
|
13
|
-
import type { RedeemRequestCancelledTransaction } from
|
|
14
|
-
import type { RedeemRequestProcessedTransaction } from
|
|
15
|
-
import type { RedeemRequestSkippedTransaction } from
|
|
16
|
-
import type { RedeemRequestTransaction } from
|
|
12
|
+
import type { DepositTransaction } from './deposit-transaction';
|
|
13
|
+
import type { RedeemRequestCancelledTransaction } from './redeem-request-cancelled-transaction';
|
|
14
|
+
import type { RedeemRequestProcessedTransaction } from './redeem-request-processed-transaction';
|
|
15
|
+
import type { RedeemRequestSkippedTransaction } from './redeem-request-skipped-transaction';
|
|
16
|
+
import type { RedeemRequestTransaction } from './redeem-request-transaction';
|
|
17
17
|
/**
|
|
18
18
|
* @type AccountTransactionTransactionData
|
|
19
19
|
* The data of the transaction
|
|
20
|
+
* @export
|
|
20
21
|
*/
|
|
21
22
|
export type AccountTransactionTransactionData = DepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
|
|
@@ -9,19 +9,34 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AccountTransactionTransactionData } from
|
|
12
|
+
import type { AccountTransactionTransactionData } from './account-transaction-transaction-data';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountTransaction
|
|
17
|
+
*/
|
|
13
18
|
export interface AccountTransaction {
|
|
14
19
|
/**
|
|
15
20
|
* The type of the transaction
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccountTransaction
|
|
16
23
|
*/
|
|
17
|
-
transactionType: AccountTransactionTransactionTypeEnum;
|
|
18
|
-
|
|
24
|
+
'transactionType': AccountTransactionTransactionTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AccountTransactionTransactionData}
|
|
28
|
+
* @memberof AccountTransaction
|
|
29
|
+
*/
|
|
30
|
+
'transactionData'?: AccountTransactionTransactionData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
* @enum {string}
|
|
35
|
+
*/
|
|
36
|
+
export declare enum AccountTransactionTransactionTypeEnum {
|
|
37
|
+
Deposit = "Deposit",
|
|
38
|
+
RedeemRequest = "RedeemRequest",
|
|
39
|
+
RedeemRequestProcessed = "RedeemRequestProcessed",
|
|
40
|
+
RedeemRequestSkipped = "RedeemRequestSkipped",
|
|
41
|
+
RedeemRequestCancelled = "RedeemRequestCancelled"
|
|
19
42
|
}
|
|
20
|
-
export declare const AccountTransactionTransactionTypeEnum: {
|
|
21
|
-
readonly Deposit: "Deposit";
|
|
22
|
-
readonly RedeemRequest: "RedeemRequest";
|
|
23
|
-
readonly RedeemRequestProcessed: "RedeemRequestProcessed";
|
|
24
|
-
readonly RedeemRequestSkipped: "RedeemRequestSkipped";
|
|
25
|
-
readonly RedeemRequestCancelled: "RedeemRequestCancelled";
|
|
26
|
-
};
|
|
27
|
-
export type AccountTransactionTransactionTypeEnum = (typeof AccountTransactionTransactionTypeEnum)[keyof typeof AccountTransactionTransactionTypeEnum];
|
|
@@ -14,10 +14,15 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AccountTransactionTransactionTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var AccountTransactionTransactionTypeEnum;
|
|
22
|
+
(function (AccountTransactionTransactionTypeEnum) {
|
|
23
|
+
AccountTransactionTransactionTypeEnum["Deposit"] = "Deposit";
|
|
24
|
+
AccountTransactionTransactionTypeEnum["RedeemRequest"] = "RedeemRequest";
|
|
25
|
+
AccountTransactionTransactionTypeEnum["RedeemRequestProcessed"] = "RedeemRequestProcessed";
|
|
26
|
+
AccountTransactionTransactionTypeEnum["RedeemRequestSkipped"] = "RedeemRequestSkipped";
|
|
27
|
+
AccountTransactionTransactionTypeEnum["RedeemRequestCancelled"] = "RedeemRequestCancelled";
|
|
28
|
+
})(AccountTransactionTransactionTypeEnum || (exports.AccountTransactionTransactionTypeEnum = AccountTransactionTransactionTypeEnum = {}));
|
|
@@ -9,55 +9,96 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Asset } from
|
|
13
|
-
import type { VaultSlice } from
|
|
12
|
+
import type { Asset } from './asset';
|
|
13
|
+
import type { VaultSlice } from './vault-slice';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AccountWithdrawalRequest
|
|
18
|
+
*/
|
|
14
19
|
export interface AccountWithdrawalRequest {
|
|
15
20
|
/**
|
|
16
21
|
* The status of the withdrawal request
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AccountWithdrawalRequest
|
|
17
24
|
*/
|
|
18
|
-
status: AccountWithdrawalRequestStatusEnum;
|
|
25
|
+
'status': AccountWithdrawalRequestStatusEnum;
|
|
19
26
|
/**
|
|
20
27
|
* The updated timestamp of the withdrawal request
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof AccountWithdrawalRequest
|
|
21
30
|
*/
|
|
22
|
-
updatedAt?: number;
|
|
31
|
+
'updatedAt'?: number;
|
|
23
32
|
/**
|
|
24
33
|
* The amount of the withdrawal request
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AccountWithdrawalRequest
|
|
25
36
|
*/
|
|
26
|
-
withdrawnAmount: string;
|
|
37
|
+
'withdrawnAmount': string;
|
|
27
38
|
/**
|
|
28
39
|
* The receiver of the withdrawal request
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AccountWithdrawalRequest
|
|
29
42
|
*/
|
|
30
|
-
receiverAddress: string;
|
|
43
|
+
'receiverAddress': string;
|
|
31
44
|
/**
|
|
32
45
|
* The shares amount of the withdrawal request
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AccountWithdrawalRequest
|
|
33
48
|
*/
|
|
34
|
-
requestedAgainstShares: string;
|
|
35
|
-
|
|
36
|
-
|
|
49
|
+
'requestedAgainstShares': string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Asset}
|
|
53
|
+
* @memberof AccountWithdrawalRequest
|
|
54
|
+
*/
|
|
55
|
+
'receiptCoin': Asset;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Asset}
|
|
59
|
+
* @memberof AccountWithdrawalRequest
|
|
60
|
+
*/
|
|
61
|
+
'depositCoin': Asset;
|
|
37
62
|
/**
|
|
38
63
|
* The timestamp of the withdrawal request
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof AccountWithdrawalRequest
|
|
39
66
|
*/
|
|
40
|
-
requestedAt: number;
|
|
67
|
+
'requestedAt': number;
|
|
41
68
|
/**
|
|
42
69
|
* The timestamp of the withdrawal request
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof AccountWithdrawalRequest
|
|
43
72
|
*/
|
|
44
|
-
processedAt?: number;
|
|
73
|
+
'processedAt'?: number;
|
|
45
74
|
/**
|
|
46
75
|
* The sequence number of the withdrawal request
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AccountWithdrawalRequest
|
|
47
78
|
*/
|
|
48
|
-
sequenceNumber: string;
|
|
79
|
+
'sequenceNumber': string;
|
|
49
80
|
/**
|
|
50
81
|
* The tx digest of the withdrawal request
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AccountWithdrawalRequest
|
|
84
|
+
*/
|
|
85
|
+
'txDigest'?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {VaultSlice}
|
|
89
|
+
* @memberof AccountWithdrawalRequest
|
|
51
90
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
91
|
+
'vault': VaultSlice;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
* @enum {string}
|
|
96
|
+
*/
|
|
97
|
+
export declare enum AccountWithdrawalRequestStatusEnum {
|
|
98
|
+
Pending = "Pending",
|
|
99
|
+
PendingCancelling = "PendingCancelling",
|
|
100
|
+
Cancelled = "Cancelled",
|
|
101
|
+
Processed = "Processed",
|
|
102
|
+
Skipped = "Skipped",
|
|
103
|
+
Processed2 = "Processed"
|
|
54
104
|
}
|
|
55
|
-
export declare const AccountWithdrawalRequestStatusEnum: {
|
|
56
|
-
readonly Pending: "Pending";
|
|
57
|
-
readonly PendingCancelling: "PendingCancelling";
|
|
58
|
-
readonly Cancelled: "Cancelled";
|
|
59
|
-
readonly Processed: "Processed";
|
|
60
|
-
readonly Skipped: "Skipped";
|
|
61
|
-
readonly Processed2: "Processed";
|
|
62
|
-
};
|
|
63
|
-
export type AccountWithdrawalRequestStatusEnum = (typeof AccountWithdrawalRequestStatusEnum)[keyof typeof AccountWithdrawalRequestStatusEnum];
|
|
@@ -14,11 +14,16 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AccountWithdrawalRequestStatusEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var AccountWithdrawalRequestStatusEnum;
|
|
22
|
+
(function (AccountWithdrawalRequestStatusEnum) {
|
|
23
|
+
AccountWithdrawalRequestStatusEnum["Pending"] = "Pending";
|
|
24
|
+
AccountWithdrawalRequestStatusEnum["PendingCancelling"] = "PendingCancelling";
|
|
25
|
+
AccountWithdrawalRequestStatusEnum["Cancelled"] = "Cancelled";
|
|
26
|
+
AccountWithdrawalRequestStatusEnum["Processed"] = "Processed";
|
|
27
|
+
AccountWithdrawalRequestStatusEnum["Skipped"] = "Skipped";
|
|
28
|
+
AccountWithdrawalRequestStatusEnum["Processed2"] = "Processed";
|
|
29
|
+
})(AccountWithdrawalRequestStatusEnum || (exports.AccountWithdrawalRequestStatusEnum = AccountWithdrawalRequestStatusEnum = {}));
|
|
@@ -9,21 +9,34 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApyHistory
|
|
16
|
+
*/
|
|
12
17
|
export interface ApyHistory {
|
|
13
18
|
/**
|
|
14
19
|
* The timestamp of the event
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ApyHistory
|
|
15
22
|
*/
|
|
16
|
-
timestamp: number;
|
|
23
|
+
'timestamp': number;
|
|
17
24
|
/**
|
|
18
25
|
* The apy of the event
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApyHistory
|
|
19
28
|
*/
|
|
20
|
-
apyE9: string;
|
|
29
|
+
'apyE9': string;
|
|
21
30
|
/**
|
|
22
31
|
* The target apy of the event
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApyHistory
|
|
23
34
|
*/
|
|
24
|
-
targetApyE9: string;
|
|
35
|
+
'targetApyE9': string;
|
|
25
36
|
/**
|
|
26
37
|
* The lending apy of the event
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApyHistory
|
|
27
40
|
*/
|
|
28
|
-
lendingApyE9: string;
|
|
41
|
+
'lendingApyE9': string;
|
|
29
42
|
}
|