vms-nest-prisma-api-document 6.0.13 → 6.0.14

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.
@@ -310,16 +310,112 @@ declare enum MenuType {
310
310
  Item = "Item"
311
311
  }
312
312
  declare enum Module {
313
- ABC = "ABC"
314
- }
315
- declare enum SubModule {
316
- ABC = "ABC"
313
+ GPSModule = "GPSModule",
314
+ FleetModule = "FleetModule",
315
+ TripModule = "TripModule",
316
+ AccountModule = "AccountModule"
317
317
  }
318
318
  declare enum AlertType {
319
- ABC = "ABC"
319
+ Fuel = "Fuel",
320
+ Temperature = "Temperature",
321
+ RelayIgnitionLock = "RelayIgnitionLock",
322
+ Genset = "Genset",
323
+ DoorSensor = "DoorSensor",
324
+ DigitalLocker = "DigitalLocker",
325
+ OverSpeed = "OverSpeed",
326
+ Ignition = "Ignition",
327
+ VehicleMovement = "VehicleMovement",
328
+ Geofence = "Geofence",
329
+ Trailer = "Trailer",
330
+ DocumentExpiry = "DocumentExpiry",
331
+ Compliance = "Compliance",
332
+ Maintenance = "Maintenance",
333
+ Service = "Service",
334
+ Inspection = "Inspection",
335
+ Tyre = "Tyre",
336
+ Incident = "Incident",
337
+ Issue = "Issue",
338
+ Reminder = "Reminder",
339
+ Trip = "Trip",
340
+ Route = "Route",
341
+ Invoice = "Invoice",
342
+ BillDue = "BillDue",
343
+ UserAuth = "UserAuth"
320
344
  }
321
345
  declare enum AlertSubType {
322
- ABC = "ABC"
346
+ FuelRefill = "FuelRefill",
347
+ FuelRemoval = "FuelRemoval",
348
+ LowFuel = "LowFuel",
349
+ FuelSensorFault = "FuelSensorFault",
350
+ TemperatureHigh = "TemperatureHigh",
351
+ TemperatureLow = "TemperatureLow",
352
+ TempProbeFault = "TempProbeFault",
353
+ VehicleLocked = "VehicleLocked",
354
+ VehicleUnlocked = "VehicleUnlocked",
355
+ GensetOn = "GensetOn",
356
+ GensetOff = "GensetOff",
357
+ DoorOpen = "DoorOpen",
358
+ DoorClose = "DoorClose",
359
+ DoorOpenTooLong = "DoorOpenTooLong",
360
+ DoorTamper = "DoorTamper",
361
+ DigitalLockerLocked = "DigitalLockerLocked",
362
+ DigitalLockerUnlocked = "DigitalLockerUnlocked",
363
+ DigitalLockerFailedUnlock = "DigitalLockerFailedUnlock",
364
+ DigitalLockerForcedOpen = "DigitalLockerForcedOpen",
365
+ OverSpeed = "OverSpeed",
366
+ IgnitionOn = "IgnitionOn",
367
+ IgnitionOff = "IgnitionOff",
368
+ VehicleMoving = "VehicleMoving",
369
+ VehicleStopped = "VehicleStopped",
370
+ VehicleStoppedHours = "VehicleStoppedHours",// stopped ≥ configured hours (dynamic)
371
+ LessKMTravel = "LessKMTravel",// low distance within period (dynamic)
372
+ TowDetected = "TowDetected",
373
+ AfterHours = "AfterHours",
374
+ GeofenceEnter = "GeofenceEnter",
375
+ GeofenceExit = "GeofenceExit",
376
+ TrailerConnected = "TrailerConnected",
377
+ TrailerDisconnected = "TrailerDisconnected",
378
+ InsuranceExpiry = "InsuranceExpiry",
379
+ RegistrationExpiry = "RegistrationExpiry",
380
+ PermitExpiry = "PermitExpiry",
381
+ PollutionExpiry = "PollutionExpiry",
382
+ FitnessExpiry = "FitnessExpiry",
383
+ TaxExpiry = "TaxExpiry",
384
+ MaintenanceDue = "MaintenanceDue",
385
+ MaintenanceOverdue = "MaintenanceOverdue",
386
+ MaintenanceCompleted = "MaintenanceCompleted",
387
+ ServiceScheduled = "ServiceScheduled",
388
+ ServiceStarted = "ServiceStarted",
389
+ ServiceCompleted = "ServiceCompleted",
390
+ ServiceOverdue = "ServiceOverdue",
391
+ InspectionScheduled = "InspectionScheduled",
392
+ InspectionPassed = "InspectionPassed",
393
+ InspectionFailed = "InspectionFailed",
394
+ InspectionOverdue = "InspectionOverdue",
395
+ CollisionDetected = "CollisionDetected",
396
+ Rollover = "Rollover",
397
+ IssueCreated = "IssueCreated",
398
+ IssueUpdated = "IssueUpdated",
399
+ IssueResolved = "IssueResolved",
400
+ ReminderDue = "ReminderDue",
401
+ ReminderOverdue = "ReminderOverdue",
402
+ ReminderCompleted = "ReminderCompleted",
403
+ TripPlanned = "TripPlanned",
404
+ TripStarted = "TripStarted",
405
+ TripPaused = "TripPaused",
406
+ TripResumed = "TripResumed",
407
+ TripCompleted = "TripCompleted",
408
+ TripCancelled = "TripCancelled",
409
+ RouteDeviation = "RouteDeviation",
410
+ WaypointMissed = "WaypointMissed",
411
+ UnscheduledStop = "UnscheduledStop",
412
+ InvoiceGenerated = "InvoiceGenerated",
413
+ InvoiceDue = "InvoiceDue",
414
+ InvoiceOverdue = "InvoiceOverdue",
415
+ InvoicePaid = "InvoicePaid",
416
+ UserLogin = "UserLogin",
417
+ UserLogout = "UserLogout",
418
+ PasswordChanged = "PasswordChanged"
323
419
  }
