tabletcommand-backend-models 7.2.22 → 7.3.0
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/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/models/cad-incident-share-code.js +58 -0
- package/build/models/cad-incident-share-code.js.map +1 -0
- package/build/models/cad-incident.js +4 -2
- package/build/models/cad-incident.js.map +1 -1
- package/build/models/managed-incident.js +2 -1
- package/build/models/managed-incident.js.map +1 -1
- package/build/models/schema/common-incident.js +4 -0
- package/build/models/schema/common-incident.js.map +1 -1
- package/build/test/0index.js +1 -0
- package/build/test/0index.js.map +1 -1
- package/build/test/mock.js +2 -0
- package/build/test/mock.js.map +1 -1
- package/definitions/index.d.ts +4 -0
- package/definitions/index.d.ts.map +1 -1
- package/definitions/models/cad-incident-share-code.d.ts +35 -0
- package/definitions/models/cad-incident-share-code.d.ts.map +1 -0
- package/definitions/models/cad-incident.d.ts.map +1 -1
- package/definitions/models/managed-incident.d.ts.map +1 -1
- package/definitions/models/schema/common-incident.d.ts.map +1 -1
- package/definitions/test/mock.d.ts +2 -0
- package/definitions/test/mock.d.ts.map +1 -1
- package/definitions/types/cad-incident.d.ts.map +1 -1
- package/definitions/types/cad.d.ts +11 -1
- package/definitions/types/cad.d.ts.map +1 -1
- package/definitions/types/common-incident.d.ts +1 -0
- package/definitions/types/common-incident.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -0
- package/src/models/cad-incident-share-code.ts +68 -0
- package/src/models/cad-incident.ts +4 -2
- package/src/models/managed-incident.ts +2 -1
- package/src/models/schema/common-incident.ts +4 -0
- package/src/test/0index.ts +1 -0
- package/src/test/mock.ts +2 -0
- package/src/types/cad-incident.ts +2 -1
- package/src/types/cad.ts +239 -225
- package/src/types/common-incident.ts +1 -0
package/src/types/cad.ts
CHANGED
@@ -1,225 +1,239 @@
|
|
1
|
-
import { Types } from "mongoose";
|
2
|
-
import { ColorSchemaType } from "./color";
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
1
|
+
import { Types } from "mongoose";
|
2
|
+
import { ColorSchemaType } from "./color";
|
3
|
+
import {
|
4
|
+
ReportNumberSchemaType,
|
5
|
+
ShareReasonSchemaType,
|
6
|
+
} from "./common-incident";
|
7
|
+
|
8
|
+
export interface StationType {
|
9
|
+
code: string,
|
10
|
+
name: string,
|
11
|
+
}
|
12
|
+
|
13
|
+
export interface CADVehicleType {
|
14
|
+
uuid: string,
|
15
|
+
departmentId: string,
|
16
|
+
modifiedDate: number,
|
17
|
+
modified: Date,
|
18
|
+
vehicleId: string
|
19
|
+
radioName: string,
|
20
|
+
station: StationType,
|
21
|
+
capability: string,
|
22
|
+
mapHidden: boolean
|
23
|
+
locationToCAD: boolean,
|
24
|
+
backupDate: Date,
|
25
|
+
}
|
26
|
+
|
27
|
+
export interface DestinationType {
|
28
|
+
address: string,
|
29
|
+
name: string,
|
30
|
+
}
|
31
|
+
|
32
|
+
export interface CADVehicleStatusType {
|
33
|
+
assignableByUser: boolean,
|
34
|
+
backupDate: Date,
|
35
|
+
capability: string,
|
36
|
+
changedAt: Date,
|
37
|
+
departmentId: string,
|
38
|
+
destination: DestinationType,
|
39
|
+
incidentNumber: string,
|
40
|
+
locationCurrent: string,
|
41
|
+
locationDestination: string,
|
42
|
+
modified: Date,
|
43
|
+
modifiedDate: number,
|
44
|
+
options: CADStatusOptionSelectedSchemaType[]
|
45
|
+
owner: string,
|
46
|
+
ownerId: string,
|
47
|
+
radioName: string,
|
48
|
+
requestStatus: number,
|
49
|
+
requestTime: number,
|
50
|
+
responseTime: number,
|
51
|
+
status: string,
|
52
|
+
statusCode: string,
|
53
|
+
uuid: string,
|
54
|
+
vehicleId: string,
|
55
|
+
}
|
56
|
+
|
57
|
+
export interface CADVehicleStatusHistoryType {
|
58
|
+
departmentId: string,
|
59
|
+
e: string,
|
60
|
+
incidentNumber: string,
|
61
|
+
locationCurrent: string,
|
62
|
+
locationDestination: string,
|
63
|
+
options: CADStatusOptionSelectedSchemaType[]
|
64
|
+
radioName: string,
|
65
|
+
requestDelay: number,
|
66
|
+
requested: Date,
|
67
|
+
requestedAt: number,
|
68
|
+
requestedBy: string,
|
69
|
+
status: string,
|
70
|
+
statusCode: string,
|
71
|
+
vehicleId: string,
|
72
|
+
}
|
73
|
+
|
74
|
+
export interface StatusOptionValueType extends Record<string, unknown> {
|
75
|
+
favorite: boolean,
|
76
|
+
isDefault: boolean,
|
77
|
+
latitude: number,
|
78
|
+
longitude: number,
|
79
|
+
name: string,
|
80
|
+
position: number,
|
81
|
+
time: number,
|
82
|
+
type: string,
|
83
|
+
value: string,
|
84
|
+
visible: boolean,
|
85
|
+
}
|
86
|
+
|
87
|
+
export interface StatusOptionType {
|
88
|
+
name: string,
|
89
|
+
position: number,
|
90
|
+
visible: boolean,
|
91
|
+
cadKey: string,
|
92
|
+
cadValues: StatusOptionValueType[]
|
93
|
+
}
|
94
|
+
|
95
|
+
export interface CADStatusType {
|
96
|
+
backupDate: Date,
|
97
|
+
code: string,
|
98
|
+
codeDisplay: string,
|
99
|
+
color: ColorSchemaType,
|
100
|
+
departmentId: string,
|
101
|
+
modified: Date,
|
102
|
+
modifiedDate: number,
|
103
|
+
name: string,
|
104
|
+
normalized: string,
|
105
|
+
options: StatusOptionType[],
|
106
|
+
roaming: boolean,
|
107
|
+
selfAssignable: boolean,
|
108
|
+
status: string,
|
109
|
+
statusId: number
|
110
|
+
uuid: string,
|
111
|
+
}
|
112
|
+
|
113
|
+
export interface CADStatusOptionSelectedSchemaType {
|
114
|
+
name: string,
|
115
|
+
type: string,
|
116
|
+
value: string,
|
117
|
+
key: string,
|
118
|
+
}
|
119
|
+
|
120
|
+
export interface ToStatusIdType {
|
121
|
+
statusId: number,
|
122
|
+
userEnabled: boolean,
|
123
|
+
position: number,
|
124
|
+
}
|
125
|
+
|
126
|
+
export interface CADStatusMapType {
|
127
|
+
departmentId: string,
|
128
|
+
modifiedDate: number,
|
129
|
+
modified: Date,
|
130
|
+
fromStatusId: number,
|
131
|
+
toStatusIds: ToStatusIdType[]
|
132
|
+
backupDate: Date,
|
133
|
+
}
|
134
|
+
|
135
|
+
export interface SimPriorCommentType {
|
136
|
+
Comment?: string,
|
137
|
+
CommentSource?: string,
|
138
|
+
CommentDateTime?: string,
|
139
|
+
}
|
140
|
+
|
141
|
+
export interface SimPriorIncidentType {
|
142
|
+
IncidentNumber: string,
|
143
|
+
IncidentDateTime: string,
|
144
|
+
Problem: string,
|
145
|
+
Address: string,
|
146
|
+
Suite: string,
|
147
|
+
Comment: SimPriorCommentType[]
|
148
|
+
}
|
149
|
+
export interface SimRadioChannelType {
|
150
|
+
name: string,
|
151
|
+
channel: string,
|
152
|
+
}
|
153
|
+
export interface SimCommentType {
|
154
|
+
comment: string,
|
155
|
+
source: string,
|
156
|
+
}
|
157
|
+
|
158
|
+
export interface SimUnitType {
|
159
|
+
alarmLevelAtDispatch: string,
|
160
|
+
units: string[]
|
161
|
+
}
|
162
|
+
|
163
|
+
export interface SequenceType {
|
164
|
+
_id: Types.ObjectId,
|
165
|
+
alarm: string,
|
166
|
+
comments: SimCommentType[]
|
167
|
+
sequenceId: number,
|
168
|
+
title: string,
|
169
|
+
unitsConfig: SimUnitType
|
170
|
+
}
|
171
|
+
|
172
|
+
export interface CADSimulationType {
|
173
|
+
CrossStreet1: string,
|
174
|
+
active: boolean,
|
175
|
+
city: string,
|
176
|
+
closeDelay: number,
|
177
|
+
commandChannel: string,
|
178
|
+
departmentId: string,
|
179
|
+
firemap: string,
|
180
|
+
friendlyId: string,
|
181
|
+
incidentType: string,
|
182
|
+
lat: string,
|
183
|
+
locationComment: string,
|
184
|
+
lon: string,
|
185
|
+
mapPages: string,
|
186
|
+
modified: Date,
|
187
|
+
modifiedDate: number,
|
188
|
+
notes: string,
|
189
|
+
notify: boolean,
|
190
|
+
priorIncidents: SimPriorIncidentType[]
|
191
|
+
radioChannels: SimRadioChannelType[]
|
192
|
+
randomPriorIncidents: boolean
|
193
|
+
randomStaffing: boolean,
|
194
|
+
rts: boolean,
|
195
|
+
sendStatus: boolean,
|
196
|
+
sequences: SequenceType[]
|
197
|
+
simulation: boolean,
|
198
|
+
sortId: number,
|
199
|
+
state: string,
|
200
|
+
streetName: string,
|
201
|
+
suite: string,
|
202
|
+
tacticalChannel: string,
|
203
|
+
tags: string[],
|
204
|
+
title: string,
|
205
|
+
uuid: string,
|
206
|
+
CallerNumber: string,
|
207
|
+
}
|
208
|
+
|
209
|
+
export interface CADIncidentStreamType {
|
210
|
+
_id: Types.ObjectId,
|
211
|
+
createdAt: Date,
|
212
|
+
departmentId: string,
|
213
|
+
incidentNumber: string,
|
214
|
+
payload: object,
|
215
|
+
tag: string,
|
216
|
+
uuid: string,
|
217
|
+
}
|
218
|
+
|
219
|
+
export interface CADIncidentBlockType {
|
220
|
+
_id: Types.ObjectId,
|
221
|
+
AgencyIncidentCallTypeDescription: string,
|
222
|
+
ClosedDateTime: string,
|
223
|
+
EntryDateTime: string,
|
224
|
+
IncidentNumber: string,
|
225
|
+
ReportNumber: ReportNumberSchemaType[]
|
226
|
+
departmentId: string,
|
227
|
+
source: string,
|
228
|
+
}
|
229
|
+
|
230
|
+
export interface CADIncidentShareCodeType {
|
231
|
+
_id: Types.ObjectId,
|
232
|
+
AgencyIncidentCallTypeDescription: string,
|
233
|
+
createdAt: Date,
|
234
|
+
departmentId: string,
|
235
|
+
expireAt: Date,
|
236
|
+
IncidentNumber: string,
|
237
|
+
joinCode: string,
|
238
|
+
reasons: ShareReasonSchemaType[],
|
239
|
+
}
|