lago-javascript-client 0.23.0-beta → 0.26.1-beta

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.
@@ -148,7 +148,7 @@ export class HttpClient {
148
148
  }
149
149
  /**
150
150
  * @title Lago API documentation
151
- * @version 0.23.0-beta
151
+ * @version 0.26.0-beta
152
152
  * @baseUrl https://api.getlago.com/api/v1
153
153
  * @externalDocs https://github.com/getlago
154
154
  * @contact <tech@getlago.com>
@@ -956,6 +956,24 @@ export class Api extends HttpClient {
956
956
  ...params,
957
957
  }),
958
958
  };
959
+ fees = {
960
+ /**
961
+ * @description Return a single fee
962
+ *
963
+ * @tags fees
964
+ * @name FindFee
965
+ * @summary Find fee by ID
966
+ * @request GET:/fees/{id}
967
+ * @secure
968
+ */
969
+ findFee: (id, params = {}) => this.request({
970
+ path: `/fees/${id}`,
971
+ method: "GET",
972
+ secure: true,
973
+ format: "json",
974
+ ...params,
975
+ }),
976
+ };
959
977
  wallets = {
960
978
  /**
961
979
  * @description Create a new wallet
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "types": "./types/mod.d.ts",
5
5
  "name": "lago-javascript-client",
6
6
  "sideEffects": false,
7
- "version": "v0.23.0-beta",
7
+ "version": "v0.26.1-beta",
8
8
  "description": "Lago JavaScript API Client",
9
9
  "repository": {
10
10
  "type": "git",
@@ -29,12 +29,12 @@
29
29
  "exports": {
30
30
  ".": {
31
31
  "import": {
32
- "default": "./esm/mod.js",
33
- "types": "./types/mod.d.ts"
32
+ "types": "./types/mod.d.ts",
33
+ "default": "./esm/mod.js"
34
34
  },
35
35
  "require": {
36
- "default": "./script/mod.js",
37
- "types": "./types/mod.d.ts"
36
+ "types": "./types/mod.d.ts",
37
+ "default": "./script/mod.js"
38
38
  }
39
39
  }
40
40
  },
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@types/node": "^18.11.9",
46
46
  "chalk": "^4.1.2",
47
- "@deno/shim-deno": "~0.11.0",
47
+ "@deno/shim-deno": "~0.12.0",
48
48
  "urlpattern-polyfill": "^6.0.2"
49
49
  }
50
50
  }
@@ -152,7 +152,7 @@ class HttpClient {
152
152
  exports.HttpClient = HttpClient;
153
153
  /**
154
154
  * @title Lago API documentation
155
- * @version 0.23.0-beta
155
+ * @version 0.26.0-beta
156
156
  * @baseUrl https://api.getlago.com/api/v1
157
157
  * @externalDocs https://github.com/getlago
158
158
  * @contact <tech@getlago.com>
@@ -960,6 +960,24 @@ class Api extends HttpClient {
960
960
  ...params,
961
961
  }),
962
962
  };
963
+ fees = {
964
+ /**
965
+ * @description Return a single fee
966
+ *
967
+ * @tags fees
968
+ * @name FindFee
969
+ * @summary Find fee by ID
970
+ * @request GET:/fees/{id}
971
+ * @secure
972
+ */
973
+ findFee: (id, params = {}) => this.request({
974
+ path: `/fees/${id}`,
975
+ method: "GET",
976
+ secure: true,
977
+ format: "json",
978
+ ...params,
979
+ }),
980
+ };
963
981
  wallets = {
964
982
  /**
965
983
  * @description Create a new wallet