vms-nest-prisma-api-document 1.4.0 → 2.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.
- package/dist/core/apiCall.js +1 -1
- package/dist/core/sdk-config.js +1 -1
- package/dist/services/account/alert_service.js +1 -1
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_login_analytics_service.js +1 -1
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/account/analytics/user_page_analytics_service.js +1 -1
- package/dist/services/account/bookmark_service.js +1 -1
- package/dist/services/account/notification_service.js +1 -1
- package/dist/services/account/ticket_service.js +1 -1
- 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 +1 -1
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +27 -27
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +1 -1
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +22 -22
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +1 -1
- 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 +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +9 -9
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +4 -4
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +1 -1
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +1 -1
- package/dist/services/gps/features/gps_live_track_share_link_service.js +1 -1
- package/dist/services/gps/features/gps_track_history_share_link_service.js +1 -1
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +43 -43
- package/dist/services/gps/reports/gps_reports_mongo_service.js +1 -1
- package/dist/services/main/devices/master_device_service.js +1 -1
- package/dist/services/main/drivers/master_driver_service.js +1 -1
- package/dist/services/main/sims/master_sim_service.js +1 -1
- package/dist/services/main/users/auth_service.js +1 -1
- package/dist/services/main/users/user_admin_service.js +1 -1
- package/dist/services/main/users/user_organisation_service.js +1 -1
- package/dist/services/main/users/user_service.js +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.js +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.js +1 -1
- package/dist/services/master/device/master_device_model_service.js +1 -1
- package/dist/services/master/device/master_device_type_service.js +1 -1
- package/dist/services/master/expense/master_expense_name_service.js +1 -1
- package/dist/services/master/expense/master_expense_type_service.js +1 -1
- package/dist/services/master/expense/master_vendor_type_service.js +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.js +1 -1
- package/dist/services/master/main/master_main_country_service.js +1 -1
- package/dist/services/master/main/master_main_currency_service.js +1 -1
- package/dist/services/master/main/master_main_date_format_service.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/services/master/main/master_main_industry_service.js +1 -1
- package/dist/services/master/main/master_main_landmark_service.js +1 -1
- package/dist/services/master/main/master_main_language_service.js +1 -1
- package/dist/services/master/main/master_main_sim_provider_service.js +1 -1
- package/dist/services/master/main/master_main_state_service.js +1 -1
- package/dist/services/master/main/master_main_timezone_service.js +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.js +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.js +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.js +1 -1
- package/dist/services/master/organisation/organisation_branch_service.js +1 -1
- package/dist/services/master/organisation/organisation_color_service.js +1 -1
- package/dist/services/master/organisation/organisation_group_service.js +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.js +1 -1
- package/dist/services/master/organisation/organisation_tag_service.js +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.js +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.js +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.js +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.js +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.js +1 -1
- package/dist/services/master/user/master_user_role_service.js +1 -1
- package/dist/services/master/user/master_user_status_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.js +1 -1
- package/dist/services/website/contact_us_detail_service.js +1 -1
- package/dist/services/website/faq_service.js +1 -1
- package/dist/services/website/static_pages_service.js +1 -1
- package/package.json +6 -6
package/dist/core/apiCall.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
package/dist/core/sdk-config.js
CHANGED
|
@@ -5,7 +5,7 @@ var setAxiosInstance = (instance) => {
|
|
|
5
5
|
};
|
|
6
6
|
var getAxiosInstance = () => {
|
|
7
7
|
if (!axiosInstance) {
|
|
8
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
8
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
9
9
|
}
|
|
10
10
|
return axiosInstance;
|
|
11
11
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -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
|
-
country_id: string;
|
|
26
25
|
login_from: LoginFrom;
|
|
26
|
+
country_id: string;
|
|
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
|
-
country_id: string;
|
|
33
32
|
login_from: LoginFrom;
|
|
33
|
+
country_id: string;
|
|
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;
|
|
52
51
|
search: string;
|
|
53
52
|
paging: PAGING;
|
|
54
53
|
page_count: number;
|
|
55
54
|
page_index: number;
|
|
55
|
+
login_from: LoginFrom;
|
|
56
56
|
date_format_id: string;
|
|
57
57
|
time_zone_id: string;
|
|
58
58
|
user_ids: string[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -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;
|
|
47
46
|
search: string;
|
|
48
47
|
paging: PAGING;
|
|
49
48
|
page_count: number;
|
|
50
49
|
page_index: number;
|
|
50
|
+
login_from: LoginFrom;
|
|
51
51
|
date_format_id: string;
|
|
52
52
|
time_zone_id: string;
|
|
53
53
|
user_ids: string[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -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;
|
|
50
58
|
status: Status;
|
|
51
59
|
organisation_id: string;
|
|
52
60
|
vehicle_id: string;
|
|
53
61
|
device_id: string;
|
|
54
62
|
driver_id: string;
|
|
55
|
-
date: string;
|
|
56
|
-
total_km: number;
|
|
57
|
-
consumed_fuel_liters: number;
|
|
58
|
-
refills_count: number;
|
|
59
63
|
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;
|
|
66
67
|
status: Status;
|
|
67
68
|
organisation_id: string;
|
|
68
69
|
vehicle_id: string;
|
|
69
70
|
device_id: string;
|
|
70
71
|
driver_id: string;
|
|
71
|
-
|
|
72
|
+
start_fuel_liters?: unknown;
|
|
73
|
+
end_fuel_liters?: unknown;
|
|
72
74
|
total_km?: unknown;
|
|
73
75
|
consumed_fuel_liters?: unknown;
|
|
74
76
|
refills_count?: unknown;
|
|
75
|
-
refills_liters?: unknown;
|
|
76
|
-
start_fuel_liters?: unknown;
|
|
77
|
-
end_fuel_liters?: unknown;
|
|
78
77
|
removals_count?: unknown;
|
|
79
78
|
mileage?: unknown;
|
|
79
|
+
refills_liters?: unknown;
|
|
80
80
|
removals_liters?: unknown;
|
|
81
81
|
}>;
|
|
82
82
|
type GPSFuelVehicleDailySummaryDTO = z.infer<typeof GPSFuelVehicleDailySummarySchema>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -62,6 +62,16 @@ 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;
|
|
65
75
|
before_refill_fuel_liters: number;
|
|
66
76
|
after_refill_fuel_liters: number;
|
|
67
77
|
gps_refill_liters: number;
|
|
@@ -70,30 +80,26 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
|
|
|
70
80
|
approved: GPSFuelApproveStatus;
|
|
71
81
|
date_time: string;
|
|
72
82
|
refill_details: string;
|
|
73
|
-
gl: string;
|
|
74
|
-
lid: string;
|
|
75
|
-
ll: string;
|
|
76
|
-
ld: number;
|
|
77
|
-
status: Status;
|
|
78
|
-
organisation_id: string;
|
|
79
|
-
vehicle_id: string;
|
|
80
|
-
device_id: string;
|
|
81
|
-
driver_id: string;
|
|
82
|
-
user_id: string;
|
|
83
|
-
cost_per_liter?: number | undefined;
|
|
84
|
-
total_cost?: number | undefined;
|
|
85
83
|
latitude?: number | undefined;
|
|
86
84
|
longitude?: number | undefined;
|
|
85
|
+
cost_per_liter?: number | undefined;
|
|
86
|
+
total_cost?: number | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
verified: YesNo;
|
|
89
|
-
approved: GPSFuelApproveStatus;
|
|
90
|
-
date_time: string;
|
|
91
88
|
status: Status;
|
|
92
89
|
organisation_id: string;
|
|
93
90
|
vehicle_id: string;
|
|
94
91
|
device_id: string;
|
|
95
92
|
driver_id: string;
|
|
96
93
|
user_id: string;
|
|
94
|
+
verified: YesNo;
|
|
95
|
+
approved: GPSFuelApproveStatus;
|
|
96
|
+
date_time: string;
|
|
97
|
+
latitude?: unknown;
|
|
98
|
+
longitude?: unknown;
|
|
99
|
+
gl?: string | undefined;
|
|
100
|
+
lid?: string | undefined;
|
|
101
|
+
ll?: string | undefined;
|
|
102
|
+
ld?: unknown;
|
|
97
103
|
before_refill_fuel_liters?: unknown;
|
|
98
104
|
after_refill_fuel_liters?: unknown;
|
|
99
105
|
gps_refill_liters?: unknown;
|
|
@@ -101,12 +107,6 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
|
|
|
101
107
|
cost_per_liter?: unknown;
|
|
102
108
|
total_cost?: unknown;
|
|
103
109
|
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,8 +150,6 @@ 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[];
|
|
155
153
|
status: Status[];
|
|
156
154
|
search: string;
|
|
157
155
|
paging: PAGING;
|
|
@@ -174,19 +172,19 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
|
|
|
174
172
|
date_format_id: string;
|
|
175
173
|
time_zone_id: string;
|
|
176
174
|
organisation_ids: string[];
|
|
177
|
-
user_ids: string[];
|
|
178
175
|
vehicle_ids: string[];
|
|
179
176
|
device_ids: string[];
|
|
180
177
|
driver_ids: string[];
|
|
181
178
|
from_date: string;
|
|
182
179
|
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;
|
|
190
188
|
status?: Status[] | undefined;
|
|
191
189
|
search?: string | undefined;
|
|
192
190
|
paging?: PAGING | undefined;
|
|
@@ -207,10 +205,12 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
|
|
|
207
205
|
}[] | undefined;
|
|
208
206
|
include_master_data?: YesNo | undefined;
|
|
209
207
|
organisation_ids?: string[] | undefined;
|
|
210
|
-
user_ids?: string[] | undefined;
|
|
211
208
|
vehicle_ids?: string[] | undefined;
|
|
212
209
|
device_ids?: string[] | undefined;
|
|
213
210
|
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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -62,47 +62,47 @@ declare const GPSFuelVehicleRemovalSchema: 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
|
-
verified: YesNo;
|
|
66
|
-
approved: GPSFuelApproveStatus;
|
|
67
|
-
date_time: string;
|
|
68
|
-
refill_details: string;
|
|
69
|
-
gl: string;
|
|
70
|
-
lid: string;
|
|
71
|
-
ll: string;
|
|
72
|
-
ld: number;
|
|
73
65
|
status: Status;
|
|
74
66
|
organisation_id: string;
|
|
75
67
|
vehicle_id: string;
|
|
76
68
|
device_id: string;
|
|
77
69
|
driver_id: string;
|
|
78
70
|
user_id: string;
|
|
71
|
+
gl: string;
|
|
72
|
+
lid: string;
|
|
73
|
+
ll: string;
|
|
74
|
+
ld: number;
|
|
75
|
+
verified: YesNo;
|
|
76
|
+
approved: GPSFuelApproveStatus;
|
|
77
|
+
date_time: string;
|
|
78
|
+
refill_details: string;
|
|
79
79
|
before_remove_fuel_liters: number;
|
|
80
80
|
after_remove_fuel_liters: number;
|
|
81
81
|
gps_removal_liters: number;
|
|
82
82
|
verified_removal_liters: number;
|
|
83
|
-
cost_per_liter?: number | undefined;
|
|
84
|
-
total_cost?: number | undefined;
|
|
85
83
|
latitude?: number | undefined;
|
|
86
84
|
longitude?: number | undefined;
|
|
85
|
+
cost_per_liter?: number | undefined;
|
|
86
|
+
total_cost?: number | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
verified: YesNo;
|
|
89
|
-
approved: GPSFuelApproveStatus;
|
|
90
|
-
date_time: string;
|
|
91
88
|
status: Status;
|
|
92
89
|
organisation_id: string;
|
|
93
90
|
vehicle_id: string;
|
|
94
91
|
device_id: string;
|
|
95
92
|
driver_id: string;
|
|
96
93
|
user_id: string;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
verified: YesNo;
|
|
95
|
+
approved: GPSFuelApproveStatus;
|
|
96
|
+
date_time: string;
|
|
100
97
|
latitude?: unknown;
|
|
101
98
|
longitude?: unknown;
|
|
102
99
|
gl?: string | undefined;
|
|
103
100
|
lid?: string | undefined;
|
|
104
101
|
ll?: string | undefined;
|
|
105
102
|
ld?: unknown;
|
|
103
|
+
cost_per_liter?: unknown;
|
|
104
|
+
total_cost?: unknown;
|
|
105
|
+
refill_details?: string | undefined;
|
|
106
106
|
before_remove_fuel_liters?: unknown;
|
|
107
107
|
after_remove_fuel_liters?: unknown;
|
|
108
108
|
gps_removal_liters?: unknown;
|
|
@@ -150,8 +150,6 @@ declare const GPSFuelVehicleRemovalQuerySchema: 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[];
|
|
155
153
|
status: Status[];
|
|
156
154
|
search: string;
|
|
157
155
|
paging: PAGING;
|
|
@@ -174,19 +172,19 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
|
|
|
174
172
|
date_format_id: string;
|
|
175
173
|
time_zone_id: string;
|
|
176
174
|
organisation_ids: string[];
|
|
177
|
-
user_ids: string[];
|
|
178
175
|
vehicle_ids: string[];
|
|
179
176
|
device_ids: string[];
|
|
180
177
|
driver_ids: string[];
|
|
181
178
|
from_date: string;
|
|
182
179
|
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;
|
|
190
188
|
status?: Status[] | undefined;
|
|
191
189
|
search?: string | undefined;
|
|
192
190
|
paging?: PAGING | undefined;
|
|
@@ -207,10 +205,12 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
|
|
|
207
205
|
}[] | undefined;
|
|
208
206
|
include_master_data?: YesNo | undefined;
|
|
209
207
|
organisation_ids?: string[] | undefined;
|
|
210
|
-
user_ids?: string[] | undefined;
|
|
211
208
|
vehicle_ids?: string[] | undefined;
|
|
212
209
|
device_ids?: string[] | undefined;
|
|
213
210
|
driver_ids?: string[] | undefined;
|
|
211
|
+
user_ids?: string[] | undefined;
|
|
212
|
+
verified?: YesNo[] | undefined;
|
|
213
|
+
approved?: GPSFuelApproveStatus[] | undefined;
|
|
214
214
|
}>;
|
|
215
215
|
type GPSFuelVehicleRemovalQueryDTO = z.infer<typeof GPSFuelVehicleRemovalQuerySchema>;
|
|
216
216
|
declare const toGPSFuelVehicleRemovalPayload: (item: GPSFuelVehicleRemoval) => GPSFuelVehicleRemovalDTO;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -59,8 +59,6 @@ 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;
|
|
64
62
|
geofence_name: string;
|
|
65
63
|
location_name: string;
|
|
66
64
|
geofence_type: GeofenceType;
|
|
@@ -70,19 +68,21 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
|
|
|
70
68
|
}[];
|
|
71
69
|
geofence_description: string;
|
|
72
70
|
geofence_purpose_type: GeofencePurposeType;
|
|
71
|
+
status: Status;
|
|
72
|
+
organisation_id: string;
|
|
73
|
+
radius_km?: number | undefined;
|
|
73
74
|
latitude?: number | undefined;
|
|
74
75
|
longitude?: number | undefined;
|
|
75
|
-
radius_km?: number | undefined;
|
|
76
76
|
}, {
|
|
77
|
-
status: Status;
|
|
78
|
-
organisation_id: string;
|
|
79
77
|
geofence_name: string;
|
|
80
78
|
location_name: string;
|
|
81
79
|
geofence_type: GeofenceType;
|
|
82
80
|
geofence_purpose_type: GeofencePurposeType;
|
|
81
|
+
status: Status;
|
|
82
|
+
organisation_id: string;
|
|
83
|
+
radius_km?: unknown;
|
|
83
84
|
latitude?: unknown;
|
|
84
85
|
longitude?: unknown;
|
|
85
|
-
radius_km?: unknown;
|
|
86
86
|
poliline_data?: {
|
|
87
87
|
latitude?: unknown;
|
|
88
88
|
longitude?: unknown;
|
|
@@ -125,6 +125,8 @@ 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[];
|
|
128
130
|
status: Status[];
|
|
129
131
|
search: string;
|
|
130
132
|
paging: PAGING;
|
|
@@ -147,11 +149,11 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
147
149
|
date_format_id: string;
|
|
148
150
|
time_zone_id: string;
|
|
149
151
|
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;
|
|
155
157
|
status?: Status[] | undefined;
|
|
156
158
|
search?: string | undefined;
|
|
157
159
|
paging?: PAGING | undefined;
|
|
@@ -172,8 +174,6 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
172
174
|
}[] | undefined;
|
|
173
175
|
include_master_data?: YesNo | undefined;
|
|
174
176
|
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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -31,21 +31,21 @@ 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
|
-
|
|
35
|
-
geofence_time: string;
|
|
34
|
+
gps_geofence_id: string;
|
|
36
35
|
status: Status;
|
|
37
36
|
organisation_id: string;
|
|
38
|
-
vehicle_id: string;
|
|
39
37
|
driver_id: string;
|
|
40
|
-
|
|
41
|
-
}, {
|
|
38
|
+
vehicle_id: string;
|
|
42
39
|
geofence_status_type: GeofenceStatusType;
|
|
43
40
|
geofence_time: string;
|
|
41
|
+
}, {
|
|
42
|
+
gps_geofence_id: string;
|
|
44
43
|
status: Status;
|
|
45
44
|
organisation_id: string;
|
|
46
|
-
vehicle_id: string;
|
|
47
45
|
driver_id: string;
|
|
48
|
-
|
|
46
|
+
vehicle_id: string;
|
|
47
|
+
geofence_status_type: GeofenceStatusType;
|
|
48
|
+
geofence_time: string;
|
|
49
49
|
}>;
|
|
50
50
|
type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
|
|
51
51
|
declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
@@ -85,7 +85,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
85
85
|
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
86
86
|
geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
geofence_status_type: GeofenceStatusType[];
|
|
89
88
|
status: Status[];
|
|
90
89
|
search: string;
|
|
91
90
|
paging: PAGING;
|
|
@@ -110,11 +109,11 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
110
109
|
organisation_ids: string[];
|
|
111
110
|
vehicle_ids: string[];
|
|
112
111
|
driver_ids: string[];
|
|
112
|
+
geofence_status_type: GeofenceStatusType[];
|
|
113
113
|
gps_geofence_ids: string[];
|
|
114
114
|
}, {
|
|
115
115
|
date_format_id: string;
|
|
116
116
|
time_zone_id: string;
|
|
117
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
118
117
|
status?: Status[] | undefined;
|
|
119
118
|
search?: string | undefined;
|
|
120
119
|
paging?: PAGING | undefined;
|
|
@@ -137,6 +136,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
137
136
|
organisation_ids?: string[] | undefined;
|
|
138
137
|
vehicle_ids?: string[] | undefined;
|
|
139
138
|
driver_ids?: string[] | undefined;
|
|
139
|
+
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
140
140
|
gps_geofence_ids?: string[] | undefined;
|
|
141
141
|
}>;
|
|
142
142
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -40,22 +40,22 @@ 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
|
+
gps_geofence_id: string;
|
|
43
44
|
status: Status;
|
|
44
45
|
organisation_id: string;
|
|
45
|
-
vehicle_id: string;
|
|
46
46
|
driver_id: string;
|
|
47
|
-
|
|
47
|
+
vehicle_id: string;
|
|
48
48
|
geofence_enter_date_time: string;
|
|
49
49
|
geofence_exit_date_time: string;
|
|
50
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;
|
|
54
55
|
status: Status;
|
|
55
56
|
organisation_id: string;
|
|
56
|
-
vehicle_id: string;
|
|
57
57
|
driver_id: string;
|
|
58
|
-
|
|
58
|
+
vehicle_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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -64,8 +64,8 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
65
|
status: Status;
|
|
66
66
|
organisation_id: string;
|
|
67
|
-
vehicle_id: string;
|
|
68
67
|
driver_id: string;
|
|
68
|
+
vehicle_id: string;
|
|
69
69
|
duration_seconds: number;
|
|
70
70
|
from_geofence_exit_date_time: string;
|
|
71
71
|
to_geofence_enter_date_time: string;
|
|
@@ -87,8 +87,8 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
87
87
|
}, {
|
|
88
88
|
status: Status;
|
|
89
89
|
organisation_id: string;
|
|
90
|
-
vehicle_id: string;
|
|
91
90
|
driver_id: string;
|
|
91
|
+
vehicle_id: string;
|
|
92
92
|
from_geofence_exit_date_time: string;
|
|
93
93
|
to_geofence_enter_date_time: string;
|
|
94
94
|
from_geofence_id: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var axiosInstance;
|
|
3
3
|
var getAxiosInstance = () => {
|
|
4
4
|
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call
|
|
5
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
6
6
|
}
|
|
7
7
|
return axiosInstance;
|
|
8
8
|
};
|