vms-nest-prisma-api-document 320.0.0 → 360.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 (113) hide show
  1. package/dist/{user_organisation_service-Cbc_ZtO4.d.ts → bookmark_service-5dgfuboV.d.ts} +12609 -8259
  2. package/dist/services/account/bookmark_service.d.ts +5 -166
  3. package/dist/services/account/notification_preferences.service.d.ts +5 -220
  4. package/dist/services/account/report_preferences.service.d.ts +5 -310
  5. package/dist/services/account/ticket_service.d.ts +2 -2
  6. package/dist/services/fleet/bus_mangement/bus_stop.d.ts +2 -1
  7. package/dist/services/fleet/bus_mangement/calender.d.ts +5 -146
  8. package/dist/services/fleet/bus_mangement/master_route.d.ts +2 -1
  9. package/dist/services/fleet/bus_mangement/notice_board.d.ts +5 -141
  10. package/dist/services/fleet/bus_mangement/student.d.ts +2 -1
  11. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +5 -410
  12. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +2 -1
  13. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +2 -1
  14. package/dist/services/fleet/incident_management/incident_management_service.d.ts +2 -1
  15. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +2 -1
  16. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +2 -1
  17. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +2 -1
  18. package/dist/services/fleet/issue_management/issue_management_service.d.ts +2 -1
  19. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +2 -1
  20. package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +2 -1
  21. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +2 -1
  22. package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +2 -1
  23. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +2 -1
  24. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +5 -232
  25. package/dist/services/gps/features/geofence/gps_geofence_service.js +24 -23
  26. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +5 -161
  27. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +10 -7
  28. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -174
  29. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +9 -6
  30. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +5 -194
  31. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +11 -8
  32. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -200
  33. package/dist/services/gps/features/gps_live_track_share_link_service.js +5 -4
  34. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +5 -197
  35. package/dist/services/gps/features/gps_track_history_share_link_service.js +7 -6
  36. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  37. package/dist/services/main/devices/master_device_service.d.ts +2 -1
  38. package/dist/services/main/devices/master_device_service.js +16 -24
  39. package/dist/services/main/drivers/master_driver_service.d.ts +2 -1
  40. package/dist/services/main/drivers/master_driver_service.js +84 -81
  41. package/dist/services/main/sims/master_sim_service.d.ts +2 -1
  42. package/dist/services/main/sims/master_sim_service.js +8 -7
  43. package/dist/services/main/users/auth_service.d.ts +2 -2
  44. package/dist/services/main/users/user_admin_service.d.ts +6 -541
  45. package/dist/services/main/users/user_admin_service.js +25 -23
  46. package/dist/services/main/users/user_organisation_service.d.ts +2 -1
  47. package/dist/services/main/users/user_organisation_service.js +52 -49
  48. package/dist/services/main/users/user_service.d.ts +2 -1
  49. package/dist/services/main/users/user_service.js +41 -40
  50. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +2 -1
  51. package/dist/services/main/vehicle/master_vehicle_service.d.ts +2 -1
  52. package/dist/services/main/vehicle/master_vehicle_service.js +60 -60
  53. package/dist/services/master/bus/master_class_service.d.ts +2 -1
  54. package/dist/services/master/bus/master_program_service.d.ts +2 -1
  55. package/dist/services/master/bus/master_relationship_service.d.ts +2 -1
  56. package/dist/services/master/bus/master_section_service.d.ts +2 -1
  57. package/dist/services/master/bus/master_semester_service.d.ts +2 -1
  58. package/dist/services/master/bus/master_stream_service.d.ts +2 -1
  59. package/dist/services/master/bus/master_year_service.d.ts +2 -1
  60. package/dist/services/master/device/master_device_manufacturer_service.d.ts +2 -1
  61. package/dist/services/master/device/master_device_model_service.d.ts +2 -1
  62. package/dist/services/master/device/master_device_type_service.d.ts +2 -1
  63. package/dist/services/master/expense/master_expense_name_service.d.ts +2 -1
  64. package/dist/services/master/expense/master_expense_type_service.d.ts +5 -125
  65. package/dist/services/master/expense/master_fuel_company_service.d.ts +2 -1
  66. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -1
  67. package/dist/services/master/expense/master_vendor_tag_service.d.ts +2 -1
  68. package/dist/services/master/expense/master_vendor_type_service.d.ts +2 -1
  69. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +2 -1
  70. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +2 -1
  71. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +2 -1
  72. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +2 -1
  73. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +2 -1
  74. package/dist/services/master/main/master_main_country_service.d.ts +2 -1
  75. package/dist/services/master/main/master_main_currency_service.d.ts +2 -1
  76. package/dist/services/master/main/master_main_date_format_service.d.ts +2 -1
  77. package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
  78. package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
  79. package/dist/services/master/main/master_main_industry_service.d.ts +2 -1
  80. package/dist/services/master/main/master_main_landmark_service.d.ts +2 -1
  81. package/dist/services/master/main/master_main_language_service.d.ts +2 -1
  82. package/dist/services/master/main/master_main_sim_provider_service.d.ts +2 -1
  83. package/dist/services/master/main/master_main_state_service.d.ts +2 -1
  84. package/dist/services/master/main/master_main_timezone_service.d.ts +2 -1
  85. package/dist/services/master/main/master_main_unit_distance_service.d.ts +2 -1
  86. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +2 -1
  87. package/dist/services/master/main/master_main_unit_volume_service.d.ts +2 -1
  88. package/dist/services/master/organisation/organisation_branch_service.d.ts +2 -1
  89. package/dist/services/master/organisation/organisation_color_service.d.ts +2 -1
  90. package/dist/services/master/organisation/organisation_group_service.d.ts +2 -1
  91. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +2 -1
  92. package/dist/services/master/organisation/organisation_tag_service.d.ts +2 -1
  93. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +2 -2
  94. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +5 -269
  95. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +5 -132
  96. package/dist/services/master/trip/master_trip_party_type_service.d.ts +5 -127
  97. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +5 -128
  98. package/dist/services/master/tyre/master_tyre_make_service.d.ts +2 -2
  99. package/dist/services/master/tyre/master_tyre_model_service.d.ts +5 -261
  100. package/dist/services/master/user/master_user_role_service.d.ts +2 -1
  101. package/dist/services/master/user/master_user_status_service.d.ts +2 -1
  102. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +2 -1
  103. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +2 -1
  104. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -1
  105. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +2 -1
  106. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +2 -1
  107. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +2 -1
  108. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +2 -1
  109. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +2 -1
  110. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +2 -1
  111. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +2 -1
  112. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +2 -1
  113. package/package.json +1 -1
