clarion-shared-types 1.0.35 → 1.0.37

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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=report-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-list.js","sourceRoot":"","sources":["../../../src/interfaces/report-list.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MOBILE_ROLES = exports.CONTROL_CENTRE_ROLES = exports.ORGANIZATION_ROLES = void 0;
4
+ const role_enum_1 = require("../enums/role.enum");
5
+ exports.ORGANIZATION_ROLES = [
6
+ role_enum_1.Roles.ORGANIZATION_OWNER,
7
+ role_enum_1.Roles.ORGANIZATION_ADMIN,
8
+ role_enum_1.Roles.ORGANIZATION_USER
9
+ ];
10
+ exports.CONTROL_CENTRE_ROLES = [
11
+ role_enum_1.Roles.CONTROL_CENTRE_ADMIN,
12
+ role_enum_1.Roles.CONTROL_CENTRE_USER
13
+ ];
14
+ exports.MOBILE_ROLES = [
15
+ role_enum_1.Roles.MOBILE_USER
16
+ ];
17
+ //# sourceMappingURL=roles-by-scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles-by-scope.js","sourceRoot":"","sources":["../../../../../src/modules/role/constants/roles-by-scope.ts"],"names":[],"mappings":";;;AAAA,kDAA2C;AAE9B,QAAA,kBAAkB,GAAa;IACxC,iBAAK,CAAC,kBAAkB;IACxB,iBAAK,CAAC,kBAAkB;IACxB,iBAAK,CAAC,iBAAiB;CAC1B,CAAC;AAEW,QAAA,oBAAoB,GAAa;IAC1C,iBAAK,CAAC,oBAAoB;IAC1B,iBAAK,CAAC,mBAAmB;CAC5B,CAAC;AAEW,QAAA,YAAY,GAAa;IAClC,iBAAK,CAAC,WAAW;CACpB,CAAC"}
@@ -11,4 +11,7 @@ var Roles;
11
11
  Roles["CONTROL_CENTRE_USER"] = "Control-Centre:User";
12
12
  Roles["MOBILE_USER"] = "Mobile-User";
13
13
  })(Roles || (exports.Roles = Roles = {}));
14
+ /**
15
+ * When defining a new role, also update the roles-by-scope.ts file
16
+ */
14
17
  //# sourceMappingURL=role.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.enum.js","sourceRoot":"","sources":["../../../../../src/modules/role/enums/role.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAQX;AARD,WAAY,KAAK;IACb,oCAA2B,CAAA;IAC3B,kDAAyC,CAAA;IACzC,kDAAyC,CAAA;IACzC,gDAAuC,CAAA;IACvC,sDAA6C,CAAA;IAC7C,oDAA2C,CAAA;IAC3C,oCAA2B,CAAA;AAC/B,CAAC,EARW,KAAK,qBAAL,KAAK,QAQhB"}
