vms-nest-prisma-api-document 218.0.0 → 219.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 (106) hide show
  1. package/dist/core/Enums.d.ts +8 -1
  2. package/dist/core/Enums.js +9 -0
  3. package/dist/services/account/bookmark_service.d.ts +11 -11
  4. package/dist/services/account/notification_preferences.service.d.ts +18 -18
  5. package/dist/services/account/report_preferences.service.d.ts +7 -7
  6. package/dist/services/account/ticket_service.d.ts +1 -1
  7. package/dist/services/fleet/bus_mangement/bus_stop.d.ts +23 -23
  8. package/dist/services/fleet/bus_mangement/calender.d.ts +8 -8
  9. package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
  10. package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
  11. package/dist/services/fleet/bus_mangement/student.d.ts +17 -17
  12. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +17 -17
  13. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +46 -46
  14. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +1 -0
  15. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +30 -30
  16. package/dist/services/fleet/incident_management/incident_management_service.d.ts +77 -71
  17. package/dist/services/fleet/incident_management/incident_management_service.js +17 -5
  18. package/dist/services/fleet/issue_management/issue_management_service.d.ts +17 -11
  19. package/dist/services/fleet/issue_management/issue_management_service.js +12 -6
  20. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +400 -0
  21. package/dist/services/fleet/service_management/fleet_service_management_service.js +573 -0
  22. package/dist/services/fleet/service_management/fleet_service_management_task_service.d.ts +145 -0
  23. package/dist/services/fleet/service_management/fleet_service_management_task_service.js +326 -0
  24. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
  25. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.js +41 -41
  26. package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
  27. package/dist/services/fleet/vendor_management/fleet_vendor_service.js +99 -93
  28. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
  29. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.js +53 -53
  30. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +3 -3
  31. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +6 -6
  32. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +7 -7
  33. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
  34. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -1
  35. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
  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 +1 -1
  38. package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
  39. package/dist/services/main/sims/master_sim_service.d.ts +1 -1
  40. package/dist/services/main/users/auth_service.d.ts +1 -1
  41. package/dist/services/main/users/user_admin_service.d.ts +3 -3
  42. package/dist/services/main/users/user_organisation_service.d.ts +1 -1
  43. package/dist/services/main/users/user_service.d.ts +1 -1
  44. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
  45. package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
  46. package/dist/services/master/bus/master_class_service.d.ts +1 -1
  47. package/dist/services/master/bus/master_program_service.d.ts +1 -1
  48. package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
  49. package/dist/services/master/bus/master_section_service.d.ts +1 -1
  50. package/dist/services/master/bus/master_semester_service.d.ts +1 -1
  51. package/dist/services/master/bus/master_stream_service.d.ts +1 -1
  52. package/dist/services/master/bus/master_year_service.d.ts +1 -1
  53. package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
  54. package/dist/services/master/device/master_device_model_service.d.ts +1 -1
  55. package/dist/services/master/device/master_device_type_service.d.ts +1 -1
  56. package/dist/services/master/expense/master_expense_name_service.d.ts +5 -5
  57. package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
  58. package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
  59. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
  60. package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -1
  61. package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
  62. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +4 -4
  63. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +4 -4
  64. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +4 -4
  65. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +4 -4
  66. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +5 -5
  67. package/dist/services/master/main/master_main_country_service.d.ts +1 -1
  68. package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
  69. package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
  70. package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
  71. package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
  72. package/dist/services/master/main/master_main_language_service.d.ts +1 -1
  73. package/dist/services/master/main/master_main_state_service.d.ts +1 -1
  74. package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
  75. package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
  76. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
  77. package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
  78. package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
  79. package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
  80. package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
  81. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
  82. package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
  83. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
  84. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
  85. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
  86. package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
  87. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +3 -3
  88. package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
  89. package/dist/services/master/tyre/master_tyre_model_service.d.ts +5 -5
  90. package/dist/services/master/user/master_user_role_service.d.ts +1 -1
  91. package/dist/services/master/user/master_user_status_service.d.ts +1 -1
  92. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
  93. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
  94. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +3 -3
  95. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
  96. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
  97. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
  98. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
  99. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
  100. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
  101. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
  102. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
  103. package/dist/services/website/contact_us_detail_service.d.ts +1 -1
  104. package/dist/services/website/static_pages_service.d.ts +1 -1
  105. package/dist/{user_organisation_service-BE5iA8UK.d.ts → user_organisation_service-Bkq3GOUs.d.ts} +59 -56
  106. package/package.json +1 -1
