vms-nest-prisma-api-document 2.0.0 → 5.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 (144) hide show
  1. package/dist/core/apiCall.js +4 -3
  2. package/dist/core/sdk-config.js +6 -4
  3. package/dist/services/account/alert_service.d.ts +32 -32
  4. package/dist/services/account/alert_service.js +4 -3
  5. package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
  6. package/dist/services/account/analytics/user_login_analytics_service.js +4 -3
  7. package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
  8. package/dist/services/account/analytics/user_page_analytics_service.js +4 -3
  9. package/dist/services/account/bookmark_service.d.ts +9 -9
  10. package/dist/services/account/bookmark_service.js +4 -3
  11. package/dist/services/account/notification_service.d.ts +6 -6
  12. package/dist/services/account/notification_service.js +4 -3
  13. package/dist/services/account/ticket_service.d.ts +3 -3
  14. package/dist/services/account/ticket_service.js +4 -3
  15. package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +13 -13
  16. package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.js +4 -3
  17. package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +28 -28
  18. package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +4 -3
  19. package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +23 -23
  20. package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +4 -3
  21. package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +1 -1
  22. package/dist/services/gps/features/geofence/gps_geofence_data_service.js +4 -3
  23. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
  24. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +4 -3
  25. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
  26. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +4 -3
  27. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
  28. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +4 -3
  29. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +17 -17
  30. package/dist/services/gps/features/gps_live_track_share_link_service.js +4 -3
  31. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +10 -10
  32. package/dist/services/gps/features/gps_track_history_share_link_service.js +4 -3
  33. package/dist/services/gps/reports/gps_reports_mongo_service.js +4 -3
  34. package/dist/services/main/devices/master_device_service.d.ts +1 -1
  35. package/dist/services/main/devices/master_device_service.js +4 -3
  36. package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
  37. package/dist/services/main/drivers/master_driver_service.js +4 -3
  38. package/dist/services/main/sims/master_sim_service.d.ts +1 -1
  39. package/dist/services/main/sims/master_sim_service.js +4 -3
  40. package/dist/services/main/users/auth_service.d.ts +1 -1
  41. package/dist/services/main/users/auth_service.js +4 -3
  42. package/dist/services/main/users/user_admin_service.js +4 -3
  43. package/dist/services/main/users/user_organisation_service.d.ts +1 -1
  44. package/dist/services/main/users/user_organisation_service.js +4 -3
  45. package/dist/services/main/users/user_service.d.ts +1 -1
  46. package/dist/services/main/users/user_service.js +4 -3
  47. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
  48. package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +4 -3
  49. package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
  50. package/dist/services/main/vehicle/master_vehicle_service.js +4 -3
  51. package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
  52. package/dist/services/master/device/master_device_manufacturer_service.js +4 -3
  53. package/dist/services/master/device/master_device_model_service.d.ts +1 -1
  54. package/dist/services/master/device/master_device_model_service.js +4 -3
  55. package/dist/services/master/device/master_device_type_service.d.ts +1 -1
  56. package/dist/services/master/device/master_device_type_service.js +4 -3
  57. package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
  58. package/dist/services/master/expense/master_expense_name_service.js +4 -3
  59. package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
  60. package/dist/services/master/expense/master_expense_type_service.js +4 -3
  61. package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
  62. package/dist/services/master/expense/master_vendor_type_service.js +4 -3
  63. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
  64. package/dist/services/master/fleet/master_fleet_incident_severity_service.js +4 -3
  65. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
  66. package/dist/services/master/fleet/master_fleet_incident_status_service.js +4 -3
  67. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
  68. package/dist/services/master/fleet/master_fleet_incident_type_service.js +4 -3
  69. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
  70. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +4 -3
  71. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
  72. package/dist/services/master/fleet/master_fleet_service_task_service.js +4 -3
  73. package/dist/services/master/main/master_main_country_service.d.ts +1 -1
  74. package/dist/services/master/main/master_main_country_service.js +4 -3
  75. package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
  76. package/dist/services/master/main/master_main_currency_service.js +4 -3
  77. package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
  78. package/dist/services/master/main/master_main_date_format_service.js +4 -3
  79. package/dist/services/master/main/master_main_eway_bill_provider_service.js +4 -3
  80. package/dist/services/master/main/master_main_fasttag_bank_service.js +4 -3
  81. package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
  82. package/dist/services/master/main/master_main_industry_service.js +4 -3
  83. package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
  84. package/dist/services/master/main/master_main_landmark_service.js +4 -3
  85. package/dist/services/master/main/master_main_language_service.d.ts +1 -1
  86. package/dist/services/master/main/master_main_language_service.js +4 -3
  87. package/dist/services/master/main/master_main_sim_provider_service.js +4 -3
  88. package/dist/services/master/main/master_main_state_service.d.ts +1 -1
  89. package/dist/services/master/main/master_main_state_service.js +4 -3
  90. package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
  91. package/dist/services/master/main/master_main_timezone_service.js +4 -3
  92. package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
  93. package/dist/services/master/main/master_main_unit_distance_service.js +4 -3
  94. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
  95. package/dist/services/master/main/master_main_unit_mileage_service.js +4 -3
  96. package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
  97. package/dist/services/master/main/master_main_unit_volume_service.js +4 -3
  98. package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
  99. package/dist/services/master/organisation/organisation_branch_service.js +4 -3
  100. package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
  101. package/dist/services/master/organisation/organisation_color_service.js +4 -3
  102. package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
  103. package/dist/services/master/organisation/organisation_group_service.js +4 -3
  104. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
  105. package/dist/services/master/organisation/organisation_sub_company_service.js +4 -3
  106. package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
  107. package/dist/services/master/organisation/organisation_tag_service.js +4 -3
  108. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
  109. package/dist/services/master/spare_part/master_spare_part_category_service.js +4 -3
  110. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
  111. package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +4 -3
  112. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
  113. package/dist/services/master/spare_part/master_spare_part_unit_service.js +4 -3
  114. package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
  115. package/dist/services/master/trip/master_trip_party_type_service.js +4 -3
  116. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
  117. package/dist/services/master/tyre/master_tyre_grade_service.js +4 -3
  118. package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
  119. package/dist/services/master/tyre/master_tyre_make_service.js +4 -3
  120. package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
  121. package/dist/services/master/tyre/master_tyre_model_service.js +4 -3
  122. package/dist/services/master/user/master_user_role_service.d.ts +1 -1
  123. package/dist/services/master/user/master_user_role_service.js +4 -3
  124. package/dist/services/master/user/master_user_status_service.d.ts +1 -1
  125. package/dist/services/master/user/master_user_status_service.js +4 -3
  126. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
  127. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +4 -3
  128. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
  129. package/dist/services/master/vehicle/master_vehicle_make_service.js +4 -3
  130. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
  131. package/dist/services/master/vehicle/master_vehicle_model_service.js +4 -3
  132. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
  133. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +4 -3
  134. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
  135. package/dist/services/master/vehicle/master_vehicle_status_type_service.js +4 -3
  136. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
  137. package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +4 -3
  138. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
  139. package/dist/services/master/vehicle/master_vehicle_type_service.js +4 -3
  140. package/dist/services/website/contact_us_detail_service.js +4 -3
  141. package/dist/services/website/faq_service.js +4 -3
  142. package/dist/services/website/static_pages_service.js +4 -3
  143. package/package.json +1 -1
  144. package/dist/{user_organisation_service-DJWj2iMa.d.ts → user_organisation_service-B_mpMXYI.d.ts} +20 -20
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts
@@ -1,13 +1,15 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var setAxiosInstance = (instance) => {
4
- axiosInstance = instance;
4
+ globalThis[KEY] = instance;
5
+ console.log("\u2705 Axios instance set globally");
5
6
  };
