@parra/parra-js-sdk 0.3.409 → 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.
- package/dist/ParraAPI.d.ts +8 -0
- package/dist/ParraAPI.js +6 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -864,6 +864,8 @@ export interface ProductEntitlementProductStub {
|
|
864
864
|
key: string;
|
865
865
|
product_id: string;
|
866
866
|
entitlement_id: string;
|
867
|
+
is_consumable: boolean;
|
868
|
+
is_free: boolean;
|
867
869
|
consumable_quantity?: number | null;
|
868
870
|
}
|
869
871
|
export interface Entitlement {
|
@@ -896,6 +898,8 @@ export interface ProductEntitlement {
|
|
896
898
|
key: string;
|
897
899
|
product_id: string;
|
898
900
|
entitlement_id: string;
|
901
|
+
is_consumable: boolean;
|
902
|
+
is_free: boolean;
|
899
903
|
consumable_quantity?: number | null;
|
900
904
|
}
|
901
905
|
export interface Product {
|
@@ -914,6 +918,9 @@ export interface CreateProductEntitlementRequestBody {
|
|
914
918
|
entitlement_id: string;
|
915
919
|
consumable_quantity?: number | null;
|
916
920
|
}
|
921
|
+
export interface UpdateProductEntitlementRequestBody {
|
922
|
+
consumable_quantity?: number | null;
|
923
|
+
}
|
917
924
|
export interface AppFaq {
|
918
925
|
id: string;
|
919
926
|
created_at: string;
|
@@ -4247,6 +4254,7 @@ declare class ParraAPI {
|
|
4247
4254
|
updateProductById: (tenant_id: string, product_id: string, body?: UpdateProductRequestBody, options?: Options) => Promise<Product>;
|
4248
4255
|
deleteProductById: (tenant_id: string, product_id: string, options?: Options) => Promise<Response>;
|
4249
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>;
|
4250
4258
|
deleteProductEntitlement: (tenant_id: string, product_id: string, product_entitlement_id: string, options?: Options) => Promise<Response>;
|
4251
4259
|
listAppFaqs: (tenant_id: string, application_id: string, query?: {
|
4252
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));
|