clarion-shared-types 1.0.87 → 1.0.89
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.
|
@@ -6,6 +6,7 @@ import { ResponseUnit } from "../../response-unit";
|
|
|
6
6
|
import { User } from "../../user";
|
|
7
7
|
import { WebNotification } from "../../web-notification";
|
|
8
8
|
import { IncidentEntitlementScope } from "../../entitlement/enums/incident-entitlement-scope.enum";
|
|
9
|
+
import { IncidentPartnerRoutingStatus } from "../../partner/enums/partner-enums";
|
|
9
10
|
import { IncidentDispatchScope } from "../../alert-dispatch/enums/incident-dispatch-scope.enum";
|
|
10
11
|
export interface PaginationParams {
|
|
11
12
|
page?: number;
|
|
@@ -29,6 +30,13 @@ export interface IncidentQueryParams extends PaginationParams {
|
|
|
29
30
|
* for `ENTITLED` + `SUPPRESSED`. Omitting it applies no dispatch filter.
|
|
30
31
|
*/
|
|
31
32
|
dispatchScope?: IncidentDispatchScope;
|
|
33
|
+
/**
|
|
34
|
+
* Narrows to incidents by how their third-party routing went - "show me
|
|
35
|
+
* everything an ambulance firm was asked for", or the far more urgent
|
|
36
|
+
* "show me everything where asking one FAILED". Omitting it applies no
|
|
37
|
+
* partner filter.
|
|
38
|
+
*/
|
|
39
|
+
partnerRoutingStatus?: IncidentPartnerRoutingStatus;
|
|
32
40
|
}
|
|
33
41
|
export interface PaginatedResponse<T> {
|
|
34
42
|
data: T[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IncidentPartnerRoutingStatus } from "../../partner/enums/partner-enums";
|
|
2
|
+
import { IncidentPartnerRoutingSnapshotDto } from "../../partner/interfaces/incident-partner-routing.dto";
|
|
1
3
|
import { MapLocation } from "../../common/interfaces/map-location";
|
|
2
4
|
import { IncidentAppId } from "../enums/incident-app-id.enum";
|
|
3
5
|
import { IncidentChannel } from "../enums/incident-channel.enum";
|
|
@@ -77,6 +79,17 @@ export interface Incident {
|
|
|
77
79
|
* billing withheld is not an alert somebody chose to withhold.
|
|
78
80
|
*/
|
|
79
81
|
notifyServiceProviderRequested?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Whether this incident was handed to a third-party partner (an ambulance
|
|
84
|
+
* firm, a private security responder) and how that went. Denormalised onto
|
|
85
|
+
* the incident by clarion-partner-services so the list and detail screens
|
|
86
|
+
* can answer "was an ambulance called for this?" in one request.
|
|
87
|
+
*/
|
|
88
|
+
partnerRoutingStatus?: IncidentPartnerRoutingStatus;
|
|
89
|
+
/** When routing was last evaluated for this incident. */
|
|
90
|
+
partnerRoutedAt?: string | null;
|
|
91
|
+
/** Per-partner detail behind `partnerRoutingStatus`. */
|
|
92
|
+
partnerRoutingSnapshot?: IncidentPartnerRoutingSnapshotDto | null;
|
|
80
93
|
createdAt?: string;
|
|
81
94
|
updatedAt?: string;
|
|
82
95
|
category?: IncidentCategory;
|