@parra/parra-js-sdk 0.3.410 → 0.3.411

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.
@@ -918,6 +918,9 @@ export interface CreateProductEntitlementRequestBody {
918
918
  entitlement_id: string;
919
919
  consumable_quantity?: number | null;
920
920
  }
921
+ export interface UpdateProductEntitlementRequestBody {
922
+ consumable_quantity?: number | null;
923
+ }
921
924
  export interface AppFaq {
922
925
  id: string;
923
926
  created_at: string;
@@ -4251,6 +4254,7 @@ declare class ParraAPI {
4251
4254
  updateProductById: (tenant_id: string, product_id: string, body?: UpdateProductRequestBody, options?: Options) => Promise<Product>;
4252
4255
  deleteProductById: (tenant_id: string, product_id: string, options?: Options) => Promise<Response>;
4253
4256
  addEntitlementToProduct: (tenant_id: string, product_id: string, body: CreateProductEntitlementRequestBody, options?: Options) => Promise<ProductEntitlement>;
4257
+ updateProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, body?: UpdateProductEntitlementRequestBody, options?: Options) => Promise<ProductEntitlement>;
4254
4258
  deleteProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, options?: Options) => Promise<Response>;
4255
4259
  listAppFaqs: (tenant_id: string, application_id: string, query?: {
4256
4260
  app_area_id?: string;
package/dist/ParraAPI.js CHANGED
@@ -678,6 +678,12 @@ var ParraAPI = /** @class */ (function () {
678
678
  "content-type": "application/json",
679
679
  } }, options));
680
680
  };
681
+ this.updateProductEntitlement = function (tenant_id, product_id, product_entitlement_id, body, options) {
682
+ if (options === void 0) { options = {}; }
683
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements/").concat(product_entitlement_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
684
+ "content-type": "application/json",
685
+ } }, options));
686
+ };
681
687
  this.deleteProductEntitlement = function (tenant_id, product_id, product_entitlement_id, options) {
682
688
  if (options === void 0) { options = {}; }
683
689
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements/").concat(product_entitlement_id), __assign({ method: "delete" }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.410",
3
+ "version": "0.3.411",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",