@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.
- package/entitlements/interfaces.d.ts +4 -18
- package/index.js +1 -1
- package/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* API response for user entitlements data.
|
|
3
|
-
* Including all user permissions
|
|
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]:
|
|
7
|
+
[permissionKey: string]: Entitlement;
|
|
9
8
|
};
|
|
10
9
|
features: {
|
|
11
|
-
[featureKey: string]:
|
|
12
|
-
};
|
|
13
|
-
featureBundles: {
|
|
14
|
-
[featuresBundleKey: string]: FeaturesBundleEntitlement;
|
|
10
|
+
[featureKey: string]: Entitlement;
|
|
15
11
|
};
|
|
16
12
|
}
|
|
17
|
-
export interface
|
|
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
package/node/index.js
CHANGED