tabletcommand-backend-models 7.4.80 → 7.4.82
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/build/constants.js +1 -0
- package/build/constants.js.map +1 -1
- package/build/models/chart-incident.js +0 -6
- package/build/models/chart-incident.js.map +1 -1
- package/build/models/chart-managed-incident.js +0 -6
- package/build/models/chart-managed-incident.js.map +1 -1
- package/build/models/chart-user.js +0 -6
- package/build/models/chart-user.js.map +1 -1
- package/build/models/department.js +27 -1
- package/build/models/department.js.map +1 -1
- package/build/test/0index.js +5 -6
- package/build/test/0index.js.map +1 -1
- package/build/test/action-log.js +6 -5
- package/build/test/action-log.js.map +1 -1
- package/build/test/adsb.js +5 -5
- package/build/test/adsb.js.map +1 -1
- package/build/test/agency.js +5 -5
- package/build/test/agency.js.map +1 -1
- package/build/test/arcgis-group.js +6 -6
- package/build/test/arcgis-group.js.map +1 -1
- package/build/test/assignment.js +6 -5
- package/build/test/assignment.js.map +1 -1
- package/build/test/audio-stream-authentication.js +8 -8
- package/build/test/audio-stream-authentication.js.map +1 -1
- package/build/test/audio-stream.js +10 -9
- package/build/test/audio-stream.js.map +1 -1
- package/build/test/battalion.js +6 -5
- package/build/test/battalion.js.map +1 -1
- package/build/test/cad-incident-block.js +5 -5
- package/build/test/cad-incident-block.js.map +1 -1
- package/build/test/cad-incident.js +6 -6
- package/build/test/cad-incident.js.map +1 -1
- package/build/test/cad-simulation.js +6 -5
- package/build/test/cad-simulation.js.map +1 -1
- package/build/test/cad-status-map.js +6 -5
- package/build/test/cad-status-map.js.map +1 -1
- package/build/test/cad-status.js +6 -5
- package/build/test/cad-status.js.map +1 -1
- package/build/test/cad-vehicle-status-history.js +6 -5
- package/build/test/cad-vehicle-status-history.js.map +1 -1
- package/build/test/cad-vehicle-status.js +6 -5
- package/build/test/cad-vehicle-status.js.map +1 -1
- package/build/test/cad-vehicle.js +6 -5
- package/build/test/cad-vehicle.js.map +1 -1
- package/build/test/chart-incident.js +5 -5
- package/build/test/chart-incident.js.map +1 -1
- package/build/test/chart-managed-incident.js +6 -6
- package/build/test/chart-managed-incident.js.map +1 -1
- package/build/test/chart-user.js +6 -6
- package/build/test/chart-user.js.map +1 -1
- package/build/test/checklist-item.js +6 -5
- package/build/test/checklist-item.js.map +1 -1
- package/build/test/checklist.js +6 -5
- package/build/test/checklist.js.map +1 -1
- package/build/test/config.js +30 -3
- package/build/test/config.js.map +1 -1
- package/build/test/csv-import.js +6 -5
- package/build/test/csv-import.js.map +1 -1
- package/build/test/department.js +8 -8
- package/build/test/department.js.map +1 -1
- package/build/test/device-mapping.js +7 -6
- package/build/test/device-mapping.js.map +1 -1
- package/build/test/esri.js +6 -6
- package/build/test/esri.js.map +1 -1
- package/build/test/global-settings.js +6 -6
- package/build/test/global-settings.js.map +1 -1
- package/build/test/gst-mapping.js +6 -5
- package/build/test/gst-mapping.js.map +1 -1
- package/build/test/helpers.js +3 -3
- package/build/test/helpers.js.map +1 -1
- package/build/test/incident-event.js +6 -8
- package/build/test/incident-event.js.map +1 -1
- package/build/test/incident-filter.js +6 -5
- package/build/test/incident-filter.js.map +1 -1
- package/build/test/incident-notified.js +6 -5
- package/build/test/incident-notified.js.map +1 -1
- package/build/test/incident-takeover.js +6 -5
- package/build/test/incident-takeover.js.map +1 -1
- package/build/test/job-log.js +6 -5
- package/build/test/job-log.js.map +1 -1
- package/build/test/location.js +6 -6
- package/build/test/location.js.map +1 -1
- package/build/test/mail-log.js +6 -5
- package/build/test/mail-log.js.map +1 -1
- package/build/test/managed-incident.js +6 -5
- package/build/test/managed-incident.js.map +1 -1
- package/build/test/mark43-incident-retry.js +6 -5
- package/build/test/mark43-incident-retry.js.map +1 -1
- package/build/test/message.js +6 -5
- package/build/test/message.js.map +1 -1
- package/build/test/monitor.js +6 -5
- package/build/test/monitor.js.map +1 -1
- package/build/test/partner.js +6 -5
- package/build/test/partner.js.map +1 -1
- package/build/test/personnel-import.js +6 -5
- package/build/test/personnel-import.js.map +1 -1
- package/build/test/rate-limit.js +6 -5
- package/build/test/rate-limit.js.map +1 -1
- package/build/test/release-note.js +6 -5
- package/build/test/release-note.js.map +1 -1
- package/build/test/saml.js +5 -5
- package/build/test/saml.js.map +1 -1
- package/build/test/session.js +6 -5
- package/build/test/session.js.map +1 -1
- package/build/test/template.js +6 -5
- package/build/test/template.js.map +1 -1
- package/build/test/user-device.js +6 -5
- package/build/test/user-device.js.map +1 -1
- package/build/test/user-registration.js +6 -5
- package/build/test/user-registration.js.map +1 -1
- package/build/test/user.js +6 -4
- package/build/test/user.js.map +1 -1
- package/build/test/validation-report.js +6 -5
- package/build/test/validation-report.js.map +1 -1
- package/definitions/constants.d.ts +1 -0
- package/definitions/constants.d.ts.map +1 -1
- package/definitions/models/chart-incident.d.ts.map +1 -1
- package/definitions/models/chart-managed-incident.d.ts.map +1 -1
- package/definitions/models/chart-user.d.ts.map +1 -1
- package/definitions/models/department.d.ts +5 -0
- package/definitions/models/department.d.ts.map +1 -1
- package/definitions/test/0index.d.ts +1 -1
- package/definitions/test/0index.d.ts.map +1 -1
- package/definitions/test/action-log.d.ts +1 -1
- package/definitions/test/action-log.d.ts.map +1 -1
- package/definitions/test/adsb.d.ts +1 -1
- package/definitions/test/adsb.d.ts.map +1 -1
- package/definitions/test/agency.d.ts +1 -1
- package/definitions/test/agency.d.ts.map +1 -1
- package/definitions/test/arcgis-group.d.ts +1 -1
- package/definitions/test/arcgis-group.d.ts.map +1 -1
- package/definitions/test/assignment.d.ts +1 -1
- package/definitions/test/assignment.d.ts.map +1 -1
- package/definitions/test/audio-stream-authentication.d.ts +1 -1
- package/definitions/test/audio-stream-authentication.d.ts.map +1 -1
- package/definitions/test/audio-stream.d.ts +1 -1
- package/definitions/test/audio-stream.d.ts.map +1 -1
- package/definitions/test/battalion.d.ts +1 -1
- package/definitions/test/battalion.d.ts.map +1 -1
- package/definitions/test/cad-incident-block.d.ts +1 -1
- package/definitions/test/cad-incident-block.d.ts.map +1 -1
- package/definitions/test/cad-incident.d.ts +1 -1
- package/definitions/test/cad-incident.d.ts.map +1 -1
- package/definitions/test/cad-simulation.d.ts +1 -1
- package/definitions/test/cad-simulation.d.ts.map +1 -1
- package/definitions/test/cad-status-map.d.ts +1 -1
- package/definitions/test/cad-status-map.d.ts.map +1 -1
- package/definitions/test/cad-status.d.ts +1 -1
- package/definitions/test/cad-status.d.ts.map +1 -1
- package/definitions/test/cad-vehicle-status-history.d.ts +1 -1
- package/definitions/test/cad-vehicle-status-history.d.ts.map +1 -1
- package/definitions/test/cad-vehicle-status.d.ts +1 -1
- package/definitions/test/cad-vehicle-status.d.ts.map +1 -1
- package/definitions/test/cad-vehicle.d.ts +1 -1
- package/definitions/test/cad-vehicle.d.ts.map +1 -1
- package/definitions/test/chart-incident.d.ts +1 -1
- package/definitions/test/chart-incident.d.ts.map +1 -1
- package/definitions/test/chart-managed-incident.d.ts +1 -1
- package/definitions/test/chart-managed-incident.d.ts.map +1 -1
- package/definitions/test/chart-user.d.ts +1 -1
- package/definitions/test/chart-user.d.ts.map +1 -1
- package/definitions/test/checklist-item.d.ts +1 -1
- package/definitions/test/checklist-item.d.ts.map +1 -1
- package/definitions/test/checklist.d.ts +1 -1
- package/definitions/test/checklist.d.ts.map +1 -1
- package/definitions/test/config.d.ts +2 -1
- package/definitions/test/config.d.ts.map +1 -1
- package/definitions/test/csv-import.d.ts +1 -1
- package/definitions/test/csv-import.d.ts.map +1 -1
- package/definitions/test/department.d.ts +1 -1
- package/definitions/test/department.d.ts.map +1 -1
- package/definitions/test/device-mapping.d.ts +1 -1
- package/definitions/test/device-mapping.d.ts.map +1 -1
- package/definitions/test/esri.d.ts +1 -1
- package/definitions/test/esri.d.ts.map +1 -1
- package/definitions/test/global-settings.d.ts +1 -1
- package/definitions/test/global-settings.d.ts.map +1 -1
- package/definitions/test/gst-mapping.d.ts +1 -1
- package/definitions/test/gst-mapping.d.ts.map +1 -1
- package/definitions/test/helpers.d.ts +1 -1
- package/definitions/test/helpers.d.ts.map +1 -1
- package/definitions/test/incident-event.d.ts +1 -1
- package/definitions/test/incident-event.d.ts.map +1 -1
- package/definitions/test/incident-filter.d.ts +1 -1
- package/definitions/test/incident-filter.d.ts.map +1 -1
- package/definitions/test/incident-notified.d.ts +1 -1
- package/definitions/test/incident-notified.d.ts.map +1 -1
- package/definitions/test/incident-takeover.d.ts +1 -1
- package/definitions/test/incident-takeover.d.ts.map +1 -1
- package/definitions/test/job-log.d.ts +1 -1
- package/definitions/test/job-log.d.ts.map +1 -1
- package/definitions/test/location.d.ts +1 -1
- package/definitions/test/location.d.ts.map +1 -1
- package/definitions/test/mail-log.d.ts +1 -1
- package/definitions/test/mail-log.d.ts.map +1 -1
- package/definitions/test/managed-incident.d.ts +1 -1
- package/definitions/test/managed-incident.d.ts.map +1 -1
- package/definitions/test/mark43-incident-retry.d.ts +1 -1
- package/definitions/test/mark43-incident-retry.d.ts.map +1 -1
- package/definitions/test/message.d.ts +1 -1
- package/definitions/test/message.d.ts.map +1 -1
- package/definitions/test/monitor.d.ts +1 -1
- package/definitions/test/monitor.d.ts.map +1 -1
- package/definitions/test/partner.d.ts +1 -1
- package/definitions/test/partner.d.ts.map +1 -1
- package/definitions/test/personnel-import.d.ts +1 -1
- package/definitions/test/personnel-import.d.ts.map +1 -1
- package/definitions/test/rate-limit.d.ts +1 -1
- package/definitions/test/rate-limit.d.ts.map +1 -1
- package/definitions/test/release-note.d.ts +1 -1
- package/definitions/test/release-note.d.ts.map +1 -1
- package/definitions/test/saml.d.ts +1 -1
- package/definitions/test/saml.d.ts.map +1 -1
- package/definitions/test/session.d.ts +1 -1
- package/definitions/test/session.d.ts.map +1 -1
- package/definitions/test/template.d.ts +1 -1
- package/definitions/test/template.d.ts.map +1 -1
- package/definitions/test/user-device.d.ts +1 -1
- package/definitions/test/user-device.d.ts.map +1 -1
- package/definitions/test/user-registration.d.ts +1 -1
- package/definitions/test/user-registration.d.ts.map +1 -1
- package/definitions/test/validation-report.d.ts +1 -1
- package/definitions/test/validation-report.d.ts.map +1 -1
- package/definitions/types/department.d.ts +6 -0
- package/definitions/types/department.d.ts.map +1 -1
- package/eslint.config.mjs +20 -6
- package/gulpfile.js +1 -1
- package/package.json +9 -11
- package/src/constants.ts +1 -0
- package/src/models/chart-incident.ts +0 -7
- package/src/models/chart-managed-incident.ts +0 -7
- package/src/models/chart-user.ts +0 -7
- package/src/models/department.ts +29 -0
- package/src/test/0index.ts +1 -2
- package/src/test/action-log.ts +2 -1
- package/src/test/adsb.ts +1 -1
- package/src/test/agency.ts +1 -1
- package/src/test/arcgis-group.ts +2 -2
- package/src/test/assignment.ts +2 -1
- package/src/test/audio-stream-authentication.ts +2 -3
- package/src/test/audio-stream.ts +3 -3
- package/src/test/battalion.ts +2 -1
- package/src/test/cad-incident-block.ts +1 -1
- package/src/test/cad-incident.ts +1 -1
- package/src/test/cad-simulation.ts +2 -1
- package/src/test/cad-status-map.ts +2 -1
- package/src/test/cad-status.ts +2 -1
- package/src/test/cad-vehicle-status-history.ts +2 -1
- package/src/test/cad-vehicle-status.ts +2 -1
- package/src/test/cad-vehicle.ts +2 -1
- package/src/test/chart-incident.ts +1 -1
- package/src/test/chart-managed-incident.ts +1 -1
- package/src/test/chart-user.ts +1 -1
- package/src/test/checklist-item.ts +2 -1
- package/src/test/checklist.ts +2 -1
- package/src/test/config.ts +28 -1
- package/src/test/csv-import.ts +2 -1
- package/src/test/department.ts +2 -2
- package/src/test/device-mapping.ts +2 -1
- package/src/test/esri.ts +2 -2
- package/src/test/global-settings.ts +2 -2
- package/src/test/gst-mapping.ts +2 -1
- package/src/test/helpers.ts +1 -3
- package/src/test/incident-event.ts +2 -4
- package/src/test/incident-filter.ts +2 -1
- package/src/test/incident-notified.ts +2 -1
- package/src/test/incident-takeover.ts +2 -1
- package/src/test/job-log.ts +2 -1
- package/src/test/location.ts +1 -1
- package/src/test/mail-log.ts +2 -1
- package/src/test/managed-incident.ts +2 -1
- package/src/test/mark43-incident-retry.ts +2 -1
- package/src/test/message.ts +2 -1
- package/src/test/monitor.ts +2 -1
- package/src/test/partner.ts +2 -1
- package/src/test/personnel-import.ts +2 -1
- package/src/test/rate-limit.ts +2 -1
- package/src/test/release-note.ts +2 -1
- package/src/test/saml.ts +1 -1
- package/src/test/session.ts +2 -1
- package/src/test/template.ts +2 -1
- package/src/test/user-device.ts +2 -1
- package/src/test/user-registration.ts +2 -1
- package/src/test/user.ts +2 -0
- package/src/test/validation-report.ts +2 -1
- package/src/tsconfig.json +3 -3
- package/src/types/department.ts +7 -0
package/src/test/department.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -25,7 +25,7 @@ describe("Department", function () {
|
|
|
25
25
|
mongoose
|
|
26
26
|
});
|
|
27
27
|
testItem = mock.department;
|
|
28
|
-
await mock.
|
|
28
|
+
await mock.beforeEach();
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
afterEach(async function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -17,6 +17,7 @@ describe("DeviceMapping", function() {
|
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.deviceMapping;
|
|
19
19
|
testItemForTrim = mock.deviceMappingWithWhiteSpaces;
|
|
20
|
+
await mock.beforeEach();
|
|
20
21
|
});
|
|
21
22
|
afterEach(async function() {
|
|
22
23
|
await mongoose.disconnect();
|
package/src/test/esri.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -14,7 +14,7 @@ describe("Esri", function() {
|
|
|
14
14
|
mongoose
|
|
15
15
|
});
|
|
16
16
|
testItem = mock.esri;
|
|
17
|
-
await mock.
|
|
17
|
+
await mock.beforeEach();
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
afterEach(async function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import { isDate } from "lodash";
|
|
4
4
|
|
|
5
5
|
import * as m from "../index";
|
|
@@ -17,7 +17,7 @@ describe("GlobalSettings", function() {
|
|
|
17
17
|
mongoose
|
|
18
18
|
});
|
|
19
19
|
testItem = mock.globalSettings;
|
|
20
|
-
await mock.
|
|
20
|
+
await mock.beforeEach();
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
afterEach(async function() {
|
package/src/test/gst-mapping.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("GSTMapping", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.gstMapping;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/helpers.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,9 +16,7 @@ describe("IncidentEvent", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.incidentEvent;
|
|
19
|
-
await
|
|
20
|
-
departmentId: testItem.departmentId
|
|
21
|
-
});
|
|
19
|
+
await mock.beforeEach();
|
|
22
20
|
});
|
|
23
21
|
afterEach(async function() {
|
|
24
22
|
await mongoose.disconnect();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import { url } from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -15,6 +15,7 @@ describe("IncidentFilter", function() {
|
|
|
15
15
|
mongoose
|
|
16
16
|
});
|
|
17
17
|
testItem = mock.incidentFilterAgency;
|
|
18
|
+
await mock.beforeEach();
|
|
18
19
|
});
|
|
19
20
|
|
|
20
21
|
afterEach(async function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("IncidentNotified", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.incidentNotified;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("IncidentTakeover", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.incidentTakeover;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/job-log.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("JobLog", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.jobLog;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/location.ts
CHANGED
package/src/test/mail-log.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("MailLog", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.mailLog;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as _ from "lodash";
|
|
4
4
|
import * as m from "../index";
|
|
5
5
|
import * as config from "./config";
|
|
@@ -17,6 +17,7 @@ describe("ManagedIncident", function() {
|
|
|
17
17
|
mongoose
|
|
18
18
|
});
|
|
19
19
|
testItem = mock.managedIncident;
|
|
20
|
+
await mock.beforeEach();
|
|
20
21
|
});
|
|
21
22
|
afterEach(async function() {
|
|
22
23
|
await mongoose.disconnect();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("Mark43IncidentRetry", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.mark43IncidentRetry;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/message.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("Message", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.message;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/monitor.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("Monitor", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.monitor;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/partner.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("Partner", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.partner;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("PersonnelImport", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.personnelImport;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/rate-limit.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("RateLimit", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.rateLimit;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/release-note.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("ReleaseNote", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.releaseNote;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/saml.ts
CHANGED
package/src/test/session.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("Session", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.session;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/template.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("Template", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.template;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/user-device.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("UserDevice", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.userDevice;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("UserRegistration", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.userRegistration;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/test/user.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
2
3
|
import * as m from "../index";
|
|
3
4
|
import * as config from "./config";
|
|
4
5
|
import mockModule from "./mock";
|
|
@@ -15,6 +16,7 @@ describe("User", function () {
|
|
|
15
16
|
mongoose
|
|
16
17
|
});
|
|
17
18
|
testItem = mock.user;
|
|
19
|
+
await mock.beforeEach();
|
|
18
20
|
});
|
|
19
21
|
afterEach(async function () {
|
|
20
22
|
await mongoose.disconnect();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "chai";
|
|
2
|
-
import "
|
|
2
|
+
import { describe, it, beforeEach, afterEach } from "node:test";
|
|
3
3
|
import * as m from "../index";
|
|
4
4
|
import * as config from "./config";
|
|
5
5
|
import mockModule from "./mock";
|
|
@@ -16,6 +16,7 @@ describe("ValidationReport", function() {
|
|
|
16
16
|
mongoose
|
|
17
17
|
});
|
|
18
18
|
testItem = mock.validationReport;
|
|
19
|
+
await mock.beforeEach();
|
|
19
20
|
});
|
|
20
21
|
afterEach(async function() {
|
|
21
22
|
await mongoose.disconnect();
|
package/src/tsconfig.json
CHANGED
package/src/types/department.ts
CHANGED
|
@@ -326,6 +326,12 @@ export interface USFTConfigurationType {
|
|
|
326
326
|
radioNameMappings: Record<string, string>,
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
+
export interface OneStepConfigurationType {
|
|
330
|
+
enabled: boolean,
|
|
331
|
+
apiKey: string,
|
|
332
|
+
radioNameMappings: Record<string, string>,
|
|
333
|
+
}
|
|
334
|
+
|
|
329
335
|
export interface FireMapperConfigurationType {
|
|
330
336
|
enabled: boolean,
|
|
331
337
|
auth: FireMapperAuthV2Type,
|
|
@@ -643,6 +649,7 @@ export interface DepartmentType {
|
|
|
643
649
|
safetyPriorityKeywords: SafetyPriorityKeywordType[],
|
|
644
650
|
samsara: SamsaraConfigurationType,
|
|
645
651
|
usft: USFTConfigurationType,
|
|
652
|
+
onestep: OneStepConfigurationType, // cspell:disable-line
|
|
646
653
|
selfAssignmentEnabled: boolean,
|
|
647
654
|
shareAVL: AccountConfigurationShareAVL,
|
|
648
655
|
shareIncident: AccountConfigurationShareIncident,
|