@frontegg/rest-api 3.0.134 → 3.0.135
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/index.d.ts +3 -5
- package/entitlements/interfaces.d.ts +3 -18
- package/entitlements/interfaces.js +1 -7
- package/index.js +1 -1
- package/node/entitlements/interfaces.js +1 -10
- package/node/index.js +1 -1
- package/package.json +1 -1
package/entitlements/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntitlementsResponse } from './interfaces';
|
|
2
2
|
/**
|
|
3
|
-
* Load
|
|
4
|
-
* Including all user permissions, features and bundles data.
|
|
5
|
-
* Including also isGranted and isEntitled for permissions and features.
|
|
3
|
+
* Load entitlements on/off values map by keys
|
|
6
4
|
*
|
|
7
5
|
* ``authorized user``
|
|
8
6
|
*/
|
|
9
|
-
export declare function loadEntitlements(): Promise<
|
|
7
|
+
export declare function loadEntitlements(): Promise<EntitlementsResponse>;
|
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Including all user granted permissions and features data.
|
|
2
|
+
* Load entitlements on/off values map by keys API response
|
|
4
3
|
*/
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
[permissionKey: string]: Entitlement;
|
|
8
|
-
};
|
|
9
|
-
features: {
|
|
10
|
-
[featureKey: string]: Entitlement;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface Entitlement {
|
|
14
|
-
isEntitled: boolean;
|
|
15
|
-
notEntitledReason?: NotEntitledReason;
|
|
16
|
-
}
|
|
17
|
-
export declare enum NotEntitledReason {
|
|
18
|
-
MISSING_PERMISSION = "MISSING_PERMISSION",
|
|
19
|
-
MISSING_FEATURE = "MISSING_FEATURE",
|
|
20
|
-
BUNDLE_EXPIRED = "BUNDLE_EXPIRED"
|
|
4
|
+
export interface EntitlementsResponse {
|
|
5
|
+
[key: string]: boolean;
|
|
21
6
|
}
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
(function (NotEntitledReason) {
|
|
4
|
-
NotEntitledReason["MISSING_PERMISSION"] = "MISSING_PERMISSION";
|
|
5
|
-
NotEntitledReason["MISSING_FEATURE"] = "MISSING_FEATURE";
|
|
6
|
-
NotEntitledReason["BUNDLE_EXPIRED"] = "BUNDLE_EXPIRED";
|
|
7
|
-
})(NotEntitledReason || (NotEntitledReason = {}));
|
|
1
|
+
export {};
|
package/index.js
CHANGED
|
@@ -2,13 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NotEntitledReason = void 0;
|
|
7
|
-
let NotEntitledReason;
|
|
8
|
-
exports.NotEntitledReason = NotEntitledReason;
|
|
9
|
-
|
|
10
|
-
(function (NotEntitledReason) {
|
|
11
|
-
NotEntitledReason["MISSING_PERMISSION"] = "MISSING_PERMISSION";
|
|
12
|
-
NotEntitledReason["MISSING_FEATURE"] = "MISSING_FEATURE";
|
|
13
|
-
NotEntitledReason["BUNDLE_EXPIRED"] = "BUNDLE_EXPIRED";
|
|
14
|
-
})(NotEntitledReason || (exports.NotEntitledReason = NotEntitledReason = {}));
|
|
5
|
+
});
|
package/node/index.js
CHANGED