vms-nest-prisma-api-document 1.2.1 → 1.3.1

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 (228) hide show
  1. package/dist/core/{BaseRequest.d.ts → BaseRequest.d.mts} +1 -1
  2. package/dist/core/BaseRequest.mjs +17 -0
  3. package/dist/core/BaseResponse.mjs +7 -0
  4. package/dist/core/{Enums.js → Enums.mjs} +2 -93
  5. package/dist/core/apiCall.mjs +32 -0
  6. package/dist/core/sdk-config.mjs +15 -0
  7. package/dist/index.mjs +11 -0
  8. package/dist/services/account/{alert_service.d.ts → alert_service.d.mts} +4 -4
  9. package/dist/services/account/alert_service.mjs +231 -0
  10. package/dist/services/account/analytics/{user_login_analytics_service.d.ts → user_login_analytics_service.d.mts} +2 -2
  11. package/dist/services/account/analytics/user_login_analytics_service.mjs +95 -0
  12. package/dist/services/account/analytics/{user_page_analytics_service.d.ts → user_page_analytics_service.d.mts} +2 -2
  13. package/dist/services/account/analytics/user_page_analytics_service.mjs +75 -0
  14. package/dist/services/account/{bookmark_service.d.ts → bookmark_service.d.mts} +4 -4
  15. package/dist/services/account/bookmark_service.mjs +141 -0
  16. package/dist/services/account/{notification_service.d.ts → notification_service.d.mts} +5 -5
  17. package/dist/services/account/notification_service.mjs +161 -0
  18. package/dist/services/account/{ticket_service.d.ts → ticket_service.d.mts} +5 -5
  19. package/dist/services/account/ticket_service.mjs +180 -0
  20. package/dist/services/gps/features/fuel/{gps_fuel_vehicle_daily_summary_service.d.ts → gps_fuel_vehicle_daily_summary_service.d.mts} +5 -5
  21. package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.mjs +159 -0
  22. package/dist/services/gps/features/fuel/{gps_fuel_vehicle_refill_service.d.ts → gps_fuel_vehicle_refill_service.d.mts} +4 -4
  23. package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.mjs +188 -0
  24. package/dist/services/gps/features/fuel/{gps_fuel_vehicle_removal_service.d.ts → gps_fuel_vehicle_removal_service.d.mts} +4 -4
  25. package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.mjs +188 -0
  26. package/dist/services/gps/features/geofence/{gps_geofence_data_service.d.ts → gps_geofence_data_service.d.mts} +4 -4
  27. package/dist/services/gps/features/geofence/{gps_geofence_data_service.js → gps_geofence_data_service.mjs} +38 -61
  28. package/dist/services/gps/features/geofence/{gps_geofence_transaction_service.d.ts → gps_geofence_transaction_service.d.mts} +5 -5
  29. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.mjs +124 -0
  30. package/dist/services/gps/features/geofence/{gps_geofence_transaction_summary_service.d.ts → gps_geofence_transaction_summary_service.d.mts} +6 -6
  31. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.mjs +125 -0
  32. package/dist/services/gps/features/geofence/{trip_geofence_to_geofence_service.d.ts → trip_geofence_to_geofence_service.d.mts} +5 -5
  33. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.mjs +161 -0
  34. package/dist/services/gps/features/{gps_live_track_share_link_service.d.ts → gps_live_track_share_link_service.d.mts} +4 -4
  35. package/dist/services/gps/features/gps_live_track_share_link_service.mjs +199 -0
  36. package/dist/services/gps/features/{gps_track_history_share_link_service.d.ts → gps_track_history_share_link_service.d.mts} +4 -4
  37. package/dist/services/gps/features/gps_track_history_share_link_service.mjs +155 -0
  38. package/dist/services/gps/reports/gps_models/DashboardSummaryReport.mjs +0 -0
  39. package/dist/services/gps/reports/gps_models/FuelConsumptionMonthly.mjs +0 -0
  40. package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.mjs +0 -0
  41. package/dist/services/gps/reports/gps_models/GpsAnalytics.mjs +0 -0
  42. package/dist/services/gps/reports/gps_models/GpsPacket.mjs +0 -0
  43. package/dist/services/gps/reports/gps_models/GpsSensor.mjs +0 -0
  44. package/dist/services/gps/reports/gps_models/HourlyKmAnalysis.mjs +0 -0
  45. package/dist/services/gps/reports/gps_models/KilometerMonthly.mjs +0 -0
  46. package/dist/services/gps/reports/gps_models/Last24HoursKmReport.mjs +0 -0
  47. package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.mjs +0 -0
  48. package/dist/services/gps/reports/{gps_reports_mongo_service.d.ts → gps_reports_mongo_service.d.mts} +11 -11
  49. package/dist/services/gps/reports/{gps_reports_mongo_service.js → gps_reports_mongo_service.mjs} +70 -111
  50. package/dist/services/gps/reports/gps_reports_postgre_service.mjs +11 -0
  51. package/dist/services/main/devices/{master_device_service.d.ts → master_device_service.d.mts} +4 -4
  52. package/dist/services/main/devices/{master_device_service.js → master_device_service.mjs} +38 -69
  53. package/dist/services/main/drivers/{master_driver_service.d.ts → master_driver_service.d.mts} +4 -4
  54. package/dist/services/main/drivers/{master_driver_service.js → master_driver_service.mjs} +43 -73
  55. package/dist/services/main/sims/{master_sim_service.d.ts → master_sim_service.d.mts} +4 -4
  56. package/dist/services/main/sims/{master_sim_service.js → master_sim_service.mjs} +27 -54
  57. package/dist/services/main/users/{auth_service.d.ts → auth_service.d.mts} +5 -5
  58. package/dist/services/main/users/auth_service.mjs +58 -0
  59. package/dist/services/main/users/{user_admin_service.d.ts → user_admin_service.d.mts} +2 -2
  60. package/dist/services/main/users/{user_admin_service.js → user_admin_service.mjs} +21 -52
  61. package/dist/services/main/users/{user_organisation_service.d.ts → user_organisation_service.d.mts} +4 -4
  62. package/dist/services/main/users/{user_organisation_service.js → user_organisation_service.mjs} +59 -88
  63. package/dist/services/main/users/{user_service.d.ts → user_service.d.mts} +4 -4
  64. package/dist/services/main/users/user_service.mjs +373 -0
  65. package/dist/services/main/vehicle/childs/{vehicle_odometer_history.d.ts → vehicle_odometer_history.d.mts} +4 -4
  66. package/dist/services/main/vehicle/childs/{vehicle_odometer_history.js → vehicle_odometer_history.mjs} +24 -52
  67. package/dist/services/main/vehicle/{master_vehicle_service.d.ts → master_vehicle_service.d.mts} +4 -4
  68. package/dist/services/main/vehicle/master_vehicle_service.mjs +744 -0
  69. package/dist/services/master/device/{master_device_manufacturer_service.d.ts → master_device_manufacturer_service.d.mts} +4 -4
  70. package/dist/services/master/device/{master_device_manufacturer_service.js → master_device_manufacturer_service.mjs} +16 -48
  71. package/dist/services/master/device/{master_device_model_service.d.ts → master_device_model_service.d.mts} +4 -4
  72. package/dist/services/master/device/{master_device_model_service.js → master_device_model_service.mjs} +19 -50
  73. package/dist/services/master/device/{master_device_type_service.d.ts → master_device_type_service.d.mts} +4 -4
  74. package/dist/services/master/device/{master_device_type_service.js → master_device_type_service.mjs} +22 -53
  75. package/dist/services/master/expense/{master_expense_name_service.d.ts → master_expense_name_service.d.mts} +4 -4
  76. package/dist/services/master/expense/{master_expense_name_service.js → master_expense_name_service.mjs} +20 -49
  77. package/dist/services/master/expense/{master_expense_type_service.d.ts → master_expense_type_service.d.mts} +4 -4
  78. package/dist/services/master/expense/{master_expense_type_service.js → master_expense_type_service.mjs} +17 -47
  79. package/dist/services/master/expense/{master_vendor_type_service.d.ts → master_vendor_type_service.d.mts} +4 -4
  80. package/dist/services/master/expense/{master_vendor_type_service.js → master_vendor_type_service.mjs} +19 -48
  81. package/dist/services/master/fleet/{master_fleet_incident_severity_service.d.ts → master_fleet_incident_severity_service.d.mts} +4 -4
  82. package/dist/services/master/fleet/{master_fleet_incident_severity_service.js → master_fleet_incident_severity_service.mjs} +17 -47
  83. package/dist/services/master/fleet/{master_fleet_incident_status_service.d.ts → master_fleet_incident_status_service.d.mts} +4 -4
  84. package/dist/services/master/fleet/{master_fleet_incident_status_service.js → master_fleet_incident_status_service.mjs} +17 -47
  85. package/dist/services/master/fleet/{master_fleet_incident_type_service.d.ts → master_fleet_incident_type_service.d.mts} +4 -4
  86. package/dist/services/master/fleet/{master_fleet_incident_type_service.js → master_fleet_incident_type_service.mjs} +17 -47
  87. package/dist/services/master/fleet/{master_fleet_insurance_claim_status_service.d.ts → master_fleet_insurance_claim_status_service.d.mts} +4 -4
  88. package/dist/services/master/fleet/{master_fleet_insurance_claim_status_service.js → master_fleet_insurance_claim_status_service.mjs} +17 -47
  89. package/dist/services/master/fleet/{master_fleet_service_task_service.d.ts → master_fleet_service_task_service.d.mts} +4 -4
  90. package/dist/services/master/fleet/{master_fleet_service_task_service.js → master_fleet_service_task_service.mjs} +17 -47
  91. package/dist/services/master/main/{master_main_country_service.d.ts → master_main_country_service.d.mts} +4 -4
  92. package/dist/services/master/main/{master_main_country_service.js → master_main_country_service.mjs} +16 -48
  93. package/dist/services/master/main/{master_main_currency_service.d.ts → master_main_currency_service.d.mts} +4 -4
  94. package/dist/services/master/main/{master_main_currency_service.js → master_main_currency_service.mjs} +20 -49
  95. package/dist/services/master/main/{master_main_date_format_service.d.ts → master_main_date_format_service.d.mts} +4 -4
  96. package/dist/services/master/main/{master_main_date_format_service.js → master_main_date_format_service.mjs} +15 -46
  97. package/dist/services/master/main/{master_main_eway_bill_provider_service.d.ts → master_main_eway_bill_provider_service.d.mts} +2 -2
  98. package/dist/services/master/main/master_main_eway_bill_provider_service.mjs +100 -0
  99. package/dist/services/master/main/{master_main_fasttag_bank_service.d.ts → master_main_fasttag_bank_service.d.mts} +2 -2
  100. package/dist/services/master/main/master_main_fasttag_bank_service.mjs +100 -0
  101. package/dist/services/master/main/{master_main_industry_service.d.ts → master_main_industry_service.d.mts} +4 -4
  102. package/dist/services/master/main/{master_main_industry_service.js → master_main_industry_service.mjs} +16 -46
  103. package/dist/services/master/main/{master_main_landmark_service.d.ts → master_main_landmark_service.d.mts} +4 -4
  104. package/dist/services/master/main/master_main_landmark_service.mjs +124 -0
  105. package/dist/services/master/main/{master_main_language_service.d.ts → master_main_language_service.d.mts} +4 -4
  106. package/dist/services/master/main/{master_main_language_service.js → master_main_language_service.mjs} +15 -46
  107. package/dist/services/master/main/{master_main_sim_provider_service.d.ts → master_main_sim_provider_service.d.mts} +2 -2
  108. package/dist/services/master/main/master_main_sim_provider_service.mjs +100 -0
  109. package/dist/services/master/main/{master_main_state_service.d.ts → master_main_state_service.d.mts} +4 -4
  110. package/dist/services/master/main/{master_main_state_service.js → master_main_state_service.mjs} +19 -48
  111. package/dist/services/master/main/{master_main_timezone_service.d.ts → master_main_timezone_service.d.mts} +4 -4
  112. package/dist/services/master/main/{master_main_timezone_service.js → master_main_timezone_service.mjs} +22 -51
  113. package/dist/services/master/main/{master_main_unit_distance_service.d.ts → master_main_unit_distance_service.d.mts} +4 -4
  114. package/dist/services/master/main/{master_main_unit_distance_service.js → master_main_unit_distance_service.mjs} +15 -46
  115. package/dist/services/master/main/{master_main_unit_mileage_service.d.ts → master_main_unit_mileage_service.d.mts} +4 -4
  116. package/dist/services/master/main/{master_main_unit_mileage_service.js → master_main_unit_mileage_service.mjs} +15 -46
  117. package/dist/services/master/main/{master_main_unit_volume_service.d.ts → master_main_unit_volume_service.d.mts} +4 -4
  118. package/dist/services/master/main/{master_main_unit_volume_service.js → master_main_unit_volume_service.mjs} +15 -46
  119. package/dist/services/master/organisation/{organisation_branch_service.d.ts → organisation_branch_service.d.mts} +4 -4
  120. package/dist/services/master/organisation/{organisation_branch_service.js → organisation_branch_service.mjs} +19 -51
  121. package/dist/services/master/organisation/{organisation_color_service.d.ts → organisation_color_service.d.mts} +4 -4
  122. package/dist/services/master/organisation/{organisation_color_service.js → organisation_color_service.mjs} +18 -50
  123. package/dist/services/master/organisation/{organisation_group_service.d.ts → organisation_group_service.d.mts} +4 -4
  124. package/dist/services/master/organisation/{organisation_group_service.js → organisation_group_service.mjs} +19 -51
  125. package/dist/services/master/organisation/{organisation_sub_company_service.d.ts → organisation_sub_company_service.d.mts} +4 -4
  126. package/dist/services/master/organisation/{organisation_sub_company_service.js → organisation_sub_company_service.mjs} +21 -52
  127. package/dist/services/master/organisation/{organisation_tag_service.d.ts → organisation_tag_service.d.mts} +4 -4
  128. package/dist/services/master/organisation/{organisation_tag_service.js → organisation_tag_service.mjs} +17 -49
  129. package/dist/services/master/spare_part/{master_spare_part_category_service.d.ts → master_spare_part_category_service.d.mts} +4 -4
  130. package/dist/services/master/spare_part/{master_spare_part_category_service.js → master_spare_part_category_service.mjs} +18 -51
  131. package/dist/services/master/spare_part/{master_spare_part_sub_category_service.d.ts → master_spare_part_sub_category_service.d.mts} +4 -4
  132. package/dist/services/master/spare_part/{master_spare_part_sub_category_service.js → master_spare_part_sub_category_service.mjs} +20 -50
  133. package/dist/services/master/spare_part/{master_spare_part_unit_service.d.ts → master_spare_part_unit_service.d.mts} +4 -4
  134. package/dist/services/master/spare_part/{master_spare_part_unit_service.js → master_spare_part_unit_service.mjs} +18 -48
  135. package/dist/services/master/trip/{master_trip_party_type_service.d.ts → master_trip_party_type_service.d.mts} +4 -4
  136. package/dist/services/master/trip/{master_trip_party_type_service.js → master_trip_party_type_service.mjs} +17 -47
  137. package/dist/services/master/tyre/{master_tyre_grade_service.d.ts → master_tyre_grade_service.d.mts} +4 -4
  138. package/dist/services/master/tyre/{master_tyre_grade_service.js → master_tyre_grade_service.mjs} +17 -47
  139. package/dist/services/master/tyre/{master_tyre_make_service.d.ts → master_tyre_make_service.d.mts} +4 -4
  140. package/dist/services/master/tyre/{master_tyre_make_service.js → master_tyre_make_service.mjs} +17 -50
  141. package/dist/services/master/tyre/{master_tyre_model_service.d.ts → master_tyre_model_service.d.mts} +4 -4
  142. package/dist/services/master/tyre/{master_tyre_model_service.js → master_tyre_model_service.mjs} +19 -49
  143. package/dist/services/master/user/{master_user_role_service.d.ts → master_user_role_service.d.mts} +4 -4
  144. package/dist/services/master/user/{master_user_role_service.js → master_user_role_service.mjs} +17 -47
  145. package/dist/services/master/user/{master_user_status_service.d.ts → master_user_status_service.d.mts} +4 -4
  146. package/dist/services/master/user/{master_user_status_service.js → master_user_status_service.mjs} +17 -47
  147. package/dist/services/master/vehicle/{master_vehicle_fuel_type_service.d.ts → master_vehicle_fuel_type_service.d.mts} +4 -4
  148. package/dist/services/master/vehicle/{master_vehicle_fuel_type_service.js → master_vehicle_fuel_type_service.mjs} +17 -47
  149. package/dist/services/master/vehicle/{master_vehicle_make_service.d.ts → master_vehicle_make_service.d.mts} +4 -4
  150. package/dist/services/master/vehicle/{master_vehicle_make_service.js → master_vehicle_make_service.mjs} +17 -49
  151. package/dist/services/master/vehicle/{master_vehicle_model_service.d.ts → master_vehicle_model_service.d.mts} +4 -4
  152. package/dist/services/master/vehicle/{master_vehicle_model_service.js → master_vehicle_model_service.mjs} +19 -49
  153. package/dist/services/master/vehicle/{master_vehicle_ownership_type_service.d.ts → master_vehicle_ownership_type_service.d.mts} +4 -4
  154. package/dist/services/master/vehicle/{master_vehicle_ownership_type_service.js → master_vehicle_ownership_type_service.mjs} +17 -47
  155. package/dist/services/master/vehicle/{master_vehicle_status_type_service.d.ts → master_vehicle_status_type_service.d.mts} +4 -4
  156. package/dist/services/master/vehicle/{master_vehicle_status_type_service.js → master_vehicle_status_type_service.mjs} +17 -47
  157. package/dist/services/master/vehicle/{master_vehicle_sub_model_service.d.ts → master_vehicle_sub_model_service.d.mts} +4 -4
  158. package/dist/services/master/vehicle/{master_vehicle_sub_model_service.js → master_vehicle_sub_model_service.mjs} +21 -51
  159. package/dist/services/master/vehicle/{master_vehicle_type_service.d.ts → master_vehicle_type_service.d.mts} +4 -4
  160. package/dist/services/master/vehicle/{master_vehicle_type_service.js → master_vehicle_type_service.mjs} +17 -49
  161. package/dist/services/website/{contact_us_detail_service.d.ts → contact_us_detail_service.d.mts} +2 -2
  162. package/dist/services/website/contact_us_detail_service.mjs +115 -0
  163. package/dist/services/website/{faq_service.d.ts → faq_service.d.mts} +3 -3
  164. package/dist/services/website/faq_service.mjs +91 -0
  165. package/dist/services/website/{static_pages_service.d.ts → static_pages_service.d.mts} +3 -3
  166. package/dist/services/website/static_pages_service.mjs +94 -0
  167. package/dist/{user_organisation_service-CNOJPhQD.d.ts → user_organisation_service--baT-rja.d.mts} +3 -3
  168. package/dist/zod/{zod_base_schema.d.ts → zod_base_schema.d.mts} +1 -1
  169. package/dist/zod/{zod_base_schema.js → zod_base_schema.mjs} +20 -47
  170. package/dist/zod/{zod_utils.js → zod_utils.mjs} +49 -108
  171. package/package.json +1 -1
  172. package/dist/core/BaseRequest.js +0 -43
  173. package/dist/core/BaseResponse.js +0 -32
  174. package/dist/core/apiCall.js +0 -62
  175. package/dist/core/sdk-config.js +0 -41
  176. package/dist/index.js +0 -1
  177. package/dist/services/account/alert_service.js +0 -257
  178. package/dist/services/account/analytics/user_login_analytics_service.js +0 -123
  179. package/dist/services/account/analytics/user_page_analytics_service.js +0 -108
  180. package/dist/services/account/bookmark_service.js +0 -167
  181. package/dist/services/account/notification_service.js +0 -186
  182. package/dist/services/account/ticket_service.js +0 -206
  183. package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.js +0 -186
  184. package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +0 -209
  185. package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +0 -209
  186. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +0 -150
  187. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +0 -151
  188. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +0 -186
  189. package/dist/services/gps/features/gps_live_track_share_link_service.js +0 -226
  190. package/dist/services/gps/features/gps_track_history_share_link_service.js +0 -182
  191. package/dist/services/gps/reports/gps_models/DashboardSummaryReport.js +0 -18
  192. package/dist/services/gps/reports/gps_models/FuelConsumptionMonthly.js +0 -18
  193. package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.js +0 -18
  194. package/dist/services/gps/reports/gps_models/GpsAnalytics.js +0 -18
  195. package/dist/services/gps/reports/gps_models/GpsPacket.js +0 -18
  196. package/dist/services/gps/reports/gps_models/GpsSensor.js +0 -18
  197. package/dist/services/gps/reports/gps_models/HourlyKmAnalysis.js +0 -18
  198. package/dist/services/gps/reports/gps_models/KilometerMonthly.js +0 -18
  199. package/dist/services/gps/reports/gps_models/Last24HoursKmReport.js +0 -18
  200. package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.js +0 -18
  201. package/dist/services/gps/reports/gps_reports_postgre_service.js +0 -1
  202. package/dist/services/main/users/auth_service.js +0 -90
  203. package/dist/services/main/users/user_service.js +0 -417
  204. package/dist/services/main/vehicle/master_vehicle_service.js +0 -799
  205. package/dist/services/master/main/master_main_eway_bill_provider_service.js +0 -130
  206. package/dist/services/master/main/master_main_fasttag_bank_service.js +0 -130
  207. package/dist/services/master/main/master_main_landmark_service.js +0 -151
  208. package/dist/services/master/main/master_main_sim_provider_service.js +0 -131
  209. package/dist/services/website/contact_us_detail_service.js +0 -145
  210. package/dist/services/website/faq_service.js +0 -121
  211. package/dist/services/website/static_pages_service.js +0 -124
  212. /package/dist/core/{BaseResponse.d.ts → BaseResponse.d.mts} +0 -0
  213. /package/dist/core/{Enums.d.ts → Enums.d.mts} +0 -0
  214. /package/dist/core/{apiCall.d.ts → apiCall.d.mts} +0 -0
  215. /package/dist/core/{sdk-config.d.ts → sdk-config.d.mts} +0 -0
  216. /package/dist/{index.d.ts → index.d.mts} +0 -0
  217. /package/dist/services/gps/reports/gps_models/{DashboardSummaryReport.d.ts → DashboardSummaryReport.d.mts} +0 -0
  218. /package/dist/services/gps/reports/gps_models/{FuelConsumptionMonthly.d.ts → FuelConsumptionMonthly.d.mts} +0 -0
  219. /package/dist/services/gps/reports/gps_models/{GPSOverSpeedViolation.d.ts → GPSOverSpeedViolation.d.mts} +0 -0
  220. /package/dist/services/gps/reports/gps_models/{GpsAnalytics.d.ts → GpsAnalytics.d.mts} +0 -0
  221. /package/dist/services/gps/reports/gps_models/{GpsPacket.d.ts → GpsPacket.d.mts} +0 -0
  222. /package/dist/services/gps/reports/gps_models/{GpsSensor.d.ts → GpsSensor.d.mts} +0 -0
  223. /package/dist/services/gps/reports/gps_models/{HourlyKmAnalysis.d.ts → HourlyKmAnalysis.d.mts} +0 -0
  224. /package/dist/services/gps/reports/gps_models/{KilometerMonthly.d.ts → KilometerMonthly.d.mts} +0 -0
  225. /package/dist/services/gps/reports/gps_models/{Last24HoursKmReport.d.ts → Last24HoursKmReport.d.mts} +0 -0
  226. /package/dist/services/gps/reports/gps_models/{OverSpeedViolationMonthly.d.ts → OverSpeedViolationMonthly.d.mts} +0 -0
  227. /package/dist/services/gps/reports/{gps_reports_postgre_service.d.ts → gps_reports_postgre_service.d.mts} +0 -0
  228. /package/dist/zod/{zod_utils.d.ts → zod_utils.d.mts} +0 -0
@@ -1,6 +1,6 @@
1
- import '../../../core/Enums.js';
2
- import '../../../core/BaseResponse.js';
1
+ import '../../../core/Enums.mjs';
2
+ import '../../../core/BaseResponse.mjs';
3
3
  import 'zod';
4
- export { c as MasterMainCountry, a1 as MasterMainCountryDTO, a3 as MasterMainCountryQueryDTO, a2 as MasterMainCountryQuerySchema, a0 as MasterMainCountrySchema, a7 as createMasterMainCountry, a9 as deleteMasterMainCountry, a6 as findMasterMainCountries, aa as getMasterMainCountryCache, ab as getMasterMainCountryCacheChild, a5 as newMasterMainCountryPayload, a4 as toMasterMainCountryPayload, a8 as updateMasterMainCountry } from '../../../user_organisation_service-CNOJPhQD.js';
4
+ export { c as MasterMainCountry, a1 as MasterMainCountryDTO, a3 as MasterMainCountryQueryDTO, a2 as MasterMainCountryQuerySchema, a0 as MasterMainCountrySchema, a7 as createMasterMainCountry, a9 as deleteMasterMainCountry, a6 as findMasterMainCountries, aa as getMasterMainCountryCache, ab as getMasterMainCountryCacheChild, a5 as newMasterMainCountryPayload, a4 as toMasterMainCountryPayload, a8 as updateMasterMainCountry } from '../../../user_organisation_service--baT-rja.mjs';
5
5
  import 'zod/zod_base_schema';
