@parra/parra-js-sdk 0.3.374 → 0.3.375
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ParraAPI.d.ts +11 -0
- package/dist/ParraAPI.js +6 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -713,10 +713,15 @@ export interface UserEntitlement {
|
|
713
713
|
entitlement_id: string;
|
714
714
|
key: string;
|
715
715
|
title: string;
|
716
|
+
note?: string | null;
|
716
717
|
}
|
717
718
|
export interface AppPurchaseResponseBody {
|
718
719
|
entitlements: Array<UserEntitlement>;
|
719
720
|
}
|
721
|
+
export interface CreateUserEntitlementRequestBody {
|
722
|
+
entitlement_ids?: Array<string>;
|
723
|
+
note?: string | null;
|
724
|
+
}
|
720
725
|
export declare enum BillingSourceType {
|
721
726
|
stripe = "stripe",
|
722
727
|
paypal = "paypal",
|
@@ -3640,6 +3645,11 @@ export interface UpdateTenantUserRequestBody {
|
|
3640
3645
|
name?: string | null;
|
3641
3646
|
first_name?: string | null;
|
3642
3647
|
last_name?: string | null;
|
3648
|
+
verified?: boolean | null;
|
3649
|
+
is_blocked?: boolean | null;
|
3650
|
+
is_anonymous?: boolean | null;
|
3651
|
+
is_internal?: boolean | null;
|
3652
|
+
is_test?: boolean | null;
|
3643
3653
|
properties?: object | null;
|
3644
3654
|
}
|
3645
3655
|
export interface UserDevice {
|
@@ -4091,6 +4101,7 @@ declare class ParraAPI {
|
|
4091
4101
|
context?: string;
|
4092
4102
|
}, options?: Options) => Promise<AppPaywall>;
|
4093
4103
|
createPurchaseForTenantApplication: (tenant_id: string, application_id: string, body?: CreateAppPurchaseRequestBody, options?: Options) => Promise<AppPurchaseResponseBody>;
|
4104
|
+
createEntitlementForTenantUserById: (tenant_id: string, user_id: string, body: CreateUserEntitlementRequestBody, options?: Options) => Promise<Response>;
|
4094
4105
|
listEntitlementsForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<UserEntitlement>>;
|
4095
4106
|
createBillingSource: (tenant_id: string, body: CreateBillingSourceRequestBody, options?: Options) => Promise<BillingSource>;
|
4096
4107
|
listBillingSources: (tenant_id: string, options?: Options) => Promise<Array<BillingSource>>;
|
package/dist/ParraAPI.js
CHANGED
@@ -535,6 +535,12 @@ var ParraAPI = /** @class */ (function () {
|
|
535
535
|
"content-type": "application/json",
|
536
536
|
} }, options));
|
537
537
|
};
|
538
|
+
this.createEntitlementForTenantUserById = function (tenant_id, user_id, body, options) {
|
539
|
+
if (options === void 0) { options = {}; }
|
540
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
541
|
+
"content-type": "application/json",
|
542
|
+
}, raw: true }, options));
|
543
|
+
};
|
538
544
|
this.listEntitlementsForTenantUserById = function (tenant_id, user_id, options) {
|
539
545
|
if (options === void 0) { options = {}; }
|
540
546
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements"), __assign({ method: "get" }, options));
|