resqueserve-core 4.10.0-rc.13 → 4.10.0-rc.14

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 (3) hide show
  1. package/main.d.ts +159 -50
  2. package/main.js +22 -15
  3. package/package.json +1 -1
package/main.d.ts CHANGED
@@ -345,48 +345,6 @@ export interface ContactInfo {
345
345
  isHidden: boolean;
346
346
  poiInfo?: IPoiInfo | null;
347
347
  }
348
- export interface CustomUnitStatusBehavior {
349
- /**
350
- * How soon the unit is available for a new operation; null when the status says nothing about it.
351
- *
352
- */
353
- availability?: UnitAvailability | null;
354
- /**
355
- * Whether the unit can be suggested for an operation.
356
- *
357
- */
358
- suggestion: UnitStatusSuggestion;
359
- /**
360
- * The reason reported when the unit is not suggested because of this status.
361
- *
362
- */
363
- exclusionReason: UnitStatusExclusionReason;
364
- /**
365
- * How long the unit needs before it departs to a new operation.
366
- *
367
- */
368
- departure: UnitStatusDeparture;
369
- /**
370
- * Whether the unit counts as active (busy) while in this status.
371
- *
372
- */
373
- countsAsActive: boolean;
374
- /**
375
- * Whether the status may only be set while the unit has a current operation; otherwise setting it reports .
376
- *
377
- */
378
- requiresOperation: boolean;
379
- /**
380
- * Whether the simulation may replace the status with its next status; if not, the unit stays in it until a dispatcher sets another status.
381
- *
382
- */
383
- simulationMayOverwrite: boolean;
384
- /**
385
- * Whether a change to this status creates a notification (with its sound).
386
- *
387
- */
388
- notify: boolean;
389
- }
390
348
  export interface DispatchCenter {
391
349
  /**
392
350
  * This is the dpcId (Dispatch Center ID).
@@ -830,6 +788,16 @@ export interface PoiLookupDto {
830
788
  export interface ResourceLookupDto {
831
789
  unitId?: number | null;
832
790
  unitStatus?: UnitStatus | null;
791
+ /**
792
+ * The key of the unit status scheme entry of the current status (also set for a custom status).
793
+ *
794
+ */
795
+ unitStatusKey?: string | null;
796
+ /**
797
+ * The code of the current status in the scheme of the dispatch center.
798
+ *
799
+ */
800
+ unitStatusCode?: string | null;
833
801
  category?: string | null;
834
802
  callsign?: string | null;
835
803
  callsignShort?: string | null;
@@ -1327,6 +1295,16 @@ export interface ResourceInformation {
1327
1295
  dispatchCounter?: number | null;
1328
1296
  currentOperationId?: string | null;
1329
1297
  unitStatus?: UnitStatus | null;
1298
+ /**
1299
+ * The key of the unit status scheme entry of the current status (also set for a custom status).
1300
+ *
1301
+ */
1302
+ unitStatusKey?: string | null;
1303
+ /**
1304
+ * The code of the current status in the scheme of the dispatch center.
1305
+ *
1306
+ */
1307
+ unitStatusCode?: string | null;
1330
1308
  unitStatusNonPersistent?: UnitStatusNonPersistent | null;
1331
1309
  category?: string | null;
1332
1310
  callsign?: string | null;
@@ -1335,6 +1313,88 @@ export interface ResourceInformation {
1335
1313
  currentOperation?: string | null;
1336
1314
  destination?: string | null;
1337
1315
  }
1316
+ export interface IUnitStatusBehaviorResource {
1317
+ /**
1318
+ * The behavior of the current custom status; null while the status has a meaning.
1319
+ *
1320
+ */
1321
+ customStatusBehavior?: UnitStatusBehavior | null;
1322
+ /**
1323
+ * Gets or sets the unit information associated with the resource.
1324
+ *
1325
+ */
1326
+ unit: IUnitInfo;
1327
+ /**
1328
+ * Gets or sets the current status of the unit.
1329
+ *
1330
+ */
1331
+ unitStatus?: UnitStatus | null;
1332
+ /**
1333
+ * Gets or sets the key of the unit status scheme entry of the current status; for a custom status of the dispatch center, is null.
1334
+ *
1335
+ */
1336
+ unitStatusKey?: string | null;
1337
+ /**
1338
+ * Gets or sets a non-persistent unit status for temporary tracking.
1339
+ *
1340
+ */
1341
+ unitStatusNonPersistent?: UnitStatusNonPersistent | null;
1342
+ /**
1343
+ * Gets or sets since then the current status of the unit was set.
1344
+ *
1345
+ */
1346
+ unitStatusSince?: string | null;
1347
+ /**
1348
+ * Gets or sets since a non-persistent unit status for temporary tracking was set.
1349
+ *
1350
+ */
1351
+ unitStatusNonPersistentSince?: string | null;
1352
+ /**
1353
+ * Gets or sets the static position of the unit, representing its station location when on duty without dispatch.
1354
+ *
1355
+ */
1356
+ staticPosition: Coordinates;
1357
+ /**
1358
+ * Gets or sets the dynamic GPS position of the unit, if available.
1359
+ *
1360
+ */
1361
+ dynamicPosition?: Coordinates | null;
1362
+ /**
1363
+ * Gets or sets the timestamp indicating when the unit was put into preselection for an operation.
1364
+ *
1365
+ */
1366
+ suggestionOn?: string | null;
1367
+ /**
1368
+ * Gets or sets when the reservation for the current operation is released automatically (real time, UTC, not the session time); null without reservation.
1369
+ *
1370
+ */
1371
+ reservationExpiresOn?: string | null;
1372
+ /**
1373
+ * Gets or sets the count of times the unit has been dispatched, used for load balancing between units.
1374
+ *
1375
+ */
1376
+ dispatchCounter: number;
1377
+ /**
1378
+ * Gets or sets the identifier of the current operation if the unit is dispatched.
1379
+ *
1380
+ */
1381
+ currentOperationId?: string | null;
1382
+ /**
1383
+ * Gets or sets the identifier of the previous operation if the unit was dispatched.
1384
+ *
1385
+ */
1386
+ previousOperationId?: string | null;
1387
+ /**
1388
+ * Is true if the unit has a state which indicates activity (e.g. on-scene, driving ...)
1389
+ *
1390
+ */
1391
+ isActive: boolean;
1392
+ /**
1393
+ * Is true if the unit is blocked in an operation (e.g. suggested / selected) - pre dispatch
1394
+ *
1395
+ */
1396
+ isReserved: boolean;
1397
+ }
1338
1398
  export interface Keyword {
1339
1399
  id: number;
1340
1400
  /**
@@ -2449,6 +2509,48 @@ export interface UnitLookupItem {
2449
2509
  */
2450
2510
  matchedCallsign: string;
2451
2511
  }
2512
+ export interface UnitStatusBehavior {
2513
+ /**
2514
+ * How soon the unit is available for a new operation; null when the status says nothing about it.
2515
+ *
2516
+ */
2517
+ availability?: UnitAvailability | null;
2518
+ /**
2519
+ * Whether the unit can be suggested for an operation.
2520
+ *
2521
+ */
2522
+ suggestion: UnitStatusSuggestion;
2523
+ /**
2524
+ * The reason reported when the unit is not suggested because of this status.
2525
+ *
2526
+ */
2527
+ exclusionReason: UnitStatusExclusionReason;
2528
+ /**
2529
+ * How long the unit needs before it departs to a new operation.
2530
+ *
2531
+ */
2532
+ departure: UnitStatusDeparture;
2533
+ /**
2534
+ * Whether the unit counts as active (busy) while in this status.
2535
+ *
2536
+ */
2537
+ countsAsActive: boolean;
2538
+ /**
2539
+ * Whether the status may only be set while the unit has a current operation; otherwise setting it reports .
2540
+ *
2541
+ */
2542
+ requiresOperation: boolean;
2543
+ /**
2544
+ * Whether the simulation may replace the status with its next status; if not, the unit stays in it until a dispatcher sets another status.
2545
+ *
2546
+ */
2547
+ simulationMayOverwrite: boolean;
2548
+ /**
2549
+ * Whether a change to this status creates a notification (with its sound).
2550
+ *
2551
+ */
2552
+ notify: boolean;
2553
+ }
2452
2554
  export interface UnitStatusScheme {
2453
2555
  /**
2454
2556
  * All entries of the scheme, persistent and non-persistent, meaning and custom ones.
@@ -2511,7 +2613,7 @@ export interface UnitStatusSchemeEntry {
2511
2613
  * How the business rules treat a unit in this status; set only for custom statuses.
2512
2614
  *
2513
2615
  */
2514
- behavior?: CustomUnitStatusBehavior | null;
2616
+ behavior?: UnitStatusBehavior | null;
2515
2617
  /**
2516
2618
  * Whether the entry is a custom status of the dispatch center (no meaning).
2517
2619
  *
@@ -4153,6 +4255,11 @@ export interface IOperationResource {
4153
4255
  *
4154
4256
  */
4155
4257
  unitStatus?: UnitStatus | null;
4258
+ /**
4259
+ * Gets or sets the key of the unit status scheme entry of the current status; for a custom status of the dispatch center, is null.
4260
+ *
4261
+ */
4262
+ unitStatusKey?: string | null;
4156
4263
  /**
4157
4264
  * Gets or sets a non-persistent unit status for temporary tracking.
4158
4265
  *
@@ -5182,6 +5289,11 @@ export interface IUnitResource {
5182
5289
  *
5183
5290
  */
5184
5291
  unitStatus?: UnitStatus | null;
5292
+ /**
5293
+ * Gets or sets the key of the unit status scheme entry of the current status; for a custom status of the dispatch center, is null.
5294
+ *
5295
+ */
5296
+ unitStatusKey?: string | null;
5185
5297
  /**
5186
5298
  * Gets or sets a non-persistent unit status for temporary tracking.
5187
5299
  *
@@ -6249,7 +6361,9 @@ export declare enum ProblemInformation {
6249
6361
  UnitStatusSchemeCustomBehaviorMissing = 249,
6250
6362
  UnitStatusSchemeCustomNonPersistentNotSupported = 250,
6251
6363
  UnitStatusSchemeMeaningInvalid = 251,
6252
- UnitStatusSchemeCustomBehaviorInvalid = 252
6364
+ UnitStatusSchemeCustomBehaviorInvalid = 252,
6365
+ UnitStatusSchemeYamlInvalid = 253,
6366
+ UnitStatusNotSettable = 254
6253
6367
  }
6254
6368
  export declare enum SessionAccess {
6255
6369
  Private = 0,
@@ -7012,12 +7126,7 @@ export declare enum UnitStatusNonPersistent {
7012
7126
  * Indicates that the dispatch has been canceled.
7013
7127
  *
7014
7128
  */
7015
- CancelDispatch = 5,
7016
- /**
7017
- * Indicates that a simulation fallback cancellation is active.
7018
- *
7019
- */
7020
- SimulationCancel = 6
7129
+ CancelDispatch = 5
7021
7130
  }
7022
7131
  export declare enum UnitStatusSuggestion {
7023
7132
  /**
package/main.js CHANGED
@@ -1080,6 +1080,8 @@ var ProblemInformation;
1080
1080
  ProblemInformation[ProblemInformation["UnitStatusSchemeCustomNonPersistentNotSupported"] = 250] = "UnitStatusSchemeCustomNonPersistentNotSupported";
1081
1081
  ProblemInformation[ProblemInformation["UnitStatusSchemeMeaningInvalid"] = 251] = "UnitStatusSchemeMeaningInvalid";
1082
1082
  ProblemInformation[ProblemInformation["UnitStatusSchemeCustomBehaviorInvalid"] = 252] = "UnitStatusSchemeCustomBehaviorInvalid";
1083
+ ProblemInformation[ProblemInformation["UnitStatusSchemeYamlInvalid"] = 253] = "UnitStatusSchemeYamlInvalid";
1084
+ ProblemInformation[ProblemInformation["UnitStatusNotSettable"] = 254] = "UnitStatusNotSettable";
1083
1085
  })(ProblemInformation || (exports.ProblemInformation = ProblemInformation = {}));
1084
1086
  var SessionAccess;
1085
1087
  (function (SessionAccess) {
@@ -1873,11 +1875,6 @@ var UnitStatusNonPersistent;
1873
1875
  *
1874
1876
  */
1875
1877
  UnitStatusNonPersistent[UnitStatusNonPersistent["CancelDispatch"] = 5] = "CancelDispatch";
1876
- /**
1877
- * Indicates that a simulation fallback cancellation is active.
1878
- *
1879
- */
1880
- UnitStatusNonPersistent[UnitStatusNonPersistent["SimulationCancel"] = 6] = "SimulationCancel";
1881
1878
  })(UnitStatusNonPersistent || (exports.UnitStatusNonPersistent = UnitStatusNonPersistent = {}));
1882
1879
  var UnitStatusSuggestion;
1883
1880
  (function (UnitStatusSuggestion) {
@@ -6667,6 +6664,26 @@ exports.EnumLocalizations = {
6667
6664
  "es-ES": "El comportamiento de un estado personalizado contiene un valor desconocido.",
6668
6665
  "it-IT": "Il comportamento di uno stato personalizzato contiene un valore sconosciuto.",
6669
6666
  "pl-PL": "Zachowanie własnego statusu zawiera nieznaną wartość."
6667
+ },
6668
+ "UnitStatusSchemeYamlInvalid": {
6669
+ "en-US": "The text is not a valid unit status YAML export.",
6670
+ "en-GB": "The text is not a valid unit status YAML export.",
6671
+ "de-DE": "Der Text ist kein gültiger YAML-Export der Fahrzeugstatus.",
6672
+ "nl-NL": "De tekst is geen geldige YAML-export van de eenheidsstatussen.",
6673
+ "fr-FR": "Le texte n’est pas un export YAML valide des statuts des unités.",
6674
+ "es-ES": "El texto no es una exportación YAML válida de los estados de las unidades.",
6675
+ "it-IT": "Il testo non è un’esportazione YAML valida degli stati dei mezzi.",
6676
+ "pl-PL": "Tekst nie jest prawidłowym eksportem YAML statusów jednostek."
6677
+ },
6678
+ "UnitStatusNotSettable": {
6679
+ "en-US": "This status does not exist in the dispatch center or is disabled.",
6680
+ "en-GB": "This status does not exist in the control room or is disabled.",
6681
+ "de-DE": "Diesen Status gibt es in der Leitstelle nicht oder er ist deaktiviert.",
6682
+ "nl-NL": "Deze status bestaat niet in de meldkamer of is uitgeschakeld.",
6683
+ "fr-FR": "Ce statut n’existe pas dans le centre de régulation ou il est désactivé.",
6684
+ "es-ES": "Este estado no existe en el centro de despacho o está desactivado.",
6685
+ "it-IT": "Questo stato non esiste nella centrale operativa o è disattivato.",
6686
+ "pl-PL": "Ten status nie istnieje w centrum dyspozytorskim lub jest wyłączony."
6670
6687
  }
6671
6688
  },
6672
6689
  "SessionAccess": {
@@ -8257,16 +8274,6 @@ exports.EnumLocalizations = {
8257
8274
  "es-ES": "Despacho cancelado",
8258
8275
  "it-IT": "Invio annullato",
8259
8276
  "pl-PL": "Anulowano dysponowanie"
8260
- },
8261
- "SimulationCancel": {
8262
- "en-US": "Simulation Cancel",
8263
- "en-GB": "Simulation Cancel",
8264
- "de-DE": "Simulation Abbruch",
8265
- "nl-NL": "Simulatie geannuleerd",
8266
- "fr-FR": "Annulation de simulation",
8267
- "es-ES": "Cancelación de simulación",
8268
- "it-IT": "Annullamento simulazione",
8269
- "pl-PL": "Anulowanie symulacji"
8270
8277
  }
8271
8278
  }
8272
8279
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resqueserve-core",
3
- "version": "4.10.0-rc.13",
3
+ "version": "4.10.0-rc.14",
4
4
  "main": "main.js",
5
5
  "keywords": [
6
6
  "resqueserve",