lago-javascript-client 1.5.0 → 1.7.0
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/esm/openapi/client.d.ts +194 -246
- package/esm/openapi/client.js +36 -21
- package/package.json +1 -1
- package/script/openapi/client.d.ts +194 -246
- package/script/openapi/client.js +36 -21
package/script/openapi/client.js
CHANGED
|
@@ -19,7 +19,7 @@ var ContentType;
|
|
|
19
19
|
ContentType["Text"] = "text/plain";
|
|
20
20
|
})(ContentType = exports.ContentType || (exports.ContentType = {}));
|
|
21
21
|
class HttpClient {
|
|
22
|
-
baseUrl = "https://
|
|
22
|
+
baseUrl = "https://{region}.getlago.com/api/v1";
|
|
23
23
|
securityData = null;
|
|
24
24
|
securityWorker;
|
|
25
25
|
abortControllers = new Map();
|
|
@@ -152,9 +152,9 @@ class HttpClient {
|
|
|
152
152
|
exports.HttpClient = HttpClient;
|
|
153
153
|
/**
|
|
154
154
|
* @title Lago API documentation
|
|
155
|
-
* @version 1.
|
|
155
|
+
* @version 1.7.0
|
|
156
156
|
* @license AGPLv3
|
|
157
|
-
* @baseUrl https://
|
|
157
|
+
* @baseUrl https://{region}.getlago.com/api/v1
|
|
158
158
|
* @externalDocs https://github.com/getlago
|
|
159
159
|
* @contact <tech@getlago.com>
|
|
160
160
|
*
|
|
@@ -317,6 +317,23 @@ class Api extends HttpClient {
|
|
|
317
317
|
format: "json",
|
|
318
318
|
...params,
|
|
319
319
|
}),
|
|
320
|
+
/**
|
|
321
|
+
* @description Overdue balance is the total amount associated with overdue invoices (invoices with pending or failed payments which are past their due dates).
|
|
322
|
+
*
|
|
323
|
+
* @tags analytics
|
|
324
|
+
* @name FindAllOverdueBalances
|
|
325
|
+
* @summary List overdue balance
|
|
326
|
+
* @request GET:/analytics/overdue_balance
|
|
327
|
+
* @secure
|
|
328
|
+
*/
|
|
329
|
+
findAllOverdueBalances: (query, params = {}) => this.request({
|
|
330
|
+
path: `/analytics/overdue_balance`,
|
|
331
|
+
method: "GET",
|
|
332
|
+
query: query,
|
|
333
|
+
secure: true,
|
|
334
|
+
format: "json",
|
|
335
|
+
...params,
|
|
336
|
+
}),
|
|
320
337
|
};
|
|
321
338
|
appliedCoupons = {
|
|
322
339
|
/**
|
|
@@ -441,24 +458,6 @@ class Api extends HttpClient {
|
|
|
441
458
|
format: "json",
|
|
442
459
|
...params,
|
|
443
460
|
}),
|
|
444
|
-
/**
|
|
445
|
-
* @description This endpoint retrieves all groups for a billable metric.
|
|
446
|
-
*
|
|
447
|
-
* @tags billable_metrics
|
|
448
|
-
* @name FindAllBillableMetricGroups
|
|
449
|
-
* @summary Find a billable metric's groups
|
|
450
|
-
* @request GET:/billable_metrics/{code}/groups
|
|
451
|
-
* @deprecated
|
|
452
|
-
* @secure
|
|
453
|
-
*/
|
|
454
|
-
findAllBillableMetricGroups: (code, query, params = {}) => this.request({
|
|
455
|
-
path: `/billable_metrics/${code}/groups`,
|
|
456
|
-
method: "GET",
|
|
457
|
-
query: query,
|
|
458
|
-
secure: true,
|
|
459
|
-
format: "json",
|
|
460
|
-
...params,
|
|
461
|
-
}),
|
|
462
461
|
};
|
|
463
462
|
coupons = {
|
|
464
463
|
/**
|
|
@@ -942,6 +941,22 @@ class Api extends HttpClient {
|
|
|
942
941
|
format: "json",
|
|
943
942
|
...params,
|
|
944
943
|
}),
|
|
944
|
+
/**
|
|
945
|
+
* @description This endpoint is used for deleting a specific fee that has not yet been invoiced
|
|
946
|
+
*
|
|
947
|
+
* @tags fees
|
|
948
|
+
* @name DeleteFee
|
|
949
|
+
* @summary Delete a fee
|
|
950
|
+
* @request DELETE:/fees/{lago_id}
|
|
951
|
+
* @secure
|
|
952
|
+
*/
|
|
953
|
+
deleteFee: (lagoId, params = {}) => this.request({
|
|
954
|
+
path: `/fees/${lagoId}`,
|
|
955
|
+
method: "DELETE",
|
|
956
|
+
secure: true,
|
|
957
|
+
format: "json",
|
|
958
|
+
...params,
|
|
959
|
+
}),
|
|
945
960
|
};
|
|
946
961
|
invoices = {
|
|
947
962
|
/**
|