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.
- package/build/models/cad-incident.js +4 -4
- package/build/models/cad-incident.js.map +1 -1
- package/build/models/managed-incident.js +7 -6
- package/build/models/managed-incident.js.map +1 -1
- package/definitions/models/managed-incident.d.ts.map +1 -1
- package/definitions/types/cad-incident.d.ts +60 -60
- package/definitions/types/cad-incident.d.ts.map +1 -1
- package/definitions/types/cad.d.ts +72 -72
- package/definitions/types/cad.d.ts.map +1 -1
- package/definitions/types/managed-incident.d.ts +51 -51
- package/definitions/types/managed-incident.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/models/cad-incident.ts +4 -4
- package/src/models/managed-incident.ts +8 -7
- package/src/types/cad-incident.ts +137 -130
- package/src/types/cad.ts +74 -72
- package/src/types/color.ts +3 -3
- package/src/types/managed-incident.ts +60 -52
package/src/types/cad.ts
CHANGED
@@ -25,59 +25,60 @@ export interface DestinationType {
|
|
25
25
|
address: string,
|
26
26
|
name: string,
|
27
27
|
}
|
28
|
+
|
28
29
|
export interface CADVehicleStatusType {
|
29
|
-
|
30
|
+
assignableByUser: boolean,
|
31
|
+
backupDate: Date,
|
32
|
+
capability: string,
|
33
|
+
changedAt: Date,
|
30
34
|
departmentId: string,
|
31
|
-
|
35
|
+
destination: DestinationType,
|
36
|
+
incidentNumber: string,
|
37
|
+
locationCurrent: string,
|
38
|
+
locationDestination: string,
|
39
|
+
modified: Date,
|
40
|
+
modifiedDate: number,
|
41
|
+
options: CADStatusOptionSelectedSchemaType[]
|
42
|
+
owner: string,
|
43
|
+
ownerId: string,
|
32
44
|
radioName: string,
|
45
|
+
requestStatus: number,
|
33
46
|
requestTime: number,
|
34
47
|
responseTime: number,
|
35
|
-
changedAt: Date,
|
36
48
|
status: string,
|
37
49
|
statusCode: string,
|
38
|
-
|
39
|
-
|
40
|
-
requestStatus: number,
|
41
|
-
owner: string,
|
42
|
-
ownerId: string,
|
43
|
-
incidentNumber: string,
|
44
|
-
options: CADStatusOptionSelectedSchemaType[]
|
45
|
-
capability: string,
|
46
|
-
locationCurrent: string,
|
47
|
-
locationDestination: string,
|
48
|
-
destination: DestinationType,
|
49
|
-
assignableByUser: boolean,
|
50
|
-
backupDate: Date,
|
50
|
+
uuid: string,
|
51
|
+
vehicleId: string,
|
51
52
|
}
|
52
53
|
|
53
54
|
export interface CADVehicleStatusHistoryType {
|
54
55
|
departmentId: string,
|
55
|
-
vehicleId: string,
|
56
|
-
radioName: string,
|
57
|
-
status: string,
|
58
|
-
statusCode: string,
|
59
|
-
requestedAt: number,
|
60
|
-
requested: Date,
|
61
|
-
requestDelay: number,
|
62
|
-
requestedBy: string,
|
63
|
-
incidentNumber: string,
|
64
|
-
options: CADStatusOptionSelectedSchemaType[]
|
65
56
|
e: string,
|
57
|
+
incidentNumber: string,
|
66
58
|
locationCurrent: string,
|
67
59
|
locationDestination: string,
|
60
|
+
options: CADStatusOptionSelectedSchemaType[]
|
61
|
+
radioName: string,
|
62
|
+
requestDelay: number,
|
63
|
+
requested: Date,
|
64
|
+
requestedAt: number,
|
65
|
+
requestedBy: string,
|
66
|
+
status: string,
|
67
|
+
statusCode: string,
|
68
|
+
vehicleId: string,
|
68
69
|
}
|
69
70
|
|
70
71
|
export interface StatusOptionValueType extends Record<string, unknown> {
|
71
|
-
name: string,
|
72
|
-
type: string,
|
73
|
-
visible: boolean,
|
74
|
-
value: string,
|
75
72
|
favorite: boolean,
|
76
|
-
position: number,
|
77
73
|
isDefault: boolean,
|
78
74
|
latitude: number,
|
79
75
|
longitude: number,
|
76
|
+
name: string,
|
77
|
+
position: number,
|
80
78
|
time: number,
|
79
|
+
type: string,
|
80
|
+
value: string,
|
81
|
+
visible: boolean,
|
81
82
|
}
|
82
83
|
|
83
84
|
export interface StatusOptionType {
|
@@ -87,22 +88,23 @@ export interface StatusOptionType {
|
|
87
88
|
cadKey: string,
|
88
89
|
cadValues: StatusOptionValueType[]
|
89
90
|
}
|
91
|
+
|
90
92
|
export interface CADStatusType {
|
91
|
-
|
92
|
-
departmentId: string,
|
93
|
-
modifiedDate: number,
|
94
|
-
modified: Date,
|
95
|
-
statusId: number
|
93
|
+
backupDate: Date,
|
96
94
|
code: string,
|
97
95
|
codeDisplay: string,
|
98
|
-
|
96
|
+
color: ColorSchemaType,
|
97
|
+
departmentId: string,
|
98
|
+
modified: Date,
|
99
|
+
modifiedDate: number,
|
99
100
|
name: string,
|
100
101
|
normalized: string,
|
101
|
-
selfAssignable: boolean,
|
102
|
-
roaming: boolean,
|
103
102
|
options: StatusOptionType[],
|
104
|
-
|
105
|
-
|
103
|
+
roaming: boolean,
|
104
|
+
selfAssignable: boolean,
|
105
|
+
status: string,
|
106
|
+
statusId: number
|
107
|
+
uuid: string,
|
106
108
|
}
|
107
109
|
|
108
110
|
export interface CADStatusOptionSelectedSchemaType {
|
@@ -157,66 +159,66 @@ export interface SimUnitType {
|
|
157
159
|
|
158
160
|
export interface SequenceType {
|
159
161
|
_id: Types.ObjectId,
|
160
|
-
title: string,
|
161
162
|
alarm: string,
|
163
|
+
comments: SimCommentType[]
|
162
164
|
sequenceId: number,
|
165
|
+
title: string,
|
163
166
|
unitsConfig: SimUnitType
|
164
|
-
comments: SimCommentType[]
|
165
167
|
}
|
166
168
|
|
167
169
|
export interface CADSimulationType {
|
168
|
-
|
169
|
-
departmentId: string,
|
170
|
-
modifiedDate: number,
|
171
|
-
modified: Date,
|
170
|
+
CrossStreet1: string,
|
172
171
|
active: boolean,
|
172
|
+
city: string,
|
173
|
+
closeDelay: number,
|
174
|
+
commandChannel: string,
|
175
|
+
departmentId: string,
|
176
|
+
firemap: string,
|
173
177
|
friendlyId: string,
|
174
|
-
title: string,
|
175
|
-
notes: string,
|
176
|
-
simulation: boolean,
|
177
|
-
notify: boolean,
|
178
|
-
rts: boolean,
|
179
|
-
tags: string[],
|
180
178
|
incidentType: string,
|
181
|
-
streetName: string,
|
182
|
-
locationComment: string,
|
183
|
-
suite: string,
|
184
|
-
CrossStreet1: string,
|
185
|
-
city: string,
|
186
|
-
state: string,
|
187
179
|
lat: string,
|
180
|
+
locationComment: string,
|
188
181
|
lon: string,
|
189
|
-
firemap: string,
|
190
182
|
mapPages: string,
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
183
|
+
modified: Date,
|
184
|
+
modifiedDate: number,
|
185
|
+
notes: string,
|
186
|
+
notify: boolean,
|
195
187
|
priorIncidents: SimPriorIncidentType[]
|
188
|
+
radioChannels: SimRadioChannelType[]
|
196
189
|
randomPriorIncidents: boolean
|
197
190
|
randomStaffing: boolean,
|
191
|
+
rts: boolean,
|
192
|
+
sendStatus: boolean,
|
198
193
|
sequences: SequenceType[]
|
194
|
+
simulation: boolean,
|
199
195
|
sortId: number,
|
200
|
-
|
196
|
+
state: string,
|
197
|
+
streetName: string,
|
198
|
+
suite: string,
|
199
|
+
tacticalChannel: string,
|
200
|
+
tags: string[],
|
201
|
+
title: string,
|
202
|
+
uuid: string,
|
201
203
|
}
|
202
204
|
|
203
205
|
export interface CADIncidentStreamType {
|
204
206
|
_id: Types.ObjectId,
|
205
|
-
|
206
|
-
tag: string,
|
207
|
+
createdAt: Date,
|
207
208
|
departmentId: string,
|
208
209
|
incidentNumber: string,
|
209
|
-
createdAt: Date,
|
210
210
|
payload: object,
|
211
|
+
tag: string,
|
212
|
+
uuid: string,
|
211
213
|
}
|
212
214
|
|
213
215
|
export interface CADIncidentBlockType {
|
214
216
|
_id: Types.ObjectId,
|
215
|
-
departmentId: string,
|
216
|
-
source: string,
|
217
|
-
IncidentNumber: string,
|
218
217
|
AgencyIncidentCallTypeDescription: string,
|
219
|
-
EntryDateTime: string,
|
220
218
|
ClosedDateTime: string,
|
219
|
+
EntryDateTime: string,
|
220
|
+
IncidentNumber: string,
|
221
221
|
ReportNumber: ReportNumberSchemaType[]
|
222
|
+
departmentId: string,
|
223
|
+
source: string,
|
222
224
|
}
|
package/src/types/color.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export interface ColorSchemaType extends Record<string, unknown> {
|
2
|
-
background: string,
|
3
|
-
text: string,
|
1
|
+
export interface ColorSchemaType extends Record<string, unknown> {
|
2
|
+
background: string,
|
3
|
+
text: string,
|
4
4
|
}
|
@@ -1,52 +1,59 @@
|
|
1
1
|
import { Types } from "mongoose";
|
2
|
-
import {
|
2
|
+
import {
|
3
|
+
CADPersonSchemaType,
|
4
|
+
RadioChannelSchemaType,
|
5
|
+
RecordSchemaType,
|
6
|
+
ReportNumberSchemaType,
|
7
|
+
SharedSourceSchemaType,
|
8
|
+
SharedToSchemaType,
|
9
|
+
} from "./shared-incident";
|
3
10
|
|
4
11
|
export interface HistoryItemType extends Record<string, unknown> {
|
5
|
-
|
12
|
+
entity_id: string,
|
6
13
|
entity_type: number,
|
14
|
+
message: string,
|
7
15
|
time: number,
|
8
|
-
entity_id: string,
|
9
16
|
user: string,
|
10
17
|
}
|
11
18
|
|
12
19
|
export interface AssignmentItemType {
|
13
|
-
|
14
|
-
uuid: string,
|
15
|
-
modified_date: string,
|
16
|
-
modified_unix_date: number,
|
20
|
+
active: boolean,
|
17
21
|
built_in: boolean,
|
18
|
-
isMandatory: boolean,
|
19
22
|
description: string,
|
20
|
-
|
23
|
+
isMandatory: boolean,
|
24
|
+
modified_date: string,
|
25
|
+
modified_unix_date: number,
|
26
|
+
name: string,
|
21
27
|
position: number,
|
28
|
+
uuid: string,
|
22
29
|
}
|
23
30
|
|
24
31
|
export interface IncidentUnitType extends Record<string, unknown> {
|
32
|
+
AlarmAtDispatch: number,
|
33
|
+
Personnel: CADPersonSchemaType[],
|
25
34
|
UnitID: string,
|
26
35
|
active: boolean,
|
27
36
|
air_time: string,
|
28
|
-
assignment: AssignmentItemType,
|
29
|
-
AlarmAtDispatch: number,
|
30
37
|
api_unit_dispatch_number: string,
|
38
|
+
assignment: AssignmentItemType,
|
31
39
|
checked: boolean,
|
32
40
|
column_position: number,
|
33
41
|
group_position: number,
|
34
42
|
incident_position: number,
|
35
43
|
isSupervisor: boolean,
|
36
44
|
is_part_of_group: boolean,
|
45
|
+
local_id: string,
|
37
46
|
location_on_map: string,
|
38
47
|
modified_date: string,
|
39
48
|
modified_unix_date: number,
|
40
49
|
note: string,
|
50
|
+
parent_uuid: string,
|
41
51
|
personnelOnScene: number,
|
42
|
-
Personnel: CADPersonSchemaType[],
|
43
52
|
status: string,
|
44
53
|
status_unix_date: number,
|
45
54
|
time: string,
|
46
|
-
warning: number,
|
47
55
|
uuid: string,
|
48
|
-
|
49
|
-
local_id: string,
|
56
|
+
warning: number,
|
50
57
|
}
|
51
58
|
|
52
59
|
export interface IncidentGroupType {
|
@@ -98,60 +105,61 @@ export interface IncidentChecklistType {
|
|
98
105
|
local_id: string,
|
99
106
|
id: string,
|
100
107
|
}
|
108
|
+
|
101
109
|
export interface ManagedIncidentType {
|
102
110
|
_id: Types.ObjectId,
|
103
111
|
id?: string,
|
104
|
-
|
105
|
-
userId: string,
|
106
|
-
uuid: string,
|
107
|
-
start_unix_time: number,
|
108
|
-
end_unix_time: number,
|
109
|
-
par_unix_time: number,
|
110
|
-
watch_unix_start_time: number,
|
111
|
-
watch_unix_pause_time: number,
|
112
|
-
start_time: string,
|
113
|
-
end_time: string,
|
114
|
-
modified_date: string,
|
115
|
-
modified_unix_date: number,
|
116
|
-
modified: Date,
|
117
|
-
channel_owner: string,
|
118
|
-
channel: string,
|
119
|
-
active: boolean,
|
120
|
-
address: string,
|
121
|
-
api_incident_number: string,
|
112
|
+
AgencyID: string,
|
122
113
|
CallerNumber: string,
|
123
114
|
CommandChannel: string,
|
124
115
|
CommonPlaceName: string,
|
116
|
+
FireMap: string,
|
117
|
+
MapPages: string,
|
118
|
+
ReportNumber: ReportNumberSchemaType[],
|
119
|
+
TacticalAltChannel: string,
|
120
|
+
TacticalChannel: string,
|
121
|
+
active: boolean,
|
122
|
+
address: string,
|
123
|
+
api_incident_number: string,
|
124
|
+
channel: string,
|
125
|
+
channel_owner: string,
|
126
|
+
checklists: IncidentChecklistType[]
|
125
127
|
cross_streets: string,
|
128
|
+
departmentId: string,
|
126
129
|
deviceTime: string,
|
130
|
+
end_time: string,
|
131
|
+
end_unix_time: number,
|
127
132
|
extended: boolean,
|
128
|
-
|
133
|
+
groups: IncidentGroupType[],
|
134
|
+
hazards: IncidentHazardType[],
|
135
|
+
history: HistoryItemType[],
|
136
|
+
isMandatory: boolean,
|
129
137
|
is_closed: boolean,
|
130
138
|
last_view: string,
|
139
|
+
local_id: string,
|
131
140
|
location: string,
|
132
|
-
MapPages: string,
|
133
141
|
managed: number,
|
142
|
+
modified: Date,
|
143
|
+
modified_date: string,
|
144
|
+
modified_unix_date: number,
|
134
145
|
name: string,
|
146
|
+
notes: HistoryItemType[],
|
147
|
+
par_unix_time: number,
|
135
148
|
preference_location: string,
|
149
|
+
radioChannels: RadioChannelSchemaType[],
|
150
|
+
record: RecordSchemaType,
|
151
|
+
rts: boolean,
|
136
152
|
serverTime: string,
|
153
|
+
sharedSource: SharedSourceSchemaType,
|
154
|
+
sharedTo: SharedToSchemaType[],
|
155
|
+
simulation: boolean,
|
137
156
|
slave_map_changed: boolean,
|
138
157
|
source: string,
|
139
|
-
|
140
|
-
|
141
|
-
checklists: IncidentChecklistType[]
|
142
|
-
groups: IncidentGroupType[],
|
143
|
-
hazards: IncidentHazardType[],
|
144
|
-
history: HistoryItemType[],
|
145
|
-
notes: HistoryItemType[],
|
158
|
+
start_time: string,
|
159
|
+
start_unix_time: number,
|
146
160
|
units: IncidentUnitType[],
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
isMandatory: boolean,
|
152
|
-
radioChannels: RadioChannelSchemaType[],
|
153
|
-
record: RecordSchemaType,
|
154
|
-
ReportNumber: ReportNumberSchemaType[],
|
155
|
-
sharedTo: SharedToSchemaType[],
|
156
|
-
sharedSource: SharedSourceSchemaType,
|
161
|
+
userId: string,
|
162
|
+
uuid: string,
|
163
|
+
watch_unix_pause_time: number,
|
164
|
+
watch_unix_start_time: number,
|
157
165
|
}
|