tabletcommand-backend-models 7.2.2 → 7.2.3

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.
@@ -1,49 +1,49 @@
1
1
  import { Types } from "mongoose";
2
2
  import { CADPersonSchemaType, RadioChannelSchemaType, RecordSchemaType, ReportNumberSchemaType, SharedSourceSchemaType, SharedToSchemaType } from "./shared-incident";
3
3
  export interface HistoryItemType extends Record<string, unknown> {
4
- message: string;
4
+ entity_id: string;
5
5
  entity_type: number;
6
+ message: string;
6
7
  time: number;
7
- entity_id: string;
8
8
  user: string;
9
9
  }
10
10
  export interface AssignmentItemType {
11
- name: string;
12
- uuid: string;
13
- modified_date: string;
14
- modified_unix_date: number;
11
+ active: boolean;
15
12
  built_in: boolean;
16
- isMandatory: boolean;
17
13
  description: string;
18
- active: boolean;
14
+ isMandatory: boolean;
15
+ modified_date: string;
16
+ modified_unix_date: number;
17
+ name: string;
19
18
  position: number;
19
+ uuid: string;
20
20
  }
21
21
  export interface IncidentUnitType extends Record<string, unknown> {
22
+ AlarmAtDispatch: number;
23
+ Personnel: CADPersonSchemaType[];
22
24
  UnitID: string;
23
25
  active: boolean;
24
26
  air_time: string;
25
- assignment: AssignmentItemType;
26
- AlarmAtDispatch: number;
27
27
  api_unit_dispatch_number: string;
28
+ assignment: AssignmentItemType;
28
29
  checked: boolean;
29
30
  column_position: number;
30
31
  group_position: number;
31
32
  incident_position: number;
32
33
  isSupervisor: boolean;
33
34
  is_part_of_group: boolean;
35
+ local_id: string;
34
36
  location_on_map: string;
35
37
  modified_date: string;
36
38
  modified_unix_date: number;
37
39
  note: string;
40
+ parent_uuid: string;
38
41
  personnelOnScene: number;
39
- Personnel: CADPersonSchemaType[];
40
42
  status: string;
41
43
  status_unix_date: number;
42
44
  time: string;
43
- warning: number;
44
45
  uuid: string;
45
- parent_uuid: string;
46
- local_id: string;
46
+ warning: number;
47
47
  }
