clarion-shared-types 1.0.52 → 1.0.53

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.
Files changed (71) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/modules/gis/enums/incident-routing-result-match-type.enum.js +11 -0
  4. package/dist/cjs/modules/gis/enums/incident-routing-result-match-type.enum.js.map +1 -0
  5. package/dist/cjs/modules/gis/enums/zone.enums.js +20 -0
  6. package/dist/cjs/modules/gis/enums/zone.enums.js.map +1 -0
  7. package/dist/cjs/modules/gis/index.js +29 -0
  8. package/dist/cjs/modules/gis/index.js.map +1 -0
  9. package/dist/cjs/modules/gis/interfaces/control-centre-routing-result.js +3 -0
  10. package/dist/cjs/modules/gis/interfaces/control-centre-routing-result.js.map +1 -0
  11. package/dist/cjs/modules/gis/interfaces/incident-routing-result.js +3 -0
  12. package/dist/cjs/modules/gis/interfaces/incident-routing-result.js.map +1 -0
  13. package/dist/cjs/modules/gis/interfaces/point-containment.js +3 -0
  14. package/dist/cjs/modules/gis/interfaces/point-containment.js.map +1 -0
  15. package/dist/cjs/modules/gis/interfaces/point-location.js +3 -0
  16. package/dist/cjs/modules/gis/interfaces/point-location.js.map +1 -0
  17. package/dist/cjs/modules/gis/interfaces/polygon-validation-result.js +3 -0
  18. package/dist/cjs/modules/gis/interfaces/polygon-validation-result.js.map +1 -0
  19. package/dist/cjs/modules/gis/interfaces/zone-for-point.js +3 -0
  20. package/dist/cjs/modules/gis/interfaces/zone-for-point.js.map +1 -0
  21. package/dist/cjs/modules/gis/interfaces/zone-match-result.js +3 -0
  22. package/dist/cjs/modules/gis/interfaces/zone-match-result.js.map +1 -0
  23. package/dist/cjs/modules/gis/interfaces/zone-near-point.js +3 -0
  24. package/dist/cjs/modules/gis/interfaces/zone-near-point.js.map +1 -0
  25. package/dist/cjs/modules/gis/interfaces/zone-statistics.js +3 -0
  26. package/dist/cjs/modules/gis/interfaces/zone-statistics.js.map +1 -0
  27. package/dist/cjs/modules/gis/interfaces/zone.js +7 -0
  28. package/dist/cjs/modules/gis/interfaces/zone.js.map +1 -0
  29. package/dist/esm/index.js +1 -0
  30. package/dist/esm/index.js.map +1 -1
  31. package/dist/esm/modules/gis/enums/incident-routing-result-match-type.enum.js +8 -0
  32. package/dist/esm/modules/gis/enums/incident-routing-result-match-type.enum.js.map +1 -0
  33. package/dist/esm/modules/gis/enums/zone.enums.js +17 -0
  34. package/dist/esm/modules/gis/enums/zone.enums.js.map +1 -0
  35. package/dist/esm/modules/gis/index.js +13 -0
  36. package/dist/esm/modules/gis/index.js.map +1 -0
  37. package/dist/esm/modules/gis/interfaces/control-centre-routing-result.js +2 -0
  38. package/dist/esm/modules/gis/interfaces/control-centre-routing-result.js.map +1 -0
  39. package/dist/esm/modules/gis/interfaces/incident-routing-result.js +2 -0
  40. package/dist/esm/modules/gis/interfaces/incident-routing-result.js.map +1 -0
  41. package/dist/esm/modules/gis/interfaces/point-containment.js +2 -0
  42. package/dist/esm/modules/gis/interfaces/point-containment.js.map +1 -0
  43. package/dist/esm/modules/gis/interfaces/point-location.js +2 -0
  44. package/dist/esm/modules/gis/interfaces/point-location.js.map +1 -0
  45. package/dist/esm/modules/gis/interfaces/polygon-validation-result.js +2 -0
  46. package/dist/esm/modules/gis/interfaces/polygon-validation-result.js.map +1 -0
  47. package/dist/esm/modules/gis/interfaces/zone-for-point.js +2 -0
  48. package/dist/esm/modules/gis/interfaces/zone-for-point.js.map +1 -0
  49. package/dist/esm/modules/gis/interfaces/zone-match-result.js +2 -0
  50. package/dist/esm/modules/gis/interfaces/zone-match-result.js.map +1 -0
  51. package/dist/esm/modules/gis/interfaces/zone-near-point.js +2 -0
  52. package/dist/esm/modules/gis/interfaces/zone-near-point.js.map +1 -0
  53. package/dist/esm/modules/gis/interfaces/zone-statistics.js +2 -0
  54. package/dist/esm/modules/gis/interfaces/zone-statistics.js.map +1 -0
  55. package/dist/esm/modules/gis/interfaces/zone.js +3 -0
  56. package/dist/esm/modules/gis/interfaces/zone.js.map +1 -0
  57. package/dist/types/index.d.ts +1 -0
  58. package/dist/types/modules/gis/enums/incident-routing-result-match-type.enum.d.ts +6 -0
  59. package/dist/types/modules/gis/enums/zone.enums.d.ts +14 -0
  60. package/dist/types/modules/gis/index.d.ts +12 -0
  61. package/dist/types/modules/gis/interfaces/control-centre-routing-result.d.ts +8 -0
  62. package/dist/types/modules/gis/interfaces/incident-routing-result.d.ts +11 -0
  63. package/dist/types/modules/gis/interfaces/point-containment.d.ts +3 -0
  64. package/dist/types/modules/gis/interfaces/point-location.d.ts +4 -0
  65. package/dist/types/modules/gis/interfaces/polygon-validation-result.d.ts +9 -0
  66. package/dist/types/modules/gis/interfaces/zone-for-point.d.ts +7 -0
  67. package/dist/types/modules/gis/interfaces/zone-match-result.d.ts +9 -0
  68. package/dist/types/modules/gis/interfaces/zone-near-point.d.ts +8 -0
  69. package/dist/types/modules/gis/interfaces/zone-statistics.d.ts +6 -0
  70. package/dist/types/modules/gis/interfaces/zone.d.ts +24 -0
  71. package/package.json +4 -3
