clarion-shared-types 1.0.25 → 1.0.27

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.
@@ -28,5 +28,9 @@ var PermissionActions;
28
28
  PermissionActions["READ_INCIDENT"] = "read:incident";
29
29
  PermissionActions["UPDATE_INCIDENT"] = "update:incident";
30
30
  PermissionActions["DELETE_INCIDENT"] = "delete:incident";
31
+ PermissionActions["CREATE_INCIDENT_CATEGORY_TYPE"] = "create:incident-category-type";
32
+ PermissionActions["READ_INCIDENT_CATEGORY_TYPE"] = "read:incident-category-type";
33
+ PermissionActions["UPDATE_INCIDENT_CATEGORY_TYPE"] = "update:incident-category-type";
34
+ PermissionActions["DELETE_INCIDENT_CATEGORY_TYPE"] = "delete:incident-category-type";
31
35
  })(PermissionActions || (exports.PermissionActions = PermissionActions = {}));
32
36
  //# sourceMappingURL=permission-actions.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"permission-actions.enum.js","sourceRoot":"","sources":["../../../../../src/modules/permission/enums/permission-actions.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBA8BX;AA9BD,WAAY,iBAAiB;IACzB,uBAAuB;IACvB,gEAA2C,CAAA;IAC3C,4DAAuC,CAAA;IACvC,gEAA2C,CAAA;IAC3C,gEAA2C,CAAA;IAE3C,wBAAwB;IACxB,oEAA+C,CAAA;IAC/C,gEAA2C,CAAA;IAC3C,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAE/C,eAAe;IACf,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAE3B,eAAe;IACf,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAE3B,mBAAmB;IACnB,wDAAmC,CAAA;IACnC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,wDAAmC,CAAA;AACvC,CAAC,EA9BW,iBAAiB,iCAAjB,iBAAiB,QA8B5B"}