48
48
  export interface IncidentGroupType {
49
49
  location_on_map: string;
@@ -94,58 +94,58 @@ export interface IncidentChecklistType {
94
94
  export interface ManagedIncidentType {
95
95
  _id: Types.ObjectId;
96
96
  id?: string;
97
- departmentId: string;
98
- userId: string;
99
- uuid: string;
100
- start_unix_time: number;
101
- end_unix_time: number;
102
- par_unix_time: number;
103
- watch_unix_start_time: number;
104
- watch_unix_pause_time: number;
105
- start_time: string;
106
- end_time: string;
107
- modified_date: string;
108
- modified_unix_date: number;
109
- modified: Date;
110
- channel_owner: string;
111
- channel: string;
112
- active: boolean;
113
- address: string;
114
- api_incident_number: string;
97
+ AgencyID: string;
115
98
  CallerNumber: string;
116
99
  CommandChannel: string;
117
100
  CommonPlaceName: string;
101
+ FireMap: string;
102
+ MapPages: string;
103
+ ReportNumber: ReportNumberSchemaType[];
104
+ TacticalAltChannel: string;
105
+ TacticalChannel: string;
106
+ active: boolean;
107
+ address: string;
108
+ api_incident_number: string;
109
+ channel: string;
110
+ channel_owner: string;
111
+ checklists: IncidentChecklistType[];
118
112
  cross_streets: string;
113
+ departmentId: string;
119
114
  deviceTime: string;
115
+ end_time: string;
116
+ end_unix_time: number;
120
117
  extended: boolean;
121
- FireMap: string;
118
+ groups: IncidentGroupType[];
119
+ hazards: IncidentHazardType[];
120
+ history: HistoryItemType[];
121
+ isMandatory: boolean;
122
122
  is_closed: boolean;
123
123
  last_view: string;
124
+ local_id: string;
124
125
  location: string;
125
- MapPages: string;
126
126
  managed: number;
127
+ modified: Date;
128
+ modified_date: string;
129
+ modified_unix_date: number;
127
130
  name: string;
131
+ notes: HistoryItemType[];
132
+ par_unix_time: number;
128
133
  preference_location: string;
134
+ radioChannels: RadioChannelSchemaType[];
135
+ record: RecordSchemaType;
136
+ rts: boolean;
129
137
  serverTime: string;
138
+ sharedSource: SharedSourceSchemaType;
139
+ sharedTo: SharedToSchemaType[];
140
+ simulation: boolean;
130
141
  slave_map_changed: boolean;
131
142
  source: string;
132
- TacticalAltChannel: string;
133
- TacticalChannel: string;
134
- checklists: IncidentChecklistType[];
135
- groups: IncidentGroupType[];
136
- hazards: IncidentHazardType[];
137
- history: HistoryItemType[];
138
- notes: HistoryItemType[];
143
+ start_time: string;
144
+ start_unix_time: number;
139
145
  units: IncidentUnitType[];
140
- simulation: boolean;
141
- rts: boolean;
142
- local_id: string;
143
- AgencyID: string;
144
- isMandatory: boolean;
145
- radioChannels: RadioChannelSchemaType[];
146
- record: RecordSchemaType;
147
- ReportNumber: ReportNumberSchemaType[];
148
- sharedTo: SharedToSchemaType[];
149
- sharedSource: SharedSourceSchemaType;
146
+ userId: string;
147
+ uuid: string;
148
+ watch_unix_pause_time: number;
149
+ watch_unix_start_time: number;
150
150
  }
151
151
  //# sourceMappingURL=managed-incident.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"managed-incident.d.ts","sourceRoot":"","sources":["../../src/types/managed-incident.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEtK,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CA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qB,EAAE,MAAM,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;CAC/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabletcommand-backend-models",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
4
4
  "description": "Tablet Command Backend Models",
5
5
  "scripts": {
6
6
  "build": "gulp build",
@@ -19,7 +19,7 @@
19
19
  "bluebird": "^3.7.2",
20
20
  "debug": "^4.3.7",
21
21
  "lodash": "^4.17.21",
22
- "moment-timezone": "^0.5.45",
22
+ "moment-timezone": "^0.5.46",
23
23
  "mongoose": "^7.7.0",
24
24
  "mongoose-lean-virtuals": "^0.9.1",
25
25
  "uuid": "~10.0.0"
@@ -28,20 +28,20 @@
28
28
  "@types/bluebird": "^3.5.42",
29
29
  "@types/chai": "^5.0.0",
30
30
  "@types/lodash": "^4.14.202",
31
- "@types/mocha": "^10.0.8",
32
- "@types/node": "^22.7.4",
31
+ "@types/mocha": "^10.0.9",
32
+ "@types/node": "^22.7.5",
33
33
  "@types/uuid": "~10.0.0",
34
34
  "@typescript-eslint/eslint-plugin": "~6.21.0",
35
35
  "@typescript-eslint/parser": "~6.21.0",
36
36
  "chai": "^4.5.0",
37
- "cspell": "^8.14.4",
37
+ "cspell": "^8.15.2",
38
38
  "del": "^6.1.1",
39
- "eslint": "^8.57.0",
39
+ "eslint": "^8.57.1",
40
40
  "gulp": "^5.0.0",
41
41
  "gulp-shell": "^0.8.0",
42
42
  "mocha": "^10.7.3",
43
43
  "ts-node": "^10.9.2",
44
- "type-coverage": "^2.29.1",
44
+ "type-coverage": "^2.29.7",
45
45
  "typescript": "~4.9.5",
46
46
  "yargs-parser": ">=21.1.1"
47
47
  },
@@ -67,10 +67,10 @@ export default async function CADIncidentModule(mongoose: MongooseModule) {
67
67
 
68
68
  modelSchema.index({
69
69
  departmentId: 1,
70
+ closed_unix_date: 1,
70
71
  start_unix_date: -1,
71
- closed_unix_date: 1
72
72
  }, {
73
- name: "departmentId_1_start_unix_date_-1_closed_unix_date_1",
73
+ name: "departmentId_1_closed_unix_date_1_start_unix_date_-1",
74
74
  });
75
75
 
76
76
  modelSchema.index({
@@ -111,10 +111,10 @@ export default async function CADIncidentModule(mongoose: MongooseModule) {
111
111
 
112
112
  modelSchema.index({
113
113
  "sharedTo.departmentId": 1,
114
+ closed_unix_date: 1,
114
115
  start_unix_date: -1,
115
- closed_unix_date: 1
116
116
  }, {
117
- name: "sharedTo.departmentId_1_start_unix_date_-1_closed_unix_date_1",
117
+ name: "sharedTo.departmentId_1_closed_unix_date_1_start_unix_date_-1",
118
118
  });
119
119
 
120
120
  modelSchema.index({
@@ -578,13 +578,6 @@ export default async function ManagedIncidentModule(mongoose: MongooseModule) {
578
578
  name: "departmentId_1_api_incident_number_1",
579
579
  });
580
580
 
581
- modelSchema.index({
582
- departmentId: 1,
583
- end_unix_time: 1,
584
- }, {
585
- name: "departmentId_1_end_unix_time_1",
586
- });
587
-
588
581
  modelSchema.index({
589
582
  departmentId: 1,
590
583
  end_unix_time: 1,
@@ -638,6 +631,14 @@ export default async function ManagedIncidentModule(mongoose: MongooseModule) {
638
631
  name: "departmentId_1_start_unix_time_-1_end_unix_time_1",
639
632
  });
640
633
 
634
+ modelSchema.index({
635
+ "sharedTo.departmentId": 1,
636
+ end_unix_time: 1,
637
+ start_unix_date: -1,
638
+ }, {
639
+ name: "sharedTo.departmentId_1_end_unix_time_1_start_unix_date_-1",
640
+ });
641
+
641
642
  modelSchema.index({
642
643
  uuid: 1,
643
644
  }, {
@@ -1,131 +1,138 @@
1
- import { Types } from "mongoose";
2
- import { IncidentEventType } from "./incident-events";
3
- import { CADPersonSchemaType, ReportNumberSchemaType, RadioChannelSchemaType, SharedToSchemaType, SharedSourceSchemaType, RecordSchemaType } from "./shared-incident";
4
-
5
- export interface CADCommentOptsTypes {
6
- type: string,
7
- item: string,
8
- }
9
-
10
- export interface CADCommentType extends Record<string, unknown> {
11
- Comment: string,
12
- CommentSource: string,
13
- CommentDateTime: string,
14
- CommentConfidential: boolean,
15
- CommentOpts: CADCommentOptsTypes
16
- }
17
-
18
- export interface CADUnitType extends Record<string, unknown> {
19
- UnitID: string,
20
- UnitDispatchNumber: string,
21
- AlarmAtDispatch: string,
22
- TimeDispatched: string,
23
- TimeEnroute: string,
24
- TimeArrived: string,
25
- TimeStaged: string,
26
- TimeCleared: string,
27
- TimeAtHospital: string,
28
- TimePatient: string,
29
- TimeTransport: string,
30
- TimeTransporting: string,
31
- PersonnelCount: number,
32
- Personnel: CADPersonSchemaType[],
33
- uuid: string,
34
- }
35
-
36
- export interface APNNotificationTypeType {
37
- name: string,
38
- value: string,
39
- }
40
-
41
- export interface CADPriorIncidentType {
42
- Address: string,
43
- Comment: CADCommentType[],
44
- IncidentDateTime: string,
45
- IncidentNumber: string,
46
- Jurisdiction: string,
47
- Problem: string,
48
- Suite: string,
49
- }
50
- export interface CADIncidentSchemaType {
51
- _id: Types.ObjectId,
52
- id?: string,
53
- uuid: string,
54
- departmentId: string,
55
- AgencyID: string,
56
- IncidentNumber: string,
57
- TransactionID: string,
58
- AgencyIncidentCallTypeDescription: string,
59
- AgencyIncidentCallType: string,
60
- AgencyIncidentCallSubTypeDescription: string,
61
- AgencyIncidentCallSubType: string,
62
- AgencyIncidentPriorityDescription: string,
63
- PulsePointIncidentCallType: string,
64
- PulsePointDeterminantCode: string,
65
- AlarmLevel: string,
66
- CommandName: string,
67
- FireMap: string,
68
- TBMap: string,
69
- MapPages: string,
70
- TacticalChannel: string,
71
- TacticalAltChannel: string,
72
- CommandChannel: string,
73
- EntryDateTime: string,
74
- ClosedDateTime: string,
75
- CallReceivedDateTime: string,
76
- DispatchDateTime: string,
77
- IncidentLastUpdate: string,
78
- EnrouteDateTime: string,
79
- OnSceneDateTime: string,
80
- modified_date: string,
81
- modified_unix_date: number
82
- modified: Date,
83
- start_unix_date: number,
84
- closed_unix_date: number,
85
- queued_at: number,
86
- scheduled_at: number,
87
- ignored: boolean,
88
- expiration_date: Date,
89
- StreetName: string,
90
- StreetSuffix: string,
91
- Predirectional: string,
92
- Postdirectional: string,
93
- CityOrLocality: string,
94
- StateOrProvince: string,
95
- StateOfProvince: string,
96
- CommonPlaceName: string,
97
- CrossStreet1: string,
98
- CrossStreet2: string,
99
- StreetNumber: string,
100
- Building: string,
101
- Floor: string,
102
- Suite: string,
103
- City: string,
104
- County: string,
105
- PostalCode: string,
106
- CrossStreetName: string,
107
- LocationComment: string,
108
- full_address: string,
109
- address: string,
110
- cross_streets: string,
111
- PriorIncidentChanged: boolean,
112
- PriorIncident: CADPriorIncidentType[],
113
- CallerNumber: string,
114
- ReportNumber: ReportNumberSchemaType[]
115
- radioChannels: RadioChannelSchemaType[],
116
- Latitude: number,
117
- Longitude: number,
118
- Comment: CADCommentType[]
119
- units: CADUnitType[]
120
- events: IncidentEventType[],
121
- preference_location: string,
122
- simulation: boolean,
123
- simulationId: string,
124
- simulationSequences: number[],
125
- notify: boolean,
126
- rts: boolean,
127
- notificationType: APNNotificationTypeType[],
128
- sharedTo: SharedToSchemaType[],
129
- sharedSource: SharedSourceSchemaType,
130
- record: RecordSchemaType,
1
+ import { Types } from "mongoose";
2
+ import { IncidentEventType } from "./incident-events";
3
+ import {
4
+ CADPersonSchemaType,
5
+ RadioChannelSchemaType,
6
+ RecordSchemaType,
7
+ ReportNumberSchemaType,
8
+ SharedSourceSchemaType,
9
+ SharedToSchemaType,
10
+ } from "./shared-incident";
11
+
12
+ export interface CADCommentOptsTypes {
13
+ type: string,
14
+ item: string,
15
+ }
16
+
17
+ export interface CADCommentType extends Record<string, unknown> {
18
+ Comment: string,
19
+ CommentSource: string,
20
+ CommentDateTime: string,
21
+ CommentConfidential: boolean,
22
+ CommentOpts: CADCommentOptsTypes
23
+ }
24
+
25
+ export interface CADUnitType extends Record<string, unknown> {
26
+ UnitID: string,
27
+ UnitDispatchNumber: string,
28
+ AlarmAtDispatch: string,
29
+ TimeDispatched: string,
30
+ TimeEnroute: string,
31
+ TimeArrived: string,
32
+ TimeStaged: string,
33
+ TimeCleared: string,
34
+ TimeAtHospital: string,
35
+ TimePatient: string,
36
+ TimeTransport: string,
37
+ TimeTransporting: string,
38
+ PersonnelCount: number,
39
+ Personnel: CADPersonSchemaType[],
40
+ uuid: string,
41
+ }
42
+
43
+ export interface APNNotificationTypeType {
44
+ name: string,
45
+ value: string,
46
+ }
47
+
48
+ export interface CADPriorIncidentType {
49
+ Address: string,
50
+ Comment: CADCommentType[],
51
+ IncidentDateTime: string,
52
+ IncidentNumber: string,
53
+ Jurisdiction: string,
54
+ Problem: string,
55
+ Suite: string,
56
+ }
57
+ export interface CADIncidentSchemaType {
58
+ _id: Types.ObjectId,
59
+ id?: string,
60
+ AgencyID: string,
61
+ AgencyIncidentCallSubType: string,
62
+ AgencyIncidentCallSubTypeDescription: string,
63
+ AgencyIncidentCallType: string,
64
+ AgencyIncidentCallTypeDescription: string,
65
+ AgencyIncidentPriorityDescription: string,
66
+ AlarmLevel: string,
67
+ Building: string,
68
+ CallReceivedDateTime: string,
69
+ CallerNumber: string,
70
+ City: string,
71
+ CityOrLocality: string,
72
+ ClosedDateTime: string,
73
+ CommandChannel: string,
74
+ CommandName: string,
75
+ Comment: CADCommentType[]
76
+ CommonPlaceName: string,
77
+ County: string,
78
+ CrossStreet1: string,
79
+ CrossStreet2: string,
80
+ CrossStreetName: string,
81
+ DispatchDateTime: string,
82
+ EnrouteDateTime: string,
83
+ EntryDateTime: string,
84
+ FireMap: string,
85
+ Floor: string,
86
+ IncidentLastUpdate: string,
87
+ IncidentNumber: string,
88
+ Latitude: number,
89
+ LocationComment: string,
90
+ Longitude: number,
91
+ MapPages: string,
92
+ OnSceneDateTime: string,
93
+ PostalCode: string,
94
+ Postdirectional: string,
95
+ Predirectional: string,
96
+ PriorIncident: CADPriorIncidentType[],
97
+ PriorIncidentChanged: boolean,
98
+ PulsePointDeterminantCode: string,
99
+ PulsePointIncidentCallType: string,
100
+ ReportNumber: ReportNumberSchemaType[]
101
+ StateOfProvince: string,
102
+ StateOrProvince: string,
103
+ StreetName: string,
104
+ StreetNumber: string,
105
+ StreetSuffix: string,
106
+ Suite: string,
107
+ TBMap: string,
108
+ TacticalAltChannel: string,
109
+ TacticalChannel: string,
110
+ TransactionID?: string,
111
+ address: string,
112
+ closed_unix_date: number,
113
+ cross_streets: string,
114
+ departmentId: string,
115
+ events: IncidentEventType[],
116
+ expiration_date: Date,
117
+ full_address: string,
118
+ ignored: boolean,
119
+ modified: Date,
120
+ modified_date: string,
121
+ modified_unix_date: number
122
+ notificationType: APNNotificationTypeType[],
123
+ notify: boolean,
124
+ preference_location: string,
125
+ queued_at: number,
126
+ radioChannels: RadioChannelSchemaType[],
127
+ record: RecordSchemaType,
128
+ rts: boolean,
129
+ scheduled_at: number,
130
+ sharedSource: SharedSourceSchemaType,
131
+ sharedTo: SharedToSchemaType[],
132
+ simulation: boolean,
133
+ simulationId: string,
134
+ simulationSequences: number[],
135
+ start_unix_date: number,
136
+ units: CADUnitType[]
137
+ uuid: string,
131
138
  }