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

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,
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  user_id: string;
24
24
  organisation_id: string;
25
- country_id: string;
26
25
  login_from: LoginFrom;
26
+ country_id: string;
27
27
  os_details: Record<string, any>;
28
28
  ip_details: Record<string, any>;
29
29
  }, {
30
30
  user_id: string;
31
31
  organisation_id: string;
32
- country_id: string;
33
32
  login_from: LoginFrom;
33
+ country_id: string;
34
34
  os_details?: Record<string, any> | undefined;
35
35
  ip_details?: Record<string, any> | undefined;
36
36
  }>;
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
48
48
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
49
49
  country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
- login_from: LoginFrom;
52
51
  search: string;
53
52
  paging: PAGING;
54
53
  page_count: number;
55
54
  page_index: number;
55
+ login_from: LoginFrom;
56
56
  date_format_id: string;
57
57
  time_zone_id: string;
58
58
  user_ids: string[];
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
43
43
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
44
44
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- login_from: LoginFrom;
47
46
  search: string;
48
47
  paging: PAGING;
49
48
  page_count: number;
50
49
  page_index: number;
50
+ login_from: LoginFrom;
51
51
  date_format_id: string;
52
52
  time_zone_id: string;
53
53
  user_ids: string[];
@@ -3,6 +3,7 @@ import { FBR, SBR } from '../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../user_organisation_service-Cx3ffrVp.js';
5
5
  import { GPSGeofenceData } from '../gps/features/geofence/gps_geofence_data_service.js';
6
+ import { MasterMainLandmark } from '../master/main/master_main_landmark_service.js';
6
7
  import '../../zod_utils/zod_base_schema.js';
7
8
  import '../master/main/master_main_sim_provider_service.js';
8
9
 
