resqueserve-core 4.9.0-rc.2 → 4.9.0-rc.20

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 (4) hide show
  1. package/main.d.ts +752 -42
  2. package/main.js +4643 -491
  3. package/package.json +2 -3
  4. package/main.d.ts.map +0 -1
package/main.d.ts CHANGED
@@ -298,6 +298,11 @@ export interface Area {
298
298
  district: IAddressDistrict;
299
299
  }
300
300
  export interface ChatMessage {
301
+ /**
302
+ * Gets the unique identifier of the message.
303
+ *
304
+ */
305
+ id: string;
301
306
  /**
302
307
  * Gets or sets the user who sent the message. Is null if system message.
303
308
  *
@@ -309,10 +314,20 @@ export interface ChatMessage {
309
314
  */
310
315
  createdOn: string;
311
316
  /**
312
- * Gets or sets the text content of the message.
317
+ * Gets or sets the text content of the message (system messages: in English, see ).
313
318
  *
314
319
  */
315
320
  text: string;
321
+ /**
322
+ * Gets the localization key of a system message; clients show it in their own language with and fall back to . Null for user messages.
323
+ *
324
+ */
325
+ textKey: string;
326
+ /**
327
+ * Gets the arguments of ; an argument that is a localization key itself is translated too.
328
+ *
329
+ */
330
+ textArguments: string[] | null;
316
331
  /**
317
332
  * Gets or sets a value indicating whether the sender is a supervisor.
318
333
  *
@@ -729,6 +744,11 @@ export interface ResourceLookupDto {
729
744
  callsign: string;
730
745
  callsignShort: string;
731
746
  station: string;
747
+ /**
748
+ * The callsign the search matched best (callsign, short, GPS or verbal); null without search.
749
+ *
750
+ */
751
+ matchedCallsign: string;
732
752
  /**
733
753
  * Gets or sets the cache version associated with the lookup entity.
734
754
  *
@@ -782,6 +802,250 @@ export interface GeocodingResult {
782
802
  */
783
803
  commune: string;
784
804
  }
