lago-javascript-client 1.33.0 → 1.33.1

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.
@@ -9081,7 +9081,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9081
9081
  */
9082
9082
  destroyPlan: (code: string, params?: RequestParams) => Promise<HttpResponse<Plan, ApiErrorUnauthorized | ApiErrorNotFound>>;
9083
9083
  /**
9084
- * @description This endpoint creates a new entitlement by adding a feature to a plan. The feature must exist and all privileges must be valid for the feature.
9084
+ * @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.
9085
9085
  *
9086
9086
  * @tags entitlements
9087
9087
  * @name CreateEntitlement
@@ -9089,7 +9089,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9089
9089
  * @request POST:/plans/{code}/entitlements
9090
9090
  * @secure
9091
9091
  */
9092
- createEntitlement: (code: string, data: EntitlementUpdateInput, params?: RequestParams) => Promise<HttpResponse<PlanEntitlement, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorBadRequest | ApiErrorNotFound>>;
9092
+ createEntitlement: (code: string, data: EntitlementUpdateInput, params?: RequestParams) => Promise<HttpResponse<PlanEntitlements, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorBadRequest | ApiErrorNotFound>>;
9093
9093
  /**
9094
9094
  * @description This endpoint retrieves all entitlements for a specific plan.
9095
9095
  *
@@ -9101,7 +9101,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9101
9101
  */
9102
9102
  findAllEntitlements: (code: string, params?: RequestParams) => Promise<HttpResponse<PlanEntitlements, ApiErrorUnauthorized | ApiErrorNotFound>>;
9103
9103
  /**
9104
- * @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 feature and privileges not part of the payload are ignored. To remove privileges or feature, use the delete endpoints. All privileges must be valid for the feature.
9104
+ * @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.
9105
9105
  *
9106
9106
  * @tags entitlements
9107
9107
  * @name UpdateEntitlement
@@ -9109,7 +9109,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9109
9109
  * @request PATCH:/plans/{code}/entitlements
9110
9110
  * @secure
9111
9111
  */
9112
- updateEntitlement: (code: string, data: EntitlementUpdateInput, params?: RequestParams) => Promise<HttpResponse<PlanEntitlement, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorBadRequest | ApiErrorNotFound>>;
9112
+ updateEntitlement: (code: string, data: EntitlementUpdateInput, params?: RequestParams) => Promise<HttpResponse<PlanEntitlements, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorBadRequest | ApiErrorNotFound>>;
9113
9113
  /**
9114
9114
  * @description This endpoint retrieves a specific entitlement for a plan.
9115
9115
  *
@@ -1769,7 +1769,7 @@ export class Api extends HttpClient {
1769
1769
  ...params,
1770
1770
  }),
1771
1771
  /**
1772
- * @description This endpoint creates a new entitlement by adding a feature to a plan. The feature must exist and all privileges must be valid for the feature.
1772
+ * @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.
1773
1773
  *
1774
1774
  * @tags entitlements
1775
1775
  * @name CreateEntitlement
@@ -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 feature and privileges not part of the payload are ignored. To remove privileges or feature, use the delete endpoints. All privileges must be valid for the feature.
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.
1807
1807
  *
1808
1808
  * @tags entitlements
1809
1809
  * @name UpdateEntitlement
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.0",
6
+ "version": "v1.33.1",
7
7
  "description": "Lago JavaScript API Client",
8
8
  "repository": {
9
9
  "type": "git",
@@ -9081,7 +9081,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9081
9081
  */
9082
9082
  destroyPlan: (code: string, params?: RequestParams) => Promise<HttpResponse<Plan, ApiErrorUnauthorized | ApiErrorNotFound>>;
9083
9083
  /**
9084
- * @description This endpoint creates a new entitlement by adding a feature to a plan. The feature must exist and all privileges must be valid for the feature.
9084
+ * @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.
9085
9085
  *
9086
9086
  * @tags entitlements
9087
9087
  * @name CreateEntitlement
@@ -9089,7 +9089,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9089
9089
  * @request POST:/plans/{code}/entitlements
9090
9090
  * @secure
9091
9091
  */
9092
- createEntitlement: (code: string, data: EntitlementUpdateInput, params?: RequestParams) => Promise<HttpResponse<PlanEntitlement, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorBadRequest | ApiErrorNotFound>>;
9092
+ createEntitlement: (code: string, data: EntitlementUpdateInput, params?: RequestParams) => Promise<HttpResponse<PlanEntitlements, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorBadRequest | ApiErrorNotFound>>;
9093
9093
  /**
9094
9094
  * @description This endpoint retrieves all entitlements for a specific plan.
9095
9095
  *
@@ -9101,7 +9101,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9101
9101
  */
9102
9102
  findAllEntitlements: (code: string, params?: RequestParams) => Promise<HttpResponse<PlanEntitlements, ApiErrorUnauthorized | ApiErrorNotFound>>;
9103
9103
  /**
9104
- * @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 feature and privileges not part of the payload are ignored. To remove privileges or feature, use the delete endpoints. All privileges must be valid for the feature.
9104
+ * @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.
9105
9105
  *
9106
9106
  * @tags entitlements
9107
9107
  * @name UpdateEntitlement
@@ -9109,7 +9109,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9109
9109
  * @request PATCH:/plans/{code}/entitlements
9110
9110
  * @secure
9111
9111
  */
9112
- updateEntitlement: (code: string, data: EntitlementUpdateInput, params?: RequestParams) => Promise<HttpResponse<PlanEntitlement, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorBadRequest | ApiErrorNotFound>>;
9112
+ updateEntitlement: (code: string, data: EntitlementUpdateInput, params?: RequestParams) => Promise<HttpResponse<PlanEntitlements, ApiErrorUnauthorized | ApiErrorUnprocessableEntity | ApiErrorBadRequest | ApiErrorNotFound>>;
9113
9113
  /**
9114
9114
  * @description This endpoint retrieves a specific entitlement for a plan.
9115
9115
  *
@@ -1773,7 +1773,7 @@ class Api extends HttpClient {
1773
1773
  ...params,
1774
1774
  }),
1775
1775
  /**
1776
- * @description This endpoint creates a new entitlement by adding a feature to a plan. The feature must exist and all privileges must be valid for the feature.
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 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 feature and privileges not part of the payload are ignored. To remove privileges or feature, use the delete endpoints. All privileges must be valid for the feature.
1810
+ * @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.
1811
1811
  *
1812
1812
  * @tags entitlements
1813
1813
  * @name UpdateEntitlement