tabletcommand-backend-models 5.17.4 → 5.17.8

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,5 +1,6 @@
1
1
  /// <reference types="mongoose" />
2
- import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
2
+ import * as uuid from "uuid";
3
+ import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, 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;
5
6
  departmentId: string;
@@ -10,29 +11,253 @@ 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
- location: string;
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;
28
+ deviceTime: string;
34
29
  extended: boolean;
35
- notes: import("../helpers").MongooseInterface<{
30
+ FireMap: string;
31
+ is_closed: boolean;
32
+ last_view: string;
33
+ location: string;
34
+ MapPages: string;
35
+ managed: boolean;
36
+ name: string;
37
+ preference_location: string;
38
+ serverTime: string;
39
+ slave_map_changed: boolean;
40
+ source: string;
41
+ TacticalAltChannel: string;
42
+ TacticalChannel: string;
43
+ checklists: import("../helpers").MongooseInterface<{
44
+ active: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ built_in: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ isMandatory: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ items: {
57
+ type: (import("mongoose").Schema<any> & {
58
+ _interface: import("../helpers").MongooseInterface<{
59
+ active: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ checked: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ isMandatory: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ modified_date: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ name: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ position: {
80
+ type: NumberConstructor;
81
+ default: number;
82
+ };
83
+ uuid: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ }>;
88
+ _methods: unknown;
89
+ })[];
90
+ default: never[];
91
+ };
92
+ modified_date: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ name: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ position: {
101
+ type: NumberConstructor;
102
+ default: number;
103
+ };
104
+ uuid: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ }>[];
109
+ groups: import("../helpers").MongooseInterface<{
110
+ location_on_map: {
111
+ type: StringConstructor;
112
+ default: string;
113
+ };
114
+ name: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ note: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ position: {
123
+ type: NumberConstructor;
124
+ default: number;
125
+ };
126
+ type: {
127
+ type: NumberConstructor;
128
+ default: number;
129
+ };
130
+ type_text: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ units: {
135
+ type: (import("mongoose").Schema<any> & {
136
+ _interface: import("../helpers").MongooseInterface<{
137
+ active: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ air_time: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ };
145
+ assignment: {
146
+ type: import("mongoose").Schema<any> & {
147
+ _interface: import("../helpers").MongooseInterface<{
148
+ name: {
149
+ type: StringConstructor;
150
+ default: string;
151
+ };
152
+ uuid: {
153
+ type: StringConstructor;
154
+ default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
155
+ };
156
+ }>;
157
+ _methods: unknown;
158
+ };
159
+ };
160
+ AlarmAtDispatch: {
161
+ type: NumberConstructor;
162
+ default: number;
163
+ };
164
+ api_unit_dispatch_number: {
165
+ type: StringConstructor;
166
+ default: string;
167
+ };
168
+ checked: {
169
+ type: BooleanConstructor;
170
+ default: boolean;
171
+ };
172
+ column_position: {
173
+ type: NumberConstructor;
174
+ default: number;
175
+ };
176
+ group_position: {
177
+ type: NumberConstructor;
178
+ default: number;
179
+ };
180
+ incident_position: {
181
+ type: NumberConstructor;
182
+ default: number;
183
+ };
184
+ isSupervisor: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
188
+ is_part_of_group: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ location_on_map: {
193
+ type: StringConstructor;
194
+ default: string;
195
+ };
196
+ modified_date: {
197
+ type: StringConstructor;
198
+ default: string;
199
+ };
200
+ modified_unix_date: {
201
+ type: NumberConstructor;
202
+ default: number;
203
+ };
204
+ note: {
205
+ type: StringConstructor;
206
+ default: string;
207
+ };
208
+ personnelOnScene: {
209
+ type: NumberConstructor;
210
+ default: number;
211
+ };
212
+ status: {
213
+ type: StringConstructor;
214
+ default: string;
215
+ };
216
+ status_unix_date: {
217
+ type: NumberConstructor;
218
+ default: number;
219
+ };
220
+ time: {
221
+ type: StringConstructor;
222
+ default: string;
223
+ };
224
+ UnitID: {
225
+ type: StringConstructor;
226
+ default: string;
227
+ };
228
+ warning: {
229
+ type: NumberConstructor;
230
+ default: number;
231
+ };
232
+ }>;
233
+ _methods: unknown;
234
+ })[];
235
+ default: never[];
236
+ };
237
+ uuid: {
238
+ type: StringConstructor;
239
+ default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
240
+ };
241
+ }>[];
242
+ hazards: import("../helpers").MongooseInterface<{
243
+ location_on_scene: {
244
+ type: StringConstructor;
245
+ default: string;
246
+ };
247
+ name: {
248
+ type: StringConstructor;
249
+ default: string;
250
+ };
251
+ radius: {
252
+ type: NumberConstructor;
253
+ default: number;
254
+ };
255
+ time: {
256
+ type: NumberConstructor;
257
+ default: number;
258
+ };
259
+ }>[];
260
+ history: import("../helpers").MongooseInterface<{
36
261
  message: {
37
262
  type: StringConstructor;
38
263
  default: string;
@@ -49,8 +274,12 @@ export declare function ManagedIncidentModule(mongoose: MongooseModule): Promise
49
274
  type: NumberConstructor;
50
275
  default: number;
51
276
  };
277
+ user: {
278
+ type: StringConstructor;
279
+ default: string;
280
+ };
52
281
  }>[];
