@ember-finance/sdk 1.0.16 → 1.0.17

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.
@@ -22,6 +22,7 @@ import type { ProtocolInfo } from "../models";
22
22
  import type { RawEvent } from "../models";
23
23
  import type { SharePriceHistory } from "../models";
24
24
  import type { Strategy } from "../models";
25
+ import type { Tag } from "../models";
25
26
  import type { TvlHistory } from "../models";
26
27
  import type { UpdateVaultStrategies } from "../models";
27
28
  import type { VaultDetail } from "../models";
@@ -31,6 +32,13 @@ import type { VaultsStats } from "../models";
31
32
  * @export
32
33
  */
33
34
  export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration) => {
35
+ /**
36
+ *
37
+ * @summary Get all tags
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ getAllTags: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
34
42
  /**
35
43
  *
36
44
  * @summary Get the price of the coins
@@ -161,6 +169,13 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
161
169
  * @export
162
170
  */
163
171
  export declare const VaultsApiFp: (configuration?: Configuration) => {
172
+ /**
173
+ *
174
+ * @summary Get all tags
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ getAllTags(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Tag>>>;
164
179
  /**
165
180
  *
166
181
  * @summary Get the price of the coins
@@ -291,6 +306,13 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
291
306
  * @export
292
307
  */
293
308
  export declare const VaultsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
309
+ /**
310
+ *
311
+ * @summary Get all tags
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ getAllTags(options?: RawAxiosRequestConfig): AxiosPromise<Array<Tag>>;
294
316
  /**
295
317
  *
296
318
  * @summary Get the price of the coins
@@ -423,6 +445,14 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
423
445
  * @extends {BaseAPI}
424
446
  */
425
447
  export declare class VaultsApi extends BaseAPI {
448
+ /**
449
+ *
450
+ * @summary Get all tags
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ * @memberof VaultsApi
454
+ */
455
+ getAllTags(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tag[], any, {}>>;
426
456
  /**
427
457
  *
428
458
  * @summary Get the price of the coins
@@ -29,6 +29,35 @@ const base_1 = require("../base");
29
29
  */
30
30
  const VaultsApiAxiosParamCreator = function (configuration) {
31
31
  return {
32
+ /**
33
+ *
34
+ * @summary Get all tags
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ getAllTags: async (options = {}) => {
39
+ const localVarPath = `/api/v1/vaults/tags`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ if (configuration) {
44
+ baseOptions = configuration.baseOptions;
45
+ }
46
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
47
+ const localVarHeaderParameter = {};
48
+ const localVarQueryParameter = {};
49
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
50
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
51
+ localVarRequestOptions.headers = {
52
+ ...localVarHeaderParameter,
53
+ ...headersFromBaseOptions,
54
+ ...options.headers
55
+ };
56
+ return {
57
+ url: (0, common_1.toPathString)(localVarUrlObj),
58
+ options: localVarRequestOptions
59
+ };
60
+ },
32
61
  /**
33
62
  *
34
63
  * @summary Get the price of the coins
@@ -546,6 +575,19 @@ exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
546
575
  const VaultsApiFp = function (configuration) {
547
576
  const localVarAxiosParamCreator = (0, exports.VaultsApiAxiosParamCreator)(configuration);
548
577
  return {
578
+ /**
579
+ *
580
+ * @summary Get all tags
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ async getAllTags(options) {
585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
586
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
587
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getAllTags"]?.[localVarOperationServerIndex]
588
+ ?.url;
589
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
590
+ },
549
591
  /**
550
592
  *
551
593
  * @summary Get the price of the coins
@@ -751,6 +793,17 @@ exports.VaultsApiFp = VaultsApiFp;
751
793
  const VaultsApiFactory = function (configuration, basePath, axios) {
752
794
  const localVarFp = (0, exports.VaultsApiFp)(configuration);
753
795
  return {
796
+ /**
797
+ *
798
+ * @summary Get all tags
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ getAllTags(options) {
803
+ return localVarFp
804
+ .getAllTags(options)
805
+ .then(request => request(axios, basePath));
806
+ },
754
807
  /**
755
808
  *
756
809
  * @summary Get the price of the coins
@@ -941,6 +994,18 @@ exports.VaultsApiFactory = VaultsApiFactory;
941
994
  * @extends {BaseAPI}
942
995
  */
943
996
  class VaultsApi extends base_1.BaseAPI {
997
+ /**
998
+ *
999
+ * @summary Get all tags
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ * @memberof VaultsApi
1003
+ */
1004
+ getAllTags(options) {
1005
+ return (0, exports.VaultsApiFp)(this.configuration)
1006
+ .getAllTags(options)
1007
+ .then(request => request(this.axios, this.basePath));
1008
+ }
944
1009
  /**
945
1010
  *
946
1011
  * @summary Get the price of the coins
@@ -41,6 +41,7 @@ export * from "./share-price-history";
41
41
  export * from "./strategy";
42
42
  export * from "./sub-account";
43
43
  export * from "./supplied";
44
+ export * from "./tag";
44
45
  export * from "./tvl-history";
45
46
  export * from "./ultra-coin-info";
46
47
  export * from "./update-vault-strategies";
@@ -57,6 +57,7 @@ __exportStar(require("./share-price-history"), exports);
57
57
  __exportStar(require("./strategy"), exports);
58
58
  __exportStar(require("./sub-account"), exports);
59
59
  __exportStar(require("./supplied"), exports);
60
+ __exportStar(require("./tag"), exports);
60
61
  __exportStar(require("./tvl-history"), exports);
61
62
  __exportStar(require("./ultra-coin-info"), exports);
62
63
  __exportStar(require("./update-vault-strategies"), exports);
@@ -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 Tag
16
+ */
17
+ export interface Tag {
18
+ /**
19
+ * The id of the tag
20
+ * @type {string}
21
+ * @memberof Tag
22
+ */
23
+ id: string;
24
+ /**
25
+ * The name of the tag
26
+ * @type {string}
27
+ * @memberof Tag
28
+ */
29
+ name: string;
30
+ /**
31
+ * The description of the tag
32
+ * @type {string}
33
+ * @memberof Tag
34
+ */
35
+ description: string;
36
+ /**
37
+ * The rank of the tag
38
+ * @type {number}
39
+ * @memberof Tag
40
+ */
41
+ rank: number;
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 });
@@ -111,6 +111,12 @@ export interface VaultDetail {
111
111
  * @memberof VaultDetail
112
112
  */
113
113
  managers: Array<Manager>;
114
+ /**
115
+ *
116
+ * @type {Array<string>}
117
+ * @memberof VaultDetail
118
+ */
119
+ tags: Array<string>;
114
120
  /**
115
121
  * The status of the vault
116
122
  * @type {string}
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.16",
4
+ "version": "1.0.17",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -42,7 +42,6 @@
42
42
  "dependencies": {
43
43
  "@firefly-exchange/library-sui": "^2.8.22",
44
44
  "axios": "1.12.2",
45
- "yargs": "^17.6.2",
46
45
  "yarn": "^1.22.19"
47
46
  },
48
47
  "devDependencies": {
@@ -81,5 +80,11 @@
81
80
  },
82
81
  "files": [
83
82
  "dist"
84
- ]
83
+ ],
84
+ "resolutions": {
85
+ "markdown-it": ">=12.3.2",
86
+ "ajv": "^6.12.6",
87
+ "jsonpointer": ">=5.0.0",
88
+ "form-data": ">=3.0.4"
89
+ }
85
90
  }