@frontegg/rest-api 3.1.60 → 3.1.62

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.60
1
+ /** @license Frontegg v3.1.62
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.1.60
1
+ /** @license Frontegg v3.1.62
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.
@@ -2,4 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
5
+ });
6
+ exports.PermissionAssignmentTypeEnum = void 0;
7
+ let PermissionAssignmentTypeEnum;
8
+ exports.PermissionAssignmentTypeEnum = PermissionAssignmentTypeEnum;
9
+
10
+ (function (PermissionAssignmentTypeEnum) {
11
+ PermissionAssignmentTypeEnum["NEVER"] = "NEVER";
12
+ PermissionAssignmentTypeEnum["ALWAYS"] = "ALWAYS";
13
+ PermissionAssignmentTypeEnum["ASSIGNABLE"] = "ASSIGNABLE";
14
+ })(PermissionAssignmentTypeEnum || (exports.PermissionAssignmentTypeEnum = PermissionAssignmentTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.1.60",
3
+ "version": "3.1.62",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -1,3 +1,8 @@
1
+ export declare enum PermissionAssignmentTypeEnum {
2
+ NEVER = "NEVER",
3
+ ALWAYS = "ALWAYS",
4
+ ASSIGNABLE = "ASSIGNABLE"
5
+ }
1
6
  export declare type IRole = {
2
7
  id: string;
3
8
  key: string;
@@ -20,6 +25,7 @@ export declare type IRolePermission = {
20
25
  fePermission: boolean;
21
26
  createdAt: Date;
22
27
  updatedAt: Date;
28
+ assignmentType?: PermissionAssignmentTypeEnum;
23
29
  };
24
30
  export declare type IRolePermissionCategory = {
25
31
  id: string;
@@ -36,10 +42,15 @@ export declare type IAddRoleBase = {
36
42
  description: string;
37
43
  isDefault: boolean;
38
44
  level: number;
45
+ };
46
+ export declare type IPermissions = {
39
47
  permissions: string[];
40
48
  };
41
- export declare type IAddRole = IAddRoleBase;
42
- export declare type IAddRoleV2 = IAddRoleBase & {
49
+ export declare type IPermissionIds = {
50
+ permissionIds: string[];
51
+ };
52
+ export declare type IAddRole = IAddRoleBase & IPermissions;
53
+ export declare type IAddRoleV2 = IAddRoleBase & IPermissionIds & {
43
54
  baseRoleId: string;
44
55
  };
45
56
  export declare type IUpdateRole = {
@@ -1 +1,7 @@
1
- export {};
1
+ export let PermissionAssignmentTypeEnum;
2
+
3
+ (function (PermissionAssignmentTypeEnum) {
4
+ PermissionAssignmentTypeEnum["NEVER"] = "NEVER";
5
+ PermissionAssignmentTypeEnum["ALWAYS"] = "ALWAYS";
6
+ PermissionAssignmentTypeEnum["ASSIGNABLE"] = "ASSIGNABLE";
7
+ })(PermissionAssignmentTypeEnum || (PermissionAssignmentTypeEnum = {}));