@frontegg/rest-api 3.0.130 → 3.0.131

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.
@@ -1,33 +1,19 @@
1
1
  /**
2
2
  * API response for user entitlements data.
3
- * Including all user permissions, features and bundles data.
4
- * Including also isGranted and isEntitled for permissions and features.
3
+ * Including all user granted permissions and features data.
5
4
  */
6
5
  export interface UserEntitlementsResponse {
7
6
  permissions: {
8
- [permissionKey: string]: PermissionEntitlement;
7
+ [permissionKey: string]: Entitlement;
9
8
  };
10
9
  features: {
11
- [featureKey: string]: FeatureEntitlement;
12
- };
13
- featureBundles: {
14
- [featuresBundleKey: string]: FeaturesBundleEntitlement;
10
+ [featureKey: string]: Entitlement;
15
11
  };
16
12
  }
17
- export interface PermissionEntitlement {
13
+ export interface Entitlement {
18
14
  isEntitled: boolean;
19
15
  notEntitledReason?: NotEntitledReason;
20
16
  }
21
- export interface FeatureEntitlement {
22
- isEntitled: boolean;
23
- isExpired: boolean;
24
- expirationDate?: Date;
25
- notEntitledReason?: NotEntitledReason;
26
- }
27
- export interface FeaturesBundleEntitlement {
28
- isExpired: boolean;
29
- expirationDate?: Date;
30
- }
31
17
  export declare enum NotEntitledReason {
32
18
  MISSING_PERMISSION = "MISSING_PERMISSION",
33
19
  MISSING_FEATURE = "MISSING_FEATURE",
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.130
1
+ /** @license Frontegg v3.0.131
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.130
1
+ /** @license Frontegg v3.0.131
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.130",
3
+ "version": "3.0.131",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {