vms-nest-prisma-api-document 219.0.0 → 220.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/services/account/bookmark_service.d.ts +1 -1
- package/dist/services/account/notification_preferences.service.d.ts +1 -1
- package/dist/services/account/report_preferences.service.d.ts +1 -1
- package/dist/services/account/ticket_service.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/bus_stop.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/calender.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/student.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +13 -84
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +18 -16
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +25 -9
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +74 -42
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +16 -13
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +60 -54
- package/dist/services/fleet/incident_management/incident_management_service.d.ts +75 -75
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +47 -47
- package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +43 -43
- package/dist/services/fleet/service_management/fleet_service_management_task_service.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -5
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +8 -8
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/user_admin_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.js +18 -18
- package/dist/services/master/bus/master_class_service.d.ts +1 -1
- package/dist/services/master/bus/master_program_service.d.ts +1 -1
- package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
- package/dist/services/master/bus/master_section_service.d.ts +1 -1
- package/dist/services/master/bus/master_semester_service.d.ts +1 -1
- package/dist/services/master/bus/master_stream_service.d.ts +1 -1
- package/dist/services/master/bus/master_year_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +5 -5
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +4 -4
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +4 -4
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +4 -4
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +4 -4
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +9 -9
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +3 -3
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +5 -5
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/dist/{user_organisation_service-Bkq3GOUs.d.ts → user_organisation_service-WD4PyTEx.d.ts} +9 -7
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { YesNo, IncidentTime, IncidentWeather, IncidentRoadType, IncidentVisibil
|
|
|
2
2
|
import { BaseCommonFile, BR, AWSPresignedUrl, SBR, FBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../../user_organisation_service-
|
|
5
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../../user_organisation_service-WD4PyTEx.js';
|
|
6
6
|
import { MasterFleetInsuranceClaimStatus } from '../../master/fleet/master_fleet_insurance_claim_status_service.js';
|
|
7
7
|
import { MasterFleetIncidentSeverity } from '../../master/fleet/master_fleet_incident_severity_service.js';
|
|
8
8
|
import { MasterFleetIncidentStatus } from '../../master/fleet/master_fleet_incident_status_service.js';
|
|
@@ -115,7 +115,6 @@ declare const FleetIncidentManagementFileSchema: z.ZodObject<{
|
|
|
115
115
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
116
116
|
vehicle_incident_id: z.ZodEffects<z.ZodString, string, string>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
vehicle_incident_id: string;
|
|
119
118
|
status: Status;
|
|
120
119
|
organisation_id: string;
|
|
121
120
|
usage_type: string;
|
|
@@ -126,12 +125,13 @@ declare const FleetIncidentManagementFileSchema: z.ZodObject<{
|
|
|
126
125
|
file_description: string;
|
|
127
126
|
file_size: number;
|
|
128
127
|
file_metadata: Record<string, any>;
|
|
129
|
-
}, {
|
|
130
128
|
vehicle_incident_id: string;
|
|
129
|
+
}, {
|
|
131
130
|
status: Status;
|
|
132
131
|
organisation_id: string;
|
|
133
132
|
usage_type: string;
|
|
134
133
|
file_type: FileType;
|
|
134
|
+
vehicle_incident_id: string;
|
|
135
135
|
file_url?: string | undefined;
|
|
136
136
|
file_key?: string | undefined;
|
|
137
137
|
file_name?: string | undefined;
|
|
@@ -194,7 +194,6 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
194
194
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
195
195
|
vehicle_incident_id: z.ZodEffects<z.ZodString, string, string>;
|
|
196
196
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
197
|
-
vehicle_incident_id: string;
|
|
198
197
|
status: Status;
|
|
199
198
|
organisation_id: string;
|
|
200
199
|
usage_type: string;
|
|
@@ -205,12 +204,13 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
205
204
|
file_description: string;
|
|
206
205
|
file_size: number;
|
|
207
206
|
file_metadata: Record<string, any>;
|
|
208
|
-
}, {
|
|
209
207
|
vehicle_incident_id: string;
|
|
208
|
+
}, {
|
|
210
209
|
status: Status;
|
|
211
210
|
organisation_id: string;
|
|
212
211
|
usage_type: string;
|
|
213
212
|
file_type: FileType;
|
|
213
|
+
vehicle_incident_id: string;
|
|
214
214
|
file_url?: string | undefined;
|
|
215
215
|
file_key?: string | undefined;
|
|
216
216
|
file_name?: string | undefined;
|
|
@@ -219,6 +219,18 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
219
219
|
file_metadata?: Record<string, any> | undefined;
|
|
220
220
|
}>, "many">>>;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
odometer_reading: number;
|
|
223
|
+
status: Status;
|
|
224
|
+
organisation_id: string;
|
|
225
|
+
user_id: string;
|
|
226
|
+
vehicle_id: string;
|
|
227
|
+
driver_id: string;
|
|
228
|
+
time_zone_id: string;
|
|
229
|
+
google_location: string;
|
|
230
|
+
fleet_insurance_claim_status_id: string;
|
|
231
|
+
fleet_incident_severity_id: string;
|
|
232
|
+
fleet_incident_status_id: string;
|
|
233
|
+
fleet_incident_type_id: string;
|
|
222
234
|
incident_date: string;
|
|
223
235
|
was_towed: YesNo;
|
|
224
236
|
is_vehicle_operational: YesNo;
|
|
@@ -226,9 +238,7 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
226
238
|
incident_weather: IncidentWeather;
|
|
227
239
|
incident_road_type: IncidentRoadType;
|
|
228
240
|
incident_visibility: IncidentVisibility;
|
|
229
|
-
odometer_reading: number;
|
|
230
241
|
incident_description: string;
|
|
231
|
-
google_location: string;
|
|
232
242
|
insurance_cover: YesNo;
|
|
233
243
|
insurance_claimed: YesNo;
|
|
234
244
|
insurance_policy_number: string;
|
|
@@ -243,18 +253,7 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
243
253
|
injured_persons_count: number;
|
|
244
254
|
legal_description: string;
|
|
245
255
|
involved_parties_description: string;
|
|
246
|
-
status: Status;
|
|
247
|
-
organisation_id: string;
|
|
248
|
-
user_id: string;
|
|
249
|
-
vehicle_id: string;
|
|
250
|
-
driver_id: string;
|
|
251
|
-
fleet_incident_type_id: string;
|
|
252
|
-
fleet_incident_status_id: string;
|
|
253
|
-
fleet_incident_severity_id: string;
|
|
254
|
-
fleet_insurance_claim_status_id: string;
|
|
255
|
-
time_zone_id: string;
|
|
256
256
|
FleetIncidentManagementFileSchema: {
|
|
257
|
-
vehicle_incident_id: string;
|
|
258
257
|
status: Status;
|
|
259
258
|
organisation_id: string;
|
|
260
259
|
usage_type: string;
|
|
@@ -265,13 +264,24 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
265
264
|
file_description: string;
|
|
266
265
|
file_size: number;
|
|
267
266
|
file_metadata: Record<string, any>;
|
|
267
|
+
vehicle_incident_id: string;
|
|
268
268
|
}[];
|
|
269
|
-
incident_cost?: number | undefined;
|
|
270
269
|
latitude?: number | undefined;
|
|
271
270
|
longitude?: number | undefined;
|
|
271
|
+
incident_cost?: number | undefined;
|
|
272
272
|
insurance_claimed_amount?: number | undefined;
|
|
273
273
|
insurance_settled_amount?: number | undefined;
|
|
274
274
|
}, {
|
|
275
|
+
status: Status;
|
|
276
|
+
organisation_id: string;
|
|
277
|
+
user_id: string;
|
|
278
|
+
vehicle_id: string;
|
|
279
|
+
driver_id: string;
|
|
280
|
+
time_zone_id: string;
|
|
281
|
+
fleet_insurance_claim_status_id: string;
|
|
282
|
+
fleet_incident_severity_id: string;
|
|
283
|
+
fleet_incident_status_id: string;
|
|
284
|
+
fleet_incident_type_id: string;
|
|
275
285
|
incident_date: string;
|
|
276
286
|
was_towed: YesNo;
|
|
277
287
|
is_vehicle_operational: YesNo;
|
|
@@ -283,22 +293,12 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
283
293
|
insurance_claimed: YesNo;
|
|
284
294
|
police_report_filed: YesNo;
|
|
285
295
|
any_injuries: YesNo;
|
|
286
|
-
status: Status;
|
|
287
|
-
organisation_id: string;
|
|
288
|
-
user_id: string;
|
|
289
|
-
vehicle_id: string;
|
|
290
|
-
driver_id: string;
|
|
291
|
-
fleet_incident_type_id: string;
|
|
292
|
-
fleet_incident_status_id: string;
|
|
293
|
-
fleet_incident_severity_id: string;
|
|
294
|
-
fleet_insurance_claim_status_id: string;
|
|
295
|
-
time_zone_id: string;
|
|
296
296
|
odometer_reading?: unknown;
|
|
297
|
-
incident_cost?: unknown;
|
|
298
|
-
incident_description?: string | undefined;
|
|
299
297
|
latitude?: unknown;
|
|
300
298
|
longitude?: unknown;
|
|
301
299
|
google_location?: string | undefined;
|
|
300
|
+
incident_cost?: unknown;
|
|
301
|
+
incident_description?: string | undefined;
|
|
302
302
|
insurance_claimed_amount?: unknown;
|
|
303
303
|
insurance_settled_amount?: unknown;
|
|
304
304
|
insurance_policy_number?: string | undefined;
|
|
@@ -312,11 +312,11 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
312
312
|
legal_description?: string | undefined;
|
|
313
313
|
involved_parties_description?: string | undefined;
|
|
314
314
|
FleetIncidentManagementFileSchema?: {
|
|
315
|
-
vehicle_incident_id: string;
|
|
316
315
|
status: Status;
|
|
317
316
|
organisation_id: string;
|
|
318
317
|
usage_type: string;
|
|
319
318
|
file_type: FileType;
|
|
319
|
+
vehicle_incident_id: string;
|
|
320
320
|
file_url?: string | undefined;
|
|
321
321
|
file_key?: string | undefined;
|
|
322
322
|
file_name?: string | undefined;
|
|
@@ -379,18 +379,7 @@ declare const FleetIncidentManagementQuerySchema: z.ZodObject<{
|
|
|
379
379
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
380
380
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
381
381
|
}, "strip", z.ZodTypeAny, {
|
|
382
|
-
was_towed: YesNo[];
|
|
383
|
-
is_vehicle_operational: YesNo[];
|
|
384
|
-
incident_time: IncidentTime[];
|
|
385
|
-
incident_weather: IncidentWeather[];
|
|
386
|
-
incident_road_type: IncidentRoadType[];
|
|
387
|
-
incident_visibility: IncidentVisibility[];
|
|
388
|
-
insurance_cover: YesNo[];
|
|
389
|
-
insurance_claimed: YesNo[];
|
|
390
|
-
police_report_filed: YesNo[];
|
|
391
|
-
any_injuries: YesNo[];
|
|
392
382
|
status: Status[];
|
|
393
|
-
time_zone_id: string;
|
|
394
383
|
search: string;
|
|
395
384
|
paging: PAGING;
|
|
396
385
|
page_count: number;
|
|
@@ -410,32 +399,33 @@ declare const FleetIncidentManagementQuerySchema: z.ZodObject<{
|
|
|
410
399
|
}[];
|
|
411
400
|
include_master_data: YesNo;
|
|
412
401
|
date_format_id: string;
|
|
413
|
-
|
|
402
|
+
time_zone_id: string;
|
|
414
403
|
organisation_ids: string[];
|
|
415
404
|
user_ids: string[];
|
|
416
405
|
vehicle_ids: string[];
|
|
417
406
|
driver_ids: string[];
|
|
418
|
-
fleet_incident_type_ids: string[];
|
|
419
|
-
fleet_incident_status_ids: string[];
|
|
420
|
-
fleet_incident_severity_ids: string[];
|
|
421
|
-
fleet_insurance_claim_status_ids: string[];
|
|
422
407
|
from_date: string;
|
|
423
408
|
to_date: string;
|
|
409
|
+
fleet_insurance_claim_status_ids: string[];
|
|
410
|
+
fleet_incident_severity_ids: string[];
|
|
411
|
+
fleet_incident_status_ids: string[];
|
|
412
|
+
fleet_incident_type_ids: string[];
|
|
413
|
+
was_towed: YesNo[];
|
|
414
|
+
is_vehicle_operational: YesNo[];
|
|
415
|
+
incident_time: IncidentTime[];
|
|
416
|
+
incident_weather: IncidentWeather[];
|
|
417
|
+
incident_road_type: IncidentRoadType[];
|
|
418
|
+
incident_visibility: IncidentVisibility[];
|
|
419
|
+
insurance_cover: YesNo[];
|
|
420
|
+
insurance_claimed: YesNo[];
|
|
421
|
+
police_report_filed: YesNo[];
|
|
422
|
+
any_injuries: YesNo[];
|
|
423
|
+
vehicle_incident_ids: string[];
|
|
424
424
|
}, {
|
|
425
|
-
time_zone_id: string;
|
|
426
425
|
date_format_id: string;
|
|
426
|
+
time_zone_id: string;
|
|
427
427
|
from_date: string;
|
|
428
428
|
to_date: string;
|
|
429
|
-
was_towed?: YesNo[] | undefined;
|
|
430
|
-
is_vehicle_operational?: YesNo[] | undefined;
|
|
431
|
-
incident_time?: IncidentTime[] | undefined;
|
|
432
|
-
incident_weather?: IncidentWeather[] | undefined;
|
|
433
|
-
incident_road_type?: IncidentRoadType[] | undefined;
|
|
434
|
-
incident_visibility?: IncidentVisibility[] | undefined;
|
|
435
|
-
insurance_cover?: YesNo[] | undefined;
|
|
436
|
-
insurance_claimed?: YesNo[] | undefined;
|
|
437
|
-
police_report_filed?: YesNo[] | undefined;
|
|
438
|
-
any_injuries?: YesNo[] | undefined;
|
|
439
429
|
status?: Status[] | undefined;
|
|
440
430
|
search?: string | undefined;
|
|
441
431
|
paging?: PAGING | undefined;
|
|
@@ -455,15 +445,25 @@ declare const FleetIncidentManagementQuerySchema: z.ZodObject<{
|
|
|
455
445
|
direction: OrderBy;
|
|
456
446
|
}[] | undefined;
|
|
457
447
|
include_master_data?: YesNo | undefined;
|
|
458
|
-
vehicle_incident_ids?: string[] | undefined;
|
|
459
448
|
organisation_ids?: string[] | undefined;
|
|
460
449
|
user_ids?: string[] | undefined;
|
|
461
450
|
vehicle_ids?: string[] | undefined;
|
|
462
451
|
driver_ids?: string[] | undefined;
|
|
463
|
-
fleet_incident_type_ids?: string[] | undefined;
|
|
464
|
-
fleet_incident_status_ids?: string[] | undefined;
|
|
465
|
-
fleet_incident_severity_ids?: string[] | undefined;
|
|
466
452
|
fleet_insurance_claim_status_ids?: string[] | undefined;
|
|
453
|
+
fleet_incident_severity_ids?: string[] | undefined;
|
|
454
|
+
fleet_incident_status_ids?: string[] | undefined;
|
|
455
|
+
fleet_incident_type_ids?: string[] | undefined;
|
|
456
|
+
was_towed?: YesNo[] | undefined;
|
|
457
|
+
is_vehicle_operational?: YesNo[] | undefined;
|
|
458
|
+
incident_time?: IncidentTime[] | undefined;
|
|
459
|
+
incident_weather?: IncidentWeather[] | undefined;
|
|
460
|
+
incident_road_type?: IncidentRoadType[] | undefined;
|
|
461
|
+
incident_visibility?: IncidentVisibility[] | undefined;
|
|
462
|
+
insurance_cover?: YesNo[] | undefined;
|
|
463
|
+
insurance_claimed?: YesNo[] | undefined;
|
|
464
|
+
police_report_filed?: YesNo[] | undefined;
|
|
465
|
+
any_injuries?: YesNo[] | undefined;
|
|
466
|
+
vehicle_incident_ids?: string[] | undefined;
|
|
467
467
|
}>;
|
|
468
468
|
type FleetIncidentManagementQueryDTO = z.infer<typeof FleetIncidentManagementQuerySchema>;
|
|
469
469
|
declare const FleetIncidentManagementCostSchema: z.ZodObject<{
|
|
@@ -476,21 +476,21 @@ declare const FleetIncidentManagementCostSchema: z.ZodObject<{
|
|
|
476
476
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
477
477
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
478
478
|
}, "strip", z.ZodTypeAny, {
|
|
479
|
-
vehicle_incident_id: string;
|
|
480
479
|
status: Status;
|
|
481
480
|
organisation_id: string;
|
|
481
|
+
time_zone_id: string;
|
|
482
|
+
expense_name_id: string;
|
|
483
|
+
vehicle_incident_id: string;
|
|
482
484
|
incident_cost_description: string;
|
|
483
485
|
incident_cost_date: string;
|
|
484
|
-
expense_name_id: string;
|
|
485
|
-
time_zone_id: string;
|
|
486
486
|
incident_cost_amount?: number | undefined;
|
|
487
487
|
}, {
|
|
488
|
-
vehicle_incident_id: string;
|
|
489
488
|
status: Status;
|
|
490
489
|
organisation_id: string;
|
|
491
|
-
incident_cost_date: string;
|
|
492
|
-
expense_name_id: string;
|
|
493
490
|
time_zone_id: string;
|
|
491
|
+
expense_name_id: string;
|
|
492
|
+
vehicle_incident_id: string;
|
|
493
|
+
incident_cost_date: string;
|
|
494
494
|
incident_cost_description?: string | undefined;
|
|
495
495
|
incident_cost_amount?: unknown;
|
|
496
496
|
}>;
|
|
@@ -532,7 +532,6 @@ declare const FleetIncidentManagementCostQuerySchema: z.ZodObject<{
|
|
|
532
532
|
expense_name_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
533
533
|
}, "strip", z.ZodTypeAny, {
|
|
534
534
|
status: Status[];
|
|
535
|
-
time_zone_id: string;
|
|
536
535
|
search: string;
|
|
537
536
|
paging: PAGING;
|
|
538
537
|
page_count: number;
|
|
@@ -552,13 +551,14 @@ declare const FleetIncidentManagementCostQuerySchema: z.ZodObject<{
|
|
|
552
551
|
}[];
|
|
553
552
|
include_master_data: YesNo;
|
|
554
553
|
date_format_id: string;
|
|
555
|
-
|
|
554
|
+
time_zone_id: string;
|
|
556
555
|
organisation_ids: string[];
|
|
557
|
-
incident_cost_ids: string[];
|
|
558
556
|
expense_name_ids: string[];
|
|
557
|
+
vehicle_incident_ids: string[];
|
|
558
|
+
incident_cost_ids: string[];
|
|
559
559
|
}, {
|
|
560
|
-
time_zone_id: string;
|
|
561
560
|
date_format_id: string;
|
|
561
|
+
time_zone_id: string;
|
|
562
562
|
status?: Status[] | undefined;
|
|
563
563
|
search?: string | undefined;
|
|
564
564
|
paging?: PAGING | undefined;
|
|
@@ -578,10 +578,10 @@ declare const FleetIncidentManagementCostQuerySchema: z.ZodObject<{
|
|
|
578
578
|
direction: OrderBy;
|
|
579
579
|
}[] | undefined;
|
|
580
580
|
include_master_data?: YesNo | undefined;
|
|
581
|
-
vehicle_incident_ids?: string[] | undefined;
|
|
582
581
|
organisation_ids?: string[] | undefined;
|
|
583
|
-
incident_cost_ids?: string[] | undefined;
|
|
584
582
|
expense_name_ids?: string[] | undefined;
|
|
583
|
+
vehicle_incident_ids?: string[] | undefined;
|
|
584
|
+
incident_cost_ids?: string[] | undefined;
|
|
585
585
|
}>;
|
|
586
586
|
type FleetIncidentManagementCostQueryDTO = z.infer<typeof FleetIncidentManagementCostQuerySchema>;
|
|
587
587
|
declare const toFleetIncidentManagementPayload: (row: FleetIncidentManagement) => FleetIncidentManagementDTO;
|
|
@@ -2,7 +2,7 @@ import { IssueStatus, Priority, IssueSeverity, IssueSource, Status, FileType, PA
|
|
|
2
2
|
import { BaseCommonFile, BR, AWSPresignedUrl, SBR, FBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../../user_organisation_service-
|
|
5
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../../user_organisation_service-WD4PyTEx.js';
|
|
6
6
|
import { FleetIncidentManagement } from '../incident_management/incident_management_service.js';
|
|
7
7
|
import { FleetServiceManagement } from '../service_management/fleet_service_management_service.js';
|
|
8
8
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -106,7 +106,6 @@ declare const FleetIssueManagementFileSchema: z.ZodObject<{
|
|
|
106
106
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
107
107
|
vehicle_issue_id: z.ZodEffects<z.ZodString, string, string>;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
vehicle_issue_id: string;
|
|
110
109
|
status: Status;
|
|
111
110
|
organisation_id: string;
|
|
112
111
|
usage_type: string;
|
|
@@ -117,12 +116,13 @@ declare const FleetIssueManagementFileSchema: z.ZodObject<{
|
|
|
117
116
|
file_description: string;
|
|
118
117
|
file_size: number;
|
|
119
118
|
file_metadata: Record<string, any>;
|
|
120
|
-
}, {
|
|
121
119
|
vehicle_issue_id: string;
|
|
120
|
+
}, {
|
|
122
121
|
status: Status;
|
|
123
122
|
organisation_id: string;
|
|
124
123
|
usage_type: string;
|
|
125
124
|
file_type: FileType;
|
|
125
|
+
vehicle_issue_id: string;
|
|
126
126
|
file_url?: string | undefined;
|
|
127
127
|
file_key?: string | undefined;
|
|
128
128
|
file_name?: string | undefined;
|
|
@@ -166,7 +166,6 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
166
166
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
167
167
|
vehicle_issue_id: z.ZodEffects<z.ZodString, string, string>;
|
|
168
168
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
169
|
-
vehicle_issue_id: string;
|
|
170
169
|
status: Status;
|
|
171
170
|
organisation_id: string;
|
|
172
171
|
usage_type: string;
|
|
@@ -177,12 +176,13 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
177
176
|
file_description: string;
|
|
178
177
|
file_size: number;
|
|
179
178
|
file_metadata: Record<string, any>;
|
|
180
|
-
}, {
|
|
181
179
|
vehicle_issue_id: string;
|
|
180
|
+
}, {
|
|
182
181
|
status: Status;
|
|
183
182
|
organisation_id: string;
|
|
184
183
|
usage_type: string;
|
|
185
184
|
file_type: FileType;
|
|
185
|
+
vehicle_issue_id: string;
|
|
186
186
|
file_url?: string | undefined;
|
|
187
187
|
file_key?: string | undefined;
|
|
188
188
|
file_name?: string | undefined;
|
|
@@ -191,6 +191,15 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
191
191
|
file_metadata?: Record<string, any> | undefined;
|
|
192
192
|
}>, "many">>>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
service_management_id: string;
|
|
195
|
+
odometer_reading: number;
|
|
196
|
+
status: Status;
|
|
197
|
+
organisation_id: string;
|
|
198
|
+
user_id: string;
|
|
199
|
+
vehicle_id: string;
|
|
200
|
+
driver_id: string;
|
|
201
|
+
time_zone_id: string;
|
|
202
|
+
vehicle_incident_id: string;
|
|
194
203
|
issue_title: string;
|
|
195
204
|
issue_description: string;
|
|
196
205
|
issue_status: IssueStatus;
|
|
@@ -198,21 +207,11 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
198
207
|
issue_severity: IssueSeverity;
|
|
199
208
|
report_date: string;
|
|
200
209
|
resolved_date: string;
|
|
201
|
-
odometer_reading: number;
|
|
202
210
|
due_date: string;
|
|
203
211
|
due_odometer_reading: number;
|
|
204
212
|
issue_source: IssueSource;
|
|
205
|
-
status: Status;
|
|
206
|
-
organisation_id: string;
|
|
207
|
-
user_id: string;
|
|
208
|
-
vehicle_id: string;
|
|
209
|
-
driver_id: string;
|
|
210
|
-
vehicle_incident_id: string;
|
|
211
213
|
inspection_id: string;
|
|
212
|
-
service_management_id: string;
|
|
213
|
-
time_zone_id: string;
|
|
214
214
|
FleetIssueManagementFileSchema: {
|
|
215
|
-
vehicle_issue_id: string;
|
|
216
215
|
status: Status;
|
|
217
216
|
organisation_id: string;
|
|
218
217
|
usage_type: string;
|
|
@@ -223,34 +222,35 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
223
222
|
file_description: string;
|
|
224
223
|
file_size: number;
|
|
225
224
|
file_metadata: Record<string, any>;
|
|
225
|
+
vehicle_issue_id: string;
|
|
226
226
|
}[];
|
|
227
227
|
}, {
|
|
228
|
-
|
|
229
|
-
issue_status: IssueStatus;
|
|
230
|
-
issue_priority: Priority;
|
|
231
|
-
issue_severity: IssueSeverity;
|
|
232
|
-
report_date: string;
|
|
233
|
-
issue_source: IssueSource;
|
|
228
|
+
service_management_id: string;
|
|
234
229
|
status: Status;
|
|
235
230
|
organisation_id: string;
|
|
236
231
|
user_id: string;
|
|
237
232
|
vehicle_id: string;
|
|
238
233
|
driver_id: string;
|
|
234
|
+
time_zone_id: string;
|
|
239
235
|
vehicle_incident_id: string;
|
|
236
|
+
issue_title: string;
|
|
237
|
+
issue_status: IssueStatus;
|
|
238
|
+
issue_priority: Priority;
|
|
239
|
+
issue_severity: IssueSeverity;
|
|
240
|
+
report_date: string;
|
|
241
|
+
issue_source: IssueSource;
|
|
240
242
|
inspection_id: string;
|
|
241
|
-
|
|
242
|
-
time_zone_id: string;
|
|
243
|
+
odometer_reading?: unknown;
|
|
243
244
|
issue_description?: string | undefined;
|
|
244
245
|
resolved_date?: string | undefined;
|
|
245
|
-
odometer_reading?: unknown;
|
|
246
246
|
due_date?: string | undefined;
|
|
247
247
|
due_odometer_reading?: unknown;
|
|
248
248
|
FleetIssueManagementFileSchema?: {
|
|
249
|
-
vehicle_issue_id: string;
|
|
250
249
|
status: Status;
|
|
251
250
|
organisation_id: string;
|
|
252
251
|
usage_type: string;
|
|
253
252
|
file_type: FileType;
|
|
253
|
+
vehicle_issue_id: string;
|
|
254
254
|
file_url?: string | undefined;
|
|
255
255
|
file_key?: string | undefined;
|
|
256
256
|
file_name?: string | undefined;
|
|
@@ -306,12 +306,7 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
306
306
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
307
307
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
issue_status: IssueStatus[];
|
|
310
|
-
issue_priority: Priority[];
|
|
311
|
-
issue_severity: IssueSeverity[];
|
|
312
|
-
issue_source: IssueSource[];
|
|
313
309
|
status: Status[];
|
|
314
|
-
time_zone_id: string;
|
|
315
310
|
search: string;
|
|
316
311
|
paging: PAGING;
|
|
317
312
|
page_count: number;
|
|
@@ -331,25 +326,26 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
331
326
|
}[];
|
|
332
327
|
include_master_data: YesNo;
|
|
333
328
|
date_format_id: string;
|
|
334
|
-
|
|
329
|
+
time_zone_id: string;
|
|
330
|
+
service_management_ids: string[];
|
|
335
331
|
organisation_ids: string[];
|
|
336
332
|
user_ids: string[];
|
|
337
333
|
vehicle_ids: string[];
|
|
338
334
|
driver_ids: string[];
|
|
339
|
-
vehicle_incident_ids: string[];
|
|
340
|
-
inspection_ids: string[];
|
|
341
|
-
service_management_ids: string[];
|
|
342
335
|
from_date: string;
|
|
343
336
|
to_date: string;
|
|
337
|
+
vehicle_incident_ids: string[];
|
|
338
|
+
issue_status: IssueStatus[];
|
|
339
|
+
issue_priority: Priority[];
|
|
340
|
+
issue_severity: IssueSeverity[];
|
|
341
|
+
issue_source: IssueSource[];
|
|
342
|
+
vehicle_issue_ids: string[];
|
|
343
|
+
inspection_ids: string[];
|
|
344
344
|
}, {
|
|
345
|
-
time_zone_id: string;
|
|
346
345
|
date_format_id: string;
|
|
346
|
+
time_zone_id: string;
|
|
347
347
|
from_date: string;
|
|
348
348
|
to_date: string;
|
|
349
|
-
issue_status?: IssueStatus[] | undefined;
|
|
350
|
-
issue_priority?: Priority[] | undefined;
|
|
351
|
-
issue_severity?: IssueSeverity[] | undefined;
|
|
352
|
-
issue_source?: IssueSource[] | undefined;
|
|
353
349
|
status?: Status[] | undefined;
|
|
354
350
|
search?: string | undefined;
|
|
355
351
|
paging?: PAGING | undefined;
|
|
@@ -369,14 +365,18 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
369
365
|
direction: OrderBy;
|
|
370
366
|
}[] | undefined;
|
|
371
367
|
include_master_data?: YesNo | undefined;
|
|
372
|
-
|
|
368
|
+
service_management_ids?: string[] | undefined;
|
|
373
369
|
organisation_ids?: string[] | undefined;
|
|
374
370
|
user_ids?: string[] | undefined;
|
|
375
371
|
vehicle_ids?: string[] | undefined;
|
|
376
372
|
driver_ids?: string[] | undefined;
|
|
377
373
|
vehicle_incident_ids?: string[] | undefined;
|
|
374
|
+
issue_status?: IssueStatus[] | undefined;
|
|
375
|
+
issue_priority?: Priority[] | undefined;
|
|
376
|
+
issue_severity?: IssueSeverity[] | undefined;
|
|
377
|
+
issue_source?: IssueSource[] | undefined;
|
|
378
|
+
vehicle_issue_ids?: string[] | undefined;
|
|
378
379
|
inspection_ids?: string[] | undefined;
|
|
379
|
-
service_management_ids?: string[] | undefined;
|
|
380
380
|
}>;
|
|
381
381
|
type FleetIssueManagementQueryDTO = z.infer<typeof FleetIssueManagementQuerySchema>;
|
|
382
382
|
declare const FleetIssueManagementCommentSchema: z.ZodObject<{
|
|
@@ -386,15 +386,15 @@ declare const FleetIssueManagementCommentSchema: z.ZodObject<{
|
|
|
386
386
|
comment_description: z.ZodEffects<z.ZodString, string, string>;
|
|
387
387
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
388
388
|
}, "strip", z.ZodTypeAny, {
|
|
389
|
-
vehicle_issue_id: string;
|
|
390
389
|
status: Status;
|
|
391
390
|
organisation_id: string;
|
|
391
|
+
vehicle_issue_id: string;
|
|
392
392
|
comment_text: string;
|
|
393
393
|
comment_description: string;
|
|
394
394
|
}, {
|
|
395
|
-
vehicle_issue_id: string;
|
|
396
395
|
status: Status;
|
|
397
396
|
organisation_id: string;
|
|
397
|
+
vehicle_issue_id: string;
|
|
398
398
|
comment_text: string;
|
|
399
399
|
comment_description: string;
|
|
400
400
|
}>;
|
|
@@ -435,7 +435,6 @@ declare const FleetIssueManagementCommentQuerySchema: z.ZodObject<{
|
|
|
435
435
|
vehicle_issue_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
436
436
|
}, "strip", z.ZodTypeAny, {
|
|
437
437
|
status: Status[];
|
|
438
|
-
time_zone_id: string;
|
|
439
438
|
search: string;
|
|
440
439
|
paging: PAGING;
|
|
441
440
|
page_count: number;
|
|
@@ -455,12 +454,13 @@ declare const FleetIssueManagementCommentQuerySchema: z.ZodObject<{
|
|
|
455
454
|
}[];
|
|
456
455
|
include_master_data: YesNo;
|
|
457
456
|
date_format_id: string;
|
|
458
|
-
|
|
457
|
+
time_zone_id: string;
|
|
459
458
|
organisation_ids: string[];
|
|
459
|
+
vehicle_issue_ids: string[];
|
|
460
460
|
vehicle_issue_comment_ids: string[];
|
|
461
461
|
}, {
|
|
462
|
-
time_zone_id: string;
|
|
463
462
|
date_format_id: string;
|
|
463
|
+
time_zone_id: string;
|
|
464
464
|
status?: Status[] | undefined;
|
|
465
465
|
search?: string | undefined;
|
|
466
466
|
paging?: PAGING | undefined;
|
|
@@ -480,8 +480,8 @@ declare const FleetIssueManagementCommentQuerySchema: z.ZodObject<{
|
|
|
480
480
|
direction: OrderBy;
|
|
481
481
|
}[] | undefined;
|
|
482
482
|
include_master_data?: YesNo | undefined;
|
|
483
|
-
vehicle_issue_ids?: string[] | undefined;
|
|
484
483
|
organisation_ids?: string[] | undefined;
|
|
484
|
+
vehicle_issue_ids?: string[] | undefined;
|
|
485
485
|
vehicle_issue_comment_ids?: string[] | undefined;
|
|
486
486
|
}>;
|
|
487
487
|
type FleetIssueManagementCommentQueryDTO = z.infer<typeof FleetIssueManagementCommentQuerySchema>;
|