tabletcommand-backend-models 7.2.8 → 7.2.10

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/models/agency.js +0 -6
  2. package/build/models/agency.js.map +1 -1
  3. package/build/models/battalion.js +4 -0
  4. package/build/models/battalion.js.map +1 -1
  5. package/build/models/department.js +3 -0
  6. package/build/models/department.js.map +1 -1
  7. package/build/models/location.js +1 -1
  8. package/build/models/schema/pubnub-token.js +0 -4
  9. package/build/models/schema/pubnub-token.js.map +1 -1
  10. package/build/test/department.js +29 -28
  11. package/build/test/department.js.map +1 -1
  12. package/build/test/mock.js +5 -1
  13. package/build/test/mock.js.map +1 -1
  14. package/definitions/models/agency.d.ts.map +1 -1
  15. package/definitions/models/battalion.d.ts.map +1 -1
  16. package/definitions/models/department.d.ts.map +1 -1
  17. package/definitions/models/schema/pubnub-token.d.ts.map +1 -1
  18. package/definitions/test/mock.d.ts +1 -0
  19. package/definitions/test/mock.d.ts.map +1 -1
  20. package/definitions/types/agency.d.ts +0 -2
  21. package/definitions/types/agency.d.ts.map +1 -1
  22. package/definitions/types/battalion.d.ts +1 -0
  23. package/definitions/types/battalion.d.ts.map +1 -1
  24. package/definitions/types/department.d.ts +119 -116
  25. package/definitions/types/department.d.ts.map +1 -1
  26. package/definitions/types/pubnub-token.d.ts +0 -1
  27. package/definitions/types/pubnub-token.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/src/models/agency.ts +0 -6
  30. package/src/models/battalion.ts +4 -0
  31. package/src/models/department.ts +3 -6
  32. package/src/models/location.ts +1 -1
  33. package/src/models/schema/pubnub-token.ts +0 -4
  34. package/src/test/department.ts +2 -1
  35. package/src/test/mock.ts +5 -1
  36. package/src/types/agency.ts +0 -2
  37. package/src/types/battalion.ts +1 -0
  38. package/src/types/department.ts +128 -116
  39. package/src/types/pubnub-token.ts +0 -1
@@ -270,138 +270,150 @@ export interface VehicleStatusWebhookConfigType {
270
270
  connections: VehicleStatusWebhookConnectionType[],
271
271
  }
272
272
 
