@parra/parra-js-sdk 0.3.336 → 0.3.337
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 +1 -0
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -3716,6 +3716,7 @@ declare class ParraAPI {
|
|
3716
3716
|
context?: string;
|
3717
3717
|
}, options?: Options) => Promise<AppPaywall>;
|
3718
3718
|
createPurchaseForTenantApplication: (tenant_id: string, application_id: string, body?: CreateAppPurchaseRequestBody, options?: Options) => Promise<AppPurchaseResponseBody>;
|
3719
|
+
listEntitlementsForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<AppEntitlement>>;
|
3719
3720
|
createBillingSource: (tenant_id: string, body: CreateBillingSourceRequestBody, options?: Options) => Promise<BillingSource>;
|
3720
3721
|
listBillingSources: (tenant_id: string, options?: Options) => Promise<Array<BillingSource>>;
|
3721
3722
|
getBillingSourceById: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<BillingSource>;
|
package/dist/ParraAPI.js
CHANGED
@@ -507,6 +507,10 @@ var ParraAPI = /** @class */ (function () {
|
|
507
507
|
"content-type": "application/json",
|
508
508
|
} }, options));
|
509
509
|
};
|
510
|
+
this.listEntitlementsForTenantUserById = function (tenant_id, user_id, options) {
|
511
|
+
if (options === void 0) { options = {}; }
|
512
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements"), __assign({ method: "get" }, options));
|
513
|
+
};
|
510
514
|
this.createBillingSource = function (tenant_id, body, options) {
|
511
515
|
if (options === void 0) { options = {}; }
|
512
516
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|