vms-nest-prisma-api-document 520.0.0 → 590.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 (123) hide show
  1. package/dist/{bookmark_service-D9H8yEp3.d.ts → bookmark_service-_r5G5jkL.d.ts} +392 -256
  2. package/dist/services/account/bookmark_service.d.ts +1 -1
  3. package/dist/services/account/notification_preferences.service.d.ts +1 -1
  4. package/dist/services/account/report_preferences.service.d.ts +1 -1
  5. package/dist/services/account/ticket_service.d.ts +1 -1
  6. package/dist/services/fleet/bus_mangement/bus_stop.d.ts +1 -1
  7. package/dist/services/fleet/bus_mangement/calender.d.ts +1 -1
  8. package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
  9. package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
  10. package/dist/services/fleet/bus_mangement/student.d.ts +1 -1
  11. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +1 -1
  12. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +34 -23
  13. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +1 -1
  14. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +28 -22
  15. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +1 -1
  16. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +29 -23
  17. package/dist/services/fleet/incident_management/incident_management_service.d.ts +1 -1
  18. package/dist/services/fleet/incident_management/incident_management_service.js +50 -37
  19. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +1 -1
  20. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.js +10 -5
  21. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +1 -1
  22. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.js +25 -18
  23. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +1 -1
  24. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.js +12 -6
  25. package/dist/services/fleet/issue_management/issue_management_service.d.ts +1 -1
  26. package/dist/services/fleet/issue_management/issue_management_service.js +40 -28
  27. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +1 -1
  28. package/dist/services/fleet/service_management/fleet_service_management_service.js +41 -39
  29. package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +1 -1
  30. package/dist/services/fleet/service_management/fleet_service_schedule_service.js +4 -4
  31. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
  32. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.js +15 -9
  33. package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
  34. package/dist/services/fleet/vendor_management/fleet_vendor_service.js +79 -45
  35. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
  36. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.js +13 -7
  37. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
  38. package/dist/services/gps/features/geofence/gps_geofence_service.js +11 -4
  39. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
  40. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +4 -4
  41. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
  42. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +4 -4
  43. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
  44. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +5 -5
  45. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -1
  46. package/dist/services/gps/features/gps_live_track_share_link_service.js +18 -7
  47. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
  48. package/dist/services/gps/features/gps_track_history_share_link_service.js +17 -7
  49. package/dist/services/main/devices/master_device_service.d.ts +1 -1
  50. package/dist/services/main/devices/master_device_service.js +29 -22
  51. package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
  52. package/dist/services/main/drivers/master_driver_service.js +37 -24
  53. package/dist/services/main/sims/master_sim_service.d.ts +1 -1
  54. package/dist/services/main/sims/master_sim_service.js +12 -6
  55. package/dist/services/main/users/auth_service.d.ts +1 -1
  56. package/dist/services/main/users/user_admin_service.d.ts +1 -1
  57. package/dist/services/main/users/user_admin_service.js +16 -20
  58. package/dist/services/main/users/user_organisation_service.d.ts +1 -1
  59. package/dist/services/main/users/user_organisation_service.js +42 -34
  60. package/dist/services/main/users/user_service.d.ts +1 -1
  61. package/dist/services/main/users/user_service.js +40 -30
  62. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
  63. package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
  64. package/dist/services/main/vehicle/master_vehicle_service.js +132 -113
  65. package/dist/services/master/bus/master_class_service.d.ts +1 -1
  66. package/dist/services/master/bus/master_program_service.d.ts +1 -1
  67. package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
  68. package/dist/services/master/bus/master_section_service.d.ts +1 -1
  69. package/dist/services/master/bus/master_semester_service.d.ts +1 -1
  70. package/dist/services/master/bus/master_stream_service.d.ts +1 -1
  71. package/dist/services/master/bus/master_year_service.d.ts +1 -1
  72. package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
  73. package/dist/services/master/device/master_device_model_service.d.ts +1 -1
  74. package/dist/services/master/device/master_device_type_service.d.ts +1 -1
  75. package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
  76. package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
  77. package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
  78. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
  79. package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -1
  80. package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
  81. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
  82. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
  83. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
  84. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
  85. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
  86. package/dist/services/master/main/master_main_country_service.d.ts +1 -1
  87. package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
  88. package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
  89. package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
  90. package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
  91. package/dist/services/master/main/master_main_language_service.d.ts +1 -1
  92. package/dist/services/master/main/master_main_sim_provider_service.d.ts +1 -1
  93. package/dist/services/master/main/master_main_state_service.d.ts +1 -1
  94. package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
  95. package/dist/services/master/main/master_main_unit_distance_service.d.ts +4 -120
  96. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
  97. package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
  98. package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
  99. package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
  100. package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
  101. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
  102. package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
  103. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
  104. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
  105. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
  106. package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
  107. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
  108. package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
  109. package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
  110. package/dist/services/master/user/master_user_role_service.d.ts +1 -1
  111. package/dist/services/master/user/master_user_status_service.d.ts +1 -1
  112. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
  113. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
  114. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +1 -1
  115. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
  116. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
  117. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
  118. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
  119. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
  120. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
  121. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
  122. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
  123. package/package.json +1 -1
@@ -375,7 +375,9 @@ var GPSGeofencePolilineDataSchema = z3.object({
375
375
  longitude: doubleMandatoryLatLng("longitude")
376
376
  });
