lago-javascript-client 1.28.1 → 1.30.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 +531 -89
- package/esm/openapi/client.js +122 -2
- package/package.json +1 -1
- package/script/openapi/client.d.ts +531 -89
- package/script/openapi/client.js +122 -2
package/script/openapi/client.js
CHANGED
|
@@ -231,6 +231,41 @@ class Api extends HttpClient {
|
|
|
231
231
|
...params,
|
|
232
232
|
}),
|
|
233
233
|
};
|
|
234
|
+
activityLogs = {
|
|
235
|
+
/**
|
|
236
|
+
* @description This endpoint retrieves all existing activity logs that represent actions performed on application resources.
|
|
237
|
+
*
|
|
238
|
+
* @tags activity_logs
|
|
239
|
+
* @name FindAllActivityLogs
|
|
240
|
+
* @summary List all activity logs
|
|
241
|
+
* @request GET:/activity_logs
|
|
242
|
+
* @secure
|
|
243
|
+
*/
|
|
244
|
+
findAllActivityLogs: (query, params = {}) => this.request({
|
|
245
|
+
path: `/activity_logs`,
|
|
246
|
+
method: "GET",
|
|
247
|
+
query: query,
|
|
248
|
+
secure: true,
|
|
249
|
+
format: "json",
|
|
250
|
+
...params,
|
|
251
|
+
}),
|
|
252
|
+
/**
|
|
253
|
+
* @description This endpoint retrieves an existing activity log that represents an action performed on some resource. The activity log is identified by its unique activity_id.
|
|
254
|
+
*
|
|
255
|
+
* @tags activity_logs
|
|
256
|
+
* @name FindActivityLog
|
|
257
|
+
* @summary Retrieve an activity log
|
|
258
|
+
* @request GET:/activity_logs/{activity_id}
|
|
259
|
+
* @secure
|
|
260
|
+
*/
|
|
261
|
+
findActivityLog: (activityId, params = {}) => this.request({
|
|
262
|
+
path: `/activity_logs/${activityId}`,
|
|
263
|
+
method: "GET",
|
|
264
|
+
secure: true,
|
|
265
|
+
format: "json",
|
|
266
|
+
...params,
|
|
267
|
+
}),
|
|
268
|
+
};
|
|
234
269
|
addOns = {
|
|
235
270
|
/**
|
|
236
271
|
* @description This endpoint is used to create an add-on that can be then attached to a one-off invoice.
|
|
@@ -1556,9 +1591,10 @@ class Api extends HttpClient {
|
|
|
1556
1591
|
* @request GET:/subscriptions/{external_id}
|
|
1557
1592
|
* @secure
|
|
1558
1593
|
*/
|
|
1559
|
-
findSubscription: (externalId, params = {}) => this.request({
|
|
1594
|
+
findSubscription: (externalId, query, params = {}) => this.request({
|
|
1560
1595
|
path: `/subscriptions/${externalId}`,
|
|
1561
1596
|
method: "GET",
|
|
1597
|
+
query: query,
|
|
1562
1598
|
secure: true,
|
|
1563
1599
|
format: "json",
|
|
1564
1600
|
...params,
|
|
@@ -1603,7 +1639,7 @@ class Api extends HttpClient {
|
|
|
1603
1639
|
*
|
|
1604
1640
|
* @tags subscriptions
|
|
1605
1641
|
* @name GetSubscriptionLifetimeUsage
|
|
1606
|
-
* @summary
|
|
1642
|
+
* @summary Retrieve subscription lifetime usage
|
|
1607
1643
|
* @request GET:/subscriptions/{external_id}/lifetime_usage
|
|
1608
1644
|
* @secure
|
|
1609
1645
|
*/
|
|
@@ -1632,6 +1668,90 @@ class Api extends HttpClient {
|
|
|
1632
1668
|
format: "json",
|
|
1633
1669
|
...params,
|
|
1634
1670
|
}),
|
|
1671
|
+
/**
|
|
1672
|
+
* @description This endpoint enables the retrieval of all alerts for a subscription.
|
|
1673
|
+
*
|
|
1674
|
+
* @tags subscriptions
|
|
1675
|
+
* @name GetSubscriptionAlerts
|
|
1676
|
+
* @summary List subscription alerts
|
|
1677
|
+
* @request GET:/subscriptions/{external_id}/alerts
|
|
1678
|
+
* @secure
|
|
1679
|
+
*/
|
|
1680
|
+
getSubscriptionAlerts: (externalId, params = {}) => this.request({
|
|
1681
|
+
path: `/subscriptions/${externalId}/alerts`,
|
|
1682
|
+
method: "GET",
|
|
1683
|
+
secure: true,
|
|
1684
|
+
format: "json",
|
|
1685
|
+
...params,
|
|
1686
|
+
}),
|
|
1687
|
+
/**
|
|
1688
|
+
* @description This endpoint allows you to create a new alert for a subscription.
|
|
1689
|
+
*
|
|
1690
|
+
* @tags subscriptions
|
|
1691
|
+
* @name CreateSubscriptionAlert
|
|
1692
|
+
* @summary Create a subscription alert
|
|
1693
|
+
* @request POST:/subscriptions/{external_id}/alerts
|
|
1694
|
+
* @secure
|
|
1695
|
+
*/
|
|
1696
|
+
createSubscriptionAlert: (externalId, data, params = {}) => this.request({
|
|
1697
|
+
path: `/subscriptions/${externalId}/alerts`,
|
|
1698
|
+
method: "POST",
|
|
1699
|
+
body: data,
|
|
1700
|
+
secure: true,
|
|
1701
|
+
type: ContentType.Json,
|
|
1702
|
+
format: "json",
|
|
1703
|
+
...params,
|
|
1704
|
+
}),
|
|
1705
|
+
/**
|
|
1706
|
+
* @description This endpoint enables the retrieval of a specific alert for a subscription.
|
|
1707
|
+
*
|
|
1708
|
+
* @tags subscriptions
|
|
1709
|
+
* @name GetSubscriptionAlert
|
|
1710
|
+
* @summary Retrieve a subscription alert
|
|
1711
|
+
* @request GET:/subscriptions/{external_id}/alerts/{code}
|
|
1712
|
+
* @secure
|
|
1713
|
+
*/
|
|
1714
|
+
getSubscriptionAlert: (externalId, code, params = {}) => this.request({
|
|
1715
|
+
path: `/subscriptions/${externalId}/alerts/${code}`,
|
|
1716
|
+
method: "GET",
|
|
1717
|
+
secure: true,
|
|
1718
|
+
format: "json",
|
|
1719
|
+
...params,
|
|
1720
|
+
}),
|
|
1721
|
+
/**
|
|
1722
|
+
* @description This endpoint allows you to update an existing alert for a subscription.
|
|
1723
|
+
*
|
|
1724
|
+
* @tags subscriptions
|
|
1725
|
+
* @name UpdateSubscriptionAlert
|
|
1726
|
+
* @summary Update a subscription alert
|
|
1727
|
+
* @request PUT:/subscriptions/{external_id}/alerts/{code}
|
|
1728
|
+
* @secure
|
|
1729
|
+
*/
|
|
1730
|
+
updateSubscriptionAlert: (externalId, code, data, params = {}) => this.request({
|
|
1731
|
+
path: `/subscriptions/${externalId}/alerts/${code}`,
|
|
1732
|
+
method: "PUT",
|
|
1733
|
+
body: data,
|
|
1734
|
+
secure: true,
|
|
1735
|
+
type: ContentType.Json,
|
|
1736
|
+
format: "json",
|
|
1737
|
+
...params,
|
|
1738
|
+
}),
|
|
1739
|
+
/**
|
|
1740
|
+
* @description This endpoint allows you to delete an existing alert for a subscription.
|
|
1741
|
+
*
|
|
1742
|
+
* @tags subscriptions
|
|
1743
|
+
* @name DeleteSubscriptionAlert
|
|
1744
|
+
* @summary Delete a subscription alert
|
|
1745
|
+
* @request DELETE:/subscriptions/{external_id}/alerts/{code}
|
|
1746
|
+
* @secure
|
|
1747
|
+
*/
|
|
1748
|
+
deleteSubscriptionAlert: (externalId, code, params = {}) => this.request({
|
|
1749
|
+
path: `/subscriptions/${externalId}/alerts/${code}`,
|
|
1750
|
+
method: "DELETE",
|
|
1751
|
+
secure: true,
|
|
1752
|
+
format: "json",
|
|
1753
|
+
...params,
|
|
1754
|
+
}),
|
|
1635
1755
|
};
|
|
1636
1756
|
taxes = {
|
|
1637
1757
|
/**
|