@parra/parra-js-sdk 0.3.410 → 0.3.412
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/dist/ParraAPI.d.ts +5 -0
- package/dist/ParraAPI.js +6 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -918,6 +918,10 @@ 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
|
+
update_for_all_existing_entitlements?: boolean | null;
|
924
|
+
}
|
921
925
|
export interface AppFaq {
|
922
926
|
id: string;
|
923
927
|
created_at: string;
|
@@ -4251,6 +4255,7 @@ declare class ParraAPI {
|
|
4251
4255
|
updateProductById: (tenant_id: string, product_id: string, body?: UpdateProductRequestBody, options?: Options) => Promise<Product>;
|
4252
4256
|
deleteProductById: (tenant_id: string, product_id: string, options?: Options) => Promise<Response>;
|
4253
4257
|
addEntitlementToProduct: (tenant_id: string, product_id: string, body: CreateProductEntitlementRequestBody, options?: Options) => Promise<ProductEntitlement>;
|
4258
|
+
updateProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, body?: UpdateProductEntitlementRequestBody, options?: Options) => Promise<ProductEntitlement>;
|
4254
4259
|
deleteProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, options?: Options) => Promise<Response>;
|
4255
4260
|
listAppFaqs: (tenant_id: string, application_id: string, query?: {
|
4256
4261
|
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));
|