tabletcommand-backend-models 5.27.0 → 5.28.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/battalion.js +1 -1
- package/build/models/battalion.js.map +1 -1
- package/build/models/cad-incident-flat.js +14 -0
- package/build/models/cad-incident-flat.js.map +1 -0
- package/build/models/cad-incident.js +5 -459
- package/build/models/cad-incident.js.map +1 -1
- package/build/models/monitor.js +6 -1
- package/build/models/monitor.js.map +1 -1
- package/build/models/schema/cad-incident.js +463 -0
- package/build/models/schema/cad-incident.js.map +1 -0
- package/build/models/template.js +1 -1
- package/build/models/template.js.map +1 -1
- package/definitions/index.d.ts +2 -0
- package/definitions/index.d.ts.map +1 -1
- package/definitions/models/cad-incident-flat.d.ts +314 -0
- package/definitions/models/cad-incident-flat.d.ts.map +1 -0
- package/definitions/models/cad-incident.d.ts +2 -502
- package/definitions/models/cad-incident.d.ts.map +1 -1
- package/definitions/models/monitor.d.ts +1 -0
- package/definitions/models/monitor.d.ts.map +1 -1
- package/definitions/models/schema/cad-incident.d.ts +503 -0
- package/definitions/models/schema/cad-incident.d.ts.map +1 -0
- package/package.json +11 -11
- package/src/index.ts +2 -0
- package/src/models/battalion.ts +1 -1
- package/src/models/cad-incident-flat.ts +20 -0
- package/src/models/cad-incident.ts +3 -495
- package/src/models/monitor.ts +7 -1
- package/src/models/schema/cad-incident.ts +500 -0
- package/src/models/template.ts +1 -1
- package/test/0index.js +1 -0
- package/test/mock.js +2 -1
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/// <reference types="mongoose" />
|
|
2
|
+
import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
|
|
3
|
+
export declare function CADIncidentFlatModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
|
|
4
|
+
_id: import("bson").ObjectID;
|
|
5
|
+
uuid: string;
|
|
6
|
+
departmentId: string;
|
|
7
|
+
AgencyID: string;
|
|
8
|
+
IncidentNumber: string;
|
|
9
|
+
TransactionID: string;
|
|
10
|
+
AgencyIncidentCallTypeDescription: string;
|
|
11
|
+
AgencyIncidentCallType: string;
|
|
12
|
+
AgencyIncidentCallSubTypeDescription: string;
|
|
13
|
+
AgencyIncidentCallSubType: string;
|
|
14
|
+
AgencyIncidentPriorityDescription: string;
|
|
15
|
+
PulsePointIncidentCallType: string;
|
|
16
|
+
PulsePointDeterminantCode: string;
|
|
17
|
+
AlarmLevel: string;
|
|
18
|
+
CommandName: string;
|
|
19
|
+
FireMap: string;
|
|
20
|
+
TBMap: string;
|
|
21
|
+
MapPages: string;
|
|
22
|
+
TacticalChannel: string;
|
|
23
|
+
TacticalAltChannel: string;
|
|
24
|
+
CommandChannel: string;
|
|
25
|
+
EntryDateTime: string;
|
|
26
|
+
ClosedDateTime: string;
|
|
27
|
+
CallReceivedDateTime: string;
|
|
28
|
+
DispatchDateTime: string;
|
|
29
|
+
IncidentLastUpdate: string;
|
|
30
|
+
EnrouteDateTime: string;
|
|
31
|
+
OnSceneDateTime: string;
|
|
32
|
+
modified_date: string;
|
|
33
|
+
modified_unix_date: number;
|
|
34
|
+
modified: string;
|
|
35
|
+
start_unix_date: number;
|
|
36
|
+
closed_unix_date: number;
|
|
37
|
+
queued_at: number;
|
|
38
|
+
scheduled_at: number;
|
|
39
|
+
ignored: boolean;
|
|
40
|
+
expiration_date: string;
|
|
41
|
+
StreetName: string;
|
|
42
|
+
StreetSuffix: string;
|
|
43
|
+
Predirectional: string;
|
|
44
|
+
Postdirectional: string;
|
|
45
|
+
CityOrLocality: string;
|
|
46
|
+
StateOrProvince: string;
|
|
47
|
+
StateOfProvince: string;
|
|
48
|
+
CommonPlaceName: string;
|
|
49
|
+
CrossStreet1: string;
|
|
50
|
+
CrossStreet2: string;
|
|
51
|
+
StreetNumber: string;
|
|
52
|
+
Building: string;
|
|
53
|
+
Floor: string;
|
|
54
|
+
Suite: string;
|
|
55
|
+
City: string;
|
|
56
|
+
County: string;
|
|
57
|
+
PostalCode: string;
|
|
58
|
+
CrossStreetName: string;
|
|
59
|
+
LocationComment: string;
|
|
60
|
+
full_address: string;
|
|
61
|
+
address: string;
|
|
62
|
+
cross_streets: string;
|
|
63
|
+
PriorIncidentChanged: boolean;
|
|
64
|
+
PriorIncident: import("../helpers").MongooseInterface<{
|
|
65
|
+
Address: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
};
|
|
68
|
+
Comment: {
|
|
69
|
+
type: (import("mongoose").Schema<any> & {
|
|
70
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
71
|
+
Comment: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
};
|
|
74
|
+
CommentSource: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
CommentDateTime: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
};
|
|
80
|
+
CommentConfidential: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
}>;
|
|
85
|
+
_methods: unknown;
|
|
86
|
+
})[];
|
|
87
|
+
};
|
|
88
|
+
IncidentDateTime: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
};
|
|
91
|
+
IncidentNumber: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
};
|
|
94
|
+
Jurisdiction: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
};
|
|
97
|
+
Problem: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
};
|
|
100
|
+
Suite: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
};
|
|
103
|
+
}>[];
|
|
104
|
+
CallerNumber: string;
|
|
105
|
+
ReportNumber: import("../helpers").MongooseInterface<{
|
|
106
|
+
name: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
number: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
}>[];
|
|
115
|
+
tag: string;
|
|
116
|
+
Latitude: string;
|
|
117
|
+
Longitude: string;
|
|
118
|
+
Comment: import("../helpers").MongooseInterface<{
|
|
119
|
+
Comment: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
};
|
|
122
|
+
CommentSource: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
};
|
|
125
|
+
CommentDateTime: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
128
|
+
CommentConfidential: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
}>[];
|
|
133
|
+
units: import("../helpers").MongooseInterface<{
|
|
134
|
+
UnitID: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
required: boolean;
|
|
137
|
+
};
|
|
138
|
+
UnitDispatchNumber: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
required: boolean;
|
|
141
|
+
};
|
|
142
|
+
AlarmAtDispatch: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
};
|
|
145
|
+
TimeDispatched: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
};
|
|
148
|
+
TimeEnroute: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
};
|
|
151
|
+
TimeArrived: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
};
|
|
154
|
+
TimeStaged: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
};
|
|
157
|
+
TimeCleared: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
};
|
|
160
|
+
TimeAtHospital: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
};
|
|
163
|
+
TimePatient: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
};
|
|
166
|
+
TimeTransport: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
};
|
|
169
|
+
TimeTransporting: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
};
|
|
172
|
+
PersonnelCount: {
|
|
173
|
+
type: NumberConstructor;
|
|
174
|
+
};
|
|
175
|
+
Personnel: (import("mongoose").Schema<any> & {
|
|
176
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
177
|
+
PersonnelID: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
};
|
|
180
|
+
PersonnelName: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
};
|
|
183
|
+
PersonnelRank: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
};
|
|
186
|
+
PersonnelWorkCode: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
};
|
|
189
|
+
PersonnelNote: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
};
|
|
192
|
+
}>;
|
|
193
|
+
_methods: unknown;
|
|
194
|
+
})[];
|
|
195
|
+
}>[];
|
|
196
|
+
events: import("../helpers").MongooseInterface<{
|
|
197
|
+
_id: {
|
|
198
|
+
type: import("mongoose").Types.ObjectIdConstructor;
|
|
199
|
+
auto: boolean;
|
|
200
|
+
};
|
|
201
|
+
departmentId: {
|
|
202
|
+
type: StringConstructor;
|
|
203
|
+
default: string;
|
|
204
|
+
required: boolean;
|
|
205
|
+
index: true;
|
|
206
|
+
};
|
|
207
|
+
IncidentNumber: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
default: string;
|
|
210
|
+
required: boolean;
|
|
211
|
+
index: true;
|
|
212
|
+
};
|
|
213
|
+
modified_unix_date: {
|
|
214
|
+
type: NumberConstructor;
|
|
215
|
+
default: typeof import("../helpers").retrieveCurrentUnixTime;
|
|
216
|
+
};
|
|
217
|
+
modified: {
|
|
218
|
+
type: DateConstructor;
|
|
219
|
+
default: typeof import("../helpers").currentDate;
|
|
220
|
+
};
|
|
221
|
+
message: {
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
location: {
|
|
226
|
+
longitude: {
|
|
227
|
+
type: NumberConstructor;
|
|
228
|
+
default: number;
|
|
229
|
+
};
|
|
230
|
+
latitude: {
|
|
231
|
+
type: NumberConstructor;
|
|
232
|
+
default: number;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
type: {
|
|
236
|
+
type: StringConstructor;
|
|
237
|
+
default: string;
|
|
238
|
+
};
|
|
239
|
+
user: {
|
|
240
|
+
type: import("mongoose").Schema<any> & {
|
|
241
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
242
|
+
username: {
|
|
243
|
+
type: StringConstructor;
|
|
244
|
+
default: string;
|
|
245
|
+
};
|
|
246
|
+
email: {
|
|
247
|
+
type: StringConstructor;
|
|
248
|
+
default: string;
|
|
249
|
+
};
|
|
250
|
+
radioName: {
|
|
251
|
+
type: StringConstructor;
|
|
252
|
+
default: string;
|
|
253
|
+
};
|
|
254
|
+
userId: {
|
|
255
|
+
type: StringConstructor;
|
|
256
|
+
default: string;
|
|
257
|
+
};
|
|
258
|
+
}>;
|
|
259
|
+
_methods: unknown;
|
|
260
|
+
};
|
|
261
|
+
default: {};
|
|
262
|
+
};
|
|
263
|
+
serverTime: {
|
|
264
|
+
type: NumberConstructor;
|
|
265
|
+
default: typeof import("../helpers").retrieveCurrentUnixTime;
|
|
266
|
+
min: number;
|
|
267
|
+
};
|
|
268
|
+
userTime: {
|
|
269
|
+
type: NumberConstructor;
|
|
270
|
+
required: boolean;
|
|
271
|
+
default: number;
|
|
272
|
+
min: number;
|
|
273
|
+
};
|
|
274
|
+
uuid: {
|
|
275
|
+
type: StringConstructor;
|
|
276
|
+
require: boolean;
|
|
277
|
+
};
|
|
278
|
+
ref_uuid: {
|
|
279
|
+
type: StringConstructor;
|
|
280
|
+
default: string;
|
|
281
|
+
};
|
|
282
|
+
opts: {
|
|
283
|
+
type: ObjectConstructor;
|
|
284
|
+
default: {};
|
|
285
|
+
};
|
|
286
|
+
archived: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
default: boolean;
|
|
289
|
+
};
|
|
290
|
+
}>[];
|
|
291
|
+
preference_location: string;
|
|
292
|
+
simulation: boolean;
|
|
293
|
+
notify: boolean;
|
|
294
|
+
rts: boolean;
|
|
295
|
+
CADSimulator: string;
|
|
296
|
+
notificationType: import("../helpers").MongooseInterface<{
|
|
297
|
+
name: {
|
|
298
|
+
type: StringConstructor;
|
|
299
|
+
};
|
|
300
|
+
value: {
|
|
301
|
+
type: StringConstructor;
|
|
302
|
+
};
|
|
303
|
+
}>[];
|
|
304
|
+
notifiedUnits: string[];
|
|
305
|
+
}, {}> & {
|
|
306
|
+
__methods?: unknown;
|
|
307
|
+
}>;
|
|
308
|
+
export interface CADIncidentFlat extends ItemTypeFromTypeSchemaFunction<typeof CADIncidentFlatModule> {
|
|
309
|
+
}
|
|
310
|
+
export interface CADIncidentFlatModel extends ModelTypeFromTypeSchemaFunction<CADIncidentFlat> {
|
|
311
|
+
}
|
|
312
|
+
declare const _default: ReplaceModelReturnType<typeof CADIncidentFlatModule, CADIncidentFlatModel>;
|
|
313
|
+
export default _default;
|
|
314
|
+
//# sourceMappingURL=cad-incident-flat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cad-incident-flat.d.ts","sourceRoot":"","sources":["../../src/models/cad-incident-flat.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,8BAA8B,EAC9B,+BAA+B,EAC/B,cAAc,EACd,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAIpB,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKnE;AAED,MAAM,WAAW,eAAgB,SAAQ,8BAA8B,CAAC,OAAO,qBAAqB,CAAC;CAAI;AACzG,MAAM,WAAW,oBAAqB,SAAQ,+BAA+B,CAAC,eAAe,CAAC;CAAI;;AAClG,wBAAmH"}
|