vms-nest-prisma-api-document 226.0.0 → 228.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 +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 +21 -21
- package/dist/services/fleet/bus_mangement/calender.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/master_route.d.ts +41 -41
- package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/student.d.ts +25 -25
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +1 -1
- package/dist/services/fleet/incident_management/incident_management_service.d.ts +1 -1
- package/dist/services/fleet/incident_management/incident_management_service.js +2 -0
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +4 -2
- package/dist/services/fleet/issue_management/issue_management_service.js +9 -9
- package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +21 -21
- 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_fuel_station.js +11 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service.js +29 -30
- 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 +12 -2
- 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 +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 +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 +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_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 +3 -3
- 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/faq_service.d.ts +1 -1
- package/dist/{user_organisation_service-DGGuB4hh.d.ts → user_organisation_service-4bBzFQBd.d.ts} +87 -66
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnrollmentStatus, TransportPlanType, Status, YesNo, StudentLeaveType, ApprovalStatus, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, O as OrganisationBranch } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, O as OrganisationBranch } from '../../../user_organisation_service-4bBzFQBd.js';
|
|
5
5
|
import { MasterClass } from '../../master/bus/master_class_service.js';
|
|
6
6
|
import { MasterProgram } from '../../master/bus/master_program_service.js';
|
|
7
7
|
import { MasterSection } from '../../master/bus/master_section_service.js';
|
|
@@ -304,7 +304,6 @@ declare const StudentQuerySchema: z.ZodObject<{
|
|
|
304
304
|
time_zone_id: string;
|
|
305
305
|
organisation_ids: string[];
|
|
306
306
|
organisation_branch_ids: string[];
|
|
307
|
-
student_ids: string[];
|
|
308
307
|
class_ids: string[];
|
|
309
308
|
program_ids: string[];
|
|
310
309
|
section_ids: string[];
|
|
@@ -313,6 +312,7 @@ declare const StudentQuerySchema: z.ZodObject<{
|
|
|
313
312
|
year_ids: string[];
|
|
314
313
|
enrollment_status: EnrollmentStatus[];
|
|
315
314
|
transport_plan_type: TransportPlanType[];
|
|
315
|
+
student_ids: string[];
|
|
316
316
|
pickup_route_ids: string[];
|
|
317
317
|
drop_route_ids: string[];
|
|
318
318
|
pickup_route_stop_ids: string[];
|
|
@@ -343,7 +343,6 @@ declare const StudentQuerySchema: z.ZodObject<{
|
|
|
343
343
|
include_master_data?: YesNo | undefined;
|
|
344
344
|
organisation_ids?: string[] | undefined;
|
|
345
345
|
organisation_branch_ids?: string[] | undefined;
|
|
346
|
-
student_ids?: string[] | undefined;
|
|
347
346
|
class_ids?: string[] | undefined;
|
|
348
347
|
program_ids?: string[] | undefined;
|
|
349
348
|
section_ids?: string[] | undefined;
|
|
@@ -352,6 +351,7 @@ declare const StudentQuerySchema: z.ZodObject<{
|
|
|
352
351
|
year_ids?: string[] | undefined;
|
|
353
352
|
enrollment_status?: EnrollmentStatus[] | undefined;
|
|
354
353
|
transport_plan_type?: TransportPlanType[] | undefined;
|
|
354
|
+
student_ids?: string[] | undefined;
|
|
355
355
|
pickup_route_ids?: string[] | undefined;
|
|
356
356
|
drop_route_ids?: string[] | undefined;
|
|
357
357
|
pickup_route_stop_ids?: string[] | undefined;
|
|
@@ -464,12 +464,6 @@ declare const StudentAddressSchema: z.ZodObject<{
|
|
|
464
464
|
notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
465
465
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
-
status: Status;
|
|
468
|
-
organisation_id: string;
|
|
469
|
-
organisation_branch_id: string;
|
|
470
|
-
student_id: string;
|
|
471
|
-
country_code: string;
|
|
472
|
-
google_location: string;
|
|
473
467
|
address_line1: string;
|
|
474
468
|
address_line2: string;
|
|
475
469
|
locality_landmark: string;
|
|
@@ -479,21 +473,23 @@ declare const StudentAddressSchema: z.ZodObject<{
|
|
|
479
473
|
state_province_region: string;
|
|
480
474
|
postal_code: string;
|
|
481
475
|
country: string;
|
|
476
|
+
country_code: string;
|
|
477
|
+
google_location: string;
|
|
478
|
+
status: Status;
|
|
479
|
+
organisation_id: string;
|
|
480
|
+
organisation_branch_id: string;
|
|
482
481
|
is_default: YesNo;
|
|
483
482
|
notes: string;
|
|
483
|
+
student_id: string;
|
|
484
484
|
latitude?: number | undefined;
|
|
485
485
|
longitude?: number | undefined;
|
|
486
486
|
}, {
|
|
487
|
+
address_line1: string;
|
|
487
488
|
status: Status;
|
|
488
489
|
organisation_id: string;
|
|
489
490
|
organisation_branch_id: string;
|
|
490
|
-
student_id: string;
|
|
491
|
-
address_line1: string;
|
|
492
491
|
is_default: YesNo;
|
|
493
|
-
|
|
494
|
-
latitude?: unknown;
|
|
495
|
-
longitude?: unknown;
|
|
496
|
-
google_location?: string | undefined;
|
|
492
|
+
student_id: string;
|
|
497
493
|
address_line2?: string | undefined;
|
|
498
494
|
locality_landmark?: string | undefined;
|
|
499
495
|
neighborhood?: string | undefined;
|
|
@@ -502,6 +498,10 @@ declare const StudentAddressSchema: z.ZodObject<{
|
|
|
502
498
|
state_province_region?: string | undefined;
|
|
503
499
|
postal_code?: string | undefined;
|
|
504
500
|
country?: string | undefined;
|
|
501
|
+
country_code?: string | undefined;
|
|
502
|
+
google_location?: string | undefined;
|
|
503
|
+
latitude?: unknown;
|
|
504
|
+
longitude?: unknown;
|
|
505
505
|
notes?: string | undefined;
|
|
506
506
|
}>;
|
|
507
507
|
type StudentAddressDTO = z.infer<typeof StudentAddressSchema>;
|
|
@@ -574,9 +574,9 @@ declare const StudentAddressQuerySchema: z.ZodObject<{
|
|
|
574
574
|
time_zone_id: string;
|
|
575
575
|
organisation_ids: string[];
|
|
576
576
|
organisation_branch_ids: string[];
|
|
577
|
-
student_ids: string[];
|
|
578
|
-
is_default: YesNo[];
|
|
579
577
|
bus_stop_ids: string[];
|
|
578
|
+
is_default: YesNo[];
|
|
579
|
+
student_ids: string[];
|
|
580
580
|
student_address_ids: string[];
|
|
581
581
|
}, {
|
|
582
582
|
date_format_id: string;
|
|
@@ -602,9 +602,9 @@ declare const StudentAddressQuerySchema: z.ZodObject<{
|
|
|
602
602
|
include_master_data?: YesNo | undefined;
|
|
603
603
|
organisation_ids?: string[] | undefined;
|
|
604
604
|
organisation_branch_ids?: string[] | undefined;
|
|
605
|
-
student_ids?: string[] | undefined;
|
|
606
|
-
is_default?: YesNo[] | undefined;
|
|
607
605
|
bus_stop_ids?: string[] | undefined;
|
|
606
|
+
is_default?: YesNo[] | undefined;
|
|
607
|
+
student_ids?: string[] | undefined;
|
|
608
608
|
student_address_ids?: string[] | undefined;
|
|
609
609
|
}>;
|
|
610
610
|
type StudentAddressQueryDTO = z.infer<typeof StudentAddressQuerySchema>;
|
|
@@ -627,13 +627,13 @@ declare const StudentGuardianLinkSchema: z.ZodObject<{
|
|
|
627
627
|
status: Status;
|
|
628
628
|
organisation_id: string;
|
|
629
629
|
organisation_branch_id: string;
|
|
630
|
-
student_id: string;
|
|
631
630
|
email: string;
|
|
632
631
|
mobile: string;
|
|
633
632
|
notes: string;
|
|
634
633
|
is_primary: YesNo;
|
|
635
634
|
alternative_mobile: string;
|
|
636
635
|
relationship_id: string;
|
|
636
|
+
student_id: string;
|
|
637
637
|
photo_url: string;
|
|
638
638
|
photo_key: string;
|
|
639
639
|
photo_name: string;
|
|
@@ -642,10 +642,10 @@ declare const StudentGuardianLinkSchema: z.ZodObject<{
|
|
|
642
642
|
status: Status;
|
|
643
643
|
organisation_id: string;
|
|
644
644
|
organisation_branch_id: string;
|
|
645
|
-
student_id: string;
|
|
646
645
|
mobile: string;
|
|
647
646
|
is_primary: YesNo;
|
|
648
647
|
relationship_id: string;
|
|
648
|
+
student_id: string;
|
|
649
649
|
full_name: string;
|
|
650
650
|
email?: string | undefined;
|
|
651
651
|
notes?: string | undefined;
|
|
@@ -972,8 +972,8 @@ declare const StudentLeaveRequestQuerySchema: z.ZodObject<{
|
|
|
972
972
|
time_zone_id: string;
|
|
973
973
|
organisation_ids: string[];
|
|
974
974
|
organisation_branch_ids: string[];
|
|
975
|
-
student_ids: string[];
|
|
976
975
|
approval_status: ApprovalStatus[];
|
|
976
|
+
student_ids: string[];
|
|
977
977
|
student_leave_request_ids: string[];
|
|
978
978
|
}, {
|
|
979
979
|
date_format_id: string;
|
|
@@ -999,8 +999,8 @@ declare const StudentLeaveRequestQuerySchema: z.ZodObject<{
|
|
|
999
999
|
include_master_data?: YesNo | undefined;
|
|
1000
1000
|
organisation_ids?: string[] | undefined;
|
|
1001
1001
|
organisation_branch_ids?: string[] | undefined;
|
|
1002
|
-
student_ids?: string[] | undefined;
|
|
1003
1002
|
approval_status?: ApprovalStatus[] | undefined;
|
|
1003
|
+
student_ids?: string[] | undefined;
|
|
1004
1004
|
student_leave_request_ids?: string[] | undefined;
|
|
1005
1005
|
}>;
|
|
1006
1006
|
type StudentLeaveRequestQueryDTO = z.infer<typeof StudentLeaveRequestQuerySchema>;
|
|
@@ -1114,8 +1114,8 @@ declare const StudentStopChangeRequestQuerySchema: z.ZodObject<{
|
|
|
1114
1114
|
time_zone_id: string;
|
|
1115
1115
|
organisation_ids: string[];
|
|
1116
1116
|
organisation_branch_ids: string[];
|
|
1117
|
-
student_ids: string[];
|
|
1118
1117
|
approval_status: ApprovalStatus[];
|
|
1118
|
+
student_ids: string[];
|
|
1119
1119
|
student_address_ids: string[];
|
|
1120
1120
|
student_stop_change_request_ids: string[];
|
|
1121
1121
|
}, {
|
|
@@ -1142,8 +1142,8 @@ declare const StudentStopChangeRequestQuerySchema: z.ZodObject<{
|
|
|
1142
1142
|
include_master_data?: YesNo | undefined;
|
|
1143
1143
|
organisation_ids?: string[] | undefined;
|
|
1144
1144
|
organisation_branch_ids?: string[] | undefined;
|
|
1145
|
-
student_ids?: string[] | undefined;
|
|
1146
1145
|
approval_status?: ApprovalStatus[] | undefined;
|
|
1146
|
+
student_ids?: string[] | undefined;
|
|
1147
1147
|
student_address_ids?: string[] | undefined;
|
|
1148
1148
|
student_stop_change_request_ids?: string[] | undefined;
|
|
1149
1149
|
}>;
|
|
@@ -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, M as MasterVehicle, b as MasterDriver, c as MasterDevice } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice } from '../../../user_organisation_service-4bBzFQBd.js';
|
|
5
5
|
import { FuelConsumptionMonthly } from '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
6
6
|
import '../../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -2,7 +2,7 @@ import { GPSFuelApproveStatus, RefillEntrySource, RefillMethod, PaymentMode, Pay
|
|
|
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 { d as MasterMainLandmark, U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, F as FleetVendor, e as FleetVendorFuelStation, f as MasterVehicleFuelType, g as MasterVehicleFuelUnit } from '../../../user_organisation_service-
|
|
5
|
+
import { d as MasterMainLandmark, U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, F as FleetVendor, e as FleetVendorFuelStation, f as MasterVehicleFuelType, g as MasterVehicleFuelUnit } from '../../../user_organisation_service-4bBzFQBd.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
8
8
|
interface FleetFuelRefill extends Record<string, unknown> {
|
|
@@ -2,7 +2,7 @@ import { GPSFuelApproveStatus, RefillEntrySource, Status, FileType, PAGING, Load
|
|
|
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 { d as MasterMainLandmark, U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, f as MasterVehicleFuelType, g as MasterVehicleFuelUnit } from '../../../user_organisation_service-
|
|
5
|
+
import { d as MasterMainLandmark, U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, f as MasterVehicleFuelType, g as MasterVehicleFuelUnit } from '../../../user_organisation_service-4bBzFQBd.js';
|
|
6
6
|
import { MasterVehicleFuelRemovalReason } from '../../master/vehicle/master_vehicle_fuel_removal_reason_service.js';
|
|
7
7
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
8
8
|
|
|
@@ -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-4bBzFQBd.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';
|
|
@@ -618,6 +618,8 @@ var toFleetIncidentManagementPayload = (row) => ({
|
|
|
618
618
|
file_size: file.file_size || 0,
|
|
619
619
|
file_metadata: file.file_metadata || {},
|
|
620
620
|
status: file.status,
|
|
621
|
+
added_date_time: file.added_date_time,
|
|
622
|
+
modified_date_time: file.modified_date_time,
|
|
621
623
|
organisation_id: file.organisation_id || "",
|
|
622
624
|
vehicle_incident_id: file.vehicle_incident_id || ""
|
|
623
625
|
})) ?? []
|
|
@@ -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-4bBzFQBd.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';
|
|
@@ -51,6 +51,8 @@ interface FleetIssueManagement extends Record<string, unknown> {
|
|
|
51
51
|
FleetServiceManagement?: FleetServiceManagement;
|
|
52
52
|
job_card_id?: string;
|
|
53
53
|
FleetIssueManagementFile: FleetIssueManagementFile[];
|
|
54
|
+
FleetIssueManagementComment?: FleetIssueManagementComment[];
|
|
55
|
+
FleetIssueManagementHistory?: FleetIssueManagementHistory[];
|
|
54
56
|
_count?: {
|
|
55
57
|
FleetIssueManagementComment: number;
|
|
56
58
|
FleetIssueManagementFile: number;
|
|
@@ -86,7 +88,7 @@ interface FleetIssueManagementComment extends Record<string, unknown> {
|
|
|
86
88
|
_count?: {};
|
|
87
89
|
}
|
|
88
90
|
interface FleetIssueManagementFile extends BaseCommonFile {
|
|
89
|
-
|
|
91
|
+
fleet_issue_management_file_id: string;
|
|
90
92
|
organisation_id: string;
|
|
91
93
|
UserOrganisation?: UserOrganisation;
|
|
92
94
|
vehicle_issue_id: string;
|
|
@@ -437,7 +437,7 @@ var toFleetIssueManagementPayload = (row) => ({
|
|
|
437
437
|
issue_title: row.issue_title || "",
|
|
438
438
|
issue_description: row.issue_description || "",
|
|
439
439
|
issue_status: row.issue_status || "Open" /* Open */,
|
|
440
|
-
issue_priority: row.issue_priority || "
|
|
440
|
+
issue_priority: row.issue_priority || "NoPriority" /* NoPriority */,
|
|
441
441
|
issue_severity: row.issue_severity || "Minor" /* Minor */,
|
|
442
442
|
report_date: row.report_date || "",
|
|
443
443
|
resolved_date: row.resolved_date || "",
|
|
@@ -458,14 +458,14 @@ var toFleetIssueManagementPayload = (row) => ({
|
|
|
458
458
|
// Needs to be provided manually
|
|
459
459
|
FleetIssueManagementFileSchema: row.FleetIssueManagementFile?.map((file) => ({
|
|
460
460
|
fleet_issue_management_file_id: file.fleet_issue_management_file_id ?? "",
|
|
461
|
-
usage_type: file.usage_type,
|
|
462
|
-
file_type: file.file_type
|
|
463
|
-
file_url: file.file_url || "",
|
|
464
|
-
file_key: file.file_key || "",
|
|
465
|
-
file_name: file.file_name || "",
|
|
466
|
-
file_description: file.file_description || "",
|
|
461
|
+
usage_type: (file.usage_type || "").trim(),
|
|
462
|
+
file_type: file.file_type || "Image" /* Image */,
|
|
463
|
+
file_url: (file.file_url || "").trim(),
|
|
464
|
+
file_key: (file.file_key || "").trim(),
|
|
465
|
+
file_name: (file.file_name || "").trim(),
|
|
466
|
+
file_description: (file.file_description || "").trim(),
|
|
467
467
|
file_size: file.file_size || 0,
|
|
468
|
-
file_metadata: file.file_metadata
|
|
468
|
+
file_metadata: file.file_metadata || {},
|
|
469
469
|
status: file.status,
|
|
470
470
|
added_date_time: file.added_date_time,
|
|
471
471
|
modified_date_time: file.modified_date_time,
|
|
@@ -477,7 +477,7 @@ var newFleetIssueManagementPayload = () => ({
|
|
|
477
477
|
issue_title: "",
|
|
478
478
|
issue_description: "",
|
|
479
479
|
issue_status: "Open" /* Open */,
|
|
480
|
-
issue_priority: "
|
|
480
|
+
issue_priority: "NoPriority" /* NoPriority */,
|
|
481
481
|
issue_severity: "Minor" /* Minor */,
|
|
482
482
|
report_date: "",
|
|
483
483
|
resolved_date: "",
|
|
@@ -2,7 +2,7 @@ import { ServiceStatus, ServiceType, YesNo, PaymentStatus, Status, FileType, PAG
|
|
|
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, F as FleetVendor, h as FleetVendorServiceCenter } from '../../../user_organisation_service-
|
|
5
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, F as FleetVendor, h as FleetVendorServiceCenter } from '../../../user_organisation_service-4bBzFQBd.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
8
8
|
interface FleetServiceManagement extends Record<string, unknown> {
|
|
@@ -85,7 +85,6 @@ declare const FleetServiceManagementFileSchema: z.ZodObject<{
|
|
|
85
85
|
service_management_id: z.ZodEffects<z.ZodString, string, string>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
status: Status;
|
|
88
|
-
organisation_id: string;
|
|
89
88
|
service_management_id: string;
|
|
90
89
|
usage_type: string;
|
|
91
90
|
file_type: FileType;
|
|
@@ -95,12 +94,13 @@ declare const FleetServiceManagementFileSchema: z.ZodObject<{
|
|
|
95
94
|
file_description: string;
|
|
96
95
|
file_size: number;
|
|
97
96
|
file_metadata: Record<string, any>;
|
|
97
|
+
organisation_id: string;
|
|
98
98
|
}, {
|
|
99
99
|
status: Status;
|
|
100
|
-
organisation_id: string;
|
|
101
100
|
service_management_id: string;
|
|
102
101
|
usage_type: string;
|
|
103
102
|
file_type: FileType;
|
|
103
|
+
organisation_id: string;
|
|
104
104
|
file_url?: string | undefined;
|
|
105
105
|
file_key?: string | undefined;
|
|
106
106
|
file_name?: string | undefined;
|
|
@@ -156,7 +156,6 @@ declare const FleetServiceManagementSchema: z.ZodObject<{
|
|
|
156
156
|
service_management_id: z.ZodEffects<z.ZodString, string, string>;
|
|
157
157
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
158
158
|
status: Status;
|
|
159
|
-
organisation_id: string;
|
|
160
159
|
service_management_id: string;
|
|
161
160
|
usage_type: string;
|
|
162
161
|
file_type: FileType;
|
|
@@ -166,12 +165,13 @@ declare const FleetServiceManagementSchema: z.ZodObject<{
|
|
|
166
165
|
file_description: string;
|
|
167
166
|
file_size: number;
|
|
168
167
|
file_metadata: Record<string, any>;
|
|
168
|
+
organisation_id: string;
|
|
169
169
|
}, {
|
|
170
170
|
status: Status;
|
|
171
|
-
organisation_id: string;
|
|
172
171
|
service_management_id: string;
|
|
173
172
|
usage_type: string;
|
|
174
173
|
file_type: FileType;
|
|
174
|
+
organisation_id: string;
|
|
175
175
|
file_url?: string | undefined;
|
|
176
176
|
file_key?: string | undefined;
|
|
177
177
|
file_name?: string | undefined;
|
|
@@ -180,15 +180,15 @@ declare const FleetServiceManagementSchema: z.ZodObject<{
|
|
|
180
180
|
file_metadata?: Record<string, any> | undefined;
|
|
181
181
|
}>, "many">>>;
|
|
182
182
|
}, "strip", z.ZodTypeAny, {
|
|
183
|
-
odometer_reading: number;
|
|
184
183
|
status: Status;
|
|
185
184
|
organisation_id: string;
|
|
186
|
-
user_id: string;
|
|
187
|
-
vehicle_id: string;
|
|
188
185
|
driver_id: string;
|
|
186
|
+
vehicle_id: string;
|
|
187
|
+
user_id: string;
|
|
189
188
|
service_center_id: string;
|
|
190
189
|
vendor_id: string;
|
|
191
190
|
rating: number;
|
|
191
|
+
odometer_reading: number;
|
|
192
192
|
service_start_date: string;
|
|
193
193
|
service_status: ServiceStatus;
|
|
194
194
|
service_type: ServiceType;
|
|
@@ -206,7 +206,6 @@ declare const FleetServiceManagementSchema: z.ZodObject<{
|
|
|
206
206
|
next_service_schedule_date: string;
|
|
207
207
|
FleetServiceManagementFileSchema: {
|
|
208
208
|
status: Status;
|
|
209
|
-
organisation_id: string;
|
|
210
209
|
service_management_id: string;
|
|
211
210
|
usage_type: string;
|
|
212
211
|
file_type: FileType;
|
|
@@ -216,6 +215,7 @@ declare const FleetServiceManagementSchema: z.ZodObject<{
|
|
|
216
215
|
file_description: string;
|
|
217
216
|
file_size: number;
|
|
218
217
|
file_metadata: Record<string, any>;
|
|
218
|
+
organisation_id: string;
|
|
219
219
|
}[];
|
|
220
220
|
fuel?: number | undefined;
|
|
221
221
|
estimated_labor_cost?: number | undefined;
|
|
@@ -227,9 +227,9 @@ declare const FleetServiceManagementSchema: z.ZodObject<{
|
|
|
227
227
|
}, {
|
|
228
228
|
status: Status;
|
|
229
229
|
organisation_id: string;
|
|
230
|
-
user_id: string;
|
|
231
|
-
vehicle_id: string;
|
|
232
230
|
driver_id: string;
|
|
231
|
+
vehicle_id: string;
|
|
232
|
+
user_id: string;
|
|
233
233
|
service_center_id: string;
|
|
234
234
|
vendor_id: string;
|
|
235
235
|
service_status: ServiceStatus;
|
|
@@ -237,8 +237,8 @@ declare const FleetServiceManagementSchema: z.ZodObject<{
|
|
|
237
237
|
service_date: string;
|
|
238
238
|
is_inhouse_service: YesNo;
|
|
239
239
|
payment_status: PaymentStatus;
|
|
240
|
-
odometer_reading?: unknown;
|
|
241
240
|
rating?: unknown;
|
|
241
|
+
odometer_reading?: unknown;
|
|
242
242
|
fuel?: unknown;
|
|
243
243
|
service_start_date?: string | undefined;
|
|
244
244
|
service_complete_date?: string | undefined;
|
|
@@ -258,10 +258,10 @@ declare const FleetServiceManagementSchema: z.ZodObject<{
|
|
|
258
258
|
next_service_schedule_date?: string | undefined;
|
|
259
259
|
FleetServiceManagementFileSchema?: {
|
|
260
260
|
status: Status;
|
|
261
|
-
organisation_id: string;
|
|
262
261
|
service_management_id: string;
|
|
263
262
|
usage_type: string;
|
|
264
263
|
file_type: FileType;
|
|
264
|
+
organisation_id: string;
|
|
265
265
|
file_url?: string | undefined;
|
|
266
266
|
file_key?: string | undefined;
|
|
267
267
|
file_name?: string | undefined;
|
|
@@ -317,7 +317,6 @@ declare const FleetServiceManagementQuerySchema: z.ZodObject<{
|
|
|
317
317
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
318
318
|
}, "strip", z.ZodTypeAny, {
|
|
319
319
|
status: Status[];
|
|
320
|
-
time_zone_id: string;
|
|
321
320
|
search: string;
|
|
322
321
|
paging: PAGING;
|
|
323
322
|
page_count: number;
|
|
@@ -337,22 +336,23 @@ declare const FleetServiceManagementQuerySchema: z.ZodObject<{
|
|
|
337
336
|
}[];
|
|
338
337
|
include_master_data: YesNo;
|
|
339
338
|
date_format_id: string;
|
|
339
|
+
time_zone_id: string;
|
|
340
|
+
service_management_ids: string[];
|
|
340
341
|
organisation_ids: string[];
|
|
341
|
-
user_ids: string[];
|
|
342
342
|
vehicle_ids: string[];
|
|
343
343
|
driver_ids: string[];
|
|
344
|
-
|
|
345
|
-
from_date: string;
|
|
346
|
-
to_date: string;
|
|
344
|
+
user_ids: string[];
|
|
347
345
|
vendor_ids: string[];
|
|
348
346
|
service_center_ids: string[];
|
|
349
347
|
service_status: ServiceStatus[];
|
|
350
348
|
service_type: ServiceType[];
|
|
351
349
|
is_inhouse_service: YesNo[];
|
|
352
350
|
payment_status: PaymentStatus[];
|
|
351
|
+
from_date: string;
|
|
352
|
+
to_date: string;
|
|
353
353
|
}, {
|
|
354
|
-
time_zone_id: string;
|
|
355
354
|
date_format_id: string;
|
|
355
|
+
time_zone_id: string;
|
|
356
356
|
from_date: string;
|
|
357
357
|
to_date: string;
|
|
358
358
|
status?: Status[] | undefined;
|
|
@@ -374,11 +374,11 @@ declare const FleetServiceManagementQuerySchema: z.ZodObject<{
|
|
|
374
374
|
direction: OrderBy;
|
|
375
375
|
}[] | undefined;
|
|
376
376
|
include_master_data?: YesNo | undefined;
|
|
377
|
+
service_management_ids?: string[] | undefined;
|
|
377
378
|
organisation_ids?: string[] | undefined;
|
|
378
|
-
user_ids?: string[] | undefined;
|
|
379
379
|
vehicle_ids?: string[] | undefined;
|
|
380
380
|
driver_ids?: string[] | undefined;
|
|
381
|
-
|
|
381
|
+
user_ids?: string[] | undefined;
|
|
382
382
|
vendor_ids?: string[] | undefined;
|
|
383
383
|
service_center_ids?: string[] | undefined;
|
|
384
384
|
service_status?: ServiceStatus[] | undefined;
|
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
import { FleetServiceManagement } from './fleet_service_management_service.js';
|
|
5
5
|
import { MasterFleetServiceTask } from '../../master/fleet/master_fleet_service_task_service.js';
|
|
6
6
|
import '../../../zod_utils/zod_base_schema.js';
|
|
7
|
-
import '../../../user_organisation_service-
|
|
7
|
+
import '../../../user_organisation_service-4bBzFQBd.js';
|
|
8
8
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
9
9
|
|
|
10
10
|
interface FleetServiceManagementTask extends Record<string, unknown> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { hZ as FleetFuelStationRateDTO, h$ as FleetFuelStationRateQueryDTO, h_ as FleetFuelStationRateQuerySchema, hY as FleetFuelStationRateSchema, e as FleetVendorFuelStation, hV as FleetVendorFuelStationDTO, hX as FleetVendorFuelStationQueryDTO, hW as FleetVendorFuelStationQuerySchema, hU as FleetVendorFuelStationSchema, hT as FleetVendorFuelStationSimple, i3 as createFleetVendorFuelStation, i5 as deleteFleetVendorFuelStation, i2 as findFleetVendorFuelStation, i6 as getFleetVendorFuelStationCacheSimple, i1 as newFleetVendorFuelStationPayload, i0 as toFleetVendorFuelStationPayload, i4 as updateFleetVendorFuelStation } from '../../../user_organisation_service-4bBzFQBd.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -9,6 +9,10 @@ var getAxiosInstance = () => {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
// src/core/apiCall.ts
|
|
12
|
+
var apiGet = async (url, params) => {
|
|
13
|
+
const response = await getAxiosInstance().get(url, { params });
|
|
14
|
+
return response.data;
|
|
15
|
+
};
|
|
12
16
|
var apiPost = async (url, data) => {
|
|
13
17
|
const response = await getAxiosInstance().post(url, data);
|
|
14
18
|
return response.data;
|
|
@@ -308,7 +312,9 @@ var ENDPOINTS = {
|
|
|
308
312
|
find: `${URL}/search`,
|
|
309
313
|
create: `${URL}`,
|
|
310
314
|
update: (id) => `${URL}/${id}`,
|
|
311
|
-
delete: (id) => `${URL}/${id}
|
|
315
|
+
delete: (id) => `${URL}/${id}`,
|
|
316
|
+
// Cache
|
|
317
|
+
cache_simple: (organisation_id) => `${URL}/cache_simple/${organisation_id}`
|
|
312
318
|
};
|
|
313
319
|
var FleetVendorFuelStationSchema = z3.object({
|
|
314
320
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
@@ -492,6 +498,9 @@ var updateFleetVendorFuelStation = async (id, data) => {
|
|
|
492
498
|
var deleteFleetVendorFuelStation = async (id) => {
|
|
493
499
|
return apiDelete(ENDPOINTS.delete(id));
|
|
494
500
|
};
|
|
501
|
+
var getFleetVendorFuelStationCacheSimple = async (organisation_id) => {
|
|
502
|
+
return apiGet(ENDPOINTS.cache_simple(organisation_id));
|
|
503
|
+
};
|
|
495
504
|
export {
|
|
496
505
|
FleetFuelStationRateQuerySchema,
|
|
497
506
|
FleetFuelStationRateSchema,
|
|
@@ -500,6 +509,7 @@ export {
|
|
|
500
509
|
createFleetVendorFuelStation,
|
|
501
510
|
deleteFleetVendorFuelStation,
|
|
502
511
|
findFleetVendorFuelStation,
|
|
512
|
+
getFleetVendorFuelStationCacheSimple,
|
|
503
513
|
newFleetVendorFuelStationPayload,
|
|
504
514
|
toFleetVendorFuelStationPayload,
|
|
505
515
|
updateFleetVendorFuelStation
|
|
@@ -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 { F as FleetVendor,
|
|
5
|
+
export { F as FleetVendor, ia as FleetVendorAddress, ip as FleetVendorAddressDTO, ir as FleetVendorAddressQueryDTO, iq as FleetVendorAddressQuerySchema, io as FleetVendorAddressSchema, ib as FleetVendorBankAccount, it as FleetVendorBankAccountDTO, iv as FleetVendorBankAccountQueryDTO, iu as FleetVendorBankAccountQuerySchema, is as FleetVendorBankAccountSchema, ic as FleetVendorContactPersons, iz as FleetVendorContactPersonsDTO, ix as FleetVendorContactPersonsLogoDTO, iw as FleetVendorContactPersonsLogoSchema, iB as FleetVendorContactPersonsQueryDTO, iA as FleetVendorContactPersonsQuerySchema, iy as FleetVendorContactPersonsSchema, ik as FleetVendorDTO, ie as FleetVendorDocument, iJ as FleetVendorDocumentDTO, ig as FleetVendorDocumentFile, iH as FleetVendorDocumentFileDTO, iG as FleetVendorDocumentFileSchema, iL as FleetVendorDocumentQueryDTO, iK as FleetVendorDocumentQuerySchema, iI as FleetVendorDocumentSchema, ii as FleetVendorLogoDTO, ih as FleetVendorLogoSchema, im as FleetVendorQueryDTO, il as FleetVendorQuerySchema, id as FleetVendorReview, iD as FleetVendorReviewDTO, iF as FleetVendorReviewQueryDTO, iE as FleetVendorReviewQuerySchema, iC as FleetVendorReviewSchema, ij as FleetVendorSchema, i7 as FleetVendorSimple, i9 as FleetVendorTagLink, i8 as FleetVendorTypeLink, j6 as createFleetVendor, j9 as createFleetVendorAddress, jd as createFleetVendorBankAccount, jh as createFleetVendorContactPersons, jp as createFleetVendorDocument, jl as createFleetVendorReview, j3 as create_vendor_document_file, j8 as deleteFleetVendor, jc as deleteFleetVendorAddress, jg as deleteFleetVendorBankAccount, jk as deleteFleetVendorContactPersons, j2 as deleteFleetVendorContactPersonsLogo, js as deleteFleetVendorDocument, jo as deleteFleetVendorReview, j0 as delete_vendor_logo, j5 as findFleetVendor, ja as findFleetVendorAddress, je as findFleetVendorBankAccount, ji as findFleetVendorContactPersons, jq as findFleetVendorDocument, jm as findFleetVendorReview, jt as getFleetVendorCacheSimple, iZ as get_vendor_contact_person_logo_presigned_url, i_ as get_vendor_document_file_presigned_url, iY as get_vendor_logo_presigned_url, iP as newFleetVendorAddressPayload, iR as newFleetVendorBankAccountPayload, iT as newFleetVendorContactPersonsPayload, iX as newFleetVendorDocumentPayload, iN as newFleetVendorPayload, iV as newFleetVendorReviewPayload, j4 as remove_vendor_document_file, iO as toFleetVendorAddressPayload, iQ as toFleetVendorBankAccountPayload, iS as toFleetVendorContactPersonsPayload, iW as toFleetVendorDocumentPayload, iM as toFleetVendorPayload, iU as toFleetVendorReviewPayload, j7 as updateFleetVendor, jb as updateFleetVendorAddress, jf as updateFleetVendorBankAccount, jj as updateFleetVendorContactPersons, j1 as updateFleetVendorContactPersonsLogo, jr as updateFleetVendorDocument, jn as updateFleetVendorReview, i$ as update_vendor_logo } from '../../../user_organisation_service-4bBzFQBd.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|