vms-nest-prisma-api-document 270.0.0 → 280.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 +118 -21
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +16 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +34 -34
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +48 -48
- package/dist/services/fleet/incident_management/incident_management_service.d.ts +106 -10
- package/dist/services/fleet/incident_management/incident_management_service.js +14 -0
- package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +1 -1
- package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +1 -1
- package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +49 -49
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +118 -19
- package/dist/services/fleet/issue_management/issue_management_service.js +14 -0
- package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +1 -1
- package/dist/services/fleet/service_management/fleet_service_management_service.js +14 -0
- package/dist/services/fleet/service_management/fleet_service_schedule_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.js +33 -11
- 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/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/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 +1 -1
- 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 +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- 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_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- 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 +5 -5
- 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/{user_organisation_service-DnO03t9F.d.ts → user_organisation_service-ByxoHwom.d.ts} +186 -6
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo, InspectionType, InspectionPriority, InspectionStatus, FileType, InspectionActionStatus } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR, BaseCommonFile, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver,
|
|
4
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, h as FleetServiceManagement } from '../../../user_organisation_service-ByxoHwom.js';
|
|
5
5
|
import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import { FleetIssueManagement } from '../issue_management/issue_management_service.js';
|
|
7
7
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -59,23 +59,23 @@ declare const FleetInspectionScheduleSchema: z.ZodObject<{
|
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
status: Status;
|
|
61
61
|
organisation_id: string;
|
|
62
|
+
inspection_schedule_name: string;
|
|
63
|
+
inspection_schedule_start_date: string;
|
|
64
|
+
inspection_schedule_due_date: string;
|
|
62
65
|
time_zone_id: string;
|
|
63
66
|
vehicle_ids: string[];
|
|
64
67
|
user_id: string;
|
|
65
|
-
inspection_schedule_name: string;
|
|
66
68
|
inspection_schedule_description: string;
|
|
67
|
-
inspection_schedule_start_date: string;
|
|
68
|
-
inspection_schedule_due_date: string;
|
|
69
69
|
}, {
|
|
70
70
|
status: Status;
|
|
71
71
|
organisation_id: string;
|
|
72
|
+
inspection_schedule_name: string;
|
|
72
73
|
time_zone_id: string;
|
|
73
74
|
user_id: string;
|
|
74
|
-
inspection_schedule_name: string;
|
|
75
|
-
vehicle_ids?: string[] | undefined;
|
|
76
|
-
inspection_schedule_description?: string | undefined;
|
|
77
75
|
inspection_schedule_start_date?: string | undefined;
|
|
78
76
|
inspection_schedule_due_date?: string | undefined;
|
|
77
|
+
vehicle_ids?: string[] | undefined;
|
|
78
|
+
inspection_schedule_description?: string | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
type FleetInspectionScheduleDTO = z.infer<typeof FleetInspectionScheduleSchema>;
|
|
81
81
|
declare const FleetInspectionScheduleQuerySchema: z.ZodObject<{
|
|
@@ -113,6 +113,7 @@ declare const FleetInspectionScheduleQuerySchema: z.ZodObject<{
|
|
|
113
113
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
status: Status[];
|
|
116
|
+
time_zone_id: string;
|
|
116
117
|
search: string;
|
|
117
118
|
paging: PAGING;
|
|
118
119
|
page_count: number;
|
|
@@ -132,12 +133,11 @@ declare const FleetInspectionScheduleQuerySchema: z.ZodObject<{
|
|
|
132
133
|
}[];
|
|
133
134
|
include_master_data: YesNo;
|
|
134
135
|
date_format_id: string;
|
|
135
|
-
time_zone_id: string;
|
|
136
136
|
organisation_ids: string[];
|
|
137
137
|
inspection_schedule_ids: string[];
|
|
138
138
|
}, {
|
|
139
|
-
date_format_id: string;
|
|
140
139
|
time_zone_id: string;
|
|
140
|
+
date_format_id: string;
|
|
141
141
|
status?: Status[] | undefined;
|
|
142
142
|
search?: string | undefined;
|
|
143
143
|
paging?: PAGING | undefined;
|
|
@@ -229,6 +229,7 @@ declare const FleetInspectionFileSchema: z.ZodObject<{
|
|
|
229
229
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
230
230
|
inspection_id: z.ZodEffects<z.ZodString, string, string>;
|
|
231
231
|
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
inspection_id: string;
|
|
232
233
|
status: Status;
|
|
233
234
|
organisation_id: string;
|
|
234
235
|
usage_type: string;
|
|
@@ -239,13 +240,12 @@ declare const FleetInspectionFileSchema: z.ZodObject<{
|
|
|
239
240
|
file_description: string;
|
|
240
241
|
file_size: number;
|
|
241
242
|
file_metadata: Record<string, any>;
|
|
242
|
-
inspection_id: string;
|
|
243
243
|
}, {
|
|
244
|
+
inspection_id: string;
|
|
244
245
|
status: Status;
|
|
245
246
|
organisation_id: string;
|
|
246
247
|
usage_type: string;
|
|
247
248
|
file_type: FileType;
|
|
248
|
-
inspection_id: string;
|
|
249
249
|
file_url?: string | undefined;
|
|
250
250
|
file_key?: string | undefined;
|
|
251
251
|
file_name?: string | undefined;
|
|
@@ -283,6 +283,7 @@ declare const FleetInspectionSchema: z.ZodObject<{
|
|
|
283
283
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
284
284
|
inspection_id: z.ZodEffects<z.ZodString, string, string>;
|
|
285
285
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
286
|
+
inspection_id: string;
|
|
286
287
|
status: Status;
|
|
287
288
|
organisation_id: string;
|
|
288
289
|
usage_type: string;
|
|
@@ -293,13 +294,12 @@ declare const FleetInspectionSchema: z.ZodObject<{
|
|
|
293
294
|
file_description: string;
|
|
294
295
|
file_size: number;
|
|
295
296
|
file_metadata: Record<string, any>;
|
|
296
|
-
inspection_id: string;
|
|
297
297
|
}, {
|
|
298
|
+
inspection_id: string;
|
|
298
299
|
status: Status;
|
|
299
300
|
organisation_id: string;
|
|
300
301
|
usage_type: string;
|
|
301
302
|
file_type: FileType;
|
|
302
|
-
inspection_id: string;
|
|
303
303
|
file_url?: string | undefined;
|
|
304
304
|
file_key?: string | undefined;
|
|
305
305
|
file_name?: string | undefined;
|
|
@@ -308,21 +308,22 @@ declare const FleetInspectionSchema: z.ZodObject<{
|
|
|
308
308
|
file_metadata?: Record<string, any> | undefined;
|
|
309
309
|
}>, "many">>>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
-
inspection_form_id: string;
|
|
312
|
-
status: Status;
|
|
313
|
-
organisation_id: string;
|
|
314
|
-
time_zone_id: string;
|
|
315
|
-
driver_id: string;
|
|
316
|
-
vehicle_id: string;
|
|
317
|
-
service_management_id: string;
|
|
318
|
-
odometer_reading: number;
|
|
319
311
|
inspection_type: InspectionType;
|
|
320
312
|
inspection_date: string;
|
|
321
313
|
inspection_priority: InspectionPriority;
|
|
322
314
|
inspection_status: InspectionStatus;
|
|
315
|
+
odometer_reading: number;
|
|
316
|
+
status: Status;
|
|
317
|
+
organisation_id: string;
|
|
318
|
+
vehicle_id: string;
|
|
319
|
+
driver_id: string;
|
|
323
320
|
inspector_id: string;
|
|
321
|
+
inspection_form_id: string;
|
|
324
322
|
inspection_data: Record<string, any>;
|
|
323
|
+
service_management_id: string;
|
|
324
|
+
time_zone_id: string;
|
|
325
325
|
FleetInspectionFileSchema: {
|
|
326
|
+
inspection_id: string;
|
|
326
327
|
status: Status;
|
|
327
328
|
organisation_id: string;
|
|
328
329
|
usage_type: string;
|
|
@@ -333,29 +334,28 @@ declare const FleetInspectionSchema: z.ZodObject<{
|
|
|
333
334
|
file_description: string;
|
|
334
335
|
file_size: number;
|
|
335
336
|
file_metadata: Record<string, any>;
|
|
336
|
-
inspection_id: string;
|
|
337
337
|
}[];
|
|
338
338
|
}, {
|
|
339
|
-
inspection_form_id: string;
|
|
340
|
-
status: Status;
|
|
341
|
-
organisation_id: string;
|
|
342
|
-
time_zone_id: string;
|
|
343
|
-
driver_id: string;
|
|
344
|
-
vehicle_id: string;
|
|
345
|
-
service_management_id: string;
|
|
346
339
|
inspection_type: InspectionType;
|
|
347
340
|
inspection_date: string;
|
|
348
341
|
inspection_priority: InspectionPriority;
|
|
349
342
|
inspection_status: InspectionStatus;
|
|
343
|
+
status: Status;
|
|
344
|
+
organisation_id: string;
|
|
345
|
+
vehicle_id: string;
|
|
346
|
+
driver_id: string;
|
|
350
347
|
inspector_id: string;
|
|
348
|
+
inspection_form_id: string;
|
|
349
|
+
service_management_id: string;
|
|
350
|
+
time_zone_id: string;
|
|
351
351
|
odometer_reading?: unknown;
|
|
352
352
|
inspection_data?: Record<string, any> | undefined;
|
|
353
353
|
FleetInspectionFileSchema?: {
|
|
354
|
+
inspection_id: string;
|
|
354
355
|
status: Status;
|
|
355
356
|
organisation_id: string;
|
|
356
357
|
usage_type: string;
|
|
357
358
|
file_type: FileType;
|
|
358
|
-
inspection_id: string;
|
|
359
359
|
file_url?: string | undefined;
|
|
360
360
|
file_key?: string | undefined;
|
|
361
361
|
file_name?: string | undefined;
|
|
@@ -408,7 +408,11 @@ declare const FleetInspectionQuerySchema: z.ZodObject<{
|
|
|
408
408
|
inspection_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof InspectionStatus>, "many">>>;
|
|
409
409
|
inspection_action_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof InspectionActionStatus>, "many">>>;
|
|
410
410
|
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
inspection_type: InspectionType[];
|
|
412
|
+
inspection_priority: InspectionPriority[];
|
|
413
|
+
inspection_status: InspectionStatus[];
|
|
411
414
|
status: Status[];
|
|
415
|
+
time_zone_id: string;
|
|
412
416
|
search: string;
|
|
413
417
|
paging: PAGING;
|
|
414
418
|
page_count: number;
|
|
@@ -428,21 +432,20 @@ declare const FleetInspectionQuerySchema: z.ZodObject<{
|
|
|
428
432
|
}[];
|
|
429
433
|
include_master_data: YesNo;
|
|
430
434
|
date_format_id: string;
|
|
431
|
-
|
|
435
|
+
inspection_ids: string[];
|
|
432
436
|
organisation_ids: string[];
|
|
433
|
-
inspection_form_ids: string[];
|
|
434
437
|
vehicle_ids: string[];
|
|
435
438
|
driver_ids: string[];
|
|
439
|
+
inspection_form_ids: string[];
|
|
436
440
|
service_management_ids: string[];
|
|
437
|
-
inspection_ids: string[];
|
|
438
441
|
inspection_schedule_ids: string[];
|
|
439
|
-
inspection_type: InspectionType[];
|
|
440
|
-
inspection_priority: InspectionPriority[];
|
|
441
|
-
inspection_status: InspectionStatus[];
|
|
442
442
|
inspection_action_status: InspectionActionStatus[];
|
|
443
443
|
}, {
|
|
444
|
-
date_format_id: string;
|
|
445
444
|
time_zone_id: string;
|
|
445
|
+
date_format_id: string;
|
|
446
|
+
inspection_type?: InspectionType[] | undefined;
|
|
447
|
+
inspection_priority?: InspectionPriority[] | undefined;
|
|
448
|
+
inspection_status?: InspectionStatus[] | undefined;
|
|
446
449
|
status?: Status[] | undefined;
|
|
447
450
|
search?: string | undefined;
|
|
448
451
|
paging?: PAGING | undefined;
|
|
@@ -462,16 +465,13 @@ declare const FleetInspectionQuerySchema: z.ZodObject<{
|
|
|
462
465
|
direction: OrderBy;
|
|
463
466
|
}[] | undefined;
|
|
464
467
|
include_master_data?: YesNo | undefined;
|
|
468
|
+
inspection_ids?: string[] | undefined;
|
|
465
469
|
organisation_ids?: string[] | undefined;
|
|
466
|
-
inspection_form_ids?: string[] | undefined;
|
|
467
470
|
vehicle_ids?: string[] | undefined;
|
|
468
471
|
driver_ids?: string[] | undefined;
|
|
472
|
+
inspection_form_ids?: string[] | undefined;
|
|
469
473
|
service_management_ids?: string[] | undefined;
|
|
470
|
-
inspection_ids?: string[] | undefined;
|
|
471
474
|
inspection_schedule_ids?: string[] | undefined;
|
|
472
|
-
inspection_type?: InspectionType[] | undefined;
|
|
473
|
-
inspection_priority?: InspectionPriority[] | undefined;
|
|
474
|
-
inspection_status?: InspectionStatus[] | undefined;
|
|
475
475
|
inspection_action_status?: InspectionActionStatus[] | undefined;
|
|
476
476
|
}>;
|
|
477
477
|
type FleetInspectionQueryDTO = z.infer<typeof FleetInspectionQuerySchema>;
|
|
@@ -509,6 +509,7 @@ declare const FleetInspectionCheckPendingQuerySchema: z.ZodObject<{
|
|
|
509
509
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
510
510
|
}, "strip", z.ZodTypeAny, {
|
|
511
511
|
status: Status[];
|
|
512
|
+
time_zone_id: string;
|
|
512
513
|
search: string;
|
|
513
514
|
paging: PAGING;
|
|
514
515
|
page_count: number;
|
|
@@ -528,11 +529,10 @@ declare const FleetInspectionCheckPendingQuerySchema: z.ZodObject<{
|
|
|
528
529
|
}[];
|
|
529
530
|
include_master_data: YesNo;
|
|
530
531
|
date_format_id: string;
|
|
531
|
-
time_zone_id: string;
|
|
532
532
|
vehicle_ids: string[];
|
|
533
533
|
}, {
|
|
534
|
-
date_format_id: string;
|
|
535
534
|
time_zone_id: string;
|
|
535
|
+
date_format_id: string;
|
|
536
536
|
status?: Status[] | undefined;
|
|
537
537
|
search?: string | undefined;
|
|
538
538
|
paging?: PAGING | undefined;
|
|
@@ -590,14 +590,14 @@ declare const FleetInspectionFormSchema: z.ZodObject<{
|
|
|
590
590
|
inspection_form_fields: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
591
591
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
592
592
|
}, "strip", z.ZodTypeAny, {
|
|
593
|
-
inspection_form_name: string;
|
|
594
|
-
inspection_form_fields: Record<string, any>;
|
|
595
593
|
status: Status;
|
|
596
594
|
organisation_id: string;
|
|
597
|
-
}, {
|
|
598
595
|
inspection_form_name: string;
|
|
596
|
+
inspection_form_fields: Record<string, any>;
|
|
597
|
+
}, {
|
|
599
598
|
status: Status;
|
|
600
599
|
organisation_id: string;
|
|
600
|
+
inspection_form_name: string;
|
|
601
601
|
inspection_form_fields?: Record<string, any> | undefined;
|
|
602
602
|
}>;
|
|
603
603
|
type FleetInspectionFormDTO = z.infer<typeof FleetInspectionFormSchema>;
|
|
@@ -636,6 +636,7 @@ declare const FleetInspectionFormQuerySchema: z.ZodObject<{
|
|
|
636
636
|
inspection_form_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
637
637
|
}, "strip", z.ZodTypeAny, {
|
|
638
638
|
status: Status[];
|
|
639
|
+
time_zone_id: string;
|
|
639
640
|
search: string;
|
|
640
641
|
paging: PAGING;
|
|
641
642
|
page_count: number;
|
|
@@ -655,12 +656,11 @@ declare const FleetInspectionFormQuerySchema: z.ZodObject<{
|
|
|
655
656
|
}[];
|
|
656
657
|
include_master_data: YesNo;
|
|
657
658
|
date_format_id: string;
|
|
658
|
-
time_zone_id: string;
|
|
659
659
|
organisation_ids: string[];
|
|
660
660
|
inspection_form_ids: string[];
|
|
661
661
|
}, {
|
|
662
|
-
date_format_id: string;
|
|
663
662
|
time_zone_id: string;
|
|
663
|
+
date_format_id: string;
|
|
664
664
|
status?: Status[] | undefined;
|
|
665
665
|
search?: string | undefined;
|
|
666
666
|
paging?: PAGING | undefined;
|
|
@@ -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,
|
|
5
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, h as FleetServiceManagement } from '../../../user_organisation_service-ByxoHwom.js';
|
|
6
6
|
import { FleetIncidentManagement } from '../incident_management/incident_management_service.js';
|
|
7
7
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
8
8
|
import '../../master/fleet/master_fleet_insurance_claim_status_service.js';
|
|
@@ -93,6 +93,15 @@ interface FleetIssueManagementFile extends BaseCommonFile {
|
|
|
93
93
|
vehicle_issue_id: string;
|
|
94
94
|
FleetIssueManagement?: FleetIssueManagement;
|
|
95
95
|
}
|
|
96
|
+
interface IssueDashboard {
|
|
97
|
+
date: string;
|
|
98
|
+
total_count: number;
|
|
99
|
+
open: number;
|
|
100
|
+
closed: number;
|
|
101
|
+
resolved: number;
|
|
102
|
+
overdue: number;
|
|
103
|
+
reopen: number;
|
|
104
|
+
}
|
|
96
105
|
declare const FleetIssueManagementFileSchema: z.ZodObject<{
|
|
97
106
|
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
98
107
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
@@ -192,14 +201,15 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
192
201
|
file_metadata?: Record<string, any> | undefined;
|
|
193
202
|
}>, "many">>>;
|
|
194
203
|
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
inspection_id: string;
|
|
205
|
+
odometer_reading: number;
|
|
195
206
|
status: Status;
|
|
196
207
|
organisation_id: string;
|
|
197
|
-
time_zone_id: string;
|
|
198
|
-
driver_id: string;
|
|
199
208
|
vehicle_id: string;
|
|
200
|
-
|
|
209
|
+
driver_id: string;
|
|
201
210
|
service_management_id: string;
|
|
202
|
-
|
|
211
|
+
time_zone_id: string;
|
|
212
|
+
user_id: string;
|
|
203
213
|
vehicle_incident_id: string;
|
|
204
214
|
issue_title: string;
|
|
205
215
|
issue_description: string;
|
|
@@ -211,7 +221,6 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
211
221
|
due_date: string;
|
|
212
222
|
due_odometer_reading: number;
|
|
213
223
|
issue_source: IssueSource;
|
|
214
|
-
inspection_id: string;
|
|
215
224
|
FleetIssueManagementFileSchema: {
|
|
216
225
|
status: Status;
|
|
217
226
|
organisation_id: string;
|
|
@@ -226,13 +235,14 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
226
235
|
vehicle_issue_id: string;
|
|
227
236
|
}[];
|
|
228
237
|
}, {
|
|
238
|
+
inspection_id: string;
|
|
229
239
|
status: Status;
|
|
230
240
|
organisation_id: string;
|
|
231
|
-
time_zone_id: string;
|
|
232
|
-
driver_id: string;
|
|
233
241
|
vehicle_id: string;
|
|
234
|
-
|
|
242
|
+
driver_id: string;
|
|
235
243
|
service_management_id: string;
|
|
244
|
+
time_zone_id: string;
|
|
245
|
+
user_id: string;
|
|
236
246
|
vehicle_incident_id: string;
|
|
237
247
|
issue_title: string;
|
|
238
248
|
issue_status: IssueStatus;
|
|
@@ -240,7 +250,6 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
240
250
|
issue_severity: IssueSeverity;
|
|
241
251
|
report_date: string;
|
|
242
252
|
issue_source: IssueSource;
|
|
243
|
-
inspection_id: string;
|
|
244
253
|
odometer_reading?: unknown;
|
|
245
254
|
issue_description?: string | undefined;
|
|
246
255
|
resolved_date?: string | undefined;
|
|
@@ -308,6 +317,7 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
308
317
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
309
318
|
}, "strip", z.ZodTypeAny, {
|
|
310
319
|
status: Status[];
|
|
320
|
+
time_zone_id: string;
|
|
311
321
|
search: string;
|
|
312
322
|
paging: PAGING;
|
|
313
323
|
page_count: number;
|
|
@@ -327,12 +337,12 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
327
337
|
}[];
|
|
328
338
|
include_master_data: YesNo;
|
|
329
339
|
date_format_id: string;
|
|
330
|
-
|
|
340
|
+
inspection_ids: string[];
|
|
331
341
|
organisation_ids: string[];
|
|
332
342
|
vehicle_ids: string[];
|
|
333
343
|
driver_ids: string[];
|
|
334
|
-
user_ids: string[];
|
|
335
344
|
service_management_ids: string[];
|
|
345
|
+
user_ids: string[];
|
|
336
346
|
from_date: string;
|
|
337
347
|
to_date: string;
|
|
338
348
|
vehicle_incident_ids: string[];
|
|
@@ -341,10 +351,9 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
341
351
|
issue_severity: IssueSeverity[];
|
|
342
352
|
issue_source: IssueSource[];
|
|
343
353
|
vehicle_issue_ids: string[];
|
|
344
|
-
inspection_ids: string[];
|
|
345
354
|
}, {
|
|
346
|
-
date_format_id: string;
|
|
347
355
|
time_zone_id: string;
|
|
356
|
+
date_format_id: string;
|
|
348
357
|
from_date: string;
|
|
349
358
|
to_date: string;
|
|
350
359
|
status?: Status[] | undefined;
|
|
@@ -366,20 +375,109 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
366
375
|
direction: OrderBy;
|
|
367
376
|
}[] | undefined;
|
|
368
377
|
include_master_data?: YesNo | undefined;
|
|
378
|
+
inspection_ids?: string[] | undefined;
|
|
369
379
|
organisation_ids?: string[] | undefined;
|
|
370
380
|
vehicle_ids?: string[] | undefined;
|
|
371
381
|
driver_ids?: string[] | undefined;
|
|
372
|
-
user_ids?: string[] | undefined;
|
|
373
382
|
service_management_ids?: string[] | undefined;
|
|
383
|
+
user_ids?: string[] | undefined;
|
|
374
384
|
vehicle_incident_ids?: string[] | undefined;
|
|
375
385
|
issue_status?: IssueStatus[] | undefined;
|
|
376
386
|
issue_priority?: Priority[] | undefined;
|
|
377
387
|
issue_severity?: IssueSeverity[] | undefined;
|
|
378
388
|
issue_source?: IssueSource[] | undefined;
|
|
379
389
|
vehicle_issue_ids?: string[] | undefined;
|
|
380
|
-
inspection_ids?: string[] | undefined;
|
|
381
390
|
}>;
|
|
382
391
|
type FleetIssueManagementQueryDTO = z.infer<typeof FleetIssueManagementQuerySchema>;
|
|
392
|
+
declare const FleetIssueManagementDashBoardQuerySchema: z.ZodObject<{
|
|
393
|
+
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
394
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
395
|
+
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
396
|
+
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
397
|
+
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
398
|
+
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
399
|
+
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
400
|
+
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
401
|
+
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
402
|
+
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
403
|
+
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
404
|
+
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
405
|
+
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
406
|
+
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
407
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
408
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
409
|
+
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
name: string;
|
|
412
|
+
field: string;
|
|
413
|
+
direction: OrderBy;
|
|
414
|
+
}, {
|
|
415
|
+
name: string;
|
|
416
|
+
field: string;
|
|
417
|
+
direction: OrderBy;
|
|
418
|
+
}>, "many">>>;
|
|
419
|
+
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
420
|
+
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
421
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
422
|
+
} & {
|
|
423
|
+
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
424
|
+
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
425
|
+
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
426
|
+
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
status: Status[];
|
|
429
|
+
time_zone_id: string;
|
|
430
|
+
search: string;
|
|
431
|
+
paging: PAGING;
|
|
432
|
+
page_count: number;
|
|
433
|
+
page_index: number;
|
|
434
|
+
load_parents: LoadParents;
|
|
435
|
+
load_parents_list: string[];
|
|
436
|
+
load_child: LoadChild;
|
|
437
|
+
load_child_list: string[];
|
|
438
|
+
load_child_count: LoadChildCount;
|
|
439
|
+
load_child_count_list: string[];
|
|
440
|
+
include_details: Record<string, any>;
|
|
441
|
+
where_relations: Record<string, any>;
|
|
442
|
+
order_by: {
|
|
443
|
+
name: string;
|
|
444
|
+
field: string;
|
|
445
|
+
direction: OrderBy;
|
|
446
|
+
}[];
|
|
447
|
+
include_master_data: YesNo;
|
|
448
|
+
date_format_id: string;
|
|
449
|
+
organisation_ids: string[];
|
|
450
|
+
vehicle_ids: string[];
|
|
451
|
+
from_date: string;
|
|
452
|
+
to_date: string;
|
|
453
|
+
}, {
|
|
454
|
+
time_zone_id: string;
|
|
455
|
+
date_format_id: string;
|
|
456
|
+
from_date: string;
|
|
457
|
+
to_date: string;
|
|
458
|
+
status?: Status[] | undefined;
|
|
459
|
+
search?: string | undefined;
|
|
460
|
+
paging?: PAGING | undefined;
|
|
461
|
+
page_count?: unknown;
|
|
462
|
+
page_index?: unknown;
|
|
463
|
+
load_parents?: LoadParents | undefined;
|
|
464
|
+
load_parents_list?: string[] | undefined;
|
|
465
|
+
load_child?: LoadChild | undefined;
|
|
466
|
+
load_child_list?: string[] | undefined;
|
|
467
|
+
load_child_count?: LoadChildCount | undefined;
|
|
468
|
+
load_child_count_list?: string[] | undefined;
|
|
469
|
+
include_details?: Record<string, any> | undefined;
|
|
470
|
+
where_relations?: Record<string, any> | undefined;
|
|
471
|
+
order_by?: {
|
|
472
|
+
name: string;
|
|
473
|
+
field: string;
|
|
474
|
+
direction: OrderBy;
|
|
475
|
+
}[] | undefined;
|
|
476
|
+
include_master_data?: YesNo | undefined;
|
|
477
|
+
organisation_ids?: string[] | undefined;
|
|
478
|
+
vehicle_ids?: string[] | undefined;
|
|
479
|
+
}>;
|
|
480
|
+
type FleetIssueManagementDashBoardQueryDTO = z.infer<typeof FleetIssueManagementDashBoardQuerySchema>;
|
|
383
481
|
declare const FleetIssueManagementCommentSchema: z.ZodObject<{
|
|
384
482
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
385
483
|
vehicle_issue_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -436,6 +534,7 @@ declare const FleetIssueManagementCommentQuerySchema: z.ZodObject<{
|
|
|
436
534
|
vehicle_issue_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
437
535
|
}, "strip", z.ZodTypeAny, {
|
|
438
536
|
status: Status[];
|
|
537
|
+
time_zone_id: string;
|
|
439
538
|
search: string;
|
|
440
539
|
paging: PAGING;
|
|
441
540
|
page_count: number;
|
|
@@ -455,13 +554,12 @@ declare const FleetIssueManagementCommentQuerySchema: z.ZodObject<{
|
|
|
455
554
|
}[];
|
|
456
555
|
include_master_data: YesNo;
|
|
457
556
|
date_format_id: string;
|
|
458
|
-
time_zone_id: string;
|
|
459
557
|
organisation_ids: string[];
|
|
460
558
|
vehicle_issue_ids: string[];
|
|
461
559
|
vehicle_issue_comment_ids: string[];
|
|
462
560
|
}, {
|
|
463
|
-
date_format_id: string;
|
|
464
561
|
time_zone_id: string;
|
|
562
|
+
date_format_id: string;
|
|
465
563
|
status?: Status[] | undefined;
|
|
466
564
|
search?: string | undefined;
|
|
467
565
|
paging?: PAGING | undefined;
|
|
@@ -497,9 +595,10 @@ declare const findFleetIssueManagement: (data: FleetIssueManagementQueryDTO) =>
|
|
|
497
595
|
declare const createFleetIssueManagement: (data: FleetIssueManagementDTO) => Promise<SBR>;
|
|
498
596
|
declare const updateFleetIssueManagement: (id: string, data: FleetIssueManagementDTO) => Promise<SBR>;
|
|
499
597
|
declare const deleteFleetIssueManagement: (id: string) => Promise<SBR>;
|
|
598
|
+
declare const issue_dashboard: (data: FleetIssueManagementDashBoardQueryDTO) => Promise<FBR<IssueDashboard[]>>;
|
|
500
599
|
declare const findFleetIssueManagementComment: (data: FleetIssueManagementCommentQueryDTO) => Promise<FBR<FleetIssueManagementComment[]>>;
|
|
501
600
|
declare const createFleetIssueManagementComment: (data: FleetIssueManagementCommentDTO) => Promise<SBR>;
|
|
502
601
|
declare const updateFleetIssueManagementComment: (id: string, data: FleetIssueManagementCommentDTO) => Promise<SBR>;
|
|
503
602
|
declare const deleteFleetIssueManagementComment: (id: string) => Promise<SBR>;
|
|
504
603
|
|
|
505
|
-
export { type FleetIssueManagement, type FleetIssueManagementComment, type FleetIssueManagementCommentDTO, type FleetIssueManagementCommentQueryDTO, FleetIssueManagementCommentQuerySchema, FleetIssueManagementCommentSchema, type FleetIssueManagementDTO, type FleetIssueManagementFile, type FleetIssueManagementFileDTO, FleetIssueManagementFileSchema, type FleetIssueManagementHistory, type FleetIssueManagementQueryDTO, FleetIssueManagementQuerySchema, FleetIssueManagementSchema, createFleetIssueManagement, createFleetIssueManagementComment, create_issue_file, deleteFleetIssueManagement, deleteFleetIssueManagementComment, findFleetIssueManagement, findFleetIssueManagementComment, get_issue_file_presigned_url, newFleetIssueManagementCommentPayload, newFleetIssueManagementPayload, remove_issue_file, toFleetIssueManagementCommentPayload, toFleetIssueManagementPayload, updateFleetIssueManagement, updateFleetIssueManagementComment };
|
|
604
|
+
export { type FleetIssueManagement, type FleetIssueManagementComment, type FleetIssueManagementCommentDTO, type FleetIssueManagementCommentQueryDTO, FleetIssueManagementCommentQuerySchema, FleetIssueManagementCommentSchema, type FleetIssueManagementDTO, type FleetIssueManagementDashBoardQueryDTO, FleetIssueManagementDashBoardQuerySchema, type FleetIssueManagementFile, type FleetIssueManagementFileDTO, FleetIssueManagementFileSchema, type FleetIssueManagementHistory, type FleetIssueManagementQueryDTO, FleetIssueManagementQuerySchema, FleetIssueManagementSchema, type IssueDashboard, createFleetIssueManagement, createFleetIssueManagementComment, create_issue_file, deleteFleetIssueManagement, deleteFleetIssueManagementComment, findFleetIssueManagement, findFleetIssueManagementComment, get_issue_file_presigned_url, issue_dashboard, newFleetIssueManagementCommentPayload, newFleetIssueManagementPayload, remove_issue_file, toFleetIssueManagementCommentPayload, toFleetIssueManagementPayload, updateFleetIssueManagement, updateFleetIssueManagementComment };
|
|
@@ -331,6 +331,7 @@ var ENDPOINTS = {
|
|
|
331
331
|
create_issue_file: `${URL}/create_issue_file`,
|
|
332
332
|
remove_issue_file: (id) => `${URL}/remove_issue_file/${id}`,
|
|
333
333
|
find: `${URL}/search`,
|
|
334
|
+
issue_dashboard: `${URL}/issue_dashboard`,
|
|
334
335
|
create: `${URL}`,
|
|
335
336
|
update: (id) => `${URL}/${id}`,
|
|
336
337
|
delete: (id) => `${URL}/${id}`,
|
|
@@ -413,6 +414,14 @@ var FleetIssueManagementQuerySchema = BaseQuerySchema.extend({
|
|
|
413
414
|
from_date: dateMandatory("From Date"),
|
|
414
415
|
to_date: dateMandatory("To Date")
|
|
415
416
|
});
|
|
417
|
+
var FleetIssueManagementDashBoardQuerySchema = BaseQuerySchema.extend({
|
|
418
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
419
|
+
// ✅ Multi-Selection -> UserOrganisation
|
|
420
|
+
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
421
|
+
// ✅ Multi-Selection -> MasterVehicle
|
|
422
|
+
from_date: dateMandatory("From Date"),
|
|
423
|
+
to_date: dateMandatory("To Date")
|
|
424
|
+
});
|
|
416
425
|
var FleetIssueManagementCommentSchema = z3.object({
|
|
417
426
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
418
427
|
// ✅ Single-Selection -> UserOrganisation
|
|
@@ -532,6 +541,9 @@ var updateFleetIssueManagement = async (id, data) => {
|
|
|
532
541
|
var deleteFleetIssueManagement = async (id) => {
|
|
533
542
|
return apiDelete(ENDPOINTS.delete(id));
|
|
534
543
|
};
|
|
544
|
+
var issue_dashboard = async (data) => {
|
|
545
|
+
return apiPost(ENDPOINTS.issue_dashboard, data);
|
|
546
|
+
};
|
|
535
547
|
var findFleetIssueManagementComment = async (data) => {
|
|
536
548
|
return apiPost(ENDPOINTS.find_comment, data);
|
|
537
549
|
};
|
|
@@ -547,6 +559,7 @@ var deleteFleetIssueManagementComment = async (id) => {
|
|
|
547
559
|
export {
|
|
548
560
|
FleetIssueManagementCommentQuerySchema,
|
|
549
561
|
FleetIssueManagementCommentSchema,
|
|
562
|
+
FleetIssueManagementDashBoardQuerySchema,
|
|
550
563
|
FleetIssueManagementFileSchema,
|
|
551
564
|
FleetIssueManagementQuerySchema,
|
|
552
565
|
FleetIssueManagementSchema,
|
|
@@ -558,6 +571,7 @@ export {
|
|
|
558
571
|
findFleetIssueManagement,
|
|
559
572
|
findFleetIssueManagementComment,
|
|
560
573
|
get_issue_file_presigned_url,
|
|
574
|
+
issue_dashboard,
|
|
561
575
|
newFleetIssueManagementCommentPayload,
|
|
562
576
|
newFleetIssueManagementPayload,
|
|
563
577
|
remove_issue_file,
|
|
@@ -2,5 +2,5 @@ import '../../../core/Enums.js';
|
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
export {
|
|
5
|
+
export { h as FleetServiceManagement, hO as FleetServiceManagementDTO, hS as FleetServiceManagementDashBoardQueryDTO, hR as FleetServiceManagementDashBoardQuerySchema, hI as FleetServiceManagementFile, hM as FleetServiceManagementFileDTO, hL as FleetServiceManagementFileSchema, hQ as FleetServiceManagementQueryDTO, hP as FleetServiceManagementQuerySchema, hN as FleetServiceManagementSchema, hH as FleetServiceManagementTask, hU as FleetServiceManagementTaskDTO, hW as FleetServiceManagementTaskQueryDTO, hV as FleetServiceManagementTaskQuerySchema, hT as FleetServiceManagementTaskSchema, hJ as FleetServiceReminder, hY as FleetServiceReminderDTO, h_ as FleetServiceReminderQueryDTO, hZ as FleetServiceReminderQuerySchema, hX as FleetServiceReminderSchema, hK as ServiceDashboard, i9 as createFleetServiceManagement, ie as createFleetServiceManagementTask, ij as createFleetServiceReminder, i6 as create_service_file, ib as deleteFleetServiceManagement, ih as deleteFleetServiceManagementTask, il as deleteFleetServiceReminder, i8 as findFleetServiceManagement, id as findFleetServiceManagementTask, ii as findFleetServiceReminder, i5 as get_service_file_presigned_url, i0 as newFleetServiceManagementPayload, i4 as newFleetServiceManagementTaskPayload, i2 as newFleetServiceReminderPayload, i7 as remove_service_file, ic as service_dashboard, h$ as toFleetServiceManagementPayload, i1 as toFleetServiceManagementTaskPayload, i3 as toFleetServiceReminderPayload, ia as updateFleetServiceManagement, ig as updateFleetServiceManagementTask, ik as updateFleetServiceReminder } from '../../../user_organisation_service-ByxoHwom.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -342,6 +342,7 @@ var ENDPOINTS = {
|
|
|
342
342
|
remove_service_file: (id) => `${URL}/remove_service_file/${id}`,
|
|
343
343
|
// FleetServiceManagement
|
|
344
344
|
find: `${URL}/search`,
|
|
345
|
+
service_dashboard: `${URL}/service_dashboard`,
|
|
345
346
|
create: `${URL}`,
|
|
346
347
|
update: (id) => `${URL}/${id}`,
|
|
347
348
|
delete: (id) => `${URL}/${id}`,
|
|
@@ -473,6 +474,14 @@ var FleetServiceManagementQuerySchema = BaseQuerySchema.extend({
|
|
|
473
474
|
from_date: dateMandatory("From Date"),
|
|
474
475
|
to_date: dateMandatory("To Date")
|
|
475
476
|
});
|
|
477
|
+
var FleetServiceManagementDashBoardQuerySchema = BaseQuerySchema.extend({
|
|
478
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
479
|
+
// ✅ Multi-Selection -> UserOrganisation
|
|
480
|
+
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
481
|
+
// ✅ Multi-Selection -> MasterVehicle
|
|
482
|
+
from_date: dateMandatory("From Date"),
|
|
483
|
+
to_date: dateMandatory("To Date")
|
|
484
|
+
});
|
|
476
485
|
var FleetServiceManagementTaskSchema = z3.object({
|
|
477
486
|
fleet_service_task_id: single_select_mandatory("MasterFleetServiceTask"),
|
|
478
487
|
// ✅ Single-Selection -> MasterFleetServiceTask
|
|
@@ -662,6 +671,9 @@ var updateFleetServiceManagement = async (id, data) => {
|
|
|
662
671
|
var deleteFleetServiceManagement = async (id) => {
|
|
663
672
|
return apiDelete(ENDPOINTS.delete(id));
|
|
664
673
|
};
|
|
674
|
+
var service_dashboard = async (data) => {
|
|
675
|
+
return apiPost(ENDPOINTS.service_dashboard, data);
|
|
676
|
+
};
|
|
665
677
|
var findFleetServiceManagementTask = async (data) => {
|
|
666
678
|
return apiPost(ENDPOINTS.find_service_task, data);
|
|
667
679
|
};
|
|
@@ -687,6 +699,7 @@ var deleteFleetServiceReminder = async (id) => {
|
|
|
687
699
|
return apiDelete(ENDPOINTS.delete_service_reminder(id));
|
|
688
700
|
};
|
|
689
701
|
export {
|
|
702
|
+
FleetServiceManagementDashBoardQuerySchema,
|
|
690
703
|
FleetServiceManagementFileSchema,
|
|
691
704
|
FleetServiceManagementQuerySchema,
|
|
692
705
|
FleetServiceManagementSchema,
|
|
@@ -709,6 +722,7 @@ export {
|
|
|
709
722
|
newFleetServiceManagementTaskPayload,
|
|
710
723
|
newFleetServiceReminderPayload,
|
|
711
724
|
remove_service_file,
|
|
725
|
+
service_dashboard,
|
|
712
726
|
toFleetServiceManagementPayload,
|
|
713
727
|
toFleetServiceManagementTaskPayload,
|
|
714
728
|
toFleetServiceReminderPayload,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User,
|
|
4
|
+
import { U as UserOrganisation, a as User, h as FleetServiceManagement, M as MasterVehicle } from '../../../user_organisation_service-ByxoHwom.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|