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