273
+ export type AccountContact = {
274
+ department: string,
275
+ name: string,
276
+ phone: string,
277
+ email: string,
278
+ };
279
+
280
+ export type AccountAddress = {
281
+ address: string,
282
+ city: string,
283
+ state: string,
284
+ zipCode: string,
285
+ country: string,
286
+ };
287
+
288
+ export interface Connectivity {
289
+ enabled: boolean,
290
+ staleMinutes: number,
291
+ heartbeatMinutes: number,
292
+ }
293
+
294
+ export interface StatusConnectivity extends Connectivity {
295
+ ackUnitsCount: number,
296
+ }
297
+
298
+ export type AccountConnectivity = {
299
+ incident: Connectivity,
300
+ location: Connectivity,
301
+ status: StatusConnectivity,
302
+ };
303
+
304
+ export type Coordinate = {
305
+ longitude: number,
306
+ latitude: number,
307
+ };
308
+
309
+ export type AccountConfigurationShareAVL = {
310
+ enabled: boolean,
311
+ opAreaName: string,
312
+ opAreaCode: string,
313
+ fadeZoomLevel: number,
314
+ };
315
+
316
+ export type AccountConfigurationShareIncident = {
317
+ enabled: boolean,
318
+ rules: ShareIncidentRuleType[],
319
+ };
320
+
321
+ export type AccountConfigurationZonehaven = {
322
+ enabled: boolean,
323
+ visible: boolean,
324
+ layerUrl: string,
325
+ fadeZoomLevel: number,
326
+ };
327
+
273
328
  export interface DepartmentType {
274
329
  _id: Types.ObjectId,
275
330
  id?: string,
276
- uuid: string,
277
- department: string,
278
- fdid: string,
279
- addressDetails: {
280
- address: string,
281
- city: string,
282
- state: string,
283
- zipCode: string,
284
- country: string,
285
- },
286
- contact: {
287
- department: string,
288
- name: string,
289
- phone: string,
290
- email: string,
291
- },
292
- modified_unix_date: number,
293
- modified: Date,
331
+ accountType: string,
332
+ ackDelimiter: string,
294
333
  active: boolean,
334
+ activeUserCount: number,
335
+ addressDetails: AccountAddress,
336
+ addUserInstructions: string,
337
+ agencyIds: Types.ObjectId[],
295
338
  apikey: string,
296
- partialApiKey: string,
297
- cadEmailUsername: string,
298
- notificationEmails: string[]
299
- rosteringEnabled: boolean,
300
- rosteringShiftDefault: number,
301
- externalNotificationsEnabled: boolean,
302
- cadBidirectionalEnabled: boolean,
303
- cadOneWayVehiclesEnabled: boolean,
339
+ arcGISMapsEnabled: boolean,
340
+ audioConfiguration: AudioStreamGroupType[]
341
+ authSource: string[],
342
+ beaconEnabled: boolean,
343
+ beansAIEnabled: boolean,
304
344
  cadAllowedIPAddresses: string[]
305
- cadGetLocationEnabled: boolean,
306
345
  cadAllowIgnoreAfterDays: number,
307
- connectivity: {
308
- incident: {
309
- enabled: boolean,
310
- staleMinutes: number,
311
- heartbeatMinutes: number,
312
- },
313
- location: {
314
- enabled: boolean,
315
- staleMinutes: number,
316
- heartbeatMinutes: number,
317
- },
318
- status: {
319
- enabled: boolean,
320
- staleMinutes: number,
321
- heartbeatMinutes: number,
322
- ackUnitsCount: number,
323
- }
324
- },
325
- selfAssignmentEnabled: boolean,
326
- userContributionEnabled: boolean,
327
- vehicleSwapEnabled: boolean,
328
- personnelStaffingEnabled: boolean,
329
- authSource: string[],
330
- defaultMapPosition: {
331
- longitude: number,
332
- latitude: number,
333
- },
346
+ cadBidirectionalEnabled: boolean,
347
+ cadBidirectionalException: boolean,
348
+ cadEmailUsername: string,
349
+ cadGetLocationEnabled: boolean,
350
+ cadIncidentEventType: string[],
351
+ cadIncidentHistoryType: number[],
352
+ cadOneWayVehiclesEnabled: boolean,
353
+ callTypeBlock: string[]
354
+ connectivity: AccountConnectivity,
355
+ contact: AccountContact,
356
+ customButtons: CustomButtonsType[],
357
+ defaultMapPosition: Coordinate,
358
+ department: string,
359
+ esriGeoJSONFilename: string,
360
+ externalNotificationsEnabled: boolean,
361
+ fdid: string,
334
362
  fireMapPDFReader: string,
335
- locationStaleMinutes: number,
336
- beaconEnabled: boolean,
337
- firstArrivingEnabled: boolean,
338
- firstArriving: FirstArrivingConfigType,
339
- simpleSenseEnabled: boolean,
340
- simpleSense: SimpleSenseConfigType,
341
- fireMapperRefreshInterval: number,
342
- fireMapperProLicenses: number,
343
363
  fireMapper: FireMapperConfigurationType,
344
- arcGISMapsEnabled: boolean,
345
- beansAIEnabled: boolean,
364
+ fireMapperProLicenses: number,
365
+ fireMapperRefreshInterval: number,
366
+ firstArriving: FirstArrivingConfigType,
367
+ firstArrivingEnabled: boolean,
368
+ forwarding: ForwardingConfigType,
369
+ gst: GSTConfigType,
370
+ incidentReplay: IncidentReplayType,
371
+ incidentTypes: IncidentTypeType[],
372
+ incidentVehicleStatus: IncidentVehicleStatusConfigType,
373
+ intterra: IntterraConfigType
374
+ licensing: LicensingType,
375
+ locationStaleMinutes: number,
376
+ logOffEnabled: boolean,
377
+ mark43: Mark43ConfigType
378
+ minPasswordLength: number,
379
+ modified_unix_date: number,
380
+ modified: Date,
346
381
  mowsEnabled: boolean,
347
- rtsEnabled: boolean,
348
- rtsChannelPrefix: string,
382
+ notificationEmails: string[]
383
+ orientationMarkerColor: ColorSchemaType,
384
+ partialApiKey: string,
385
+ personnelStaffingEnabled: boolean,
349
386
  pubNubV3: PubNubTokenSchemaType,
350
- socketIO: PubNubTokenSchemaType,
351
- esriGeoJSONFilename: string,
352
- incidentTypes: IncidentTypeType[],
353
- ackDelimiter: string,
354
- callTypeBlock: string[]
355
- agencyIds: Types.ObjectId[],
356
- signupKey: string,
357
- signupDomains: string[],
358
- safetyPriorityKeywords: SafetyPriorityKeywordType[],
359
- shareLocationPhones: boolean,
360
- shareLocationTablets: boolean,
361
- shareAVL: {
362
- enabled: boolean,
363
- opAreaName: string,
364
- opAreaCode: string,
365
- fadeZoomLevel: number,
366
- },
367
- shareIncident: {
368
- enabled: boolean,
369
- rules: ShareIncidentRuleType[],
370
- },
371
- speedReportingEnabled: boolean,
372
- accountType: string,
373
- timeZone: string,
374
387
  remoteLoggingEnabled: boolean,
375
- logOffEnabled: boolean,
376
- licensing: LicensingType,
377
- webDisclaimer: WebDisclaimerType,
378
- addUserInstructions: string,
379
- restrictedComments: RestrictedCommentsType,
380
- customButtons: CustomButtonsType[],
381
388
  reportNumberEnabled: boolean,
382
- audioConfiguration: AudioStreamGroupType[]
383
- minPasswordLength: number,
384
- zonehaven: {
385
- enabled: boolean,
386
- visible: boolean,
387
- layerUrl: string,
388
- fadeZoomLevel: number,
389
- },
390
- activeUserCount: number,
389
+ reportOdometer: string,
390
+ restrictedComments: RestrictedCommentsType,
391
+ rosteringEnabled: boolean,
392
+ rosteringShiftDefault: number,
393
+ rtsChannelPrefix: string,
394
+ rtsEnabled: boolean,
395
+ safetyPriorityKeywords: SafetyPriorityKeywordType[],
391
396
  samsara: SamsaraConfigurationType
392
- mark43: Mark43ConfigType
393
- intterra: IntterraConfigType
394
- vehicleRadioNameIsStable: boolean,
395
- cadIncidentHistoryType: number[],
396
- cadIncidentEventType: string[],
397
- incidentVehicleStatus: IncidentVehicleStatusConfigType,
397
+ selfAssignmentEnabled: boolean,
398
+ shareAVL: AccountConfigurationShareAVL,
399
+ shareIncident: AccountConfigurationShareIncident,
400
+ shareLocationPhones: boolean,
401
+ shareLocationTablets: boolean,
402
+ signupDomains: string[],
403
+ signupKey: string,
404
+ simpleSense: SimpleSenseConfigType,
405
+ simpleSenseEnabled: boolean,
398
406
  skymira: SkymiraConfigType,
399
407
  skytrac: SkytracConfigType[],
400
- gst: GSTConfigType,
401
- incidentReplay: IncidentReplayType,
408
+ socketIO: PubNubTokenSchemaType,
402
409
  somewear: SomewearType,
403
- cadBidirectionalException: boolean,
404
- forwarding: ForwardingConfigType,
410
+ speedReportingEnabled: boolean,
411
+ timeZone: string,
412
+ userContributionEnabled: boolean,
413
+ uuid: string,
414
+ vehicleRadioNameIsStable: boolean,
405
415
  vehicleStatusWebhook: VehicleStatusWebhookConfigType,
406
- reportOdometer: string,
416
+ vehicleSwapEnabled: boolean,
417
+ webDisclaimer: WebDisclaimerType,
418
+ zonehaven: AccountConfigurationZonehaven,
407
419
  }
@@ -4,5 +4,4 @@ export interface PubNubTokenSchemaType {
4
4
  runAt: Date,
5
5
  // Environment where this token was created for
6
6
  env?: string,
7
- refreshInStaging: boolean, // default false, true if user email is @tabletcommand.com
8
7
  }