vms-nest-prisma-api-document 3.0.0 → 5.0.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.
- package/dist/core/apiCall.js +4 -3
- package/dist/core/sdk-config.js +6 -4
- package/dist/services/account/alert_service.js +4 -3
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_login_analytics_service.js +4 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/account/analytics/user_page_analytics_service.js +4 -3
- package/dist/services/account/bookmark_service.js +4 -3
- package/dist/services/account/notification_service.js +4 -3
- package/dist/services/account/ticket_service.js +4 -3
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +12 -12
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.js +4 -3
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +40 -37
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +30 -18
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +34 -31
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +33 -21
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +10 -10
- package/dist/services/gps/features/geofence/gps_geofence_data_service.js +4 -3
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +4 -4
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +4 -3
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +7 -7
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +4 -3
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +10 -10
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +4 -3
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +16 -16
- package/dist/services/gps/features/gps_live_track_share_link_service.js +4 -3
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +9 -9
- package/dist/services/gps/features/gps_track_history_share_link_service.js +4 -3
- package/dist/services/gps/reports/gps_reports_mongo_service.js +4 -3
- package/dist/services/main/devices/master_device_service.js +4 -3
- package/dist/services/main/drivers/master_driver_service.js +4 -3
- package/dist/services/main/sims/master_sim_service.js +4 -3
- package/dist/services/main/users/auth_service.js +4 -3
- package/dist/services/main/users/user_admin_service.js +4 -3
- package/dist/services/main/users/user_organisation_service.js +4 -3
- package/dist/services/main/users/user_service.js +4 -3
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +4 -3
- package/dist/services/main/vehicle/master_vehicle_service.js +4 -3
- package/dist/services/master/device/master_device_manufacturer_service.js +4 -3
- package/dist/services/master/device/master_device_model_service.js +4 -3
- package/dist/services/master/device/master_device_type_service.js +4 -3
- package/dist/services/master/expense/master_expense_name_service.js +4 -3
- package/dist/services/master/expense/master_expense_type_service.js +4 -3
- package/dist/services/master/expense/master_vendor_type_service.js +4 -3
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +4 -3
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +4 -3
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +4 -3
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +4 -3
- package/dist/services/master/fleet/master_fleet_service_task_service.js +4 -3
- package/dist/services/master/main/master_main_country_service.js +4 -3
- package/dist/services/master/main/master_main_currency_service.js +4 -3
- package/dist/services/master/main/master_main_date_format_service.js +4 -3
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +4 -3
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.js +4 -3
- package/dist/services/master/main/master_main_industry_service.js +4 -3
- package/dist/services/master/main/master_main_landmark_service.js +4 -3
- package/dist/services/master/main/master_main_language_service.js +4 -3
- package/dist/services/master/main/master_main_sim_provider_service.js +4 -3
- package/dist/services/master/main/master_main_state_service.js +4 -3
- package/dist/services/master/main/master_main_timezone_service.js +4 -3
- package/dist/services/master/main/master_main_unit_distance_service.js +4 -3
- package/dist/services/master/main/master_main_unit_mileage_service.js +4 -3
- package/dist/services/master/main/master_main_unit_volume_service.js +4 -3
- package/dist/services/master/organisation/organisation_branch_service.js +4 -3
- package/dist/services/master/organisation/organisation_color_service.js +4 -3
- package/dist/services/master/organisation/organisation_group_service.js +4 -3
- package/dist/services/master/organisation/organisation_sub_company_service.js +4 -3
- package/dist/services/master/organisation/organisation_tag_service.js +4 -3
- package/dist/services/master/spare_part/master_spare_part_category_service.js +4 -3
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +4 -3
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +4 -3
- package/dist/services/master/trip/master_trip_party_type_service.js +4 -3
- package/dist/services/master/tyre/master_tyre_grade_service.js +4 -3
- package/dist/services/master/tyre/master_tyre_make_service.js +4 -3
- package/dist/services/master/tyre/master_tyre_model_service.js +4 -3
- package/dist/services/master/user/master_user_role_service.js +4 -3
- package/dist/services/master/user/master_user_status_service.js +4 -3
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +4 -3
- package/dist/services/master/vehicle/master_vehicle_make_service.js +4 -3
- package/dist/services/master/vehicle/master_vehicle_model_service.js +4 -3
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +4 -3
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +4 -3
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +4 -3
- package/dist/services/master/vehicle/master_vehicle_type_service.js +4 -3
- package/dist/services/website/contact_us_detail_service.js +4 -3
- package/dist/services/website/faq_service.d.ts +1 -1
- package/dist/services/website/faq_service.js +4 -3
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.js +4 -3
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -231,10 +232,10 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
231
232
|
Status2["Inactive"] = "Inactive";
|
|
232
233
|
return Status2;
|
|
233
234
|
})(Status || {});
|
|
234
|
-
var YesNo = /* @__PURE__ */ ((
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
return
|
|
235
|
+
var YesNo = /* @__PURE__ */ ((YesNo3) => {
|
|
236
|
+
YesNo3["Yes"] = "Yes";
|
|
237
|
+
YesNo3["No"] = "No";
|
|
238
|
+
return YesNo3;
|
|
238
239
|
})(YesNo || {});
|
|
239
240
|
var GPSFuelApproveStatus = /* @__PURE__ */ ((GPSFuelApproveStatus2) => {
|
|
240
241
|
GPSFuelApproveStatus2["Pending"] = "Pending";
|
|
@@ -298,22 +299,27 @@ var GPSFuelVehicleRemovalSchema = z3.object({
|
|
|
298
299
|
organisation_id: single_select_mandatory("Organisation ID"),
|
|
299
300
|
vehicle_id: single_select_mandatory("Master Vehicle ID"),
|
|
300
301
|
device_id: single_select_mandatory("Device ID"),
|
|
301
|
-
user_id: single_select_optional("User ID"),
|
|
302
302
|
driver_id: single_select_optional("Driver ID"),
|
|
303
|
+
user_id: single_select_optional("User ID"),
|
|
303
304
|
before_remove_fuel_liters: doubleMandatory("Before Remove Fuel Liters"),
|
|
304
305
|
after_remove_fuel_liters: doubleMandatory("Before Remove Fuel Liters"),
|
|
305
306
|
gps_removal_liters: doubleMandatory("GPS Removal Liters"),
|
|
306
307
|
verified_removal_liters: doubleMandatory("Verified Removal Liters"),
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"GPS Fuel
|
|
308
|
+
diff_removal_liters: doubleMandatory("Difference Removal Liters"),
|
|
309
|
+
admin_verify_status: enumMandatory(
|
|
310
|
+
"Admin GPS Fuel Status",
|
|
311
|
+
GPSFuelApproveStatus,
|
|
312
|
+
"Pending" /* Pending */
|
|
313
|
+
),
|
|
314
|
+
transporter_verify_status: enumMandatory(
|
|
315
|
+
"Transporter GPS Fuel Status",
|
|
310
316
|
GPSFuelApproveStatus,
|
|
311
317
|
"Pending" /* Pending */
|
|
312
318
|
),
|
|
313
319
|
date_time: dateMandatory("Date Time"),
|
|
314
320
|
cost_per_liter: doubleOptional("Cost Per Liter"),
|
|
315
321
|
total_cost: doubleOptional("Total Cost"),
|
|
316
|
-
|
|
322
|
+
removal_details: stringOptional("Removal Details", 0, 300),
|
|
317
323
|
latitude: doubleOptionalLatLng("Latitude"),
|
|
318
324
|
longitude: doubleOptionalLatLng("Longitude"),
|
|
319
325
|
gl: stringOptional("GL", 0, 300),
|
|
@@ -333,12 +339,16 @@ var GPSFuelVehicleRemovalQuerySchema = BaseQuerySchema.extend({
|
|
|
333
339
|
// ✅ Multi-selection -> Master Device
|
|
334
340
|
driver_ids: multi_select_optional("Master Driver IDs"),
|
|
335
341
|
// ✅ Multi-selection -> Master Driver
|
|
336
|
-
|
|
337
|
-
"
|
|
342
|
+
admin_verify_status: enumArrayOptional(
|
|
343
|
+
"Admin GPS Fuel Verify Status",
|
|
344
|
+
GPSFuelApproveStatus,
|
|
345
|
+
getAllEnums(GPSFuelApproveStatus)
|
|
346
|
+
),
|
|
347
|
+
transporter_verify_status: enumArrayOptional(
|
|
348
|
+
"Transporter GPS Fuel Verify Status",
|
|
338
349
|
GPSFuelApproveStatus,
|
|
339
350
|
getAllEnums(GPSFuelApproveStatus)
|
|
340
351
|
),
|
|
341
|
-
verified: enumArrayOptional("Verified", YesNo, getAllEnums(YesNo)),
|
|
342
352
|
from_date: dateMandatory("From Date"),
|
|
343
353
|
to_date: dateMandatory("To Date")
|
|
344
354
|
});
|
|
@@ -352,12 +362,13 @@ var toGPSFuelVehicleRemovalPayload = (item) => ({
|
|
|
352
362
|
after_remove_fuel_liters: item.after_remove_fuel_liters,
|
|
353
363
|
gps_removal_liters: item.gps_removal_liters,
|
|
354
364
|
verified_removal_liters: item.verified_removal_liters,
|
|
355
|
-
|
|
356
|
-
|
|
365
|
+
diff_removal_liters: item.diff_removal_liters,
|
|
366
|
+
admin_verify_status: item.admin_verify_status,
|
|
367
|
+
transporter_verify_status: item.transporter_verify_status,
|
|
357
368
|
date_time: item.date_time,
|
|
358
369
|
cost_per_liter: item.cost_per_liter ?? 0,
|
|
359
370
|
total_cost: item.total_cost ?? 0,
|
|
360
|
-
|
|
371
|
+
removal_details: item.removal_details ?? "",
|
|
361
372
|
latitude: item.latitude ?? 0,
|
|
362
373
|
longitude: item.longitude ?? 0,
|
|
363
374
|
gl: item.gl || "",
|
|
@@ -376,12 +387,13 @@ var newGPSFuelVehicleRemovalPayload = () => ({
|
|
|
376
387
|
after_remove_fuel_liters: 0,
|
|
377
388
|
gps_removal_liters: 0,
|
|
378
389
|
verified_removal_liters: 0,
|
|
379
|
-
|
|
380
|
-
|
|
390
|
+
diff_removal_liters: 0,
|
|
391
|
+
admin_verify_status: "Pending" /* Pending */,
|
|
392
|
+
transporter_verify_status: "Pending" /* Pending */,
|
|
381
393
|
date_time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
382
394
|
cost_per_liter: 0,
|
|
383
395
|
total_cost: 0,
|
|
384
|
-
|
|
396
|
+
removal_details: "",
|
|
385
397
|
latitude: 0,
|
|
386
398
|
longitude: 0,
|
|
387
399
|
gl: "",
|
|
@@ -59,6 +59,8 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
|
|
|
59
59
|
geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
|
|
60
60
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
status: Status;
|
|
63
|
+
organisation_id: string;
|
|
62
64
|
geofence_name: string;
|
|
63
65
|
location_name: string;
|
|
64
66
|
geofence_type: GeofenceType;
|
|
@@ -68,21 +70,19 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
|
|
|
68
70
|
}[];
|
|
69
71
|
geofence_description: string;
|
|
70
72
|
geofence_purpose_type: GeofencePurposeType;
|
|
71
|
-
status: Status;
|
|
72
|
-
organisation_id: string;
|
|
73
|
-
radius_km?: number | undefined;
|
|
74
73
|
latitude?: number | undefined;
|
|
75
74
|
longitude?: number | undefined;
|
|
75
|
+
radius_km?: number | undefined;
|
|
76
76
|
}, {
|
|
77
|
+
status: Status;
|
|
78
|
+
organisation_id: string;
|
|
77
79
|
geofence_name: string;
|
|
78
80
|
location_name: string;
|
|
79
81
|
geofence_type: GeofenceType;
|
|
80
82
|
geofence_purpose_type: GeofencePurposeType;
|
|
81
|
-
status: Status;
|
|
82
|
-
organisation_id: string;
|
|
83
|
-
radius_km?: unknown;
|
|
84
83
|
latitude?: unknown;
|
|
85
84
|
longitude?: unknown;
|
|
85
|
+
radius_km?: unknown;
|
|
86
86
|
poliline_data?: {
|
|
87
87
|
latitude?: unknown;
|
|
88
88
|
longitude?: unknown;
|
|
@@ -125,8 +125,6 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
125
125
|
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
126
126
|
geofence_purpose_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofencePurposeType>, "many">>>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
geofence_type: GeofenceType[];
|
|
129
|
-
geofence_purpose_type: GeofencePurposeType[];
|
|
130
128
|
status: Status[];
|
|
131
129
|
search: string;
|
|
132
130
|
paging: PAGING;
|
|
@@ -149,11 +147,11 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
149
147
|
date_format_id: string;
|
|
150
148
|
time_zone_id: string;
|
|
151
149
|
organisation_ids: string[];
|
|
150
|
+
geofence_type: GeofenceType[];
|
|
151
|
+
geofence_purpose_type: GeofencePurposeType[];
|
|
152
152
|
}, {
|
|
153
153
|
date_format_id: string;
|
|
154
154
|
time_zone_id: string;
|
|
155
|
-
geofence_type?: GeofenceType[] | undefined;
|
|
156
|
-
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
157
155
|
status?: Status[] | undefined;
|
|
158
156
|
search?: string | undefined;
|
|
159
157
|
paging?: PAGING | undefined;
|
|
@@ -174,6 +172,8 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
174
172
|
}[] | undefined;
|
|
175
173
|
include_master_data?: YesNo | undefined;
|
|
176
174
|
organisation_ids?: string[] | undefined;
|
|
175
|
+
geofence_type?: GeofenceType[] | undefined;
|
|
176
|
+
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
177
177
|
}>;
|
|
178
178
|
type GPSGeofenceDataQueryDTO = z.infer<typeof GPSGeofenceDataQuerySchema>;
|
|
179
179
|
declare const toGPSGeofenceDataPayload: (data: GPSGeofenceData) => GPSGeofenceDataDTO;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -31,19 +31,19 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
|
31
31
|
geofence_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
32
32
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
gps_geofence_id: string;
|
|
35
34
|
status: Status;
|
|
36
35
|
organisation_id: string;
|
|
37
|
-
driver_id: string;
|
|
38
36
|
vehicle_id: string;
|
|
37
|
+
driver_id: string;
|
|
38
|
+
gps_geofence_id: string;
|
|
39
39
|
geofence_status_type: GeofenceStatusType;
|
|
40
40
|
geofence_time: string;
|
|
41
41
|
}, {
|
|
42
|
-
gps_geofence_id: string;
|
|
43
42
|
status: Status;
|
|
44
43
|
organisation_id: string;
|
|
45
|
-
driver_id: string;
|
|
46
44
|
vehicle_id: string;
|
|
45
|
+
driver_id: string;
|
|
46
|
+
gps_geofence_id: string;
|
|
47
47
|
geofence_status_type: GeofenceStatusType;
|
|
48
48
|
geofence_time: string;
|
|
49
49
|
}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -40,27 +40,27 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
|
|
|
40
40
|
duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
|
|
43
|
+
duration_seconds: number;
|
|
44
44
|
status: Status;
|
|
45
45
|
organisation_id: string;
|
|
46
|
-
driver_id: string;
|
|
47
46
|
vehicle_id: string;
|
|
47
|
+
driver_id: string;
|
|
48
|
+
gps_geofence_id: string;
|
|
48
49
|
geofence_enter_date_time: string;
|
|
49
50
|
geofence_exit_date_time: string;
|
|
50
|
-
duration_seconds: number;
|
|
51
51
|
enter_gps_geofence_transaction_id: string;
|
|
52
52
|
exit_gps_geofence_transaction_id: string;
|
|
53
53
|
}, {
|
|
54
|
-
gps_geofence_id: string;
|
|
55
54
|
status: Status;
|
|
56
55
|
organisation_id: string;
|
|
57
|
-
driver_id: string;
|
|
58
56
|
vehicle_id: string;
|
|
57
|
+
driver_id: string;
|
|
58
|
+
gps_geofence_id: string;
|
|
59
59
|
geofence_enter_date_time: string;
|
|
60
60
|
enter_gps_geofence_transaction_id: string;
|
|
61
61
|
exit_gps_geofence_transaction_id: string;
|
|
62
|
-
geofence_exit_date_time?: string | undefined;
|
|
63
62
|
duration_seconds?: unknown;
|
|
63
|
+
geofence_exit_date_time?: string | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
type GPSGeofenceTransactionSummaryDTO = z.infer<typeof GPSGeofenceTransactionSummarySchema>;
|
|
66
66
|
declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
@@ -125,9 +125,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
|
125
125
|
organisation_ids: string[];
|
|
126
126
|
vehicle_ids: string[];
|
|
127
127
|
driver_ids: string[];
|
|
128
|
-
gps_geofence_ids: string[];
|
|
129
128
|
from_date: string;
|
|
130
129
|
to_date: string;
|
|
130
|
+
gps_geofence_ids: string[];
|
|
131
131
|
}, {
|
|
132
132
|
date_format_id: string;
|
|
133
133
|
time_zone_id: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -62,19 +62,19 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
62
62
|
mileage: z.ZodOptional<z.ZodEffects<z.ZodDefault<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
|
-
driver_id: string;
|
|
68
|
-
vehicle_id: string;
|
|
69
|
-
duration_seconds: number;
|
|
70
65
|
from_geofence_exit_date_time: string;
|
|
71
66
|
to_geofence_enter_date_time: string;
|
|
67
|
+
duration_seconds: number;
|
|
72
68
|
travel_duration_seconds: number;
|
|
73
69
|
stopped_duration_seconds: number;
|
|
74
70
|
max_speed: number;
|
|
75
71
|
avg_speed: number;
|
|
76
72
|
refills_count: number;
|
|
77
73
|
removals_count: number;
|
|
74
|
+
status: Status;
|
|
75
|
+
organisation_id: string;
|
|
76
|
+
vehicle_id: string;
|
|
77
|
+
driver_id: string;
|
|
78
78
|
from_geofence_id: string;
|
|
79
79
|
to_geofence_id: string;
|
|
80
80
|
distance_meters?: number | undefined;
|
|
@@ -85,12 +85,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
85
85
|
removal_fuel_liters?: number | undefined;
|
|
86
86
|
mileage?: number | undefined;
|
|
87
87
|
}, {
|
|
88
|
+
from_geofence_exit_date_time: string;
|
|
89
|
+
to_geofence_enter_date_time: string;
|
|
88
90
|
status: Status;
|
|
89
91
|
organisation_id: string;
|
|
90
|
-
driver_id: string;
|
|
91
92
|
vehicle_id: string;
|
|
92
|
-
|
|
93
|
-
to_geofence_enter_date_time: string;
|
|
93
|
+
driver_id: string;
|
|
94
94
|
from_geofence_id: string;
|
|
95
95
|
to_geofence_id: string;
|
|
96
96
|
duration_seconds?: unknown;
|
|
@@ -172,10 +172,10 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
|
|
|
172
172
|
organisation_ids: string[];
|
|
173
173
|
vehicle_ids: string[];
|
|
174
174
|
driver_ids: string[];
|
|
175
|
-
from_date: string;
|
|
176
|
-
to_date: string;
|
|
177
175
|
from_geofence_ids: string[];
|
|
178
176
|
to_geofence_ids: string[];
|
|
177
|
+
from_date: string;
|
|
178
|
+
to_date: string;
|
|
179
179
|
}, {
|
|
180
180
|
date_format_id: string;
|
|
181
181
|
time_zone_id: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -42,17 +42,17 @@ declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
42
42
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
43
43
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
gps_live_track_share_link_id: string;
|
|
45
46
|
status: Status;
|
|
46
47
|
organisation_id: string;
|
|
47
48
|
type: NotificationType;
|
|
48
49
|
to_recipients: string;
|
|
49
|
-
gps_live_track_share_link_id: string;
|
|
50
50
|
}, {
|
|
51
|
+
gps_live_track_share_link_id: string;
|
|
51
52
|
status: Status;
|
|
52
53
|
organisation_id: string;
|
|
53
54
|
type: NotificationType;
|
|
54
55
|
to_recipients: string;
|
|
55
|
-
gps_live_track_share_link_id: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
|
|
58
58
|
declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
@@ -73,54 +73,54 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
|
73
73
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
74
74
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
75
75
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
76
|
+
gps_live_track_share_link_id: string;
|
|
76
77
|
status: Status;
|
|
77
78
|
organisation_id: string;
|
|
78
79
|
type: NotificationType;
|
|
79
80
|
to_recipients: string;
|
|
80
|
-
gps_live_track_share_link_id: string;
|
|
81
81
|
}, {
|
|
82
|
+
gps_live_track_share_link_id: string;
|
|
82
83
|
status: Status;
|
|
83
84
|
organisation_id: string;
|
|
84
85
|
type: NotificationType;
|
|
85
86
|
to_recipients: string;
|
|
86
|
-
gps_live_track_share_link_id: string;
|
|
87
87
|
}>, "many">>>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
link_type: LinkType;
|
|
90
|
+
location: string;
|
|
89
91
|
link_status: LinkStatus;
|
|
90
92
|
status: Status;
|
|
91
93
|
organisation_id: string;
|
|
92
94
|
vehicle_id: string;
|
|
93
95
|
trip_id: string;
|
|
96
|
+
expire_milliseconds: number;
|
|
94
97
|
notifications: {
|
|
98
|
+
gps_live_track_share_link_id: string;
|
|
95
99
|
status: Status;
|
|
96
100
|
organisation_id: string;
|
|
97
101
|
type: NotificationType;
|
|
98
102
|
to_recipients: string;
|
|
99
|
-
gps_live_track_share_link_id: string;
|
|
100
103
|
}[];
|
|
101
|
-
link_type: LinkType;
|
|
102
|
-
location: string;
|
|
103
|
-
expire_milliseconds: number;
|
|
104
104
|
latitude?: number | undefined;
|
|
105
105
|
longitude?: number | undefined;
|
|
106
106
|
}, {
|
|
107
|
+
link_type: LinkType;
|
|
107
108
|
link_status: LinkStatus;
|
|
108
109
|
status: Status;
|
|
109
110
|
organisation_id: string;
|
|
110
111
|
vehicle_id: string;
|
|
111
112
|
trip_id: string;
|
|
112
|
-
|
|
113
|
+
latitude?: unknown;
|
|
114
|
+
longitude?: unknown;
|
|
115
|
+
location?: string | undefined;
|
|
116
|
+
expire_milliseconds?: unknown;
|
|
113
117
|
notifications?: {
|
|
118
|
+
gps_live_track_share_link_id: string;
|
|
114
119
|
status: Status;
|
|
115
120
|
organisation_id: string;
|
|
116
121
|
type: NotificationType;
|
|
117
122
|
to_recipients: string;
|
|
118
|
-
gps_live_track_share_link_id: string;
|
|
119
123
|
}[] | undefined;
|
|
120
|
-
latitude?: unknown;
|
|
121
|
-
longitude?: unknown;
|
|
122
|
-
location?: string | undefined;
|
|
123
|
-
expire_milliseconds?: unknown;
|
|
124
124
|
}>;
|
|
125
125
|
type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
|
|
126
126
|
declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
|
|
@@ -176,6 +176,7 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
176
176
|
link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
|
|
177
177
|
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
link_type: LinkType[];
|
|
179
180
|
link_status: LinkStatus[];
|
|
180
181
|
status: Status[];
|
|
181
182
|
search: string;
|
|
@@ -201,10 +202,10 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
201
202
|
organisation_ids: string[];
|
|
202
203
|
vehicle_ids: string[];
|
|
203
204
|
trip_ids: string[];
|
|
204
|
-
link_type: LinkType[];
|
|
205
205
|
}, {
|
|
206
206
|
date_format_id: string;
|
|
207
207
|
time_zone_id: string;
|
|
208
|
+
link_type?: LinkType[] | undefined;
|
|
208
209
|
link_status?: LinkStatus[] | undefined;
|
|
209
210
|
status?: Status[] | undefined;
|
|
210
211
|
search?: string | undefined;
|
|
@@ -228,7 +229,6 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
228
229
|
organisation_ids?: string[] | undefined;
|
|
229
230
|
vehicle_ids?: string[] | undefined;
|
|
230
231
|
trip_ids?: string[] | undefined;
|
|
231
|
-
link_type?: LinkType[] | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
|
|
234
234
|
declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -40,17 +40,17 @@ declare const GPSTrackHistoryShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
40
40
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
gps_track_history_share_link_id: string;
|
|
44
43
|
status: Status;
|
|
45
44
|
organisation_id: string;
|
|
46
45
|
type: NotificationType;
|
|
47
46
|
to_recipients: string;
|
|
48
|
-
}, {
|
|
49
47
|
gps_track_history_share_link_id: string;
|
|
48
|
+
}, {
|
|
50
49
|
status: Status;
|
|
51
50
|
organisation_id: string;
|
|
52
51
|
type: NotificationType;
|
|
53
52
|
to_recipients: string;
|
|
53
|
+
gps_track_history_share_link_id: string;
|
|
54
54
|
}>;
|
|
55
55
|
type GPSTrackHistoryShareLinkNotificationsDTO = z.infer<typeof GPSTrackHistoryShareLinkNotificationsSchema>;
|
|
56
56
|
declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
@@ -68,47 +68,47 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
|
68
68
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
69
69
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
70
70
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
71
|
-
gps_track_history_share_link_id: string;
|
|
72
71
|
status: Status;
|
|
73
72
|
organisation_id: string;
|
|
74
73
|
type: NotificationType;
|
|
75
74
|
to_recipients: string;
|
|
76
|
-
}, {
|
|
77
75
|
gps_track_history_share_link_id: string;
|
|
76
|
+
}, {
|
|
78
77
|
status: Status;
|
|
79
78
|
organisation_id: string;
|
|
80
79
|
type: NotificationType;
|
|
81
80
|
to_recipients: string;
|
|
81
|
+
gps_track_history_share_link_id: string;
|
|
82
82
|
}>, "many">>>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
from_date_time: string;
|
|
85
|
-
to_date_time: string;
|
|
86
84
|
link_status: TrackHistoryLinkStatus;
|
|
87
85
|
status: Status;
|
|
88
86
|
organisation_id: string;
|
|
89
87
|
vehicle_id: string;
|
|
90
88
|
trip_id: string;
|
|
91
89
|
notifications: {
|
|
92
|
-
gps_track_history_share_link_id: string;
|
|
93
90
|
status: Status;
|
|
94
91
|
organisation_id: string;
|
|
95
92
|
type: NotificationType;
|
|
96
93
|
to_recipients: string;
|
|
94
|
+
gps_track_history_share_link_id: string;
|
|
97
95
|
}[];
|
|
98
|
-
}, {
|
|
99
96
|
from_date_time: string;
|
|
100
97
|
to_date_time: string;
|
|
98
|
+
}, {
|
|
101
99
|
link_status: TrackHistoryLinkStatus;
|
|
102
100
|
status: Status;
|
|
103
101
|
organisation_id: string;
|
|
104
102
|
vehicle_id: string;
|
|
105
103
|
trip_id: string;
|
|
104
|
+
from_date_time: string;
|
|
105
|
+
to_date_time: string;
|
|
106
106
|
notifications?: {
|
|
107
|
-
gps_track_history_share_link_id: string;
|
|
108
107
|
status: Status;
|
|
109
108
|
organisation_id: string;
|
|
110
109
|
type: NotificationType;
|
|
111
110
|
to_recipients: string;
|
|
111
|
+
gps_track_history_share_link_id: string;
|
|
112
112
|
}[] | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/core/sdk-config.ts
|
|
2
|
-
var
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
|
-
|
|
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
|
|
8
|
+
return instance;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
// src/core/apiCall.ts
|