tabletcommand-backend-models 5.17.4 → 5.17.5
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.
|
@@ -26,6 +26,145 @@ async function ManagedIncidentModule(mongoose) {
|
|
|
26
26
|
_id: false,
|
|
27
27
|
id: false,
|
|
28
28
|
});
|
|
29
|
+
const AssignmentItem = (0, helpers_1.createSchema)(Schema, {
|
|
30
|
+
name: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "",
|
|
33
|
+
},
|
|
34
|
+
uuid: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: uuid.v4,
|
|
37
|
+
},
|
|
38
|
+
}, {
|
|
39
|
+
_id: false,
|
|
40
|
+
id: false,
|
|
41
|
+
});
|
|
42
|
+
const IncidentUnit = (0, helpers_1.createSchema)(Schema, {
|
|
43
|
+
active: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 0,
|
|
46
|
+
},
|
|
47
|
+
air_time: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "",
|
|
50
|
+
},
|
|
51
|
+
assignment: {
|
|
52
|
+
type: AssignmentItem,
|
|
53
|
+
},
|
|
54
|
+
AlarmAtDispatch: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "",
|
|
57
|
+
},
|
|
58
|
+
api_unit_dispatch_number: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: "",
|
|
61
|
+
},
|
|
62
|
+
checked: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: 0,
|
|
65
|
+
},
|
|
66
|
+
column_position: {
|
|
67
|
+
type: Number,
|
|
68
|
+
default: 0,
|
|
69
|
+
},
|
|
70
|
+
group_position: {
|
|
71
|
+
type: Number,
|
|
72
|
+
default: 0,
|
|
73
|
+
},
|
|
74
|
+
incident_position: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 0,
|
|
77
|
+
},
|
|
78
|
+
isSupervisor: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: 0,
|
|
81
|
+
},
|
|
82
|
+
is_part_of_group: {
|
|
83
|
+
type: Number,
|
|
84
|
+
default: 0,
|
|
85
|
+
},
|
|
86
|
+
location_on_map: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "",
|
|
89
|
+
},
|
|
90
|
+
modified_date: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "",
|
|
93
|
+
},
|
|
94
|
+
modified_unix_date: {
|
|
95
|
+
type: Number,
|
|
96
|
+
default: 0,
|
|
97
|
+
},
|
|
98
|
+
note: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "",
|
|
101
|
+
},
|
|
102
|
+
personnelOnScene: {
|
|
103
|
+
type: Number,
|
|
104
|
+
default: 0,
|
|
105
|
+
},
|
|
106
|
+
// Personnel?: Personnel[]
|
|
107
|
+
status: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: "",
|
|
110
|
+
},
|
|
111
|
+
status_unix_date: {
|
|
112
|
+
type: Number,
|
|
113
|
+
default: 0,
|
|
114
|
+
},
|
|
115
|
+
time: {
|
|
116
|
+
type: String,
|
|
117
|
+
default: "",
|
|
118
|
+
},
|
|
119
|
+
UnitID: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: "",
|
|
122
|
+
},
|
|
123
|
+
warning: {
|
|
124
|
+
type: Number,
|
|
125
|
+
default: 0,
|
|
126
|
+
},
|
|
127
|
+
}, {
|
|
128
|
+
_id: false,
|
|
129
|
+
id: false,
|
|
130
|
+
});
|
|
131
|
+
const IncidentGroup = (0, helpers_1.createSchema)(Schema, {
|
|
132
|
+
location_on_map: {
|
|
133
|
+
type: String,
|
|
134
|
+
default: "",
|
|
135
|
+
},
|
|
136
|
+
name: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: "",
|
|
139
|
+
},
|
|
140
|
+
note: {
|
|
141
|
+
type: String,
|
|
142
|
+
default: "",
|
|
143
|
+
},
|
|
144
|
+
position: {
|
|
145
|
+
type: Number,
|
|
146
|
+
default: 0,
|
|
147
|
+
},
|
|
148
|
+
type: {
|
|
149
|
+
type: Number,
|
|
150
|
+
default: 0,
|
|
151
|
+
},
|
|
152
|
+
type_text: {
|
|
153
|
+
type: String,
|
|
154
|
+
default: "",
|
|
155
|
+
},
|
|
156
|
+
units: {
|
|
157
|
+
type: [IncidentUnit],
|
|
158
|
+
default: [],
|
|
159
|
+
},
|
|
160
|
+
uuid: {
|
|
161
|
+
type: String,
|
|
162
|
+
default: uuid.v4,
|
|
163
|
+
},
|
|
164
|
+
}, {
|
|
165
|
+
_id: false,
|
|
166
|
+
id: false,
|
|
167
|
+
});
|
|
29
168
|
const modelSchema = (0, helpers_1.createSchema)(Schema, {
|
|
30
169
|
_id: {
|
|
31
170
|
type: Types.ObjectId,
|
|
@@ -53,6 +192,15 @@ async function ManagedIncidentModule(mongoose) {
|
|
|
53
192
|
par_unix_time: Number,
|
|
54
193
|
watch_unix_start_time: Number,
|
|
55
194
|
watch_unix_pause_time: Number,
|
|
195
|
+
start_time: {
|
|
196
|
+
type: String,
|
|
197
|
+
},
|
|
198
|
+
end_time: {
|
|
199
|
+
type: String,
|
|
200
|
+
},
|
|
201
|
+
modified_date: {
|
|
202
|
+
type: String,
|
|
203
|
+
},
|
|
56
204
|
modified_unix_date: {
|
|
57
205
|
type: Number,
|
|
58
206
|
default: 0,
|
|
@@ -69,34 +217,47 @@ async function ManagedIncidentModule(mongoose) {
|
|
|
69
217
|
type: String,
|
|
70
218
|
default: "",
|
|
71
219
|
},
|
|
72
|
-
|
|
73
|
-
last_view: String,
|
|
74
|
-
preference_location: String,
|
|
220
|
+
active: Boolean,
|
|
75
221
|
address: String,
|
|
76
|
-
name: String,
|
|
77
|
-
cross_streets: String,
|
|
78
222
|
api_incident_number: String,
|
|
79
|
-
CommonPlaceName: String,
|
|
80
|
-
TacticalChannel: String,
|
|
81
|
-
TacticalAltChannel: String,
|
|
82
|
-
active: Boolean,
|
|
83
|
-
slave_map_changed: Boolean,
|
|
84
|
-
managed: Boolean,
|
|
85
|
-
is_closed: Boolean,
|
|
86
|
-
source: String,
|
|
87
223
|
CallerNumber: String,
|
|
88
224
|
CommandChannel: String,
|
|
225
|
+
CommonPlaceName: String,
|
|
226
|
+
cross_streets: String,
|
|
89
227
|
extended: {
|
|
90
228
|
type: Boolean,
|
|
91
229
|
default: false
|
|
92
230
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
231
|
+
is_closed: Boolean,
|
|
232
|
+
last_view: String,
|
|
233
|
+
location: String,
|
|
234
|
+
managed: {
|
|
235
|
+
type: Boolean,
|
|
236
|
+
default: true,
|
|
237
|
+
},
|
|
238
|
+
name: String,
|
|
239
|
+
preference_location: String,
|
|
240
|
+
slave_map_changed: Boolean,
|
|
241
|
+
source: String,
|
|
242
|
+
TacticalAltChannel: String,
|
|
243
|
+
TacticalChannel: String,
|
|
244
|
+
groups: {
|
|
245
|
+
type: [IncidentGroup],
|
|
246
|
+
default: [],
|
|
96
247
|
},
|
|
97
248
|
// Incident History
|
|
98
249
|
history: {
|
|
99
250
|
type: [HistoryItem],
|
|
251
|
+
default: [],
|
|
252
|
+
},
|
|
253
|
+
// Incident Notes
|
|
254
|
+
notes: {
|
|
255
|
+
type: [HistoryItem],
|
|
256
|
+
default: [],
|
|
257
|
+
},
|
|
258
|
+
units: {
|
|
259
|
+
type: [IncidentUnit],
|
|
260
|
+
default: [],
|
|
100
261
|
},
|
|
101
262
|
// Training
|
|
102
263
|
simulation: {
|
|
@@ -107,15 +268,6 @@ async function ManagedIncidentModule(mongoose) {
|
|
|
107
268
|
type: Boolean,
|
|
108
269
|
default: true,
|
|
109
270
|
},
|
|
110
|
-
start_time: {
|
|
111
|
-
type: String,
|
|
112
|
-
},
|
|
113
|
-
end_time: {
|
|
114
|
-
type: String,
|
|
115
|
-
},
|
|
116
|
-
modified_date: {
|
|
117
|
-
type: String,
|
|
118
|
-
},
|
|
119
271
|
}, {
|
|
120
272
|
collection: "massive_incident_managed",
|
|
121
273
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-incident.js","sourceRoot":"","sources":["../../src/models/managed-incident.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,wCAUoB;AAEb,KAAK,UAAU,qBAAqB,CAAC,QAAwB;IAClE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAEnC,MAAM,WAAW,GAAG,IAAA,sBAAY,EAAC,MAAM,EAAE;QACvC,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;SACZ;QACD,WAAW,EAAE;YACX,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC;SACX;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC;SACX;QACD,SAAS,EAAE;YACT,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC;SACX;KACF,EAAE;QACD,GAAG,EAAE,KAAK;QACV,EAAE,EAAE,KAAK;KACV,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,IAAA,sBAAY,EAAC,MAAM,EAAE;QACvC,GAAG,EAAE;YACH,IAAI,EAAE,KAAK,CAAC,QAAQ;YACpB,IAAI,EAAE,IAAI;SACX;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,IAAI;SACZ;QACD,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,IAAI,CAAC,EAAE;SACjB;QAED,eAAe,EAAE;YACf,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC;SACX;QAED,aAAa,EAAE,MAAM;QACrB,aAAa,EAAE,MAAM;QACrB,qBAAqB,EAAE,MAAM;QAC7B,qBAAqB,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"managed-incident.js","s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AE;YACL,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,OAAO,EAAE,EAAE;SACZ;QACD,KAAK,EAAE;YACL,IAAI,EAAE,CAAC,YAAY,CAAC;YACpB,OAAO,EAAE,EAAE;SACZ;QAED,WAAW;QACX,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,KAAK;SACf;QACD,GAAG,EAAE;YACH,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,IAAI;SACd;KACF,EAAE;QACD,UAAU,EAAE,0BAA0B;KACvC,CAAC,CAAC;IACH,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAEpC,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE;QACxB,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,KAAK;QACjB,SAAS,CAAC,GAA+C,EAAE,GAAiE;YAC1H,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,qBAAW,EAAC,QAAQ,EAAE,iBAAiB,EAAE,WAAW,CAAC,CAAC;AAC/D,CAAC;AAvSD,sDAuSC;AAID,kBAAe,qBAAmG,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="mongoose" />
|
|
2
|
+
import * as uuid from "uuid";
|
|
2
3
|
import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
|
|
3
4
|
export declare function ManagedIncidentModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
|
|
4
5
|
_id: import("bson").ObjectID;
|
|
@@ -10,29 +11,165 @@ export declare function ManagedIncidentModule(mongoose: MongooseModule): Promise
|
|
|
10
11
|
par_unix_time: number;
|
|
11
12
|
watch_unix_start_time: number;
|
|
12
13
|
watch_unix_pause_time: number;
|
|
14
|
+
start_time: string;
|
|
15
|
+
end_time: string;
|
|
16
|
+
modified_date: string;
|
|
13
17
|
modified_unix_date: number;
|
|
14
18
|
modified: string;
|
|
15
19
|
channel_owner: string;
|
|
16
20
|
channel: string;
|
|
17
|
-
|
|
18
|
-
last_view: string;
|
|
19
|
-
preference_location: string;
|
|
21
|
+
active: boolean;
|
|
20
22
|
address: string;
|
|
21
|
-
name: string;
|
|
22
|
-
cross_streets: string;
|
|
23
23
|
api_incident_number: string;
|
|
24
|
-
CommonPlaceName: string;
|
|
25
|
-
TacticalChannel: string;
|
|
26
|
-
TacticalAltChannel: string;
|
|
27
|
-
active: boolean;
|
|
28
|
-
slave_map_changed: boolean;
|
|
29
|
-
managed: boolean;
|
|
30
|
-
is_closed: boolean;
|
|
31
|
-
source: string;
|
|
32
24
|
CallerNumber: string;
|
|
33
25
|
CommandChannel: string;
|
|
26
|
+
CommonPlaceName: string;
|
|
27
|
+
cross_streets: string;
|
|
34
28
|
extended: boolean;
|
|
35
|
-
|
|
29
|
+
is_closed: boolean;
|
|
30
|
+
last_view: string;
|
|
31
|
+
location: string;
|
|
32
|
+
managed: boolean;
|
|
33
|
+
name: string;
|
|
34
|
+
preference_location: string;
|
|
35
|
+
slave_map_changed: boolean;
|
|
36
|
+
source: string;
|
|
37
|
+
TacticalAltChannel: string;
|
|
38
|
+
TacticalChannel: string;
|
|
39
|
+
groups: import("../helpers").MongooseInterface<{
|
|
40
|
+
location_on_map: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
name: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
note: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
position: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
type: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
60
|
+
type_text: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
units: {
|
|
65
|
+
type: (import("mongoose").Schema<any> & {
|
|
66
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
67
|
+
active: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
air_time: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
assignment: {
|
|
76
|
+
type: import("mongoose").Schema<any> & {
|
|
77
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
78
|
+
name: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
uuid: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
|
|
85
|
+
};
|
|
86
|
+
}>;
|
|
87
|
+
_methods: unknown;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
AlarmAtDispatch: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
api_unit_dispatch_number: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
checked: {
|
|
99
|
+
type: NumberConstructor;
|
|
100
|
+
default: number;
|
|
101
|
+
};
|
|
102
|
+
column_position: {
|
|
103
|
+
type: NumberConstructor;
|
|
104
|
+
default: number;
|
|
105
|
+
};
|
|
106
|
+
group_position: {
|
|
107
|
+
type: NumberConstructor;
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
incident_position: {
|
|
111
|
+
type: NumberConstructor;
|
|
112
|
+
default: number;
|
|
113
|
+
};
|
|
114
|
+
isSupervisor: {
|
|
115
|
+
type: NumberConstructor;
|
|
116
|
+
default: number;
|
|
117
|
+
};
|
|
118
|
+
is_part_of_group: {
|
|
119
|
+
type: NumberConstructor;
|
|
120
|
+
default: number;
|
|
121
|
+
};
|
|
122
|
+
location_on_map: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
modified_date: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
modified_unix_date: {
|
|
131
|
+
type: NumberConstructor;
|
|
132
|
+
default: number;
|
|
133
|
+
};
|
|
134
|
+
note: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
personnelOnScene: {
|
|
139
|
+
type: NumberConstructor;
|
|
140
|
+
default: number;
|
|
141
|
+
};
|
|
142
|
+
status: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
|
+
status_unix_date: {
|
|
147
|
+
type: NumberConstructor;
|
|
148
|
+
default: number;
|
|
149
|
+
};
|
|
150
|
+
time: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
154
|
+
UnitID: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
warning: {
|
|
159
|
+
type: NumberConstructor;
|
|
160
|
+
default: number;
|
|
161
|
+
};
|
|
162
|
+
}>;
|
|
163
|
+
_methods: unknown;
|
|
164
|
+
})[];
|
|
165
|
+
default: never[];
|
|
166
|
+
};
|
|
167
|
+
uuid: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
|
|
170
|
+
};
|
|
171
|
+
}>[];
|
|
172
|
+
history: import("../helpers").MongooseInterface<{
|
|
36
173
|
message: {
|
|
37
174
|
type: StringConstructor;
|
|
38
175
|
default: string;
|
|
@@ -50,7 +187,7 @@ export declare function ManagedIncidentModule(mongoose: MongooseModule): Promise
|
|
|
50
187
|
default: number;
|
|
51
188
|
};
|
|
52
189
|
}>[];
|
|
53
|
-
|
|
190
|
+
notes: import("../helpers").MongooseInterface<{
|
|
54
191
|
message: {
|
|
55
192
|
type: StringConstructor;
|
|
56
193
|
default: string;
|
|
@@ -68,11 +205,105 @@ export declare function ManagedIncidentModule(mongoose: MongooseModule): Promise
|
|
|
68
205
|
default: number;
|
|
69
206
|
};
|
|
70
207
|
}>[];
|
|
208
|
+
units: import("../helpers").MongooseInterface<{
|
|
209
|
+
active: {
|
|
210
|
+
type: NumberConstructor;
|
|
211
|
+
default: number;
|
|
212
|
+
};
|
|
213
|
+
air_time: {
|
|
214
|
+
type: StringConstructor;
|
|
215
|
+
default: string;
|
|
216
|
+
};
|
|
217
|
+
assignment: {
|
|
218
|
+
type: import("mongoose").Schema<any> & {
|
|
219
|
+
_interface: import("../helpers").MongooseInterface<{
|
|
220
|
+
name: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
default: string;
|
|
223
|
+
};
|
|
224
|
+
uuid: {
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
|
|
227
|
+
};
|
|
228
|
+
}>;
|
|
229
|
+
_methods: unknown;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
AlarmAtDispatch: {
|
|
233
|
+
type: StringConstructor;
|
|
234
|
+
default: string;
|
|
235
|
+
};
|
|
236
|
+
api_unit_dispatch_number: {
|
|
237
|
+
type: StringConstructor;
|
|
238
|
+
default: string;
|
|
239
|
+
};
|
|
240
|
+
checked: {
|
|
241
|
+
type: NumberConstructor;
|
|
242
|
+
default: number;
|
|
243
|
+
};
|
|
244
|
+
column_position: {
|
|
245
|
+
type: NumberConstructor;
|
|
246
|
+
default: number;
|
|
247
|
+
};
|
|
248
|
+
group_position: {
|
|
249
|
+
type: NumberConstructor;
|
|
250
|
+
default: number;
|
|
251
|
+
};
|
|
252
|
+
incident_position: {
|
|
253
|
+
type: NumberConstructor;
|
|
254
|
+
default: number;
|
|
255
|
+
};
|
|
256
|
+
isSupervisor: {
|
|
257
|
+
type: NumberConstructor;
|
|
258
|
+
default: number;
|
|
259
|
+
};
|
|
260
|
+
is_part_of_group: {
|
|
261
|
+
type: NumberConstructor;
|
|
262
|
+
default: number;
|
|
263
|
+
};
|
|
264
|
+
location_on_map: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
modified_date: {
|
|
269
|
+
type: StringConstructor;
|
|
270
|
+
default: string;
|
|
271
|
+
};
|
|
272
|
+
modified_unix_date: {
|
|
273
|
+
type: NumberConstructor;
|
|
274
|
+
default: number;
|
|
275
|
+
};
|
|
276
|
+
note: {
|
|
277
|
+
type: StringConstructor;
|
|
278
|
+
default: string;
|
|
279
|
+
};
|
|
280
|
+
personnelOnScene: {
|
|
281
|
+
type: NumberConstructor;
|
|
282
|
+
default: number;
|
|
283
|
+
};
|
|
284
|
+
status: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
default: string;
|
|
287
|
+
};
|
|
288
|
+
status_unix_date: {
|
|
289
|
+
type: NumberConstructor;
|
|
290
|
+
default: number;
|
|
291
|
+
};
|
|
292
|
+
time: {
|
|
293
|
+
type: StringConstructor;
|
|
294
|
+
default: string;
|
|
295
|
+
};
|
|
296
|
+
UnitID: {
|
|
297
|
+
type: StringConstructor;
|
|
298
|
+
default: string;
|
|
299
|
+
};
|
|
300
|
+
warning: {
|
|
301
|
+
type: NumberConstructor;
|
|
302
|
+
default: number;
|
|
303
|
+
};
|
|
304
|
+
}>[];
|
|
71
305
|
simulation: boolean;
|
|
72
306
|
rts: boolean;
|
|
73
|
-
start_time: string;
|
|
74
|
-
end_time: string;
|
|
75
|
-
modified_date: string;
|
|
76
307
|
}, {}> & {
|
|
77
308
|
__methods?: unknown;
|
|
78
309
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-incident.d.ts","sourceRoot":"","sources":["../../src/models/managed-incident.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"managed-incident.d.ts","sourceRoot":"","sources":["../../src/models/managed-incident.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAML,cAAc,EACd,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuSnE;AAED,MAAM,WAAW,eAAgB,SAAQ,8BAA8B,CAAC,OAAO,qBAAqB,CAAC;CAAI;AACzG,MAAM,WAAW,oBAAqB,SAAQ,+BAA+B,CAAC,eAAe,CAAC;CAAI;;AAClG,wBAAmH"}
|
package/package.json
CHANGED
|
@@ -36,6 +36,148 @@ export async function ManagedIncidentModule(mongoose: MongooseModule) {
|
|
|
36
36
|
id: false,
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
+
const AssignmentItem = createSchema(Schema, {
|
|
40
|
+
name: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "",
|
|
43
|
+
},
|
|
44
|
+
uuid: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: uuid.v4,
|
|
47
|
+
},
|
|
48
|
+
}, {
|
|
49
|
+
_id: false,
|
|
50
|
+
id: false,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const IncidentUnit = createSchema(Schema, {
|
|
54
|
+
active: {
|
|
55
|
+
type: Number,
|
|
56
|
+
default: 0,
|
|
57
|
+
},
|
|
58
|
+
air_time: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: "",
|
|
61
|
+
},
|
|
62
|
+
assignment: {
|
|
63
|
+
type: AssignmentItem,
|
|
64
|
+
},
|
|
65
|
+
AlarmAtDispatch: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: "",
|
|
68
|
+
},
|
|
69
|
+
api_unit_dispatch_number: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "",
|
|
72
|
+
},
|
|
73
|
+
checked: {
|
|
74
|
+
type: Number,
|
|
75
|
+
default: 0,
|
|
76
|
+
},
|
|
77
|
+
column_position: {
|
|
78
|
+
type: Number,
|
|
79
|
+
default: 0,
|
|
80
|
+
},
|
|
81
|
+
group_position: {
|
|
82
|
+
type: Number,
|
|
83
|
+
default: 0,
|
|
84
|
+
},
|
|
85
|
+
incident_position: {
|
|
86
|
+
type: Number,
|
|
87
|
+
default: 0,
|
|
88
|
+
},
|
|
89
|
+
isSupervisor: {
|
|
90
|
+
type: Number,
|
|
91
|
+
default: 0,
|
|
92
|
+
},
|
|
93
|
+
is_part_of_group: {
|
|
94
|
+
type: Number,
|
|
95
|
+
default: 0,
|
|
96
|
+
},
|
|
97
|
+
location_on_map: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: "",
|
|
100
|
+
},
|
|
101
|
+
modified_date: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: "",
|
|
104
|
+
},
|
|
105
|
+
modified_unix_date: {
|
|
106
|
+
type: Number,
|
|
107
|
+
default: 0,
|
|
108
|
+
},
|
|
109
|
+
note: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: "",
|
|
112
|
+
},
|
|
113
|
+
personnelOnScene: {
|
|
114
|
+
type: Number,
|
|
115
|
+
default: 0,
|
|
116
|
+
},
|
|
117
|
+
// Personnel?: Personnel[]
|
|
118
|
+
status: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: "",
|
|
121
|
+
},
|
|
122
|
+
status_unix_date: {
|
|
123
|
+
type: Number,
|
|
124
|
+
default: 0,
|
|
125
|
+
},
|
|
126
|
+
time: {
|
|
127
|
+
type: String,
|
|
128
|
+
default: "",
|
|
129
|
+
},
|
|
130
|
+
UnitID: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: "",
|
|
133
|
+
},
|
|
134
|
+
warning: {
|
|
135
|
+
type: Number,
|
|
136
|
+
default: 0,
|
|
137
|
+
},
|
|
138
|
+
}, {
|
|
139
|
+
_id: false,
|
|
140
|
+
id: false,
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
const IncidentGroup = createSchema(Schema, {
|
|
144
|
+
location_on_map: {
|
|
145
|
+
type: String,
|
|
146
|
+
default: "",
|
|
147
|
+
},
|
|
148
|
+
name: {
|
|
149
|
+
type: String,
|
|
150
|
+
default: "",
|
|
151
|
+
},
|
|
152
|
+
note: {
|
|
153
|
+
type: String,
|
|
154
|
+
default: "",
|
|
155
|
+
},
|
|
156
|
+
position: {
|
|
157
|
+
type: Number,
|
|
158
|
+
default: 0,
|
|
159
|
+
},
|
|
160
|
+
type: {
|
|
161
|
+
type: Number,
|
|
162
|
+
default: 0,
|
|
163
|
+
},
|
|
164
|
+
type_text: {
|
|
165
|
+
type: String,
|
|
166
|
+
default: "",
|
|
167
|
+
},
|
|
168
|
+
units: {
|
|
169
|
+
type: [IncidentUnit],
|
|
170
|
+
default: [],
|
|
171
|
+
},
|
|
172
|
+
uuid: {
|
|
173
|
+
type: String,
|
|
174
|
+
default: uuid.v4,
|
|
175
|
+
},
|
|
176
|
+
}, {
|
|
177
|
+
_id: false,
|
|
178
|
+
id: false,
|
|
179
|
+
});
|
|
180
|
+
|
|
39
181
|
const modelSchema = createSchema(Schema, {
|
|
40
182
|
_id: {
|
|
41
183
|
type: Types.ObjectId,
|
|
@@ -65,6 +207,15 @@ export async function ManagedIncidentModule(mongoose: MongooseModule) {
|
|
|
65
207
|
par_unix_time: Number,
|
|
66
208
|
watch_unix_start_time: Number,
|
|
67
209
|
watch_unix_pause_time: Number,
|
|
210
|
+
start_time: {
|
|
211
|
+
type: String,
|
|
212
|
+
},
|
|
213
|
+
end_time: {
|
|
214
|
+
type: String,
|
|
215
|
+
},
|
|
216
|
+
modified_date: {
|
|
217
|
+
type: String,
|
|
218
|
+
},
|
|
68
219
|
|
|
69
220
|
modified_unix_date: {
|
|
70
221
|
type: Number,
|
|
@@ -84,35 +235,48 @@ export async function ManagedIncidentModule(mongoose: MongooseModule) {
|
|
|
84
235
|
default: "",
|
|
85
236
|
},
|
|
86
237
|
|
|
87
|
-
|
|
88
|
-
last_view: String,
|
|
89
|
-
preference_location: String,
|
|
238
|
+
active: Boolean,
|
|
90
239
|
address: String,
|
|
91
|
-
name: String,
|
|
92
|
-
cross_streets: String,
|
|
93
240
|
api_incident_number: String,
|
|
94
|
-
CommonPlaceName: String,
|
|
95
|
-
TacticalChannel: String,
|
|
96
|
-
TacticalAltChannel: String,
|
|
97
|
-
active: Boolean,
|
|
98
|
-
slave_map_changed: Boolean,
|
|
99
|
-
managed: Boolean,
|
|
100
|
-
is_closed: Boolean,
|
|
101
|
-
source: String,
|
|
102
241
|
CallerNumber: String,
|
|
103
242
|
CommandChannel: String,
|
|
243
|
+
CommonPlaceName: String,
|
|
244
|
+
cross_streets: String,
|
|
104
245
|
extended: {
|
|
105
246
|
type: Boolean,
|
|
106
247
|
default: false
|
|
107
248
|
},
|
|
249
|
+
is_closed: Boolean,
|
|
250
|
+
last_view: String,
|
|
251
|
+
location: String,
|
|
252
|
+
managed: {
|
|
253
|
+
type: Boolean,
|
|
254
|
+
default: true,
|
|
255
|
+
},
|
|
256
|
+
name: String,
|
|
257
|
+
preference_location: String,
|
|
258
|
+
slave_map_changed: Boolean,
|
|
259
|
+
source: String,
|
|
260
|
+
TacticalAltChannel: String,
|
|
261
|
+
TacticalChannel: String,
|
|
108
262
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
263
|
+
groups: {
|
|
264
|
+
type: [IncidentGroup],
|
|
265
|
+
default: [],
|
|
112
266
|
},
|
|
113
267
|
// Incident History
|
|
114
268
|
history: {
|
|
115
269
|
type: [HistoryItem],
|
|
270
|
+
default: [],
|
|
271
|
+
},
|
|
272
|
+
// Incident Notes
|
|
273
|
+
notes: {
|
|
274
|
+
type: [HistoryItem],
|
|
275
|
+
default: [],
|
|
276
|
+
},
|
|
277
|
+
units: {
|
|
278
|
+
type: [IncidentUnit],
|
|
279
|
+
default: [],
|
|
116
280
|
},
|
|
117
281
|
|
|
118
282
|
// Training
|
|
@@ -124,15 +288,6 @@ export async function ManagedIncidentModule(mongoose: MongooseModule) {
|
|
|
124
288
|
type: Boolean,
|
|
125
289
|
default: true,
|
|
126
290
|
},
|
|
127
|
-
start_time: {
|
|
128
|
-
type: String,
|
|
129
|
-
},
|
|
130
|
-
end_time: {
|
|
131
|
-
type: String,
|
|
132
|
-
},
|
|
133
|
-
modified_date: {
|
|
134
|
-
type: String,
|
|
135
|
-
},
|
|
136
291
|
}, {
|
|
137
292
|
collection: "massive_incident_managed",
|
|
138
293
|
});
|