package/dist/cjs/index.js CHANGED
@@ -27,6 +27,7 @@ __exportStar(require("./modules/incident/index"), exports);
27
27
  __exportStar(require("./modules/workflow/index"), exports);
28
28
  __exportStar(require("./modules/dms/index"), exports);
29
29
  __exportStar(require("./modules/sms/index"), exports);
30
+ __exportStar(require("./modules/gis/index"), exports);
30
31
  // Interfaces
31
32
  __exportStar(require("./modules/common/interfaces/server-message"), exports);
32
33
  __exportStar(require("./modules/common/interfaces/pagination"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,uDAAqC;AACrC,iEAA+C;AAC/C,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AAEpC,aAAa;AACb,6EAA2D;AAC3D,yEAAuD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,uDAAqC;AACrC,iEAA+C;AAC/C,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AAEpC,aAAa;AACb,6EAA2D;AAC3D,yEAAuD"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IncidentRoutingResultMatchType = void 0;
4
+ var IncidentRoutingResultMatchType;
5
+ (function (IncidentRoutingResultMatchType) {
6
+ IncidentRoutingResultMatchType["EXACT"] = "exact";
7
+ IncidentRoutingResultMatchType["NEAREST"] = "nearest";
8
+ IncidentRoutingResultMatchType["FALLBACK"] = "fallback";
9
+ IncidentRoutingResultMatchType["NONE"] = "none";
10
+ })(IncidentRoutingResultMatchType || (exports.IncidentRoutingResultMatchType = IncidentRoutingResultMatchType = {}));
11
+ //# sourceMappingURL=incident-routing-result-match-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-routing-result-match-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/gis/enums/incident-routing-result-match-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,8BAKX;AALD,WAAY,8BAA8B;IACtC,iDAAe,CAAA;IACf,qDAAmB,CAAA;IACnB,uDAAqB,CAAA;IACrB,+CAAa,CAAA;AACjB,CAAC,EALW,8BAA8B,8CAA9B,8BAA8B,QAKzC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZoneStatus = exports.ZoneType = void 0;
4
+ var ZoneType;
5
+ (function (ZoneType) {
6
+ ZoneType["PRIMARY"] = "PRIMARY";
7
+ ZoneType["SECONDARY"] = "SECONDARY";
8
+ ZoneType["BACKUP"] = "BACKUP";
9
+ ZoneType["TEMPORARY"] = "TEMPORARY";
10
+ ZoneType["EXCLUSION"] = "EXCLUSION"; // Exclusion zone where incidents should NOT be routed
11
+ })(ZoneType || (exports.ZoneType = ZoneType = {}));
12
+ var ZoneStatus;
13
+ (function (ZoneStatus) {
14
+ ZoneStatus["ACTIVE"] = "ACTIVE";
15
+ ZoneStatus["INACTIVE"] = "INACTIVE";
16
+ ZoneStatus["DRAFT"] = "DRAFT";
17
+ ZoneStatus["ARCHIVED"] = "ARCHIVED";
18
+ ZoneStatus["PENDING_APPROVAL"] = "PENDING_APPROVAL"; // Zone is pending approval
19
+ })(ZoneStatus || (exports.ZoneStatus = ZoneStatus = {}));
20
+ //# sourceMappingURL=zone.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone.enums.js","sourceRoot":"","sources":["../../../../../src/modules/gis/enums/zone.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA,CAAC,sDAAsD;AAClF,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;AAED,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,6BAAe,CAAA;IACf,mCAAqB,CAAA;IACrB,mDAAqC,CAAA,CAAC,2BAA2B;AACrE,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums/incident-routing-result-match-type.enum"), exports);
18
+ __exportStar(require("./enums/zone.enums"), exports);
19
+ __exportStar(require("./interfaces/control-centre-routing-result"), exports);
20
+ __exportStar(require("./interfaces/incident-routing-result"), exports);
21
+ __exportStar(require("./interfaces/point-containment"), exports);
22
+ __exportStar(require("./interfaces/point-location"), exports);
23
+ __exportStar(require("./interfaces/polygon-validation-result"), exports);
24
+ __exportStar(require("./interfaces/zone"), exports);
25
+ __exportStar(require("./interfaces/zone-for-point"), exports);
26
+ __exportStar(require("./interfaces/zone-match-result"), exports);
27
+ __exportStar(require("./interfaces/zone-near-point"), exports);
28
+ __exportStar(require("./interfaces/zone-statistics"), exports);
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/gis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAAgE;AAChE,qDAAmC;AACnC,6EAA2D;AAC3D,uEAAqD;AACrD,iEAA+C;AAC/C,8DAA4C;AAC5C,yEAAuD;AACvD,oDAAkC;AAClC,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,+DAA6C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=control-centre-routing-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-centre-routing-result.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/control-centre-routing-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=incident-routing-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-routing-result.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/incident-routing-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=point-containment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"point-containment.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/point-containment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=point-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"point-location.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/point-location.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=polygon-validation-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polygon-validation-result.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/polygon-validation-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=zone-for-point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone-for-point.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone-for-point.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=zone-match-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone-match-result.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone-match-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=zone-near-point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone-near-point.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone-near-point.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=zone-statistics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone-statistics.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone-statistics.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Zone = void 0;
4
+ class Zone {
5
+ }
6
+ exports.Zone = Zone;
7
+ //# sourceMappingURL=zone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone.ts"],"names":[],"mappings":";;;AAEA,MAAa,IAAI;CAsBhB;AAtBD,oBAsBC"}
package/dist/esm/index.js CHANGED
@@ -11,6 +11,7 @@ export * from './modules/incident/index';
11
11
  export * from './modules/workflow/index';
12
12
  export * from './modules/dms/index';
13
13
  export * from './modules/sms/index';
14
+ export * from './modules/gis/index';
14
15
  // Interfaces
15
16
  export * from './modules/common/interfaces/server-message';
16
17
  export * from './modules/common/interfaces/pagination';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AAEpC,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AAEpC,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export var IncidentRoutingResultMatchType;
2
+ (function (IncidentRoutingResultMatchType) {
3
+ IncidentRoutingResultMatchType["EXACT"] = "exact";
4
+ IncidentRoutingResultMatchType["NEAREST"] = "nearest";
5
+ IncidentRoutingResultMatchType["FALLBACK"] = "fallback";
6
+ IncidentRoutingResultMatchType["NONE"] = "none";
7
+ })(IncidentRoutingResultMatchType || (IncidentRoutingResultMatchType = {}));
8
+ //# sourceMappingURL=incident-routing-result-match-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-routing-result-match-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/gis/enums/incident-routing-result-match-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,8BAKX;AALD,WAAY,8BAA8B;IACtC,iDAAe,CAAA;IACf,qDAAmB,CAAA;IACnB,uDAAqB,CAAA;IACrB,+CAAa,CAAA;AACjB,CAAC,EALW,8BAA8B,KAA9B,8BAA8B,QAKzC"}
@@ -0,0 +1,17 @@
1
+ export var ZoneType;
2
+ (function (ZoneType) {
3
+ ZoneType["PRIMARY"] = "PRIMARY";
4
+ ZoneType["SECONDARY"] = "SECONDARY";
5
+ ZoneType["BACKUP"] = "BACKUP";
6
+ ZoneType["TEMPORARY"] = "TEMPORARY";
7
+ ZoneType["EXCLUSION"] = "EXCLUSION"; // Exclusion zone where incidents should NOT be routed
8
+ })(ZoneType || (ZoneType = {}));
9
+ export var ZoneStatus;
10
+ (function (ZoneStatus) {
11
+ ZoneStatus["ACTIVE"] = "ACTIVE";
12
+ ZoneStatus["INACTIVE"] = "INACTIVE";
13
+ ZoneStatus["DRAFT"] = "DRAFT";
14
+ ZoneStatus["ARCHIVED"] = "ARCHIVED";
15
+ ZoneStatus["PENDING_APPROVAL"] = "PENDING_APPROVAL"; // Zone is pending approval
16
+ })(ZoneStatus || (ZoneStatus = {}));
17
+ //# sourceMappingURL=zone.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone.enums.js","sourceRoot":"","sources":["../../../../../src/modules/gis/enums/zone.enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA,CAAC,sDAAsD;AAClF,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB;AAED,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,6BAAe,CAAA;IACf,mCAAqB,CAAA;IACrB,mDAAqC,CAAA,CAAC,2BAA2B;AACrE,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB"}
@@ -0,0 +1,13 @@
1
+ export * from './enums/incident-routing-result-match-type.enum';
2
+ export * from './enums/zone.enums';
3
+ export * from './interfaces/control-centre-routing-result';
4
+ export * from './interfaces/incident-routing-result';
5
+ export * from './interfaces/point-containment';
6
+ export * from './interfaces/point-location';
7
+ export * from './interfaces/polygon-validation-result';
8
+ export * from './interfaces/zone';
9
+ export * from './interfaces/zone-for-point';
10
+ export * from './interfaces/zone-match-result';
11
+ export * from './interfaces/zone-near-point';
12
+ export * from './interfaces/zone-statistics';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/gis/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,cAAc,oBAAoB,CAAC;AACnC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=control-centre-routing-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-centre-routing-result.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/control-centre-routing-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=incident-routing-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-routing-result.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/incident-routing-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=point-containment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"point-containment.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/point-containment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=point-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"point-location.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/point-location.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=polygon-validation-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polygon-validation-result.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/polygon-validation-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=zone-for-point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone-for-point.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone-for-point.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=zone-match-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone-match-result.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone-match-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=zone-near-point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone-near-point.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone-near-point.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=zone-statistics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone-statistics.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone-statistics.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export class Zone {
2
+ }
3
+ //# sourceMappingURL=zone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zone.js","sourceRoot":"","sources":["../../../../../src/modules/gis/interfaces/zone.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,IAAI;CAsBhB"}
@@ -10,5 +10,6 @@ export * from './modules/incident/index';
10
10
  export * from './modules/workflow/index';
11
11
  export * from './modules/dms/index';
12
12
  export * from './modules/sms/index';
13
+ export * from './modules/gis/index';
13
14
  export * from './modules/common/interfaces/server-message';
14
15
  export * from './modules/common/interfaces/pagination';
@@ -0,0 +1,6 @@
1
+ export declare enum IncidentRoutingResultMatchType {
2
+ EXACT = "exact",
3
+ NEAREST = "nearest",
4
+ FALLBACK = "fallback",
5
+ NONE = "none"
6
+ }
@@ -0,0 +1,14 @@
1
+ export declare enum ZoneType {
2
+ PRIMARY = "PRIMARY",//Primary operational zone for the control centre
3
+ SECONDARY = "SECONDARY",// Secondary zone, used when primary zones overlap
4
+ BACKUP = "BACKUP",// Backup zone for overflow or contingency
5
+ TEMPORARY = "TEMPORARY",// Temporary zone for special events or situations
6
+ EXCLUSION = "EXCLUSION"
7
+ }
8
+ export declare enum ZoneStatus {
9
+ ACTIVE = "ACTIVE",// Zone is active and accepting incidents
10
+ INACTIVE = "INACTIVE",// Zone is temporarily inactive
11
+ DRAFT = "DRAFT",// Zone is in draft mode, not yet operational
12
+ ARCHIVED = "ARCHIVED",// Zone has been archived and is no longer in use
13
+ PENDING_APPROVAL = "PENDING_APPROVAL"
14
+ }
@@ -0,0 +1,12 @@
1
+ export * from './enums/incident-routing-result-match-type.enum';
2
+ export * from './enums/zone.enums';
3
+ export * from './interfaces/control-centre-routing-result';
4
+ export * from './interfaces/incident-routing-result';
5
+ export * from './interfaces/point-containment';
6
+ export * from './interfaces/point-location';
7
+ export * from './interfaces/polygon-validation-result';
8
+ export * from './interfaces/zone';
9
+ export * from './interfaces/zone-for-point';
10
+ export * from './interfaces/zone-match-result';
11
+ export * from './interfaces/zone-near-point';
12
+ export * from './interfaces/zone-statistics';
@@ -0,0 +1,8 @@
1
+ export interface ControlCentreRoutingResult {
2
+ controlCentreId: number;
3
+ organizationId: number;
4
+ zoneName: string;
5
+ zoneId: number;
6
+ priority: number;
7
+ matchedAt: Date;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { IncidentRoutingResultMatchType } from "../enums/incident-routing-result-match-type.enum";
2
+ export interface IncidentRoutingResult {
3
+ success: boolean;
4
+ controlCentreId?: number;
5
+ organizationId?: number;
6
+ zoneId?: number;
7
+ zoneName?: string;
8
+ matchType: IncidentRoutingResultMatchType;
9
+ distance?: number;
10
+ message?: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ export interface PointContainment {
2
+ contained: boolean;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface PointLocation {
2
+ lat: number;
3
+ lng: number;
4
+ }
@@ -0,0 +1,9 @@
1
+ import { PointLocation } from "./point-location";
2
+ export interface PolygonValidationResult {
3
+ isValid: boolean;
4
+ errors: string[];
5
+ warnings: string[];
6
+ sanitizedPolygon?: GeoJSON.Polygon;
7
+ centroid?: PointLocation;
8
+ areaSqMeters?: number;
9
+ }
@@ -0,0 +1,7 @@
1
+ export interface ZoneForPoint {
2
+ lat: number;
3
+ lng: number;
4
+ organizationId?: number;
5
+ activeOnly?: boolean;
6
+ limit?: number;
7
+ }
@@ -0,0 +1,9 @@
1
+ export interface ZoneMatchResult {
2
+ zoneId: number;
3
+ zoneName: string;
4
+ controlCentreId: number;
5
+ organizationId: number;
6
+ priority: number;
7
+ zoneType: string;
8
+ distance?: number;
9
+ }
@@ -0,0 +1,8 @@
1
+ export interface ZoneNearPoint {
2
+ lat: number;
3
+ lng: number;
4
+ organizationId?: number;
5
+ activeOnly?: boolean;
6
+ limit?: number;
7
+ radiusMeters: number;
8
+ }
@@ -0,0 +1,6 @@
1
+ export interface ZoneStatistics {
2
+ areaSquareMeters: number;
3
+ perimeterMeters: number;
4
+ centroidLat: number;
5
+ centroidLng: number;
6
+ }
@@ -0,0 +1,24 @@
1
+ import { ZoneStatus, ZoneType } from "../enums/zone.enums";
2
+ export declare class Zone {
3
+ id?: number;
4
+ name: string;
5
+ description?: string;
6
+ type: ZoneType;
7
+ status: ZoneStatus;
8
+ priority: number;
9
+ controlCentreId: number;
10
+ organizationId: number;
11
+ geoJson: GeoJSON.Polygon;
12
+ areaSquareMeters?: number;
13
+ centroid?: {
14
+ lat: number;
15
+ lng: number;
16
+ };
17
+ attributes?: Record<string, any>;
18
+ effectiveFrom?: string;
19
+ effectiveUntil?: string;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ createdBy?: number;
23
+ updatedBy?: number;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarion-shared-types",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -36,8 +36,9 @@
36
36
  "access": "public"
37
37
  },
38
38
  "devDependencies": {
39
+ "@types/geojson": "^7946.0.16",
39
40
  "@types/node": "^20.11.2",
40
- "typescript": "^5.7.3",
41
- "rimraf": "^5.0.5"
41
+ "rimraf": "^5.0.5",
42
+ "typescript": "^5.7.3"
42
43
  }
43
44
  }