lago-javascript-client 1.33.1 → 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.
@@ -148,7 +148,7 @@ export class HttpClient {
148
148
  }
149
149
  /**
150
150
  * @title Lago API documentation
151
- * @version 1.31.0
151
+ * @version 1.33.3
152
152
  * @license AGPLv3
153
153
  * @baseUrl https://api.getlago.com/api/v1
154
154
  * @externalDocs https://github.com/getlago
@@ -1803,7 +1803,7 @@ export class Api extends HttpClient {
1803
1803
  ...params,
1804
1804
  }),
1805
1805
  /**
1806
- * @description This endpoint updates an existing entitlement by modifying privilege values. Notice that the update is partial. All new privileges or features are added. If there is already a value, it's overridden. All features and privileges not part of the payload are ignored. To remove privileges or features, use the DELETE endpoints. All privileges must be valid for the feature.
1806
+ * @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.
1807
1807
  *
1808
1808
  * @tags entitlements
1809
1809
  * @name UpdateEntitlement
@@ -1931,9 +1931,10 @@ export class Api extends HttpClient {
1931
1931
  * @request PUT:/subscriptions/{external_id}
1932
1932
  * @secure
1933
1933
  */
1934
- updateSubscription: (externalId, data, params = {}) => this.request({
1934
+ updateSubscription: (externalId, data, query, params = {}) => this.request({
1935
1935
  path: `/subscriptions/${externalId}`,
1936
1936
  method: "PUT",
1937
+ query: query,
1937
1938
  body: data,
1938
1939
  secure: true,
1939
1940
  type: ContentType.Json,
@@ -2092,7 +2093,7 @@ export class Api extends HttpClient {
2092
2093
  ...params,
2093
2094
  }),
2094
2095
  /**
2095
- * @description This endpoint allows partial updates to subscription entitlements. New entitlements are added, provided values are overridden, but entitlements not included in the payload are ignored.
2096
+ * @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.
2096
2097
  *
2097
2098
  * @tags entitlements
2098
2099
  * @name UpdateSubscriptionEntitlements
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./script/mod.js",
4
4
  "name": "lago-javascript-client",
5
5
  "sideEffects": false,
6
- "version": "v1.33.1",
6
+ "version": "v1.33.3",
7
7
  "description": "Lago JavaScript API Client",
8
8
  "repository": {
9
9
  "type": "git",