@ember-finance/sdk 1.0.12 → 1.0.14

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.
@@ -91,13 +91,13 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
91
91
  *
92
92
  * @summary Get the positions history of the account for a given vault
93
93
  * @param {string} vaultId The id of the vault
94
- * @param {string} [accountAddress] The address of the account
94
+ * @param {string} accountAddress The address of the account
95
95
  * @param {number} [limit] The limit of the rows
96
96
  * @param {PositionHistoryInterval} [interval] The interval of the rows
97
97
  * @param {*} [options] Override http request option.
98
98
  * @throws {RequiredError}
99
99
  */
100
- getVaultAccountPositionsHistory: (vaultId: string, accountAddress?: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
100
+ getVaultAccountPositionsHistory: (vaultId: string, accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
101
101
  };
102
102
  /**
103
103
  * AccountsApi - functional programming interface
@@ -171,13 +171,13 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
171
171
  *
172
172
  * @summary Get the positions history of the account for a given vault
173
173
  * @param {string} vaultId The id of the vault
174
- * @param {string} [accountAddress] The address of the account
174
+ * @param {string} accountAddress The address of the account
175
175
  * @param {number} [limit] The limit of the rows
176
176
  * @param {PositionHistoryInterval} [interval] The interval of the rows
177
177
  * @param {*} [options] Override http request option.
178
178
  * @throws {RequiredError}
179
179
  */
180
- getVaultAccountPositionsHistory(vaultId: string, accountAddress?: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PositionHistory>>>;
180
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PositionHistory>>>;
181
181
  };
182
182
  /**
183
183
  * AccountsApi - factory interface
@@ -251,13 +251,13 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
251
251
  *
252
252
  * @summary Get the positions history of the account for a given vault
253
253
  * @param {string} vaultId The id of the vault
254
- * @param {string} [accountAddress] The address of the account
254
+ * @param {string} accountAddress The address of the account
255
255
  * @param {number} [limit] The limit of the rows
256
256
  * @param {PositionHistoryInterval} [interval] The interval of the rows
257
257
  * @param {*} [options] Override http request option.
258
258
  * @throws {RequiredError}
259
259
  */
260
- getVaultAccountPositionsHistory(vaultId: string, accountAddress?: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionHistory>>;
260
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionHistory>>;
261
261
  };
262
262
  /**
263
263
  * AccountsApi - object-oriented interface
@@ -339,14 +339,14 @@ export declare class AccountsApi extends BaseAPI {
339
339
  *
340
340
  * @summary Get the positions history of the account for a given vault
341
341
  * @param {string} vaultId The id of the vault
342
- * @param {string} [accountAddress] The address of the account
342
+ * @param {string} accountAddress The address of the account
343
343
  * @param {number} [limit] The limit of the rows
344
344
  * @param {PositionHistoryInterval} [interval] The interval of the rows
345
345
  * @param {*} [options] Override http request option.
346
346
  * @throws {RequiredError}
347
347
  * @memberof AccountsApi
348
348
  */
349
- getVaultAccountPositionsHistory(vaultId: string, accountAddress?: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PositionHistory[], any, {}>>;
349
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PositionHistory[], any, {}>>;
350
350
  }
351
351
  /**
352
352
  * @export
@@ -289,7 +289,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
289
289
  *
290
290
  * @summary Get the positions history of the account for a given vault
291
291
  * @param {string} vaultId The id of the vault
292
- * @param {string} [accountAddress] The address of the account
292
+ * @param {string} accountAddress The address of the account
293
293
  * @param {number} [limit] The limit of the rows
294
294
  * @param {PositionHistoryInterval} [interval] The interval of the rows
295
295
  * @param {*} [options] Override http request option.
@@ -298,6 +298,8 @@ const AccountsApiAxiosParamCreator = function (configuration) {
298
298
  getVaultAccountPositionsHistory: async (vaultId, accountAddress, limit, interval, options = {}) => {
299
299
  // verify required parameter 'vaultId' is not null or undefined
300
300
  (0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "vaultId", vaultId);
301
+ // verify required parameter 'accountAddress' is not null or undefined
302
+ (0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "accountAddress", accountAddress);
301
303
  const localVarPath = `/api/v1/vaults/position-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
302
304
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
303
305
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -436,7 +438,7 @@ const AccountsApiFp = function (configuration) {
436
438
  *
437
439
  * @summary Get the positions history of the account for a given vault
438
440
  * @param {string} vaultId The id of the vault
439
- * @param {string} [accountAddress] The address of the account
441
+ * @param {string} accountAddress The address of the account
440
442
  * @param {number} [limit] The limit of the rows
441
443
  * @param {PositionHistoryInterval} [interval] The interval of the rows
442
444
  * @param {*} [options] Override http request option.
@@ -549,7 +551,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
549
551
  *
550
552
  * @summary Get the positions history of the account for a given vault
551
553
  * @param {string} vaultId The id of the vault
552
- * @param {string} [accountAddress] The address of the account
554
+ * @param {string} accountAddress The address of the account
553
555
  * @param {number} [limit] The limit of the rows
554
556
  * @param {PositionHistoryInterval} [interval] The interval of the rows
555
557
  * @param {*} [options] Override http request option.
@@ -667,7 +669,7 @@ class AccountsApi extends base_1.BaseAPI {
667
669
  *
668
670
  * @summary Get the positions history of the account for a given vault
669
671
  * @param {string} vaultId The id of the vault
670
- * @param {string} [accountAddress] The address of the account
672
+ * @param {string} accountAddress The address of the account
671
673
  * @param {number} [limit] The limit of the rows
672
674
  * @param {PositionHistoryInterval} [interval] The interval of the rows
673
675
  * @param {*} [options] Override http request option.
@@ -0,0 +1,31 @@
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
+ import type { Asset } from "./asset";
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface EmberPosition
17
+ */
18
+ export interface EmberPosition {
19
+ /**
20
+ *
21
+ * @type {Asset}
22
+ * @memberof EmberPosition
23
+ */
24
+ coin: Asset;
25
+ /**
26
+ * The amount of the Ember position
27
+ * @type {string}
28
+ * @memberof EmberPosition
29
+ */
30
+ amount: string;
31
+ }
@@ -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 });
@@ -6,6 +6,7 @@ export * from "./asset";
6
6
  export * from "./borrowed";
