@edular/permissions 8.1.1 → 8.1.2

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/README.md CHANGED
File without changes
@@ -24,7 +24,8 @@ export declare enum DepartmentPermissionTarget {
24
24
  Tasks = "tasks",
25
25
  TasksAccessOthers = "tasks.access_others",
26
26
  TasksReassign = "tasks.reassign",
27
- Chat = "chat"
27
+ Chat = "chat",
28
+ Director = "director"
28
29
  }
29
30
  export declare const DepartmentPermissionTargetTypes: {
30
31
  chat: PermissionType[];
@@ -36,6 +37,7 @@ export declare const SubunitPermissionTargetTypes: {
36
37
  tasks: PermissionType[];
37
38
  "tasks.access_others": PermissionType[];
38
39
  "tasks.reassign": PermissionType[];
40
+ director: PermissionType[];
39
41
  };
40
42
  export declare type ProfilePermissionsDetails = {
41
43
  type: UserProfileType.Staff;
package/lib/constants.js CHANGED
@@ -26,6 +26,7 @@ var DepartmentPermissionTarget;
26
26
  DepartmentPermissionTarget["TasksAccessOthers"] = "tasks.access_others";
27
27
  DepartmentPermissionTarget["TasksReassign"] = "tasks.reassign";
28
28
  DepartmentPermissionTarget["Chat"] = "chat";
29
+ DepartmentPermissionTarget["Director"] = "director";
29
30
  })(DepartmentPermissionTarget = exports.DepartmentPermissionTarget || (exports.DepartmentPermissionTarget = {}));
30
31
  exports.DepartmentPermissionTargetTypes = (_a = {},
31
32
  _a[DepartmentPermissionTarget.Chat] = [
@@ -61,4 +62,9 @@ exports.SubunitPermissionTargetTypes = (_b = {},
61
62
  _b[DepartmentPermissionTarget.TasksReassign] = [
62
63
  PermissionType.Edit,
63
64
  ],
65
+ _b[DepartmentPermissionTarget.Director] = [
66
+ PermissionType.View,
67
+ PermissionType.Edit,
68
+ PermissionType.Delete,
69
+ ],
64
70
  _b);
package/lib/helpers.d.ts CHANGED
File without changes
package/lib/helpers.js CHANGED
File without changes
package/lib/index.d.ts CHANGED
File without changes
package/lib/index.js CHANGED
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edular/permissions",
3
- "version": "8.1.1",
3
+ "version": "8.1.2",
4
4
  "author": "Edular",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",