@ember-finance/sdk 1.0.8 → 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.
Files changed (105) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/src/common/types.d.ts +0 -1
  4. package/dist/src/common/types.js +0 -1
  5. package/dist/src/vaults/api/api.d.ts +2 -2
  6. package/dist/src/vaults/api/apis/accounts-api.d.ts +178 -27
  7. package/dist/src/vaults/api/apis/accounts-api.js +208 -77
  8. package/dist/src/vaults/api/apis/vaults-api.d.ts +270 -40
  9. package/dist/src/vaults/api/apis/vaults-api.js +267 -194
  10. package/dist/src/vaults/api/base.d.ts +26 -2
  11. package/dist/src/vaults/api/base.js +21 -1
  12. package/dist/src/vaults/api/common.d.ts +38 -1
  13. package/dist/src/vaults/api/common.js +47 -17
  14. package/dist/src/vaults/api/configuration.d.ts +17 -0
  15. package/dist/src/vaults/api/configuration.js +4 -5
  16. package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
  17. package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
  18. package/dist/src/vaults/api/models/account-transaction.js +12 -7
  19. package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
  20. package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
  21. package/dist/src/vaults/api/models/apy-history.d.ts +42 -0
  22. package/dist/src/vaults/api/models/apy-history.js +15 -0
  23. package/dist/src/vaults/api/models/asset.d.ts +26 -7
  24. package/dist/src/vaults/api/models/borrowed.d.ts +43 -0
  25. package/dist/src/vaults/api/models/borrowed.js +15 -0
  26. package/dist/src/vaults/api/models/coin-price.d.ts +30 -0
  27. package/dist/src/vaults/api/models/coin-price.js +15 -0
  28. package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
  29. package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
  30. package/dist/src/vaults/api/models/exposure-protocol.d.ts +50 -3
  31. package/dist/src/vaults/api/models/exposure.d.ts +16 -5
  32. package/dist/src/vaults/api/models/fee.d.ts +37 -0
  33. package/dist/src/vaults/api/models/fee.js +15 -0
  34. package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
  35. package/dist/src/vaults/api/models/history-interval.js +12 -6
  36. package/dist/src/vaults/api/models/index.d.ts +60 -43
  37. package/dist/src/vaults/api/models/index.js +17 -0
  38. package/dist/src/vaults/api/models/lp.d.ts +81 -0
  39. package/dist/src/vaults/api/models/lp.js +15 -0
  40. package/dist/src/vaults/api/models/manager.d.ts +26 -4
  41. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
  42. package/dist/src/vaults/api/models/perps.d.ts +31 -0
  43. package/dist/src/vaults/api/models/perps.js +15 -0
  44. package/dist/src/vaults/api/models/pnl-history-interval.d.ts +21 -0
  45. package/dist/src/vaults/api/models/pnl-history-interval.js +27 -0
  46. package/dist/src/vaults/api/models/pnl-history.d.ts +17 -2
  47. package/dist/src/vaults/api/models/position-value.d.ts +54 -0
  48. package/dist/src/vaults/api/models/position-value.js +15 -0
  49. package/dist/src/vaults/api/models/position.d.ts +42 -0
  50. package/dist/src/vaults/api/models/position.js +15 -0
  51. package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +78 -0
  52. package/dist/src/vaults/api/models/process-requests-summary-event.js +15 -0
  53. package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +60 -0
  54. package/dist/src/vaults/api/models/protocol-fee-collected-event.js +15 -0
  55. package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
  56. package/dist/src/vaults/api/models/protocol.d.ts +17 -13
  57. package/dist/src/vaults/api/models/protocol.js +0 -8
  58. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +19 -13
  59. package/dist/src/vaults/api/models/raw-event.d.ts +44 -20
  60. package/dist/src/vaults/api/models/raw-event.js +24 -14
  61. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
  62. package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
  63. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
  64. package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
  65. package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
  66. package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
  67. package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
  68. package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
  69. package/dist/src/vaults/api/models/reward.d.ts +37 -0
  70. package/dist/src/vaults/api/models/reward.js +15 -0
  71. package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
  72. package/dist/src/vaults/api/models/strategy.d.ts +26 -7
  73. package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
  74. package/dist/src/vaults/api/models/supplied.d.ts +43 -0
  75. package/dist/src/vaults/api/models/supplied.js +15 -0
  76. package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
  77. package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
  78. package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
  79. package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
  80. package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
  81. package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
  82. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +60 -0
  83. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.js +15 -0
  84. package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
  85. package/dist/src/vaults/api/models/vault-detail.js +11 -6
  86. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
  87. package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
  88. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
  89. package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
  90. package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
  91. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +48 -0
  92. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.js +15 -0
  93. package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
  94. package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
  95. package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
  96. package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
  97. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +60 -0
  98. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.js +15 -0
  99. package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +42 -0
  100. package/dist/src/vaults/api/models/yield-aggregate-value.js +15 -0
  101. package/dist/src/vaults/on-chain-calls/tx-builder.d.ts +8 -0
  102. package/dist/src/vaults/on-chain-calls/tx-builder.js +35 -0
  103. package/dist/src/vaults/on-chain-calls/user.d.ts +9 -0
  104. package/dist/src/vaults/on-chain-calls/user.js +16 -0
  105. package/package.json +5 -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 "./configuration";
13
- import type { AxiosInstance, RawAxiosRequestConfig } from "axios";
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 "axios";
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
- exports.DUMMY_BASE_URL = "https://example.com";
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 === "function"
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 === "function"
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 === "function"
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 !== "" ? "." : ""}${currentKey}`));
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 !== "string";
118
+ const nonString = typeof value !== 'string';
93
119
  const needsSerialization = nonString && configuration && configuration.isJsonMime
94
- ? configuration.isJsonMime(requestOptions.headers["Content-Type"])
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("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", "i");
45
- return (mime !== null &&
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 "./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";
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 "./account-transaction-transaction-data";
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
- transactionData?: AccountTransactionTransactionData;
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
- exports.AccountTransactionTransactionTypeEnum = {
18
- Deposit: "Deposit",
19
- RedeemRequest: "RedeemRequest",
20
- RedeemRequestProcessed: "RedeemRequestProcessed",
21
- RedeemRequestSkipped: "RedeemRequestSkipped",
22
- RedeemRequestCancelled: "RedeemRequestCancelled"
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 "./asset";
13
- import type { VaultSlice } from "./vault-slice";
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
- receiptCoin: Asset;
36
- depositCoin: Asset;
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
- txDigest?: string;
53
- vault: VaultSlice;
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
- exports.AccountWithdrawalRequestStatusEnum = {
18
- Pending: "Pending",
19
- PendingCancelling: "PendingCancelling",
20
- Cancelled: "Cancelled",
21
- Processed: "Processed",
22
- Skipped: "Skipped",
23
- Processed2: "Processed"
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 = {}));
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApyHistory
16
+ */
17
+ export interface ApyHistory {
18
+ /**
19
+ * The timestamp of the event
20
+ * @type {number}
21
+ * @memberof ApyHistory
22
+ */
23
+ 'timestamp': number;
24
+ /**
25
+ * The apy of the event
26
+ * @type {string}
27
+ * @memberof ApyHistory
28
+ */
29
+ 'apyE9': string;
30
+ /**
31
+ * The target apy of the event
32
+ * @type {string}
33
+ * @memberof ApyHistory
34
+ */
35
+ 'targetApyE9': string;
36
+ /**
37
+ * The lending apy of the event
38
+ * @type {string}
39
+ * @memberof ApyHistory
40
+ */
41
+ 'lendingApyE9': string;
42
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });