vms-nest-prisma-api-document 23.0.0 → 25.0.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 (158) hide show
  1. package/dist/core/Enums.d.ts +31 -13
  2. package/dist/core/Enums.js +36 -14
  3. package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
  4. package/dist/services/account/analytics/user_login_analytics_service.js +2 -0
  5. package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
  6. package/dist/services/account/analytics/user_page_analytics_service.js +2 -0
  7. package/dist/services/account/bookmark_service.d.ts +1 -1
  8. package/dist/services/account/bookmark_service.js +2 -0
  9. package/dist/services/{gps/features/user_notification_preferences.service.d.ts → account/notification_preferences.service.d.ts} +82 -50
  10. package/dist/services/{gps/features/user_notification_preferences.service.js → account/notification_preferences.service.js} +82 -63
  11. package/dist/services/{gps/features/user_report_preferences.service.d.ts → account/report_preferences.service.d.ts} +64 -53
  12. package/dist/services/{gps/features/user_report_preferences.service.js → account/report_preferences.service.js} +54 -19
  13. package/dist/services/account/ticket_service.d.ts +39 -31
  14. package/dist/services/account/ticket_service.js +29 -23
  15. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +1 -1
  16. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +2 -0
  17. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +42 -42
  18. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +2 -0
  19. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +24 -24
  20. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +2 -0
  21. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +28 -28
  22. package/dist/services/gps/features/geofence/gps_geofence_service.js +2 -0
  23. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +16 -16
  24. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +2 -0
  25. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +11 -11
  26. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +2 -0
  27. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +7 -7
  28. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +2 -0
  29. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +79 -64
  30. package/dist/services/gps/features/gps_live_track_share_link_service.js +64 -84
  31. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +69 -47
  32. package/dist/services/gps/features/gps_track_history_share_link_service.js +70 -44
  33. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  34. package/dist/services/gps/reports/gps_reports_mongo_service.js +2 -0
  35. package/dist/services/main/devices/master_device_service.d.ts +1 -1
  36. package/dist/services/main/devices/master_device_service.js +2 -0
  37. package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
  38. package/dist/services/main/drivers/master_driver_service.js +2 -0
  39. package/dist/services/main/sims/master_sim_service.d.ts +1 -1
  40. package/dist/services/main/sims/master_sim_service.js +2 -0
  41. package/dist/services/main/users/auth_service.d.ts +71 -32
  42. package/dist/services/main/users/auth_service.js +61 -19
  43. package/dist/services/main/users/user_admin_service.js +2 -0
  44. package/dist/services/main/users/user_organisation_service.d.ts +1 -1
  45. package/dist/services/main/users/user_organisation_service.js +75 -63
  46. package/dist/services/main/users/user_service.d.ts +1 -1
  47. package/dist/services/main/users/user_service.js +72 -213
  48. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
  49. package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +2 -0
  50. package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
  51. package/dist/services/main/vehicle/master_vehicle_service.js +2 -0
  52. package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
  53. package/dist/services/master/device/master_device_manufacturer_service.js +2 -0
  54. package/dist/services/master/device/master_device_model_service.d.ts +1 -1
  55. package/dist/services/master/device/master_device_model_service.js +2 -0
  56. package/dist/services/master/device/master_device_type_service.d.ts +1 -1
  57. package/dist/services/master/device/master_device_type_service.js +2 -0
  58. package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
  59. package/dist/services/master/expense/master_expense_name_service.js +2 -0
  60. package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
  61. package/dist/services/master/expense/master_expense_type_service.js +2 -0
  62. package/dist/services/master/expense/master_fuel_company_service.d.ts +6 -6
  63. package/dist/services/master/expense/master_fuel_company_service.js +2 -0
  64. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +3 -3
  65. package/dist/services/master/expense/master_vendor_document_type_service.js +2 -0
  66. package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
  67. package/dist/services/master/expense/master_vendor_type_service.js +2 -0
  68. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
  69. package/dist/services/master/fleet/master_fleet_incident_severity_service.js +2 -0
  70. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
  71. package/dist/services/master/fleet/master_fleet_incident_status_service.js +2 -0
  72. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
  73. package/dist/services/master/fleet/master_fleet_incident_type_service.js +2 -0
  74. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
  75. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +2 -0
  76. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
  77. package/dist/services/master/fleet/master_fleet_service_task_service.js +2 -0
  78. package/dist/services/master/main/master_main_country_service.d.ts +1 -1
  79. package/dist/services/master/main/master_main_country_service.js +2 -0
  80. package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
  81. package/dist/services/master/main/master_main_currency_service.js +2 -0
  82. package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
  83. package/dist/services/master/main/master_main_date_format_service.js +2 -0
  84. package/dist/services/master/main/master_main_eway_bill_provider_service.js +2 -0
  85. package/dist/services/master/main/master_main_fasttag_bank_service.js +2 -0
  86. package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
  87. package/dist/services/master/main/master_main_industry_service.js +2 -0
  88. package/dist/services/master/main/master_main_landmark_service.d.ts +4 -4
  89. package/dist/services/master/main/master_main_landmark_service.js +2 -0
  90. package/dist/services/master/main/master_main_language_service.d.ts +1 -1
  91. package/dist/services/master/main/master_main_language_service.js +2 -0
  92. package/dist/services/master/main/master_main_sim_provider_service.js +2 -0
  93. package/dist/services/master/main/master_main_state_service.d.ts +1 -1
  94. package/dist/services/master/main/master_main_state_service.js +2 -0
  95. package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
  96. package/dist/services/master/main/master_main_timezone_service.js +2 -0
  97. package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
  98. package/dist/services/master/main/master_main_unit_distance_service.js +2 -0
  99. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
  100. package/dist/services/master/main/master_main_unit_mileage_service.js +2 -0
  101. package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
  102. package/dist/services/master/main/master_main_unit_volume_service.js +2 -0
  103. package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
  104. package/dist/services/master/organisation/organisation_branch_service.js +2 -0
  105. package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
  106. package/dist/services/master/organisation/organisation_color_service.js +2 -0
  107. package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
  108. package/dist/services/master/organisation/organisation_group_service.js +2 -0
  109. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
  110. package/dist/services/master/organisation/organisation_sub_company_service.js +2 -0
  111. package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
  112. package/dist/services/master/organisation/organisation_tag_service.js +2 -0
  113. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
  114. package/dist/services/master/spare_part/master_spare_part_category_service.js +2 -0
  115. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
  116. package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +2 -0
  117. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
  118. package/dist/services/master/spare_part/master_spare_part_unit_service.js +2 -0
  119. package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
  120. package/dist/services/master/trip/master_trip_party_type_service.js +2 -0
  121. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
  122. package/dist/services/master/tyre/master_tyre_grade_service.js +2 -0
  123. package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
  124. package/dist/services/master/tyre/master_tyre_make_service.js +2 -0
  125. package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
  126. package/dist/services/master/tyre/master_tyre_model_service.js +2 -0
  127. package/dist/services/master/user/master_user_role_service.d.ts +1 -1
  128. package/dist/services/master/user/master_user_role_service.js +2 -0
  129. package/dist/services/master/user/master_user_status_service.d.ts +1 -1
  130. package/dist/services/master/user/master_user_status_service.js +2 -0
  131. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
  132. package/dist/services/master/vehicle/master_vehicle_associated_to_service.js +2 -0
  133. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
  134. package/dist/services/master/vehicle/master_vehicle_document_type_service.js +2 -0
  135. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +3 -3
  136. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.js +2 -0
  137. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
  138. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +2 -0
  139. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
  140. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.js +2 -0
  141. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
  142. package/dist/services/master/vehicle/master_vehicle_make_service.js +2 -0
  143. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
  144. package/dist/services/master/vehicle/master_vehicle_model_service.js +2 -0
  145. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
  146. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +2 -0
  147. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
  148. package/dist/services/master/vehicle/master_vehicle_status_type_service.js +2 -0
  149. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
  150. package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +2 -0
  151. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
  152. package/dist/services/master/vehicle/master_vehicle_type_service.js +2 -0
  153. package/dist/services/website/contact_us_detail_service.js +2 -0
  154. package/dist/services/website/faq_service.js +2 -0
  155. package/dist/services/website/static_pages_service.js +2 -0
  156. package/dist/{user_organisation_service-djKCoZTQ.d.ts → user_organisation_service-B5QmuUSK.d.ts} +137 -469
  157. package/dist/zod_utils/zod_base_schema.js +2 -0
  158. package/package.json +1 -1
@@ -30,7 +30,9 @@ declare enum AdminRole {
30
30
  declare enum LoginFrom {
31
31
  Web = "Web",
32
32
  Android = "Android",
33
- IPhone = "IPhone"
33
+ IPhone = "IPhone",
34
+ AndroidPWA = "AndroidPWA",
35
+ iOSPWA = "iOSPWA"
34
36
  }
35
37
  declare enum Status {
36
38
  Active = "Active",
@@ -134,12 +136,6 @@ declare enum DeviceType {
134
136
  IPhone = "IPhone",
135
137
  Web = "Web"
136
138
  }
137
- declare enum NotificationType {
138
- Whatsapp = "Whatsapp",
139
- Message = "Message",
140
- Email = "Email",
141
- Push = "Push"
142
- }
143
139
  declare enum ReportList {
144
140
  AllVehiclesFullAnalysisReport = "AllVehiclesFullAnalysisReport",
145
141
  AllDriversPerformanceReport = "AllDriversPerformanceReport",
@@ -155,6 +151,33 @@ declare enum ReportList {
155
151
  FuelRefillReport = "FuelRefillReport",
156
152
  FuelRemovalReport = "FuelRemovalReport"
157
153
  }
154
+ declare enum NotificationList {
155
+ VehicleMoving = "VehicleMoving",
156
+ VehicleStopped = "VehicleStopped",
157
+ IgnitionOn = "IgnitionOn",
158
+ IgnitionOff = "IgnitionOff",
159
+ GeofenceEnter = "GeofenceEnter",
160
+ GeofenceExit = "GeofenceExit",
161
+ FuelSuddenIncrease = "FuelSuddenIncrease",
162
+ FuelSuddenDecrease = "FuelSuddenDecrease",
163
+ OverSpeed = "OverSpeed"
164
+ }
165
+ declare enum NotificationChannel {
166
+ Push = "Push",
167
+ WhatsApp = "WhatsApp",
168
+ SMS = "SMS",
169
+ Email = "Email"
170
+ }
171
+ declare enum ReportChannel {
172
+ WhatsApp = "WhatsApp",
173
+ SMS = "SMS",
174
+ Email = "Email"
175
+ }
176
+ declare enum ReportType {
177
+ Daily = "Daily",
178
+ Weekly = "Weekly",
179
+ Monthly = "Monthly"
180
+ }
158
181
  declare enum NotificationPreference {
159
182
  VehicleMoving = "VehicleMoving",
160
183
  VehicleStopped = "VehicleStopped",
@@ -171,11 +194,6 @@ declare enum NotificationPreference {
171
194
  OverSpeed110 = "OverSpeed110",
172
195
  OverSpeed120 = "OverSpeed120"
173
196
  }
174
- declare enum ReportType {
175
- Daily = "Daily",
176
- Weekly = "Weekly",
177
- Monthly = "Monthly"
178
- }
179
197
  declare enum GeofenceType {
180
198
  Polygon = "Polygon",
181
199
  Circle = "Circle"
@@ -626,4 +644,4 @@ declare enum PaymentMode {
626
644
  Other = "Other"
627
645
  }
628
646
 
629
- 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, NotificationPreference, NotificationType, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReportList, ReportType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo };
647
+ 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, NotificationChannel, NotificationList, NotificationPreference, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReportChannel, ReportList, ReportType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo };
@@ -38,6 +38,8 @@ var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
38
38
  LoginFrom2["Web"] = "Web";
39
39
  LoginFrom2["Android"] = "Android";
40
40
  LoginFrom2["IPhone"] = "IPhone";
41
+ LoginFrom2["AndroidPWA"] = "AndroidPWA";
42
+ LoginFrom2["iOSPWA"] = "iOSPWA";
41
43
  return LoginFrom2;
42
44
  })(LoginFrom || {});
43
45
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -161,13 +163,6 @@ var DeviceType = /* @__PURE__ */ ((DeviceType2) => {
161
163
  DeviceType2["Web"] = "Web";
162
164
  return DeviceType2;
163
165
  })(DeviceType || {});
164
- var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
165
- NotificationType2["Whatsapp"] = "Whatsapp";
166
- NotificationType2["Message"] = "Message";
167
- NotificationType2["Email"] = "Email";
168
- NotificationType2["Push"] = "Push";
169
- return NotificationType2;
170
- })(NotificationType || {});
171
166
  var ReportList = /* @__PURE__ */ ((ReportList2) => {
172
167
  ReportList2["AllVehiclesFullAnalysisReport"] = "AllVehiclesFullAnalysisReport";
173
168
  ReportList2["AllDriversPerformanceReport"] = "AllDriversPerformanceReport";
@@ -184,6 +179,37 @@ var ReportList = /* @__PURE__ */ ((ReportList2) => {
184
179
  ReportList2["FuelRemovalReport"] = "FuelRemovalReport";
185
180
  return ReportList2;
186
181
  })(ReportList || {});
182
+ var NotificationList = /* @__PURE__ */ ((NotificationList2) => {
183
+ NotificationList2["VehicleMoving"] = "VehicleMoving";
184
+ NotificationList2["VehicleStopped"] = "VehicleStopped";
185
+ NotificationList2["IgnitionOn"] = "IgnitionOn";
186
+ NotificationList2["IgnitionOff"] = "IgnitionOff";
187
+ NotificationList2["GeofenceEnter"] = "GeofenceEnter";
188
+ NotificationList2["GeofenceExit"] = "GeofenceExit";
189
+ NotificationList2["FuelSuddenIncrease"] = "FuelSuddenIncrease";
190
+ NotificationList2["FuelSuddenDecrease"] = "FuelSuddenDecrease";
191
+ NotificationList2["OverSpeed"] = "OverSpeed";
192
+ return NotificationList2;
193
+ })(NotificationList || {});
194
+ var NotificationChannel = /* @__PURE__ */ ((NotificationChannel2) => {
195
+ NotificationChannel2["Push"] = "Push";
196
+ NotificationChannel2["WhatsApp"] = "WhatsApp";
197
+ NotificationChannel2["SMS"] = "SMS";
198
+ NotificationChannel2["Email"] = "Email";
199
+ return NotificationChannel2;
200
+ })(NotificationChannel || {});
201
+ var ReportChannel = /* @__PURE__ */ ((ReportChannel2) => {
202
+ ReportChannel2["WhatsApp"] = "WhatsApp";
203
+ ReportChannel2["SMS"] = "SMS";
204
+ ReportChannel2["Email"] = "Email";
205
+ return ReportChannel2;
206
+ })(ReportChannel || {});
207
+ var ReportType = /* @__PURE__ */ ((ReportType2) => {
208
+ ReportType2["Daily"] = "Daily";
209
+ ReportType2["Weekly"] = "Weekly";
210
+ ReportType2["Monthly"] = "Monthly";
211
+ return ReportType2;
212
+ })(ReportType || {});
187
213
  var NotificationPreference = /* @__PURE__ */ ((NotificationPreference2) => {
188
214
  NotificationPreference2["VehicleMoving"] = "VehicleMoving";
189
215
  NotificationPreference2["VehicleStopped"] = "VehicleStopped";
@@ -201,12 +227,6 @@ var NotificationPreference = /* @__PURE__ */ ((NotificationPreference2) => {
201
227
  NotificationPreference2["OverSpeed120"] = "OverSpeed120";
202
228
  return NotificationPreference2;
203
229
  })(NotificationPreference || {});
204
- var ReportType = /* @__PURE__ */ ((ReportType2) => {
205
- ReportType2["Daily"] = "Daily";
206
- ReportType2["Weekly"] = "Weekly";
207
- ReportType2["Monthly"] = "Monthly";
208
- return ReportType2;
209
- })(ReportType || {});
210
230
  var GeofenceType = /* @__PURE__ */ ((GeofenceType2) => {
211
231
  GeofenceType2["Polygon"] = "Polygon";
212
232
  GeofenceType2["Circle"] = "Circle";
@@ -738,8 +758,9 @@ export {
738
758
  MenuType,
739
759
  Module,
740
760
  NightDriving,
761
+ NotificationChannel,
762
+ NotificationList,
741
763
  NotificationPreference,
742
- NotificationType,
743
764
  OdometerSource,
744
765
  OnOff,
745
766
  OrderBy,
@@ -757,6 +778,7 @@ export {
757
778
  ReminderSource,
758
779
  ReminderStatus,
759
780
  ReminderTriggerType,
781
+ ReportChannel,
760
782
  ReportList,
761
783
  ReportType,
762
784
  RequestType,
@@ -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
- login_from: LoginFrom;
26
25
  country_id: string;
26
+ login_from: LoginFrom;
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
- login_from: LoginFrom;
33
32
  country_id: string;
33
+ login_from: LoginFrom;
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;
51
52
  search: string;
52
53
  paging: PAGING;
53
54
  page_count: number;
54
55
  page_index: number;
55
- login_from: LoginFrom;
56
56
  date_format_id: string;
57
57
  time_zone_id: string;
58
58
  user_ids: string[];
@@ -153,6 +153,8 @@ var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
153
153
  LoginFrom2["Web"] = "Web";
154
154
  LoginFrom2["Android"] = "Android";
155
155
  LoginFrom2["IPhone"] = "IPhone";
156
+ LoginFrom2["AndroidPWA"] = "AndroidPWA";
157
+ LoginFrom2["iOSPWA"] = "iOSPWA";
156
158
  return LoginFrom2;
157
159
  })(LoginFrom || {});
158
160
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -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;
46
47
  search: string;
47
48
  paging: PAGING;
48
49
  page_count: number;
49
50
  page_index: number;
50
- login_from: LoginFrom;
51
51
  date_format_id: string;
52
52
  time_zone_id: string;
53
53
  user_ids: string[];
@@ -153,6 +153,8 @@ var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
153
153
  LoginFrom2["Web"] = "Web";
154
154
  LoginFrom2["Android"] = "Android";
155
155
  LoginFrom2["IPhone"] = "IPhone";
156
+ LoginFrom2["AndroidPWA"] = "AndroidPWA";
157
+ LoginFrom2["iOSPWA"] = "iOSPWA";
156
158
  return LoginFrom2;
157
159
  })(LoginFrom || {});
158
160
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -1,7 +1,7 @@
1
1
  import { MenuType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../core/Enums.js';
2
2
  import { FBR, SBR } from '../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
- import { U as UserOrganisation, a as User } from '../../user_organisation_service-djKCoZTQ.js';
4
+ import { U as UserOrganisation, a as User } from '../../user_organisation_service-B5QmuUSK.js';
5
5
  import '../../zod_utils/zod_base_schema.js';
6
6
  import '../master/main/master_main_sim_provider_service.js';
7
7
 
@@ -161,6 +161,8 @@ var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
161
161
  LoginFrom2["Web"] = "Web";
162
162
  LoginFrom2["Android"] = "Android";
163
163
  LoginFrom2["IPhone"] = "IPhone";
164
+ LoginFrom2["AndroidPWA"] = "AndroidPWA";
165
+ LoginFrom2["iOSPWA"] = "iOSPWA";
164
166
  return LoginFrom2;
165
167
  })(LoginFrom || {});
166
168
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -1,97 +1,126 @@
1
- import { OnOff, NotificationType, NotificationPreference, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../core/BaseResponse.js';
1
+ import { OnOff, NotificationChannel, YesNo, NotificationList, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../core/Enums.js';
2
+ import { FBR, SBR } from '../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
- import { U as UserOrganisation, a as User, M as MasterVehicle } from '../../../user_organisation_service-djKCoZTQ.js';
5
- import '../../../zod_utils/zod_base_schema.js';
6
- import '../../master/main/master_main_sim_provider_service.js';
4
+ import { U as UserOrganisation, M as MasterVehicle, a as User } from '../../user_organisation_service-B5QmuUSK.js';
5
+ import { GPSGeofence } from '../gps/features/geofence/gps_geofence_service.js';
6
+ import '../../zod_utils/zod_base_schema.js';
7
+ import '../master/main/master_main_sim_provider_service.js';
7
8
 
8
- interface UserNotificationPreferences extends Record<string, unknown> {
9
+ interface OrganisationNotificationPreference extends Record<string, unknown> {
9
10
  notification_preference_id: string;
10
11
  notification_name: string;
11
12
  notification_status: OnOff;
12
- notification_types: NotificationType[];
13
- notification_list: NotificationPreference[];
13
+ notification_channels: NotificationChannel[];
14
14
  mobile_numbers?: string;
15
15
  email_ids?: string;
16
16
  cc_email_ids?: string;
17
+ all_users: YesNo;
18
+ notification_list: NotificationList[];
19
+ over_speed_limit?: number;
20
+ all_geofences: YesNo;
17
21
  all_vehicles: YesNo;
18
22
  status: Status;
19
23
  added_date_time: string;
20
24
  modified_date_time: string;
21
25
  organisation_id: string;
22
26
  UserOrganisation?: UserOrganisation;
23
- UserNotificationPreferenceUserLink: UserNotificationPreferenceUserLink[];
24
- UserNotificationPreferenceVehicleLink: UserNotificationPreferenceVehicleLink[];
27
+ OrganisationNotificationPreferenceVehicleLink: OrganisationNotificationPreferenceVehicleLink[];
28
+ OrganisationNotificationPreferenceGeofenceLink: OrganisationNotificationPreferenceGeofenceLink[];
29
+ OrganisationNotificationPreferenceUserLink: OrganisationNotificationPreferenceUserLink[];
25
30
  _count?: {
26
- UserNotificationPreferenceUserLink: number;
27
- UserNotificationPreferenceVehicleLink: number;
31
+ OrganisationNotificationPreferenceVehicleLink: number;
32
+ OrganisationNotificationPreferenceGeofenceLink: number;
33
+ OrganisationNotificationPreferenceUserLink: number;
28
34
  };
29
35
  }
30
- interface UserNotificationPreferenceVehicleLink extends Record<string, unknown> {
31
- notification_vehicle_id: string;
36
+ interface OrganisationNotificationPreferenceVehicleLink extends Record<string, unknown> {
37
+ notification_preference_geofence_id: string;
32
38
  status: Status;
33
39
  added_date_time: string;
34
40
  modified_date_time: string;
41
+ notification_preference_id: string;
42
+ OrganisationNotificationPreference?: OrganisationNotificationPreference;
35
43
  vehicle_id: string;
36
44
  MasterVehicle?: MasterVehicle;
37
45
  vehicle_number?: string;
38
46
  vehicle_type?: string;
47
+ }
48
+ interface OrganisationNotificationPreferenceGeofenceLink extends Record<string, unknown> {
49
+ notification_preference_geofence_id: string;
50
+ status: Status;
51
+ added_date_time: string;
52
+ modified_date_time: string;
39
53
  notification_preference_id: string;
40
- UserNotificationPreferences?: UserNotificationPreferences;
54
+ OrganisationNotificationPreference?: OrganisationNotificationPreference;
55
+ gps_geofence_id: string;
56
+ GPSGeofence?: GPSGeofence;
57
+ geofence_details?: string;
41
58
  }
42
- interface UserNotificationPreferenceUserLink extends Record<string, unknown> {
43
- notification_user_id: string;
59
+ interface OrganisationNotificationPreferenceUserLink extends Record<string, unknown> {
60
+ notification_preference_user_id: string;
44
61
  status: Status;
45
62
  added_date_time: string;
46
63
  modified_date_time: string;
64
+ notification_preference_id: string;
65
+ OrganisationNotificationPreference?: OrganisationNotificationPreference;
47
66
  user_id: string;
48
67
  User?: User;
49
68
  user_details?: string;
50
- notification_preference_id: string;
51
- UserNotificationPreferences?: UserNotificationPreferences;
52
69
  }
53
- declare const UserNotificationPreferencesSchema: z.ZodObject<{
70
+ declare const OrganisationNotificationPreferenceSchema: z.ZodObject<{
54
71
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
55
72
  notification_name: z.ZodEffects<z.ZodString, string, string>;
56
73
  notification_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
57
- notification_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationPreference>, "many">>;
58
- notification_types: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationType>, "many">>;
74
+ notification_channels: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationChannel>, "many">>;
59
75
  mobile_numbers: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
60
76
  email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
61
77
  cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
78
+ all_users: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
62
79
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
80
+ notification_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationList>, "many">>;
81
+ over_speed_limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
82
+ all_geofences: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
83
+ gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
63
84
  all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
64
85
  vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
65
86
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
66
87
  }, "strip", z.ZodTypeAny, {
88
+ status: Status;
89
+ organisation_id: string;
90
+ user_ids: string[];
91
+ vehicle_ids: string[];
92
+ all_vehicles: YesNo;
93
+ gps_geofence_ids: string[];
67
94
  notification_name: string;
68
95
  notification_status: OnOff;
69
- notification_types: NotificationType[];
70
- notification_list: NotificationPreference[];
96
+ notification_channels: NotificationChannel[];
71
97
  mobile_numbers: string;
72
98
  email_ids: string;
73
99
  cc_email_ids: string;
74
- all_vehicles: YesNo;
100
+ all_users: YesNo;
101
+ notification_list: NotificationList[];
102
+ over_speed_limit: number;
103
+ all_geofences: YesNo;
104
+ }, {
75
105
  status: Status;
76
106
  organisation_id: string;
77
- user_ids: string[];
78
- vehicle_ids: string[];
79
- }, {
107
+ all_vehicles: YesNo;
80
108
  notification_name: string;
81
109
  notification_status: OnOff;
82
- all_vehicles: YesNo;
83
- status: Status;
84
- organisation_id: string;
85
- notification_types?: NotificationType[] | undefined;
86
- notification_list?: NotificationPreference[] | undefined;
110
+ all_users: YesNo;
111
+ all_geofences: YesNo;
112
+ user_ids?: string[] | undefined;
113
+ vehicle_ids?: string[] | undefined;
114
+ gps_geofence_ids?: string[] | undefined;
115
+ notification_channels?: NotificationChannel[] | undefined;
87
116
  mobile_numbers?: string | undefined;
88
117
  email_ids?: string | undefined;
89
118
  cc_email_ids?: string | undefined;
90
- user_ids?: string[] | undefined;
91
- vehicle_ids?: string[] | undefined;
119
+ notification_list?: NotificationList[] | undefined;
120
+ over_speed_limit?: unknown;
92
121
  }>;
93
- type UserNotificationPreferencesDTO = z.infer<typeof UserNotificationPreferencesSchema>;
94
- declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
122
+ type OrganisationNotificationPreferenceDTO = z.infer<typeof OrganisationNotificationPreferenceSchema>;
123
+ declare const OrganisationNotificationPreferenceQuerySchema: z.ZodObject<{
95
124
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
96
125
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
97
126
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -125,10 +154,9 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
125
154
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
126
155
  notification_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
127
156
  notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
128
- all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
157
+ notification_channels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationChannel>, "many">>>;
158
+ notification_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationList>, "many">>>;
129
159
  }, "strip", z.ZodTypeAny, {
130
- notification_status: OnOff[];
131
- all_vehicles: YesNo[];
132
160
  status: Status[];
133
161
  search: string;
134
162
  paging: PAGING;
@@ -151,12 +179,13 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
151
179
  date_format_id: string;
152
180
  time_zone_id: string;
153
181
  organisation_ids: string[];
182
+ notification_status: OnOff[];
183
+ notification_channels: NotificationChannel[];
184
+ notification_list: NotificationList[];
154
185
  notification_preference_ids: string[];
155
186
  }, {
156
187
  date_format_id: string;
157
188
  time_zone_id: string;
158
- notification_status?: OnOff[] | undefined;
159
- all_vehicles?: YesNo[] | undefined;
160
189
  status?: Status[] | undefined;
161
190
  search?: string | undefined;
162
191
  paging?: PAGING | undefined;
@@ -177,14 +206,17 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
177
206
  }[] | undefined;
178
207
  include_master_data?: YesNo | undefined;
179
208
  organisation_ids?: string[] | undefined;
209
+ notification_status?: OnOff[] | undefined;
210
+ notification_channels?: NotificationChannel[] | undefined;
211
+ notification_list?: NotificationList[] | undefined;
180
212
  notification_preference_ids?: string[] | undefined;
181
213
  }>;
182
- type UserNotificationPreferencesQueryDTO = z.infer<typeof UserNotificationPreferencesQuerySchema>;
183
- declare const toUserNotificationPreferencesPayload: (data: UserNotificationPreferences) => UserNotificationPreferencesDTO;
184
- declare const newUserNotificationPreferencesPayload: () => UserNotificationPreferencesDTO;
185
- declare const findUserNotificationPreferences: (data: UserNotificationPreferencesQueryDTO) => Promise<FBR<UserNotificationPreferences[]>>;
186
- declare const createUserNotificationPreferences: (data: UserNotificationPreferencesDTO) => Promise<SBR>;
187
- declare const updateUserNotificationPreferences: (id: string, data: UserNotificationPreferencesDTO) => Promise<SBR>;
188
- declare const deleteUserNotificationPreferences: (id: string) => Promise<SBR>;
214
+ type OrganisationNotificationPreferenceQueryDTO = z.infer<typeof OrganisationNotificationPreferenceQuerySchema>;
215
+ declare const toOrganisationNotificationPreferencePayload: (data: OrganisationNotificationPreference) => OrganisationNotificationPreferenceDTO;
216
+ declare const newOrganisationNotificationPreferencePayload: () => OrganisationNotificationPreferenceDTO;
217
+ declare const findOrganisationNotificationPreference: (data: OrganisationNotificationPreferenceQueryDTO) => Promise<FBR<OrganisationNotificationPreference[]>>;
218
+ declare const createOrganisationNotificationPreference: (data: OrganisationNotificationPreferenceDTO) => Promise<SBR>;
219
+ declare const updateOrganisationNotificationPreference: (id: string, data: OrganisationNotificationPreferenceDTO) => Promise<SBR>;
220
+ declare const deleteOrganisationNotificationPreference: (id: string) => Promise<SBR>;
189
221
 
190
- export { type UserNotificationPreferenceUserLink, type UserNotificationPreferenceVehicleLink, type UserNotificationPreferences, type UserNotificationPreferencesDTO, type UserNotificationPreferencesQueryDTO, UserNotificationPreferencesQuerySchema, UserNotificationPreferencesSchema, createUserNotificationPreferences, deleteUserNotificationPreferences, findUserNotificationPreferences, newUserNotificationPreferencesPayload, toUserNotificationPreferencesPayload, updateUserNotificationPreferences };
222
+ export { type OrganisationNotificationPreference, type OrganisationNotificationPreferenceDTO, type OrganisationNotificationPreferenceGeofenceLink, type OrganisationNotificationPreferenceQueryDTO, OrganisationNotificationPreferenceQuerySchema, OrganisationNotificationPreferenceSchema, type OrganisationNotificationPreferenceUserLink, type OrganisationNotificationPreferenceVehicleLink, createOrganisationNotificationPreference, deleteOrganisationNotificationPreference, findOrganisationNotificationPreference, newOrganisationNotificationPreferencePayload, toOrganisationNotificationPreferencePayload, updateOrganisationNotificationPreference };