vms-nest-prisma-api-document 16.0.0 → 17.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/BaseResponse.d.ts +1 -1
- package/dist/services/account/analytics/user_login_analytics_service.js +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/ticket_service.js +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +49 -49
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +2 -2
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +29 -29
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +16 -16
- package/dist/services/gps/features/geofence/gps_geofence_service.js +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +15 -15
- 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 +10 -10
- 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 +6 -6
- 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/features/user_notification_preferences.service.js +1 -1
- package/dist/services/gps/features/user_report_preferences.service.js +1 -1
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- 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/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_fuel_company_service.js +1 -1
- package/dist/services/master/expense/master_vendor_document_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.d.ts +6 -6
- 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_associated_to_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_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/dist/zod_utils/zod_base_schema.d.ts +2 -2
- package/dist/zod_utils/zod_base_schema.js +1 -1
- package/package.json +1 -1
|
@@ -182,7 +182,7 @@ var OrderBySchema = z2.array(
|
|
|
182
182
|
})
|
|
183
183
|
);
|
|
184
184
|
var BaseFileSchema = z2.object({
|
|
185
|
-
usage_type:
|
|
185
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
186
186
|
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
187
187
|
file_url: stringOptional("File URL", 0, 300),
|
|
188
188
|
file_key: stringOptional("File Key", 0, 300),
|
|
@@ -182,7 +182,7 @@ var OrderBySchema = z2.array(
|
|
|
182
182
|
})
|
|
183
183
|
);
|
|
184
184
|
var BaseFileSchema = z2.object({
|
|
185
|
-
usage_type:
|
|
185
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
186
186
|
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
187
187
|
file_url: stringOptional("File URL", 0, 300),
|
|
188
188
|
file_key: stringOptional("File Key", 0, 300),
|
|
@@ -195,7 +195,7 @@ var OrderBySchema = z2.array(
|
|
|
195
195
|
})
|
|
196
196
|
);
|
|
197
197
|
var BaseFileSchema = z2.object({
|
|
198
|
-
usage_type:
|
|
198
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
199
199
|
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
200
200
|
file_url: stringOptional("File URL", 0, 300),
|
|
201
201
|
file_key: stringOptional("File Key", 0, 300),
|
|
@@ -215,7 +215,7 @@ var OrderBySchema = z2.array(
|
|
|
215
215
|
})
|
|
216
216
|
);
|
|
217
217
|
var BaseFileSchema = z2.object({
|
|
218
|
-
usage_type:
|
|
218
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
219
219
|
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
220
220
|
file_url: stringOptional("File URL", 0, 300),
|
|
221
221
|
file_key: stringOptional("File Key", 0, 300),
|
|
@@ -62,22 +62,22 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
|
|
|
62
62
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
date: string;
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
status: Status;
|
|
66
|
+
organisation_id: string;
|
|
67
|
+
user_id: string;
|
|
68
|
+
vehicle_id: string;
|
|
69
|
+
driver_id: string;
|
|
70
|
+
device_id: string;
|
|
67
71
|
total_km: number;
|
|
68
72
|
consumed_fuel_liters: number;
|
|
69
73
|
refills_count: number;
|
|
74
|
+
start_fuel_liters: number;
|
|
75
|
+
end_fuel_liters: number;
|
|
70
76
|
refill_liters: number;
|
|
71
77
|
removals_count: number;
|
|
72
78
|
removal_liters: number;
|
|
73
79
|
mileage_kmpl: number;
|
|
74
80
|
liters_per_100km: number;
|
|
75
|
-
status: Status;
|
|
76
|
-
organisation_id: string;
|
|
77
|
-
user_id: string;
|
|
78
|
-
vehicle_id: string;
|
|
79
|
-
driver_id: string;
|
|
80
|
-
device_id: string;
|
|
81
81
|
}, {
|
|
82
82
|
date: string;
|
|
83
83
|
status: Status;
|
|
@@ -86,11 +86,11 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
|
|
|
86
86
|
vehicle_id: string;
|
|
87
87
|
driver_id: string;
|
|
88
88
|
device_id: string;
|
|
89
|
-
start_fuel_liters?: unknown;
|
|
90
|
-
end_fuel_liters?: unknown;
|
|
91
89
|
total_km?: unknown;
|
|
92
90
|
consumed_fuel_liters?: unknown;
|
|
93
91
|
refills_count?: unknown;
|
|
92
|
+
start_fuel_liters?: unknown;
|
|
93
|
+
end_fuel_liters?: unknown;
|
|
94
94
|
refill_liters?: unknown;
|
|
95
95
|
removals_count?: unknown;
|
|
96
96
|
removal_liters?: unknown;
|
|
@@ -140,6 +140,7 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
140
140
|
day_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
142
|
status: Status[];
|
|
143
|
+
time_zone_id: string;
|
|
143
144
|
search: string;
|
|
144
145
|
paging: PAGING;
|
|
145
146
|
page_count: number;
|
|
@@ -159,7 +160,6 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
159
160
|
}[];
|
|
160
161
|
include_master_data: YesNo;
|
|
161
162
|
date_format_id: string;
|
|
162
|
-
time_zone_id: string;
|
|
163
163
|
organisation_ids: string[];
|
|
164
164
|
user_ids: string[];
|
|
165
165
|
vehicle_ids: string[];
|
|
@@ -170,8 +170,8 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
170
170
|
vehicle_summary: YesNo;
|
|
171
171
|
day_summary: YesNo;
|
|
172
172
|
}, {
|
|
173
|
-
date_format_id: string;
|
|
174
173
|
time_zone_id: string;
|
|
174
|
+
date_format_id: string;
|
|
175
175
|
from_date: string;
|
|
176
176
|
to_date: string;
|
|
177
177
|
status?: Status[] | undefined;
|
|
@@ -239,6 +239,7 @@ declare const FleetFuelDailyMonthlySummaryQuerySchema: z.ZodObject<{
|
|
|
239
239
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
241
|
status: Status[];
|
|
242
|
+
time_zone_id: string;
|
|
242
243
|
search: string;
|
|
243
244
|
paging: PAGING;
|
|
244
245
|
page_count: number;
|
|
@@ -258,14 +259,13 @@ declare const FleetFuelDailyMonthlySummaryQuerySchema: z.ZodObject<{
|
|
|
258
259
|
}[];
|
|
259
260
|
include_master_data: YesNo;
|
|
260
261
|
date_format_id: string;
|
|
261
|
-
time_zone_id: string;
|
|
262
262
|
organisation_ids: string[];
|
|
263
263
|
vehicle_ids: string[];
|
|
264
264
|
from_date: string;
|
|
265
265
|
to_date: string;
|
|
266
266
|
}, {
|
|
267
|
-
date_format_id: string;
|
|
268
267
|
time_zone_id: string;
|
|
268
|
+
date_format_id: string;
|
|
269
269
|
from_date: string;
|
|
270
270
|
to_date: string;
|
|
271
271
|
status?: Status[] | undefined;
|
|
@@ -327,6 +327,7 @@ declare const AllVehiclesFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
328
|
date: string;
|
|
329
329
|
status: Status[];
|
|
330
|
+
time_zone_id: string;
|
|
330
331
|
search: string;
|
|
331
332
|
paging: PAGING;
|
|
332
333
|
page_count: number;
|
|
@@ -346,12 +347,11 @@ declare const AllVehiclesFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
346
347
|
}[];
|
|
347
348
|
include_master_data: YesNo;
|
|
348
349
|
date_format_id: string;
|
|
349
|
-
time_zone_id: string;
|
|
350
350
|
organisation_utrack_id: string;
|
|
351
351
|
}, {
|
|
352
352
|
date: string;
|
|
353
|
-
date_format_id: string;
|
|
354
353
|
time_zone_id: string;
|
|
354
|
+
date_format_id: string;
|
|
355
355
|
organisation_utrack_id: string;
|
|
356
356
|
status?: Status[] | undefined;
|
|
357
357
|
search?: string | undefined;
|
|
@@ -240,7 +240,7 @@ var OrderBySchema = z2.array(
|
|
|
240
240
|
})
|
|
241
241
|
);
|
|
242
242
|
var BaseFileSchema = z2.object({
|
|
243
|
-
usage_type:
|
|
243
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
244
244
|
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
245
245
|
file_url: stringOptional("File URL", 0, 300),
|
|
246
246
|
file_key: stringOptional("File Key", 0, 300),
|
|
@@ -88,7 +88,7 @@ interface FleetFuelRefillFile extends BaseCommionFile {
|
|
|
88
88
|
organisation_id: string;
|
|
89
89
|
}
|
|
90
90
|
declare const FleetFuelRefillFileSchema: z.ZodObject<{
|
|
91
|
-
usage_type: z.
|
|
91
|
+
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
92
92
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
93
93
|
file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
94
94
|
file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -101,6 +101,7 @@ declare const FleetFuelRefillFileSchema: z.ZodObject<{
|
|
|
101
101
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
102
102
|
fleet_fuel_refill_id: z.ZodEffects<z.ZodString, string, string>;
|
|
103
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
fleet_fuel_refill_id: string;
|
|
104
105
|
status: Status;
|
|
105
106
|
organisation_id: string;
|
|
106
107
|
usage_type: string;
|
|
@@ -111,13 +112,12 @@ declare const FleetFuelRefillFileSchema: z.ZodObject<{
|
|
|
111
112
|
file_description: string;
|
|
112
113
|
file_size: number;
|
|
113
114
|
file_metadata: Record<string, any>;
|
|
114
|
-
fleet_fuel_refill_id: string;
|
|
115
115
|
}, {
|
|
116
|
+
fleet_fuel_refill_id: string;
|
|
116
117
|
status: Status;
|
|
117
118
|
organisation_id: string;
|
|
119
|
+
usage_type: string;
|
|
118
120
|
file_type: FileType;
|
|
119
|
-
fleet_fuel_refill_id: string;
|
|
120
|
-
usage_type?: string | undefined;
|
|
121
121
|
file_url?: string | undefined;
|
|
122
122
|
file_key?: string | undefined;
|
|
123
123
|
file_name?: string | undefined;
|
|
@@ -168,7 +168,7 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
168
168
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
169
169
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
170
170
|
FleetFuelRefillFile: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
171
|
-
usage_type: z.
|
|
171
|
+
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
172
172
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
173
173
|
file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
174
174
|
file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -181,6 +181,7 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
181
181
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
182
182
|
fleet_fuel_refill_id: z.ZodEffects<z.ZodString, string, string>;
|
|
183
183
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
184
|
+
fleet_fuel_refill_id: string;
|
|
184
185
|
status: Status;
|
|
185
186
|
organisation_id: string;
|
|
186
187
|
usage_type: string;
|
|
@@ -191,13 +192,12 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
191
192
|
file_description: string;
|
|
192
193
|
file_size: number;
|
|
193
194
|
file_metadata: Record<string, any>;
|
|
194
|
-
fleet_fuel_refill_id: string;
|
|
195
195
|
}, {
|
|
196
|
+
fleet_fuel_refill_id: string;
|
|
196
197
|
status: Status;
|
|
197
198
|
organisation_id: string;
|
|
199
|
+
usage_type: string;
|
|
198
200
|
file_type: FileType;
|
|
199
|
-
fleet_fuel_refill_id: string;
|
|
200
|
-
usage_type?: string | undefined;
|
|
201
201
|
file_url?: string | undefined;
|
|
202
202
|
file_key?: string | undefined;
|
|
203
203
|
file_name?: string | undefined;
|
|
@@ -206,17 +206,6 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
206
206
|
file_metadata?: Record<string, any> | undefined;
|
|
207
207
|
}>, "many">>>;
|
|
208
208
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
status: Status;
|
|
210
|
-
organisation_id: string;
|
|
211
|
-
user_id: string;
|
|
212
|
-
vehicle_id: string;
|
|
213
|
-
driver_id: string;
|
|
214
|
-
device_id: string;
|
|
215
|
-
time_zone_id: string;
|
|
216
|
-
vehicle_fuel_type_id: string;
|
|
217
|
-
vehicle_fuel_unit_id: string;
|
|
218
|
-
odometer_reading: number;
|
|
219
|
-
google_location: string;
|
|
220
209
|
date_time: string;
|
|
221
210
|
admin_verify_status: GPSFuelApproveStatus;
|
|
222
211
|
transporter_verify_status: GPSFuelApproveStatus;
|
|
@@ -232,12 +221,23 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
232
221
|
payment_reference_number: string;
|
|
233
222
|
fuel_card_number: string;
|
|
234
223
|
payment_notes: string;
|
|
224
|
+
google_location: string;
|
|
225
|
+
odometer_reading: number;
|
|
235
226
|
tank_size: number;
|
|
236
227
|
is_full_tank: YesNo;
|
|
237
228
|
is_previous_entries_missed: YesNo;
|
|
229
|
+
status: Status;
|
|
230
|
+
organisation_id: string;
|
|
231
|
+
user_id: string;
|
|
232
|
+
vehicle_id: string;
|
|
233
|
+
driver_id: string;
|
|
234
|
+
device_id: string;
|
|
238
235
|
vendor_id: string;
|
|
239
236
|
fuel_station_id: string;
|
|
237
|
+
vehicle_fuel_type_id: string;
|
|
238
|
+
vehicle_fuel_unit_id: string;
|
|
240
239
|
FleetFuelRefillFile: {
|
|
240
|
+
fleet_fuel_refill_id: string;
|
|
241
241
|
status: Status;
|
|
242
242
|
organisation_id: string;
|
|
243
243
|
usage_type: string;
|
|
@@ -248,10 +248,8 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
248
248
|
file_description: string;
|
|
249
249
|
file_size: number;
|
|
250
250
|
file_metadata: Record<string, any>;
|
|
251
|
-
fleet_fuel_refill_id: string;
|
|
252
251
|
}[];
|
|
253
|
-
|
|
254
|
-
longitude?: number | undefined;
|
|
252
|
+
time_zone_id: string;
|
|
255
253
|
before_refill_quantity?: number | undefined;
|
|
256
254
|
after_refill_quantity?: number | undefined;
|
|
257
255
|
refill_quantity?: number | undefined;
|
|
@@ -259,16 +257,9 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
259
257
|
diff_refill_quantity?: number | undefined;
|
|
260
258
|
cost_per_unit?: number | undefined;
|
|
261
259
|
total_cost?: number | undefined;
|
|
260
|
+
latitude?: number | undefined;
|
|
261
|
+
longitude?: number | undefined;
|
|
262
262
|
}, {
|
|
263
|
-
status: Status;
|
|
264
|
-
organisation_id: string;
|
|
265
|
-
user_id: string;
|
|
266
|
-
vehicle_id: string;
|
|
267
|
-
driver_id: string;
|
|
268
|
-
device_id: string;
|
|
269
|
-
time_zone_id: string;
|
|
270
|
-
vehicle_fuel_type_id: string;
|
|
271
|
-
vehicle_fuel_unit_id: string;
|
|
272
263
|
date_time: string;
|
|
273
264
|
admin_verify_status: GPSFuelApproveStatus;
|
|
274
265
|
transporter_verify_status: GPSFuelApproveStatus;
|
|
@@ -276,12 +267,17 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
276
267
|
payment_status: PaymentStatus;
|
|
277
268
|
is_full_tank: YesNo;
|
|
278
269
|
is_previous_entries_missed: YesNo;
|
|
270
|
+
status: Status;
|
|
271
|
+
organisation_id: string;
|
|
272
|
+
user_id: string;
|
|
273
|
+
vehicle_id: string;
|
|
274
|
+
driver_id: string;
|
|
275
|
+
device_id: string;
|
|
279
276
|
vendor_id: string;
|
|
280
277
|
fuel_station_id: string;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
google_location?: string | undefined;
|
|
278
|
+
vehicle_fuel_type_id: string;
|
|
279
|
+
vehicle_fuel_unit_id: string;
|
|
280
|
+
time_zone_id: string;
|
|
285
281
|
before_refill_quantity?: unknown;
|
|
286
282
|
after_refill_quantity?: unknown;
|
|
287
283
|
refill_quantity?: unknown;
|
|
@@ -299,13 +295,17 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
299
295
|
payment_reference_number?: string | undefined;
|
|
300
296
|
fuel_card_number?: string | undefined;
|
|
301
297
|
payment_notes?: string | undefined;
|
|
298
|
+
latitude?: unknown;
|
|
299
|
+
longitude?: unknown;
|
|
300
|
+
google_location?: string | undefined;
|
|
301
|
+
odometer_reading?: unknown;
|
|
302
302
|
tank_size?: unknown;
|
|
303
303
|
FleetFuelRefillFile?: {
|
|
304
|
+
fleet_fuel_refill_id: string;
|
|
304
305
|
status: Status;
|
|
305
306
|
organisation_id: string;
|
|
307
|
+
usage_type: string;
|
|
306
308
|
file_type: FileType;
|
|
307
|
-
fleet_fuel_refill_id: string;
|
|
308
|
-
usage_type?: string | undefined;
|
|
309
309
|
file_url?: string | undefined;
|
|
310
310
|
file_key?: string | undefined;
|
|
311
311
|
file_name?: string | undefined;
|
|
@@ -362,7 +362,11 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
|
|
|
362
362
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
363
363
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
364
364
|
}, "strip", z.ZodTypeAny, {
|
|
365
|
+
admin_verify_status: GPSFuelApproveStatus[];
|
|
366
|
+
transporter_verify_status: GPSFuelApproveStatus[];
|
|
367
|
+
entry_source: RefillEntrySource[];
|
|
365
368
|
status: Status[];
|
|
369
|
+
time_zone_id: string;
|
|
366
370
|
search: string;
|
|
367
371
|
paging: PAGING;
|
|
368
372
|
page_count: number;
|
|
@@ -382,27 +386,26 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
|
|
|
382
386
|
}[];
|
|
383
387
|
include_master_data: YesNo;
|
|
384
388
|
date_format_id: string;
|
|
385
|
-
time_zone_id: string;
|
|
386
389
|
organisation_ids: string[];
|
|
387
390
|
user_ids: string[];
|
|
388
391
|
vehicle_ids: string[];
|
|
389
392
|
driver_ids: string[];
|
|
390
393
|
device_ids: string[];
|
|
391
|
-
from_date: string;
|
|
392
|
-
to_date: string;
|
|
393
|
-
vehicle_fuel_type_ids: string[];
|
|
394
|
-
admin_verify_status: GPSFuelApproveStatus[];
|
|
395
|
-
transporter_verify_status: GPSFuelApproveStatus[];
|
|
396
|
-
entry_source: RefillEntrySource[];
|
|
397
394
|
vendor_ids: string[];
|
|
398
395
|
fuel_station_ids: string[];
|
|
396
|
+
vehicle_fuel_type_ids: string[];
|
|
399
397
|
vehicle_fuel_unit_ids: string[];
|
|
400
398
|
fleet_fuel_refill_ids: string[];
|
|
399
|
+
from_date: string;
|
|
400
|
+
to_date: string;
|
|
401
401
|
}, {
|
|
402
|
-
date_format_id: string;
|
|
403
402
|
time_zone_id: string;
|
|
403
|
+
date_format_id: string;
|
|
404
404
|
from_date: string;
|
|
405
405
|
to_date: string;
|
|
406
|
+
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
407
|
+
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
408
|
+
entry_source?: RefillEntrySource[] | undefined;
|
|
406
409
|
status?: Status[] | undefined;
|
|
407
410
|
search?: string | undefined;
|
|
408
411
|
paging?: PAGING | undefined;
|
|
@@ -427,12 +430,9 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
|
|
|
427
430
|
vehicle_ids?: string[] | undefined;
|
|
428
431
|
driver_ids?: string[] | undefined;
|
|
429
432
|
device_ids?: string[] | undefined;
|
|
430
|
-
vehicle_fuel_type_ids?: string[] | undefined;
|
|
431
|
-
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
432
|
-
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
433
|
-
entry_source?: RefillEntrySource[] | undefined;
|
|
434
433
|
vendor_ids?: string[] | undefined;
|
|
435
434
|
fuel_station_ids?: string[] | undefined;
|
|
435
|
+
vehicle_fuel_type_ids?: string[] | undefined;
|
|
436
436
|
vehicle_fuel_unit_ids?: string[] | undefined;
|
|
437
437
|
fleet_fuel_refill_ids?: string[] | undefined;
|
|
438
438
|
}>;
|
|
@@ -291,7 +291,7 @@ var OrderBySchema = z2.array(
|
|
|
291
291
|
})
|
|
292
292
|
);
|
|
293
293
|
var BaseFileSchema = z2.object({
|
|
294
|
-
usage_type:
|
|
294
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
295
295
|
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
296
296
|
file_url: stringOptional("File URL", 0, 300),
|
|
297
297
|
file_key: stringOptional("File Key", 0, 300),
|
|
@@ -532,7 +532,7 @@ var toFleetFuelRefillPayload = (row) => ({
|
|
|
532
532
|
organisation_id: file.organisation_id ?? "",
|
|
533
533
|
fleet_fuel_refill_id: file.fleet_fuel_refill_id ?? "",
|
|
534
534
|
fleet_fuel_refill_file_id: file.fleet_fuel_refill_file_id ?? "",
|
|
535
|
-
usage_type: file.usage_type
|
|
535
|
+
usage_type: file.usage_type,
|
|
536
536
|
file_type: file.file_type,
|
|
537
537
|
file_url: file.file_url || "",
|
|
538
538
|
file_key: file.file_key || "",
|
|
@@ -181,23 +181,23 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
181
181
|
file_metadata?: Record<string, any> | undefined;
|
|
182
182
|
}>, "many">>>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
date_time: string;
|
|
185
|
+
admin_verify_status: GPSFuelApproveStatus;
|
|
186
|
+
transporter_verify_status: GPSFuelApproveStatus;
|
|
187
|
+
entry_source: RefillEntrySource;
|
|
188
|
+
source_reference_id: string;
|
|
189
|
+
source_notes: string;
|
|
190
|
+
google_location: string;
|
|
191
|
+
odometer_reading: number;
|
|
184
192
|
status: Status;
|
|
185
193
|
organisation_id: string;
|
|
186
194
|
user_id: string;
|
|
187
195
|
vehicle_id: string;
|
|
188
196
|
driver_id: string;
|
|
189
197
|
device_id: string;
|
|
190
|
-
time_zone_id: string;
|
|
191
198
|
vehicle_fuel_type_id: string;
|
|
192
199
|
vehicle_fuel_unit_id: string;
|
|
193
|
-
|
|
194
|
-
google_location: string;
|
|
195
|
-
date_time: string;
|
|
196
|
-
admin_verify_status: GPSFuelApproveStatus;
|
|
197
|
-
transporter_verify_status: GPSFuelApproveStatus;
|
|
198
|
-
entry_source: RefillEntrySource;
|
|
199
|
-
source_reference_id: string;
|
|
200
|
-
source_notes: string;
|
|
200
|
+
time_zone_id: string;
|
|
201
201
|
fuel_removal_reason_id: string;
|
|
202
202
|
removal_details: string;
|
|
203
203
|
removal_files: {
|
|
@@ -212,38 +212,38 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
212
212
|
file_metadata: Record<string, any>;
|
|
213
213
|
fleet_fuel_removal_id: string;
|
|
214
214
|
}[];
|
|
215
|
-
latitude?: number | undefined;
|
|
216
|
-
longitude?: number | undefined;
|
|
217
215
|
cost_per_unit?: number | undefined;
|
|
218
216
|
total_cost?: number | undefined;
|
|
217
|
+
latitude?: number | undefined;
|
|
218
|
+
longitude?: number | undefined;
|
|
219
219
|
before_removal_quantity?: number | undefined;
|
|
220
220
|
after_removal_quantity?: number | undefined;
|
|
221
221
|
removal_quantity?: number | undefined;
|
|
222
222
|
verified_removal_quantity?: number | undefined;
|
|
223
223
|
diff_removal_quantity?: number | undefined;
|
|
224
224
|
}, {
|
|
225
|
+
date_time: string;
|
|
226
|
+
admin_verify_status: GPSFuelApproveStatus;
|
|
227
|
+
transporter_verify_status: GPSFuelApproveStatus;
|
|
225
228
|
status: Status;
|
|
226
229
|
organisation_id: string;
|
|
227
230
|
user_id: string;
|
|
228
231
|
vehicle_id: string;
|
|
229
232
|
driver_id: string;
|
|
230
233
|
device_id: string;
|
|
231
|
-
time_zone_id: string;
|
|
232
234
|
vehicle_fuel_type_id: string;
|
|
233
235
|
vehicle_fuel_unit_id: string;
|
|
234
|
-
|
|
235
|
-
admin_verify_status: GPSFuelApproveStatus;
|
|
236
|
-
transporter_verify_status: GPSFuelApproveStatus;
|
|
236
|
+
time_zone_id: string;
|
|
237
237
|
fuel_removal_reason_id: string;
|
|
238
|
-
odometer_reading?: unknown;
|
|
239
|
-
latitude?: unknown;
|
|
240
|
-
longitude?: unknown;
|
|
241
|
-
google_location?: string | undefined;
|
|
242
238
|
cost_per_unit?: unknown;
|
|
243
239
|
total_cost?: unknown;
|
|
244
240
|
entry_source?: RefillEntrySource | undefined;
|
|
245
241
|
source_reference_id?: string | undefined;
|
|
246
242
|
source_notes?: string | undefined;
|
|
243
|
+
latitude?: unknown;
|
|
244
|
+
longitude?: unknown;
|
|
245
|
+
google_location?: string | undefined;
|
|
246
|
+
odometer_reading?: unknown;
|
|
247
247
|
before_removal_quantity?: unknown;
|
|
248
248
|
after_removal_quantity?: unknown;
|
|
249
249
|
removal_quantity?: unknown;
|
|
@@ -309,7 +309,11 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
309
309
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
310
310
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
311
311
|
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
admin_verify_status: GPSFuelApproveStatus[];
|
|
313
|
+
transporter_verify_status: GPSFuelApproveStatus[];
|
|
314
|
+
entry_source: RefillEntrySource[];
|
|
312
315
|
status: Status[];
|
|
316
|
+
time_zone_id: string;
|
|
313
317
|
search: string;
|
|
314
318
|
paging: PAGING;
|
|
315
319
|
page_count: number;
|
|
@@ -329,25 +333,24 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
329
333
|
}[];
|
|
330
334
|
include_master_data: YesNo;
|
|
331
335
|
date_format_id: string;
|
|
332
|
-
time_zone_id: string;
|
|
333
336
|
organisation_ids: string[];
|
|
334
337
|
user_ids: string[];
|
|
335
338
|
vehicle_ids: string[];
|
|
336
339
|
driver_ids: string[];
|
|
337
340
|
device_ids: string[];
|
|
338
|
-
from_date: string;
|
|
339
|
-
to_date: string;
|
|
340
341
|
vehicle_fuel_type_ids: string[];
|
|
341
|
-
admin_verify_status: GPSFuelApproveStatus[];
|
|
342
|
-
transporter_verify_status: GPSFuelApproveStatus[];
|
|
343
|
-
entry_source: RefillEntrySource[];
|
|
344
342
|
vehicle_fuel_unit_ids: string[];
|
|
343
|
+
from_date: string;
|
|
344
|
+
to_date: string;
|
|
345
345
|
fuel_removal_reason_ids: string[];
|
|
346
346
|
}, {
|
|
347
|
-
date_format_id: string;
|
|
348
347
|
time_zone_id: string;
|
|
348
|
+
date_format_id: string;
|
|
349
349
|
from_date: string;
|
|
350
350
|
to_date: string;
|
|
351
|
+
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
352
|
+
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
353
|
+
entry_source?: RefillEntrySource[] | undefined;
|
|
351
354
|
status?: Status[] | undefined;
|
|
352
355
|
search?: string | undefined;
|
|
353
356
|
paging?: PAGING | undefined;
|
|
@@ -373,9 +376,6 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
373
376
|
driver_ids?: string[] | undefined;
|
|
374
377
|
device_ids?: string[] | undefined;
|
|
375
378
|
vehicle_fuel_type_ids?: string[] | undefined;
|
|
376
|
-
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
377
|
-
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
378
|
-
entry_source?: RefillEntrySource[] | undefined;
|
|
379
379
|
vehicle_fuel_unit_ids?: string[] | undefined;
|
|
380
380
|
fuel_removal_reason_ids?: string[] | undefined;
|
|
381
381
|
}>;
|
|
@@ -265,7 +265,7 @@ var OrderBySchema = z2.array(
|
|
|
265
265
|
})
|
|
266
266
|
);
|
|
267
267
|
var BaseFileSchema = z2.object({
|
|
268
|
-
usage_type:
|
|
268
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
269
269
|
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
270
270
|
file_url: stringOptional("File URL", 0, 300),
|
|
271
271
|
file_key: stringOptional("File Key", 0, 300),
|
|
@@ -82,9 +82,6 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
82
82
|
google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
83
83
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
status: Status;
|
|
86
|
-
organisation_id: string;
|
|
87
|
-
country_code: string;
|
|
88
85
|
geofence_name: string;
|
|
89
86
|
geofence_purpose_type: GeofencePurposeType;
|
|
90
87
|
geofence_description: string;
|
|
@@ -102,23 +99,25 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
102
99
|
state_province_region: string;
|
|
103
100
|
postal_code: string;
|
|
104
101
|
country: string;
|
|
102
|
+
country_code: string;
|
|
105
103
|
google_location: string;
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
status: Status;
|
|
105
|
+
organisation_id: string;
|
|
108
106
|
radius_m?: number | undefined;
|
|
109
107
|
radius_km?: number | undefined;
|
|
108
|
+
latitude?: number | undefined;
|
|
109
|
+
longitude?: number | undefined;
|
|
110
110
|
}, {
|
|
111
|
-
status: Status;
|
|
112
|
-
organisation_id: string;
|
|
113
111
|
geofence_name: string;
|
|
114
112
|
geofence_purpose_type: GeofencePurposeType;
|
|
115
113
|
geofence_type: GeofenceType;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
longitude?: unknown;
|
|
114
|
+
status: Status;
|
|
115
|
+
organisation_id: string;
|
|
119
116
|
geofence_description?: string | undefined;
|
|
120
117
|
radius_m?: unknown;
|
|
121
118
|
radius_km?: unknown;
|
|
119
|
+
latitude?: unknown;
|
|
120
|
+
longitude?: unknown;
|
|
122
121
|
poliline_data?: {
|
|
123
122
|
latitude?: unknown;
|
|
124
123
|
longitude?: unknown;
|
|
@@ -132,6 +131,7 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
132
131
|
state_province_region?: string | undefined;
|
|
133
132
|
postal_code?: string | undefined;
|
|
134
133
|
country?: string | undefined;
|
|
134
|
+
country_code?: string | undefined;
|
|
135
135
|
google_location?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
|
|
@@ -171,8 +171,9 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
171
171
|
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
172
172
|
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
geofence_purpose_type: GeofencePurposeType[];
|
|
175
|
+
geofence_type: GeofenceType[];
|
|
174
176
|
status: Status[];
|
|
175
|
-
time_zone_id: string;
|
|
176
177
|
search: string;
|
|
177
178
|
paging: PAGING;
|
|
178
179
|
page_count: number;
|
|
@@ -192,13 +193,14 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
192
193
|
}[];
|
|
193
194
|
include_master_data: YesNo;
|
|
194
195
|
date_format_id: string;
|
|
196
|
+
time_zone_id: string;
|
|
195
197
|
organisation_ids: string[];
|
|
196
198
|
gps_geofence_ids: string[];
|
|
197
|
-
geofence_purpose_type: GeofencePurposeType[];
|
|
198
|
-
geofence_type: GeofenceType[];
|
|
199
199
|
}, {
|
|
200
|
-
time_zone_id: string;
|
|
201
200
|
date_format_id: string;
|
|
201
|
+
time_zone_id: string;
|
|
202
|
+
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
203
|
+
geofence_type?: GeofenceType[] | undefined;
|
|
202
204
|
status?: Status[] | undefined;
|
|
203
205
|
search?: string | undefined;
|
|
204
206
|
paging?: PAGING | undefined;
|
|
@@ -220,8 +222,6 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
220
222
|
include_master_data?: YesNo | undefined;
|
|
221
223
|
organisation_ids?: string[] | undefined;
|
|
222
224
|
gps_geofence_ids?: string[] | undefined;
|
|
223
|
-
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
224
|
-
geofence_type?: GeofenceType[] | undefined;
|
|
225
225
|
}>;
|
|
226
226
|
type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
|
|
227
227
|
declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
|
|
@@ -309,7 +309,7 @@ var OrderBySchema = z2.array(
|
|
|
309
309
|
})
|
|
310
310
|
);
|
|
311
311
|
var BaseFileSchema = z2.object({
|
|
312
|
-
usage_type:
|
|
312
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
313
313
|
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
314
314
|
file_url: stringOptional("File URL", 0, 300),
|
|
315
315
|
file_key: stringOptional("File Key", 0, 300),
|