1
+ {"version":3,"file":"permission-actions.enum.js","sourceRoot":"","sources":["../../../../../src/modules/permission/enums/permission-actions.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAkCX;AAlCD,WAAY,iBAAiB;IACzB,uBAAuB;IACvB,gEAA2C,CAAA;IAC3C,4DAAuC,CAAA;IACvC,gEAA2C,CAAA;IAC3C,gEAA2C,CAAA;IAE3C,wBAAwB;IACxB,oEAA+C,CAAA;IAC/C,gEAA2C,CAAA;IAC3C,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAE/C,eAAe;IACf,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAE3B,eAAe;IACf,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAE3B,mBAAmB;IACnB,wDAAmC,CAAA;IACnC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,wDAAmC,CAAA;IACnC,oFAA+D,CAAA;IAC/D,gFAA2D,CAAA;IAC3D,oFAA+D,CAAA;IAC/D,oFAA+D,CAAA;AACnE,CAAC,EAlCW,iBAAiB,iCAAjB,iBAAiB,QAkC5B"}
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./enums/user-status.enum"), exports);
18
18
  __exportStar(require("./interfaces/user"), exports);
19
19
  __exportStar(require("./interfaces/user-context"), exports);
20
+ __exportStar(require("./interfaces/access-scope"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,oDAAkC;AAClC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,oDAAkC;AAClC,4DAA0C;AAC1C,4DAA0C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=access-scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-scope.js","sourceRoot":"","sources":["../../../../../src/modules/user/interfaces/access-scope.ts"],"names":[],"mappings":""}
@@ -25,5 +25,9 @@ export var PermissionActions;
25
25
  PermissionActions["READ_INCIDENT"] = "read:incident";
26
26
  PermissionActions["UPDATE_INCIDENT"] = "update:incident";
27
27
  PermissionActions["DELETE_INCIDENT"] = "delete:incident";
28
+ PermissionActions["CREATE_INCIDENT_CATEGORY_TYPE"] = "create:incident-category-type";
29
+ PermissionActions["READ_INCIDENT_CATEGORY_TYPE"] = "read:incident-category-type";
30
+ PermissionActions["UPDATE_INCIDENT_CATEGORY_TYPE"] = "update:incident-category-type";
31
+ PermissionActions["DELETE_INCIDENT_CATEGORY_TYPE"] = "delete:incident-category-type";
28
32
  })(PermissionActions || (PermissionActions = {}));
29
33
  //# sourceMappingURL=permission-actions.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"permission-actions.enum.js","sourceRoot":"","sources":["../../../../../src/modules/permission/enums/permission-actions.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBA8BX;AA9BD,WAAY,iBAAiB;IACzB,uBAAuB;IACvB,gEAA2C,CAAA;IAC3C,4DAAuC,CAAA;IACvC,gEAA2C,CAAA;IAC3C,gEAA2C,CAAA;IAE3C,wBAAwB;IACxB,oEAA+C,CAAA;IAC/C,gEAA2C,CAAA;IAC3C,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAE/C,eAAe;IACf,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAE3B,eAAe;IACf,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAE3B,mBAAmB;IACnB,wDAAmC,CAAA;IACnC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,wDAAmC,CAAA;AACvC,CAAC,EA9BW,iBAAiB,KAAjB,iBAAiB,QA8B5B"}
1
+ {"version":3,"file":"permission-actions.enum.js","sourceRoot":"","sources":["../../../../../src/modules/permission/enums/permission-actions.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBAkCX;AAlCD,WAAY,iBAAiB;IACzB,uBAAuB;IACvB,gEAA2C,CAAA;IAC3C,4DAAuC,CAAA;IACvC,gEAA2C,CAAA;IAC3C,gEAA2C,CAAA;IAE3C,wBAAwB;IACxB,oEAA+C,CAAA;IAC/C,gEAA2C,CAAA;IAC3C,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAE/C,eAAe;IACf,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAE3B,eAAe;IACf,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAE3B,mBAAmB;IACnB,wDAAmC,CAAA;IACnC,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,wDAAmC,CAAA;IACnC,oFAA+D,CAAA;IAC/D,gFAA2D,CAAA;IAC3D,oFAA+D,CAAA;IAC/D,oFAA+D,CAAA;AACnE,CAAC,EAlCW,iBAAiB,KAAjB,iBAAiB,QAkC5B"}
@@ -1,4 +1,5 @@
1
1
  export * from './enums/user-status.enum';
2
2
  export * from './interfaces/user';
3
3
  export * from './interfaces/user-context';
4
+ export * from './interfaces/access-scope';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=access-scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-scope.js","sourceRoot":"","sources":["../../../../../src/modules/user/interfaces/access-scope.ts"],"names":[],"mappings":""}
@@ -18,5 +18,9 @@ export declare enum PermissionActions {
18
18
  CREATE_INCIDENT = "create:incident",
19
19
  READ_INCIDENT = "read:incident",
20
20
  UPDATE_INCIDENT = "update:incident",
21
- DELETE_INCIDENT = "delete:incident"
21
+ DELETE_INCIDENT = "delete:incident",
22
+ CREATE_INCIDENT_CATEGORY_TYPE = "create:incident-category-type",
23
+ READ_INCIDENT_CATEGORY_TYPE = "read:incident-category-type",
24
+ UPDATE_INCIDENT_CATEGORY_TYPE = "update:incident-category-type",
25
+ DELETE_INCIDENT_CATEGORY_TYPE = "delete:incident-category-type"
22
26
  }
@@ -1,3 +1,4 @@
1
1
  export * from './enums/user-status.enum';
2
2
  export * from './interfaces/user';
3
3
  export * from './interfaces/user-context';
4
+ export * from './interfaces/access-scope';
@@ -0,0 +1,5 @@
1
+ export interface AccessScope {
2
+ organizationFilter?: number;
3
+ controlCentreFilter?: number;
4
+ isSuperAdmin: boolean;
5
+ }
@@ -1,6 +1,8 @@
1
+ import { AccessScope } from './access-scope';
1
2
  export interface UserContext {
2
3
  userId: number;
3
4
  roles: string[];
4
5
  organizationId?: number;
5
6
  controlCentreId?: number;
7
+ accessScope: AccessScope;
6
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarion-shared-types",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",