@@ -11,7 +12,8 @@ interface Notification extends Record<string, unknown> {
11
12
  module: Module;
12
13
  alert_type: AlertType;
13
14
  alert_sub_type: AlertSubType;
14
- notification_title: string;
15
+ date_time: string;
16
+ date_time_f?: string;
15
17
  notification_message: string;
16
18
  notification_html_message: string;
17
19
  notification_key_1?: string;
@@ -20,6 +22,13 @@ interface Notification extends Record<string, unknown> {
20
22
  notification_key_4?: string;
21
23
  notification_key_5?: string;
22
24
  notification_key_6?: string;
25
+ latitude?: number;
26
+ longitude?: number;
27
+ google_location?: string;
28
+ landmark_id?: string;
29
+ MasterMainLandmark?: MasterMainLandmark;
30
+ landmark_location?: string;
31
+ landmark_distance?: number;
23
32
  status: Status;
24
33
  added_date_time: string;
25
34
  modified_date_time: string;
@@ -44,9 +53,12 @@ declare const NotificationSchema: z.ZodObject<{
44
53
  vehicle_id: z.ZodEffects<z.ZodString, string, string>;
45
54
  driver_id: z.ZodEffects<z.ZodString, string, string>;
46
55
  gps_geofence_id: z.ZodEffects<z.ZodString, string, string>;
47
- notification_title: z.ZodEffects<z.ZodString, string, string>;
56
+ date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
48
57
  notification_message: z.ZodEffects<z.ZodString, string, string>;
49
58
  notification_html_message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
59
+ latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
60
+ longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
61
+ google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
50
62
  notification_key_1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
51
63
  notification_key_2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
52
64
  notification_key_3: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
@@ -54,14 +66,17 @@ declare const NotificationSchema: z.ZodObject<{
54
66
  notification_key_5: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
55
67
  notification_key_6: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
56
68
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
69
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
57
70
  }, "strip", z.ZodTypeAny, {
58
71
  status: Status;
59
72
  organisation_id: string;
60
73
  user_id: string;
74
+ time_zone_id: string;
61
75
  driver_id: string;
62
76
  vehicle_id: string;
63
77
  gps_geofence_id: string;
64
- notification_title: string;
78
+ google_location: string;
79
+ date_time: string;
65
80
  notification_message: string;
66
81
  notification_html_message: string;
67
82
  notification_key_1: string;
@@ -70,15 +85,21 @@ declare const NotificationSchema: z.ZodObject<{
70
85
  notification_key_4: string;
71
86
  notification_key_5: string;
72
87
  notification_key_6: string;
88
+ latitude?: number | undefined;
89
+ longitude?: number | undefined;
73
90
  }, {
74
91
  status: Status;
75
92
  organisation_id: string;
76
93
  user_id: string;
94
+ time_zone_id: string;
77
95
  driver_id: string;
78
96
  vehicle_id: string;
79
97
  gps_geofence_id: string;
80
- notification_title: string;
98
+ date_time: string;
81
99
  notification_message: string;
100
+ latitude?: unknown;
101
+ longitude?: unknown;
102
+ google_location?: string | undefined;
82
103
  notification_html_message?: string | undefined;
83
104
  notification_key_1?: string | undefined;
84
105
  notification_key_2?: string | undefined;
@@ -154,9 +175,9 @@ declare const NotificationQuerySchema: z.ZodObject<{
154
175
  user_ids: string[];
155
176
  vehicle_ids: string[];
156
177
  driver_ids: string[];
157
- module: Module.ABC[];
158
- alert_type: AlertType.ABC[];
159
- alert_sub_type: AlertSubType.ABC[];
178
+ module: Module[];
179
+ alert_type: AlertType[];
180
+ alert_sub_type: AlertSubType[];
160
181
  notification_ids: string[];
161
182
  gps_geofence_ids: string[];
162
183
  }, {
@@ -185,14 +206,14 @@ declare const NotificationQuerySchema: z.ZodObject<{
185
206
  user_ids?: string[] | undefined;
186
207
  vehicle_ids?: string[] | undefined;
187
208
  driver_ids?: string[] | undefined;
188
- module?: Module.ABC[] | undefined;
189
- alert_type?: AlertType.ABC[] | undefined;
190
- alert_sub_type?: AlertSubType.ABC[] | undefined;
209
+ module?: Module[] | undefined;
210
+ alert_type?: AlertType[] | undefined;
211
+ alert_sub_type?: AlertSubType[] | undefined;
191
212
  notification_ids?: string[] | undefined;
192
213
  gps_geofence_ids?: string[] | undefined;
193
214
  }>;
194
215
  type NotificationQueryDTO = z.infer<typeof NotificationQuerySchema>;
195
- declare const toNotificationPayload: (n: Notification) => NotificationDTO;
216
+ declare const toNotificationPayload: (row: Notification) => NotificationDTO;
196
217
  declare const newNotificationPayload: () => NotificationDTO;
197
218
  declare const findNotifications: (data: NotificationQueryDTO) => Promise<FBR<Notification[]>>;
198
219
  declare const createNotification: (data: NotificationDTO) => Promise<SBR>;
@@ -61,6 +61,20 @@ var numberOptional = (fieldName, min = 0, max = 1e9, defaultValue = 0) => {
61
61
  z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(min, `${fieldName} must be at least ${min}.`).max(max, `${fieldName} must be at most ${max}.`).optional().default(defaultValue)
62
62
  );
63
63
  };
64
+ var doubleOptionalLatLng = (fieldName, defaultValue = 0) => {
65
+ return z.preprocess(
66
+ (val) => {
67
+ if (typeof val === "string") {
68
+ val = parseFloat(val);
69
+ }
70
+ if (typeof val === "number") {
71
+ return parseFloat(val.toFixed(6));
72
+ }
73
+ return val;
74
+ },
75
+ z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(-180, `${fieldName} must be at least -180.`).max(180, `${fieldName} must be at most 180.`).default(defaultValue)
76
+ ).optional();
77
+ };
64
78
  var enumMandatory = (fieldName, enumType, defaultValue) => {
65
79
  return z.union([
66
80
  z.nativeEnum(enumType, {
@@ -101,6 +115,28 @@ var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumTyp
101
115
  }
102
116
  return schema.optional().default(() => defaultValue);
103
117
  };
118
+ var handleNullOrUndefinedDate = (value, defaultValue) => {
119
+ if (typeof value === "string" && !isNaN(Date.parse(value))) {
120
+ return value;
121
+ }
122
+ return defaultValue;
123
+ };
124
+ var dateMandatory = (fieldName, minDate, maxDate, defaultValue = (/* @__PURE__ */ new Date()).toISOString()) => {
125
+ const schema = z.string().refine((val) => !isNaN(Date.parse(val)), {
126
+ message: `${fieldName} must be a valid ISO date.`
127
+ }).transform((val) => handleNullOrUndefinedDate(val, defaultValue));
128
+ if (minDate) {
129
+ schema.refine((val) => new Date(val) >= new Date(minDate), {
130
+ message: `${fieldName} must be after ${minDate}.`
131
+ });
132
+ }
133
+ if (maxDate) {
134
+ schema.refine((val) => new Date(val) <= new Date(maxDate), {
135
+ message: `${fieldName} must be before ${maxDate}.`
136
+ });
137
+ }
138
+ return schema;
139
+ };
104
140
  var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
105
141
  var single_select_mandatory = (fieldName) => {
106
142
  const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
@@ -181,15 +217,114 @@ var YesNo = /* @__PURE__ */ ((YesNo3) => {
181
217
  return YesNo3;
182
218
  })(YesNo || {});
183
219
  var Module = /* @__PURE__ */ ((Module2) => {
184
- Module2["ABC"] = "ABC";
220
+ Module2["GPSModule"] = "GPSModule";
221
+ Module2["FleetModule"] = "FleetModule";
222
+ Module2["TripModule"] = "TripModule";
223
+ Module2["AccountModule"] = "AccountModule";
185
224
  return Module2;
186
225
  })(Module || {});
187
226
  var AlertType = /* @__PURE__ */ ((AlertType2) => {
188
- AlertType2["ABC"] = "ABC";
227
+ AlertType2["Fuel"] = "Fuel";
228
+ AlertType2["Temperature"] = "Temperature";
229
+ AlertType2["RelayIgnitionLock"] = "RelayIgnitionLock";
230
+ AlertType2["Genset"] = "Genset";
231
+ AlertType2["DoorSensor"] = "DoorSensor";
232
+ AlertType2["DigitalLocker"] = "DigitalLocker";
233
+ AlertType2["OverSpeed"] = "OverSpeed";
234
+ AlertType2["Ignition"] = "Ignition";
235
+ AlertType2["VehicleMovement"] = "VehicleMovement";
236
+ AlertType2["Geofence"] = "Geofence";
237
+ AlertType2["Trailer"] = "Trailer";
238
+ AlertType2["DocumentExpiry"] = "DocumentExpiry";
239
+ AlertType2["Compliance"] = "Compliance";
240
+ AlertType2["Maintenance"] = "Maintenance";
241
+ AlertType2["Service"] = "Service";
242
+ AlertType2["Inspection"] = "Inspection";
243
+ AlertType2["Tyre"] = "Tyre";
244
+ AlertType2["Incident"] = "Incident";
245
+ AlertType2["Issue"] = "Issue";
246
+ AlertType2["Reminder"] = "Reminder";
247
+ AlertType2["Trip"] = "Trip";
248
+ AlertType2["Route"] = "Route";
249
+ AlertType2["Invoice"] = "Invoice";
250
+ AlertType2["BillDue"] = "BillDue";
251
+ AlertType2["UserAuth"] = "UserAuth";
189
252
  return AlertType2;
190
253
  })(AlertType || {});
191
254
  var AlertSubType = /* @__PURE__ */ ((AlertSubType2) => {
192
- AlertSubType2["ABC"] = "ABC";
255
+ AlertSubType2["FuelRefill"] = "FuelRefill";
256
+ AlertSubType2["FuelRemoval"] = "FuelRemoval";
257
+ AlertSubType2["LowFuel"] = "LowFuel";
258
+ AlertSubType2["FuelSensorFault"] = "FuelSensorFault";
259
+ AlertSubType2["TemperatureHigh"] = "TemperatureHigh";
260
+ AlertSubType2["TemperatureLow"] = "TemperatureLow";
261
+ AlertSubType2["TempProbeFault"] = "TempProbeFault";
262
+ AlertSubType2["VehicleLocked"] = "VehicleLocked";
263
+ AlertSubType2["VehicleUnlocked"] = "VehicleUnlocked";
264
+ AlertSubType2["GensetOn"] = "GensetOn";
265
+ AlertSubType2["GensetOff"] = "GensetOff";
266
+ AlertSubType2["DoorOpen"] = "DoorOpen";
267
+ AlertSubType2["DoorClose"] = "DoorClose";
268
+ AlertSubType2["DoorOpenTooLong"] = "DoorOpenTooLong";
269
+ AlertSubType2["DoorTamper"] = "DoorTamper";
270
+ AlertSubType2["DigitalLockerLocked"] = "DigitalLockerLocked";
271
+ AlertSubType2["DigitalLockerUnlocked"] = "DigitalLockerUnlocked";
272
+ AlertSubType2["DigitalLockerFailedUnlock"] = "DigitalLockerFailedUnlock";
273
+ AlertSubType2["DigitalLockerForcedOpen"] = "DigitalLockerForcedOpen";
274
+ AlertSubType2["OverSpeed"] = "OverSpeed";
275
+ AlertSubType2["IgnitionOn"] = "IgnitionOn";
276
+ AlertSubType2["IgnitionOff"] = "IgnitionOff";
277
+ AlertSubType2["VehicleMoving"] = "VehicleMoving";
278
+ AlertSubType2["VehicleStopped"] = "VehicleStopped";
279
+ AlertSubType2["VehicleStoppedHours"] = "VehicleStoppedHours";
280
+ AlertSubType2["LessKMTravel"] = "LessKMTravel";
281
+ AlertSubType2["TowDetected"] = "TowDetected";
282
+ AlertSubType2["AfterHours"] = "AfterHours";
283
+ AlertSubType2["GeofenceEnter"] = "GeofenceEnter";
284
+ AlertSubType2["GeofenceExit"] = "GeofenceExit";
285
+ AlertSubType2["TrailerConnected"] = "TrailerConnected";
286
+ AlertSubType2["TrailerDisconnected"] = "TrailerDisconnected";
287
+ AlertSubType2["InsuranceExpiry"] = "InsuranceExpiry";
288
+ AlertSubType2["RegistrationExpiry"] = "RegistrationExpiry";
289
+ AlertSubType2["PermitExpiry"] = "PermitExpiry";
290
+ AlertSubType2["PollutionExpiry"] = "PollutionExpiry";
291
+ AlertSubType2["FitnessExpiry"] = "FitnessExpiry";
292
+ AlertSubType2["TaxExpiry"] = "TaxExpiry";
293
+ AlertSubType2["MaintenanceDue"] = "MaintenanceDue";
294
+ AlertSubType2["MaintenanceOverdue"] = "MaintenanceOverdue";
295
+ AlertSubType2["MaintenanceCompleted"] = "MaintenanceCompleted";
296
+ AlertSubType2["ServiceScheduled"] = "ServiceScheduled";
297
+ AlertSubType2["ServiceStarted"] = "ServiceStarted";
298
+ AlertSubType2["ServiceCompleted"] = "ServiceCompleted";
299
+ AlertSubType2["ServiceOverdue"] = "ServiceOverdue";
300
+ AlertSubType2["InspectionScheduled"] = "InspectionScheduled";
301
+ AlertSubType2["InspectionPassed"] = "InspectionPassed";
302
+ AlertSubType2["InspectionFailed"] = "InspectionFailed";
303
+ AlertSubType2["InspectionOverdue"] = "InspectionOverdue";
304
+ AlertSubType2["CollisionDetected"] = "CollisionDetected";
305
+ AlertSubType2["Rollover"] = "Rollover";
306
+ AlertSubType2["IssueCreated"] = "IssueCreated";
307
+ AlertSubType2["IssueUpdated"] = "IssueUpdated";
308
+ AlertSubType2["IssueResolved"] = "IssueResolved";
309
+ AlertSubType2["ReminderDue"] = "ReminderDue";
310
+ AlertSubType2["ReminderOverdue"] = "ReminderOverdue";
311
+ AlertSubType2["ReminderCompleted"] = "ReminderCompleted";
312
+ AlertSubType2["TripPlanned"] = "TripPlanned";
313
+ AlertSubType2["TripStarted"] = "TripStarted";
314
+ AlertSubType2["TripPaused"] = "TripPaused";
315
+ AlertSubType2["TripResumed"] = "TripResumed";
316
+ AlertSubType2["TripCompleted"] = "TripCompleted";
317
+ AlertSubType2["TripCancelled"] = "TripCancelled";
318
+ AlertSubType2["RouteDeviation"] = "RouteDeviation";
319
+ AlertSubType2["WaypointMissed"] = "WaypointMissed";
320
+ AlertSubType2["UnscheduledStop"] = "UnscheduledStop";
321
+ AlertSubType2["InvoiceGenerated"] = "InvoiceGenerated";
322
+ AlertSubType2["InvoiceDue"] = "InvoiceDue";
323
+ AlertSubType2["InvoiceOverdue"] = "InvoiceOverdue";
324
+ AlertSubType2["InvoicePaid"] = "InvoicePaid";
325
+ AlertSubType2["UserLogin"] = "UserLogin";
326
+ AlertSubType2["UserLogout"] = "UserLogout";
327
+ AlertSubType2["PasswordChanged"] = "PasswordChanged";
193
328
  return AlertSubType2;
194
329
  })(AlertSubType || {});
195
330
 
@@ -259,20 +394,26 @@ var NotificationSchema = z3.object({
259
394
  // ✅ Single-Selection -> MasterDriver
260
395
  gps_geofence_id: single_select_optional("GPSGeofenceData"),
261
396
  // ✅ Single-Selection -> GPSGeofenceData
262
- notification_title: stringMandatory("Notification Title", 3, 100),
397
+ // Event Time
398
+ date_time: dateMandatory("Date Time"),
263
399
  notification_message: stringMandatory("Notification Message", 3, 500),
264
400
  notification_html_message: stringOptional(
265
401
  "Notification HTML Message",
266
402
  0,
267
403
  500
268
404
  ),
405
+ // Location Details
406
+ latitude: doubleOptionalLatLng("Latitude"),
407
+ longitude: doubleOptionalLatLng("Longitude"),
408
+ google_location: stringOptional("Google Location", 0, 500),
269
409
  notification_key_1: stringOptional("Notification Key 1", 0, 100),
270
410
  notification_key_2: stringOptional("Notification Key 2", 0, 100),
271
411
  notification_key_3: stringOptional("Notification Key 3", 0, 100),
272
412
  notification_key_4: stringOptional("Notification Key 4", 0, 100),
273
413
  notification_key_5: stringOptional("Notification Key 5", 0, 100),
274
414
  notification_key_6: stringOptional("Notification Key 6", 0, 100),
275
- status: enumMandatory("Status", Status, "Active" /* Active */)
415
+ status: enumMandatory("Status", Status, "Active" /* Active */),
416
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
276
417
  });
277
418
  var NotificationQuerySchema = BaseQuerySchema.extend({
278
419
  notification_ids: multi_select_optional("Notification"),
@@ -299,26 +440,30 @@ var NotificationQuerySchema = BaseQuerySchema.extend({
299
440
  getAllEnums(AlertSubType)
300
441
  )
301
442
  });
302
- var toNotificationPayload = (n) => ({
443
+ var toNotificationPayload = (row) => ({
303
444
  // relations (single-selects)
304
- organisation_id: n.organisation_id,
305
- user_id: n.user_id ?? "",
306
- vehicle_id: n.vehicle_id ?? "",
307
- driver_id: n.driver_id ?? "",
308
- gps_geofence_id: n.gps_geofence_id ?? "",
445
+ organisation_id: row.organisation_id,
446
+ user_id: row.user_id ?? "",
447
+ vehicle_id: row.vehicle_id ?? "",
448
+ driver_id: row.driver_id ?? "",
449
+ gps_geofence_id: row.gps_geofence_id ?? "",
450
+ date_time: row.date_time,
309
451
  // content
310
- notification_title: n.notification_title,
311
- notification_message: n.notification_message,
312
- notification_html_message: n.notification_html_message ?? "",
452
+ notification_message: row.notification_message,
453
+ notification_html_message: row.notification_html_message ?? "",
313
454
  // keys
314
- notification_key_1: n.notification_key_1 ?? "",
315
- notification_key_2: n.notification_key_2 ?? "",
316
- notification_key_3: n.notification_key_3 ?? "",
317
- notification_key_4: n.notification_key_4 ?? "",
318
- notification_key_5: n.notification_key_5 ?? "",
319
- notification_key_6: n.notification_key_6 ?? "",
320
- // metadata
321
- status: n.status
455
+ notification_key_1: row.notification_key_1 ?? "",
456
+ notification_key_2: row.notification_key_2 ?? "",
457
+ notification_key_3: row.notification_key_3 ?? "",
458
+ notification_key_4: row.notification_key_4 ?? "",
459
+ notification_key_5: row.notification_key_5 ?? "",
460
+ notification_key_6: row.notification_key_6 ?? "",
461
+ latitude: row.latitude ?? 0,
462
+ longitude: row.longitude ?? 0,
463
+ google_location: row.google_location || "",
464
+ status: row.status,
465
+ time_zone_id: ""
466
+ // Needs to be provided manually
322
467
  });
323
468
  var newNotificationPayload = () => ({
324
469
  // relations (single-selects)
@@ -327,8 +472,9 @@ var newNotificationPayload = () => ({
327
472
  vehicle_id: "",
328
473
  driver_id: "",
329
474
  gps_geofence_id: "",
475
+ // date
476
+ date_time: (/* @__PURE__ */ new Date()).toISOString(),
330
477
  // content
331
- notification_title: "",
332
478
  notification_message: "",
333
479
  notification_html_message: "",
334
480
  // keys
@@ -338,8 +484,13 @@ var newNotificationPayload = () => ({
338
484
  notification_key_4: "",
339
485
  notification_key_5: "",
340
486
  notification_key_6: "",
487
+ // location
488
+ latitude: 0,
489
+ longitude: 0,
490
+ google_location: "",
341
491
  // metadata
342
- status: "Active" /* Active */
492
+ status: "Active" /* Active */,
493
+ time_zone_id: ""
343
494
  });
344
495
  var findNotifications = async (data) => {
345
496
  return apiPost(ENDPOINTS.find, data);
@@ -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;
@@ -33,41 +33,41 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
33
33
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
34
34
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
+ db_index: string;
37
+ db_instance: string;
38
+ night_driving: NightDriving;
36
39
  search: string;
37
40
  paging: PAGING;
38
41
  page_count: number;
39
42
  page_index: number;
40
- login_from: LoginFrom;
41
43
  date_format_id: string;
42
44
  time_zone_id: string;
45
+ login_from: LoginFrom;
43
46
  organisation_id: string;
44
- db_instance: string;
45
- db_index: string;
46
47
  vehicle_ids: string[];
47
48
  from_date: string;
48
49
  to_date: string;
49
50
  time_slot: TimeSlot;
50
- night_driving: NightDriving;
51
51
  over_speed: OverSpeed;
52
52
  utilization_km: number;
53
53
  vehicle_summary: YesNo;
54
54
  driver_summary: YesNo;
55
55
  }, {
56
- login_from: LoginFrom;
56
+ db_index: string;
57
+ db_instance: string;
57
58
  date_format_id: string;
58
59
  time_zone_id: string;
60
+ login_from: LoginFrom;
59
61
  organisation_id: string;
60
- db_instance: string;
61
- db_index: string;
62
62
  from_date: string;
63
63
  to_date: string;
64
+ night_driving?: NightDriving | undefined;
64
65
  search?: string | undefined;
65
66
  paging?: PAGING | undefined;
66
67
  page_count?: unknown;
67
68
  page_index?: unknown;
68
69
  vehicle_ids?: string[] | undefined;
69
70
  time_slot?: TimeSlot | undefined;
70
- night_driving?: NightDriving | undefined;
71
71
  over_speed?: OverSpeed | undefined;
72
72
  utilization_km?: unknown;
73
73
  vehicle_summary?: YesNo | undefined;
@@ -96,40 +96,40 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
96
96
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
97
97
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
98
98
  }, "strip", z.ZodTypeAny, {
99
+ db_index: string;
100
+ db_instance: string;
101
+ night_driving: NightDriving;
99
102
  search: string;
100
103
  paging: PAGING;
101
104
  page_count: number;
102
105
  page_index: number;
103
- login_from: LoginFrom;
104
106
  date_format_id: string;
105
107
  time_zone_id: string;
108
+ login_from: LoginFrom;
106
109
  organisation_id: string;
107
- db_instance: string;
108
- db_index: string;
109
110
  from_date: string;
110
111
  to_date: string;
111
112
  time_slot: TimeSlot;
112
- night_driving: NightDriving;
113
113
  over_speed: OverSpeed;
114
114
  utilization_km: number;
115
115
  vehicle_summary: YesNo;
116
116
  driver_summary: YesNo;
117
117
  driver_ids: string[];
118
118
  }, {
119
- login_from: LoginFrom;
119
+ db_index: string;
120
+ db_instance: string;
120
121
  date_format_id: string;
121
122
  time_zone_id: string;
123
+ login_from: LoginFrom;
122
124
  organisation_id: string;
123
- db_instance: string;
124
- db_index: string;
125
125
  from_date: string;
126
126
  to_date: string;
127
+ night_driving?: NightDriving | undefined;
127
128
  search?: string | undefined;
128
129
  paging?: PAGING | undefined;
129
130
  page_count?: unknown;
130
131
  page_index?: unknown;
131
132
  time_slot?: TimeSlot | undefined;
132
- night_driving?: NightDriving | undefined;
133
133
  over_speed?: OverSpeed | undefined;
134
134
  utilization_km?: unknown;
135
135
  vehicle_summary?: YesNo | undefined;
@@ -156,16 +156,16 @@ declare const SimpleReportSchema: z.ZodObject<{
156
156
  interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
157
157
  boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
158
158
  }, "strip", z.ZodTypeAny, {
159
+ db_index: string;
160
+ db_instance: string;
159
161
  search: string;
160
162
  paging: PAGING;
161
163
  page_count: number;
162
164
  page_index: number;
163
- login_from: LoginFrom;
164
165
  date_format_id: string;
165
166
  time_zone_id: string;
167
+ login_from: LoginFrom;
166
168
  organisation_id: string;
167
- db_instance: string;
168
- db_index: string;
169
169
  vehicle_ids: string[];
170
170
  from_date: string;
171
171
  to_date: string;
@@ -173,12 +173,12 @@ declare const SimpleReportSchema: z.ZodObject<{
173
173
  interval_seconds: number;
174
174
  boolean_type: BooleanType;
175
175
  }, {
176
- login_from: LoginFrom;
176
+ db_index: string;
177
+ db_instance: string;
177
178
  date_format_id: string;
178
179
  time_zone_id: string;
180
+ login_from: LoginFrom;
179
181
  organisation_id: string;
180
- db_instance: string;
181
- db_index: string;
182
182
  from_date: string;
183
183
  to_date: string;
184
184
  gps_type: GPSType;
@@ -207,26 +207,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
207
207
  utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
208
208
  is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
209
209
  }, "strip", z.ZodTypeAny, {
210
+ db_index: string;
211
+ db_instance: string;
210
212
  search: string;
211
213
  paging: PAGING;
212
214
  page_count: number;
213
215
  page_index: number;
214
- login_from: LoginFrom;
215
216
  date_format_id: string;
216
217
  time_zone_id: string;
218
+ login_from: LoginFrom;
217
219
  organisation_id: string;
218
- db_instance: string;
219
- db_index: string;
220
220
  vehicle_ids: string[];
221
221
  utilization_km: number;
222
222
  is12am: Is12AM;
223
223
  }, {
224
- login_from: LoginFrom;
224
+ db_index: string;
225
+ db_instance: string;
225
226
  date_format_id: string;
226
227
  time_zone_id: string;
228
+ login_from: LoginFrom;
227
229
  organisation_id: string;
228
- db_instance: string;
229
- db_index: string;
230
230
  is12am: Is12AM;
231
231
  search?: string | undefined;
232
232
  paging?: PAGING | undefined;
@@ -253,28 +253,28 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
253
253
  to_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
254
254
  interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
255
255
  }, "strip", z.ZodTypeAny, {
256
+ db_index: string;
257
+ db_instance: string;
258
+ vehicle_id: string;
256
259
  search: string;
257
260
  paging: PAGING;
258
261
  page_count: number;
259
262
  page_index: number;
260
- login_from: LoginFrom;
261
263
  date_format_id: string;
262
264
  time_zone_id: string;
265
+ login_from: LoginFrom;
263
266
  organisation_id: string;
264
- db_instance: string;
265
- db_index: string;
266
267
  interval_seconds: number;
267
- vehicle_id: string;
268
268
  from_date_time: string;
269
269
  to_date_time: string;
270
270
  }, {
271
- login_from: LoginFrom;
271
+ db_index: string;
272
+ db_instance: string;
273
+ vehicle_id: string;
272
274
  date_format_id: string;
273
275
  time_zone_id: string;
276
+ login_from: LoginFrom;
274
277
  organisation_id: string;
275
- db_instance: string;
276
- db_index: string;
277
- vehicle_id: string;
278
278
  from_date_time: string;
279
279
  to_date_time: string;
280
280
  search?: string | undefined;
@@ -298,25 +298,25 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
298
298
  db_index: z.ZodEffects<z.ZodString, string, string>;
299
299
  vehicle_id: z.ZodEffects<z.ZodString, string, string>;
300
300
  }, "strip", z.ZodTypeAny, {
301
+ db_index: string;
302
+ db_instance: string;
303
+ vehicle_id: string;
301
304
  search: string;
302
305
  paging: PAGING;
303
306
  page_count: number;
304
307
  page_index: number;
305
- login_from: LoginFrom;
306
308
  date_format_id: string;
307
309
  time_zone_id: string;
310
+ login_from: LoginFrom;
308
311
  organisation_id: string;
309
- db_instance: string;
312
+ }, {
310
313
  db_index: string;
314
+ db_instance: string;
311
315
  vehicle_id: string;
312
- }, {
313
- login_from: LoginFrom;
314
316
  date_format_id: string;
315
317
  time_zone_id: string;
318
+ login_from: LoginFrom;
316
319
  organisation_id: string;
317
- db_instance: string;
318
- db_index: string;
319
- vehicle_id: string;
320
320
  search?: string | undefined;
321
321
  paging?: PAGING | undefined;
322
322
  page_count?: unknown;
@@ -28,21 +28,21 @@ declare const MasterFuelCompanySchema: z.ZodObject<{
28
28
  logo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
29
29
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
30
30
  }, "strip", z.ZodTypeAny, {
31
- company_name: string;
32
31
  description: string;
33
- logo_url: string;
34
- logo_key: string;
35
32
  status: Status;
36
33
  organisation_id: string;
37
34
  country_id: string;
38
- }, {
35
+ logo_key: string;
36
+ logo_url: string;
39
37
  company_name: string;
38
+ }, {
40
39
  status: Status;
41
40
  organisation_id: string;
42
41
  country_id: string;
42
+ company_name: string;
43
43
  description?: string | undefined;
44
- logo_url?: string | undefined;
45
44
  logo_key?: string | undefined;
45
+ logo_url?: string | undefined;
46
46
  }>;
47
47
  type MasterFuelCompanyDTO = z.infer<typeof MasterFuelCompanySchema>;
48
48
  declare const MasterFuelCompanyQuerySchema: z.ZodObject<{
@@ -21,14 +21,14 @@ declare const MasterVendorDocumentTypeSchema: z.ZodObject<{
21
21
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
22
22
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
23
23
  }, "strip", z.ZodTypeAny, {
24
+ document_type: string;
24
25
  description: string;
25
26
  status: Status;
26
27
  organisation_id: string;
27
- document_type: string;
28
28
  }, {
29
+ document_type: string;
29
30
  status: Status;
30
31
  organisation_id: string;
31
- document_type: string;
32
32
  description?: string | undefined;
33
33
  }>;
34
34
  type MasterVendorDocumentTypeDTO = z.infer<typeof MasterVendorDocumentTypeSchema>;
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.15",
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",