805
+ export declare enum HospitalAllocationAirway {
806
+ /**
807
+ * A-Frei
808
+ *
809
+ */
810
+ Free = 1,
811
+ /**
812
+ * A-Risiko
813
+ *
814
+ */
815
+ AtRisk = 2,
816
+ /**
817
+ * A-Intubiert
818
+ *
819
+ */
820
+ Intubated = 3
821
+ }
822
+ export declare enum HospitalAllocationBreathing {
823
+ /**
824
+ * B-Spontan
825
+ *
826
+ */
827
+ Spontaneous = 1,
828
+ /**
829
+ * B-Nicht invasiv
830
+ *
831
+ */
832
+ NonInvasive = 2,
833
+ /**
834
+ * B-Invasiv
835
+ *
836
+ */
837
+ Invasive = 3
838
+ }
839
+ export declare enum HospitalAllocationCirculation {
840
+ /**
841
+ * C-Stabil
842
+ *
843
+ */
844
+ Stable = 1,
845
+ /**
846
+ * C-Medikamentös
847
+ *
848
+ */
849
+ Medicated = 2,
850
+ /**
851
+ * C-Instabil
852
+ *
853
+ */
854
+ Unstable = 3,
855
+ /**
856
+ * C-Reanimiert
857
+ *
858
+ */
859
+ Resuscitated = 4
860
+ }
861
+ export declare enum HospitalAllocationDisability {
862
+ /**
863
+ * D-Wachzustand
864
+ *
865
+ */
866
+ Awake = 1,
867
+ /**
868
+ * D-Getrübt
869
+ *
870
+ */
871
+ Clouded = 2,
872
+ /**
873
+ * D-Koma
874
+ *
875
+ */
876
+ Coma = 3,
877
+ /**
878
+ * D-Sediert
879
+ *
880
+ */
881
+ Sedated = 4,
882
+ /**
883
+ * D-Narkotisiert
884
+ *
885
+ */
886
+ Anesthetized = 5
887
+ }
888
+ export declare enum HospitalAllocationOccasion {
889
+ NotSpecified = 0,
890
+ DomesticOperation = 1,
891
+ OtherOperation = 2,
892
+ RailAccident = 3,
893
+ Hanging = 4,
894
+ AircraftAccident = 5,
895
+ HouseholdAccident = 6,
896
+ BoatAccident = 7,
897
+ GunshotWound = 8,
898
+ SportsAccident = 9,
899
+ StabOrCutWound = 10,
900
+ FallBelowThreeMeters = 11,
901
+ FallAboveThreeMeters = 12,
902
+ AccidentTwoToFourInjured = 13,
903
+ AccidentMoreThanFourInjured = 14,
904
+ AccidentTrappedPerson = 15,
905
+ TrafficAccidentPedestrian = 16,
906
+ TrafficAccidentTwoWheeler = 17,
907
+ TrafficAccidentInjuredPerson = 18
908
+ }
909
+ export declare enum HospitalAllocationInfection {
910
+ No = 1,
911
+ Mrsa = 2,
912
+ Noro = 3,
913
+ Other = 4,
914
+ SpecialSituation = 5
915
+ }
916
+ export declare enum HospitalAllocationReason {
917
+ /**
918
+ * Leitstelle
919
+ *
920
+ */
921
+ DispatchCenter = 1,
922
+ /**
923
+ * Rettungsdienst
924
+ *
925
+ */
926
+ EmergencyService = 2,
927
+ /**
928
+ * Patientenwunsch
929
+ *
930
+ */
931
+ PatientRequest = 3,
932
+ /**
933
+ * Einweisung
934
+ *
935
+ */
936
+ Referral = 4,
937
+ /**
938
+ * NOTZUWEISUNG: the hospital has to take the patient
939
+ *
940
+ */
941
+ EmergencyAllocation = 5
942
+ }
943
+ export declare enum HospitalAllocationTransport {
944
+ KTW = 1,
945
+ RTW = 2,
946
+ MZF = 3,
947
+ RTH = 4,
948
+ ITH = 5,
949
+ ITW = 6,
950
+ NAW = 7,
951
+ GTW = 8
952
+ }
953
+ export interface HospitalAllocationForm {
954
+ /**
955
+ * The PZC as its 6-digit value (incident code, age, urgency level), e.g. 232183.
956
+ *
957
+ */
958
+ pzc: number;
959
+ /**
960
+ * Minutes until the patient arrives ("Eintreffzeit"); null if unknown (arrives now).
961
+ *
962
+ */
963
+ arrivalMinutes: number | null;
964
+ shockRoomAlarm: boolean | null;
965
+ airway: HospitalAllocationAirway | null;
966
+ breathing: HospitalAllocationBreathing | null;
967
+ circulation: HospitalAllocationCirculation | null;
968
+ disability: HospitalAllocationDisability | null;
969
+ cardiacCatheterAlarm: boolean | null;
970
+ occasion: HospitalAllocationOccasion;
971
+ /**
972
+ * Work, commuting or school accident ("Arbeits-/Wege-/Schulunfall").
973
+ *
974
+ */
975
+ workAccident: boolean | null;
976
+ gender: Gender | null;
977
+ /**
978
+ * The patient's age in years.
979
+ *
980
+ */
981
+ age: number | null;
982
+ resuscitation: boolean | null;
983
+ ventilated: boolean | null;
984
+ infection: HospitalAllocationInfection | null;
985
+ pregnant: boolean | null;
986
+ doctorAccompanied: boolean | null;
987
+ /**
988
+ * The phone number the hospital calls back.
989
+ *
990
+ */
991
+ phone: string;
992
+ reason: HospitalAllocationReason | null;
993
+ operationNumber: string;
994
+ /**
995
+ * Free text for the hospital, at most characters.
996
+ *
997
+ */
998
+ remark: string;
999
+ transport: HospitalAllocationTransport | null;
1000
+ callsign: string;
1001
+ }
1002
+ export interface HospitalAllocationPatientReference {
1003
+ operationId: string;
1004
+ patientId: string;
1005
+ unitId: number | null;
1006
+ }
1007
+ export interface HospitalAllocationRequest {
1008
+ form: HospitalAllocationForm;
1009
+ patient: HospitalAllocationPatientReference;
1010
+ }
1011
+ export interface HospitalPzcTransmission {
1012
+ notificationId: string;
1013
+ receivedOn: string;
1014
+ operationId: string;
1015
+ operationNumber: string;
1016
+ patientId: string;
1017
+ patientName: string;
1018
+ unitId: number;
1019
+ callsign: string;
1020
+ /**
1021
+ * The patient's PZC on the operation desk as its 6-digit value.
1022
+ *
1023
+ */
1024
+ pzc: number;
1025
+ /**
1026
+ * The hospital the unit preselected; null if none.
1027
+ *
1028
+ */
1029
+ preselectionPoiId: number | null;
1030
+ /**
1031
+ * The hospital the patient has been allocated to with the form; null if not allocated yet.
1032
+ *
1033
+ */
1034
+ allocatedHospitalId: number | null;
1035
+ }
1036
+ export interface HospitalAllocationPrefill {
1037
+ form: HospitalAllocationForm;
1038
+ /**
1039
+ * The department of the hospital that takes the PZC; null if the hospital doesn't accept it.
1040
+ *
1041
+ */
1042
+ department: PoiHospitalDepartment | null;
1043
+ /**
1044
+ * The phone numbers the hospital can call back (the office number of the dispatch center).
1045
+ *
1046
+ */
1047
+ phoneOptions: string[] | null;
1048
+ }
785
1049
  export declare enum HospitalCapacitySlotColor {
786
1050
  Green = 0,
787
1051
  Yellow = 1,
@@ -843,15 +1107,15 @@ export interface HospitalCapacitySlot {
843
1107
  }
844
1108
  export interface HospitalBooking {
845
1109
  id: string;
846
- hospital: IPoiInfo;
847
- patient: IPatient;
1110
+ hospitalId: number;
1111
+ hospitalName: string;
848
1112
  /**
849
1113
  * The department this booking is assigned to.
850
1114
  *
851
1115
  */
852
1116
  department: PoiHospitalDepartment;
853
1117
  /**
854
- * Start of the patient's treatment (inclusive).
1118
+ * Start of the patient's treatment (inclusive): the arrival at the hospital.
855
1119
  *
856
1120
  */
857
1121
  start: string;
@@ -860,6 +1124,22 @@ export interface HospitalBooking {
860
1124
  *
861
1125
  */
862
1126
  end: string;
1127
+ /**
1128
+ * When the form was sent: the arrival time counts from here.
1129
+ *
1130
+ */
1131
+ createdOn: string;
1132
+ createdBy: IUserInfo;
1133
+ /**
1134
+ * The form sent to the hospital.
1135
+ *
1136
+ */
1137
+ form: HospitalAllocationForm;
1138
+ /**
1139
+ * The patient of the operation desk whose destination the allocation set; null if none.
1140
+ *
1141
+ */
1142
+ patient: HospitalAllocationPatientReference;
863
1143
  }
864
1144
  export interface HospitalCapacitySlotFactory {
865
1145
  }
@@ -867,15 +1147,52 @@ export interface HospitalOverview {
867
1147
  start: string;
868
1148
  end: string;
869
1149
  slotSize: string;
1150
+ /**
1151
+ * The PZC the hospitals are filtered by (6-digit value): only those accepting its incident code and urgency level; null if not filtered.
1152
+ *
1153
+ */
1154
+ pzc: number | null;
1155
+ /**
1156
+ * The next moment a department's free places change by time alone (the end of a treatment or the discharge of a patient the hospital had at the start of the simulation), so the client reloads then; null if nothing changes. Allocations that are made, changed or deleted are pushed.
1157
+ *
1158
+ */
1159
+ nextChangeOn: string | null;
870
1160
  hospitals: HospitalOverviewItem[] | null;
871
1161
  }
872
1162
  export interface HospitalOverviewItem {
873
1163
  id: number;
874
1164
  name: string;
875
1165
  isMaxCareHospital: boolean;
876
- departments: PoiHospitalDepartment[] | null;
1166
+ /**
1167
+ * The department that takes the PZC of the overview; null if not filtered by a PZC.
1168
+ *
1169
+ */
1170
+ acceptingDepartment: PoiHospitalDepartment | null;
1171
+ departments: HospitalOverviewDepartment[] | null;
877
1172
  capacitySlots: HospitalCapacitySlot[] | null;
878
1173
  }
1174
+ export interface HospitalOverviewDepartment {
1175
+ department: PoiHospitalDepartment;
1176
+ /**
1177
+ * The name of the ward or station; null if not set.
1178
+ *
1179
+ */
1180
+ name: string;
1181
+ /**
1182
+ * The patients the department treats at the same time (configured or default).
1183
+ *
1184
+ */
1185
+ capacity: number;
1186
+ /**
1187
+ * The places taken right now: the patients announced with the allocation form (from when the form was sent, before they arrive), the patients in treatment and the hospital's own patients (from the start of the simulation).
1188
+ *
1189
+ */
1190
+ occupied: number;
1191
+ }
1192
+ export interface HospitalDepartmentCapacity {
1193
+ }
1194
+ export interface HospitalTreatmentDuration {
1195
+ }
879
1196
  /**
880
1197
  * Represents a base information object for informations about entities.
881
1198
  *
@@ -927,7 +1244,6 @@ export interface ResourceInformation {
927
1244
  station: string;
928
1245
  currentOperation: string;
929
1246
  destination: string;
930
- duty: string;
931
1247
  }
932
1248
  export interface Keyword {
933
1249
  id: number;
@@ -1048,6 +1364,23 @@ export interface KeywordInfo {
1048
1364
  */
1049
1365
  name: string;
1050
1366
  }
1367
+ export interface KeywordLookupItem {
1368
+ /**
1369
+ * The ID of the keyword.
1370
+ *
1371
+ */
1372
+ id: number;
1373
+ /**
1374
+ * The name of the keyword.
1375
+ *
1376
+ */
1377
+ name: string;
1378
+ /**
1379
+ * Whether the keyword is urgent (emergency).
1380
+ *
1381
+ */
1382
+ isUrgent: boolean;
1383
+ }
1051
1384
  export interface MissionLoad {
1052
1385
  id: number;
1053
1386
  /**
@@ -1070,6 +1403,60 @@ export interface OAuthTokenResponse {
1070
1403
  accessToken: string;
1071
1404
  tokenType: string;
1072
1405
  expiresIn: number;
1406
+ /**
1407
+ * Gets a new access token (and a new refresh token) at the token endpoint with grant_type=refresh_token; each refresh token is valid once. Only for the authorization_code and refresh_token grants.
1408
+ *
1409
+ */
1410
+ refreshToken: string;
1411
+ }
1412
+ export interface OperationAuditEntry {
1413
+ /**
1414
+ * The ID of the audit entry.
1415
+ *
1416
+ */
1417
+ id: string;
1418
+ /**
1419
+ * When it happened.
1420
+ *
1421
+ */
1422
+ timestamp: string;
1423
+ /**
1424
+ * The user who caused it; null for the system.
1425
+ *
1426
+ */
1427
+ user: IUserInfo;
1428
+ /**
1429
+ * The kind of change.
1430
+ *
1431
+ */
1432
+ action: AuditAction;
1433
+ /**
1434
+ * The operation specific kind of change, if any.
1435
+ *
1436
+ */
1437
+ actionSub: AuditActionSub | null;
1438
+ /**
1439
+ * The localized message (markdown) without timestamp and user.
1440
+ *
1441
+ */
1442
+ message: string;
1443
+ }
1444
+ export interface OperationChangeInfo {
1445
+ /**
1446
+ * Increases with every change; a client keeps the highest revision per entity and drops events with a lower one (they arrived out of order).
1447
+ *
1448
+ */
1449
+ revision: number;
1450
+ /**
1451
+ * The editor (one desk window) that made the change; null for changes by the system. A client may keep the value the user is typing in a field instead of overwriting it with its own echo.
1452
+ *
1453
+ */
1454
+ editorId: string | null;
1455
+ /**
1456
+ * The changed properties, camel case as in the JSON of the entity.
1457
+ *
1458
+ */
1459
+ changedProperties: string[] | null;
1073
1460
  }
1074
1461
  export interface OperationInfo {
1075
1462
  id: string;
@@ -1104,6 +1491,33 @@ export interface OperationInfo {
1104
1491
  */
1105
1492
  status: OperationStatus;
1106
1493
  }
1494
+ export interface Pagination<T> {
1495
+ /**
1496
+ * Gets the number of the current page in the pagination sequence.
1497
+ *
1498
+ */
1499
+ currentPage: number;
1500
+ /**
1501
+ * Gets the total number of pages available.
1502
+ *
1503
+ */
1504
+ totalPages: number;
1505
+ /**
1506
+ * Gets the number of items per page.
1507
+ *
1508
+ */
1509
+ pageSize: number;
1510
+ /**
1511
+ * Gets the total number of items across all pages.
1512
+ *
1513
+ */
1514
+ totalItems: number;
1515
+ /**
1516
+ * Gets the collection of items on the current page.
1517
+ *
1518
+ */
1519
+ items: T[] | null;
1520
+ }
1107
1521
  export interface Poi {
1108
1522
  id: number;
1109
1523
  /**
@@ -1121,6 +1535,11 @@ export interface Poi {
1121
1535
  *
1122
1536
  */
1123
1537
  coordinates: Coordinates;
1538
+ /**
1539
+ * The helicopter landing site of the POI if it differs from its coordinates (e.g. the helipad of a hospital); null if helicopters land on the coordinates.
1540
+ *
1541
+ */
1542
+ helipad: Coordinates | null;
1124
1543
  /**
1125
1544
  * Tags associated with the point of interest for search purposes. Separate multiple tags with a semicolon.
1126
1545
  *
@@ -1137,10 +1556,10 @@ export interface Poi {
1137
1556
  */
1138
1557
  germanGenus: string;
1139
1558
  /**
1140
- * The hospital departments associated with the hospital POI if is hospital. Has no effect if is true.
1559
+ * The departments of the hospital POI with their settings (name, entrance, helipad, capacity), at most one per department. If IsMaxCareHospital is true, the hospital has all departments and the list only holds the settings of some of them.
1141
1560
  *
1142
1561
  */
1143
- hospitalDepartments: PoiHospitalDepartment[] | null;
1562
+ hospitalDepartments: HospitalDepartment[] | null;
1144
1563
  /**
1145
1564
  * Indicates whether units should be dispatched together when assigned to this POI. Should be true if non-volunteer department.
1146
1565
  *
@@ -1225,6 +1644,11 @@ export interface Preselection {
1225
1644
  *
1226
1645
  */
1227
1646
  departureTime: string | null;
1647
+ /**
1648
+ * Gets when the unit's duty ends (session time), only when it ends soon (Core DispatchDefaults.DutyEndWarningMinutes); otherwise null.
1649
+ *
1650
+ */
1651
+ dutyEndsOn: string | null;
1228
1652
  /**
1229
1653
  * Gets the total estimated time to reach the target, combining and . Returns null when is unknown.
1230
1654
  *
@@ -1268,6 +1692,16 @@ export interface ResourceFilter {
1268
1692
  *
1269
1693
  */
1270
1694
  unitCategories: UnitCategory[] | null;
1695
+ /**
1696
+ * Gets or sets a collection of to filter resources by the kind of unit (any of the groups matches).
1697
+ *
1698
+ */
1699
+ unitCategoryGroups: UnitCategoryGroup[] | null;
1700
+ /**
1701
+ * Gets or sets a collection of to filter resources by how soon they are available (any of them matches).
1702
+ *
1703
+ */
1704
+ unitAvailabilities: UnitAvailability[] | null;
1271
1705
  /**
1272
1706
  * Gets or sets a collection of to filter resources by unit display categories see .
1273
1707
  *
@@ -1776,6 +2210,33 @@ export interface Unit {
1776
2210
  */
1777
2211
  displayCategory: string;
1778
2212
  }
2213
+ export interface UnitDutyInformation {
2214
+ /**
2215
+ * The unit.
2216
+ *
2217
+ */
2218
+ unitId: number;
2219
+ /**
2220
+ * How the unit's duty is defined (always, by day, by night, by duty periods).
2221
+ *
2222
+ */
2223
+ dutyOptions: UnitDutyOptions;
2224
+ /**
2225
+ * Duty periods: when the current duty ends (following shifts included); null when not on duty or around the clock.
2226
+ *
2227
+ */
2228
+ dutyEndsOn: string | null;
2229
+ /**
2230
+ * Duty periods, not on duty: when the next shift starts.
2231
+ *
2232
+ */
2233
+ nextDutyStartsOn: string | null;
2234
+ /**
2235
+ * Minutes from the session time until or .
2236
+ *
2237
+ */
2238
+ minutesUntilChange: number | null;
2239
+ }
1779
2240
  export interface UnitDutyPeriod {
1780
2241
  id: number;
1781
2242
  /**
@@ -1853,6 +2314,43 @@ export interface UnitInfo {
1853
2314
  */
1854
2315
  origin: ShelfOriginBase;
1855
2316
  }
2317
+ export interface UnitLookupItem {
2318
+ /**
2319
+ * The ID of the unit.
2320
+ *
2321
+ */
2322
+ id: number;
2323
+ /**
2324
+ * The callsign.
2325
+ *
2326
+ */
2327
+ callsign: string;
2328
+ /**
2329
+ * The short callsign.
2330
+ *
2331
+ */
2332
+ callsignShort: string;
2333
+ /**
2334
+ * The GPS callsign, if any.
2335
+ *
2336
+ */
2337
+ callsignGps: string;
2338
+ /**
2339
+ * The verbal callsign (as spoken on the radio), if any.
2340
+ *
2341
+ */
2342
+ callsignVerbal: string;
2343
+ /**
2344
+ * The unit category, e.g. "RTW".
2345
+ *
2346
+ */
2347
+ category: string;
2348
+ /**
2349
+ * The callsign (callsign, short, GPS or verbal) that matched the search best.
2350
+ *
2351
+ */
2352
+ matchedCallsign: string;
2353
+ }
1856
2354
  export interface UserInfo {
1857
2355
  suspendedUntilUtc: string | null;
1858
2356
  id: number;
@@ -1888,23 +2386,6 @@ export interface UserInfo {
1888
2386
  */
1889
2387
  lastActivityOn: string | null;
1890
2388
  }
1891
- export interface SimulationUnitDebug {
1892
- id: number;
1893
- unitInformation: IUnitInfo;
1894
- patient: string;
1895
- session: string;
1896
- state: string;
1897
- mission: string;
1898
- request: string;
1899
- isDriving: boolean;
1900
- isOnDuty: boolean;
1901
- isFrozen: boolean;
1902
- isFrozenUntil: string | null;
1903
- knowledge: string;
1904
- equipmentOnScene: string;
1905
- requiredEquipments: string;
1906
- onServerTime: string;
1907
- }
1908
2389
  export interface Information {
1909
2390
  }
1910
2391
  export interface LookupDto {
@@ -3091,6 +3572,11 @@ export interface IOperation {
3091
3572
  *
3092
3573
  */
3093
3574
  callerName: string;
3575
+ /**
3576
+ * Gets the properties the operation still needs before units can be dispatched to it (computed); empty when it is ready for dispatch.
3577
+ *
3578
+ */
3579
+ missingDispatchRequirements: DispatchRequirement[] | null;
3094
3580
  /**
3095
3581
  * Gets or sets the phone number of the caller.
3096
3582
  *
@@ -3141,6 +3627,21 @@ export interface IOperation {
3141
3627
  *
3142
3628
  */
3143
3629
  informationExternal: string;
3630
+ /**
3631
+ * Gets or sets the floor at the location, e.g. "3rd floor" (detail for the units; not used for geocoding).
3632
+ *
3633
+ */
3634
+ locationFloor: string;
3635
+ /**
3636
+ * Gets or sets the junction, interchange or exit at the location, e.g. on a motorway (detail for the units; not used for geocoding).
3637
+ *
3638
+ */
3639
+ locationJunction: string;
3640
+ /**
3641
+ * Gets or sets the position on a route at the location in any unit, e.g. "km 123.4" or "mile 76" (detail for the units; not used for geocoding).
3642
+ *
3643
+ */
3644
+ locationRouteMarker: string;
3144
3645
  id: string;
3145
3646
  /**
3146
3647
  * Gets or sets the internal operation number.
@@ -3300,6 +3801,11 @@ export interface IOperationResource {
3300
3801
  *
3301
3802
  */
3302
3803
  suggestionOn: string | null;
3804
+ /**
3805
+ * Gets or sets when the reservation for the current operation is released automatically (real time, UTC, not the session time); null without reservation.
3806
+ *
3807
+ */
3808
+ reservationExpiresOn: string | null;
3303
3809
  /**
3304
3810
  * Gets or sets the count of times the unit has been dispatched, used for load balancing between units.
3305
3811
  *
@@ -3361,6 +3867,16 @@ export interface IOperationTask {
3361
3867
  */
3362
3868
  createdOn: string;
3363
3869
  matchUnitId: number | null;
3870
+ /**
3871
+ * Gets whether a dispatcher may execute the task now (computed): manual tasks that may run several times, and manual-once tasks that have not run yet.
3872
+ *
3873
+ */
3874
+ canExecuteManually: boolean;
3875
+ /**
3876
+ * Gets whether the task is still to do (computed): it has not completed and is not queued or running.
3877
+ *
3878
+ */
3879
+ isOpen: boolean;
3364
3880
  }
3365
3881
  export interface IPatient {
3366
3882
  id: string;
@@ -3374,11 +3890,31 @@ export interface IPatient {
3374
3890
  *
3375
3891
  */
3376
3892
  destination: IGeoReferenced;
3893
+ /**
3894
+ * Gets or sets the department of the destination hospital that takes the patient; null if not set.
3895
+ *
3896
+ */
3897
+ destinationDepartment: PoiHospitalDepartment | null;
3898
+ /**
3899
+ * Gets or sets the hospital the transporting unit prefers ("Vorauswahl"), reported with the PZC; null if the unit preselected none. Only a wish: the unit drives to the destination once it is set.
3900
+ *
3901
+ */
3902
+ preselection: IGeoReferenced;
3377
3903
  /**
3378
3904
  * Gets or sets the pickup deadline if the transport is time-bound. Null if not applicable.
3379
3905
  *
3380
3906
  */
3381
3907
  pickupDeadline: string | null;
3908
+ /**
3909
+ * Gets or sets the PZC (patient condition code) as its 6-digit value: incident code, age, urgency level (e.g. 232183); null if not set.
3910
+ *
3911
+ */
3912
+ pzc: number | null;
3913
+ /**
3914
+ * Gets or sets the units of the operation that take care of the patient (several possible, e.g. the emergency doctor and the ambulance).
3915
+ *
3916
+ */
3917
+ assignedUnitIds: number[] | null;
3382
3918
  /**
3383
3919
  * Gets or sets the first name of the person.
3384
3920
  *
@@ -3449,10 +3985,15 @@ export interface IPoi {
3449
3985
  */
3450
3986
  germanGenus: string;
3451
3987
  /**
3452
- * The hospital departments associated with the hospital POI if is hospital. Has no effect if is true.
3988
+ * The helicopter landing site of the POI if it differs from its coordinates (e.g. the helipad of a hospital); null if helicopters land on the coordinates.
3453
3989
  *
3454
3990
  */
3455
- hospitalDepartments: PoiHospitalDepartment[] | null;
3991
+ helipad: Coordinates | null;
3992
+ /**
3993
+ * The departments of the hospital POI with their settings (name, entrance, helipad, capacity), at most one per department. If IsMaxCareHospital is true, the hospital has all departments and the list only holds the settings of some of them.
3994
+ *
3995
+ */
3996
+ hospitalDepartments: HospitalDepartment[] | null;
3456
3997
  /**
3457
3998
  * Indicates whether units should be dispatched together when assigned to this POI. Should be true if non-volunteer department.
3458
3999
  *
@@ -3575,6 +4116,11 @@ export interface IPreselection {
3575
4116
  *
3576
4117
  */
3577
4118
  totalTimeToTarget: string | null;
4119
+ /**
4120
+ * Gets when the unit's duty ends (session time), only when it ends soon (Core DispatchDefaults.DutyEndWarningMinutes); otherwise null.
4121
+ *
4122
+ */
4123
+ dutyEndsOn: string | null;
3578
4124
  }
3579
4125
  export interface IPrioritizedService {
3580
4126
  /**
@@ -3620,6 +4166,16 @@ export interface IResourceFilter {
3620
4166
  *
3621
4167
  */
3622
4168
  unitCategories: UnitCategory[] | null;
4169
+ /**
4170
+ * Gets or sets a collection of to filter resources by the kind of unit (any of the groups matches).
4171
+ *
4172
+ */
4173
+ unitCategoryGroups: UnitCategoryGroup[] | null;
4174
+ /**
4175
+ * Gets or sets a collection of to filter resources by how soon they are available (any of them matches).
4176
+ *
4177
+ */
4178
+ unitAvailabilities: UnitAvailability[] | null;
3623
4179
  /**
3624
4180
  * Gets or sets a collection of to filter resources by unit display categories see .
3625
4181
  *
@@ -4214,6 +4770,11 @@ export interface IUnitResource {
4214
4770
  *
4215
4771
  */
4216
4772
  suggestionOn: string | null;
4773
+ /**
4774
+ * Gets or sets when the reservation for the current operation is released automatically (real time, UTC, not the session time); null without reservation.
4775
+ *
4776
+ */
4777
+ reservationExpiresOn: string | null;
4217
4778
  /**
4218
4779
  * Gets or sets the count of times the unit has been dispatched, used for load balancing between units.
4219
4780
  *
@@ -4567,7 +5128,22 @@ export declare enum DispatchCenterOption {
4567
5128
  * Specifies whether the equipment suggester accounts for equipment already provided by units from previous suggesters (e.g., TagsSuggester). Note: This calculation is only relevant if is enabled; otherwise, the equipment suggester is skipped when tag-based units are present.
4568
5129
  *
4569
5130
  */
4570
- EquipmentSuggesterIncludesPreviousSuggesterResults = 22
5131
+ EquipmentSuggesterIncludesPreviousSuggesterResults = 22,
5132
+ /**
5133
+ * Patients are transported to the nearest hospital that accepts their PZC, as assigned per hospital. Without such a hospital, or when disabled, to the nearest hospital with the departments the PZC requires at least.
5134
+ *
5135
+ */
5136
+ HospitalDestinationByPzcAssignment = 23,
5137
+ /**
5138
+ * Units are suggested automatically once for a new operation, as soon as location and keyword are set. When disabled, units are only suggested on request.
5139
+ *
5140
+ */
5141
+ AutoSuggestUnitsWhenReadyForDispatch = 24,
5142
+ /**
5143
+ * The simulation starts with empty hospitals: only the allocations of the dispatch center occupy them. When not disabled, the hospitals are occupied at the start by their own patients (walk-ins, inpatients, elective patients) by the time of day, the weekday and the season, who are discharged one by one afterwards.
5144
+ *
5145
+ */
5146
+ DisableSimulatedHospitalOccupancy = 25
4571
5147
  }
4572
5148
  export declare enum DispatchGroupAvailabilityState {
4573
5149
  /**
@@ -4586,6 +5162,18 @@ export declare enum DispatchGroupAvailabilityState {
4586
5162
  */
4587
5163
  FullyAvailable = 2
4588
5164
  }
5165
+ export declare enum DispatchRequirement {
5166
+ /**
5167
+ * The location must be set (any accuracy other than ).
5168
+ *
5169
+ */
5170
+ Location = 0,
5171
+ /**
5172
+ * At least one keyword must be set.
5173
+ *
5174
+ */
5175
+ Keyword = 1
5176
+ }
4589
5177
  export declare enum Gender {
4590
5178
  /**
4591
5179
  * Represents the male gender.
@@ -4613,6 +5201,33 @@ export declare enum GeoProvider {
4613
5201
  Valhalla = 6,
4614
5202
  InternalDirectAirwayCalculationFallback = 7
4615
5203
  }
5204
+ export interface HospitalDepartment {
5205
+ /**
5206
+ * The kind of department.
5207
+ *
5208
+ */
5209
+ department: PoiHospitalDepartment;
5210
+ /**
5211
+ * The name of the department or ward (e.g. "Station 3B"); null if not set.
5212
+ *
5213
+ */
5214
+ name: string;
5215
+ /**
5216
+ * The entrance units drive or walk to for this department if it differs from the coordinates of the hospital; null if the hospital coordinates apply.
5217
+ *
5218
+ */
5219
+ entrance: Coordinates | null;
5220
+ /**
5221
+ * The helicopter landing site for this department (e.g. a helipad on the roof of the building); null if the landing site of the hospital applies.
5222
+ *
5223
+ */
5224
+ helipad: Coordinates | null;
5225
+ /**
5226
+ * The number of patients the department can take at the same time; null if the default capacity of the department applies.
5227
+ *
5228
+ */
5229
+ capacity: number | null;
5230
+ }
4616
5231
  export declare enum HotkeyAction {
4617
5232
  None = 0,
4618
5233
  LayoutLoad1 = 201,
@@ -5093,7 +5708,40 @@ export declare enum ProblemInformation {
5093
5708
  PzcHospitalDepartmentNotFound = 172,
5094
5709
  SessionRestoreInProgress = 173,
5095
5710
  SessionBulkOperationInProgress = 174,
5096
- DispatchCenterAreaIsNotSet = 175
5711
+ DispatchCenterAreaIsNotSet = 175,
5712
+ OperationNotReadyForDispatch = 176,
5713
+ OperationTaskNotExecutable = 177,
5714
+ OperationLocationRequired = 178,
5715
+ PoiHospitalDepartmentNotFound = 179,
5716
+ PoiHospitalDepartmentNameFormatInvalid = 180,
5717
+ PoiHospitalDepartmentEntranceInvalid = 181,
5718
+ PoiHospitalDepartmentCapacityInvalid = 182,
5719
+ PzcUrgencyLevelsInvalid = 183,
5720
+ HospitalAllocationNotAccepted = 184,
5721
+ HospitalAllocationDepartmentFull = 185,
5722
+ HospitalAllocationNotFound = 186,
5723
+ HospitalAllocationArrivalInvalid = 187,
5724
+ HospitalAllocationRequiredMissing = 188,
5725
+ HospitalAllocationValueInvalid = 189,
5726
+ HospitalAllocationTextTooLong = 190,
5727
+ HospitalAllocationAgeInvalid = 191,
5728
+ RequestInvalid = 192,
5729
+ AuthenticationRequired = 193,
5730
+ LicenseRequired = 194,
5731
+ AccessForbidden = 195,
5732
+ ResourceNotFound = 196,
5733
+ RequestConflict = 197,
5734
+ TooManyRequests = 198,
5735
+ ServiceUnavailable = 199,
5736
+ HospitalOverviewSlotSizeInvalid = 200,
5737
+ HospitalOverviewTimeframeInvalid = 201,
5738
+ HospitalOverviewTooManySlots = 202,
5739
+ SimulationNotRunning = 203,
5740
+ DemoDataAlreadyRunning = 204,
5741
+ SupporterActionNotSupported = 205,
5742
+ PoiHelipadInvalid = 206,
5743
+ PoiHospitalDepartmentHelipadInvalid = 207,
5744
+ PatientDestinationNotAssigned = 208
5097
5745
  }
5098
5746
  export declare enum SessionAccess {
5099
5747
  Private = 0,
@@ -5214,66 +5862,66 @@ export declare enum ShelfBatchCreateMode {
5214
5862
  * Validates the batch without making any changes to the database.
5215
5863
  *
5216
5864
  */
5217
- DryRun = 0,
5865
+ DryRun = "DryRun",
5218
5866
  /**
5219
5867
  * Only updates existing entities. Does not create new entities.
5220
5868
  *
5221
5869
  */
5222
- UpdateOnly = 1,
5870
+ UpdateOnly = "UpdateOnly",
5223
5871
  /**
5224
5872
  * Only creates new entities. Does not update existing entities.
5225
5873
  *
5226
5874
  */
5227
- CreateOnly = 2,
5875
+ CreateOnly = "CreateOnly",
5228
5876
  /**
5229
5877
  * Updates existing entities and creates new entities as needed.
5230
5878
  *
5231
5879
  */
5232
- CreateOrUpdate = 3
5880
+ CreateOrUpdate = "CreateOrUpdate"
5233
5881
  }
5234
5882
  export declare enum ShelfBatchFailureMode {
5235
5883
  /**
5236
5884
  * Stop the entire batch operation immediately when the first entity fails. All successful operations are rolled back.
5237
5885
  *
5238
5886
  */
5239
- StopOnFirstFailure = 0,
5887
+ StopOnFirstFailure = "StopOnFirstFailure",
5240
5888
  /**
5241
5889
  * Skip failed entities and continue processing the remaining entities. Successful operations are committed, failed entities are reported.
5242
5890
  *
5243
5891
  */
5244
- SkipAndContinue = 1,
5892
+ SkipAndContinue = "SkipAndContinue",
5245
5893
  /**
5246
5894
  * Complete the entire batch but collect all failures. Roll back all operations if any entity fails.
5247
5895
  *
5248
5896
  */
5249
- AllOrNothing = 2
5897
+ AllOrNothing = "AllOrNothing"
5250
5898
  }
5251
5899
  export declare enum ShelfIdentificationStrategy {
5252
5900
  /**
5253
5901
  * Always use the origin ID for entity identification. Fails if origin ID is not provided or entity is not found.
5254
5902
  *
5255
5903
  */
5256
- OriginIdOnly = 0,
5904
+ OriginIdOnly = "OriginIdOnly",
5257
5905
  /**
5258
5906
  * Use the origin ID if provided, otherwise fall back to internal ID.
5259
5907
  *
5260
5908
  */
5261
- OriginIdOrInternalId = 1,
5909
+ OriginIdOrInternalId = "OriginIdOrInternalId",
5262
5910
  /**
5263
5911
  * Use the origin ID for lookup, but fall back to internal ID if entity is not found.
5264
5912
  *
5265
5913
  */
5266
- OriginIdWithInternalIdFallback = 2,
5914
+ OriginIdWithInternalIdFallback = "OriginIdWithInternalIdFallback",
5267
5915
  /**
5268
5916
  * Use the origin ID if provided and entity exists, otherwise fall back to internal ID. Combines both null check and existence check fallback behavior.
5269
5917
  *
5270
5918
  */
5271
- OriginIdWithFullFallback = 3,
5919
+ OriginIdWithFullFallback = "OriginIdWithFullFallback",
5272
5920
  /**
5273
5921
  * Will not compare any provided ids with existing ids. All entities will be handled as "new".
5274
5922
  *
5275
5923
  */
5276
- Disable = 4
5924
+ Disable = "Disable"
5277
5925
  }
5278
5926
  export declare enum Sound {
5279
5927
  /**
@@ -5489,6 +6137,23 @@ export declare enum TaskStatus {
5489
6137
  */
5490
6138
  NotSupported = 5
5491
6139
  }
6140
+ export declare enum UnitAvailability {
6141
+ /**
6142
+ * On duty (at the station or on the way) and not bound to an operation.
6143
+ *
6144
+ */
6145
+ Available = 0,
6146
+ /**
6147
+ * Arrived at the destination (e.g. hospital), available soon.
6148
+ *
6149
+ */
6150
+ SoonAvailable = 1,
6151
+ /**
6152
+ * On the way, on scene, driving to the destination, not on duty or individual status.
6153
+ *
6154
+ */
6155
+ NotAvailable = 2
6156
+ }
5492
6157
  export declare enum UnitCategory {
5493
6158
  DLK = 0,
5494
6159
  ELW1 = 1,
@@ -5522,6 +6187,28 @@ export declare enum UnitCategory {
5522
6187
  NAW = 29,
5523
6188
  KEF = 30
5524
6189
  }
6190
+ export declare enum UnitCategoryGroup {
6191
+ /**
6192
+ * Ambulances for emergencies (e.g. RTW, NAW).
6193
+ *
6194
+ */
6195
+ AmbulanceUrgent = 0,
6196
+ /**
6197
+ * Ambulances for patient transports (e.g. KTW).
6198
+ *
6199
+ */
6200
+ AmbulanceNonUrgent = 1,
6201
+ /**
6202
+ * Units with an emergency doctor (e.g. NEF, RTH).
6203
+ *
6204
+ */
6205
+ Doctor = 2,
6206
+ /**
6207
+ * Fire brigade units (e.g. HLF, DLK).
6208
+ *
6209
+ */
6210
+ Firefighter = 3
6211
+ }
5525
6212
  export declare enum UnitDispatchOption {
5526
6213
  /**
5527
6214
  * Indicates a normal dispatch option.
@@ -5725,6 +6412,30 @@ export declare function setLocale(locale: string): void;
5725
6412
  export declare function getCurrentLocale(): string;
5726
6413
  export declare function getLocalizedEnumValue<T extends keyof typeof EnumLocalizations>(enumName: T, enumValue: keyof typeof EnumLocalizations[T], locale?: string): string;
5727
6414
  export declare function localizeEnum<T extends Record<string, string | number>>(enumObject: T, enumName: keyof typeof EnumLocalizations, locale?: string): Record<keyof T, string>;
6415
+ export declare namespace DispatchDefaults {
6416
+ /**
6417
+ * How long units stay reserved for an operation (real time, IUnitResource.ReservationExpiresOn) before the reservation is released automatically. Extending a reservation starts it again.
6418
+ *
6419
+ */
6420
+ const ReservationTimeoutSeconds: number;
6421
+ /**
6422
+ * Units whose duty ends within this many minutes (session time) are marked in the resource browser.
6423
+ *
6424
+ */
6425
+ const DutyEndWarningMinutes: number;
6426
+ }
6427
+ export declare namespace OperationDefaults {
6428
+ /**
6429
+ * The maximum length of the internal and the external information (notes) of an operation.
6430
+ *
6431
+ */
6432
+ const InformationMaxLength: number;
6433
+ /**
6434
+ * The maximum length of a location detail (floor, junction, route marker) of an operation.
6435
+ *
6436
+ */
6437
+ const LocationDetailMaxLength: number;
6438
+ }
5728
6439
  export declare namespace SignalRDefaults {
5729
6440
  /**
5730
6441
  * The interval, in seconds, at which the SignalR client sends keep-alive messages to the server.
@@ -5787,4 +6498,3 @@ export declare namespace UserInterfaceDefaults {
5787
6498
  const CommandcenterHeaderImageHeight: number;
5788
6499
  }
5789
6500
  }
5790
- //# sourceMappingURL=main.d.ts.map