@frontegg/rest-api
Advanced tools
Comparing version 3.0.130 to 3.0.131
/** | ||
* API response for user entitlements data. | ||
* Including all user permissions, features and bundles data. | ||
* Including also isGranted and isEntitled for permissions and features. | ||
* Including all user granted permissions and features data. | ||
*/ | ||
export interface UserEntitlementsResponse { | ||
permissions: { | ||
[permissionKey: string]: PermissionEntitlement; | ||
[permissionKey: string]: Entitlement; | ||
}; | ||
features: { | ||
[featureKey: string]: FeatureEntitlement; | ||
[featureKey: string]: Entitlement; | ||
}; | ||
featureBundles: { | ||
[featuresBundleKey: string]: FeaturesBundleEntitlement; | ||
}; | ||
} | ||
export interface PermissionEntitlement { | ||
export interface Entitlement { | ||
isEntitled: boolean; | ||
notEntitledReason?: NotEntitledReason; | ||
} | ||
export interface FeatureEntitlement { | ||
isEntitled: boolean; | ||
isExpired: boolean; | ||
expirationDate?: Date; | ||
notEntitledReason?: NotEntitledReason; | ||
} | ||
export interface FeaturesBundleEntitlement { | ||
isExpired: boolean; | ||
expirationDate?: Date; | ||
} | ||
export declare enum NotEntitledReason { | ||
@@ -32,0 +18,0 @@ MISSING_PERMISSION = "MISSING_PERMISSION", |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.130 | ||
/** @license Frontegg v3.0.131 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,2 +0,2 @@ | ||
/** @license Frontegg v3.0.130 | ||
/** @license Frontegg v3.0.131 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@frontegg/rest-api", | ||
"version": "3.0.130", | ||
"version": "3.0.131", | ||
"main": "./node/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
348289
9686