324
420
  declare enum SimStatus {
325
421
  New = "New",
@@ -489,4 +585,4 @@ declare enum PaymentMode {
489
585
  Other = "Other"
490
586
  }
491
587
 
492
- export { AdminRole, AlertSubType, AlertType, BillingStatus, BooleanType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, ExpenseCategory, FileType, FleetSize, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoginFrom, MenuType, Module, NightDriving, NotificationType, OdometerSource, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, SubModule, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo };
588
+ export { AdminRole, AlertSubType, AlertType, BillingStatus, BooleanType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, ExpenseCategory, FileType, FleetSize, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoginFrom, MenuType, Module, NightDriving, NotificationType, OdometerSource, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo };
@@ -362,19 +362,114 @@ var MenuType = /* @__PURE__ */ ((MenuType2) => {
362
362
  return MenuType2;
363
363
  })(MenuType || {});
364
364
  var Module = /* @__PURE__ */ ((Module2) => {
365
- Module2["ABC"] = "ABC";
365
+ Module2["GPSModule"] = "GPSModule";
366
+ Module2["FleetModule"] = "FleetModule";
367
+ Module2["TripModule"] = "TripModule";
368
+ Module2["AccountModule"] = "AccountModule";
366
369
  return Module2;
367
370
  })(Module || {});
368
- var SubModule = /* @__PURE__ */ ((SubModule2) => {
369
- SubModule2["ABC"] = "ABC";
370
- return SubModule2;
371
- })(SubModule || {});
372
371
  var AlertType = /* @__PURE__ */ ((AlertType2) => {
373
- AlertType2["ABC"] = "ABC";
372
+ AlertType2["Fuel"] = "Fuel";
373
+ AlertType2["Temperature"] = "Temperature";
374
+ AlertType2["RelayIgnitionLock"] = "RelayIgnitionLock";
375
+ AlertType2["Genset"] = "Genset";
376
+ AlertType2["DoorSensor"] = "DoorSensor";
377
+ AlertType2["DigitalLocker"] = "DigitalLocker";
378
+ AlertType2["OverSpeed"] = "OverSpeed";
379
+ AlertType2["Ignition"] = "Ignition";
380
+ AlertType2["VehicleMovement"] = "VehicleMovement";
381
+ AlertType2["Geofence"] = "Geofence";
382
+ AlertType2["Trailer"] = "Trailer";
383
+ AlertType2["DocumentExpiry"] = "DocumentExpiry";
384
+ AlertType2["Compliance"] = "Compliance";
385
+ AlertType2["Maintenance"] = "Maintenance";
386
+ AlertType2["Service"] = "Service";
387
+ AlertType2["Inspection"] = "Inspection";
388
+ AlertType2["Tyre"] = "Tyre";
389
+ AlertType2["Incident"] = "Incident";
390
+ AlertType2["Issue"] = "Issue";
391
+ AlertType2["Reminder"] = "Reminder";
392
+ AlertType2["Trip"] = "Trip";
393
+ AlertType2["Route"] = "Route";
394
+ AlertType2["Invoice"] = "Invoice";
395
+ AlertType2["BillDue"] = "BillDue";
396
+ AlertType2["UserAuth"] = "UserAuth";
374
397
  return AlertType2;
375
398
  })(AlertType || {});
376
399
  var AlertSubType = /* @__PURE__ */ ((AlertSubType2) => {
377
- AlertSubType2["ABC"] = "ABC";
400
+ AlertSubType2["FuelRefill"] = "FuelRefill";
401
+ AlertSubType2["FuelRemoval"] = "FuelRemoval";
402
+ AlertSubType2["LowFuel"] = "LowFuel";
403
+ AlertSubType2["FuelSensorFault"] = "FuelSensorFault";
404
+ AlertSubType2["TemperatureHigh"] = "TemperatureHigh";
405
+ AlertSubType2["TemperatureLow"] = "TemperatureLow";
406
+ AlertSubType2["TempProbeFault"] = "TempProbeFault";
407
+ AlertSubType2["VehicleLocked"] = "VehicleLocked";
408
+ AlertSubType2["VehicleUnlocked"] = "VehicleUnlocked";
409
+ AlertSubType2["GensetOn"] = "GensetOn";
410
+ AlertSubType2["GensetOff"] = "GensetOff";
411
+ AlertSubType2["DoorOpen"] = "DoorOpen";
412
+ AlertSubType2["DoorClose"] = "DoorClose";
413
+ AlertSubType2["DoorOpenTooLong"] = "DoorOpenTooLong";
414
+ AlertSubType2["DoorTamper"] = "DoorTamper";
415
+ AlertSubType2["DigitalLockerLocked"] = "DigitalLockerLocked";
416
+ AlertSubType2["DigitalLockerUnlocked"] = "DigitalLockerUnlocked";
417
+ AlertSubType2["DigitalLockerFailedUnlock"] = "DigitalLockerFailedUnlock";
418
+ AlertSubType2["DigitalLockerForcedOpen"] = "DigitalLockerForcedOpen";
419
+ AlertSubType2["OverSpeed"] = "OverSpeed";
420
+ AlertSubType2["IgnitionOn"] = "IgnitionOn";
421
+ AlertSubType2["IgnitionOff"] = "IgnitionOff";
422
+ AlertSubType2["VehicleMoving"] = "VehicleMoving";
423
+ AlertSubType2["VehicleStopped"] = "VehicleStopped";
424
+ AlertSubType2["VehicleStoppedHours"] = "VehicleStoppedHours";
425
+ AlertSubType2["LessKMTravel"] = "LessKMTravel";
426
+ AlertSubType2["TowDetected"] = "TowDetected";
427
+ AlertSubType2["AfterHours"] = "AfterHours";
428
+ AlertSubType2["GeofenceEnter"] = "GeofenceEnter";
429
+ AlertSubType2["GeofenceExit"] = "GeofenceExit";
430
+ AlertSubType2["TrailerConnected"] = "TrailerConnected";
431
+ AlertSubType2["TrailerDisconnected"] = "TrailerDisconnected";
432
+ AlertSubType2["InsuranceExpiry"] = "InsuranceExpiry";
433
+ AlertSubType2["RegistrationExpiry"] = "RegistrationExpiry";
434
+ AlertSubType2["PermitExpiry"] = "PermitExpiry";
435
+ AlertSubType2["PollutionExpiry"] = "PollutionExpiry";
436
+ AlertSubType2["FitnessExpiry"] = "FitnessExpiry";
437
+ AlertSubType2["TaxExpiry"] = "TaxExpiry";
438
+ AlertSubType2["MaintenanceDue"] = "MaintenanceDue";
439
+ AlertSubType2["MaintenanceOverdue"] = "MaintenanceOverdue";
440
+ AlertSubType2["MaintenanceCompleted"] = "MaintenanceCompleted";
441
+ AlertSubType2["ServiceScheduled"] = "ServiceScheduled";
442
+ AlertSubType2["ServiceStarted"] = "ServiceStarted";
443
+ AlertSubType2["ServiceCompleted"] = "ServiceCompleted";
444
+ AlertSubType2["ServiceOverdue"] = "ServiceOverdue";
445
+ AlertSubType2["InspectionScheduled"] = "InspectionScheduled";
446
+ AlertSubType2["InspectionPassed"] = "InspectionPassed";
447
+ AlertSubType2["InspectionFailed"] = "InspectionFailed";
448
+ AlertSubType2["InspectionOverdue"] = "InspectionOverdue";
449
+ AlertSubType2["CollisionDetected"] = "CollisionDetected";
450
+ AlertSubType2["Rollover"] = "Rollover";
451
+ AlertSubType2["IssueCreated"] = "IssueCreated";
452
+ AlertSubType2["IssueUpdated"] = "IssueUpdated";
453
+ AlertSubType2["IssueResolved"] = "IssueResolved";
454
+ AlertSubType2["ReminderDue"] = "ReminderDue";
455
+ AlertSubType2["ReminderOverdue"] = "ReminderOverdue";
456
+ AlertSubType2["ReminderCompleted"] = "ReminderCompleted";
457
+ AlertSubType2["TripPlanned"] = "TripPlanned";
458
+ AlertSubType2["TripStarted"] = "TripStarted";
459
+ AlertSubType2["TripPaused"] = "TripPaused";
460
+ AlertSubType2["TripResumed"] = "TripResumed";
461
+ AlertSubType2["TripCompleted"] = "TripCompleted";
462
+ AlertSubType2["TripCancelled"] = "TripCancelled";
463
+ AlertSubType2["RouteDeviation"] = "RouteDeviation";
464
+ AlertSubType2["WaypointMissed"] = "WaypointMissed";
465
+ AlertSubType2["UnscheduledStop"] = "UnscheduledStop";
466
+ AlertSubType2["InvoiceGenerated"] = "InvoiceGenerated";
467
+ AlertSubType2["InvoiceDue"] = "InvoiceDue";
468
+ AlertSubType2["InvoiceOverdue"] = "InvoiceOverdue";
469
+ AlertSubType2["InvoicePaid"] = "InvoicePaid";
470
+ AlertSubType2["UserLogin"] = "UserLogin";
471
+ AlertSubType2["UserLogout"] = "UserLogout";
472
+ AlertSubType2["PasswordChanged"] = "PasswordChanged";
378
473
  return AlertSubType2;
379
474
  })(AlertSubType || {});
380
475
  var SimStatus = /* @__PURE__ */ ((SimStatus2) => {
@@ -623,7 +718,6 @@ export {
623
718
  SimStatus,
624
719
  Status,
625
720
  StockType,
626
- SubModule,
627
721
  TicketStatus,
628
722
  TimeSlot,
629
723
  TrackHistoryLinkStatus,
@@ -154,9 +154,9 @@ declare const NotificationQuerySchema: z.ZodObject<{
154
154
  user_ids: string[];
155
155
  vehicle_ids: string[];
156
156
  driver_ids: string[];
157
- module: Module.ABC[];
158
- alert_type: AlertType.ABC[];
159
- alert_sub_type: AlertSubType.ABC[];
157
+ module: Module[];
158
+ alert_type: AlertType[];
159
+ alert_sub_type: AlertSubType[];
160
160
  notification_ids: string[];
161
161
  gps_geofence_ids: string[];
162
162
  }, {
@@ -185,9 +185,9 @@ declare const NotificationQuerySchema: z.ZodObject<{
185
185
  user_ids?: string[] | undefined;
186
186
  vehicle_ids?: string[] | undefined;
187
187
  driver_ids?: string[] | undefined;
188
- module?: Module.ABC[] | undefined;
189
- alert_type?: AlertType.ABC[] | undefined;
190
- alert_sub_type?: AlertSubType.ABC[] | undefined;
188
+ module?: Module[] | undefined;
189
+ alert_type?: AlertType[] | undefined;
190
+ alert_sub_type?: AlertSubType[] | undefined;
191
191
  notification_ids?: string[] | undefined;
192
192
  gps_geofence_ids?: string[] | undefined;
193
193
  }>;
@@ -181,15 +181,114 @@ var YesNo = /* @__PURE__ */ ((YesNo3) => {
181
181
  return YesNo3;
182
182
  })(YesNo || {});
183
183
  var Module = /* @__PURE__ */ ((Module2) => {
184
- Module2["ABC"] = "ABC";
184
+ Module2["GPSModule"] = "GPSModule";
185
+ Module2["FleetModule"] = "FleetModule";
186
+ Module2["TripModule"] = "TripModule";
187
+ Module2["AccountModule"] = "AccountModule";
185
188
  return Module2;
186
189
  })(Module || {});
187
190
  var AlertType = /* @__PURE__ */ ((AlertType2) => {
188
- AlertType2["ABC"] = "ABC";
191
+ AlertType2["Fuel"] = "Fuel";
192
+ AlertType2["Temperature"] = "Temperature";
193
+ AlertType2["RelayIgnitionLock"] = "RelayIgnitionLock";
194
+ AlertType2["Genset"] = "Genset";
195
+ AlertType2["DoorSensor"] = "DoorSensor";
196
+ AlertType2["DigitalLocker"] = "DigitalLocker";
197
+ AlertType2["OverSpeed"] = "OverSpeed";
198
+ AlertType2["Ignition"] = "Ignition";
199
+ AlertType2["VehicleMovement"] = "VehicleMovement";
200
+ AlertType2["Geofence"] = "Geofence";
201
+ AlertType2["Trailer"] = "Trailer";
202
+ AlertType2["DocumentExpiry"] = "DocumentExpiry";
203
+ AlertType2["Compliance"] = "Compliance";
204
+ AlertType2["Maintenance"] = "Maintenance";
205
+ AlertType2["Service"] = "Service";
206
+ AlertType2["Inspection"] = "Inspection";
207
+ AlertType2["Tyre"] = "Tyre";
208
+ AlertType2["Incident"] = "Incident";
209
+ AlertType2["Issue"] = "Issue";
210
+ AlertType2["Reminder"] = "Reminder";
211
+ AlertType2["Trip"] = "Trip";
212
+ AlertType2["Route"] = "Route";
213
+ AlertType2["Invoice"] = "Invoice";
214
+ AlertType2["BillDue"] = "BillDue";
215
+ AlertType2["UserAuth"] = "UserAuth";
189
216
  return AlertType2;
190
217
  })(AlertType || {});
191
218
  var AlertSubType = /* @__PURE__ */ ((AlertSubType2) => {
192
- AlertSubType2["ABC"] = "ABC";
219
+ AlertSubType2["FuelRefill"] = "FuelRefill";
220
+ AlertSubType2["FuelRemoval"] = "FuelRemoval";
221
+ AlertSubType2["LowFuel"] = "LowFuel";
222
+ AlertSubType2["FuelSensorFault"] = "FuelSensorFault";
223
+ AlertSubType2["TemperatureHigh"] = "TemperatureHigh";
224
+ AlertSubType2["TemperatureLow"] = "TemperatureLow";
225
+ AlertSubType2["TempProbeFault"] = "TempProbeFault";
226
+ AlertSubType2["VehicleLocked"] = "VehicleLocked";
227
+ AlertSubType2["VehicleUnlocked"] = "VehicleUnlocked";
228
+ AlertSubType2["GensetOn"] = "GensetOn";
229
+ AlertSubType2["GensetOff"] = "GensetOff";
230
+ AlertSubType2["DoorOpen"] = "DoorOpen";
231
+ AlertSubType2["DoorClose"] = "DoorClose";
232
+ AlertSubType2["DoorOpenTooLong"] = "DoorOpenTooLong";
233
+ AlertSubType2["DoorTamper"] = "DoorTamper";
234
+ AlertSubType2["DigitalLockerLocked"] = "DigitalLockerLocked";
235
+ AlertSubType2["DigitalLockerUnlocked"] = "DigitalLockerUnlocked";
236
+ AlertSubType2["DigitalLockerFailedUnlock"] = "DigitalLockerFailedUnlock";
237
+ AlertSubType2["DigitalLockerForcedOpen"] = "DigitalLockerForcedOpen";
238
+ AlertSubType2["OverSpeed"] = "OverSpeed";
239
+ AlertSubType2["IgnitionOn"] = "IgnitionOn";
240
+ AlertSubType2["IgnitionOff"] = "IgnitionOff";
241
+ AlertSubType2["VehicleMoving"] = "VehicleMoving";
242
+ AlertSubType2["VehicleStopped"] = "VehicleStopped";
243
+ AlertSubType2["VehicleStoppedHours"] = "VehicleStoppedHours";
244
+ AlertSubType2["LessKMTravel"] = "LessKMTravel";
245
+ AlertSubType2["TowDetected"] = "TowDetected";
246
+ AlertSubType2["AfterHours"] = "AfterHours";
247
+ AlertSubType2["GeofenceEnter"] = "GeofenceEnter";
248
+ AlertSubType2["GeofenceExit"] = "GeofenceExit";
249
+ AlertSubType2["TrailerConnected"] = "TrailerConnected";
250
+ AlertSubType2["TrailerDisconnected"] = "TrailerDisconnected";
251
+ AlertSubType2["InsuranceExpiry"] = "InsuranceExpiry";
252
+ AlertSubType2["RegistrationExpiry"] = "RegistrationExpiry";
253
+ AlertSubType2["PermitExpiry"] = "PermitExpiry";
254
+ AlertSubType2["PollutionExpiry"] = "PollutionExpiry";
255
+ AlertSubType2["FitnessExpiry"] = "FitnessExpiry";
256
+ AlertSubType2["TaxExpiry"] = "TaxExpiry";
257
+ AlertSubType2["MaintenanceDue"] = "MaintenanceDue";
258
+ AlertSubType2["MaintenanceOverdue"] = "MaintenanceOverdue";
259
+ AlertSubType2["MaintenanceCompleted"] = "MaintenanceCompleted";
260
+ AlertSubType2["ServiceScheduled"] = "ServiceScheduled";
261
+ AlertSubType2["ServiceStarted"] = "ServiceStarted";
262
+ AlertSubType2["ServiceCompleted"] = "ServiceCompleted";
263
+ AlertSubType2["ServiceOverdue"] = "ServiceOverdue";
264
+ AlertSubType2["InspectionScheduled"] = "InspectionScheduled";
265
+ AlertSubType2["InspectionPassed"] = "InspectionPassed";
266
+ AlertSubType2["InspectionFailed"] = "InspectionFailed";
267
+ AlertSubType2["InspectionOverdue"] = "InspectionOverdue";
268
+ AlertSubType2["CollisionDetected"] = "CollisionDetected";
269
+ AlertSubType2["Rollover"] = "Rollover";
270
+ AlertSubType2["IssueCreated"] = "IssueCreated";
271
+ AlertSubType2["IssueUpdated"] = "IssueUpdated";
272
+ AlertSubType2["IssueResolved"] = "IssueResolved";
273
+ AlertSubType2["ReminderDue"] = "ReminderDue";
274
+ AlertSubType2["ReminderOverdue"] = "ReminderOverdue";
275
+ AlertSubType2["ReminderCompleted"] = "ReminderCompleted";
276
+ AlertSubType2["TripPlanned"] = "TripPlanned";
277
+ AlertSubType2["TripStarted"] = "TripStarted";
278
+ AlertSubType2["TripPaused"] = "TripPaused";
279
+ AlertSubType2["TripResumed"] = "TripResumed";
280
+ AlertSubType2["TripCompleted"] = "TripCompleted";
281
+ AlertSubType2["TripCancelled"] = "TripCancelled";
282
+ AlertSubType2["RouteDeviation"] = "RouteDeviation";
283
+ AlertSubType2["WaypointMissed"] = "WaypointMissed";
284
+ AlertSubType2["UnscheduledStop"] = "UnscheduledStop";
285
+ AlertSubType2["InvoiceGenerated"] = "InvoiceGenerated";
286
+ AlertSubType2["InvoiceDue"] = "InvoiceDue";
287
+ AlertSubType2["InvoiceOverdue"] = "InvoiceOverdue";
288
+ AlertSubType2["InvoicePaid"] = "InvoicePaid";
289
+ AlertSubType2["UserLogin"] = "UserLogin";
290
+ AlertSubType2["UserLogout"] = "UserLogout";
291
+ AlertSubType2["PasswordChanged"] = "PasswordChanged";
193
292
  return AlertSubType2;
194
293
  })(AlertSubType || {});
195
294
 
@@ -31,21 +31,21 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
31
31
  geofence_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
32
32
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
33
33
  }, "strip", z.ZodTypeAny, {
34
+ geofence_status_type: GeofenceStatusType;
35
+ geofence_time: string;
34
36
  status: Status;
35
37
  organisation_id: string;
36
38
  vehicle_id: string;
37
39
  driver_id: string;
38
40
  gps_geofence_id: string;
41
+ }, {
39
42
  geofence_status_type: GeofenceStatusType;
40
43
  geofence_time: string;
41
- }, {
42
44
  status: Status;
43
45
  organisation_id: string;
44
46
  vehicle_id: string;
45
47
  driver_id: string;
46
48
  gps_geofence_id: string;
47
- geofence_status_type: GeofenceStatusType;
48
- geofence_time: string;
49
49
  }>;
50
50
  type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
51
51
  declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
@@ -85,6 +85,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
85
85
  gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
86
86
  geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
87
87
  }, "strip", z.ZodTypeAny, {
88
+ geofence_status_type: GeofenceStatusType[];
88
89
  status: Status[];
89
90
  search: string;
90
91
  paging: PAGING;
@@ -109,11 +110,11 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
109
110
  organisation_ids: string[];
110
111
  vehicle_ids: string[];
111
112
  driver_ids: string[];
112
- geofence_status_type: GeofenceStatusType[];
113
113
  gps_geofence_ids: string[];
114
114
  }, {
115
115
  date_format_id: string;
116
116
  time_zone_id: string;
117
+ geofence_status_type?: GeofenceStatusType[] | undefined;
117
118
  status?: Status[] | undefined;
118
119
  search?: string | undefined;
119
120
  paging?: PAGING | undefined;
@@ -136,7 +137,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
136
137
  organisation_ids?: string[] | undefined;
137
138
  vehicle_ids?: string[] | undefined;
138
139
  driver_ids?: string[] | undefined;
139
- geofence_status_type?: GeofenceStatusType[] | undefined;
140
140
  gps_geofence_ids?: string[] | undefined;
141
141
  }>;
142
142
  type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
@@ -40,7 +40,6 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
40
40
  duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
41
41
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- duration_seconds: number;
44
43
  status: Status;
45
44
  organisation_id: string;
46
45
  vehicle_id: string;
@@ -48,6 +47,7 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
48
47
  gps_geofence_id: string;
49
48
  geofence_enter_date_time: string;
50
49
  geofence_exit_date_time: string;
50
+ duration_seconds: number;
51
51
  enter_gps_geofence_transaction_id: string;
52
52
  exit_gps_geofence_transaction_id: string;
53
53
  }, {
@@ -59,8 +59,8 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
59
59
  geofence_enter_date_time: string;
60
60
  enter_gps_geofence_transaction_id: string;
61
61
  exit_gps_geofence_transaction_id: string;
62
- duration_seconds?: unknown;
63
62
  geofence_exit_date_time?: string | undefined;
63
+ duration_seconds?: unknown;
64
64
  }>;
65
65
  type GPSGeofenceTransactionSummaryDTO = z.infer<typeof GPSGeofenceTransactionSummarySchema>;
66
66
  declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
@@ -125,9 +125,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
125
125
  organisation_ids: string[];
126
126
  vehicle_ids: string[];
127
127
  driver_ids: string[];
128
+ gps_geofence_ids: string[];
128
129
  from_date: string;
129
130
  to_date: string;
130
- gps_geofence_ids: string[];
131
131
  }, {
132
132
  date_format_id: string;
133
133
  time_zone_id: string;
@@ -62,19 +62,19 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
62
62
  mileage: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
63
63
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
64
64
  }, "strip", z.ZodTypeAny, {
65
+ status: Status;
66
+ organisation_id: string;
67
+ vehicle_id: string;
68
+ driver_id: string;
69
+ duration_seconds: number;
65
70
  from_geofence_exit_date_time: string;
66
71
  to_geofence_enter_date_time: string;
67
- duration_seconds: number;
68
72
  travel_duration_seconds: number;
69
73
  stopped_duration_seconds: number;
70
74
  max_speed: number;
71
75
  avg_speed: number;
72
76
  refills_count: number;
73
77
  removals_count: number;
74
- status: Status;
75
- organisation_id: string;
76
- vehicle_id: string;
77
- driver_id: string;
78
78
  from_geofence_id: string;
79
79
  to_geofence_id: string;
80
80
  distance_meters?: number | undefined;
@@ -85,12 +85,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
85
85
  removal_fuel_liters?: number | undefined;
86
86
  mileage?: number | undefined;
87
87
  }, {
88
- from_geofence_exit_date_time: string;
89
- to_geofence_enter_date_time: string;
90
88
  status: Status;
91
89
  organisation_id: string;
92
90
  vehicle_id: string;
93
91
  driver_id: string;
92
+ from_geofence_exit_date_time: string;
93
+ to_geofence_enter_date_time: string;
94
94
  from_geofence_id: string;
95
95
  to_geofence_id: string;
96
96
  duration_seconds?: unknown;
@@ -172,10 +172,10 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
172
172
  organisation_ids: string[];
173
173
  vehicle_ids: string[];
174
174
  driver_ids: string[];
175
- from_geofence_ids: string[];
176
- to_geofence_ids: string[];
177
175
  from_date: string;
178
176
  to_date: string;
177
+ from_geofence_ids: string[];
178
+ to_geofence_ids: string[];
179
179
  }, {
180
180
  date_format_id: string;
181
181
  time_zone_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "6.0.13",
3
+ "version": "6.0.14",
4
4
  "description": "Reusable API SDK built with NestJS, Prisma, Axios, and Zod for VMS frontends.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",