377
377
  var GPSGeofenceSchema = z3.object({
378
+ // Relations - Parent
378
379
  organisation_id: single_select_mandatory("UserOrganisation"),
380
+ // Main Field Details
379
381
  geofence_name: stringMandatory("Geofence Name", 3, 100),
380
382
  geofence_purpose_type: enumMandatory(
381
383
  "Geofence Purpuse Type",
@@ -397,6 +399,7 @@ var GPSGeofenceSchema = z3.object({
397
399
  GPSGeofencePolilineDataSchema,
398
400
  []
399
401
  ),
402
+ // Address Details
400
403
  address_line1: stringOptional("Address Line 1", 0, 150),
401
404
  address_line2: stringOptional("Address Line 2", 0, 150),
402
405
  locality_landmark: stringOptional("Locality / Landmark", 0, 150),
@@ -408,11 +411,17 @@ var GPSGeofenceSchema = z3.object({
408
411
  country: stringOptional("Country", 0, 100),
409
412
  country_code: stringOptional("Country Code", 0, 5),
410
413
  google_location: stringOptional("Google Location", 0, 100),
414
+ // Metadata
411
415
  status: enumMandatory("Status", Status, "Active" /* Active */)
412
416
  });
413
417
  var GPSGeofenceQuerySchema = BaseQuerySchema.extend({
418
+ // Self Table
419
+ gps_geofence_ids: multi_select_optional("GPSGeofence"),
420
+ // Multi-selection -> GPSGeofence
421
+ // Relations - Parent
414
422
  organisation_ids: multi_select_optional("UserOrganisation"),
415
- // Multi-selection -> UserOrganisation
423
+ // Multi-selection -> UserOrganisation
424
+ // Enums
416
425
  geofence_purpose_type: enumArrayOptional(
417
426
  "Geofence Purpose Type",
418
427
  GeofencePurposeType,
@@ -422,9 +431,7 @@ var GPSGeofenceQuerySchema = BaseQuerySchema.extend({
422
431
  "Geofence Type",
423
432
  GeofenceType,
424
433
  getAllEnums(GeofenceType)
425
- ),
426
- gps_geofence_ids: multi_select_optional("GPSGeofence")
427
- // ✅ Multi-selection -> GPSGeofence
434
+ )
428
435
  });
429
436
  var toGPSGeofencePayload = (row) => ({
430
437
  organisation_id: row.organisation_id || "",
@@ -1,6 +1,6 @@
1
1
  import '../../../../core/Enums.js';
2
2
  import '../../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { bx as GPSGeofenceTransaction, bz as GPSGeofenceTransactionDTO, bB as GPSGeofenceTransactionQueryDTO, bA as GPSGeofenceTransactionQuerySchema, by as GPSGeofenceTransactionSchema, bF as createGPSGeofenceTransaction, bH as deleteGPSGeofenceTransaction, bE as findGPSGeofenceTransaction, bD as newGPSGeofenceTransactionPayload, bC as toGPSGeofenceTransactionPayload, bG as updateGPSGeofenceTransaction } from '../../../../bookmark_service-D9H8yEp3.js';
4
+ export { bx as GPSGeofenceTransaction, bz as GPSGeofenceTransactionDTO, bB as GPSGeofenceTransactionQueryDTO, bA as GPSGeofenceTransactionQuerySchema, by as GPSGeofenceTransactionSchema, bF as createGPSGeofenceTransaction, bH as deleteGPSGeofenceTransaction, bE as findGPSGeofenceTransaction, bD as newGPSGeofenceTransactionPayload, bC as toGPSGeofenceTransactionPayload, bG as updateGPSGeofenceTransaction } from '../../../../bookmark_service-_r5G5jkL.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
6
  import '../../reports/gps_models/FuelConsumptionMonthly.js';
@@ -294,13 +294,13 @@ var GPSGeofenceTransactionSchema = z3.object({
294
294
  });
295
295
  var GPSGeofenceTransactionQuerySchema = BaseQuerySchema.extend({
296
296
  organisation_ids: multi_select_optional("UserOrganisation"),
297
- // Multi-selection -> UserOrganisation
297
+ // Multi-selection -> UserOrganisation
298
298
  vehicle_ids: multi_select_optional("MasterVehicle"),
299
- // Multi-selection -> MasterVehicle
299
+ // Multi-selection -> MasterVehicle
300
300
  driver_ids: multi_select_optional("MasterDriver"),
301
- // Multi-selection -> MasterDriver
301
+ // Multi-selection -> MasterDriver
302
302
  gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
303
- // Multi-selection -> Gps Geofence
303
+ // Multi-selection -> Gps Geofence
304
304
  geofence_status_type: enumArrayOptional(
305
305
  "Geofence Status Type",
306
306
  GeofenceStatusType,
@@ -1,6 +1,6 @@
1
1
  import '../../../../core/Enums.js';
2
2
  import '../../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { bm as GPSGeofenceTransactionSummary, bo as GPSGeofenceTransactionSummaryDTO, bq as GPSGeofenceTransactionSummaryQueryDTO, bp as GPSGeofenceTransactionSummaryQuerySchema, bn as GPSGeofenceTransactionSummarySchema, bu as createGPSGeofenceTransactionSummary, bw as deleteGPSGeofenceTransactionSummary, bt as findGPSGeofenceTransactionSummary, bs as newGPSGeofenceTransactionSummaryPayload, br as toGPSGeofenceTransactionSummaryPayload, bv as updateGPSGeofenceTransactionSummary } from '../../../../bookmark_service-D9H8yEp3.js';
4
+ export { bm as GPSGeofenceTransactionSummary, bo as GPSGeofenceTransactionSummaryDTO, bq as GPSGeofenceTransactionSummaryQueryDTO, bp as GPSGeofenceTransactionSummaryQuerySchema, bn as GPSGeofenceTransactionSummarySchema, bu as createGPSGeofenceTransactionSummary, bw as deleteGPSGeofenceTransactionSummary, bt as findGPSGeofenceTransactionSummary, bs as newGPSGeofenceTransactionSummaryPayload, br as toGPSGeofenceTransactionSummaryPayload, bv as updateGPSGeofenceTransactionSummary } from '../../../../bookmark_service-_r5G5jkL.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
6
  import '../../reports/gps_models/FuelConsumptionMonthly.js';
@@ -308,13 +308,13 @@ var GPSGeofenceTransactionSummarySchema = z3.object({
308
308
  });
309
309
  var GPSGeofenceTransactionSummaryQuerySchema = BaseQuerySchema.extend({
310
310
  organisation_ids: multi_select_optional("UserOrganisation"),
311
- // Multi-selection -> UserOrganisation
311
+ // Multi-selection -> UserOrganisation
312
312
  vehicle_ids: multi_select_optional("MasterVehicle"),
313
- // Multi-selection -> MasterVehicle
313
+ // Multi-selection -> MasterVehicle
314
314
  driver_ids: multi_select_optional("MasterDriver"),
315
- // Multi-selection -> MasterDriver
315
+ // Multi-selection -> MasterDriver
316
316
  gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
317
- // Multi-selection -> Gps Geofence
317
+ // Multi-selection -> Gps Geofence
318
318
  from_date: dateMandatory("From Date"),
319
319
  to_date: dateMandatory("To Date")
320
320
  });
@@ -1,6 +1,6 @@
1
1
  import '../../../../core/Enums.js';
2
2
  import '../../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { bI as TripGeofenceToGeofence, bK as TripGeofenceToGeofenceDTO, bM as TripGeofenceToGeofenceQueryDTO, bL as TripGeofenceToGeofenceQuerySchema, bJ as TripGeofenceToGeofenceSchema, bQ as createTripGeofenceToGeofence, bS as deleteTripGeofenceToGeofence, bP as findTripGeofenceToGeofence, bO as newTripGeofenceToGeofencePayload, bN as toTripGeofenceToGeofencePayload, bR as updateTripGeofenceToGeofence } from '../../../../bookmark_service-D9H8yEp3.js';
4
+ export { bI as TripGeofenceToGeofence, bK as TripGeofenceToGeofenceDTO, bM as TripGeofenceToGeofenceQueryDTO, bL as TripGeofenceToGeofenceQuerySchema, bJ as TripGeofenceToGeofenceSchema, bQ as createTripGeofenceToGeofence, bS as deleteTripGeofenceToGeofence, bP as findTripGeofenceToGeofence, bO as newTripGeofenceToGeofencePayload, bN as toTripGeofenceToGeofencePayload, bR as updateTripGeofenceToGeofence } from '../../../../bookmark_service-_r5G5jkL.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
6
  import '../../reports/gps_models/FuelConsumptionMonthly.js';
@@ -321,15 +321,15 @@ var TripGeofenceToGeofenceSchema = z3.object({
321
321
  });
322
322
  var TripGeofenceToGeofenceQuerySchema = BaseQuerySchema.extend({
323
323
  organisation_ids: multi_select_optional("UserOrganisation"),
324
- // Multi-selection -> UserOrganisation
324
+ // Multi-selection -> UserOrganisation
325
325
  vehicle_ids: multi_select_optional("MasterVehicle"),
326
- // Multi-selection -> MasterVehicle
326
+ // Multi-selection -> MasterVehicle
327
327
  driver_ids: multi_select_optional("MasterDriver"),
328
- // Multi-selection -> MasterDriver
328
+ // Multi-selection -> MasterDriver
329
329
  from_geofence_ids: multi_select_optional("From Geofence IDs"),
330
- // Multi-selection -> From Geofence
330
+ // Multi-selection -> From Geofence
331
331
  to_geofence_ids: multi_select_optional("To Geofence IDs"),
332
- // Multi-selection -> To Geofence
332
+ // Multi-selection -> To Geofence
333
333
  from_date: dateMandatory("From Date"),
334
334
  to_date: dateMandatory("To Date")
335
335
  });
@@ -1,6 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { sq as GPSLiveTrackShareLink, sv as GPSLiveTrackShareLinkDTO, sr as GPSLiveTrackShareLinkNotification, st as GPSLiveTrackShareLinkNotificationDTO, ss as GPSLiveTrackShareLinkNotificationSchema, sB as GPSLiveTrackShareLinkQueryDTO, sA as GPSLiveTrackShareLinkQuerySchema, su as GPSLiveTrackShareLinkSchema, sx as GPSLiveTrackShareLinkUpdateExpiryTimeDTO, sw as GPSLiveTrackShareLinkUpdateExpiryTimeSchema, sz as GPSLiveTrackShareLinkUpdateLinkStatusDTO, sy as GPSLiveTrackShareLinkUpdateLinkStatusSchema, sF as createGPSLiveTrackShareLink, sJ as createGPSLiveTrackShareLinkNotification, sI as deleteGPSLiveTrackShareLink, sG as extendGPSLiveTrackLinkTime, sE as findGPSLiveTrackShareLink, sD as newGPSLiveTrackShareLinkPayload, sC as toGPSLiveTrackShareLinkPayload, sH as updateGPSLiveTrackLinkStatus } from '../../../bookmark_service-D9H8yEp3.js';
4
+ export { sp as GPSLiveTrackShareLink, su as GPSLiveTrackShareLinkDTO, sq as GPSLiveTrackShareLinkNotification, ss as GPSLiveTrackShareLinkNotificationDTO, sr as GPSLiveTrackShareLinkNotificationSchema, sA as GPSLiveTrackShareLinkQueryDTO, sz as GPSLiveTrackShareLinkQuerySchema, st as GPSLiveTrackShareLinkSchema, sw as GPSLiveTrackShareLinkUpdateExpiryTimeDTO, sv as GPSLiveTrackShareLinkUpdateExpiryTimeSchema, sy as GPSLiveTrackShareLinkUpdateLinkStatusDTO, sx as GPSLiveTrackShareLinkUpdateLinkStatusSchema, sE as createGPSLiveTrackShareLink, sI as createGPSLiveTrackShareLinkNotification, sH as deleteGPSLiveTrackShareLink, sF as extendGPSLiveTrackLinkTime, sD as findGPSLiveTrackShareLink, sC as newGPSLiveTrackShareLinkPayload, sB as toGPSLiveTrackShareLinkPayload, sG as updateGPSLiveTrackLinkStatus } from '../../../bookmark_service-_r5G5jkL.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../reports/gps_models/FuelConsumptionMonthly.js';
@@ -294,10 +294,12 @@ var ENDPOINTS = {
294
294
  delete: (id) => `${URL}/${id}`
295
295
  };
296
296
  var GPSLiveTrackShareLinkNotificationSchema = z3.object({
297
+ // Relations - Parent
297
298
  organisation_id: single_select_optional("UserOrganisation"),
298
- // Single-Selection -> UserOrganisation
299
+ // Single-Selection -> UserOrganisation
299
300
  gps_live_track_share_link_id: single_select_optional("GPSLiveTrackShareLink"),
300
- // Single-Selection -> GPSLiveTrackShareLink
301
+ // Single-Selection -> GPSLiveTrackShareLink
302
+ // Main Field Details
301
303
  share_channels: enumArrayMandatory(
302
304
  "Share Channels",
303
305
  ShareChannel,
@@ -306,33 +308,42 @@ var GPSLiveTrackShareLinkNotificationSchema = z3.object({
306
308
  mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
307
309
  email_ids: stringOptional("Email IDs", 0, 300),
308
310
  cc_email_ids: stringOptional("CC email IDs", 0, 300),
311
+ // Metadata
309
312
  status: enumMandatory("Status", Status, "Active" /* Active */)
310
313
  });
311
314
  var GPSLiveTrackShareLinkSchema = z3.object({
315
+ // Relations - Parent
312
316
  organisation_id: single_select_mandatory("UserOrganisation"),
313
317
  vehicle_id: single_select_mandatory("Vehicle ID"),
318
+ // Main Field Details
314
319
  expire_milliseconds: numberOptional("Expire Milliseconds"),
315
320
  link_status: enumMandatory("Link Status", LinkStatus, "Active" /* Active */),
321
+ // Metadata
316
322
  status: enumMandatory("Status", Status, "Active" /* Active */)
317
323
  });
318
324
  var GPSLiveTrackShareLinkUpdateExpiryTimeSchema = z3.object({
325
+ // Main Field Details
319
326
  expire_milliseconds: numberMandatory("Expire Milliseconds")
320
327
  });
321
328
  var GPSLiveTrackShareLinkUpdateLinkStatusSchema = z3.object({
329
+ // Main Field Details
322
330
  link_status: enumMandatory("Link Status", LinkStatus, "Active" /* Active */)
323
331
  });
324
332
  var GPSLiveTrackShareLinkQuerySchema = BaseQuerySchema.extend({
333
+ // Self Table
334
+ gps_live_track_share_link_ids: multi_select_optional("GPSLiveTrackShareLink"),
335
+ // Multi-selection -> GPSLiveTrackShareLink
336
+ // Relations - Parent
325
337
  organisation_ids: multi_select_optional("UserOrganisation"),
326
- // Multi-selection -> UserOrganisation
338
+ // Multi-selection -> UserOrganisation
327
339
  vehicle_ids: multi_select_optional("MasterVehicle"),
328
- // Multi-selection -> MasterVehicle
340
+ // Multi-selection -> MasterVehicle
341
+ // Enums
329
342
  link_status: enumArrayOptional(
330
343
  "Link Status",
331
344
  LinkStatus,
332
345
  getAllEnums(LinkStatus)
333
- ),
334
- gps_live_track_share_link_ids: multi_select_optional("GPSLiveTrackShareLink")
335
- // ✅ Multi-selection -> GPSLiveTrackShareLink
346
+ )
336
347
  });
337
348
  var toGPSLiveTrackShareLinkPayload = (data) => ({
338
349
  organisation_id: data.organisation_id || "",
@@ -1,6 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { sK as GPSTrackHistoryShareLink, sP as GPSTrackHistoryShareLinkDTO, sL as GPSTrackHistoryShareLinkNotification, sN as GPSTrackHistoryShareLinkNotificationDTO, sM as GPSTrackHistoryShareLinkNotificationSchema, sT as GPSTrackHistoryShareLinkQueryDTO, sS as GPSTrackHistoryShareLinkQuerySchema, sO as GPSTrackHistoryShareLinkSchema, sR as GPSTrackHistoryShareLinkUpdateLinkStatusDTO, sQ as GPSTrackHistoryShareLinkUpdateLinkStatusSchema, sX as createGPSTrackHistoryShareLink, s_ as createGPSTrackHistoryShareLinkNotification, sZ as deleteGPSTrackHistoryShareLink, sW as findGPSTrackHistoryShareLink, sV as newGPSTrackHistoryShareLinkPayload, sU as toGPSTrackHistoryShareLinkPayload, sY as updateTrackHistoryLinkStatus } from '../../../bookmark_service-D9H8yEp3.js';
4
+ export { sJ as GPSTrackHistoryShareLink, sO as GPSTrackHistoryShareLinkDTO, sK as GPSTrackHistoryShareLinkNotification, sM as GPSTrackHistoryShareLinkNotificationDTO, sL as GPSTrackHistoryShareLinkNotificationSchema, sS as GPSTrackHistoryShareLinkQueryDTO, sR as GPSTrackHistoryShareLinkQuerySchema, sN as GPSTrackHistoryShareLinkSchema, sQ as GPSTrackHistoryShareLinkUpdateLinkStatusDTO, sP as GPSTrackHistoryShareLinkUpdateLinkStatusSchema, sW as createGPSTrackHistoryShareLink, sZ as createGPSTrackHistoryShareLinkNotification, sY as deleteGPSTrackHistoryShareLink, sV as findGPSTrackHistoryShareLink, sU as newGPSTrackHistoryShareLinkPayload, sT as toGPSTrackHistoryShareLinkPayload, sX as updateTrackHistoryLinkStatus } from '../../../bookmark_service-_r5G5jkL.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../reports/gps_models/FuelConsumptionMonthly.js';
@@ -279,11 +279,13 @@ var ENDPOINTS = {
279
279
  delete: (id) => `${URL}/${id}`
280
280
  };
281
281
  var GPSTrackHistoryShareLinkNotificationSchema = z3.object({
282
+ // Relations - Parent
282
283
  organisation_id: single_select_optional("UserOrganisation"),
283
- // Single-Selection -> UserOrganisation
284
+ // Single-Selection -> UserOrganisation
284
285
  gps_track_history_share_link_id: single_select_optional(
285
286
  "GPSTrackHistoryShareLink"
286
287
  ),
288
+ // Main Field Details
287
289
  share_channels: enumArrayMandatory(
288
290
  "Share Channels",
289
291
  ShareChannel,
@@ -292,11 +294,14 @@ var GPSTrackHistoryShareLinkNotificationSchema = z3.object({
292
294
  mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
293
295
  email_ids: stringOptional("Email IDs", 0, 300),
294
296
  cc_email_ids: stringOptional("CC email IDs", 0, 300),
297
+ // Metadata
295
298
  status: enumMandatory("Status", Status, "Active" /* Active */)
296
299
  });
297
300
  var GPSTrackHistoryShareLinkSchema = z3.object({
301
+ // Relations - Parent
298
302
  organisation_id: single_select_mandatory("UserOrganisation"),
299
303
  vehicle_id: single_select_mandatory("MasterVehicle"),
304
+ // Main Field Details
300
305
  from_date_time: stringMandatory("From Date Time"),
301
306
  to_date_time: stringMandatory("To Date Time"),
302
307
  link_status: enumMandatory(
@@ -304,10 +309,12 @@ var GPSTrackHistoryShareLinkSchema = z3.object({
304
309
  TrackHistoryLinkStatus,
305
310
  "Active" /* Active */
306
311
  ),
312
+ // Metadata
307
313
  status: enumMandatory("Status", Status, "Active" /* Active */),
308
314
  time_zone_id: single_select_mandatory("MasterMainTimeZone")
309
315
  });
310
316
  var GPSTrackHistoryShareLinkUpdateLinkStatusSchema = z3.object({
317
+ // Main Field Details
311
318
  link_status: enumMandatory(
312
319
  "Track History Link Status",
313
320
  TrackHistoryLinkStatus,
@@ -315,19 +322,22 @@ var GPSTrackHistoryShareLinkUpdateLinkStatusSchema = z3.object({
315
322
  )
316
323
  });
317
324
  var GPSTrackHistoryShareLinkQuerySchema = BaseQuerySchema.extend({
325
+ // Self Table
326
+ gps_track_history_share_link_ids: multi_select_optional(
327
+ "GPSTrackHistoryShareLink"
328
+ ),
329
+ // Multi-selection -> GPSTrackHistoryShareLink
330
+ // Relations - Parent
318
331
  organisation_ids: multi_select_optional("UserOrganisation"),
319
- // Multi-selection -> UserOrganisation
332
+ // Multi-selection -> UserOrganisation
320
333
  vehicle_ids: multi_select_optional("MasterVehicle"),
321
- // Multi-selection -> MasterVehicle
334
+ // Multi-selection -> MasterVehicle
335
+ // Enums
322
336
  link_status: enumArrayOptional(
323
337
  "Track History Link Status",
324
338
  TrackHistoryLinkStatus,
325
339
  getAllEnums(TrackHistoryLinkStatus)
326
- ),
327
- gps_track_history_share_link_ids: multi_select_optional(
328
- "GPSTrackHistoryShareLink"
329
340
  )
330
- // ✅ Multi-selection -> GPSTrackHistoryShareLink
331
341
  });
332
342
  var toGPSTrackHistoryShareLinkPayload = (data) => ({
333
343
  organisation_id: data.organisation_id || "",
@@ -2,5 +2,5 @@ import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
4
  import '../../../zod_utils/zod_base_schema.js';
5
- export { vO as AssignRemoveDeviceHistory, vV as DeviceSimLinkDTO, vU as DeviceSimLinkSchema, vN as MasterDevice, vR as MasterDeviceDTO, vP as MasterDeviceFile, vT as MasterDeviceQueryDTO, vS as MasterDeviceQuerySchema, vQ as MasterDeviceSchema, vZ as createMasterDevice, v$ as deleteMasterDevice, w0 as device_sim_link, w1 as device_sim_unlink, vY as findMasterDevices, w3 as get_device_sim_link_history_by_device, w2 as get_device_sim_link_history_by_sim, vX as newMasterDevicePayload, vW as toMasterDevicePayload, v_ as updateMasterDevice } from '../../../bookmark_service-D9H8yEp3.js';
5
+ export { vN as AssignRemoveDeviceHistory, vU as DeviceSimLinkDTO, vT as DeviceSimLinkSchema, vM as MasterDevice, vQ as MasterDeviceDTO, vO as MasterDeviceFile, vS as MasterDeviceQueryDTO, vR as MasterDeviceQuerySchema, vP as MasterDeviceSchema, vY as createMasterDevice, v_ as deleteMasterDevice, v$ as device_sim_link, w0 as device_sim_unlink, vX as findMasterDevices, w2 as get_device_sim_link_history_by_device, w1 as get_device_sim_link_history_by_sim, vW as newMasterDevicePayload, vV as toMasterDevicePayload, vZ as updateMasterDevice } from '../../../bookmark_service-_r5G5jkL.js';
6
6
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -274,33 +274,39 @@ var ENDPOINTS = {
274
274
  DEVICE_SIM_LINK_HISTORY_BY_DEVICE: (id) => `${URL}/device_sim_link_history_by_device/${id}`
275
275
  };
276
276
  var MasterDeviceSchema = z3.object({
277
+ // Relations - Parent
277
278
  device_manufacturer_id: single_select_mandatory("Device Manufacturer"),
278
- // Single-selection -> MasterDeviceManufacturer
279
- device_model_id: single_select_mandatory("Device Model"),
280
- // Single-selection -> MasterDeviceModel
279
+ // Single-Selection -> MasterDeviceManufacturer
280
+ device_model_id: single_select_mandatory("MasterDeviceModel"),
281
+ // Single-Selection -> MasterDeviceModel
282
+ // Main Field Details
281
283
  device_gps_source: enumMandatory("Status", GPSSource, "Traccar" /* Traccar */),
282
284
  device_identifier: stringMandatory("Device Identifier", 2, 100),
283
285
  device_note_1: stringOptional("Device Note 1", 0, 100),
284
286
  device_note_2: stringOptional("Device Identifier", 0, 100),
287
+ // Metadata
285
288
  status: enumMandatory("Status", Status, "Active" /* Active */)
286
289
  });
287
290
  var MasterDeviceQuerySchema = BaseQuerySchema.extend({
288
- organisation_ids: multi_select_optional("User Organisation"),
289
- // ✅ Multi-selection -> UserOrganisation
290
- country_ids: multi_select_optional("Master Country"),
291
- // Multi-selection -> MasterMainCountry
292
- time_zone_ids: multi_select_optional("Master Time Zone"),
293
- // Multi-selection -> MasterMainTimeZone
291
+ // Self Table
292
+ device_ids: multi_select_optional("MasterDevice"),
293
+ // Multi-Selection -> MasterDevice
294
+ // Relations - Parent
295
+ organisation_ids: multi_select_optional("UserOrganisation"),
296
+ // Multi-Selection -> UserOrganisation
297
+ country_ids: multi_select_optional("MasterMainCountry"),
298
+ // Multi-Selection -> MasterMainCountry
299
+ time_zone_ids: multi_select_optional("MasterMainTimeZone"),
300
+ // Multi-Selection -> MasterMainTimeZone
294
301
  vehicle_ids: multi_select_optional("MasterVehicle"),
295
- // Multi-selection -> MasterVehicle
296
- device_manufacturer_ids: multi_select_optional("Device Manufacturer"),
297
- // Multi-selection -> MasterDeviceManufacturer
298
- device_model_ids: multi_select_optional("Device Model"),
299
- // Multi-selection -> MasterDeviceModel
300
- device_type_ids: multi_select_optional("Device Type"),
301
- // Multi-selection -> MasterDeviceType
302
- device_ids: multi_select_optional("Device"),
303
- // ✅ Multi-selection -> MasterDevice
302
+ // Multi-Selection -> MasterVehicle
303
+ device_manufacturer_ids: multi_select_optional("MasterDeviceManufacturer"),
304
+ // Multi-Selection -> MasterDeviceManufacturer
305
+ device_model_ids: multi_select_optional("MasterDeviceModel"),
306
+ // Multi-Selection -> MasterDeviceModel
307
+ device_type_ids: multi_select_optional("MasterDeviceType"),
308
+ // Multi-Selection -> MasterDeviceType
309
+ // Enums
304
310
  is_device_used: enumArrayOptional(
305
311
  "Is Device Used",
306
312
  DeviceStatus,
@@ -314,10 +320,11 @@ var MasterDeviceQuerySchema = BaseQuerySchema.extend({
314
320
  )
315
321
  });
316
322
  var DeviceSimLinkSchema = z3.object({
317
- device_id: single_select_mandatory("Device ID"),
318
- // Single selection -> MasterDevice
319
- sim_id: single_select_mandatory("Sim ID")
320
- // Single selection -> MasterSim
323
+ // Relations - Parent
324
+ device_id: single_select_mandatory("MasterDevice"),
325
+ // Single-Selection -> MasterDevice
326
+ sim_id: single_select_mandatory("MasterSim")
327
+ // Single-Selection -> MasterSim
321
328
  });
322
329
  var toMasterDevicePayload = (row) => ({
323
330
  device_manufacturer_id: row.device_manufacturer_id || "",
@@ -2,5 +2,5 @@ import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
4
  import '../../../zod_utils/zod_base_schema.js';
5
- export { lz as AssignRemoveDriverHistory, lA as DriverLoginPush, M as MasterDriver, lE as MasterDriverDTO, ly as MasterDriverFile, lC as MasterDriverFileDTO, lB as MasterDriverFileSchema, lI as MasterDriverLogoDTO, lH as MasterDriverLogoSchema, lK as MasterDriverProfileDTO, lJ as MasterDriverProfileSchema, lG as MasterDriverQueryDTO, lF as MasterDriverQuerySchema, lD as MasterDriverSchema, lV as createMasterDriver, lS as create_master_driver_file, lX as deleteMasterDriver, lZ as deleteMasterDriverLogo, lR as delete_master_driver_logo, lU as findMasterDriver, l$ as getMasterDriverCache, m0 as getMasterDriverCacheSimple, lP as get_master_driver_file_presigned_url, lO as get_master_driver_logo_presigned_url, lN as newDriverPayload, lT as remove_master_driver_file, lL as toDriverPayload, lM as toDriverProfilePayload, lW as updateMasterDriver, lY as updateMasterDriverLogo, l_ as updateMasterDriverProfile, lQ as update_master_driver_logo } from '../../../bookmark_service-D9H8yEp3.js';
5
+ export { ly as AssignRemoveDriverHistory, lz as DriverLoginPush, M as MasterDriver, lD as MasterDriverDTO, lx as MasterDriverFile, lB as MasterDriverFileDTO, lA as MasterDriverFileSchema, lH as MasterDriverLogoDTO, lG as MasterDriverLogoSchema, lJ as MasterDriverProfileDTO, lI as MasterDriverProfileSchema, lF as MasterDriverQueryDTO, lE as MasterDriverQuerySchema, lC as MasterDriverSchema, lU as createMasterDriver, lR as create_master_driver_file, lW as deleteMasterDriver, lY as deleteMasterDriverLogo, lQ as delete_master_driver_logo, lT as findMasterDriver, l_ as getMasterDriverCache, l$ as getMasterDriverCacheSimple, lO as get_master_driver_file_presigned_url, lN as get_master_driver_logo_presigned_url, lM as newDriverPayload, lS as remove_master_driver_file, lK as toDriverPayload, lL as toDriverProfilePayload, lV as updateMasterDriver, lX as updateMasterDriverLogo, lZ as updateMasterDriverProfile, lP as update_master_driver_logo } from '../../../bookmark_service-_r5G5jkL.js';
6
6
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -287,22 +287,29 @@ var ENDPOINTS = {
287
287
  cache_simple: (organisation_id) => `${URL}/cache_simple/${organisation_id}`
288
288
  };
289
289
  var MasterDriverFileSchema = BaseFileSchema.extend({
290
+ // Relations - Parent
290
291
  organisation_id: single_select_optional("UserOrganisation"),
291
- // Single-Selection -> UserOrganisation
292
+ // Single-Selection -> UserOrganisation
292
293
  driver_id: single_select_optional("MasterDriver")
293
- // Single-Selection -> MasterDriver
294
+ // Single-Selection -> MasterDriver
294
295
  });
295
296
  var MasterDriverSchema = z3.object({
297
+ // Relations - Parent
296
298
  organisation_id: single_select_mandatory("UserOrganisation"),
297
- // Single-Selection -> UserOrganisation
299
+ // Single-Selection -> UserOrganisation
298
300
  organisation_sub_company_id: single_select_optional("OrganisationSubCompany"),
299
- // Single-Selection -> OrganisationSubCompany
301
+ // Single-Selection -> OrganisationSubCompany
300
302
  organisation_branch_id: single_select_optional("OrganisationBranch"),
301
- // Single-Selection -> OrganisationBranch
303
+ // Single-Selection -> OrganisationBranch
302
304
  organisation_color_id: single_select_optional("OrganisationColor"),
303
- // Single-Selection -> OrganisationColor
305
+ // Single-Selection -> OrganisationColor
304
306
  organisation_tag_id: single_select_optional("OrganisationTag"),
305
- // Single-Selection -> OrganisationTag
307
+ // Single-Selection -> OrganisationTag
308
+ // Profile Image/Logo
309
+ driver_image_url: stringOptional("Driver Image URL", 0, 300),
310
+ driver_image_key: stringOptional("Driver Image Key", 0, 300),
311
+ driver_image_name: stringOptional("Driver Image Name", 0, 300),
312
+ // Main Field Details
306
313
  driver_code: stringOptional("Driver Code", 0, 50),
307
314
  driver_first_name: stringMandatory("Driver First Name", 3, 100),
308
315
  driver_last_name: stringOptional("Driver Last Name", 0, 100),
@@ -314,10 +321,9 @@ var MasterDriverSchema = z3.object({
314
321
  password: stringOptional("Password", 0, 20),
315
322
  can_login: enumMandatory("Can Login", YesNo, "No" /* No */),
316
323
  driver_type: enumMandatory("Driver Type", DriverType, "Driver" /* Driver */),
317
- driver_image_url: stringOptional("Driver Image URL", 0, 300),
318
- driver_image_key: stringOptional("Driver Image Key", 0, 300),
319
- driver_image_name: stringOptional("Driver Image Name", 0, 300),
324
+ // Metadata
320
325
  status: enumMandatory("Status", Status, "Active" /* Active */),
326
+ // Additional Files
321
327
  MasterDriverFileSchema: nestedArrayOfObjectsOptional(
322
328
  "MasterDriverFileSchema",
323
329
  MasterDriverFileSchema,
@@ -325,20 +331,23 @@ var MasterDriverSchema = z3.object({
325
331
  )
326
332
  });
327
333
  var MasterDriverQuerySchema = BaseQuerySchema.extend({
334
+ // Self Table
335
+ driver_ids: multi_select_optional("MasterDriver"),
336
+ // Multi-Selection -> MasterDriver
337
+ // Relations - Parent
328
338
  organisation_ids: multi_select_optional("UserOrganisation"),
329
- // Multi-Selection -> UserOrganisation
339
+ // Multi-Selection -> UserOrganisation
330
340
  organisation_sub_company_ids: multi_select_optional("OrganisationSubCompany"),
331
- // Multi-Selection -> OrganisationSubCompany
341
+ // Multi-Selection -> OrganisationSubCompany
332
342
  organisation_branch_ids: multi_select_optional("OrganisationBranch"),
333
- // Multi-Selection -> OrganisationBranch
343
+ // Multi-Selection -> OrganisationBranch
334
344
  organisation_color_ids: multi_select_optional("OrganisationColor"),
335
- // Multi-Selection -> OrganisationColor
345
+ // Multi-Selection -> OrganisationColor
336
346
  organisation_tag_ids: multi_select_optional("OrganisationTag"),
337
- // Multi-Selection -> OrganisationTag
347
+ // Multi-Selection -> OrganisationTag
338
348
  vehicle_ids: multi_select_optional("MasterVehicle"),
339
- // Multi-Selection -> MasterVehicle
340
- driver_ids: multi_select_optional("MasterDriver"),
341
- // ✅ Multi-Selection -> MasterDriver
349
+ // Multi-Selection -> MasterVehicle
350
+ // Enums
342
351
  can_login: enumArrayOptional("Can Login", YesNo, getAllEnums(YesNo)),
343
352
  driver_type: enumArrayOptional(
344
353
  "Driver Type",
@@ -352,11 +361,17 @@ var MasterDriverQuerySchema = BaseQuerySchema.extend({
352
361
  )
353
362
  });
354
363
  var MasterDriverLogoSchema = z3.object({
364
+ // Profile Image/Logo
355
365
  driver_image_url: stringMandatory("Driver Image URL", 0, 300),
356
366
  driver_image_key: stringMandatory("Driver Image Key", 0, 300),
357
367
  driver_image_name: stringMandatory("Driver Image Name", 0, 300)
358
368
  });
359
369
  var MasterDriverProfileSchema = z3.object({
370
+ // Profile Image/Logo
371
+ driver_image_url: stringOptional("Driver Image URL", 0, 300),
372
+ driver_image_key: stringOptional("Driver Image Key", 0, 300),
373
+ driver_image_name: stringOptional("Driver Image Name", 0, 300),
374
+ // Main Field Details
360
375
  driver_code: stringOptional("Driver Code", 0, 50),
361
376
  driver_first_name: stringMandatory("Driver First Name", 3, 100),
362
377
  driver_last_name: stringOptional("Driver Last Name", 0, 100),
@@ -365,9 +380,7 @@ var MasterDriverProfileSchema = z3.object({
365
380
  driver_license: stringOptional("Driver License", 0, 20),
366
381
  driver_pan: stringOptional("Driver PAN", 0, 10),
367
382
  driver_aadhaar: stringOptional("Driver Aadhaar", 0, 12),
368
- driver_image_url: stringOptional("Driver Image URL", 0, 300),
369
- driver_image_key: stringOptional("Driver Image Key", 0, 300),
370
- driver_image_name: stringOptional("Driver Image Name", 0, 300),
383
+ // Additional Files
371
384
  MasterDriverFileSchema: nestedArrayOfObjectsOptional(
372
385
  "MasterDriverFileSchema",
373
386
  MasterDriverFileSchema,
@@ -389,12 +402,12 @@ var toDriverPayload = (row) => ({
389
402
  driver_image_url: row.driver_image_url || "",
390
403
  driver_image_key: row.driver_image_key || "",
391
404
  driver_image_name: row.driver_image_name || "",
392
- status: row?.status || "Active" /* Active */,
393
405
  organisation_id: row.organisation_id || "",
394
406
  organisation_sub_company_id: row.organisation_sub_company_id || "",
395
407
  organisation_branch_id: row.organisation_branch_id || "",
396
408
  organisation_color_id: row.organisation_color_id || "",
397
409
  organisation_tag_id: row.organisation_tag_id || "",
410
+ status: row?.status || "Active" /* Active */,
398
411
  MasterDriverFileSchema: []
399
412
  // MasterDriverFileSchema: row.MasterDriverFile?.map((file) => ({
400
413
  // driver_file_id: file.driver_file_id || '',
@@ -455,13 +468,13 @@ var newDriverPayload = () => ({
455
468
  driver_image_url: "",
456
469
  driver_image_key: "",
457
470
  driver_image_name: "",
458
- status: "Active" /* Active */,
459
471
  organisation_id: "",
460
472
  organisation_sub_company_id: "",
461
473
  organisation_branch_id: "",
462
474
  organisation_color_id: "",
463
475
  organisation_tag_id: "",
464
- MasterDriverFileSchema: []
476
+ MasterDriverFileSchema: [],
477
+ status: "Active" /* Active */
465
478
  });
466
479
  var get_master_driver_logo_presigned_url = async (fileName) => {
467
480
  return apiGet(ENDPOINTS.master_driver_logo_presigned_url(fileName));
@@ -1,6 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { vC as AssignRemoveSimHistory, vB as MasterSim, vE as MasterSimDTO, vG as MasterSimQueryDTO, vF as MasterSimQuerySchema, vD as MasterSimSchema, vK as createMasterSim, vM as deleteMasterSim, vJ as findMasterSims, vI as newMasterSimPayload, vH as toMasterSimPayload, vL as updateMasterSim } from '../../../bookmark_service-D9H8yEp3.js';
4
+ export { vB as AssignRemoveSimHistory, vA as MasterSim, vD as MasterSimDTO, vF as MasterSimQueryDTO, vE as MasterSimQuerySchema, vC as MasterSimSchema, vJ as createMasterSim, vL as deleteMasterSim, vI as findMasterSims, vH as newMasterSimPayload, vG as toMasterSimPayload, vK as updateMasterSim } from '../../../bookmark_service-_r5G5jkL.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -264,8 +264,10 @@ var ENDPOINTS = {
264
264
  delete: (id) => `${URL}/${id}`
265
265
  };
266
266
  var MasterSimSchema = z3.object({
267
- sim_provider_id: single_select_mandatory("Sim Provider ID"),
268
- // ✅ Single-selection -> MasterMainSimProvider
267
+ // Relations - Parent
268
+ sim_provider_id: single_select_mandatory("MasterMainSimProvider"),
269
+ // Single-Selection -> MasterMainSimProvider
270
+ // Main Field Details
269
271
  sim_number: stringMandatory("Sim Number", 3, 50),
270
272
  sim_imei: stringMandatory("Sim IMEI", 3, 50),
271
273
  sim_serial_number: stringMandatory("Sim Serial Number", 3, 50),
@@ -275,13 +277,17 @@ var MasterSimSchema = z3.object({
275
277
  BillingStatus,
276
278
  "New" /* New */
277
279
  ),
280
+ // Metadata
278
281
  status: enumMandatory("Status", Status, "Active" /* Active */)
279
282
  });
280
283
  var MasterSimQuerySchema = BaseQuerySchema.extend({
281
- sim_provider_ids: multi_select_optional("Sim Provider IDs"),
282
- // ✅ Multi-selection -> MasterMainSimProvider
283
- sim_ids: multi_select_optional("Sim IDs"),
284
- // Multi-selection -> MasterSim
284
+ // Self Table
285
+ sim_ids: multi_select_optional("MasterSim"),
286
+ // Multi-selection -> MasterSim
287
+ // Relations - Parent
288
+ sim_provider_ids: multi_select_optional("MasterMainSimProvider"),
289
+ // Multi-selection -> MasterMainSimProvider
290
+ // Enums
285
291
  sim_status: enumArrayOptional(
286
292
  "Sim Status",
287
293
  SimStatus,
@@ -1,6 +1,6 @@
1
1
  import { BR, SBR } from '../../../core/BaseResponse.js';
2
2
  import { z } from 'zod';
3
- import { U as User, a as UserAdmin, M as MasterDriver } from '../../../bookmark_service-D9H8yEp3.js';
3
+ import { U as User, a as UserAdmin, M as MasterDriver } from '../../../bookmark_service-_r5G5jkL.js';
4
4
  import { LoginFrom } from '../../../core/Enums.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -1,6 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { a as UserAdmin, cl as UserAdminDTO, cj as UserAdminLoginPush, cn as UserAdminLogoDTO, cm as UserAdminLogoSchema, cp as UserAdminProfileDTO, co as UserAdminProfileSchema, cr as UserAdminQueryDTO, cq as UserAdminQuerySchema, ck as UserAdminSchema, cz as createUserAdmin, cB as deleteUserAdmin, cx as delete_admin_image, cy as findUserAdmin, cD as getAdminUserCache, cv as get_admin_image_presigned_url, cu as newUserAdminPayload, cs as toUserAdminPayload, ct as toUserAdminProfilePayload, cA as updateUserAdmin, cC as updateUserAdminProfile, cw as update_admin_image } from '../../../bookmark_service-D9H8yEp3.js';
4
+ export { a as UserAdmin, cl as UserAdminDTO, cj as UserAdminLoginPush, cn as UserAdminLogoDTO, cm as UserAdminLogoSchema, cp as UserAdminProfileDTO, co as UserAdminProfileSchema, cr as UserAdminQueryDTO, cq as UserAdminQuerySchema, ck as UserAdminSchema, cy as createUserAdmin, cA as deleteUserAdmin, cw as delete_admin_image, cx as findUserAdmin, cC as getAdminUserCache, cu as get_admin_image_presigned_url, ct as newUserAdminPayload, cs as toUserAdminProfilePayload, cz as updateUserAdmin, cB as updateUserAdminProfile, cv as update_admin_image } from '../../../bookmark_service-_r5G5jkL.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';