clarion-shared-types 1.0.115 → 1.0.117
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/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/modules/dispatch/enums/response-unit-dispatch-enums.js +137 -0
- package/dist/cjs/modules/dispatch/enums/response-unit-dispatch-enums.js.map +1 -0
- package/dist/cjs/modules/dispatch/index.js +23 -0
- package/dist/cjs/modules/dispatch/index.js.map +1 -0
- package/dist/cjs/modules/dispatch/interfaces/response-unit-dispatch.dto.js +3 -0
- package/dist/cjs/modules/dispatch/interfaces/response-unit-dispatch.dto.js.map +1 -0
- package/dist/cjs/modules/dispatch/utils/response-unit-dispatch-display.util.js +202 -0
- package/dist/cjs/modules/dispatch/utils/response-unit-dispatch-display.util.js.map +1 -0
- package/dist/cjs/modules/incident/enums/incident-actions.enum.js +6 -0
- package/dist/cjs/modules/incident/enums/incident-actions.enum.js.map +1 -1
- package/dist/cjs/modules/incident-sla/enums/incident-sla-enums.js +225 -0
- package/dist/cjs/modules/incident-sla/enums/incident-sla-enums.js.map +1 -0
- package/dist/cjs/modules/incident-sla/index.js +23 -0
- package/dist/cjs/modules/incident-sla/index.js.map +1 -0
- package/dist/cjs/modules/incident-sla/interfaces/incident-sla.dto.js +3 -0
- package/dist/cjs/modules/incident-sla/interfaces/incident-sla.dto.js.map +1 -0
- package/dist/cjs/modules/incident-sla/utils/incident-sla-display.util.js +250 -0
- package/dist/cjs/modules/incident-sla/utils/incident-sla-display.util.js.map +1 -0
- package/dist/cjs/modules/permission/enums/permission-actions.enum.js +14 -0
- package/dist/cjs/modules/permission/enums/permission-actions.enum.js.map +1 -1
- package/dist/cjs/modules/permission/enums/permissions-moudule.enum.js +2 -0
- package/dist/cjs/modules/permission/enums/permissions-moudule.enum.js.map +1 -1
- package/dist/cjs/modules/response-unit/enums/response-unit/response-capability.enum.js +28 -0
- package/dist/cjs/modules/response-unit/enums/response-unit/response-capability.enum.js.map +1 -0
- package/dist/cjs/modules/response-unit/index.js +1 -0
- package/dist/cjs/modules/response-unit/index.js.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/modules/dispatch/enums/response-unit-dispatch-enums.js +134 -0
- package/dist/esm/modules/dispatch/enums/response-unit-dispatch-enums.js.map +1 -0
- package/dist/esm/modules/dispatch/index.js +7 -0
- package/dist/esm/modules/dispatch/index.js.map +1 -0
- package/dist/esm/modules/dispatch/interfaces/response-unit-dispatch.dto.js +2 -0
- package/dist/esm/modules/dispatch/interfaces/response-unit-dispatch.dto.js.map +1 -0
- package/dist/esm/modules/dispatch/utils/response-unit-dispatch-display.util.js +192 -0
- package/dist/esm/modules/dispatch/utils/response-unit-dispatch-display.util.js.map +1 -0
- package/dist/esm/modules/incident/enums/incident-actions.enum.js +6 -0
- package/dist/esm/modules/incident/enums/incident-actions.enum.js.map +1 -1
- package/dist/esm/modules/incident-sla/enums/incident-sla-enums.js +222 -0
- package/dist/esm/modules/incident-sla/enums/incident-sla-enums.js.map +1 -0
- package/dist/esm/modules/incident-sla/index.js +7 -0
- package/dist/esm/modules/incident-sla/index.js.map +1 -0
- package/dist/esm/modules/incident-sla/interfaces/incident-sla.dto.js +2 -0
- package/dist/esm/modules/incident-sla/interfaces/incident-sla.dto.js.map +1 -0
- package/dist/esm/modules/incident-sla/utils/incident-sla-display.util.js +239 -0
- package/dist/esm/modules/incident-sla/utils/incident-sla-display.util.js.map +1 -0
- package/dist/esm/modules/permission/enums/permission-actions.enum.js +14 -0
- package/dist/esm/modules/permission/enums/permission-actions.enum.js.map +1 -1
- package/dist/esm/modules/permission/enums/permissions-moudule.enum.js +2 -0
- package/dist/esm/modules/permission/enums/permissions-moudule.enum.js.map +1 -1
- package/dist/esm/modules/response-unit/enums/response-unit/response-capability.enum.js +25 -0
- package/dist/esm/modules/response-unit/enums/response-unit/response-capability.enum.js.map +1 -0
- package/dist/esm/modules/response-unit/index.js +1 -0
- package/dist/esm/modules/response-unit/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/modules/dispatch/enums/response-unit-dispatch-enums.d.ts +113 -0
- package/dist/types/modules/dispatch/index.d.ts +3 -0
- package/dist/types/modules/dispatch/interfaces/response-unit-dispatch.dto.d.ts +170 -0
- package/dist/types/modules/dispatch/utils/response-unit-dispatch-display.util.d.ts +30 -0
- package/dist/types/modules/incident/enums/incident-actions.enum.d.ts +6 -0
- package/dist/types/modules/incident/intefaces/incident-category.d.ts +6 -0
- package/dist/types/modules/incident/intefaces/incident-type.d.ts +6 -0
- package/dist/types/modules/incident-sla/enums/incident-sla-enums.d.ts +196 -0
- package/dist/types/modules/incident-sla/index.d.ts +3 -0
- package/dist/types/modules/incident-sla/interfaces/incident-sla.dto.d.ts +286 -0
- package/dist/types/modules/incident-sla/utils/incident-sla-display.util.d.ts +38 -0
- package/dist/types/modules/permission/enums/permission-actions.enum.d.ts +9 -0
- package/dist/types/modules/permission/enums/permissions-moudule.enum.d.ts +3 -1
- package/dist/types/modules/response-unit/enums/response-unit/response-capability.enum.d.ts +22 -0
- package/dist/types/modules/response-unit/index.d.ts +1 -0
- package/dist/types/modules/response-unit/interfaces/response-unit/response-unit.d.ts +3 -0
- package/package.json +45 -45
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/response-unit/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AACpE,cAAc,4DAA4D,CAAC;AAE3E,QAAQ;AACR,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+DAA+D,CAAC;AAC9E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC;AACzE,cAAc,iEAAiE,CAAC;AAChF,cAAc,iEAAiE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/response-unit/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AACpE,cAAc,4DAA4D,CAAC;AAE3E,QAAQ;AACR,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+DAA+D,CAAC;AAC9E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC;AACzE,cAAc,iEAAiE,CAAC;AAChF,cAAc,iEAAiE,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -25,5 +25,7 @@ export * from './modules/support/index';
|
|
|
25
25
|
export * from './modules/safety/index';
|
|
26
26
|
export * from './modules/billing/index';
|
|
27
27
|
export * from './modules/newsfeed/index';
|
|
28
|
+
export * from './modules/dispatch/index';
|
|
29
|
+
export * from './modules/incident-sla/index';
|
|
28
30
|
export * from './modules/common/interfaces/server-message';
|
|
29
31
|
export * from './modules/common/interfaces/pagination';
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/** Where one unit is in answering one incident. ACTIVE = DISPATCHED..ON_SCENE. */
|
|
2
|
+
export declare enum ResponseUnitDispatchStatus {
|
|
3
|
+
DISPATCHED = "DISPATCHED",
|
|
4
|
+
ACKNOWLEDGED = "ACKNOWLEDGED",
|
|
5
|
+
EN_ROUTE = "EN_ROUTE",
|
|
6
|
+
ON_SCENE = "ON_SCENE",
|
|
7
|
+
COMPLETED = "COMPLETED",
|
|
8
|
+
CANCELLED = "CANCELLED",
|
|
9
|
+
/** The unit declined the job. Frees the unit, like CANCELLED. */
|
|
10
|
+
REJECTED = "REJECTED"
|
|
11
|
+
}
|
|
12
|
+
export declare enum ResponseUnitDispatchTransitionSource {
|
|
13
|
+
DISPATCHER = "DISPATCHER",
|
|
14
|
+
INCIDENT_LIFECYCLE = "INCIDENT_LIFECYCLE",
|
|
15
|
+
RESPONDER = "RESPONDER",
|
|
16
|
+
WORKFLOW = "WORKFLOW",
|
|
17
|
+
/** Inferred from live tracking (arrival in the incident's geofence). */
|
|
18
|
+
TRACKING = "TRACKING"
|
|
19
|
+
}
|
|
20
|
+
export declare enum ResponseUnitCapabilityMatch {
|
|
21
|
+
MATCH = "MATCH",
|
|
22
|
+
NOT_REQUIRED = "NOT_REQUIRED",
|
|
23
|
+
UNKNOWN = "UNKNOWN",
|
|
24
|
+
NOT_SUITED = "NOT_SUITED"
|
|
25
|
+
}
|
|
26
|
+
export declare enum ResponseCapabilityRequirementSource {
|
|
27
|
+
INCIDENT_TYPE = "INCIDENT_TYPE",
|
|
28
|
+
INCIDENT_CATEGORY = "INCIDENT_CATEGORY",
|
|
29
|
+
NONE = "NONE"
|
|
30
|
+
}
|
|
31
|
+
export declare enum ResponseUnitLocationSource {
|
|
32
|
+
LIVE = "LIVE",
|
|
33
|
+
BASE = "BASE",
|
|
34
|
+
NONE = "NONE"
|
|
35
|
+
}
|
|
36
|
+
export declare enum ResponseUnitLocationFreshness {
|
|
37
|
+
CURRENT = "CURRENT",
|
|
38
|
+
STALE = "STALE",
|
|
39
|
+
UNKNOWN = "UNKNOWN"
|
|
40
|
+
}
|
|
41
|
+
export declare enum ResponseUnitDistanceBasis {
|
|
42
|
+
STRAIGHT_LINE = "STRAIGHT_LINE",
|
|
43
|
+
ROAD_ROUTE = "ROAD_ROUTE"
|
|
44
|
+
}
|
|
45
|
+
/** Why a unit cannot be dispatched (blockers) or is not recommended (cautions). */
|
|
46
|
+
export declare enum ResponseUnitDispatchConstraint {
|
|
47
|
+
INACTIVE = "INACTIVE",
|
|
48
|
+
OPERATIONALLY_UNAVAILABLE = "OPERATIONALLY_UNAVAILABLE",
|
|
49
|
+
ENGAGED = "ENGAGED",
|
|
50
|
+
ALREADY_DISPATCHED = "ALREADY_DISPATCHED",
|
|
51
|
+
OTHER_CONTROL_CENTRE = "OTHER_CONTROL_CENTRE",
|
|
52
|
+
CAPABILITY_REQUIRED = "CAPABILITY_REQUIRED",
|
|
53
|
+
NOT_SUITED = "NOT_SUITED",
|
|
54
|
+
NO_LOCATION = "NO_LOCATION",
|
|
55
|
+
LOCATION_STALE = "LOCATION_STALE",
|
|
56
|
+
OUTSIDE_SEARCH_AREA = "OUTSIDE_SEARCH_AREA"
|
|
57
|
+
}
|
|
58
|
+
export declare enum ResponseUnitRecommendationReason {
|
|
59
|
+
AVAILABLE = "AVAILABLE",
|
|
60
|
+
CAPABILITY_MATCH = "CAPABILITY_MATCH",
|
|
61
|
+
NO_CAPABILITY_REQUIREMENT = "NO_CAPABILITY_REQUIREMENT",
|
|
62
|
+
CAPABILITY_UNKNOWN = "CAPABILITY_UNKNOWN",
|
|
63
|
+
SAME_CONTROL_CENTRE = "SAME_CONTROL_CENTRE",
|
|
64
|
+
OTHER_CONTROL_CENTRE = "OTHER_CONTROL_CENTRE",
|
|
65
|
+
LIVE_LOCATION_CURRENT = "LIVE_LOCATION_CURRENT",
|
|
66
|
+
LIVE_LOCATION_STALE = "LIVE_LOCATION_STALE",
|
|
67
|
+
BASE_LOCATION = "BASE_LOCATION",
|
|
68
|
+
NEAREST = "NEAREST",
|
|
69
|
+
QUICKEST = "QUICKEST"
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* NO_UNITS_CONFIGURED hides the dispatch panel (this control room has no units);
|
|
73
|
+
* NO_ELIGIBLE_UNITS is an alarm (it has units and none can go).
|
|
74
|
+
*/
|
|
75
|
+
export declare enum ResponseUnitRecommendationStatus {
|
|
76
|
+
RECOMMENDED = "RECOMMENDED",
|
|
77
|
+
NO_RECOMMENDATION = "NO_RECOMMENDATION",
|
|
78
|
+
NO_ELIGIBLE_UNITS = "NO_ELIGIBLE_UNITS",
|
|
79
|
+
NO_UNITS_CONFIGURED = "NO_UNITS_CONFIGURED",
|
|
80
|
+
NOT_DISPATCHABLE = "NOT_DISPATCHABLE"
|
|
81
|
+
}
|
|
82
|
+
export declare enum IncidentDispatchBlocker {
|
|
83
|
+
INCIDENT_ENDED = "INCIDENT_ENDED",
|
|
84
|
+
NOT_AN_EMERGENCY_INCIDENT = "NOT_AN_EMERGENCY_INCIDENT",
|
|
85
|
+
PROVIDER_RESPONSE_NOT_REQUESTED = "PROVIDER_RESPONSE_NOT_REQUESTED",
|
|
86
|
+
DISPATCH_DISABLED = "DISPATCH_DISABLED"
|
|
87
|
+
}
|
|
88
|
+
export declare enum ResponseUnitDispatchNotificationStatus {
|
|
89
|
+
PENDING = "PENDING",
|
|
90
|
+
SENT = "SENT",
|
|
91
|
+
FAILED = "FAILED",
|
|
92
|
+
NOT_POSSIBLE = "NOT_POSSIBLE"
|
|
93
|
+
}
|
|
94
|
+
export declare enum ResponseUnitDispatchNotificationFailure {
|
|
95
|
+
NO_PHONE_NUMBER = "NO_PHONE_NUMBER",
|
|
96
|
+
INVALID_PHONE_NUMBER = "INVALID_PHONE_NUMBER",
|
|
97
|
+
PROVIDER_FAILURE = "PROVIDER_FAILURE",
|
|
98
|
+
NOT_CONFIGURED = "NOT_CONFIGURED",
|
|
99
|
+
NO_RESPONSE = "NO_RESPONSE"
|
|
100
|
+
}
|
|
101
|
+
/** The `code` on a refused request (the gateway returns it under `details`). */
|
|
102
|
+
export declare enum ResponseUnitDispatchErrorCode {
|
|
103
|
+
INCIDENT_NOT_DISPATCHABLE = "INCIDENT_NOT_DISPATCHABLE",
|
|
104
|
+
RESPONSE_UNIT_NOT_FOUND = "RESPONSE_UNIT_NOT_FOUND",
|
|
105
|
+
RESPONSE_UNIT_NOT_DISPATCHABLE = "RESPONSE_UNIT_NOT_DISPATCHABLE",
|
|
106
|
+
RESPONSE_UNIT_ENGAGED = "RESPONSE_UNIT_ENGAGED",
|
|
107
|
+
RESPONSE_UNIT_ALREADY_DISPATCHED = "RESPONSE_UNIT_ALREADY_DISPATCHED",
|
|
108
|
+
IDEMPOTENCY_KEY_REUSED = "IDEMPOTENCY_KEY_REUSED",
|
|
109
|
+
DISPATCH_NOT_FOUND = "DISPATCH_NOT_FOUND",
|
|
110
|
+
INVALID_STATUS_TRANSITION = "INVALID_STATUS_TRANSITION",
|
|
111
|
+
NOTIFICATION_NOT_RESENDABLE = "NOTIFICATION_NOT_RESENDABLE",
|
|
112
|
+
ORGANIZATION_UNAVAILABLE = "ORGANIZATION_UNAVAILABLE"
|
|
113
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { ResponseCapability, ResponseUnitAvailability } from '../../response-unit/enums/response-unit/response-capability.enum';
|
|
2
|
+
import { IncidentDispatchBlocker, ResponseCapabilityRequirementSource, ResponseUnitCapabilityMatch, ResponseUnitDispatchConstraint, ResponseUnitDispatchNotificationFailure, ResponseUnitDispatchNotificationStatus, ResponseUnitDispatchStatus, ResponseUnitDispatchTransitionSource, ResponseUnitDistanceBasis, ResponseUnitLocationFreshness, ResponseUnitLocationSource, ResponseUnitRecommendationReason, ResponseUnitRecommendationStatus } from '../enums/response-unit-dispatch-enums';
|
|
3
|
+
export interface ResponseCapabilityRequirementDto {
|
|
4
|
+
capabilities: ResponseCapability[];
|
|
5
|
+
source: ResponseCapabilityRequirementSource;
|
|
6
|
+
}
|
|
7
|
+
export interface ResponseUnitCandidateLocationDto {
|
|
8
|
+
source: ResponseUnitLocationSource;
|
|
9
|
+
freshness: ResponseUnitLocationFreshness;
|
|
10
|
+
latitude: number | null;
|
|
11
|
+
longitude: number | null;
|
|
12
|
+
recordedAt: string | null;
|
|
13
|
+
ageSeconds: number | null;
|
|
14
|
+
accuracyMetres: number | null;
|
|
15
|
+
}
|
|
16
|
+
export interface ResponseUnitTravelEstimateDto {
|
|
17
|
+
distanceMetres: number;
|
|
18
|
+
durationSeconds: number | null;
|
|
19
|
+
basis: ResponseUnitDistanceBasis;
|
|
20
|
+
trafficAware: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface ResponseUnitCandidateDto {
|
|
23
|
+
responseUnitId: number;
|
|
24
|
+
name: string;
|
|
25
|
+
responseUnitType: string;
|
|
26
|
+
vehicleType: string | null;
|
|
27
|
+
registrationNumber: string | null;
|
|
28
|
+
controlCentreId: number | null;
|
|
29
|
+
sameControlCentre: boolean;
|
|
30
|
+
operationalStatus: string | null;
|
|
31
|
+
availability: ResponseUnitAvailability;
|
|
32
|
+
engagedIncidentId: number | null;
|
|
33
|
+
capabilities: ResponseCapability[];
|
|
34
|
+
capabilityMatch: ResponseUnitCapabilityMatch;
|
|
35
|
+
matchedCapabilities: ResponseCapability[];
|
|
36
|
+
location: ResponseUnitCandidateLocationDto;
|
|
37
|
+
distanceMetres: number | null;
|
|
38
|
+
travel: ResponseUnitTravelEstimateDto | null;
|
|
39
|
+
hasPhoneNumber: boolean;
|
|
40
|
+
dispatchable: boolean;
|
|
41
|
+
recommendable: boolean;
|
|
42
|
+
constraints: ResponseUnitDispatchConstraint[];
|
|
43
|
+
reasons: ResponseUnitRecommendationReason[];
|
|
44
|
+
rank: number | null;
|
|
45
|
+
}
|
|
46
|
+
export interface ResponseUnitRecommendationSummaryDto {
|
|
47
|
+
configuredUnits: number;
|
|
48
|
+
dispatchableUnits: number;
|
|
49
|
+
recommendableUnits: number;
|
|
50
|
+
engagedUnits: number;
|
|
51
|
+
unavailableUnits: number;
|
|
52
|
+
unitsWithoutLocation: number;
|
|
53
|
+
truncated: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface ResponseUnitDispatchUnitSnapshotDto {
|
|
56
|
+
availability: ResponseUnitAvailability;
|
|
57
|
+
operationalStatus: string | null;
|
|
58
|
+
capabilities: ResponseCapability[];
|
|
59
|
+
capabilityMatch: ResponseUnitCapabilityMatch;
|
|
60
|
+
sameControlCentre: boolean;
|
|
61
|
+
locationSource: ResponseUnitLocationSource;
|
|
62
|
+
locationFreshness: ResponseUnitLocationFreshness;
|
|
63
|
+
locationRecordedAt: string | null;
|
|
64
|
+
locationAgeSeconds: number | null;
|
|
65
|
+
distanceMetres: number | null;
|
|
66
|
+
hasPhoneNumber: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface ResponseUnitDispatchRecommendationSnapshotDto {
|
|
69
|
+
generatedAt: string;
|
|
70
|
+
status: ResponseUnitRecommendationStatus;
|
|
71
|
+
recommendedResponseUnitId: number | null;
|
|
72
|
+
ranked: Array<{
|
|
73
|
+
responseUnitId: number;
|
|
74
|
+
rank: number;
|
|
75
|
+
distanceMetres: number | null;
|
|
76
|
+
capabilityMatch: ResponseUnitCapabilityMatch;
|
|
77
|
+
locationFreshness: ResponseUnitLocationFreshness;
|
|
78
|
+
}>;
|
|
79
|
+
requiredCapabilities: ResponseCapability[];
|
|
80
|
+
requirementSource: ResponseCapabilityRequirementSource;
|
|
81
|
+
liveTrackingAvailable: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface ResponseUnitDispatchNotificationStateDto {
|
|
84
|
+
channel: 'SMS';
|
|
85
|
+
status: ResponseUnitDispatchNotificationStatus;
|
|
86
|
+
failureReason: ResponseUnitDispatchNotificationFailure | null;
|
|
87
|
+
/** Masked (+2547******78). */
|
|
88
|
+
recipient: string | null;
|
|
89
|
+
attempts: number;
|
|
90
|
+
requestedAt: string | null;
|
|
91
|
+
resultAt: string | null;
|
|
92
|
+
providerCode: string | null;
|
|
93
|
+
}
|
|
94
|
+
/** One response unit sent to one incident. */
|
|
95
|
+
export interface IncidentResponseUnitDispatchDto {
|
|
96
|
+
id: number;
|
|
97
|
+
reference: string;
|
|
98
|
+
incidentId: number;
|
|
99
|
+
organizationId: number;
|
|
100
|
+
controlCentreId: number | null;
|
|
101
|
+
responseUnitId: number;
|
|
102
|
+
responseUnitName: string;
|
|
103
|
+
responseUnitType: string | null;
|
|
104
|
+
responseUnitControlCentreId: number | null;
|
|
105
|
+
status: ResponseUnitDispatchStatus;
|
|
106
|
+
dispatchedByUserId: number;
|
|
107
|
+
dispatchedAt: string;
|
|
108
|
+
wasRecommended: boolean;
|
|
109
|
+
recommendedResponseUnitId: number | null;
|
|
110
|
+
shownRecommendedResponseUnitId: number | null;
|
|
111
|
+
overrideReason: string | null;
|
|
112
|
+
notes: string | null;
|
|
113
|
+
distanceMetres: number | null;
|
|
114
|
+
unitSnapshot: ResponseUnitDispatchUnitSnapshotDto;
|
|
115
|
+
recommendationSnapshot: ResponseUnitDispatchRecommendationSnapshotDto | null;
|
|
116
|
+
statusChangedAt: string;
|
|
117
|
+
statusChangedByUserId: number | null;
|
|
118
|
+
statusSource: ResponseUnitDispatchTransitionSource;
|
|
119
|
+
statusReason: string | null;
|
|
120
|
+
acknowledgedAt: string | null;
|
|
121
|
+
enRouteAt: string | null;
|
|
122
|
+
onSceneAt: string | null;
|
|
123
|
+
completedAt: string | null;
|
|
124
|
+
cancelledAt: string | null;
|
|
125
|
+
/** When the unit declined (REJECTED). Absent from servers older than the SLA release. */
|
|
126
|
+
rejectedAt?: string | null;
|
|
127
|
+
/** How the arrival on scene came to be known (inferred from tracking, confirmed by the control room...). */
|
|
128
|
+
arrivalSource?: string | null;
|
|
129
|
+
notification: ResponseUnitDispatchNotificationStateDto;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
}
|
|
133
|
+
/** `GET /api/incidents/:id/response-unit-recommendation`. */
|
|
134
|
+
export interface ResponseUnitRecommendationDto {
|
|
135
|
+
incidentId: number;
|
|
136
|
+
organizationId: number;
|
|
137
|
+
controlCentreId: number | null;
|
|
138
|
+
generatedAt: string;
|
|
139
|
+
status: ResponseUnitRecommendationStatus;
|
|
140
|
+
incidentBlockers: IncidentDispatchBlocker[];
|
|
141
|
+
requirement: ResponseCapabilityRequirementDto;
|
|
142
|
+
recommended: ResponseUnitCandidateDto | null;
|
|
143
|
+
alternatives: ResponseUnitCandidateDto[];
|
|
144
|
+
otherUnits: ResponseUnitCandidateDto[];
|
|
145
|
+
activeDispatches: IncidentResponseUnitDispatchDto[];
|
|
146
|
+
summary: ResponseUnitRecommendationSummaryDto;
|
|
147
|
+
incidentLocationAvailable: boolean;
|
|
148
|
+
liveTrackingAvailable: boolean;
|
|
149
|
+
travelTimeEnabled: boolean;
|
|
150
|
+
}
|
|
151
|
+
/** `POST /api/incidents/:id/response-unit-dispatches` body. Send an Idempotency-Key header with it. */
|
|
152
|
+
export interface DispatchResponseUnitRequest {
|
|
153
|
+
responseUnitId: number;
|
|
154
|
+
/** The unit the screen showed as recommended. */
|
|
155
|
+
recommendedResponseUnitId?: number | null;
|
|
156
|
+
/** Optional: why another unit than the recommended one. */
|
|
157
|
+
overrideReason?: string;
|
|
158
|
+
notes?: string;
|
|
159
|
+
}
|
|
160
|
+
/** `POST /api/incidents/:id/response-unit-dispatches` response. */
|
|
161
|
+
export interface DispatchResponseUnitResultDto {
|
|
162
|
+
dispatch: IncidentResponseUnitDispatchDto;
|
|
163
|
+
/** A repeat of an earlier request (same Idempotency-Key): nothing was sent again. */
|
|
164
|
+
replayed: boolean;
|
|
165
|
+
}
|
|
166
|
+
/** `POST /api/incidents/:id/response-unit-dispatches/:dispatchId/status` body. */
|
|
167
|
+
export interface UpdateResponseUnitDispatchStatusRequest {
|
|
168
|
+
status: ResponseUnitDispatchStatus;
|
|
169
|
+
reason?: string;
|
|
170
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ResponseCapability, ResponseUnitAvailability } from '../../response-unit/enums/response-unit/response-capability.enum';
|
|
2
|
+
import { IncidentDispatchBlocker, ResponseUnitDispatchConstraint, ResponseUnitDispatchNotificationFailure, ResponseUnitDispatchNotificationStatus, ResponseUnitDispatchStatus } from '../enums/response-unit-dispatch-enums';
|
|
3
|
+
import { ResponseUnitCandidateDto } from '../interfaces/response-unit-dispatch.dto';
|
|
4
|
+
export declare const RESPONSE_CAPABILITY_LABELS: Readonly<Record<ResponseCapability, string>>;
|
|
5
|
+
export declare const RESPONSE_UNIT_AVAILABILITY_LABELS: Readonly<Record<ResponseUnitAvailability, string>>;
|
|
6
|
+
export declare const RESPONSE_UNIT_DISPATCH_STATUS_LABELS: Readonly<Record<ResponseUnitDispatchStatus, string>>;
|
|
7
|
+
/** Why a unit cannot go, or is not suggested - as the dispatcher reads it. */
|
|
8
|
+
export declare const RESPONSE_UNIT_DISPATCH_CONSTRAINT_LABELS: Readonly<Record<ResponseUnitDispatchConstraint, string>>;
|
|
9
|
+
export declare const INCIDENT_DISPATCH_BLOCKER_LABELS: Readonly<Record<IncidentDispatchBlocker, string>>;
|
|
10
|
+
export declare const RESPONSE_UNIT_DISPATCH_NOTIFICATION_STATUS_LABELS: Readonly<Record<ResponseUnitDispatchNotificationStatus, string>>;
|
|
11
|
+
export declare const RESPONSE_UNIT_DISPATCH_NOTIFICATION_FAILURE_LABELS: Readonly<Record<ResponseUnitDispatchNotificationFailure, string>>;
|
|
12
|
+
/** Where each dispatch may be moved next (forward only; steps may be skipped). */
|
|
13
|
+
export declare const RESPONSE_UNIT_DISPATCH_NEXT_STATUSES: Readonly<Record<ResponseUnitDispatchStatus, readonly ResponseUnitDispatchStatus[]>>;
|
|
14
|
+
export declare const ACTIVE_RESPONSE_UNIT_DISPATCH_STATUSES: readonly ResponseUnitDispatchStatus[];
|
|
15
|
+
export declare function isActiveResponseUnitDispatch(status: ResponseUnitDispatchStatus | string | null | undefined): boolean;
|
|
16
|
+
/** "850 m", "2.4 km", "38 km". */
|
|
17
|
+
export declare function formatDispatchDistance(metres: number | null | undefined): string;
|
|
18
|
+
/** "18 sec ago", "4 min ago", "2 h ago". */
|
|
19
|
+
export declare function formatDispatchAge(seconds: number | null | undefined): string;
|
|
20
|
+
/** "7 min", "1 h 05 min". */
|
|
21
|
+
export declare function formatDispatchDuration(seconds: number | null | undefined): string;
|
|
22
|
+
/** A candidate's position, as one short phrase: "Live 18 sec ago", "Live, out of date (6 min ago)", "Base location". */
|
|
23
|
+
export declare function describeCandidateLocation(candidate: ResponseUnitCandidateDto, ageSeconds?: number | null): string;
|
|
24
|
+
/**
|
|
25
|
+
* The "Recommended because" lines, from the reasons and the numbers behind
|
|
26
|
+
* them. Never the scoring - the facts it rests on, in the order it weighs them.
|
|
27
|
+
*/
|
|
28
|
+
export declare function explainRecommendation(candidate: ResponseUnitCandidateDto, ageSeconds?: number | null): string[];
|
|
29
|
+
/** The reasons a unit cannot go or is not suggested, as labels. */
|
|
30
|
+
export declare function describeCandidateConstraints(candidate: ResponseUnitCandidateDto): string[];
|
|
@@ -7,6 +7,12 @@ export declare enum IncidentActions {
|
|
|
7
7
|
ON_HOLD = "On Hold",
|
|
8
8
|
ASSIGNED = "Assigned",
|
|
9
9
|
RESPONSE_UNIT_ASSIGNED = "Response Unit Assigned",
|
|
10
|
+
RESPONSE_UNIT_DISPATCHED = "Response Unit Dispatched",
|
|
11
|
+
RESPONSE_UNIT_DISPATCH_UPDATED = "Response Unit Dispatch Updated",
|
|
12
|
+
/** The emergency response reached a milestone (acknowledged, triaged, arrival inferred, assessed...). */
|
|
13
|
+
EMERGENCY_MILESTONE = "Emergency Milestone",
|
|
14
|
+
/** The emergency SLA changed (a clock warned, breached, paused, was excused...) or escalated. */
|
|
15
|
+
SLA_UPDATED = "SLA Updated",
|
|
10
16
|
REOPENED = "Reopened",
|
|
11
17
|
REPORT_CREATED = "Report Created",
|
|
12
18
|
COMMENTED = "Commented",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ResponseCapability } from "../../response-unit/enums/response-unit/response-capability.enum";
|
|
1
2
|
import { IncidentType } from "./incident-type";
|
|
2
3
|
export interface IncidentCategory {
|
|
3
4
|
id?: number;
|
|
@@ -13,5 +14,10 @@ export interface IncidentCategory {
|
|
|
13
14
|
* `includeSystem=true`.
|
|
14
15
|
*/
|
|
15
16
|
isSystem?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Response capabilities this kind of incident needs; a unit with ANY of them
|
|
19
|
+
* is suitable. A type's list overrides its category's; empty = no requirement.
|
|
20
|
+
*/
|
|
21
|
+
responseCapabilities?: ResponseCapability[];
|
|
16
22
|
types?: IncidentType[];
|
|
17
23
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ResponseCapability } from "../../response-unit/enums/response-unit/response-capability.enum";
|
|
1
2
|
import { IncidentCategory } from "./incident-category";
|
|
2
3
|
export interface IncidentType {
|
|
3
4
|
id?: number;
|
|
@@ -14,5 +15,10 @@ export interface IncidentType {
|
|
|
14
15
|
* `includeSystem=true`.
|
|
15
16
|
*/
|
|
16
17
|
isSystem?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Response capabilities this kind of incident needs; a unit with ANY of them
|
|
20
|
+
* is suitable. A type's list overrides its category's; empty = no requirement.
|
|
21
|
+
*/
|
|
22
|
+
responseCapabilities?: ResponseCapability[];
|
|
17
23
|
category?: IncidentCategory;
|
|
18
24
|
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/** The milestones an emergency is measured against, each with its own clock. */
|
|
2
|
+
export declare enum IncidentSlaStage {
|
|
3
|
+
ACKNOWLEDGEMENT = "ACKNOWLEDGEMENT",
|
|
4
|
+
TRIAGE = "TRIAGE",
|
|
5
|
+
DISPATCH = "DISPATCH",
|
|
6
|
+
RESPONSE_UNIT_ACCEPTANCE = "RESPONSE_UNIT_ACCEPTANCE",
|
|
7
|
+
MOBILIZATION = "MOBILIZATION",
|
|
8
|
+
ARRIVAL = "ARRIVAL",
|
|
9
|
+
INITIAL_ASSESSMENT = "INITIAL_ASSESSMENT",
|
|
10
|
+
RESOLUTION = "RESOLUTION",
|
|
11
|
+
CLOSURE = "CLOSURE"
|
|
12
|
+
}
|
|
13
|
+
/** Where one SLA instance stands. BREACHED is permanent; an exception only changes how it counts. */
|
|
14
|
+
export declare enum IncidentSlaStatus {
|
|
15
|
+
NOT_STARTED = "NOT_STARTED",
|
|
16
|
+
RUNNING = "RUNNING",
|
|
17
|
+
WARNING = "WARNING",
|
|
18
|
+
AT_RISK = "AT_RISK",
|
|
19
|
+
PAUSED = "PAUSED",
|
|
20
|
+
BREACHED = "BREACHED",
|
|
21
|
+
MET = "MET",
|
|
22
|
+
WAIVED = "WAIVED",
|
|
23
|
+
CANCELLED = "CANCELLED",
|
|
24
|
+
EXPIRED = "EXPIRED"
|
|
25
|
+
}
|
|
26
|
+
/** The response's milestones (not the incident's status, which is unchanged). */
|
|
27
|
+
export declare enum EmergencyIncidentStage {
|
|
28
|
+
INCIDENT_CREATED = "INCIDENT_CREATED",
|
|
29
|
+
ACKNOWLEDGED = "ACKNOWLEDGED",
|
|
30
|
+
TRIAGED = "TRIAGED",
|
|
31
|
+
DISPATCH_INITIATED = "DISPATCH_INITIATED",
|
|
32
|
+
RESPONSE_UNIT_ASSIGNED = "RESPONSE_UNIT_ASSIGNED",
|
|
33
|
+
RESPONSE_UNIT_ACCEPTED = "RESPONSE_UNIT_ACCEPTED",
|
|
34
|
+
EN_ROUTE = "EN_ROUTE",
|
|
35
|
+
ON_SCENE = "ON_SCENE",
|
|
36
|
+
STABILIZING = "STABILIZING",
|
|
37
|
+
RESOLVED = "RESOLVED",
|
|
38
|
+
CLOSED = "CLOSED"
|
|
39
|
+
}
|
|
40
|
+
export declare enum IncidentSlaEventType {
|
|
41
|
+
SLA_STARTED = "SLA_STARTED",
|
|
42
|
+
SLA_WARNING = "SLA_WARNING",
|
|
43
|
+
SLA_AT_RISK = "SLA_AT_RISK",
|
|
44
|
+
SLA_BREACHED = "SLA_BREACHED",
|
|
45
|
+
SLA_MET = "SLA_MET",
|
|
46
|
+
SLA_COMPLETED_LATE = "SLA_COMPLETED_LATE",
|
|
47
|
+
SLA_CANCELLED = "SLA_CANCELLED",
|
|
48
|
+
SLA_EXPIRED = "SLA_EXPIRED",
|
|
49
|
+
SLA_WAIVED = "SLA_WAIVED",
|
|
50
|
+
SLA_PAUSE_REQUESTED = "SLA_PAUSE_REQUESTED",
|
|
51
|
+
SLA_PAUSE_REJECTED = "SLA_PAUSE_REJECTED",
|
|
52
|
+
SLA_PAUSED = "SLA_PAUSED",
|
|
53
|
+
SLA_RESUMED = "SLA_RESUMED",
|
|
54
|
+
SLA_EXCEPTION_REQUESTED = "SLA_EXCEPTION_REQUESTED",
|
|
55
|
+
SLA_EXCEPTION_APPROVED = "SLA_EXCEPTION_APPROVED",
|
|
56
|
+
SLA_EXCEPTION_REJECTED = "SLA_EXCEPTION_REJECTED",
|
|
57
|
+
MILESTONE_RECORDED = "MILESTONE_RECORDED",
|
|
58
|
+
PRIORITY_TRIAGED = "PRIORITY_TRIAGED",
|
|
59
|
+
ETA_CHANGED = "ETA_CHANGED",
|
|
60
|
+
ARRIVAL_INFERRED = "ARRIVAL_INFERRED",
|
|
61
|
+
ARRIVAL_CONFIRMED = "ARRIVAL_CONFIRMED",
|
|
62
|
+
UNIT_RECOMMENDED = "UNIT_RECOMMENDED",
|
|
63
|
+
UNIT_REASSIGNED = "UNIT_REASSIGNED",
|
|
64
|
+
ESCALATED = "ESCALATED",
|
|
65
|
+
NOTIFICATION_SENT = "NOTIFICATION_SENT",
|
|
66
|
+
NOTIFICATION_FAILED = "NOTIFICATION_FAILED",
|
|
67
|
+
AUTO_CLOSE_DEFERRED = "AUTO_CLOSE_DEFERRED",
|
|
68
|
+
INCIDENT_AUTO_CLOSED = "INCIDENT_AUTO_CLOSED",
|
|
69
|
+
INCIDENT_CLOSED = "INCIDENT_CLOSED"
|
|
70
|
+
}
|
|
71
|
+
export declare enum IncidentActorType {
|
|
72
|
+
CONTROL_CENTRE = "CONTROL_CENTRE",
|
|
73
|
+
RESPONDER = "RESPONDER",
|
|
74
|
+
SYSTEM = "SYSTEM",
|
|
75
|
+
TRACKING = "TRACKING",
|
|
76
|
+
REPORTER = "REPORTER",
|
|
77
|
+
PARTNER = "PARTNER"
|
|
78
|
+
}
|
|
79
|
+
export declare enum IncidentSlaEventSource {
|
|
80
|
+
CONTROL_ROOM = "CONTROL_ROOM",
|
|
81
|
+
RESPONDER_APP = "RESPONDER_APP",
|
|
82
|
+
WORKFLOW = "WORKFLOW",
|
|
83
|
+
TRACKING = "TRACKING",
|
|
84
|
+
INCIDENT_LIFECYCLE = "INCIDENT_LIFECYCLE",
|
|
85
|
+
DISPATCH = "DISPATCH",
|
|
86
|
+
PARTNER = "PARTNER",
|
|
87
|
+
NOTIFICATION = "NOTIFICATION",
|
|
88
|
+
SYSTEM = "SYSTEM"
|
|
89
|
+
}
|
|
90
|
+
export declare enum SlaEscalationLevel {
|
|
91
|
+
DISPATCHER = "DISPATCHER",
|
|
92
|
+
SUPERVISOR = "SUPERVISOR",
|
|
93
|
+
DUTY_MANAGER = "DUTY_MANAGER",
|
|
94
|
+
ORGANIZATION_ADMIN = "ORGANIZATION_ADMIN"
|
|
95
|
+
}
|
|
96
|
+
export declare enum SlaEscalationTrigger {
|
|
97
|
+
SLA_WARNING = "SLA_WARNING",
|
|
98
|
+
SLA_AT_RISK = "SLA_AT_RISK",
|
|
99
|
+
SLA_BREACHED = "SLA_BREACHED",
|
|
100
|
+
ETA_AT_RISK = "ETA_AT_RISK",
|
|
101
|
+
ETA_LIKELY_BREACH = "ETA_LIKELY_BREACH",
|
|
102
|
+
ETA_UNCERTAIN = "ETA_UNCERTAIN",
|
|
103
|
+
DISPATCH_REJECTED = "DISPATCH_REJECTED",
|
|
104
|
+
DISPATCH_CANCELLED = "DISPATCH_CANCELLED"
|
|
105
|
+
}
|
|
106
|
+
export declare enum SlaPauseReason {
|
|
107
|
+
WAITING_FOR_CUSTOMER = "WAITING_FOR_CUSTOMER",
|
|
108
|
+
WAITING_FOR_EXTERNAL_AGENCY = "WAITING_FOR_EXTERNAL_AGENCY",
|
|
109
|
+
LOCATION_INACCESSIBLE = "LOCATION_INACCESSIBLE",
|
|
110
|
+
ENVIRONMENT_UNSAFE = "ENVIRONMENT_UNSAFE",
|
|
111
|
+
INCIDENT_DEESCALATED = "INCIDENT_DEESCALATED",
|
|
112
|
+
OTHER_APPROVED_REASON = "OTHER_APPROVED_REASON"
|
|
113
|
+
}
|
|
114
|
+
export declare enum SlaPauseStatus {
|
|
115
|
+
REQUESTED = "REQUESTED",
|
|
116
|
+
ACTIVE = "ACTIVE",
|
|
117
|
+
ENDED = "ENDED",
|
|
118
|
+
REJECTED = "REJECTED",
|
|
119
|
+
WITHDRAWN = "WITHDRAWN"
|
|
120
|
+
}
|
|
121
|
+
export declare enum SlaExceptionReason {
|
|
122
|
+
ROAD_INACCESSIBLE = "ROAD_INACCESSIBLE",
|
|
123
|
+
SEVERE_WEATHER = "SEVERE_WEATHER",
|
|
124
|
+
CUSTOMER_UNREACHABLE = "CUSTOMER_UNREACHABLE",
|
|
125
|
+
INCORRECT_LOCATION = "INCORRECT_LOCATION",
|
|
126
|
+
EXTERNAL_AGENCY_DELAY = "EXTERNAL_AGENCY_DELAY",
|
|
127
|
+
SAFETY_HOLD = "SAFETY_HOLD",
|
|
128
|
+
SYSTEM_OUTAGE = "SYSTEM_OUTAGE",
|
|
129
|
+
OTHER = "OTHER"
|
|
130
|
+
}
|
|
131
|
+
export declare enum SlaExceptionStatus {
|
|
132
|
+
NONE = "NONE",
|
|
133
|
+
REQUESTED = "REQUESTED",
|
|
134
|
+
APPROVED = "APPROVED",
|
|
135
|
+
REJECTED = "REJECTED"
|
|
136
|
+
}
|
|
137
|
+
export declare enum SlaPolicyScope {
|
|
138
|
+
PLATFORM = "PLATFORM",
|
|
139
|
+
ORGANIZATION = "ORGANIZATION",
|
|
140
|
+
CONTROL_CENTRE = "CONTROL_CENTRE",
|
|
141
|
+
INCIDENT_CATEGORY = "INCIDENT_CATEGORY",
|
|
142
|
+
INCIDENT_TYPE = "INCIDENT_TYPE",
|
|
143
|
+
PRIORITY = "PRIORITY",
|
|
144
|
+
ZONE = "ZONE"
|
|
145
|
+
}
|
|
146
|
+
export declare enum IncidentClosureReason {
|
|
147
|
+
MANUAL = "MANUAL",
|
|
148
|
+
AUTO_CLOSED_AFTER_RESOLUTION_TIMEOUT = "AUTO_CLOSED_AFTER_RESOLUTION_TIMEOUT"
|
|
149
|
+
}
|
|
150
|
+
export declare enum IncidentArrivalSource {
|
|
151
|
+
ARRIVAL_CONFIRMED_BY_RESPONDER = "ARRIVAL_CONFIRMED_BY_RESPONDER",
|
|
152
|
+
ARRIVAL_CONFIRMED_BY_CONTROL_CENTRE = "ARRIVAL_CONFIRMED_BY_CONTROL_CENTRE",
|
|
153
|
+
ARRIVAL_INFERRED_FROM_TRACKING = "ARRIVAL_INFERRED_FROM_TRACKING"
|
|
154
|
+
}
|
|
155
|
+
export declare enum EtaStatus {
|
|
156
|
+
ON_TRACK = "ON_TRACK",
|
|
157
|
+
AT_RISK = "AT_RISK",
|
|
158
|
+
LIKELY_BREACH = "LIKELY_BREACH",
|
|
159
|
+
UNCERTAIN = "UNCERTAIN",
|
|
160
|
+
NO_TARGET = "NO_TARGET",
|
|
161
|
+
ARRIVED = "ARRIVED"
|
|
162
|
+
}
|
|
163
|
+
export declare enum EtaBasis {
|
|
164
|
+
ESTIMATE = "ESTIMATE",
|
|
165
|
+
ROAD_ROUTE = "ROAD_ROUTE"
|
|
166
|
+
}
|
|
167
|
+
export declare enum SlaOverallState {
|
|
168
|
+
NOT_TRACKED = "NOT_TRACKED",
|
|
169
|
+
ON_TRACK = "ON_TRACK",
|
|
170
|
+
WARNING = "WARNING",
|
|
171
|
+
AT_RISK = "AT_RISK",
|
|
172
|
+
BREACHED = "BREACHED",
|
|
173
|
+
PAUSED = "PAUSED",
|
|
174
|
+
MET = "MET",
|
|
175
|
+
EXCEPTION = "EXCEPTION"
|
|
176
|
+
}
|
|
177
|
+
export declare enum SlaPriorityLevel {
|
|
178
|
+
P1 = "P1",
|
|
179
|
+
P2 = "P2",
|
|
180
|
+
P3 = "P3",
|
|
181
|
+
P4 = "P4"
|
|
182
|
+
}
|
|
183
|
+
export declare enum IncidentSlaErrorCode {
|
|
184
|
+
SLA_NOT_TRACKED = "SLA_NOT_TRACKED",
|
|
185
|
+
SLA_INSTANCE_NOT_FOUND = "SLA_INSTANCE_NOT_FOUND",
|
|
186
|
+
SLA_PAUSE_NOT_FOUND = "SLA_PAUSE_NOT_FOUND",
|
|
187
|
+
SLA_POLICY_NOT_FOUND = "SLA_POLICY_NOT_FOUND",
|
|
188
|
+
SLA_INVALID_STATE = "SLA_INVALID_STATE",
|
|
189
|
+
SLA_APPROVER_REQUIRED = "SLA_APPROVER_REQUIRED",
|
|
190
|
+
SLA_SELF_APPROVAL = "SLA_SELF_APPROVAL",
|
|
191
|
+
SLA_POLICY_INVALID = "SLA_POLICY_INVALID",
|
|
192
|
+
SLA_POLICY_FORBIDDEN = "SLA_POLICY_FORBIDDEN",
|
|
193
|
+
INCIDENT_NOT_EMERGENCY = "INCIDENT_NOT_EMERGENCY",
|
|
194
|
+
INCIDENT_ENDED = "INCIDENT_ENDED",
|
|
195
|
+
SLA_ESCALATION_RULE_NOT_FOUND = "SLA_ESCALATION_RULE_NOT_FOUND"
|
|
196
|
+
}
|