@frontegg/rest-api
Advanced tools
Comparing version 3.0.134 to 3.0.135
@@ -1,9 +0,7 @@ | ||
import { UserEntitlementsResponse } from './interfaces'; | ||
import { EntitlementsResponse } from './interfaces'; | ||
/** | ||
* Load user entitlements data. | ||
* Including all user permissions, features and bundles data. | ||
* Including also isGranted and isEntitled for permissions and features. | ||
* Load entitlements on/off values map by keys | ||
* | ||
* ``authorized user`` | ||
*/ | ||
export declare function loadEntitlements(): Promise<UserEntitlementsResponse>; | ||
export declare function loadEntitlements(): Promise<EntitlementsResponse>; |
/** | ||
* API response for user entitlements data. | ||
* Including all user granted permissions and features data. | ||
* Load entitlements on/off values map by keys API response | ||
*/ | ||
export interface UserEntitlementsResponse { | ||
permissions: { | ||
[permissionKey: string]: Entitlement; | ||
}; | ||
features: { | ||
[featureKey: string]: Entitlement; | ||
}; | ||
export interface EntitlementsResponse { | ||
[key: string]: boolean; | ||
} | ||
export interface Entitlement { | ||
isEntitled: boolean; | ||
notEntitledReason?: NotEntitledReason; | ||
} | ||
export declare enum NotEntitledReason { | ||
MISSING_PERMISSION = "MISSING_PERMISSION", | ||
MISSING_FEATURE = "MISSING_FEATURE", | ||
BUNDLE_EXPIRED = "BUNDLE_EXPIRED" | ||
} |
@@ -1,7 +0,1 @@ | ||
export let NotEntitledReason; | ||
(function (NotEntitledReason) { | ||
NotEntitledReason["MISSING_PERMISSION"] = "MISSING_PERMISSION"; | ||
NotEntitledReason["MISSING_FEATURE"] = "MISSING_FEATURE"; | ||
NotEntitledReason["BUNDLE_EXPIRED"] = "BUNDLE_EXPIRED"; | ||
})(NotEntitledReason || (NotEntitledReason = {})); | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.134 | ||
/** @license Frontegg v3.0.135 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -5,11 +5,2 @@ "use strict"; | ||
value: true | ||
}); | ||
exports.NotEntitledReason = void 0; | ||
let NotEntitledReason; | ||
exports.NotEntitledReason = NotEntitledReason; | ||
(function (NotEntitledReason) { | ||
NotEntitledReason["MISSING_PERMISSION"] = "MISSING_PERMISSION"; | ||
NotEntitledReason["MISSING_FEATURE"] = "MISSING_FEATURE"; | ||
NotEntitledReason["BUNDLE_EXPIRED"] = "BUNDLE_EXPIRED"; | ||
})(NotEntitledReason || (exports.NotEntitledReason = NotEntitledReason = {})); | ||
}); |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.134 | ||
/** @license Frontegg v3.0.135 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.0.134", | ||
"version": "3.0.135", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
360265
9950