vms-nest-prisma-api-document 218.0.0 → 219.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/Enums.d.ts +8 -1
- package/dist/core/Enums.js +9 -0
- package/dist/services/account/bookmark_service.d.ts +11 -11
- package/dist/services/account/notification_preferences.service.d.ts +18 -18
- package/dist/services/account/report_preferences.service.d.ts +7 -7
- package/dist/services/account/ticket_service.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/bus_stop.d.ts +23 -23
- package/dist/services/fleet/bus_mangement/calender.d.ts +8 -8
- 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 +17 -17
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +17 -17
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +46 -46
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +1 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +30 -30
- package/dist/services/fleet/incident_management/incident_management_service.d.ts +77 -71
- package/dist/services/fleet/incident_management/incident_management_service.js +17 -5
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +17 -11
- package/dist/services/fleet/issue_management/issue_management_service.js +12 -6
- package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +400 -0
- package/dist/services/fleet/service_management/fleet_service_management_service.js +573 -0
- package/dist/services/fleet/service_management/fleet_service_management_task_service.d.ts +145 -0
- package/dist/services/fleet/service_management/fleet_service_management_task_service.js +326 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.js +41 -41
- package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service.js +99 -93
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.js +53 -53
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +3 -3
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +6 -6
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +7 -7
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -1
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
- 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 +3 -3
- 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 +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 +5 -5
- 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 +1 -1
- 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 +3 -3
- 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-BE5iA8UK.d.ts → user_organisation_service-Bkq3GOUs.d.ts} +59 -56
- 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-Bkq3GOUs.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,9 +115,9 @@ 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;
|
|
118
119
|
status: Status;
|
|
119
120
|
organisation_id: string;
|
|
120
|
-
vehicle_incident_id: string;
|
|
121
121
|
usage_type: string;
|
|
122
122
|
file_type: FileType;
|
|
123
123
|
file_url: string;
|
|
@@ -127,9 +127,9 @@ declare const FleetIncidentManagementFileSchema: z.ZodObject<{
|
|
|
127
127
|
file_size: number;
|
|
128
128
|
file_metadata: Record<string, any>;
|
|
129
129
|
}, {
|
|
130
|
+
vehicle_incident_id: string;
|
|
130
131
|
status: Status;
|
|
131
132
|
organisation_id: string;
|
|
132
|
-
vehicle_incident_id: string;
|
|
133
133
|
usage_type: string;
|
|
134
134
|
file_type: FileType;
|
|
135
135
|
file_url?: string | undefined;
|
|
@@ -179,6 +179,7 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
179
179
|
legal_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
180
180
|
involved_parties_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
181
181
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
182
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
182
183
|
FleetIncidentManagementFileSchema: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
183
184
|
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
184
185
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
@@ -193,9 +194,9 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
193
194
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
194
195
|
vehicle_incident_id: z.ZodEffects<z.ZodString, string, string>;
|
|
195
196
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
197
|
+
vehicle_incident_id: string;
|
|
196
198
|
status: Status;
|
|
197
199
|
organisation_id: string;
|
|
198
|
-
vehicle_incident_id: string;
|
|
199
200
|
usage_type: string;
|
|
200
201
|
file_type: FileType;
|
|
201
202
|
file_url: string;
|
|
@@ -205,9 +206,9 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
205
206
|
file_size: number;
|
|
206
207
|
file_metadata: Record<string, any>;
|
|
207
208
|
}, {
|
|
209
|
+
vehicle_incident_id: string;
|
|
208
210
|
status: Status;
|
|
209
211
|
organisation_id: string;
|
|
210
|
-
vehicle_incident_id: string;
|
|
211
212
|
usage_type: string;
|
|
212
213
|
file_type: FileType;
|
|
213
214
|
file_url?: string | undefined;
|
|
@@ -218,17 +219,6 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
218
219
|
file_metadata?: Record<string, any> | undefined;
|
|
219
220
|
}>, "many">>>;
|
|
220
221
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
odometer_reading: number;
|
|
222
|
-
status: Status;
|
|
223
|
-
organisation_id: string;
|
|
224
|
-
user_id: string;
|
|
225
|
-
vehicle_id: string;
|
|
226
|
-
driver_id: string;
|
|
227
|
-
google_location: string;
|
|
228
|
-
fleet_insurance_claim_status_id: string;
|
|
229
|
-
fleet_incident_severity_id: string;
|
|
230
|
-
fleet_incident_status_id: string;
|
|
231
|
-
fleet_incident_type_id: string;
|
|
232
222
|
incident_date: string;
|
|
233
223
|
was_towed: YesNo;
|
|
234
224
|
is_vehicle_operational: YesNo;
|
|
@@ -236,7 +226,9 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
236
226
|
incident_weather: IncidentWeather;
|
|
237
227
|
incident_road_type: IncidentRoadType;
|
|
238
228
|
incident_visibility: IncidentVisibility;
|
|
229
|
+
odometer_reading: number;
|
|
239
230
|
incident_description: string;
|
|
231
|
+
google_location: string;
|
|
240
232
|
insurance_cover: YesNo;
|
|
241
233
|
insurance_claimed: YesNo;
|
|
242
234
|
insurance_policy_number: string;
|
|
@@ -251,10 +243,20 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
251
243
|
injured_persons_count: number;
|
|
252
244
|
legal_description: string;
|
|
253
245
|
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;
|
|
254
256
|
FleetIncidentManagementFileSchema: {
|
|
257
|
+
vehicle_incident_id: string;
|
|
255
258
|
status: Status;
|
|
256
259
|
organisation_id: string;
|
|
257
|
-
vehicle_incident_id: string;
|
|
258
260
|
usage_type: string;
|
|
259
261
|
file_type: FileType;
|
|
260
262
|
file_url: string;
|
|
@@ -264,21 +266,12 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
264
266
|
file_size: number;
|
|
265
267
|
file_metadata: Record<string, any>;
|
|
266
268
|
}[];
|
|
269
|
+
incident_cost?: number | undefined;
|
|
267
270
|
latitude?: number | undefined;
|
|
268
271
|
longitude?: number | undefined;
|
|
269
|
-
incident_cost?: number | undefined;
|
|
270
272
|
insurance_claimed_amount?: number | undefined;
|
|
271
273
|
insurance_settled_amount?: number | undefined;
|
|
272
274
|
}, {
|
|
273
|
-
status: Status;
|
|
274
|
-
organisation_id: string;
|
|
275
|
-
user_id: string;
|
|
276
|
-
vehicle_id: string;
|
|
277
|
-
driver_id: string;
|
|
278
|
-
fleet_insurance_claim_status_id: string;
|
|
279
|
-
fleet_incident_severity_id: string;
|
|
280
|
-
fleet_incident_status_id: string;
|
|
281
|
-
fleet_incident_type_id: string;
|
|
282
275
|
incident_date: string;
|
|
283
276
|
was_towed: YesNo;
|
|
284
277
|
is_vehicle_operational: YesNo;
|
|
@@ -290,12 +283,22 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
290
283
|
insurance_claimed: YesNo;
|
|
291
284
|
police_report_filed: YesNo;
|
|
292
285
|
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;
|
|
293
296
|
odometer_reading?: unknown;
|
|
297
|
+
incident_cost?: unknown;
|
|
298
|
+
incident_description?: string | undefined;
|
|
294
299
|
latitude?: unknown;
|
|
295
300
|
longitude?: unknown;
|
|
296
301
|
google_location?: string | undefined;
|
|
297
|
-
incident_cost?: unknown;
|
|
298
|
-
incident_description?: string | undefined;
|
|
299
302
|
insurance_claimed_amount?: unknown;
|
|
300
303
|
insurance_settled_amount?: unknown;
|
|
301
304
|
insurance_policy_number?: string | undefined;
|
|
@@ -309,9 +312,9 @@ declare const FleetIncidentManagementSchema: z.ZodObject<{
|
|
|
309
312
|
legal_description?: string | undefined;
|
|
310
313
|
involved_parties_description?: string | undefined;
|
|
311
314
|
FleetIncidentManagementFileSchema?: {
|
|
315
|
+
vehicle_incident_id: string;
|
|
312
316
|
status: Status;
|
|
313
317
|
organisation_id: string;
|
|
314
|
-
vehicle_incident_id: string;
|
|
315
318
|
usage_type: string;
|
|
316
319
|
file_type: FileType;
|
|
317
320
|
file_url?: string | undefined;
|
|
@@ -376,7 +379,18 @@ declare const FleetIncidentManagementQuerySchema: z.ZodObject<{
|
|
|
376
379
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
377
380
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
378
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[];
|
|
379
392
|
status: Status[];
|
|
393
|
+
time_zone_id: string;
|
|
380
394
|
search: string;
|
|
381
395
|
paging: PAGING;
|
|
382
396
|
page_count: number;
|
|
@@ -396,33 +410,32 @@ declare const FleetIncidentManagementQuerySchema: z.ZodObject<{
|
|
|
396
410
|
}[];
|
|
397
411
|
include_master_data: YesNo;
|
|
398
412
|
date_format_id: string;
|
|
399
|
-
|
|
413
|
+
vehicle_incident_ids: string[];
|
|
400
414
|
organisation_ids: string[];
|
|
401
415
|
user_ids: string[];
|
|
402
416
|
vehicle_ids: string[];
|
|
403
417
|
driver_ids: string[];
|
|
404
|
-
|
|
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[];
|
|
405
422
|
from_date: string;
|
|
406
423
|
to_date: string;
|
|
407
|
-
fleet_insurance_claim_status_ids: string[];
|
|
408
|
-
fleet_incident_severity_ids: string[];
|
|
409
|
-
fleet_incident_status_ids: string[];
|
|
410
|
-
fleet_incident_type_ids: string[];
|
|
411
|
-
was_towed: YesNo[];
|
|
412
|
-
is_vehicle_operational: YesNo[];
|
|
413
|
-
incident_time: IncidentTime[];
|
|
414
|
-
incident_weather: IncidentWeather[];
|
|
415
|
-
incident_road_type: IncidentRoadType[];
|
|
416
|
-
incident_visibility: IncidentVisibility[];
|
|
417
|
-
insurance_cover: YesNo[];
|
|
418
|
-
insurance_claimed: YesNo[];
|
|
419
|
-
police_report_filed: YesNo[];
|
|
420
|
-
any_injuries: YesNo[];
|
|
421
424
|
}, {
|
|
422
|
-
date_format_id: string;
|
|
423
425
|
time_zone_id: string;
|
|
426
|
+
date_format_id: string;
|
|
424
427
|
from_date: string;
|
|
425
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;
|
|
426
439
|
status?: Status[] | undefined;
|
|
427
440
|
search?: string | undefined;
|
|
428
441
|
paging?: PAGING | undefined;
|
|
@@ -442,25 +455,15 @@ declare const FleetIncidentManagementQuerySchema: z.ZodObject<{
|
|
|
442
455
|
direction: OrderBy;
|
|
443
456
|
}[] | undefined;
|
|
444
457
|
include_master_data?: YesNo | undefined;
|
|
458
|
+
vehicle_incident_ids?: string[] | undefined;
|
|
445
459
|
organisation_ids?: string[] | undefined;
|
|
446
460
|
user_ids?: string[] | undefined;
|
|
447
461
|
vehicle_ids?: string[] | undefined;
|
|
448
462
|
driver_ids?: string[] | undefined;
|
|
449
|
-
vehicle_incident_ids?: string[] | undefined;
|
|
450
|
-
fleet_insurance_claim_status_ids?: string[] | undefined;
|
|
451
|
-
fleet_incident_severity_ids?: string[] | undefined;
|
|
452
|
-
fleet_incident_status_ids?: string[] | undefined;
|
|
453
463
|
fleet_incident_type_ids?: string[] | undefined;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
incident_weather?: IncidentWeather[] | undefined;
|
|
458
|
-
incident_road_type?: IncidentRoadType[] | undefined;
|
|
459
|
-
incident_visibility?: IncidentVisibility[] | undefined;
|
|
460
|
-
insurance_cover?: YesNo[] | undefined;
|
|
461
|
-
insurance_claimed?: YesNo[] | undefined;
|
|
462
|
-
police_report_filed?: YesNo[] | undefined;
|
|
463
|
-
any_injuries?: YesNo[] | undefined;
|
|
464
|
+
fleet_incident_status_ids?: string[] | undefined;
|
|
465
|
+
fleet_incident_severity_ids?: string[] | undefined;
|
|
466
|
+
fleet_insurance_claim_status_ids?: string[] | undefined;
|
|
464
467
|
}>;
|
|
465
468
|
type FleetIncidentManagementQueryDTO = z.infer<typeof FleetIncidentManagementQuerySchema>;
|
|
466
469
|
declare const FleetIncidentManagementCostSchema: z.ZodObject<{
|
|
@@ -471,20 +474,23 @@ declare const FleetIncidentManagementCostSchema: z.ZodObject<{
|
|
|
471
474
|
incident_cost_amount: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
472
475
|
incident_cost_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
473
476
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
477
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
474
478
|
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
vehicle_incident_id: string;
|
|
475
480
|
status: Status;
|
|
476
481
|
organisation_id: string;
|
|
477
|
-
vehicle_incident_id: string;
|
|
478
|
-
expense_name_id: string;
|
|
479
482
|
incident_cost_description: string;
|
|
480
483
|
incident_cost_date: string;
|
|
484
|
+
expense_name_id: string;
|
|
485
|
+
time_zone_id: string;
|
|
481
486
|
incident_cost_amount?: number | undefined;
|
|
482
487
|
}, {
|
|
488
|
+
vehicle_incident_id: string;
|
|
483
489
|
status: Status;
|
|
484
490
|
organisation_id: string;
|
|
485
|
-
vehicle_incident_id: string;
|
|
486
|
-
expense_name_id: string;
|
|
487
491
|
incident_cost_date: string;
|
|
492
|
+
expense_name_id: string;
|
|
493
|
+
time_zone_id: string;
|
|
488
494
|
incident_cost_description?: string | undefined;
|
|
489
495
|
incident_cost_amount?: unknown;
|
|
490
496
|
}>;
|
|
@@ -526,6 +532,7 @@ declare const FleetIncidentManagementCostQuerySchema: z.ZodObject<{
|
|
|
526
532
|
expense_name_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
527
533
|
}, "strip", z.ZodTypeAny, {
|
|
528
534
|
status: Status[];
|
|
535
|
+
time_zone_id: string;
|
|
529
536
|
search: string;
|
|
530
537
|
paging: PAGING;
|
|
531
538
|
page_count: number;
|
|
@@ -545,14 +552,13 @@ declare const FleetIncidentManagementCostQuerySchema: z.ZodObject<{
|
|
|
545
552
|
}[];
|
|
546
553
|
include_master_data: YesNo;
|
|
547
554
|
date_format_id: string;
|
|
548
|
-
time_zone_id: string;
|
|
549
|
-
organisation_ids: string[];
|
|
550
555
|
vehicle_incident_ids: string[];
|
|
551
|
-
|
|
556
|
+
organisation_ids: string[];
|
|
552
557
|
incident_cost_ids: string[];
|
|
558
|
+
expense_name_ids: string[];
|
|
553
559
|
}, {
|
|
554
|
-
date_format_id: string;
|
|
555
560
|
time_zone_id: string;
|
|
561
|
+
date_format_id: string;
|
|
556
562
|
status?: Status[] | undefined;
|
|
557
563
|
search?: string | undefined;
|
|
558
564
|
paging?: PAGING | undefined;
|
|
@@ -572,10 +578,10 @@ declare const FleetIncidentManagementCostQuerySchema: z.ZodObject<{
|
|
|
572
578
|
direction: OrderBy;
|
|
573
579
|
}[] | undefined;
|
|
574
580
|
include_master_data?: YesNo | undefined;
|
|
575
|
-
organisation_ids?: string[] | undefined;
|
|
576
581
|
vehicle_incident_ids?: string[] | undefined;
|
|
577
|
-
|
|
582
|
+
organisation_ids?: string[] | undefined;
|
|
578
583
|
incident_cost_ids?: string[] | undefined;
|
|
584
|
+
expense_name_ids?: string[] | undefined;
|
|
579
585
|
}>;
|
|
580
586
|
type FleetIncidentManagementCostQueryDTO = z.infer<typeof FleetIncidentManagementCostQuerySchema>;
|
|
581
587
|
declare const toFleetIncidentManagementPayload: (row: FleetIncidentManagement) => FleetIncidentManagementDTO;
|
|
@@ -437,7 +437,7 @@ var FleetIncidentManagementSchema = z3.object({
|
|
|
437
437
|
insurance_settled_amount: doubleOptional("Insurance Settled Amount"),
|
|
438
438
|
insurance_policy_number: stringOptional("Insurance Policy Number", 0, 100),
|
|
439
439
|
insurance_company_name: stringOptional("Insurance Company Name", 0, 100),
|
|
440
|
-
insurance_contact_number: stringOptional("Insurance Contact Number", 0,
|
|
440
|
+
insurance_contact_number: stringOptional("Insurance Contact Number", 0, 100),
|
|
441
441
|
insurance_description: stringOptional("Insurance Description", 0, 2e3),
|
|
442
442
|
// Complaint Details
|
|
443
443
|
police_report_filed: enumMandatory("Police Report Filed", YesNo, "No" /* No */),
|
|
@@ -454,7 +454,9 @@ var FleetIncidentManagementSchema = z3.object({
|
|
|
454
454
|
0,
|
|
455
455
|
2e3
|
|
456
456
|
),
|
|
457
|
+
// Other
|
|
457
458
|
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
459
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone"),
|
|
458
460
|
FleetIncidentManagementFileSchema: nestedArrayOfObjectsOptional(
|
|
459
461
|
"FleetIncidentManagementFileSchema",
|
|
460
462
|
FleetIncidentManagementFileSchema,
|
|
@@ -543,7 +545,9 @@ var FleetIncidentManagementCostSchema = z3.object({
|
|
|
543
545
|
0,
|
|
544
546
|
2e3
|
|
545
547
|
),
|
|
546
|
-
|
|
548
|
+
// Other
|
|
549
|
+
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
550
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone")
|
|
547
551
|
});
|
|
548
552
|
var FleetIncidentManagementCostQuerySchema = BaseQuerySchema.extend({
|
|
549
553
|
incident_cost_ids: multi_select_optional("FleetIncidentManagementCost"),
|
|
@@ -601,6 +605,8 @@ var toFleetIncidentManagementPayload = (row) => ({
|
|
|
601
605
|
fleet_incident_severity_id: row.fleet_incident_severity_id || "",
|
|
602
606
|
fleet_insurance_claim_status_id: row.fleet_insurance_claim_status_id || "",
|
|
603
607
|
status: "Active" /* Active */,
|
|
608
|
+
time_zone_id: "",
|
|
609
|
+
// Needs to be provided manually
|
|
604
610
|
FleetIncidentManagementFileSchema: row.FleetIncidentManagementFile?.map((file) => ({
|
|
605
611
|
fleet_incident_management_file_id: file.fleet_incident_management_file_id ?? "",
|
|
606
612
|
usage_type: file.usage_type,
|
|
@@ -657,7 +663,9 @@ var newFleetIncidentManagementPayload = () => ({
|
|
|
657
663
|
legal_description: "",
|
|
658
664
|
involved_parties_description: "",
|
|
659
665
|
status: "Active" /* Active */,
|
|
660
|
-
FleetIncidentManagementFileSchema: []
|
|
666
|
+
FleetIncidentManagementFileSchema: [],
|
|
667
|
+
time_zone_id: ""
|
|
668
|
+
// Needs to be provided manually
|
|
661
669
|
});
|
|
662
670
|
var toFleetIncidentManagementCostPayload = (row) => ({
|
|
663
671
|
incident_cost_date: row.incident_cost_date || "",
|
|
@@ -666,7 +674,9 @@ var toFleetIncidentManagementCostPayload = (row) => ({
|
|
|
666
674
|
organisation_id: row.organisation_id || "",
|
|
667
675
|
vehicle_incident_id: row.vehicle_incident_id || "",
|
|
668
676
|
expense_name_id: row.expense_name_id || "",
|
|
669
|
-
status: "Active" /* Active
|
|
677
|
+
status: "Active" /* Active */,
|
|
678
|
+
time_zone_id: ""
|
|
679
|
+
// Needs to be provided manually
|
|
670
680
|
});
|
|
671
681
|
var newFleetIncidentManagementCostPayload = () => ({
|
|
672
682
|
organisation_id: "",
|
|
@@ -675,7 +685,9 @@ var newFleetIncidentManagementCostPayload = () => ({
|
|
|
675
685
|
incident_cost_date: "",
|
|
676
686
|
incident_cost_amount: 0,
|
|
677
687
|
incident_cost_description: "",
|
|
678
|
-
status: "Active" /* Active
|
|
688
|
+
status: "Active" /* Active */,
|
|
689
|
+
time_zone_id: ""
|
|
690
|
+
// Needs to be provided manually
|
|
679
691
|
});
|
|
680
692
|
var get_incident_file_presigned_url = async (data) => {
|
|
681
693
|
return apiPost(ENDPOINTS.incident_file_presigned_url, data);
|
|
@@ -2,8 +2,9 @@ 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-Bkq3GOUs.js';
|
|
6
6
|
import { FleetIncidentManagement } from '../incident_management/incident_management_service.js';
|
|
7
|
+
import { FleetServiceManagement } from '../service_management/fleet_service_management_service.js';
|
|
7
8
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
8
9
|
import '../../master/fleet/master_fleet_insurance_claim_status_service.js';
|
|
9
10
|
import '../../master/fleet/master_fleet_incident_severity_service.js';
|
|
@@ -46,6 +47,8 @@ interface FleetIssueManagement extends Record<string, unknown> {
|
|
|
46
47
|
vehicle_incident_id?: string;
|
|
47
48
|
FleetIncidentManagement?: FleetIncidentManagement;
|
|
48
49
|
inspection_id?: string;
|
|
50
|
+
service_management_id?: string;
|
|
51
|
+
FleetServiceManagement?: FleetServiceManagement;
|
|
49
52
|
job_card_id?: string;
|
|
50
53
|
FleetIssueManagementFile: FleetIssueManagementFile[];
|
|
51
54
|
_count?: {
|
|
@@ -135,7 +138,7 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
135
138
|
driver_id: z.ZodEffects<z.ZodString, string, string>;
|
|
136
139
|
vehicle_incident_id: z.ZodEffects<z.ZodString, string, string>;
|
|
137
140
|
inspection_id: z.ZodEffects<z.ZodString, string, string>;
|
|
138
|
-
|
|
141
|
+
service_management_id: z.ZodEffects<z.ZodString, string, string>;
|
|
139
142
|
issue_title: z.ZodEffects<z.ZodString, string, string>;
|
|
140
143
|
issue_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
141
144
|
issue_status: z.ZodType<IssueStatus, z.ZodTypeDef, IssueStatus>;
|
|
@@ -148,6 +151,7 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
148
151
|
due_odometer_reading: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
149
152
|
issue_source: z.ZodType<IssueSource, z.ZodTypeDef, IssueSource>;
|
|
150
153
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
154
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
151
155
|
FleetIssueManagementFileSchema: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
156
|
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
153
157
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
@@ -205,7 +209,8 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
205
209
|
driver_id: string;
|
|
206
210
|
vehicle_incident_id: string;
|
|
207
211
|
inspection_id: string;
|
|
208
|
-
|
|
212
|
+
service_management_id: string;
|
|
213
|
+
time_zone_id: string;
|
|
209
214
|
FleetIssueManagementFileSchema: {
|
|
210
215
|
vehicle_issue_id: string;
|
|
211
216
|
status: Status;
|
|
@@ -233,7 +238,8 @@ declare const FleetIssueManagementSchema: z.ZodObject<{
|
|
|
233
238
|
driver_id: string;
|
|
234
239
|
vehicle_incident_id: string;
|
|
235
240
|
inspection_id: string;
|
|
236
|
-
|
|
241
|
+
service_management_id: string;
|
|
242
|
+
time_zone_id: string;
|
|
237
243
|
issue_description?: string | undefined;
|
|
238
244
|
resolved_date?: string | undefined;
|
|
239
245
|
odometer_reading?: unknown;
|
|
@@ -292,7 +298,7 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
292
298
|
driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
293
299
|
vehicle_incident_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
294
300
|
inspection_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
295
|
-
|
|
301
|
+
service_management_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
296
302
|
issue_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof IssueStatus>, "many">>>;
|
|
297
303
|
issue_priority: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Priority>, "many">>>;
|
|
298
304
|
issue_severity: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof IssueSeverity>, "many">>>;
|
|
@@ -305,6 +311,7 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
305
311
|
issue_severity: IssueSeverity[];
|
|
306
312
|
issue_source: IssueSource[];
|
|
307
313
|
status: Status[];
|
|
314
|
+
time_zone_id: string;
|
|
308
315
|
search: string;
|
|
309
316
|
paging: PAGING;
|
|
310
317
|
page_count: number;
|
|
@@ -324,7 +331,6 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
324
331
|
}[];
|
|
325
332
|
include_master_data: YesNo;
|
|
326
333
|
date_format_id: string;
|
|
327
|
-
time_zone_id: string;
|
|
328
334
|
vehicle_issue_ids: string[];
|
|
329
335
|
organisation_ids: string[];
|
|
330
336
|
user_ids: string[];
|
|
@@ -332,12 +338,12 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
332
338
|
driver_ids: string[];
|
|
333
339
|
vehicle_incident_ids: string[];
|
|
334
340
|
inspection_ids: string[];
|
|
335
|
-
|
|
341
|
+
service_management_ids: string[];
|
|
336
342
|
from_date: string;
|
|
337
343
|
to_date: string;
|
|
338
344
|
}, {
|
|
339
|
-
date_format_id: string;
|
|
340
345
|
time_zone_id: string;
|
|
346
|
+
date_format_id: string;
|
|
341
347
|
from_date: string;
|
|
342
348
|
to_date: string;
|
|
343
349
|
issue_status?: IssueStatus[] | undefined;
|
|
@@ -370,7 +376,7 @@ declare const FleetIssueManagementQuerySchema: z.ZodObject<{
|
|
|
370
376
|
driver_ids?: string[] | undefined;
|
|
371
377
|
vehicle_incident_ids?: string[] | undefined;
|
|
372
378
|
inspection_ids?: string[] | undefined;
|
|
373
|
-
|
|
379
|
+
service_management_ids?: string[] | undefined;
|
|
374
380
|
}>;
|
|
375
381
|
type FleetIssueManagementQueryDTO = z.infer<typeof FleetIssueManagementQuerySchema>;
|
|
376
382
|
declare const FleetIssueManagementCommentSchema: z.ZodObject<{
|
|
@@ -429,6 +435,7 @@ declare const FleetIssueManagementCommentQuerySchema: z.ZodObject<{
|
|
|
429
435
|
vehicle_issue_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
430
436
|
}, "strip", z.ZodTypeAny, {
|
|
431
437
|
status: Status[];
|
|
438
|
+
time_zone_id: string;
|
|
432
439
|
search: string;
|
|
433
440
|
paging: PAGING;
|
|
434
441
|
page_count: number;
|
|
@@ -448,13 +455,12 @@ declare const FleetIssueManagementCommentQuerySchema: z.ZodObject<{
|
|
|
448
455
|
}[];
|
|
449
456
|
include_master_data: YesNo;
|
|
450
457
|
date_format_id: string;
|
|
451
|
-
time_zone_id: string;
|
|
452
458
|
vehicle_issue_ids: string[];
|
|
453
459
|
organisation_ids: string[];
|
|
454
460
|
vehicle_issue_comment_ids: string[];
|
|
455
461
|
}, {
|
|
456
|
-
date_format_id: string;
|
|
457
462
|
time_zone_id: string;
|
|
463
|
+
date_format_id: string;
|
|
458
464
|
status?: Status[] | undefined;
|
|
459
465
|
search?: string | undefined;
|
|
460
466
|
paging?: PAGING | undefined;
|
|
@@ -358,8 +358,8 @@ var FleetIssueManagementSchema = z3.object({
|
|
|
358
358
|
// ✅ Single-Selection -> FleetIncidentManagement
|
|
359
359
|
inspection_id: single_select_optional("FleetInspection"),
|
|
360
360
|
// ✅ Single-Selection -> FleetInspection
|
|
361
|
-
|
|
362
|
-
// ✅ Single-Selection ->
|
|
361
|
+
service_management_id: single_select_optional("FleetServiceManagement"),
|
|
362
|
+
// ✅ Single-Selection -> FleetServiceManagement
|
|
363
363
|
// Issue Details
|
|
364
364
|
issue_title: stringMandatory("Issue Title", 1, 100),
|
|
365
365
|
issue_description: stringOptional("Issue Description", 0, 2e3),
|
|
@@ -380,7 +380,9 @@ var FleetIssueManagementSchema = z3.object({
|
|
|
380
380
|
due_date: dateOptional("Due Date"),
|
|
381
381
|
due_odometer_reading: numberOptional("Due Odometer Reading"),
|
|
382
382
|
issue_source: enumMandatory("Issue Source", IssueSource, "Direct" /* Direct */),
|
|
383
|
+
// Other
|
|
383
384
|
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
385
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone"),
|
|
384
386
|
FleetIssueManagementFileSchema: nestedArrayOfObjectsOptional(
|
|
385
387
|
"FleetIssueManagementFileSchema",
|
|
386
388
|
FleetIssueManagementFileSchema,
|
|
@@ -402,8 +404,8 @@ var FleetIssueManagementQuerySchema = BaseQuerySchema.extend({
|
|
|
402
404
|
// ✅ Multi-Selection -> FleetIncidentManagement
|
|
403
405
|
inspection_ids: multi_select_optional("FleetInspection"),
|
|
404
406
|
// ✅ Multi-Selection -> FleetInspection
|
|
405
|
-
|
|
406
|
-
// ✅ Multi-Selection ->
|
|
407
|
+
service_management_ids: multi_select_optional("FleetServiceManagement"),
|
|
408
|
+
// ✅ Multi-Selection -> FleetServiceManagement
|
|
407
409
|
issue_status: enumArrayOptional("Issue Status", IssueStatus),
|
|
408
410
|
issue_priority: enumArrayOptional("Issue Priority", Priority),
|
|
409
411
|
issue_severity: enumArrayOptional("Issue Severity", IssueSeverity),
|
|
@@ -450,8 +452,10 @@ var toFleetIssueManagementPayload = (row) => ({
|
|
|
450
452
|
driver_id: row.driver_id || "",
|
|
451
453
|
vehicle_incident_id: row.vehicle_incident_id || "",
|
|
452
454
|
inspection_id: row.inspection_id || "",
|
|
453
|
-
|
|
455
|
+
service_management_id: row.service_management_id || "",
|
|
454
456
|
status: "Active" /* Active */,
|
|
457
|
+
time_zone_id: "",
|
|
458
|
+
// Needs to be provided manually
|
|
455
459
|
FleetIssueManagementFileSchema: row.FleetIssueManagementFile?.map((file) => ({
|
|
456
460
|
fleet_issue_management_file_id: file.fleet_issue_management_file_id ?? "",
|
|
457
461
|
usage_type: file.usage_type,
|
|
@@ -487,8 +491,10 @@ var newFleetIssueManagementPayload = () => ({
|
|
|
487
491
|
driver_id: "",
|
|
488
492
|
vehicle_incident_id: "",
|
|
489
493
|
inspection_id: "",
|
|
490
|
-
|
|
494
|
+
service_management_id: "",
|
|
491
495
|
status: "Active" /* Active */,
|
|
496
|
+
time_zone_id: "",
|
|
497
|
+
// Needs to be provided manually
|
|
492
498
|
FleetIssueManagementFileSchema: []
|
|
493
499
|
});
|
|
494
500
|
var toFleetIssueManagementCommentPayload = (row) => ({
|