6
- import './master_main_sim_provider_service.js';
6
+ import './master_main_sim_provider_service.mjs';
@@ -1,38 +1,3 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/services/master/main/master_main_country_service.ts
21
- var master_main_country_service_exports = {};
22
- __export(master_main_country_service_exports, {
23
- MasterMainCountryQuerySchema: () => MasterMainCountryQuerySchema,
24
- MasterMainCountrySchema: () => MasterMainCountrySchema,
25
- createMasterMainCountry: () => createMasterMainCountry,
26
- deleteMasterMainCountry: () => deleteMasterMainCountry,
27
- findMasterMainCountries: () => findMasterMainCountries,
28
- getMasterMainCountryCache: () => getMasterMainCountryCache,
29
- getMasterMainCountryCacheChild: () => getMasterMainCountryCacheChild,
30
- newMasterMainCountryPayload: () => newMasterMainCountryPayload,
31
- toMasterMainCountryPayload: () => toMasterMainCountryPayload,
32
- updateMasterMainCountry: () => updateMasterMainCountry
33
- });
34
- module.exports = __toCommonJS(master_main_country_service_exports);
35
-
36
1
  // src/core/sdk-config.ts
37
2
  var axiosInstance;
38
3
  var getAxiosInstance = () => {
@@ -61,9 +26,13 @@ var apiDelete = async (url) => {
61
26
  };
62
27
 
63
28
  // src/services/master/main/master_main_country_service.ts
64
- var import_zod = require("zod");
65
- var import_zod_utils = require("zod/zod_utils");
66
- var import_zod_base_schema = require("zod/zod_base_schema");
29
+ import { z } from "zod";
30
+ import {
31
+ stringMandatory,
32
+ enumMandatory,
33
+ multi_select_optional
34
+ } from "zod/zod_utils";
35
+ import { BaseQuerySchema } from "zod/zod_base_schema";
67
36
 
68
37
  // src/core/Enums.ts
69
38
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -82,14 +51,14 @@ var ENDPOINTS = {
82
51
  cache: `${URL}/cache`,
83
52
  cache_child: `${URL}/cache_child`
84
53
  };
85
- var MasterMainCountrySchema = import_zod.z.object({
86
- country_name: (0, import_zod_utils.stringMandatory)("Country Name", 3, 100),
87
- country_code: (0, import_zod_utils.stringMandatory)("Country Code", 2, 10),
88
- country_mobile_code: (0, import_zod_utils.stringMandatory)("Country Mobile Code", 1, 10),
89
- status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
54
+ var MasterMainCountrySchema = z.object({
55
+ country_name: stringMandatory("Country Name", 3, 100),
56
+ country_code: stringMandatory("Country Code", 2, 10),
57
+ country_mobile_code: stringMandatory("Country Mobile Code", 1, 10),
58
+ status: enumMandatory("Status", Status, "Active" /* Active */)
90
59
  });
91
- var MasterMainCountryQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
92
- country_ids: (0, import_zod_utils.multi_select_optional)("Country")
60
+ var MasterMainCountryQuerySchema = BaseQuerySchema.extend({
61
+ country_ids: multi_select_optional("Country")
93
62
  // ✅ Multi-selection -> MasterMainCountry
94
63
  });
95
64
  var toMasterMainCountryPayload = (country) => ({
@@ -125,8 +94,7 @@ var getMasterMainCountryCache = async () => {
125
94
  var getMasterMainCountryCacheChild = async () => {
126
95
  return apiGet(ENDPOINTS.cache_child);
127
96
  };
128
- // Annotate the CommonJS export names for ESM import in node:
129
- 0 && (module.exports = {
97
+ export {
130
98
  MasterMainCountryQuerySchema,
131
99
  MasterMainCountrySchema,
132
100
  createMasterMainCountry,
@@ -137,4 +105,4 @@ var getMasterMainCountryCacheChild = async () => {
137
105
  newMasterMainCountryPayload,
138
106
  toMasterMainCountryPayload,
139
107
  updateMasterMainCountry
140
- });
108
+ };
@@ -1,6 +1,6 @@
1
- import '../../../core/Enums.js';
2
- import '../../../core/BaseResponse.js';
1
+ import '../../../core/Enums.mjs';
2
+ import '../../../core/BaseResponse.mjs';
3
3
  import 'zod';
4
- export { p as MasterMainCurrency, r as MasterMainCurrencyDTO, v as MasterMainCurrencyQueryDTO, s as MasterMainCurrencyQuerySchema, q as MasterMainCurrencySchema, z as createMasterMainCurrency, B as deleteMasterMainCurrency, y as findMasterMainCurrencies, C as getMasterMainCurrencyCache, x as newMasterMainCurrencyPayload, w as toMasterMainCurrencyPayload, A as updateMasterMainCurrency } from '../../../user_organisation_service-CNOJPhQD.js';
4
+ export { p as MasterMainCurrency, r as MasterMainCurrencyDTO, v as MasterMainCurrencyQueryDTO, s as MasterMainCurrencyQuerySchema, q as MasterMainCurrencySchema, z as createMasterMainCurrency, B as deleteMasterMainCurrency, y as findMasterMainCurrencies, C as getMasterMainCurrencyCache, x as newMasterMainCurrencyPayload, w as toMasterMainCurrencyPayload, A as updateMasterMainCurrency } from '../../../user_organisation_service--baT-rja.mjs';
5
5
  import 'zod/zod_base_schema';
6
- import './master_main_sim_provider_service.js';
6
+ import './master_main_sim_provider_service.mjs';
@@ -1,37 +1,3 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/services/master/main/master_main_currency_service.ts
21
- var master_main_currency_service_exports = {};
22
- __export(master_main_currency_service_exports, {
23
- MasterMainCurrencyQuerySchema: () => MasterMainCurrencyQuerySchema,
24
- MasterMainCurrencySchema: () => MasterMainCurrencySchema,
25
- createMasterMainCurrency: () => createMasterMainCurrency,
26
- deleteMasterMainCurrency: () => deleteMasterMainCurrency,
27
- findMasterMainCurrencies: () => findMasterMainCurrencies,
28
- getMasterMainCurrencyCache: () => getMasterMainCurrencyCache,
29
- newMasterMainCurrencyPayload: () => newMasterMainCurrencyPayload,
30
- toMasterMainCurrencyPayload: () => toMasterMainCurrencyPayload,
31
- updateMasterMainCurrency: () => updateMasterMainCurrency
32
- });
33
- module.exports = __toCommonJS(master_main_currency_service_exports);
34
-
35
1
  // src/core/sdk-config.ts
36
2
  var axiosInstance;
37
3
  var getAxiosInstance = () => {
@@ -60,9 +26,15 @@ var apiDelete = async (url) => {
60
26
  };
61
27
 
62
28
  // src/services/master/main/master_main_currency_service.ts
63
- var import_zod = require("zod");
64
- var import_zod_utils = require("zod/zod_utils");
65
- var import_zod_base_schema = require("zod/zod_base_schema");
29
+ import { z } from "zod";
30
+ import {
31
+ stringMandatory,
32
+ stringOptional,
33
+ enumMandatory,
34
+ single_select_mandatory,
35
+ multi_select_optional
36
+ } from "zod/zod_utils";
37
+ import { BaseQuerySchema } from "zod/zod_base_schema";
66
38
 
67
39
  // src/core/Enums.ts
68
40
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -80,18 +52,18 @@ var ENDPOINTS = {
80
52
  delete: (id) => `${URL}/${id}`,
81
53
  cache: (country_id) => `${URL}/cache?country_id=${country_id}`
82
54
  };
83
- var MasterMainCurrencySchema = import_zod.z.object({
84
- country_id: (0, import_zod_utils.single_select_mandatory)("Country"),
55
+ var MasterMainCurrencySchema = z.object({
56
+ country_id: single_select_mandatory("Country"),
85
57
  // ✅ Single-selection -> MasterMainCountry
86
- currency_name: (0, import_zod_utils.stringMandatory)("Currency Name", 3, 100),
87
- currency_code: (0, import_zod_utils.stringMandatory)("Currency Code", 2, 10),
88
- currency_symbol: (0, import_zod_utils.stringOptional)("Currency Symbol", 0, 10),
89
- status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
58
+ currency_name: stringMandatory("Currency Name", 3, 100),
59
+ currency_code: stringMandatory("Currency Code", 2, 10),
60
+ currency_symbol: stringOptional("Currency Symbol", 0, 10),
61
+ status: enumMandatory("Status", Status, "Active" /* Active */)
90
62
  });
91
- var MasterMainCurrencyQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
92
- country_ids: (0, import_zod_utils.multi_select_optional)("Country"),
63
+ var MasterMainCurrencyQuerySchema = BaseQuerySchema.extend({
64
+ country_ids: multi_select_optional("Country"),
93
65
  // ✅ Multi-selection -> MasterMainCountry
94
- currency_ids: (0, import_zod_utils.multi_select_optional)("Currency")
66
+ currency_ids: multi_select_optional("Currency")
95
67
  // ✅ Multi-selection -> MasterMainCurrency
96
68
  });
97
69
  var toMasterMainCurrencyPayload = (currency) => ({
@@ -126,8 +98,7 @@ var deleteMasterMainCurrency = async (id) => {
126
98
  var getMasterMainCurrencyCache = async (country_id) => {
127
99
  return apiGet(ENDPOINTS.cache(country_id));
128
100
  };
129
- // Annotate the CommonJS export names for ESM import in node:
130
- 0 && (module.exports = {
101
+ export {
131
102
  MasterMainCurrencyQuerySchema,
132
103
  MasterMainCurrencySchema,
133
104
  createMasterMainCurrency,
@@ -137,4 +108,4 @@ var getMasterMainCurrencyCache = async (country_id) => {
137
108
  newMasterMainCurrencyPayload,
138
109
  toMasterMainCurrencyPayload,
139
110
  updateMasterMainCurrency
140
- });
111
+ };
@@ -1,6 +1,6 @@
1
- import '../../../core/Enums.js';
2
- import '../../../core/BaseResponse.js';
1
+ import '../../../core/Enums.mjs';
2
+ import '../../../core/BaseResponse.mjs';
3
3
  import 'zod';
4
- export { ac as MasterMainDateFormat, ae as MasterMainDateFormatDTO, ag as MasterMainDateFormatQueryDTO, af as MasterMainDateFormatQuerySchema, ad as MasterMainDateFormatSchema, ak as createMasterMainDateFormat, am as deleteMasterMainDateFormat, aj as findMasterMainDateFormats, an as getMasterMainDateFormatCache, ai as newMasterMainDateFormatPayload, ah as toMasterMainDateFormatPayload, al as updateMasterMainDateFormat } from '../../../user_organisation_service-CNOJPhQD.js';
4
+ export { ac as MasterMainDateFormat, ae as MasterMainDateFormatDTO, ag as MasterMainDateFormatQueryDTO, af as MasterMainDateFormatQuerySchema, ad as MasterMainDateFormatSchema, ak as createMasterMainDateFormat, am as deleteMasterMainDateFormat, aj as findMasterMainDateFormats, an as getMasterMainDateFormatCache, ai as newMasterMainDateFormatPayload, ah as toMasterMainDateFormatPayload, al as updateMasterMainDateFormat } from '../../../user_organisation_service--baT-rja.mjs';
5
5
  import 'zod/zod_base_schema';
6
- import './master_main_sim_provider_service.js';
6
+ import './master_main_sim_provider_service.mjs';
@@ -1,37 +1,3 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/services/master/main/master_main_date_format_service.ts
21
- var master_main_date_format_service_exports = {};
22
- __export(master_main_date_format_service_exports, {
23
- MasterMainDateFormatQuerySchema: () => MasterMainDateFormatQuerySchema,
24
- MasterMainDateFormatSchema: () => MasterMainDateFormatSchema,
25
- createMasterMainDateFormat: () => createMasterMainDateFormat,
26
- deleteMasterMainDateFormat: () => deleteMasterMainDateFormat,
27
- findMasterMainDateFormats: () => findMasterMainDateFormats,
28
- getMasterMainDateFormatCache: () => getMasterMainDateFormatCache,
29
- newMasterMainDateFormatPayload: () => newMasterMainDateFormatPayload,
30
- toMasterMainDateFormatPayload: () => toMasterMainDateFormatPayload,
31
- updateMasterMainDateFormat: () => updateMasterMainDateFormat
32
- });
33
- module.exports = __toCommonJS(master_main_date_format_service_exports);
34
-
35
1
  // src/core/sdk-config.ts
36
2
  var axiosInstance;
37
3
  var getAxiosInstance = () => {
@@ -60,9 +26,13 @@ var apiDelete = async (url) => {
60
26
  };
61
27
 
62
28
  // src/services/master/main/master_main_date_format_service.ts
63
- var import_zod = require("zod");
64
- var import_zod_utils = require("zod/zod_utils");
65
- var import_zod_base_schema = require("zod/zod_base_schema");
29
+ import { z } from "zod";
30
+ import {
31
+ stringMandatory,
32
+ enumMandatory,
33
+ multi_select_optional
34
+ } from "zod/zod_utils";
35
+ import { BaseQuerySchema } from "zod/zod_base_schema";
66
36
 
67
37
  // src/core/Enums.ts
68
38
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -80,13 +50,13 @@ var ENDPOINTS = {
80
50
  delete: (id) => `${URL}/${id}`,
81
51
  cache: `${URL}/cache`
82
52
  };
83
- var MasterMainDateFormatSchema = import_zod.z.object({
84
- date_format_date: (0, import_zod_utils.stringMandatory)("Date Format Date", 3, 50),
85
- date_format_time: (0, import_zod_utils.stringMandatory)("Date Format Time", 3, 50),
86
- status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
53
+ var MasterMainDateFormatSchema = z.object({
54
+ date_format_date: stringMandatory("Date Format Date", 3, 50),
55
+ date_format_time: stringMandatory("Date Format Time", 3, 50),
56
+ status: enumMandatory("Status", Status, "Active" /* Active */)
87
57
  });
88
- var MasterMainDateFormatQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
89
- date_format_ids: (0, import_zod_utils.multi_select_optional)("Date Format")
58
+ var MasterMainDateFormatQuerySchema = BaseQuerySchema.extend({
59
+ date_format_ids: multi_select_optional("Date Format")
90
60
  // ✅ Multi-selection -> MasterMainDateFormat
91
61
  });
92
62
  var toMasterMainDateFormatPayload = (dateFormat) => ({
@@ -117,8 +87,7 @@ var deleteMasterMainDateFormat = async (id) => {
117
87
  var getMasterMainDateFormatCache = async () => {
118
88
  return apiGet(ENDPOINTS.cache);
119
89
  };
120
- // Annotate the CommonJS export names for ESM import in node:
121
- 0 && (module.exports = {
90
+ export {
122
91
  MasterMainDateFormatQuerySchema,
123
92
  MasterMainDateFormatSchema,
124
93
  createMasterMainDateFormat,
@@ -128,4 +97,4 @@ var getMasterMainDateFormatCache = async () => {
128
97
  newMasterMainDateFormatPayload,
129
98
  toMasterMainDateFormatPayload,
130
99
  updateMasterMainDateFormat
131
- });
100
+ };
@@ -1,5 +1,5 @@
1
- import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../core/BaseResponse.js';
1
+ import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.mjs';
2
+ import { FBR, SBR } from '../../../core/BaseResponse.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  interface MasterMainEwayBillProvider extends Record<string, unknown> {
@@ -0,0 +1,100 @@
1
+ // src/core/sdk-config.ts
2
+ var axiosInstance;
3
+ var getAxiosInstance = () => {
4
+ if (!axiosInstance) {
5
+ throw new Error("\u274C Axios instance not configured. Call setupSdk() first.");
6
+ }
7
+ return axiosInstance;
8
+ };
9
+
10
+ // src/core/apiCall.ts
11
+ var apiGet = async (url, params) => {
12
+ const response = await getAxiosInstance().get(url, { params });
13
+ return response.data;
14
+ };
15
+ var apiPost = async (url, data) => {
16
+ const response = await getAxiosInstance().post(url, data);
17
+ return response.data;
18
+ };
19
+ var apiPatch = async (url, data) => {
20
+ const response = await getAxiosInstance().patch(url, data);
21
+ return response.data;
22
+ };
23
+ var apiDelete = async (url) => {
24
+ const response = await getAxiosInstance().delete(url);
25
+ return response.data;
26
+ };
27
+
28
+ // src/services/master/main/master_main_eway_bill_provider_service.ts
29
+ import { z } from "zod";
30
+ import {
31
+ enumMandatory,
32
+ multi_select_optional,
33
+ stringMandatory,
34
+ stringOptional
35
+ } from "zod/zod_utils";
36
+ import { BaseQuerySchema } from "zod/zod_base_schema";
37
+
38
+ // src/core/Enums.ts
39
+ var Status = /* @__PURE__ */ ((Status2) => {
40
+ Status2["Active"] = "Active";
41
+ Status2["Inactive"] = "Inactive";
42
+ return Status2;
43
+ })(Status || {});
44
+
45
+ // src/services/master/main/master_main_eway_bill_provider_service.ts
46
+ var URL = "master/main/eway_bill_provider";
47
+ var ENDPOINTS = {
48
+ find: `${URL}/search`,
49
+ create: URL,
50
+ update: (id) => `${URL}/${id}`,
51
+ delete: (id) => `${URL}/${id}`,
52
+ cache: `${URL}/cache`
53
+ };
54
+ var MasterMainEwayBillProviderSchema = z.object({
55
+ provider_name: stringMandatory("Provider Name", 3, 100),
56
+ provider_code: stringOptional("Provider Code", 0, 10),
57
+ status: enumMandatory("Status", Status, "Active" /* Active */)
58
+ });
59
+ var MasterMainEwayBillProviderQuerySchema = BaseQuerySchema.extend({
60
+ e_way_bill_provider_ids: multi_select_optional("MasterMainEWayBillProvider")
61
+ });
62
+ var toMasterMainEwayBillProviderPayload = (provider) => ({
63
+ provider_name: provider.provider_name,
64
+ provider_code: provider.provider_code ?? "",
65
+ status: provider.status
66
+ });
67
+ var newMasterMainEwayBillProviderPayload = () => ({
68
+ provider_name: "",
69
+ provider_code: "",
70
+ status: "Active" /* Active */
71
+ });
72
+ var findMasterMainEwayBillProviders = async (data) => {
73
+ return apiPost(ENDPOINTS.find, data);
74
+ };
75
+ var createMasterMainEwayBillProvider = async (data) => {
76
+ return apiPost(ENDPOINTS.create, data);
77
+ };
78
+ var updateMasterMainEwayBillProvider = async (id, data) => {
79
+ return apiPatch(
80
+ ENDPOINTS.update(id),
81
+ data
82
+ );
83
+ };
84
+ var deleteMasterMainEwayBillProvider = async (id) => {
85
+ return apiDelete(ENDPOINTS.delete(id));
86
+ };
87
+ var getMasterMainEwayBillProviderCache = async () => {
88
+ return apiGet(ENDPOINTS.cache);
89
+ };
90
+ export {
91
+ MasterMainEwayBillProviderQuerySchema,
92
+ MasterMainEwayBillProviderSchema,
93
+ createMasterMainEwayBillProvider,
94
+ deleteMasterMainEwayBillProvider,
95
+ findMasterMainEwayBillProviders,
96
+ getMasterMainEwayBillProviderCache,
97
+ newMasterMainEwayBillProviderPayload,
98
+ toMasterMainEwayBillProviderPayload,
99
+ updateMasterMainEwayBillProvider
100
+ };
@@ -1,5 +1,5 @@
1
- import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../core/BaseResponse.js';
1
+ import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.mjs';
2
+ import { FBR, SBR } from '../../../core/BaseResponse.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  interface MasterMainFasttagBank extends Record<string, unknown> {
@@ -0,0 +1,100 @@
1
+ // src/core/sdk-config.ts
2
+ var axiosInstance;
3
+ var getAxiosInstance = () => {
4
+ if (!axiosInstance) {
5
+ throw new Error("\u274C Axios instance not configured. Call setupSdk() first.");
6
+ }
7
+ return axiosInstance;
8
+ };
9
+
10
+ // src/core/apiCall.ts
11
+ var apiGet = async (url, params) => {
12
+ const response = await getAxiosInstance().get(url, { params });
13
+ return response.data;
14
+ };
15
+ var apiPost = async (url, data) => {
16
+ const response = await getAxiosInstance().post(url, data);
17
+ return response.data;
18
+ };
19
+ var apiPatch = async (url, data) => {
20
+ const response = await getAxiosInstance().patch(url, data);
21
+ return response.data;
22
+ };
23
+ var apiDelete = async (url) => {
24
+ const response = await getAxiosInstance().delete(url);
25
+ return response.data;
26
+ };
27
+
28
+ // src/services/master/main/master_main_fasttag_bank_service.ts
29
+ import { z } from "zod";
30
+ import {
31
+ enumMandatory,
32
+ multi_select_optional,
33
+ stringMandatory,
34
+ stringOptional
35
+ } from "zod/zod_utils";
36
+ import { BaseQuerySchema } from "zod/zod_base_schema";
37
+
38
+ // src/core/Enums.ts
39
+ var Status = /* @__PURE__ */ ((Status2) => {
40
+ Status2["Active"] = "Active";
41
+ Status2["Inactive"] = "Inactive";
42
+ return Status2;
43
+ })(Status || {});
44
+
45
+ // src/services/master/main/master_main_fasttag_bank_service.ts
46
+ var URL = "master/main/fasttag_bank";
47
+ var ENDPOINTS = {
48
+ find: `${URL}/search`,
49
+ create: URL,
50
+ update: (id) => `${URL}/${id}`,
51
+ delete: (id) => `${URL}/${id}`,
52
+ cache: `${URL}/cache`
53
+ };
54
+ var MasterMainFasttagSchema = z.object({
55
+ bank_name: stringMandatory("Bank Name", 3, 100),
56
+ bank_code: stringOptional("Bank Code", 0, 10),
57
+ status: enumMandatory("Status", Status, "Active" /* Active */)
58
+ });
59
+ var MasterMainFasttagQuerySchema = BaseQuerySchema.extend({
60
+ fasttag_bank_ids: multi_select_optional("MasterMainFasttagBank")
61
+ });
62
+ var toMasterMainFasttagPayload = (fasttagBank) => ({
63
+ bank_name: fasttagBank.bank_name,
64
+ bank_code: fasttagBank.bank_code ?? "",
65
+ status: fasttagBank.status
66
+ });
67
+ var newMasterMainFasttagPayload = () => ({
68
+ bank_name: "",
69
+ bank_code: "",
70
+ status: "Active" /* Active */
71
+ });
72
+ var findMasterMainFasttagBanks = async (data) => {
73
+ return apiPost(
74
+ ENDPOINTS.find,
75
+ data
76
+ );
77
+ };
78
+ var createMasterMainFasttagBank = async (data) => {
79
+ return apiPost(ENDPOINTS.create, data);
80
+ };
81
+ var updateMasterMainFasttagBank = async (id, data) => {
82
+ return apiPatch(ENDPOINTS.update(id), data);
83
+ };
84
+ var deleteMasterMainFasttagBank = async (id) => {
85
+ return apiDelete(ENDPOINTS.delete(id));
86
+ };
87
+ var getMasterMainFasttagBankCache = async () => {
88
+ return apiGet(ENDPOINTS.cache);
89
+ };
90
+ export {
91
+ MasterMainFasttagQuerySchema,
92
+ MasterMainFasttagSchema,
93
+ createMasterMainFasttagBank,
94
+ deleteMasterMainFasttagBank,
95
+ findMasterMainFasttagBanks,
96
+ getMasterMainFasttagBankCache,
97
+ newMasterMainFasttagPayload,
98
+ toMasterMainFasttagPayload,
99
+ updateMasterMainFasttagBank
100
+ };
@@ -1,6 +1,6 @@
1
- import '../../../core/Enums.js';
2
- import '../../../core/BaseResponse.js';
1
+ import '../../../core/Enums.mjs';
2
+ import '../../../core/BaseResponse.mjs';
3
3
  import 'zod';
4
- export { f as MasterMainIndustry, h as MasterMainIndustryDTO, j as MasterMainIndustryQueryDTO, i as MasterMainIndustryQuerySchema, g as MasterMainIndustrySchema, l as createMasterMainIndustry, m as deleteMasterMainIndustry, k as findMasterMainIndustries, o as getMasterMainIndustryCache, n as newMasterMainIndustryPayload, t as toMasterMainIndustryPayload, u as updateMasterMainIndustry } from '../../../user_organisation_service-CNOJPhQD.js';
4
+ export { f as MasterMainIndustry, h as MasterMainIndustryDTO, j as MasterMainIndustryQueryDTO, i as MasterMainIndustryQuerySchema, g as MasterMainIndustrySchema, l as createMasterMainIndustry, m as deleteMasterMainIndustry, k as findMasterMainIndustries, o as getMasterMainIndustryCache, n as newMasterMainIndustryPayload, t as toMasterMainIndustryPayload, u as updateMasterMainIndustry } from '../../../user_organisation_service--baT-rja.mjs';
5
5
  import 'zod/zod_base_schema';
6
- import './master_main_sim_provider_service.js';
6
+ import './master_main_sim_provider_service.mjs';
@@ -1,37 +1,3 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/services/master/main/master_main_industry_service.ts
21
- var master_main_industry_service_exports = {};
22
- __export(master_main_industry_service_exports, {
23
- MasterMainIndustryQuerySchema: () => MasterMainIndustryQuerySchema,
24
- MasterMainIndustrySchema: () => MasterMainIndustrySchema,
25
- createMasterMainIndustry: () => createMasterMainIndustry,
26
- deleteMasterMainIndustry: () => deleteMasterMainIndustry,
27
- findMasterMainIndustries: () => findMasterMainIndustries,
28
- getMasterMainIndustryCache: () => getMasterMainIndustryCache,
29
- newMasterMainIndustryPayload: () => newMasterMainIndustryPayload,
30
- toMasterMainIndustryPayload: () => toMasterMainIndustryPayload,
31
- updateMasterMainIndustry: () => updateMasterMainIndustry
32
- });
33
- module.exports = __toCommonJS(master_main_industry_service_exports);
34
-
35
1
  // src/core/sdk-config.ts
36
2
  var axiosInstance;
37
3
  var getAxiosInstance = () => {
@@ -60,9 +26,14 @@ var apiDelete = async (url) => {
60
26
  };
61
27
 
62
28
  // src/services/master/main/master_main_industry_service.ts
63
- var import_zod = require("zod");
64
- var import_zod_utils = require("zod/zod_utils");
65
- var import_zod_base_schema = require("zod/zod_base_schema");
29
+ import { z } from "zod";
30
+ import {
31
+ stringMandatory,
32
+ stringOptional,
33
+ enumMandatory,
34
+ multi_select_optional
35
+ } from "zod/zod_utils";
36
+ import { BaseQuerySchema } from "zod/zod_base_schema";
66
37
 
67
38
  // src/core/Enums.ts
68
39
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -80,13 +51,13 @@ var ENDPOINTS = {
80
51
  delete: (id) => `${URL}/${id}`,
81
52
  cache: `${URL}/cache`
82
53
  };
83
- var MasterMainIndustrySchema = import_zod.z.object({
84
- industry_name: (0, import_zod_utils.stringMandatory)("Industry Name", 3, 100),
85
- industry_description: (0, import_zod_utils.stringOptional)("Industry Description", 0, 300),
86
- status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
54
+ var MasterMainIndustrySchema = z.object({
55
+ industry_name: stringMandatory("Industry Name", 3, 100),
56
+ industry_description: stringOptional("Industry Description", 0, 300),
57
+ status: enumMandatory("Status", Status, "Active" /* Active */)
87
58
  });
88
- var MasterMainIndustryQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
89
- industry_ids: (0, import_zod_utils.multi_select_optional)("Industry")
59
+ var MasterMainIndustryQuerySchema = BaseQuerySchema.extend({
60
+ industry_ids: multi_select_optional("Industry")
90
61
  // ✅ Multi-selection -> MasterMainIndustry
91
62
  });
92
63
  var toMasterMainIndustryPayload = (industry) => ({
@@ -117,8 +88,7 @@ var deleteMasterMainIndustry = async (id) => {
117
88
  var getMasterMainIndustryCache = async () => {
118
89
  return apiGet(ENDPOINTS.cache);
119
90
  };
120
- // Annotate the CommonJS export names for ESM import in node:
121
- 0 && (module.exports = {
91
+ export {
122
92
  MasterMainIndustryQuerySchema,
123
93
  MasterMainIndustrySchema,
124
94
  createMasterMainIndustry,
@@ -128,4 +98,4 @@ var getMasterMainIndustryCache = async () => {
128
98
  newMasterMainIndustryPayload,
129
99
  toMasterMainIndustryPayload,
130
100
  updateMasterMainIndustry
131
- });
101
+ };
@@ -1,9 +1,9 @@
1
- import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../core/BaseResponse.js';
1
+ import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.mjs';
2
+ import { FBR, SBR } from '../../../core/BaseResponse.mjs';
3
3
  import { z } from 'zod';
4
- import { c as MasterMainCountry, d as MasterMainState } from '../../../user_organisation_service-CNOJPhQD.js';
4
+ import { c as MasterMainCountry, d as MasterMainState } from '../../../user_organisation_service--baT-rja.mjs';
5
5
  import 'zod/zod_base_schema';
6
- import './master_main_sim_provider_service.js';
6
+ import './master_main_sim_provider_service.mjs';
7
7
 
8
8
  interface MasterMainLandmark extends Record<string, unknown> {
9
9
  landmark_id: string;