@@ -258,13 +258,16 @@ var MongoBaseQuerySchema = z2.object({
258
258
  // src/services/main/users/user_organisation_service.ts
259
259
  var URL = "user/organisation";
260
260
  var ENDPOINTS = {
261
+ // AWS S3 PRESIGNED
262
+ presigned_url: (fileName) => `${URL}/presigned_url/${fileName}`,
263
+ // UserOrganisation APIs
261
264
  find: `${URL}/search`,
262
265
  create: `${URL}`,
263
266
  update: (id) => `${URL}/${id}`,
264
267
  delete: (id) => `${URL}/${id}`,
265
268
  update_logo: (id) => `${URL}/update_logo/${id}`,
266
269
  delete_logo: (id) => `${URL}/delete_logo/${id}`,
267
- presigned_url: (fileName) => `${URL}/presigned_url/${fileName}`,
270
+ // Cache APIs
268
271
  cache: () => `${URL}/cache`,
269
272
  cache_simple: () => `${URL}/cache_simple`
270
273
  };
@@ -364,51 +367,51 @@ var UserOrganisationLogoSchema = z3.object({
364
367
  logo_key: stringMandatory("Logo Key", 0, 300),
365
368
  logo_name: stringMandatory("Logo Name", 0, 300)
366
369
  });
367
- var toUserOrganisationPayload = (organisation) => ({
368
- organisation_name: organisation.organisation_name,
369
- organisation_email: organisation.organisation_email || "",
370
- organisation_mobile: organisation.organisation_mobile || "",
371
- organisation_code: organisation.organisation_code || "",
372
- organisation_utrack_id: organisation.organisation_utrack_id || "",
373
- fleet_size: organisation.fleet_size,
374
- logo_url: organisation.logo_url || "",
375
- logo_key: organisation.logo_key || "",
376
- logo_name: organisation.logo_name || "",
377
- status: organisation.status,
378
- company_cin: organisation.company_cin || "",
379
- company_tin_gstin: organisation.company_tin_gstin || "",
370
+ var toUserOrganisationPayload = (row) => ({
371
+ organisation_name: row.organisation_name || "",
372
+ organisation_email: row.organisation_email || "",
373
+ organisation_mobile: row.organisation_mobile || "",
374
+ organisation_code: row.organisation_code || "",
375
+ organisation_utrack_id: row.organisation_utrack_id || "",
376
+ fleet_size: row.fleet_size || "Fleet_1_to_50_Vehicles" /* Fleet_1_to_50_Vehicles */,
377
+ logo_url: row.logo_url || "",
378
+ logo_key: row.logo_key || "",
379
+ logo_name: row.logo_name || "",
380
+ company_cin: row.company_cin || "",
381
+ company_tin_gstin: row.company_tin_gstin || "",
380
382
  // Billing Address
381
- billing_address_line1: organisation.billing_address_line1 || "",
382
- billing_address_line2: organisation.billing_address_line2 || "",
383
- billing_locality_landmark: organisation.billing_locality_landmark || "",
384
- billing_neighborhood: organisation.billing_neighborhood || "",
385
- billing_town_city: organisation.billing_town_city || "",
386
- billing_district_county: organisation.billing_district_county || "",
387
- billing_state_province_region: organisation.billing_state_province_region || "",
388
- billing_postal_code: organisation.billing_postal_code || "",
389
- billing_country: organisation.billing_country || "",
390
- billing_country_code: organisation.billing_country_code || "",
383
+ billing_address_line1: row.billing_address_line1 || "",
384
+ billing_address_line2: row.billing_address_line2 || "",
385
+ billing_locality_landmark: row.billing_locality_landmark || "",
386
+ billing_neighborhood: row.billing_neighborhood || "",
387
+ billing_town_city: row.billing_town_city || "",
388
+ billing_district_county: row.billing_district_county || "",
389
+ billing_state_province_region: row.billing_state_province_region || "",
390
+ billing_postal_code: row.billing_postal_code || "",
391
+ billing_country: row.billing_country || "",
392
+ billing_country_code: row.billing_country_code || "",
391
393
  // Company Address
392
- address_line1: organisation.address_line1 || "",
393
- address_line2: organisation.address_line2 || "",
394
- locality_landmark: organisation.locality_landmark || "",
395
- neighborhood: organisation.neighborhood || "",
396
- town_city: organisation.town_city || "",
397
- district_county: organisation.district_county || "",
398
- state_province_region: organisation.state_province_region || "",
399
- postal_code: organisation.postal_code || "",
400
- country: organisation.country || "",
401
- country_code: organisation.country_code || "",
402
- industry_id: organisation.industry_id,
403
- country_id: organisation.country_id,
404
- state_id: organisation.state_id || "",
405
- currency_id: organisation.currency_id || "",
406
- language_id: organisation.language_id || "",
407
- time_zone_id: organisation.time_zone_id || "",
408
- date_format_id: organisation.date_format_id || "",
409
- distance_unit_id: organisation.distance_unit_id || "",
410
- mileage_unit_id: organisation.mileage_unit_id || "",
411
- volume_unit_id: organisation.volume_unit_id || ""
394
+ address_line1: row.address_line1 || "",
395
+ address_line2: row.address_line2 || "",
396
+ locality_landmark: row.locality_landmark || "",
397
+ neighborhood: row.neighborhood || "",
398
+ town_city: row.town_city || "",
399
+ district_county: row.district_county || "",
400
+ state_province_region: row.state_province_region || "",
401
+ postal_code: row.postal_code || "",
402
+ country: row.country || "",
403
+ country_code: row.country_code || "",
404
+ industry_id: row.industry_id,
405
+ country_id: row.country_id,
406
+ state_id: row.state_id || "",
407
+ currency_id: row.currency_id || "",
408
+ language_id: row.language_id || "",
409
+ time_zone_id: row.time_zone_id || "",
410
+ date_format_id: row.date_format_id || "",
411
+ distance_unit_id: row.distance_unit_id || "",
412
+ mileage_unit_id: row.mileage_unit_id || "",
413
+ volume_unit_id: row.volume_unit_id || "",
414
+ status: row.status || "Active" /* Active */
412
415
  });
413
416
  var newUserOrganisationPayload = () => ({
414
417
  organisation_name: "",
@@ -420,7 +423,6 @@ var newUserOrganisationPayload = () => ({
420
423
  logo_url: "",
421
424
  logo_key: "",
422
425
  logo_name: "",
423
- status: "Active" /* Active */,
424
426
  company_cin: "",
425
427
  company_tin_gstin: "",
426
428
  // Billing Address
@@ -454,8 +456,12 @@ var newUserOrganisationPayload = () => ({
454
456
  date_format_id: "",
455
457
  distance_unit_id: "",
456
458
  mileage_unit_id: "",
457
- volume_unit_id: ""
459
+ volume_unit_id: "",
460
+ status: "Active" /* Active */
458
461
  });
462
+ var get_user_organisation_presigned_url = async (file_name) => {
463
+ return apiGet(ENDPOINTS.presigned_url(file_name));
464
+ };
459
465
  var findUserOrganisation = async (data) => {
460
466
  return apiPost(ENDPOINTS.find, data);
461
467
  };
@@ -474,9 +480,6 @@ var updateUserOrganisationLogo = async (id, data) => {
474
480
  var deleteUserOrganisationLogo = async (id) => {
475
481
  return apiDelete(ENDPOINTS.delete_logo(id));
476
482
  };
477
- var get_user_organisation_presigned_url = async (file_name) => {
478
- return apiGet(ENDPOINTS.presigned_url(file_name));
479
- };
480
483
  var getUserOrganisationCache = async () => {
481
484
  return apiGet(ENDPOINTS.cache());
482
485
  };
@@ -1,5 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { a as User, iU as UserDTO, j4 as UserDefaultDateFormatDTO, j3 as UserDefaultDateFormatSchema, j0 as UserDefaultLanguageDTO, i$ as UserDefaultLanguageSchema, j2 as UserDefaultTimeZoneDTO, j1 as UserDefaultTimeZoneSchema, iS as UserLoginPush, iY as UserLogoDTO, iX as UserLogoSchema, i_ as UserProfileDTO, iZ as UserProfileSchema, iW as UserQueryDTO, iV as UserQuerySchema, iT as UserSchema, iR as UserVehicleLink, j9 as createUser, jb as deleteUser, jd as deleteUserLogo, j8 as findUser, jf as getUserCache, jg as getUserCacheSimple, jh as get_user_presigned_url, j5 as newUserPayload, j6 as toUserPayload, j7 as toUserProfilePayload, ja as updateUser, jk as updateUserDefaultDateformat, ji as updateUserDefaultLanguage, jj as updateUserDefaultTimezone, jc as updateUserLogo, je as updateUserProfile } from '../../../user_organisation_service-Cbc_ZtO4.js';
4
+ export { U as User, oV as UserDTO, p5 as UserDefaultDateFormatDTO, p4 as UserDefaultDateFormatSchema, p1 as UserDefaultLanguageDTO, p0 as UserDefaultLanguageSchema, p3 as UserDefaultTimeZoneDTO, p2 as UserDefaultTimeZoneSchema, oT as UserLoginPush, oZ as UserLogoDTO, oY as UserLogoSchema, o$ as UserProfileDTO, o_ as UserProfileSchema, oX as UserQueryDTO, oW as UserQuerySchema, oU as UserSchema, oS as UserVehicleLink, pb as createUser, pd as deleteUser, pf as deleteUserLogo, pa as findUser, ph as getUserCache, pi as getUserCacheSimple, p9 as get_user_presigned_url, p8 as newUserPayload, p6 as toUserPayload, p7 as toUserProfilePayload, pc as updateUser, pl as updateUserDefaultDateformat, pj as updateUserDefaultLanguage, pk as updateUserDefaultTimezone, pe as updateUserLogo, pg as updateUserProfile } from '../../../bookmark_service-5dgfuboV.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
+ import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -249,6 +249,9 @@ var MongoBaseQuerySchema = z2.object({
249
249
  // src/services/main/users/user_service.ts
250
250
  var URL = "user/user";
251
251
  var ENDPOINTS = {
252
+ // AWS S3 PRESIGNED
253
+ presigned_url: (fileName) => `${URL}/presigned_url/${fileName}`,
254
+ // User APIs
252
255
  find: `${URL}/search`,
253
256
  create: `${URL}`,
254
257
  update: (id) => `${URL}/${id}`,
@@ -256,11 +259,9 @@ var ENDPOINTS = {
256
259
  update_logo: (id) => `${URL}/update_logo/${id}`,
257
260
  delete_logo: (id) => `${URL}/delete_logo/${id}`,
258
261
  update_profile: (id) => `${URL}/update_profile/${id}`,
259
- // Cache
262
+ // Cache APIs
260
263
  cache: (organisation_id) => `${URL}/cache/${organisation_id}`,
261
264
  cache_simple: (organisation_id) => `${URL}/cache_simple/${organisation_id}`,
262
- // Presigned URL for file uploads
263
- presigned_url: (fileName) => `${URL}/presigned_url/${fileName}`,
264
265
  // Default Settings
265
266
  update_default_language: (id) => `${URL}/default_language/${id}`,
266
267
  update_default_timezone: (id) => `${URL}/default_timezone/${id}`,
@@ -341,6 +342,38 @@ var UserDefaultDateFormatSchema = z3.object({
341
342
  date_format_id: single_select_optional("MasterMainDateFormat")
342
343
  // ✅ Single-Selection -> MasterMainDateFormat
343
344
  });
345
+ var toUserPayload = (row) => ({
346
+ first_name: row.first_name || "",
347
+ last_name: row.last_name || "",
348
+ email: row.email || "",
349
+ mobile: row.mobile || "",
350
+ username: row.username || "",
351
+ password: row.password || "",
352
+ is_root_user: row.is_root_user || "Yes" /* Yes */,
353
+ can_login: row.can_login || "Yes" /* Yes */,
354
+ all_vehicles: row.all_vehicles || "Yes" /* Yes */,
355
+ user_image_url: row.user_image_url || "",
356
+ user_image_key: row.user_image_key || "",
357
+ user_image_name: row.user_image_name || "",
358
+ organisation_id: row.organisation_id || "",
359
+ user_role_id: row.user_role_id || "",
360
+ user_status_id: row.user_status_id || "",
361
+ language_id: row.language_id || "",
362
+ date_format_id: row.date_format_id || "",
363
+ time_zone_id: row.time_zone_id || "",
364
+ status: row.status || "Active" /* Active */,
365
+ vehicle_ids: row.UserVehicleLink?.map((v) => v.vehicle_id) || []
366
+ });
367
+ var toUserProfilePayload = (data) => ({
368
+ first_name: data.first_name || "",
369
+ last_name: data.last_name || "",
370
+ email: data.email || "",
371
+ mobile: data.mobile || "",
372
+ username: data.username || "",
373
+ user_image_url: data.user_image_url || "",
374
+ user_image_key: data.user_image_key || "",
375
+ user_image_name: data.user_image_name || ""
376
+ });
344
377
  var newUserPayload = () => ({
345
378
  first_name: "",
346
379
  last_name: "",
@@ -348,8 +381,8 @@ var newUserPayload = () => ({
348
381
  username: "",
349
382
  mobile: "",
350
383
  password: "",
351
- can_login: "No" /* No */,
352
- is_root_user: "No" /* No */,
384
+ can_login: "Yes" /* Yes */,
385
+ is_root_user: "Yes" /* Yes */,
353
386
  all_vehicles: "Yes" /* Yes */,
354
387
  vehicle_ids: [],
355
388
  user_image_url: "",
@@ -363,38 +396,9 @@ var newUserPayload = () => ({
363
396
  date_format_id: "",
364
397
  status: "Active" /* Active */
365
398
  });
366
- var toUserPayload = (data) => ({
367
- first_name: data.first_name,
368
- last_name: data.last_name || "",
369
- email: data.email,
370
- mobile: data.mobile || "",
371
- username: data.username || "",
372
- password: data.password || "",
373
- can_login: data.can_login,
374
- is_root_user: data.is_root_user,
375
- all_vehicles: data.all_vehicles,
376
- user_image_url: data.user_image_url || "",
377
- user_image_key: data.user_image_key || "",
378
- user_image_name: data.user_image_name || "",
379
- organisation_id: data.organisation_id || "",
380
- user_role_id: data.user_role_id || "",
381
- user_status_id: data.user_status_id || "",
382
- language_id: data.language_id || "",
383
- date_format_id: data.date_format_id || "",
384
- time_zone_id: data.time_zone_id || "",
385
- status: data.status,
386
- vehicle_ids: data.UserVehicleLink?.map((v) => v.vehicle_id) || []
387
- });
388
- var toUserProfilePayload = (data) => ({
389
- first_name: data.first_name,
390
- last_name: data.last_name || "",
391
- email: data.email,
392
- mobile: data.mobile || "",
393
- username: data.username || "",
394
- user_image_url: data.user_image_url || "",
395
- user_image_key: data.user_image_key || "",
396
- user_image_name: data.user_image_name || ""
397
- });
399
+ var get_user_presigned_url = async (fileName) => {
400
+ return apiGet(ENDPOINTS.presigned_url(fileName));
401
+ };
398
402
  var findUser = async (data) => {
399
403
  return apiPost(ENDPOINTS.find, data);
400
404
  };
@@ -422,9 +426,6 @@ var getUserCache = async (organisation_id) => {
422
426
  var getUserCacheSimple = async (organisation_id) => {
423
427
  return apiGet(ENDPOINTS.cache_simple(organisation_id));
424
428
  };
425
- var get_user_presigned_url = async (fileName) => {
426
- return apiGet(ENDPOINTS.presigned_url(fileName));
427
- };
428
429
  var updateUserDefaultLanguage = async (id, data) => {
429
430
  return apiPatch(ENDPOINTS.update_default_language(id), data);
430
431
  };
@@ -1,8 +1,9 @@
1
1
  import { OdometerSource, 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, M as MasterVehicle } from '../../../../user_organisation_service-Cbc_ZtO4.js';
4
+ import { b as UserOrganisation, c as MasterVehicle } from '../../../../bookmark_service-5dgfuboV.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
+ import '../../../gps/reports/gps_models/FuelConsumptionMonthly.js';
6
7
 
7
8
  interface VehicleOdometerHistory extends Record<string, unknown> {
8
9
  vehicle_odometer_history_id: string;
@@ -2,4 +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 { qn as CalibrationFileDTO, qm as CalibrationFileSchema, qt as MasterDeviceFileDTO, qs as MasterDeviceFileSchema, M as MasterVehicle, q9 as MasterVehicleDropdown, qa as MasterVehicleFile, ql as MasterVehicleFileDTO, qk as MasterVehicleFileSchema, qX as SimpleFindQueryDTO, qW as SimpleFindQuerySchema, qr as VehicleBulkDTO, qq as VehicleBulkSchema, qp as VehicleDTO, qd as VehicleDetailBody, qF as VehicleDetailBodyDTO, qE as VehicleDetailBodySchema, qb as VehicleDetailGPS, qB as VehicleDetailGPSSensorDTO, qA as VehicleDetailGPSSensorSchema, qe as VehicleDetailLifeCycle, qH as VehicleDetailLifeCycleDto, qG as VehicleDetailLifeCycleSchema, qf as VehicleDetailPurchase, qJ as VehicleDetailPurchaseDTO, qI as VehicleDetailPurchaseSchema, qc as VehicleDetailTrip, qD as VehicleDetailTripDTO, qC as VehicleDetailTripSchema, qv as VehicleDeviceLinkDTO, qu as VehicleDeviceLinkSchema, qx as VehicleDeviceUnlinkDTO, qw as VehicleDeviceUnlinkSchema, qg as VehicleDocument, qN as VehicleDocumentDTO, qi as VehicleDocumentExpiry, qR as VehicleDocumentExpiryDTO, qT as VehicleDocumentExpiryQueryDTO, qS as VehicleDocumentExpiryQuerySchema, qQ as VehicleDocumentExpirySchema, qh as VehicleDocumentFile, qL as VehicleDocumentFileDTO, qK as VehicleDocumentFileSchema, qP as VehicleDocumentQueryDTO, qO as VehicleDocumentQuerySchema, qM as VehicleDocumentSchema, qz as VehicleDriverLinkDTO, qy as VehicleDriverLinkSchema, qZ as VehicleGPSQueryDTO, qY as VehicleGPSQuerySchema, qj as VehicleOdometerHistory, qV as VehicleQueryDTO, qU as VehicleQuerySchema, qo as VehicleSchema, rc as createFileVehicle, rn as createVehicle, rD as createVehicleDocument, rH as createVehicleDocumentExpiry, re as create_file_device, rg as create_file_vehicle_document, rp as deleteVehicle, rj as delete_calibration_file, rE as findVehicleDocument, rI as findVehicleDocumentExpiry, rm as findVehicleGPSDetails, rk as findVehicles, rl as findVehiclesLiveDashboard, rC as getDeviceLinkHistoryByDevice, rB as getDeviceLinkHistoryByVehicle, ry as getDriverLinkHistoryByDriver, rx as getDriverLinkHistoryByVehicle, rL as getVehicleCache, rN as getVehicleParentCache, rM as getVehicleSimpleCache, rP as getVehicleSimpleDropdownCacheLiveData, rO as getVehicleSimpleDropdownCustom, ra as get_device_file_presigned_url, rb as get_vehicle_document_file_presigned_url, r9 as get_vehicle_file_presigned_url, rz as linkDeviceToVehicle, rv as linkDriverToVehicle, r8 as newVehicleDocumentExpiryPayload, r6 as newVehicleDocumentPayload, q$ as newVehiclePayload, rh as removeFileVehicleDocument, rG as removeVehicleDocument, rK as removeVehicleDocumentExpiry, rf as remove_file_device, rd as remove_file_vehicle, r3 as toVehicleDetailLifeCyclePayload, r4 as toVehicleDetailPurchasePayload, r2 as toVehicleDetailsBodyPayload, r0 as toVehicleDetailsGPSPayload, r1 as toVehicleDetailsTripPayload, r7 as toVehicleDocumentExpiryPayload, r5 as toVehicleDocumentPayload, q_ as toVehiclePayload, rA as unlinkDeviceFromVehicle, rw as unlinkDriverFromVehicle, rq as updateDetailsGpsSensor, rr as updateDetailsTrip, ro as updateVehicle, rs as updateVehicleBodyDetails, rF as updateVehicleDocument, rJ as updateVehicleDocumentExpiry, rt as updateVehicleLifeCycleDetails, ru as updateVehiclePurchaseDetails, ri as update_calibration_file } from '../../../user_organisation_service-Cbc_ZtO4.js';
5
+ export { t9 as CalibrationFileDTO, t8 as CalibrationFileSchema, tf as MasterDeviceFileDTO, te as MasterDeviceFileSchema, c as MasterVehicle, sX as MasterVehicleDropdown, sY as MasterVehicleFile, t7 as MasterVehicleFileDTO, t6 as MasterVehicleFileSchema, tJ as SimpleFindQueryDTO, tI as SimpleFindQuerySchema, td as VehicleBulkDTO, tc as VehicleBulkSchema, tb as VehicleDTO, s$ as VehicleDetailBody, tr as VehicleDetailBodyDTO, tq as VehicleDetailBodySchema, sZ as VehicleDetailGPS, tn as VehicleDetailGPSSensorDTO, tm as VehicleDetailGPSSensorSchema, t0 as VehicleDetailLifeCycle, tt as VehicleDetailLifeCycleDto, ts as VehicleDetailLifeCycleSchema, t1 as VehicleDetailPurchase, tv as VehicleDetailPurchaseDTO, tu as VehicleDetailPurchaseSchema, s_ as VehicleDetailTrip, tp as VehicleDetailTripDTO, to as VehicleDetailTripSchema, th as VehicleDeviceLinkDTO, tg as VehicleDeviceLinkSchema, tj as VehicleDeviceUnlinkDTO, ti as VehicleDeviceUnlinkSchema, t2 as VehicleDocument, tz as VehicleDocumentDTO, t4 as VehicleDocumentExpiry, tD as VehicleDocumentExpiryDTO, tF as VehicleDocumentExpiryQueryDTO, tE as VehicleDocumentExpiryQuerySchema, tC as VehicleDocumentExpirySchema, t3 as VehicleDocumentFile, tx as VehicleDocumentFileDTO, tw as VehicleDocumentFileSchema, tB as VehicleDocumentQueryDTO, tA as VehicleDocumentQuerySchema, ty as VehicleDocumentSchema, tl as VehicleDriverLinkDTO, tk as VehicleDriverLinkSchema, tL as VehicleGPSQueryDTO, tK as VehicleGPSQuerySchema, t5 as VehicleOdometerHistory, tH as VehicleQueryDTO, tG as VehicleQuerySchema, ta as VehicleSchema, t_ as createFileVehicle, u9 as createVehicle, up as createVehicleDocument, ut as createVehicleDocumentExpiry, u0 as create_file_device, u2 as create_file_vehicle_document, ub as deleteVehicle, u5 as delete_calibration_file, uq as findVehicleDocument, uu as findVehicleDocumentExpiry, u8 as findVehicleGPSDetails, u6 as findVehicles, u7 as findVehiclesLiveDashboard, uo as getDeviceLinkHistoryByDevice, un as getDeviceLinkHistoryByVehicle, uk as getDriverLinkHistoryByDriver, uj as getDriverLinkHistoryByVehicle, ux as getVehicleCache, uz as getVehicleParentCache, uy as getVehicleSimpleCache, uB as getVehicleSimpleDropdownCacheLiveData, uA as getVehicleSimpleDropdownCustom, tY as get_device_file_presigned_url, tZ as get_vehicle_document_file_presigned_url, tX as get_vehicle_file_presigned_url, ul as linkDeviceToVehicle, uh as linkDriverToVehicle, tW as newVehicleDocumentExpiryPayload, tU as newVehicleDocumentPayload, tN as newVehiclePayload, u3 as removeFileVehicleDocument, us as removeVehicleDocument, uw as removeVehicleDocumentExpiry, u1 as remove_file_device, t$ as remove_file_vehicle, tR as toVehicleDetailLifeCyclePayload, tS as toVehicleDetailPurchasePayload, tQ as toVehicleDetailsBodyPayload, tO as toVehicleDetailsGPSPayload, tP as toVehicleDetailsTripPayload, tV as toVehicleDocumentExpiryPayload, tT as toVehicleDocumentPayload, tM as toVehiclePayload, um as unlinkDeviceFromVehicle, ui as unlinkDriverFromVehicle, uc as updateDetailsGpsSensor, ud as updateDetailsTrip, ua as updateVehicle, ue as updateVehicleBodyDetails, ur as updateVehicleDocument, uv as updateVehicleDocumentExpiry, uf as updateVehicleLifeCycleDetails, ug as updateVehiclePurchaseDetails, u4 as update_calibration_file } from '../../../bookmark_service-5dgfuboV.js';
6
+ import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -387,49 +387,49 @@ var ENDPOINTS = {
387
387
  device_file_presigned_url: `${URL}/device_file_presigned_url`,
388
388
  vehicle_document_file_presigned_url: `${URL}/vehicle_document_file_presigned_url`,
389
389
  calibration_file_presigned_url: `${URL}/calibration_file_presigned_url`,
390
- // File
390
+ // File Uploads
391
391
  create_file_vehicle: `${URL}/create_file_vehicle`,
392
- remove_file_vehicle: `${URL}/remove_file_vehicle/:id`,
392
+ remove_file_vehicle: (id) => `${URL}/remove_file_vehicle${id}`,
393
393
  create_file_device: `${URL}/create_file_device`,
394
- remove_file_device: `${URL}/remove_file_device/:id`,
394
+ remove_file_device: (id) => `${URL}/remove_file_device/${id}`,
395
395
  create_file_vehicle_document: `${URL}/create_file_vehicle_document`,
396
- remove_file_vehicle_document: `${URL}/remove_file_vehicle_document/:id`,
396
+ remove_file_vehicle_document: (id) => `${URL}/remove_file_vehicle_document/${id}`,
397
397
  update_calibration_file: `${URL}/update_calibration_file`,
398
- delete_calibration_file: `${URL}/delete_calibration_file/:id`,
399
- // Vehicle CRED
398
+ delete_calibration_file: (id) => `${URL}/delete_calibration_file/${id}`,
399
+ // MasterVehicle APIs
400
400
  find: `${URL}/search`,
401
401
  find_live_dashboard: `${URL}/live_dashboard/search`,
402
402
  find_gps_details: `${URL}/gps_details/search`,
403
403
  create: `${URL}`,
404
- update: `${URL}/:id`,
404
+ update: (id) => `${URL}/${id}`,
405
405
  delete: (id) => `${URL}/${id}`,
406
406
  // API Updates
407
- update_details_gps_sensor: `${URL}/gps_sensor_details/:id`,
408
- update_details_trip: `${URL}/trip_details/:id`,
409
- update_details_body: `${URL}/body_details/:id`,
410
- update_details_life_cycle: `${URL}/life_cycle_details/:id`,
411
- update_details_purchase: `${URL}/purchase_details/:id`,
407
+ update_details_gps_sensor: (id) => `${URL}/gps_sensor_details/${id}`,
408
+ update_details_trip: (id) => `${URL}/trip_details/${id}`,
409
+ update_details_body: (id) => `${URL}/body_details/${id}`,
410
+ update_details_life_cycle: (id) => `${URL}/life_cycle_details/${id}`,
411
+ update_details_purchase: (id) => `${URL}/purchase_details/${id}`,
412
412
  // API Vehicle Driver Link
413
413
  vehicle_driver_link: `${URL}/vehicle_driver_link`,
414
414
  vehicle_driver_unlink: `${URL}/vehicle_driver_unlink`,
415
- find_vehicle_driver_link_history_by_vehicle: `${URL}/vehicle_driver_link_history_by_vehicle/:id`,
416
- find_vehicle_driver_link_history_by_driver: `${URL}/vehicle_driver_link_history_by_driver/:id`,
415
+ find_vehicle_driver_link_history_by_vehicle: (id) => `${URL}/vehicle_driver_link_history_by_vehicle/${id}`,
416
+ find_vehicle_driver_link_history_by_driver: (id) => `${URL}/vehicle_driver_link_history_by_driver/${id}`,
417
417
  // API Vehicle Device Link
418
418
  vehicle_device_link: `${URL}/vehicle_device_link`,
419
419
  vehicle_device_unlink: `${URL}/vehicle_device_unlink`,
420
- vehicle_device_link_history_by_vehicle: `${URL}/vehicle_device_link_history_by_vehicle/:id`,
421
- vehicle_device_link_history_by_device: `${URL}/vehicle_device_link_history_by_device/:id`,
422
- // Vehicle Document
420
+ vehicle_device_link_history_by_vehicle: (id) => `${URL}/vehicle_device_link_history_by_vehicle/${id}`,
421
+ vehicle_device_link_history_by_device: (id) => `${URL}/vehicle_device_link_history_by_device/${id}`,
422
+ // VehicleDocument APIs
423
423
  create_document: `${URL}/document`,
424
424
  find_document: `${URL}/find_document/search`,
425
- update_document: `${URL}/vehicle_document/:id`,
426
- remove_document: `${URL}/vehicle_document/:id`,
427
- // Vehicle Document Expiry
425
+ update_document: (id) => `${URL}/vehicle_document/${id}`,
426
+ remove_document: (id) => `${URL}/vehicle_document/${id}`,
427
+ // VehicleDocumentExpiry APIs
428
428
  create_document_expiry: `${URL}/vehicle_document_expiry`,
429
429
  find_document_expiry: `${URL}/vehicle_document_expiry/search`,
430
- update_document_expiry: `${URL}/vehicle_document_expiry/:id`,
431
- remove_document_expiry: `${URL}/vehicle_document_expiry/:id`,
432
- // Cache Endpoints By organisation_id
430
+ update_document_expiry: (id) => `${URL}/vehicle_document_expiry/${id}`,
431
+ remove_document_expiry: (id) => `${URL}/vehicle_document_expiry/${id}`,
432
+ // Cache APIs
433
433
  find_cache: `${URL}/cache/:organisation_id`,
434
434
  find_cache_simple: `${URL}/cache_simple/:organisation_id`,
435
435
  find_cache_parent: `${URL}/cache_parent/:organisation_id`,
@@ -1015,16 +1015,15 @@ var VehicleGPSQuerySchema = BaseQuerySchema.extend({
1015
1015
  // Single-selection -> MasterVehicle
1016
1016
  });
1017
1017
  var toVehiclePayload = (row) => ({
1018
- organisation_id: row.organisation_id,
1019
- vehicle_number: row.vehicle_number,
1018
+ organisation_id: row.organisation_id || "",
1019
+ vehicle_number: row.vehicle_number || "",
1020
1020
  vehicle_name: row.vehicle_name || "",
1021
1021
  engine_number: row.engine_number || "",
1022
1022
  chassis_number: row.chassis_number || "",
1023
1023
  vehicle_make_year: row.vehicle_make_year || 0,
1024
- is_fleet_active: row.is_fleet_active,
1025
- is_gps_active: row.is_gps_active,
1026
- is_trip_active: row.is_trip_active,
1027
- status: row.status,
1024
+ is_fleet_active: row.is_fleet_active || "No" /* No */,
1025
+ is_gps_active: row.is_gps_active || "No" /* No */,
1026
+ is_trip_active: row.is_trip_active || "No" /* No */,
1028
1027
  organisation_sub_company_id: row.organisation_sub_company_id || "",
1029
1028
  organisation_branch_id: row.organisation_branch_id || "",
1030
1029
  organisation_tag_id: row.organisation_tag_id || "",
@@ -1049,16 +1048,17 @@ var toVehiclePayload = (row) => ({
1049
1048
  fuel_tank_total_size: row.fuel_tank_total_size || 0,
1050
1049
  vehicle_passenger_capacity: row.vehicle_passenger_capacity || 0,
1051
1050
  standing_passenger_capacity: row.standing_passenger_capacity || 0,
1051
+ status: row.status || "Active" /* Active */,
1052
1052
  MasterVehicleFileSchema: row.MasterVehicleFile?.map((file) => ({
1053
- vehicle_file_id: file.vehicle_file_id ?? "",
1053
+ vehicle_file_id: file.vehicle_file_id || "",
1054
1054
  usage_type: file.usage_type,
1055
1055
  file_type: file.file_type,
1056
1056
  file_url: file.file_url || "",
1057
1057
  file_key: file.file_key || "",
1058
1058
  file_name: file.file_name || "",
1059
1059
  file_description: file.file_description || "",
1060
- file_size: file.file_size ?? 0,
1061
- file_metadata: file.file_metadata ?? {},
1060
+ file_size: file.file_size || 0,
1061
+ file_metadata: file.file_metadata || {},
1062
1062
  status: file.status,
1063
1063
  added_date_time: file.added_date_time,
1064
1064
  modified_date_time: file.modified_date_time,
@@ -1073,8 +1073,7 @@ var newVehiclePayload = () => ({
1073
1073
  engine_number: "",
1074
1074
  chassis_number: "",
1075
1075
  vehicle_make_year: 0,
1076
- status: "Active" /* Active */,
1077
- is_fleet_active: "Yes" /* Yes */,
1076
+ is_fleet_active: "No" /* No */,
1078
1077
  is_gps_active: "No" /* No */,
1079
1078
  is_trip_active: "No" /* No */,
1080
1079
  organisation_sub_company_id: "",
@@ -1101,6 +1100,7 @@ var newVehiclePayload = () => ({
1101
1100
  fuel_tank_total_size: 0,
1102
1101
  vehicle_passenger_capacity: 0,
1103
1102
  standing_passenger_capacity: 0,
1103
+ status: "Active" /* Active */,
1104
1104
  MasterVehicleFileSchema: []
1105
1105
  });
1106
1106
  var toVehicleDetailsGPSPayload = (vehicleGPS) => ({
@@ -1257,10 +1257,10 @@ var toVehicleDetailPurchasePayload = (vehiclePurchase) => ({
1257
1257
  lease_vendor_id: vehiclePurchase?.lease_vendor_id || ""
1258
1258
  });
1259
1259
  var toVehicleDocumentPayload = (row) => ({
1260
- organisation_id: row.organisation_id,
1261
- vehicle_id: row.vehicle_id,
1260
+ organisation_id: row.organisation_id || "",
1261
+ vehicle_id: row.vehicle_id || "",
1262
1262
  vendor_id: row.vendor_id || "",
1263
- document_type_id: row.document_type_id,
1263
+ document_type_id: row.document_type_id || "",
1264
1264
  vehicle_document_code: row.vehicle_document_code || "",
1265
1265
  document_number: row.document_number || "",
1266
1266
  document_authorized_name: row.document_authorized_name || "",
@@ -1275,7 +1275,7 @@ var toVehicleDocumentPayload = (row) => ({
1275
1275
  document_details_3: row.document_details_3 || "",
1276
1276
  document_details_4: row.document_details_4 || "",
1277
1277
  document_notes: row.document_notes || "",
1278
- status: "Active" /* Active */,
1278
+ status: row.status || "Active" /* Active */,
1279
1279
  time_zone_id: "",
1280
1280
  // Needs to be provided manually
1281
1281
  VehicleDocumentFileSchema: row.VehicleDocumentFile?.map((file) => ({
@@ -1320,11 +1320,11 @@ var newVehicleDocumentPayload = () => ({
1320
1320
  VehicleDocumentFileSchema: []
1321
1321
  });
1322
1322
  var toVehicleDocumentExpiryPayload = (row) => ({
1323
- organisation_id: row.organisation_id,
1324
- vehicle_id: row.vehicle_id,
1325
- vehicle_document_id: row.vehicle_document_id,
1323
+ organisation_id: row.organisation_id || "",
1324
+ vehicle_id: row.vehicle_id || "",
1325
+ vehicle_document_id: row.vehicle_document_id || "",
1326
1326
  expiry_type: row.expiry_type || "Expiring" /* Expiring */,
1327
- status: row.status
1327
+ status: row.status || "Active" /* Active */
1328
1328
  });
1329
1329
  var newVehicleDocumentExpiryPayload = () => ({
1330
1330
  organisation_id: "",
@@ -1346,25 +1346,25 @@ var createFileVehicle = async (payload) => {
1346
1346
  return apiPost(ENDPOINTS.create_file_vehicle, payload);
1347
1347
  };
1348
1348
  var remove_file_vehicle = async (id) => {
1349
- return apiDelete(ENDPOINTS.remove_file_vehicle.replace(":id", id));
1349
+ return apiDelete(ENDPOINTS.remove_file_vehicle(id));
1350
1350
  };
1351
1351
  var create_file_device = async (payload) => {
1352
1352
  return apiPost(ENDPOINTS.create_file_device, payload);
1353
1353
  };
1354
1354
  var remove_file_device = async (id) => {
1355
- return apiDelete(ENDPOINTS.remove_file_device.replace(":id", id));
1355
+ return apiDelete(ENDPOINTS.remove_file_device(id));
1356
1356
  };
1357
1357
  var create_file_vehicle_document = async (payload) => {
1358
1358
  return apiPost(ENDPOINTS.create_file_vehicle_document, payload);
1359
1359
  };
1360
1360
  var removeFileVehicleDocument = async (id) => {
1361
- return apiDelete(ENDPOINTS.remove_file_vehicle_document.replace(":id", id));
1361
+ return apiDelete(ENDPOINTS.remove_file_vehicle_document(id));
1362
1362
  };
1363
1363
  var update_calibration_file = async (payload) => {
1364
1364
  return apiPost(ENDPOINTS.update_calibration_file, payload);
1365
1365
  };
1366
1366
  var delete_calibration_file = async (id) => {
1367
- return apiDelete(ENDPOINTS.delete_calibration_file.replace(":id", id));
1367
+ return apiDelete(ENDPOINTS.delete_calibration_file(id));
1368
1368
  };
1369
1369
  var findVehicles = async (payload) => {
1370
1370
  return apiPost(ENDPOINTS.find, payload);
@@ -1379,25 +1379,25 @@ var createVehicle = async (payload) => {
1379
1379
  return apiPost(ENDPOINTS.create, payload);
1380
1380
  };
1381
1381
  var updateVehicle = async (id, payload) => {
1382
- return apiPatch(ENDPOINTS.update.replace(":id", id), payload);
1382
+ return apiPatch(ENDPOINTS.update(id), payload);
1383
1383
  };
1384
1384
  var deleteVehicle = async (id) => {
1385
1385
  return apiDelete(ENDPOINTS.delete(id));
1386
1386
  };
1387
1387
  var updateDetailsGpsSensor = async (id, payload) => {
1388
- return apiPatch(ENDPOINTS.update_details_gps_sensor.replace(":id", id), payload);
1388
+ return apiPatch(ENDPOINTS.update_details_gps_sensor(id), payload);
1389
1389
  };
1390
1390
  var updateDetailsTrip = async (id, payload) => {
1391
- return apiPatch(ENDPOINTS.update_details_trip.replace(":id", id), payload);
1391
+ return apiPatch(ENDPOINTS.update_details_trip(id), payload);
1392
1392
  };
1393
1393
  var updateVehicleBodyDetails = async (id, payload) => {
1394
- return apiPatch(ENDPOINTS.update_details_body.replace(":id", id), payload);
1394
+ return apiPatch(ENDPOINTS.update_details_body(id), payload);
1395
1395
  };
1396
1396
  var updateVehicleLifeCycleDetails = async (id, payload) => {
1397
- return apiPatch(ENDPOINTS.update_details_life_cycle.replace(":id", id), payload);
1397
+ return apiPatch(ENDPOINTS.update_details_life_cycle(id), payload);
1398
1398
  };
1399
1399
  var updateVehiclePurchaseDetails = async (id, payload) => {
1400
- return apiPatch(ENDPOINTS.update_details_purchase.replace(":id", id), payload);
1400
+ return apiPatch(ENDPOINTS.update_details_purchase(id), payload);
1401
1401
  };
1402
1402
  var linkDriverToVehicle = async (payload) => {
1403
1403
  return apiPost(ENDPOINTS.vehicle_driver_link, payload);
@@ -1406,10 +1406,10 @@ var unlinkDriverFromVehicle = async (payload) => {
1406
1406
  return apiPost(ENDPOINTS.vehicle_driver_unlink, payload);
1407
1407
  };
1408
1408
  var getDriverLinkHistoryByVehicle = async (id, params) => {
1409
- return apiGet(ENDPOINTS.find_vehicle_driver_link_history_by_vehicle.replace(":id", id), params);
1409
+ return apiGet(ENDPOINTS.find_vehicle_driver_link_history_by_vehicle(id), params);
1410
1410
  };
1411
1411
  var getDriverLinkHistoryByDriver = async (id, params) => {
1412
- return apiGet(ENDPOINTS.find_vehicle_driver_link_history_by_driver.replace(":id", id), params);
1412
+ return apiGet(ENDPOINTS.find_vehicle_driver_link_history_by_driver(id), params);
1413
1413
  };
1414
1414
  var linkDeviceToVehicle = async (payload) => {
1415
1415
  return apiPost(ENDPOINTS.vehicle_device_link, payload);
@@ -1418,10 +1418,10 @@ var unlinkDeviceFromVehicle = async (payload) => {
1418
1418
  return apiPost(ENDPOINTS.vehicle_device_unlink, payload);
1419
1419
  };
1420
1420
  var getDeviceLinkHistoryByVehicle = async (id, params) => {
1421
- return apiGet(ENDPOINTS.vehicle_device_link_history_by_vehicle.replace(":id", id), params);
1421
+ return apiGet(ENDPOINTS.vehicle_device_link_history_by_vehicle(id), params);
1422
1422
  };
1423
1423
  var getDeviceLinkHistoryByDevice = async (id, params) => {
1424
- return apiGet(ENDPOINTS.vehicle_device_link_history_by_device.replace(":id", id), params);
1424
+ return apiGet(ENDPOINTS.vehicle_device_link_history_by_device(id), params);
1425
1425
  };
1426
1426
  var createVehicleDocument = async (payload) => {
1427
1427
  return apiPost(ENDPOINTS.create_document, payload);
@@ -1430,10 +1430,10 @@ var findVehicleDocument = async (payload) => {
1430
1430
  return apiPost(ENDPOINTS.find_document, payload);
1431
1431
  };
1432
1432
  var updateVehicleDocument = async (id, payload) => {
1433
- return apiPatch(ENDPOINTS.update_document.replace(":id", id), payload);
1433
+ return apiPatch(ENDPOINTS.update_document(id), payload);
1434
1434
  };
1435
1435
  var removeVehicleDocument = async (id) => {
1436
- return apiDelete(ENDPOINTS.remove_document.replace(":id", id));
1436
+ return apiDelete(ENDPOINTS.remove_document(id));
1437
1437
  };
1438
1438
  var createVehicleDocumentExpiry = async (payload) => {
1439
1439
  return apiPost(ENDPOINTS.create_document_expiry, payload);
@@ -1442,10 +1442,10 @@ var findVehicleDocumentExpiry = async (payload) => {
1442
1442
  return apiPost(ENDPOINTS.find_document_expiry, payload);
1443
1443
  };
1444
1444
  var updateVehicleDocumentExpiry = async (id, payload) => {
1445
- return apiPatch(ENDPOINTS.update_document_expiry.replace(":id", id), payload);
1445
+ return apiPatch(ENDPOINTS.update_document_expiry(id), payload);
1446
1446
  };
1447
1447
  var removeVehicleDocumentExpiry = async (id) => {
1448
- return apiDelete(ENDPOINTS.remove_document_expiry.replace(":id", id));
1448
+ return apiDelete(ENDPOINTS.remove_document_expiry(id));
1449
1449
  };
1450
1450
  var getVehicleCache = async (organisationId) => {
1451
1451
  return apiGet(ENDPOINTS.find_cache.replace(":organisation_id", organisationId));
@@ -1,5 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { dW as MasterClass, dY as MasterClassDTO, d_ as MasterClassQueryDTO, dZ as MasterClassQuerySchema, dX as MasterClassSchema, e2 as createMasterClass, e4 as deleteMasterClass, e1 as findMasterClass, e5 as getMasterClassCache, e6 as getMasterClassCacheCount, e0 as newMasterClassPayload, d$ as toMasterClassPayload, e3 as updateMasterClass } from '../../../user_organisation_service-Cbc_ZtO4.js';
4
+ export { d4 as MasterClass, d6 as MasterClassDTO, d8 as MasterClassQueryDTO, d7 as MasterClassQuerySchema, d5 as MasterClassSchema, dc as createMasterClass, de as deleteMasterClass, db as findMasterClass, df as getMasterClassCache, dg as getMasterClassCacheCount, da as newMasterClassPayload, d9 as toMasterClassPayload, dd as updateMasterClass } from '../../../bookmark_service-5dgfuboV.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
+ import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -1,5 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { e7 as MasterProgram, e9 as MasterProgramDTO, eb as MasterProgramQueryDTO, ea as MasterProgramQuerySchema, e8 as MasterProgramSchema, ef as createMasterProgram, eh as deleteMasterProgram, ee as findMasterProgram, ei as getMasterProgramCache, ej as getMasterProgramCacheCount, ed as newMasterProgramPayload, ec as toMasterProgramPayload, eg as updateMasterProgram } from '../../../user_organisation_service-Cbc_ZtO4.js';
4
+ export { dh as MasterProgram, dj as MasterProgramDTO, dl as MasterProgramQueryDTO, dk as MasterProgramQuerySchema, di as MasterProgramSchema, dq as createMasterProgram, ds as deleteMasterProgram, dp as findMasterProgram, dt as getMasterProgramCache, du as getMasterProgramCacheCount, dn as newMasterProgramPayload, dm as toMasterProgramPayload, dr as updateMasterProgram } from '../../../bookmark_service-5dgfuboV.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
+ import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -1,5 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { f8 as MasterRelationship, fa as MasterRelationshipDTO, fc as MasterRelationshipQueryDTO, fb as MasterRelationshipQuerySchema, f9 as MasterRelationshipSchema, fg as createMasterRelationship, fi as deleteMasterRelationship, ff as findMasterRelationship, fj as getMasterRelationshipCache, fk as getMasterRelationshipCacheCount, fe as newMasterRelationshipPayload, fd as toMasterRelationshipPayload, fh as updateMasterRelationship } from '../../../user_organisation_service-Cbc_ZtO4.js';
4
+ export { ej as MasterRelationship, el as MasterRelationshipDTO, en as MasterRelationshipQueryDTO, em as MasterRelationshipQuerySchema, ek as MasterRelationshipSchema, er as createMasterRelationship, et as deleteMasterRelationship, eq as findMasterRelationship, eu as getMasterRelationshipCache, ev as getMasterRelationshipCacheCount, ep as newMasterRelationshipPayload, eo as toMasterRelationshipPayload, es as updateMasterRelationship } from '../../../bookmark_service-5dgfuboV.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
+ import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';