lago-javascript-client 1.33.0 → 1.33.3
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 +196 -120
- package/esm/openapi/client.js +6 -5
- package/package.json +1 -1
- package/script/openapi/client.d.ts +196 -120
- package/script/openapi/client.js +6 -5
package/script/openapi/client.js
CHANGED
|
@@ -152,7 +152,7 @@ class HttpClient {
|
|
|
152
152
|
exports.HttpClient = HttpClient;
|
|
153
153
|
/**
|
|
154
154
|
* @title Lago API documentation
|
|
155
|
-
* @version 1.
|
|
155
|
+
* @version 1.33.3
|
|
156
156
|
* @license AGPLv3
|
|
157
157
|
* @baseUrl https://api.getlago.com/api/v1
|
|
158
158
|
* @externalDocs https://github.com/getlago
|
|
@@ -1773,7 +1773,7 @@ class Api extends HttpClient {
|
|
|
1773
1773
|
...params,
|
|
1774
1774
|
}),
|
|
1775
1775
|
/**
|
|
1776
|
-
* @description This endpoint creates
|
|
1776
|
+
* @description This endpoint creates new entitlements by adding features to a plan. Note that all existing entitlements will be deleted and replaced by the ones provided. To add a new entitlement without removing the existing ones, use PATCH. The feature must exist and all privileges must be valid for the feature.
|
|
1777
1777
|
*
|
|
1778
1778
|
* @tags entitlements
|
|
1779
1779
|
* @name CreateEntitlement
|
|
@@ -1807,7 +1807,7 @@ class Api extends HttpClient {
|
|
|
1807
1807
|
...params,
|
|
1808
1808
|
}),
|
|
1809
1809
|
/**
|
|
1810
|
-
* @description This
|
|
1810
|
+
* @description This accepts a list of entitlements to update. If the feature isn't part of the plan yet, it's added with all the privileges from the payload. If the feature is already part of the plan, the privilege and values are updated or added. All privileges must be valid for the feature. All features and privileges not part of the payload are left untouched. To remove privileges or features, use the DELETE endpoints.
|
|
1811
1811
|
*
|
|
1812
1812
|
* @tags entitlements
|
|
1813
1813
|
* @name UpdateEntitlement
|
|
@@ -1935,9 +1935,10 @@ class Api extends HttpClient {
|
|
|
1935
1935
|
* @request PUT:/subscriptions/{external_id}
|
|
1936
1936
|
* @secure
|
|
1937
1937
|
*/
|
|
1938
|
-
updateSubscription: (externalId, data, params = {}) => this.request({
|
|
1938
|
+
updateSubscription: (externalId, data, query, params = {}) => this.request({
|
|
1939
1939
|
path: `/subscriptions/${externalId}`,
|
|
1940
1940
|
method: "PUT",
|
|
1941
|
+
query: query,
|
|
1941
1942
|
body: data,
|
|
1942
1943
|
secure: true,
|
|
1943
1944
|
type: ContentType.Json,
|
|
@@ -2096,7 +2097,7 @@ class Api extends HttpClient {
|
|
|
2096
2097
|
...params,
|
|
2097
2098
|
}),
|
|
2098
2099
|
/**
|
|
2099
|
-
* @description This
|
|
2100
|
+
* @description This accepts a list of entitlements to update. If the feature isn't part of the subscription yet, it's added with all the privileges from the payload. If the feature is already part of the subscription (via plan or via override), the privilege and values are updated or added. All privileges must be valid for the feature. All features and privileges not part of the payload are left untouched. To remove privileges or features, use the DELETE endpoints.
|
|
2100
2101
|
*
|
|
2101
2102
|
* @tags entitlements
|
|
2102
2103
|
* @name UpdateSubscriptionEntitlements
|