@@ -372,11 +372,11 @@ var FleetVendorSchema = z3.object({
372
372
  logo_key: stringOptional("Logo Key", 0, 300),
373
373
  logo_name: stringOptional("Logo Name", 0, 300),
374
374
  // Business Details
375
- organisation_name: stringOptional("Organisation Name", 0, 150),
375
+ organisation_name: stringOptional("Organisation Name", 0, 100),
376
376
  gst_number: stringOptional("GST Number", 0, 15),
377
377
  pan_number: stringOptional("PAN Number", 0, 10),
378
- tax_id_number: stringOptional("Tax ID Number", 0, 30),
379
- vat_number: stringOptional("VAT Number", 0, 30),
378
+ tax_id_number: stringOptional("Tax ID Number", 0, 50),
379
+ vat_number: stringOptional("VAT Number", 0, 50),
380
380
  business_registration_number: stringOptional(
381
381
  "Business Registration Number",
382
382
  0,
@@ -554,12 +554,14 @@ var FleetVendorDocumentSchema = z3.object({
554
554
  issue_date: dateOptional("Issue Date"),
555
555
  expiry_date: dateOptional("Expiry Date"),
556
556
  remarks: stringOptional("Remarks", 0, 150),
557
+ // Other
558
+ status: enumMandatory("Status", Status, "Active" /* Active */),
559
+ time_zone_id: single_select_mandatory("MasterMainTimeZone"),
557
560
  FleetVendorDocumentFileSchema: nestedArrayOfObjectsOptional(
558
561
  "FleetVendorDocumentFileSchema",
559
562
  FleetVendorDocumentFileSchema,
560
563
  []
561
- ),
562
- status: enumMandatory("Status", Status, "Active" /* Active */)
564
+ )
563
565
  });
564
566
  var FleetVendorDocumentQuerySchema = BaseQuerySchema.extend({
565
567
  fleet_vendor_document_ids: multi_select_optional("FleetVendorDocument"),
@@ -573,32 +575,32 @@ var FleetVendorDocumentQuerySchema = BaseQuerySchema.extend({
573
575
  document_type_ids: multi_select_optional("MasterVendorDocumentType")
574
576
  // ✅ Multi-selection -> MasterVendorDocumentType
575
577
  });
576
- var toFleetVendorPayload = (vendor) => ({
577
- vendor_name: vendor.vendor_name || "",
578
- vendor_code: vendor.vendor_code || "",
579
- business_mobile: vendor.business_mobile || "",
580
- business_email: vendor.business_email || "",
581
- logo_url: vendor.logo_url || "",
582
- logo_key: vendor.logo_key || "",
583
- logo_name: vendor.logo_name || "",
578
+ var toFleetVendorPayload = (row) => ({
579
+ vendor_name: row.vendor_name || "",
580
+ vendor_code: row.vendor_code || "",
581
+ business_mobile: row.business_mobile || "",
582
+ business_email: row.business_email || "",
583
+ logo_url: row.logo_url || "",
584
+ logo_key: row.logo_key || "",
585
+ logo_name: row.logo_name || "",
584
586
  // Business Details
585
- organisation_name: vendor.organisation_name || "",
586
- gst_number: vendor.gst_number || "",
587
- pan_number: vendor.pan_number || "",
588
- tax_id_number: vendor.tax_id_number || "",
589
- vat_number: vendor.vat_number || "",
590
- business_registration_number: vendor.business_email || "",
587
+ organisation_name: row.organisation_name || "",
588
+ gst_number: row.gst_number || "",
589
+ pan_number: row.pan_number || "",
590
+ tax_id_number: row.tax_id_number || "",
591
+ vat_number: row.vat_number || "",
592
+ business_registration_number: row.business_email || "",
591
593
  // Financial Details
592
- payment_terms: vendor.payment_terms || "",
593
- financial_notes: vendor.financial_notes || "",
594
+ payment_terms: row.payment_terms || "",
595
+ financial_notes: row.financial_notes || "",
594
596
  // Additional Information
595
- additional_details_1: vendor.additional_details_1 || "",
596
- additional_details_2: vendor.additional_details_2 || "",
597
- additional_details_3: vendor.additional_details_3 || "",
597
+ additional_details_1: row.additional_details_1 || "",
598
+ additional_details_2: row.additional_details_2 || "",
599
+ additional_details_3: row.additional_details_3 || "",
598
600
  // Relations
599
- organisation_id: vendor.organisation_id || "",
600
- vendor_type_ids: vendor.FleetVendorTypeLink?.map((v) => v.vendor_type_id) || [],
601
- vendor_tag_ids: vendor.FleetVendorTagLink?.map((v) => v.vendor_tag_id) || [],
601
+ organisation_id: row.organisation_id || "",
602
+ vendor_type_ids: row.FleetVendorTypeLink?.map((v) => v.vendor_type_id) || [],
603
+ vendor_tag_ids: row.FleetVendorTagLink?.map((v) => v.vendor_tag_id) || [],
602
604
  status: "Active" /* Active */
603
605
  });
604
606
  var newFleetVendorPayload = () => ({
@@ -625,27 +627,27 @@ var newFleetVendorPayload = () => ({
625
627
  vendor_tag_ids: [],
626
628
  status: "Active" /* Active */
627
629
  });
628
- var toFleetVendorAddressPayload = (vendorAddress) => ({
629
- vendor_address_label: vendorAddress.vendor_address_label || "HQ" /* HQ */,
630
+ var toFleetVendorAddressPayload = (row) => ({
631
+ vendor_address_label: row.vendor_address_label || "HQ" /* HQ */,
630
632
  // Address Details
631
- address_line1: vendorAddress.address_line1 || "",
632
- address_line2: vendorAddress.address_line2 || "",
633
- locality_landmark: vendorAddress.locality_landmark || "",
634
- neighborhood: vendorAddress.neighborhood || "",
635
- town_city: vendorAddress.town_city || "",
636
- district_county: vendorAddress.district_county || "",
637
- state_province_region: vendorAddress.state_province_region || "",
638
- postal_code: vendorAddress.postal_code || "",
639
- country: vendorAddress.country || "",
640
- country_code: vendorAddress.country_code || "",
633
+ address_line1: row.address_line1 || "",
634
+ address_line2: row.address_line2 || "",
635
+ locality_landmark: row.locality_landmark || "",
636
+ neighborhood: row.neighborhood || "",
637
+ town_city: row.town_city || "",
638
+ district_county: row.district_county || "",
639
+ state_province_region: row.state_province_region || "",
640
+ postal_code: row.postal_code || "",
641
+ country: row.country || "",
642
+ country_code: row.country_code || "",
641
643
  // Location Details
642
- latitude: vendorAddress.latitude || 0,
643
- longitude: vendorAddress.longitude || 0,
644
- google_location: vendorAddress.google_location || "",
645
- organisation_id: vendorAddress.organisation_id || "",
646
- vendor_id: vendorAddress.vendor_id || "",
647
- is_default: vendorAddress.is_default || "No" /* No */,
648
- notes: vendorAddress.notes || "",
644
+ latitude: row.latitude || 0,
645
+ longitude: row.longitude || 0,
646
+ google_location: row.google_location || "",
647
+ organisation_id: row.organisation_id || "",
648
+ vendor_id: row.vendor_id || "",
649
+ is_default: row.is_default || "No" /* No */,
650
+ notes: row.notes || "",
649
651
  status: "Active" /* Active */
650
652
  });
651
653
  var newFleetVendorAddressPayload = () => ({
@@ -669,20 +671,20 @@ var newFleetVendorAddressPayload = () => ({
669
671
  notes: "",
670
672
  status: "Active" /* Active */
671
673
  });
672
- var toFleetVendorBankAccountPayload = (vendorBankAccount) => ({
673
- bank_name: vendorBankAccount.bank_name || "",
674
- bank_branch_name: vendorBankAccount.bank_branch_name || "",
675
- bank_account_name: vendorBankAccount.bank_account_name || "",
676
- bank_account_number: vendorBankAccount.bank_account_number || "",
677
- ifsc_code: vendorBankAccount.ifsc_code || "",
678
- swift_code: vendorBankAccount.swift_code || "",
679
- iban_number: vendorBankAccount.iban_number || "",
680
- upi_id: vendorBankAccount.upi_id || "",
681
- is_primary: vendorBankAccount.is_primary || "No" /* No */,
682
- notes: vendorBankAccount.notes || "",
674
+ var toFleetVendorBankAccountPayload = (row) => ({
675
+ bank_name: row.bank_name || "",
676
+ bank_branch_name: row.bank_branch_name || "",
677
+ bank_account_name: row.bank_account_name || "",
678
+ bank_account_number: row.bank_account_number || "",
679
+ ifsc_code: row.ifsc_code || "",
680
+ swift_code: row.swift_code || "",
681
+ iban_number: row.iban_number || "",
682
+ upi_id: row.upi_id || "",
683
+ is_primary: row.is_primary || "No" /* No */,
684
+ notes: row.notes || "",
683
685
  // Relations
684
- organisation_id: vendorBankAccount.organisation_id || "",
685
- vendor_id: vendorBankAccount.vendor_id || "",
686
+ organisation_id: row.organisation_id || "",
687
+ vendor_id: row.vendor_id || "",
686
688
  status: "Active" /* Active */
687
689
  });
688
690
  var newFleetVendorBankAccountPayload = () => ({
@@ -700,25 +702,25 @@ var newFleetVendorBankAccountPayload = () => ({
700
702
  organisation_id: "",
701
703
  status: "Active" /* Active */
702
704
  });
703
- var toFleetVendorContactPersonsPayload = (vendorContactPersons) => ({
705
+ var toFleetVendorContactPersonsPayload = (row) => ({
704
706
  // Image
705
- image_url: vendorContactPersons.image_url || "",
706
- image_key: vendorContactPersons.image_key || "",
707
- image_name: vendorContactPersons.image_name || "",
707
+ image_url: row.image_url || "",
708
+ image_key: row.image_key || "",
709
+ image_name: row.image_name || "",
708
710
  // Primary Details
709
- name: vendorContactPersons.name || "",
710
- mobile: vendorContactPersons.mobile || "",
711
- alternative_mobile: vendorContactPersons.alternative_mobile || "",
712
- email: vendorContactPersons.email || "",
713
- designation: vendorContactPersons.designation || "",
711
+ name: row.name || "",
712
+ mobile: row.mobile || "",
713
+ alternative_mobile: row.alternative_mobile || "",
714
+ email: row.email || "",
715
+ designation: row.designation || "",
714
716
  // Additional Details
715
- branch_name: vendorContactPersons.branch_name || "",
716
- preferred_language: vendorContactPersons.preferred_language || "",
717
- is_primary: vendorContactPersons.is_primary || "No" /* No */,
718
- is_active_contact: vendorContactPersons.is_active_contact || "Yes" /* Yes */,
719
- notes: vendorContactPersons.notes || "",
720
- organisation_id: vendorContactPersons.organisation_id || "",
721
- vendor_id: vendorContactPersons.vendor_id || "",
717
+ branch_name: row.branch_name || "",
718
+ preferred_language: row.preferred_language || "",
719
+ is_primary: row.is_primary || "No" /* No */,
720
+ is_active_contact: row.is_active_contact || "Yes" /* Yes */,
721
+ notes: row.notes || "",
722
+ organisation_id: row.organisation_id || "",
723
+ vendor_id: row.vendor_id || "",
722
724
  status: "Active" /* Active */
723
725
  });
724
726
  var newFleetVendorContactPersonsPayload = () => ({
@@ -739,13 +741,13 @@ var newFleetVendorContactPersonsPayload = () => ({
739
741
  vendor_id: "",
740
742
  status: "Active" /* Active */
741
743
  });
742
- var toFleetVendorReviewPayload = (vendorReview) => ({
743
- rating: vendorReview.rating || 0,
744
- comment: vendorReview.comment || "",
744
+ var toFleetVendorReviewPayload = (row) => ({
745
+ rating: row.rating || 0,
746
+ comment: row.comment || "",
745
747
  // Relations
746
- organisation_id: vendorReview.organisation_id || "",
747
- vendor_id: vendorReview.vendor_id || "",
748
- user_id: vendorReview.user_id || "",
748
+ organisation_id: row.organisation_id || "",
749
+ vendor_id: row.vendor_id || "",
750
+ user_id: row.user_id || "",
749
751
  status: "Active" /* Active */
750
752
  });
751
753
  var newFleetVendorReviewPayload = () => ({
@@ -756,21 +758,23 @@ var newFleetVendorReviewPayload = () => ({
756
758
  user_id: "",
757
759
  status: "Active" /* Active */
758
760
  });
759
- var toFleetVendorDocumentPayload = (vendorDocument) => ({
761
+ var toFleetVendorDocumentPayload = (row) => ({
760
762
  // Document Details
761
- document_name: vendorDocument.document_name || "",
762
- document_number: vendorDocument.document_number || "",
763
- issuing_authority: vendorDocument.issuing_authority || "",
764
- issue_date: vendorDocument.issue_date || "",
765
- expiry_date: vendorDocument.expiry_date || "",
766
- remarks: vendorDocument.remarks || "",
763
+ document_name: row.document_name || "",
764
+ document_number: row.document_number || "",
765
+ issuing_authority: row.issuing_authority || "",
766
+ issue_date: row.issue_date || "",
767
+ expiry_date: row.expiry_date || "",
768
+ remarks: row.remarks || "",
767
769
  // Relations
768
- organisation_id: vendorDocument.organisation_id || "",
769
- vendor_id: vendorDocument.vendor_id || "",
770
- user_id: vendorDocument.user_id || "",
771
- document_type_id: vendorDocument.document_type_id || "",
770
+ organisation_id: row.organisation_id || "",
771
+ vendor_id: row.vendor_id || "",
772
+ user_id: row.user_id || "",
773
+ document_type_id: row.document_type_id || "",
772
774
  status: "Active" /* Active */,
773
- FleetVendorDocumentFileSchema: vendorDocument.FleetVendorDocumentFile?.map((file) => ({
775
+ time_zone_id: "",
776
+ // Needs to be provided manually
777
+ FleetVendorDocumentFileSchema: row.FleetVendorDocumentFile?.map((file) => ({
774
778
  fleet_vendor_document_file_id: file.fleet_vendor_document_file_id ?? "",
775
779
  usage_type: file.usage_type,
776
780
  file_type: file.file_type,
@@ -799,6 +803,8 @@ var newFleetVendorDocumentPayload = () => ({
799
803
  user_id: "",
800
804
  document_type_id: "",
801
805
  status: "Active" /* Active */,
806
+ time_zone_id: "",
807
+ // Needs to be provided manually
802
808
  FleetVendorDocumentFileSchema: []
803
809
  });
804
810
  var vendor_logo_presigned_url = async (fileName) => {
@@ -1,6 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { hs as FleetVendorServiceCenter, hu as FleetVendorServiceCenterDTO, hw as FleetVendorServiceCenterQueryDTO, hv as FleetVendorServiceCenterQuerySchema, ht as FleetVendorServiceCenterSchema, hA as createFleetVendorServiceCenter, hC as deleteFleetVendorServiceCenter, hz as findFleetVendorServiceCenter, hy as newFleetVendorServiceCenterPayload, hx as toFleetVendorServiceCenterPayload, hB as updateFleetVendorServiceCenter } from '../../../user_organisation_service-BE5iA8UK.js';
4
+ export { g as FleetVendorServiceCenter, hv as FleetVendorServiceCenterDTO, hx as FleetVendorServiceCenterQueryDTO, hw as FleetVendorServiceCenterQuerySchema, hu as FleetVendorServiceCenterSchema, hB as createFleetVendorServiceCenter, hD as deleteFleetVendorServiceCenter, hA as findFleetVendorServiceCenter, hz as newFleetVendorServiceCenterPayload, hy as toFleetVendorServiceCenterPayload, hC as updateFleetVendorServiceCenter } from '../../../user_organisation_service-Bkq3GOUs.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../master/main/master_main_sim_provider_service.js';
@@ -269,26 +269,26 @@ var FleetVendorServiceCenterSchema = z3.object({
269
269
  vendor_id: single_select_mandatory("FleetVendor"),
270
270
  // ✅ Single-Selection -> FleetVendor
271
271
  // Basic Info
272
- center_name: stringMandatory("Center Name", 3, 150),
273
- center_code: stringOptional("Center Code", 0, 50),
272
+ center_name: stringMandatory("Center Name", 3, 100),
273
+ center_code: stringOptional("Center Code", 0, 100),
274
274
  is_company_owned: enumMandatory("Is Company Owned", YesNo, "No" /* No */),
275
275
  oem_authorised: enumMandatory("OEM Authorised", YesNo, "No" /* No */),
276
- oem_brand_name: stringOptional("OEM Brand Name", 0, 150),
277
- service_brand_name: stringOptional("Service Brand Name", 0, 150),
276
+ oem_brand_name: stringOptional("OEM Brand Name", 0, 100),
277
+ service_brand_name: stringOptional("Service Brand Name", 0, 100),
278
278
  // Operational Details
279
- operating_hours: stringOptional("Operating Hours", 0, 200),
279
+ operating_hours: stringOptional("Operating Hours", 0, 100),
280
280
  is_24x7: enumMandatory("Is 24x7", YesNo, "No" /* No */),
281
281
  supports_credit: enumMandatory("Supports Credit", YesNo, "No" /* No */),
282
282
  pickup_and_drop: enumMandatory("Pickup And Drop", YesNo, "No" /* No */),
283
283
  roadside_assistance: enumMandatory("Roadside Assistance", YesNo, "No" /* No */),
284
284
  warranty_repairs: enumMandatory("Warranty Repairs", YesNo, "No" /* No */),
285
- supported_service_types: stringOptional("Supported Service Types", 0, 300),
286
- supported_vehicle_types: stringOptional("Supported Vehicle Types", 0, 200),
285
+ supported_service_types: stringOptional("Supported Service Types", 0, 500),
286
+ supported_vehicle_types: stringOptional("Supported Vehicle Types", 0, 500),
287
287
  has_alignment_bay: enumMandatory("Has Alignment Bay", YesNo, "No" /* No */),
288
288
  has_body_shop: enumMandatory("Has Body Shop", YesNo, "No" /* No */),
289
- has_paint_booth: enumMandatory("Has Paint Booth", YesNo, "Yes" /* Yes */),
289
+ has_paint_booth: enumMandatory("Has Paint Booth", YesNo, "No" /* No */),
290
290
  has_wash_bay: enumMandatory("Has Wash Bay", YesNo, "Yes" /* Yes */),
291
- has_tow_truck: enumMandatory("Has Tow Truck", YesNo, "Yes" /* Yes */),
291
+ has_tow_truck: enumMandatory("Has Tow Truck", YesNo, "No" /* No */),
292
292
  service_capacity_per_day: numberOptional("Service Capacity Per Day", 0),
293
293
  eta_regular_service_hours: numberOptional("ETA Regular Service Hours"),
294
294
  eta_repair_hours: numberOptional("ETA Repair Hours"),
@@ -328,56 +328,56 @@ var FleetVendorServiceCenterQuerySchema = BaseQuerySchema.extend({
328
328
  oem_authorised: enumArrayOptional("OEM Authorised", YesNo),
329
329
  is_preferred_station: enumArrayOptional("Is Preferred Station", YesNo)
330
330
  });
331
- var toFleetVendorServiceCenterPayload = (vendorServiceCenter) => ({
331
+ var toFleetVendorServiceCenterPayload = (row) => ({
332
332
  // Basic Info
333
- center_name: vendorServiceCenter.center_name || "",
334
- center_code: vendorServiceCenter.center_code || "",
335
- is_company_owned: vendorServiceCenter.is_company_owned || "No" /* No */,
336
- oem_authorised: vendorServiceCenter.oem_authorised || "No" /* No */,
337
- oem_brand_name: vendorServiceCenter.oem_brand_name || "",
338
- service_brand_name: vendorServiceCenter.service_brand_name || "",
333
+ center_name: row.center_name || "",
334
+ center_code: row.center_code || "",
335
+ is_company_owned: row.is_company_owned || "No" /* No */,
336
+ oem_authorised: row.oem_authorised || "No" /* No */,
337
+ oem_brand_name: row.oem_brand_name || "",
338
+ service_brand_name: row.service_brand_name || "",
339
339
  // Notes
340
- center_notes: vendorServiceCenter.center_notes || "",
341
- is_preferred_center: vendorServiceCenter.is_preferred_center || "No" /* No */,
340
+ center_notes: row.center_notes || "",
341
+ is_preferred_center: row.is_preferred_center || "No" /* No */,
342
342
  // Operational Details
343
- operating_hours: vendorServiceCenter.operating_hours || "",
344
- is_24x7: vendorServiceCenter.is_24x7 || "No" /* No */,
345
- supports_credit: vendorServiceCenter.supports_credit || "No" /* No */,
346
- pickup_and_drop: vendorServiceCenter.pickup_and_drop || "No" /* No */,
347
- roadside_assistance: vendorServiceCenter.roadside_assistance || "No" /* No */,
348
- warranty_repairs: vendorServiceCenter.warranty_repairs || "No" /* No */,
349
- supported_service_types: vendorServiceCenter.supported_service_types || "",
350
- supported_vehicle_types: vendorServiceCenter.supported_vehicle_types || "",
351
- has_alignment_bay: vendorServiceCenter.has_alignment_bay || "No" /* No */,
352
- has_body_shop: vendorServiceCenter.has_body_shop || "No" /* No */,
353
- has_paint_booth: vendorServiceCenter.has_paint_booth || "No" /* No */,
354
- has_wash_bay: vendorServiceCenter.has_wash_bay || "Yes" /* Yes */,
355
- has_tow_truck: vendorServiceCenter.has_tow_truck || "No" /* No */,
356
- service_capacity_per_day: vendorServiceCenter.service_capacity_per_day || 0,
357
- eta_regular_service_hours: vendorServiceCenter.eta_regular_service_hours || 0,
358
- eta_repair_hours: vendorServiceCenter.eta_repair_hours || 0,
343
+ operating_hours: row.operating_hours || "",
344
+ is_24x7: row.is_24x7 || "No" /* No */,
345
+ supports_credit: row.supports_credit || "No" /* No */,
346
+ pickup_and_drop: row.pickup_and_drop || "No" /* No */,
347
+ roadside_assistance: row.roadside_assistance || "No" /* No */,
348
+ warranty_repairs: row.warranty_repairs || "No" /* No */,
349
+ supported_service_types: row.supported_service_types || "",
350
+ supported_vehicle_types: row.supported_vehicle_types || "",
351
+ has_alignment_bay: row.has_alignment_bay || "No" /* No */,
352
+ has_body_shop: row.has_body_shop || "No" /* No */,
353
+ has_paint_booth: row.has_paint_booth || "No" /* No */,
354
+ has_wash_bay: row.has_wash_bay || "Yes" /* Yes */,
355
+ has_tow_truck: row.has_tow_truck || "No" /* No */,
356
+ service_capacity_per_day: row.service_capacity_per_day || 0,
357
+ eta_regular_service_hours: row.eta_regular_service_hours || 0,
358
+ eta_repair_hours: row.eta_repair_hours || 0,
359
359
  // Contact Info
360
- center_email: vendorServiceCenter.center_email || "",
361
- center_mobile: vendorServiceCenter.center_mobile || "",
362
- center_phone: vendorServiceCenter.center_phone || "",
363
- website_url: vendorServiceCenter.website_url || "",
360
+ center_email: row.center_email || "",
361
+ center_mobile: row.center_mobile || "",
362
+ center_phone: row.center_phone || "",
363
+ website_url: row.website_url || "",
364
364
  // Address Details
365
- address_line1: vendorServiceCenter.address_line1 || "",
366
- address_line2: vendorServiceCenter.address_line2 || "",
367
- locality_landmark: vendorServiceCenter.locality_landmark || "",
368
- neighborhood: vendorServiceCenter.neighborhood || "",
369
- town_city: vendorServiceCenter.town_city || "",
370
- district_county: vendorServiceCenter.district_county || "",
371
- state_province_region: vendorServiceCenter.state_province_region || "",
372
- postal_code: vendorServiceCenter.postal_code || "",
373
- country: vendorServiceCenter.country || "",
374
- country_code: vendorServiceCenter.country_code || "",
365
+ address_line1: row.address_line1 || "",
366
+ address_line2: row.address_line2 || "",
367
+ locality_landmark: row.locality_landmark || "",
368
+ neighborhood: row.neighborhood || "",
369
+ town_city: row.town_city || "",
370
+ district_county: row.district_county || "",
371
+ state_province_region: row.state_province_region || "",
372
+ postal_code: row.postal_code || "",
373
+ country: row.country || "",
374
+ country_code: row.country_code || "",
375
375
  // Location Details
376
- latitude: vendorServiceCenter.latitude || 0,
377
- longitude: vendorServiceCenter.longitude || 0,
378
- google_location: vendorServiceCenter.google_location || "",
379
- organisation_id: vendorServiceCenter.organisation_id || "",
380
- vendor_id: vendorServiceCenter.vendor_id || "",
376
+ latitude: row.latitude || 0,
377
+ longitude: row.longitude || 0,
378
+ google_location: row.google_location || "",
379
+ organisation_id: row.organisation_id || "",
380
+ vendor_id: row.vendor_id || "",
381
381
  status: "Active" /* Active */
382
382
  });
383
383
  var newFleetVendorServiceCenterPayload = () => ({
@@ -1,7 +1,7 @@
1
1
  import { GeofencePurposeType, GeofenceType, 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 } from '../../../../user_organisation_service-BE5iA8UK.js';
4
+ import { U as UserOrganisation } from '../../../../user_organisation_service-Bkq3GOUs.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
6
  import '../../../master/main/master_main_sim_provider_service.js';
7
7
 
@@ -172,7 +172,6 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
172
172
  gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
173
173
  }, "strip", z.ZodTypeAny, {
174
174
  status: Status[];
175
- gps_geofence_ids: string[];
176
175
  search: string;
177
176
  paging: PAGING;
178
177
  page_count: number;
@@ -196,11 +195,11 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
196
195
  organisation_ids: string[];
197
196
  geofence_purpose_type: GeofencePurposeType[];
198
197
  geofence_type: GeofenceType[];
198
+ gps_geofence_ids: string[];
199
199
  }, {
200
200
  date_format_id: string;
201
201
  time_zone_id: string;
202
202
  status?: Status[] | undefined;
203
- gps_geofence_ids?: string[] | undefined;
204
203
  search?: string | undefined;
205
204
  paging?: PAGING | undefined;
206
205
  page_count?: unknown;
@@ -222,6 +221,7 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
222
221
  organisation_ids?: string[] | undefined;
223
222
  geofence_purpose_type?: GeofencePurposeType[] | undefined;
224
223
  geofence_type?: GeofenceType[] | undefined;
224
+ gps_geofence_ids?: string[] | undefined;
225
225
  }>;
226
226
  type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
227
227
  declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
@@ -1,7 +1,7 @@
1
1
  import { GeofenceStatusType, 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, b as MasterDriver } from '../../../../user_organisation_service-BE5iA8UK.js';
4
+ import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-Bkq3GOUs.js';
5
5
  import { GPSGeofence } from './gps_geofence_service.js';
6
6
  import '../../../../zod_utils/zod_base_schema.js';
7
7
  import '../../../master/main/master_main_sim_provider_service.js';
@@ -36,23 +36,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
36
36
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
37
37
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
38
38
  }, "strip", z.ZodTypeAny, {
39
+ geofence_status_type: GeofenceStatusType;
40
+ geofence_time: string;
39
41
  status: Status;
40
42
  organisation_id: string;
41
43
  vehicle_id: string;
42
44
  driver_id: string;
43
45
  gps_geofence_id: string;
44
46
  time_zone_id: string;
47
+ }, {
45
48
  geofence_status_type: GeofenceStatusType;
46
49
  geofence_time: string;
47
- }, {
48
50
  status: Status;
49
51
  organisation_id: string;
50
52
  vehicle_id: string;
51
53
  driver_id: string;
52
54
  gps_geofence_id: string;
53
55
  time_zone_id: string;
54
- geofence_status_type: GeofenceStatusType;
55
- geofence_time: string;
56
56
  }>;
57
57
  type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
58
58
  declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
@@ -94,6 +94,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
94
94
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
95
95
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
96
96
  }, "strip", z.ZodTypeAny, {
97
+ geofence_status_type: GeofenceStatusType[];
97
98
  status: Status[];
98
99
  time_zone_id: string;
99
100
  search: string;
@@ -121,12 +122,12 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
121
122
  gps_geofence_ids: string[];
122
123
  from_date: string;
123
124
  to_date: string;
124
- geofence_status_type: GeofenceStatusType[];
125
125
  }, {
126
126
  time_zone_id: string;
127
127
  date_format_id: string;
128
128
  from_date: string;
129
129
  to_date: string;
130
+ geofence_status_type?: GeofenceStatusType[] | undefined;
130
131
  status?: Status[] | undefined;
131
132
  search?: string | undefined;
132
133
  paging?: PAGING | undefined;
@@ -150,7 +151,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
150
151
  vehicle_ids?: string[] | undefined;
151
152
  driver_ids?: string[] | undefined;
152
153
  gps_geofence_ids?: string[] | undefined;
153
- geofence_status_type?: GeofenceStatusType[] | undefined;
154
154
  }>;
155
155
  type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
156
156
  declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
@@ -1,7 +1,7 @@
1
1
  import { 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, b as MasterDriver } from '../../../../user_organisation_service-BE5iA8UK.js';
4
+ import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-Bkq3GOUs.js';
5
5
  import { GPSGeofence } from './gps_geofence_service.js';
6
6
  import { GPSGeofenceTransaction } from './gps_geofence_transaction_service.js';
7
7
  import '../../../../zod_utils/zod_base_schema.js';
@@ -46,27 +46,27 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
46
46
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
47
47
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
48
48
  }, "strip", z.ZodTypeAny, {
49
- geofence_enter_date_time: string;
50
- geofence_exit_date_time: string;
51
- duration_seconds: number;
52
49
  status: Status;
53
50
  organisation_id: string;
54
51
  vehicle_id: string;
55
52
  driver_id: string;
56
53
  gps_geofence_id: string;
54
+ time_zone_id: string;
55
+ geofence_enter_date_time: string;
56
+ geofence_exit_date_time: string;
57
+ duration_seconds: number;
57
58
  enter_gps_geofence_transaction_id: string;
58
59
  exit_gps_geofence_transaction_id: string;
59
- time_zone_id: string;
60
60
  }, {
61
- geofence_enter_date_time: string;
62
61
  status: Status;
63
62
  organisation_id: string;
64
63
  vehicle_id: string;
65
64
  driver_id: string;
66
65
  gps_geofence_id: string;
66
+ time_zone_id: string;
67
+ geofence_enter_date_time: string;
67
68
  enter_gps_geofence_transaction_id: string;
68
69
  exit_gps_geofence_transaction_id: string;
69
- time_zone_id: string;
70
70
  geofence_exit_date_time?: string | undefined;
71
71
  duration_seconds?: unknown;
72
72
  }>;
@@ -1,7 +1,7 @@
1
1
  import { 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, b as MasterDriver } from '../../../../user_organisation_service-BE5iA8UK.js';
4
+ import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-Bkq3GOUs.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
6
  import '../../../master/main/master_main_sim_provider_service.js';
7
7
 
@@ -55,12 +55,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
55
55
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
56
56
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- duration_seconds: number;
59
58
  status: Status;
60
59
  organisation_id: string;
61
60
  vehicle_id: string;
62
61
  driver_id: string;
63
62
  time_zone_id: string;
63
+ duration_seconds: number;
64
64
  from_geofence_exit_date_time: string;
65
65
  to_geofence_enter_date_time: string;
66
66
  travel_duration_seconds: number;
@@ -1,7 +1,7 @@
1
1
  import { LinkType, LinkStatus, Status, ShareChannel, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
2
2
  import { FBR, BR, SBR } from '../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
- import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-BE5iA8UK.js';
4
+ import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-Bkq3GOUs.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../master/main/master_main_sim_provider_service.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { TrackHistoryLinkStatus, Status, ShareChannel, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
2
2
  import { FBR, BR, SBR } from '../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
- import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-BE5iA8UK.js';
4
+ import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-Bkq3GOUs.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../master/main/master_main_sim_provider_service.js';
7
7