1
+ {"version":3,"file":"role.enum.js","sourceRoot":"","sources":["../../../../../src/modules/role/enums/role.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAQX;AARD,WAAY,KAAK;IACb,oCAA2B,CAAA;IAC3B,kDAAyC,CAAA;IACzC,kDAAyC,CAAA;IACzC,gDAAuC,CAAA;IACvC,sDAA6C,CAAA;IAC7C,oDAA2C,CAAA;IAC3C,oCAA2B,CAAA;AAC/B,CAAC,EARW,KAAK,qBAAL,KAAK,QAQhB;AAED;;GAEG"}
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./enums/role.enum"), exports);
18
18
  __exportStar(require("./interfaces/role"), exports);
19
+ __exportStar(require("./constants/roles-by-scope"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/role/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/role/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,6DAA2C"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=report-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-list.js","sourceRoot":"","sources":["../../../src/interfaces/report-list.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { Roles } from "../enums/role.enum";
2
+ export const ORGANIZATION_ROLES = [
3
+ Roles.ORGANIZATION_OWNER,
4
+ Roles.ORGANIZATION_ADMIN,
5
+ Roles.ORGANIZATION_USER
6
+ ];
7
+ export const CONTROL_CENTRE_ROLES = [
8
+ Roles.CONTROL_CENTRE_ADMIN,
9
+ Roles.CONTROL_CENTRE_USER
10
+ ];
11
+ export const MOBILE_ROLES = [
12
+ Roles.MOBILE_USER
13
+ ];
14
+ //# sourceMappingURL=roles-by-scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles-by-scope.js","sourceRoot":"","sources":["../../../../../src/modules/role/constants/roles-by-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,MAAM,CAAC,MAAM,kBAAkB,GAAa;IACxC,KAAK,CAAC,kBAAkB;IACxB,KAAK,CAAC,kBAAkB;IACxB,KAAK,CAAC,iBAAiB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAa;IAC1C,KAAK,CAAC,oBAAoB;IAC1B,KAAK,CAAC,mBAAmB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAa;IAClC,KAAK,CAAC,WAAW;CACpB,CAAC"}
@@ -8,4 +8,7 @@ export var Roles;
8
8
  Roles["CONTROL_CENTRE_USER"] = "Control-Centre:User";
9
9
  Roles["MOBILE_USER"] = "Mobile-User";
10
10
  })(Roles || (Roles = {}));
11
+ /**
12
+ * When defining a new role, also update the roles-by-scope.ts file
13
+ */
11
14
  //# sourceMappingURL=role.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.enum.js","sourceRoot":"","sources":["../../../../../src/modules/role/enums/role.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,KAQX;AARD,WAAY,KAAK;IACb,oCAA2B,CAAA;IAC3B,kDAAyC,CAAA;IACzC,kDAAyC,CAAA;IACzC,gDAAuC,CAAA;IACvC,sDAA6C,CAAA;IAC7C,oDAA2C,CAAA;IAC3C,oCAA2B,CAAA;AAC/B,CAAC,EARW,KAAK,KAAL,KAAK,QAQhB"}
1
+ {"version":3,"file":"role.enum.js","sourceRoot":"","sources":["../../../../../src/modules/role/enums/role.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,KAQX;AARD,WAAY,KAAK;IACb,oCAA2B,CAAA;IAC3B,kDAAyC,CAAA;IACzC,kDAAyC,CAAA;IACzC,gDAAuC,CAAA;IACvC,sDAA6C,CAAA;IAC7C,oDAA2C,CAAA;IAC3C,oCAA2B,CAAA;AAC/B,CAAC,EARW,KAAK,KAAL,KAAK,QAQhB;AAED;;GAEG"}
@@ -1,3 +1,4 @@
1
1
  export * from './enums/role.enum';
2
2
  export * from './interfaces/role';
3
+ export * from './constants/roles-by-scope';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/role/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/role/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
File without changes
@@ -1,6 +1,7 @@
1
1
  export interface Message {
2
2
  success: boolean;
3
3
  message: string;
4
+ data?: any;
4
5
  error?: string;
5
6
  timestamp?: Date;
6
7
  }
@@ -0,0 +1,3 @@
1
+ export declare const ORGANIZATION_ROLES: string[];
2
+ export declare const CONTROL_CENTRE_ROLES: string[];
3
+ export declare const MOBILE_ROLES: string[];
@@ -7,3 +7,6 @@ export declare enum Roles {
7
7
  CONTROL_CENTRE_USER = "Control-Centre:User",
8
8
  MOBILE_USER = "Mobile-User"
9
9
  }
10
+ /**
11
+ * When defining a new role, also update the roles-by-scope.ts file
12
+ */
@@ -1,2 +1,3 @@
1
1
  export * from './enums/role.enum';
2
2
  export * from './interfaces/role';
3
+ export * from './constants/roles-by-scope';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarion-shared-types",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",