53
- history: import("../helpers").MongooseInterface<{
282
+ notes: import("../helpers").MongooseInterface<{
54
283
  message: {
55
284
  type: StringConstructor;
56
285
  default: string;
@@ -67,12 +296,120 @@ export declare function ManagedIncidentModule(mongoose: MongooseModule): Promise
67
296
  type: NumberConstructor;
68
297
  default: number;
69
298
  };
299
+ user: {
300
+ type: StringConstructor;
301
+ default: string;
302
+ };
303
+ }>[];
304
+ radioChannels: import("../helpers").MongooseInterface<{
305
+ name: {
306
+ type: StringConstructor;
307
+ default: string;
308
+ };
309
+ channel: {
310
+ type: StringConstructor;
311
+ default: string;
312
+ };
313
+ }>[];
314
+ units: import("../helpers").MongooseInterface<{
315
+ active: {
316
+ type: BooleanConstructor;
317
+ default: boolean;
318
+ };
319
+ air_time: {
320
+ type: StringConstructor;
321
+ default: string;
322
+ };
323
+ assignment: {
324
+ type: import("mongoose").Schema<any> & {
325
+ _interface: import("../helpers").MongooseInterface<{
326
+ name: {
327
+ type: StringConstructor;
328
+ default: string;
329
+ };
330
+ uuid: {
331
+ type: StringConstructor;
332
+ default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
333
+ };
334
+ }>;
335
+ _methods: unknown;
336
+ };
337
+ };
338
+ AlarmAtDispatch: {
339
+ type: NumberConstructor;
340
+ default: number;
341
+ };
342
+ api_unit_dispatch_number: {
343
+ type: StringConstructor;
344
+ default: string;
345
+ };
346
+ checked: {
347
+ type: BooleanConstructor;
348
+ default: boolean;
349
+ };
350
+ column_position: {
351
+ type: NumberConstructor;
352
+ default: number;
353
+ };
354
+ group_position: {
355
+ type: NumberConstructor;
356
+ default: number;
357
+ };
358
+ incident_position: {
359
+ type: NumberConstructor;
360
+ default: number;
361
+ };
362
+ isSupervisor: {
363
+ type: BooleanConstructor;
364
+ default: boolean;
365
+ };
366
+ is_part_of_group: {
367
+ type: BooleanConstructor;
368
+ default: boolean;
369
+ };
370
+ location_on_map: {
371
+ type: StringConstructor;
372
+ default: string;
373
+ };
374
+ modified_date: {
375
+ type: StringConstructor;
376
+ default: string;
377
+ };
378
+ modified_unix_date: {
379
+ type: NumberConstructor;
380
+ default: number;
381
+ };
382
+ note: {
383
+ type: StringConstructor;
384
+ default: string;
385
+ };
386
+ personnelOnScene: {
387
+ type: NumberConstructor;
388
+ default: number;
389
+ };
390
+ status: {
391
+ type: StringConstructor;
392
+ default: string;
393
+ };
394
+ status_unix_date: {
395
+ type: NumberConstructor;
396
+ default: number;
397
+ };
398
+ time: {
399
+ type: StringConstructor;
400
+ default: string;
401
+ };
402
+ UnitID: {
403
+ type: StringConstructor;
404
+ default: string;
405
+ };
406
+ warning: {
407
+ type: NumberConstructor;
408
+ default: number;
409
+ };
70
410
  }>[];
71
411
  simulation: boolean;
72
412
  rts: boolean;
73
- start_time: string;
74
- end_time: string;
75
- modified_date: string;
76
413
  }, {}> & {
77
414
  __methods?: unknown;
78
415
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"managed-incident.d.ts","sourceRoot":"","sources":["../../src/models/managed-incident.ts"],"names":[],"mappings":";AACA,OAAO,EAML,cAAc,EACd,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4InE;AAED,MAAM,WAAW,eAAgB,SAAQ,8BAA8B,CAAC,OAAO,qBAAqB,CAAC;CAAI;AACzG,MAAM,WAAW,oBAAqB,SAAQ,+BAA+B,CAAC,eAAe,CAAC;CAAI;;AAClG,wBAAmH"}
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,EAIL,8BAA8B,EAC9B,+BAA+B,EAC/B,cAAc,EACd,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAobnE;AAED,MAAM,WAAW,eAAgB,SAAQ,8BAA8B,CAAC,OAAO,qBAAqB,CAAC;CAAI;AACzG,MAAM,WAAW,oBAAqB,SAAQ,+BAA+B,CAAC,eAAe,CAAC;CAAI;;AAClG,wBAAmH"}
@@ -48,7 +48,7 @@ export declare function UserModule(mongoose: MongooseModule): Promise<import("mo
48
48
  sessionCountiPad: number;
49
49
  rtsAuthKey: string;
50
50
  token: string;
51
- tokenExpireDate: number;
51
+ tokenExpireAt: string;
52
52
  shareLocationPhone: boolean;
53
53
  shareLocationTablet: boolean;
54
54
  offlineMapsEnabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":";AACA,OAAO,EAKL,cAAc,EAEd,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EAEvB,MAAM,YAAY,CAAC;AAIpB,wBAAsB,UAAU,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwNxD;AAED,MAAM,WAAW,IAAK,SAAQ,8BAA8B,CAAC,OAAO,UAAU,CAAC;CAAI;AACnF,MAAM,WAAW,SAAU,SAAQ,+BAA+B,CAAC,IAAI,CAAC;CAAI;;AAC5E,wBAAkF"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":";AACA,OAAO,EAKL,cAAc,EAEd,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EAEvB,MAAM,YAAY,CAAC;AAIpB,wBAAsB,UAAU,CAAC,QAAQ,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyNxD;AAED,MAAM,WAAW,IAAK,SAAQ,8BAA8B,CAAC,OAAO,UAAU,CAAC;CAAI;AACnF,MAAM,WAAW,SAAU,SAAQ,+BAA+B,CAAC,IAAI,CAAC;CAAI;;AAC5E,wBAAkF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabletcommand-backend-models",
3
- "version": "5.17.4",
3
+ "version": "5.17.8",
4
4
  "description": "Tablet Command Backend Models",
5
5
  "scripts": {
6
6
  "test": "gulp",
@@ -41,7 +41,7 @@
41
41
  "gulp-mocha": "^8.0.0",
42
42
  "gulp-shell": "^0.8.0",
43
43
  "mocha": "^9.1.3",
44
- "typescript": "^4.4.4",
45
- "yargs-parser": ">=20.2.9"
44
+ "typescript": "^4.5.2",
45
+ "yargs-parser": ">=21.0.0"
46
46
  }
47
47
  }
@@ -1,14 +1,14 @@
1
1
  import {
2
- MongooseModule,
3
- MongooseDocument,
2
+ createModel,
4
3
  createSchema,
5
4
  currentDate,
6
5
  DocumentTypeFromSchema,
7
- ModelFromSchema,
8
- createModel,
9
6
  FieldsOfDocument,
10
7
  ItemTypeFromTypeSchemaFunction,
8
+ ModelFromSchema,
11
9
  ModelTypeFromTypeSchemaFunction,
10
+ MongooseDocument,
11
+ MongooseModule,
12
12
  ReplaceModelReturnType,
13
13
  } from "../helpers";
14
14