7
7
  export * from "./coin-price";
8
8
  export * from "./deposit-transaction";
9
+ export * from "./ember-position";
9
10
  export * from "./exposure";
10
11
  export * from "./exposure-coin";
11
12
  export * from "./exposure-protocol";
@@ -22,6 +22,7 @@ __exportStar(require("./asset"), exports);
22
22
  __exportStar(require("./borrowed"), exports);
23
23
  __exportStar(require("./coin-price"), exports);
24
24
  __exportStar(require("./deposit-transaction"), exports);
25
+ __exportStar(require("./ember-position"), exports);
25
26
  __exportStar(require("./exposure"), exports);
26
27
  __exportStar(require("./exposure-coin"), exports);
27
28
  __exportStar(require("./exposure-protocol"), exports);
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Asset } from "./asset";
13
+ import type { EmberPosition } from "./ember-position";
13
14
  import type { Manager } from "./manager";
14
15
  import type { ReportedApy } from "./reported-apy";
15
16
  import type { RewardToken } from "./reward-token";
@@ -86,6 +87,12 @@ export interface VaultDetail {
86
87
  * @memberof VaultDetail
87
88
  */
88
89
  depositCoin: Asset;
90
+ /**
91
+ *
92
+ * @type {EmberPosition}
93
+ * @memberof VaultDetail
94
+ */
95
+ requiredEmberPosition?: EmberPosition;
89
96
  /**
90
97
  *
91
98
  * @type {Array<Manager>}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "1.0.12",
4
+ "version": "1.0.14",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",