6
7
  var getAxiosInstance = () => {
7
- if (!axiosInstance) {
8
+ const instance = globalThis[KEY];
9
+ if (!instance) {
8
10
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
9
11
  }
10
- return axiosInstance;
12
+ return instance;
11
13
  };
12
14
  export {
13
15
  getAxiosInstance,
@@ -1,7 +1,7 @@
1
1
  import { Module, SubModule, AlertType, AlertSubType, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../core/Enums.js';
2
2
  import { FBR, SBR } from '../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
- import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../user_organisation_service-DJWj2iMa.js';
4
+ import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../user_organisation_service-B_mpMXYI.js';
5
5
  import '../../zod_utils/zod_base_schema.js';
6
6
  import '../master/main/master_main_sim_provider_service.js';
7
7
 
@@ -93,6 +93,12 @@ declare const AlertSchema: z.ZodObject<{
93
93
  driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
94
94
  gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
95
95
  }, "strip", z.ZodTypeAny, {
96
+ status: Status;
97
+ organisation_id: string;
98
+ user_id: string;
99
+ user_ids: string[];
100
+ vehicle_ids: string[];
101
+ driver_ids: string[];
96
102
  module: Module;
97
103
  sub_module: SubModule;
98
104
  alert_type: AlertType;
@@ -112,21 +118,18 @@ declare const AlertSchema: z.ZodObject<{
112
118
  all_trips: YesNo;
113
119
  all_geofences: YesNo;
114
120
  all_drivers: YesNo;
121
+ gps_geofence_ids: string[];
122
+ }, {
115
123
  status: Status;
116
124
  organisation_id: string;
117
125
  user_id: string;
118
- vehicle_ids: string[];
119
- user_ids: string[];
120
- driver_ids: string[];
121
- gps_geofence_ids: string[];
122
- }, {
123
126
  module: Module;
124
127
  sub_module: SubModule;
125
128
  alert_type: AlertType;
126
129
  alert_sub_type: AlertSubType;
127
- status: Status;
128
- organisation_id: string;
129
- user_id: string;
130
+ user_ids?: string[] | undefined;
131
+ vehicle_ids?: string[] | undefined;
132
+ driver_ids?: string[] | undefined;
130
133
  alert_key_1?: string | undefined;
131
134
  alert_key_2?: string | undefined;
132
135
  alert_key_3?: string | undefined;
@@ -142,9 +145,6 @@ declare const AlertSchema: z.ZodObject<{
142
145
  all_trips?: YesNo | undefined;
143
146
  all_geofences?: YesNo | undefined;
144
147
  all_drivers?: YesNo | undefined;
145
- vehicle_ids?: string[] | undefined;
146
- user_ids?: string[] | undefined;
147
- driver_ids?: string[] | undefined;
148
148
  gps_geofence_ids?: string[] | undefined;
149
149
  }>;
150
150
  type AlertDTO = z.infer<typeof AlertSchema>;
@@ -192,17 +192,7 @@ declare const AlertQuerySchema: z.ZodObject<{
192
192
  is_whatsapp: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
193
193
  is_email: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
194
194
  }, "strip", z.ZodTypeAny, {
195
- module: Module.ABC[];
196
- sub_module: SubModule.ABC[];
197
- alert_type: AlertType.ABC[];
198
- alert_sub_type: AlertSubType.ABC[];
199
- is_edit: YesNo[];
200
- is_push: YesNo[];
201
- is_sms: YesNo[];
202
- is_whatsapp: YesNo[];
203
- is_email: YesNo[];
204
195
  status: Status[];
205
- user_ids: string[];
206
196
  search: string;
207
197
  paging: PAGING;
208
198
  page_count: number;
@@ -224,21 +214,21 @@ declare const AlertQuerySchema: z.ZodObject<{
224
214
  date_format_id: string;
225
215
  time_zone_id: string;
226
216
  organisation_ids: string[];
217
+ user_ids: string[];
218
+ module: Module.ABC[];
219
+ sub_module: SubModule.ABC[];
220
+ alert_type: AlertType.ABC[];
221
+ alert_sub_type: AlertSubType.ABC[];
222
+ is_edit: YesNo[];
223
+ is_push: YesNo[];
224
+ is_sms: YesNo[];
225
+ is_whatsapp: YesNo[];
226
+ is_email: YesNo[];
227
227
  alert_ids: string[];
228
228
  }, {
229
229
  date_format_id: string;
230
230
  time_zone_id: string;
231
- module?: Module.ABC[] | undefined;
232
- sub_module?: SubModule.ABC[] | undefined;
233
- alert_type?: AlertType.ABC[] | undefined;
234
- alert_sub_type?: AlertSubType.ABC[] | undefined;
235
- is_edit?: YesNo[] | undefined;
236
- is_push?: YesNo[] | undefined;
237
- is_sms?: YesNo[] | undefined;
238
- is_whatsapp?: YesNo[] | undefined;
239
- is_email?: YesNo[] | undefined;
240
231
  status?: Status[] | undefined;
241
- user_ids?: string[] | undefined;
242
232
  search?: string | undefined;
243
233
  paging?: PAGING | undefined;
244
234
  page_count?: unknown;
@@ -258,6 +248,16 @@ declare const AlertQuerySchema: z.ZodObject<{
258
248
  }[] | undefined;
259
249
  include_master_data?: YesNo | undefined;
260
250
  organisation_ids?: string[] | undefined;
251
+ user_ids?: string[] | undefined;
252
+ module?: Module.ABC[] | undefined;
253
+ sub_module?: SubModule.ABC[] | undefined;
254
+ alert_type?: AlertType.ABC[] | undefined;
255
+ alert_sub_type?: AlertSubType.ABC[] | undefined;
256
+ is_edit?: YesNo[] | undefined;
257
+ is_push?: YesNo[] | undefined;
258
+ is_sms?: YesNo[] | undefined;
259
+ is_whatsapp?: YesNo[] | undefined;
260
+ is_email?: YesNo[] | undefined;
261
261
  alert_ids?: string[] | undefined;
262
262
  }>;
263
263
  type AlertQueryDTO = z.infer<typeof AlertQuerySchema>;
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  user_id: string;
24
24
  organisation_id: string;
25
- login_from: LoginFrom;
26
25
  country_id: string;
26
+ login_from: LoginFrom;
27
27
  os_details: Record<string, any>;
28
28
  ip_details: Record<string, any>;
29
29
  }, {
30
30
  user_id: string;
31
31
  organisation_id: string;
32
- login_from: LoginFrom;
33
32
  country_id: string;
33
+ login_from: LoginFrom;
34
34
  os_details?: Record<string, any> | undefined;
35
35
  ip_details?: Record<string, any> | undefined;
36
36
  }>;
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
48
48
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
49
49
  country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
+ login_from: LoginFrom;
51
52
  search: string;
52
53
  paging: PAGING;
53
54
  page_count: number;
54
55
  page_index: number;
55
- login_from: LoginFrom;
56
56
  date_format_id: string;
57
57
  time_zone_id: string;
58
58
  user_ids: string[];
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
43
43
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
44
44
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
+ login_from: LoginFrom;
46
47
  search: string;
47
48
  paging: PAGING;
48
49
  page_count: number;
49
50
  page_index: number;
50
- login_from: LoginFrom;
51
51
  date_format_id: string;
52
52
  time_zone_id: string;
53
53
  user_ids: string[];
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts
@@ -1,7 +1,7 @@
1
1
  import { MenuType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../core/Enums.js';
2
2
  import { FBR, SBR } from '../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
- import { U as UserOrganisation, a as User } from '../../user_organisation_service-DJWj2iMa.js';
4
+ import { U as UserOrganisation, a as User } from '../../user_organisation_service-B_mpMXYI.js';
5
5
  import '../../zod_utils/zod_base_schema.js';
6
6
  import '../master/main/master_main_sim_provider_service.js';
7
7
 
@@ -40,9 +40,6 @@ declare const BookMarkSchema: z.ZodObject<{
40
40
  sub_item_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
41
41
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- status: Status;
44
- organisation_id: string;
45
- user_id: string;
46
43
  module_name: string;
47
44
  menu_type: MenuType;
48
45
  group_name: string;
@@ -53,16 +50,19 @@ declare const BookMarkSchema: z.ZodObject<{
53
50
  sub_item_name_language: string;
54
51
  sub_item_icon: string;
55
52
  sub_item_url: string;
56
- }, {
57
53
  status: Status;
58
54
  organisation_id: string;
59
55
  user_id: string;
56
+ }, {
60
57
  module_name: string;
61
58
  menu_type: MenuType;
62
59
  group_name: string;
63
60
  group_name_language: string;
64
61
  group_icon: string;
65
62
  group_url: string;
63
+ status: Status;
64
+ organisation_id: string;
65
+ user_id: string;
66
66
  sub_item_name?: string | undefined;
67
67
  sub_item_name_language?: string | undefined;
68
68
  sub_item_icon?: string | undefined;
@@ -105,8 +105,8 @@ declare const BookMarkQuerySchema: z.ZodObject<{
105
105
  bookmark_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
106
106
  menu_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MenuType>, "many">>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
+ menu_type: MenuType[];
108
109
  status: Status[];
109
- user_ids: string[];
110
110
  search: string;
111
111
  paging: PAGING;
112
112
  page_count: number;
@@ -128,13 +128,13 @@ declare const BookMarkQuerySchema: z.ZodObject<{
128
128
  date_format_id: string;
129
129
  time_zone_id: string;
130
130
  organisation_ids: string[];
131
- menu_type: MenuType[];
131
+ user_ids: string[];
132
132
  bookmark_ids: string[];
133
133
  }, {
134
134
  date_format_id: string;
135
135
  time_zone_id: string;
136
+ menu_type?: MenuType[] | undefined;
136
137
  status?: Status[] | undefined;
137
- user_ids?: string[] | undefined;
138
138
  search?: string | undefined;
139
139
  paging?: PAGING | undefined;
140
140
  page_count?: unknown;
@@ -154,7 +154,7 @@ declare const BookMarkQuerySchema: z.ZodObject<{
154
154
  }[] | undefined;
155
155
  include_master_data?: YesNo | undefined;
156
156
  organisation_ids?: string[] | undefined;
157
- menu_type?: MenuType[] | undefined;
157
+ user_ids?: string[] | undefined;
158
158
  bookmark_ids?: string[] | undefined;
159
159
  }>;
160
160
  type BookMarkQueryDTO = z.infer<typeof BookMarkQuerySchema>;
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts
@@ -2,7 +2,7 @@ import { YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy
2
2
  import { FBR, SBR } from '../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { Alert } from './alert_service.js';
5
- import { U as UserOrganisation, a as User } from '../../user_organisation_service-DJWj2iMa.js';
5
+ import { U as UserOrganisation, a as User } from '../../user_organisation_service-B_mpMXYI.js';
6
6
  import '../../zod_utils/zod_base_schema.js';
7
7
  import '../master/main/master_main_sim_provider_service.js';
8
8
 
@@ -46,12 +46,12 @@ declare const NotificationSchema: z.ZodObject<{
46
46
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
47
47
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
48
48
  }, "strip", z.ZodTypeAny, {
49
- alert_id: string;
50
- mobile_numbers: string;
51
- emails: string;
52
49
  status: Status;
53
50
  organisation_id: string;
54
51
  user_ids: string[];
52
+ alert_id: string;
53
+ mobile_numbers: string;
54
+ emails: string;
55
55
  notification_title: string;
56
56
  notification_message: string;
57
57
  is_push_sent: YesNo;
@@ -59,14 +59,14 @@ declare const NotificationSchema: z.ZodObject<{
59
59
  is_whatsapp_sent: YesNo;
60
60
  is_email_sent: YesNo;
61
61
  }, {
62
- alert_id: string;
63
62
  status: Status;
64
63
  organisation_id: string;
64
+ alert_id: string;
65
65
  notification_title: string;
66
66
  notification_message: string;
67
+ user_ids?: string[] | undefined;
67
68
  mobile_numbers?: string | undefined;
68
69
  emails?: string | undefined;
69
- user_ids?: string[] | undefined;
70
70
  is_push_sent?: YesNo | undefined;
71
71
  is_sms_sent?: YesNo | undefined;
72
72
  is_whatsapp_sent?: YesNo | undefined;
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts
@@ -1,7 +1,7 @@
1
1
  import { FileType, Status, TicketStatus, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../core/Enums.js';
2
2
  import { FBR, SBR } from '../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
- import { U as UserOrganisation, a as User } from '../../user_organisation_service-DJWj2iMa.js';
4
+ import { U as UserOrganisation, a as User } from '../../user_organisation_service-B_mpMXYI.js';
5
5
  import { UserAdmin } from '../main/users/user_admin_service.js';
6
6
  import '../../zod_utils/zod_base_schema.js';
7
7
  import '../master/main/master_main_sim_provider_service.js';
@@ -191,7 +191,6 @@ declare const TicketQuerySchema: z.ZodObject<{
191
191
  ticket_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TicketStatus>, "many">>>;
192
192
  }, "strip", z.ZodTypeAny, {
193
193
  status: Status[];
194
- user_ids: string[];
195
194
  search: string;
196
195
  paging: PAGING;
197
196
  page_count: number;
@@ -213,6 +212,7 @@ declare const TicketQuerySchema: z.ZodObject<{
213
212
  date_format_id: string;
214
213
  time_zone_id: string;
215
214
  organisation_ids: string[];
215
+ user_ids: string[];
216
216
  admin_ids: string[];
217
217
  ticket_status: TicketStatus[];
218
218
  ticket_ids: string[];
@@ -220,7 +220,6 @@ declare const TicketQuerySchema: z.ZodObject<{
220
220
  date_format_id: string;
221
221
  time_zone_id: string;
222
222
  status?: Status[] | undefined;
223
- user_ids?: string[] | undefined;
224
223
  search?: string | undefined;
225
224
  paging?: PAGING | undefined;
226
225
  page_count?: unknown;
@@ -240,6 +239,7 @@ declare const TicketQuerySchema: z.ZodObject<{
240
239
  }[] | undefined;
241
240
  include_master_data?: YesNo | undefined;
242
241
  organisation_ids?: string[] | undefined;
242
+ user_ids?: string[] | undefined;
243
243
  admin_ids?: string[] | undefined;
244
244
  ticket_status?: TicketStatus[] | undefined;
245
245
  ticket_ids?: string[] | undefined;
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts
@@ -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, e as MasterDevice, b as MasterDriver } from '../../../../user_organisation_service-DJWj2iMa.js';
4
+ import { U as UserOrganisation, M as MasterVehicle, e as MasterDevice, b as MasterDriver } from '../../../../user_organisation_service-B_mpMXYI.js';
5
5
  import { FuelConsumptionMonthly } from '../../reports/gps_models/FuelConsumptionMonthly.js';
6
6
  import '../../../../zod_utils/zod_base_schema.js';
7
7
  import '../../../master/main/master_main_sim_provider_service.js';
@@ -47,36 +47,36 @@ declare const GPSFuelVehicleDailySummarySchema: z.ZodObject<{
47
47
  date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
48
48
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
49
49
  }, "strip", z.ZodTypeAny, {
50
- start_fuel_liters: number;
51
- end_fuel_liters: number;
52
- total_km: number;
53
- consumed_fuel_liters: number;
54
- refills_count: number;
55
- removals_count: number;
56
- mileage: number;
57
- date: string;
58
50
  status: Status;
59
51
  organisation_id: string;
60
52
  vehicle_id: string;
61
53
  device_id: string;
62
54
  driver_id: string;
55
+ date: string;
56
+ total_km: number;
57
+ consumed_fuel_liters: number;
58
+ refills_count: number;
63
59
  refills_liters: number;
60
+ start_fuel_liters: number;
61
+ end_fuel_liters: number;
62
+ removals_count: number;
63
+ mileage: number;
64
64
  removals_liters: number;
65
65
  }, {
66
- date: string;
67
66
  status: Status;
68
67
  organisation_id: string;
69
68
  vehicle_id: string;
70
69
  device_id: string;
71
70
  driver_id: string;
72
- start_fuel_liters?: unknown;
73
- end_fuel_liters?: unknown;
71
+ date: string;
74
72
  total_km?: unknown;
75
73
  consumed_fuel_liters?: unknown;
76
74
  refills_count?: unknown;
75
+ refills_liters?: unknown;
76
+ start_fuel_liters?: unknown;
77
+ end_fuel_liters?: unknown;
77
78
  removals_count?: unknown;
78
79
  mileage?: unknown;
79
- refills_liters?: unknown;
80
80
  removals_liters?: unknown;
81
81
  }>;
82
82
  type GPSFuelVehicleDailySummaryDTO = z.infer<typeof GPSFuelVehicleDailySummarySchema>;
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts
@@ -1,7 +1,7 @@
1
1
  import { YesNo, GPSFuelApproveStatus, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } 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, e as MasterDevice, a as User } from '../../../../user_organisation_service-DJWj2iMa.js';
4
+ import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver, e as MasterDevice, a as User } from '../../../../user_organisation_service-B_mpMXYI.js';
5
5
  import '../../../../zod_utils/zod_base_schema.js';
6
6
  import '../../../master/main/master_main_sim_provider_service.js';
7
7
 
@@ -62,16 +62,6 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
62
62
  ld: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
63
63
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
64
64
  }, "strip", z.ZodTypeAny, {
65
- status: Status;
66
- organisation_id: string;
67
- vehicle_id: string;
68
- device_id: string;
69
- driver_id: string;
70
- user_id: string;
71
- gl: string;
72
- lid: string;
73
- ll: string;
74
- ld: number;
75
65
  before_refill_fuel_liters: number;
76
66
  after_refill_fuel_liters: number;
77
67
  gps_refill_liters: number;
@@ -80,26 +70,30 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
80
70
  approved: GPSFuelApproveStatus;
81
71
  date_time: string;
82
72
  refill_details: string;
83
- latitude?: number | undefined;
84
- longitude?: number | undefined;
85
- cost_per_liter?: number | undefined;
86
- total_cost?: number | undefined;
87
- }, {
73
+ gl: string;
74
+ lid: string;
75
+ ll: string;
76
+ ld: number;
88
77
  status: Status;
89
78
  organisation_id: string;
90
79
  vehicle_id: string;
91
80
  device_id: string;
92
81
  driver_id: string;
93
82
  user_id: string;
83
+ cost_per_liter?: number | undefined;
84
+ total_cost?: number | undefined;
85
+ latitude?: number | undefined;
86
+ longitude?: number | undefined;
87
+ }, {
94
88
  verified: YesNo;
95
89
  approved: GPSFuelApproveStatus;
96
90
  date_time: string;
97
- latitude?: unknown;
98
- longitude?: unknown;
99
- gl?: string | undefined;
100
- lid?: string | undefined;
101
- ll?: string | undefined;
102
- ld?: unknown;
91
+ status: Status;
92
+ organisation_id: string;
93
+ vehicle_id: string;
94
+ device_id: string;
95
+ driver_id: string;
96
+ user_id: string;
103
97
  before_refill_fuel_liters?: unknown;
104
98
  after_refill_fuel_liters?: unknown;
105
99
  gps_refill_liters?: unknown;
@@ -107,6 +101,12 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
107
101
  cost_per_liter?: unknown;
108
102
  total_cost?: unknown;
109
103
  refill_details?: string | undefined;
104
+ latitude?: unknown;
105
+ longitude?: unknown;
106
+ gl?: string | undefined;
107
+ lid?: string | undefined;
108
+ ll?: string | undefined;
109
+ ld?: unknown;
110
110
  }>;
111
111
  type GPSFuelVehicleRefillDTO = z.infer<typeof GPSFuelVehicleRefillSchema>;
112
112
  declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
@@ -150,6 +150,8 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
150
150
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
151
151
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
152
152
  }, "strip", z.ZodTypeAny, {
153
+ verified: YesNo[];
154
+ approved: GPSFuelApproveStatus[];
153
155
  status: Status[];
154
156
  search: string;
155
157
  paging: PAGING;
@@ -172,19 +174,19 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
172
174
  date_format_id: string;
173
175
  time_zone_id: string;
174
176
  organisation_ids: string[];
177
+ user_ids: string[];
175
178
  vehicle_ids: string[];
176
179
  device_ids: string[];
177
180
  driver_ids: string[];
178
181
  from_date: string;
179
182
  to_date: string;
180
- user_ids: string[];
181
- verified: YesNo[];
182
- approved: GPSFuelApproveStatus[];
183
183
  }, {
184
184
  date_format_id: string;
185
185
  time_zone_id: string;
186
186
  from_date: string;
187
187
  to_date: string;
188
+ verified?: YesNo[] | undefined;
189
+ approved?: GPSFuelApproveStatus[] | undefined;
188
190
  status?: Status[] | undefined;
189
191
  search?: string | undefined;
190
192
  paging?: PAGING | undefined;
@@ -205,12 +207,10 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
205
207
  }[] | undefined;
206
208
  include_master_data?: YesNo | undefined;
207
209
  organisation_ids?: string[] | undefined;
210
+ user_ids?: string[] | undefined;
208
211
  vehicle_ids?: string[] | undefined;
209
212
  device_ids?: string[] | undefined;
210
213
  driver_ids?: string[] | undefined;
211
- user_ids?: string[] | undefined;
212
- verified?: YesNo[] | undefined;
213
- approved?: GPSFuelApproveStatus[] | undefined;
214
214
  }>;
215
215
  type GPSFuelVehicleRefillQueryDTO = z.infer<typeof GPSFuelVehicleRefillQuerySchema>;
216
216
  declare const toGPSFuelVehicleRefillPayload: (data: GPSFuelVehicleRefill) => GPSFuelVehicleRefillDTO;
@@ -1,10 +1,11 @@
1
1
  // src/core/sdk-config.ts
2
- var axiosInstance;
2
+ var KEY = "__vms_axios_instance__";
3
3
  var getAxiosInstance = () => {
4
- if (!axiosInstance) {
4
+ const instance = globalThis[KEY];
5
+ if (!instance) {
5
6
  throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
6
7
  }
7
- return axiosInstance;
8
+ return instance;
8
9
  };
9
10
 
10
11
  // src/core/apiCall.ts