vms-nest-prisma-api-document 1007.0.0 → 1008.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/{bookmark_service-CL4_vRjh.d.ts → bookmark_service-1aqLWltt.d.ts} +505 -182
- package/dist/services/account/bookmark_service.d.ts +1 -1
- package/dist/services/account/invoice_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/calendar.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/day_run.d.ts +2 -2
- package/dist/services/fleet/bus_mangement/day_run.js +528 -0
- package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/master_schedule.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/master_schedule.js +28 -0
- 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 +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/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 +1 -1
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +1 -1
- package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +1 -1
- 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_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 +1 -1
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
- 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/cache_reset/master_reset_cache_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_sim_provider_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 +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- 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/exclusive_feature_access.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../core/Enums.js';
|
|
2
2
|
import '../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { Ae as BookMark, Ag as BookMarkDTO, Ai as BookMarkQueryDTO, Ah as BookMarkQuerySchema, Af as BookMarkSchema, Am as createBookMark, Ao as deleteBookMark, Al as findBookMarks, Ak as newBookMarkPayload, Aj as toBookMarkPayload, An as updateBookMark } from '../../bookmark_service-1aqLWltt.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -2,7 +2,7 @@ import { InvoiceStatus, Status, FileType, PAGING, LoadParents, LoadChild, LoadCh
|
|
|
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, M as MasterMainCurrency } from '../../bookmark_service-
|
|
5
|
+
import { U as UserOrganisation, M as MasterMainCurrency } from '../../bookmark_service-1aqLWltt.js';
|
|
6
6
|
import '../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
7
7
|
|
|
8
8
|
interface Invoice 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 { cK as OrganisationNotificationPreference, cP as OrganisationNotificationPreferenceDTO, cM as OrganisationNotificationPreferenceGeofenceLink, cR as OrganisationNotificationPreferenceQueryDTO, cQ as OrganisationNotificationPreferenceQuerySchema, cO as OrganisationNotificationPreferenceSchema, cN as OrganisationNotificationPreferenceUserLink, cL as OrganisationNotificationPreferenceVehicleLink, cV as createOrganisationNotificationPreference, cX as deleteOrganisationNotificationPreference, cU as findOrganisationNotificationPreference, cT as newOrganisationNotificationPreferencePayload, cS as toOrganisationNotificationPreferencePayload, cW as updateOrganisationNotificationPreference } from '../../bookmark_service-
|
|
4
|
+
export { cK as OrganisationNotificationPreference, cP as OrganisationNotificationPreferenceDTO, cM as OrganisationNotificationPreferenceGeofenceLink, cR as OrganisationNotificationPreferenceQueryDTO, cQ as OrganisationNotificationPreferenceQuerySchema, cO as OrganisationNotificationPreferenceSchema, cN as OrganisationNotificationPreferenceUserLink, cL as OrganisationNotificationPreferenceVehicleLink, cV as createOrganisationNotificationPreference, cX as deleteOrganisationNotificationPreference, cU as findOrganisationNotificationPreference, cT as newOrganisationNotificationPreferencePayload, cS as toOrganisationNotificationPreferencePayload, cW as updateOrganisationNotificationPreference } from '../../bookmark_service-1aqLWltt.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../core/Enums.js';
|
|
2
2
|
import '../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { ow as OrganisationReportAutomationMail, oz as OrganisationReportAutomationMailQueryDTO, oy as OrganisationReportAutomationMailQuerySchema, ox as OrganisationReportAutomationMailVehicleLink, ou as OrganisationReportPreference, oB as OrganisationReportPreferenceDTO, oD as OrganisationReportPreferenceQueryDTO, oC as OrganisationReportPreferenceQuerySchema, oA as OrganisationReportPreferenceSchema, ov as OrganisationReportPreferenceVehicleLink, oH as createOrganisationReportPreference, oJ as deleteOrganisationReportPreference, oK as findOrganisationReportAutomationMail, oG as findOrganisationReportPreference, oF as newOrganisationReportPreferencePayload, oE as toOrganisationReportPreferencePayload, oI as updateOrganisationReportPreference } from '../../bookmark_service-
|
|
4
|
+
export { ow as OrganisationReportAutomationMail, oz as OrganisationReportAutomationMailQueryDTO, oy as OrganisationReportAutomationMailQuerySchema, ox as OrganisationReportAutomationMailVehicleLink, ou as OrganisationReportPreference, oB as OrganisationReportPreferenceDTO, oD as OrganisationReportPreferenceQueryDTO, oC as OrganisationReportPreferenceQuerySchema, oA as OrganisationReportPreferenceSchema, ov as OrganisationReportPreferenceVehicleLink, oH as createOrganisationReportPreference, oJ as deleteOrganisationReportPreference, oK as findOrganisationReportAutomationMail, oG as findOrganisationReportPreference, oF as newOrganisationReportPreferencePayload, oE as toOrganisationReportPreferencePayload, oI as updateOrganisationReportPreference } from '../../bookmark_service-1aqLWltt.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -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 { dg as Ticket, dl as TicketDTO, dh as TicketFile, dj as TicketFileDTO, di as TicketFileSchema, dq as TicketQueryDTO, dp as TicketQuerySchema, dk as TicketSchema, dn as TicketVerifyDTO, dm as TicketVerifySchema, dz as createTicket, dw as create_ticket_file, dC as deleteTicket, dy as findTickets, dv as get_ticket_file_presigned_url, ds as newTicketPayload, dt as newVerifyTicketPayload, dx as remove_ticket_file, dr as toTicketPayload, du as toVerifyTicketPayload, dA as updateTicket, dB as updateVerifyStatus } from '../../bookmark_service-
|
|
5
|
+
export { dg as Ticket, dl as TicketDTO, dh as TicketFile, dj as TicketFileDTO, di as TicketFileSchema, dq as TicketQueryDTO, dp as TicketQuerySchema, dk as TicketSchema, dn as TicketVerifyDTO, dm as TicketVerifySchema, dz as createTicket, dw as create_ticket_file, dC as deleteTicket, dy as findTickets, dv as get_ticket_file_presigned_url, ds as newTicketPayload, dt as newVerifyTicketPayload, dx as remove_ticket_file, dr as toTicketPayload, du as toVerifyTicketPayload, dA as updateTicket, dB as updateVerifyStatus } from '../../bookmark_service-1aqLWltt.js';
|
|
6
6
|
import '../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { qO as BusDashBoardQueryDTO, qN as BusDashBoardQuerySchema, qG as BusDashboard, qF as BusStop, qK as BusStopDTO, qE as BusStopPolygonData, qI as BusStopPolygonDataDTO, qH as BusStopPolygonDataSchema, qM as BusStopQueryDTO, qL as BusStopQuerySchema, qJ as BusStopSchema, qV as bus_dashboard, qS as createBusStop, qU as deleteBusStop, qR as findBusStop, qQ as newBusStopPayload, qP as toBusStopPayload, qT as updateBusStop } from '../../../bookmark_service-
|
|
4
|
+
export { qO as BusDashBoardQueryDTO, qN as BusDashBoardQuerySchema, qG as BusDashboard, qF as BusStop, qK as BusStopDTO, qE as BusStopPolygonData, qI as BusStopPolygonDataDTO, qH as BusStopPolygonDataSchema, qM as BusStopQueryDTO, qL as BusStopQuerySchema, qJ as BusStopSchema, qV as bus_dashboard, qS as createBusStop, qU as deleteBusStop, qR as findBusStop, qQ as newBusStopPayload, qP as toBusStopPayload, qT as updateBusStop } from '../../../bookmark_service-1aqLWltt.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { xP as OrganisationCalendar, xR as OrganisationCalendarDTO, xT as OrganisationCalendarQueryDTO, xS as OrganisationCalendarQuerySchema, xQ as OrganisationCalendarSchema, xX as createOrganisationCalendar, xZ as deleteOrganisationCalendar, xW as findOrganisationCalendar, xV as newOrganisationCalendarPayload, xU as toOrganisationCalendarPayload, xY as updateOrganisationCalendar } from '../../../bookmark_service-1aqLWltt.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
|
-
export { qW as FixedScheduleDayRun, qX as FixedScheduleDayRunStop, qY as FixedScheduleDayRunStudent } from '../../../bookmark_service-
|
|
3
|
-
import '../../../core/BaseResponse.js';
|
|
2
|
+
export { qW as FixedScheduleDayRun, r0 as FixedScheduleDayRunCancelDTO, q$ as FixedScheduleDayRunCancelSchema, r2 as FixedScheduleDayRunQueryDTO, r1 as FixedScheduleDayRunQuerySchema, qX as FixedScheduleDayRunStop, r6 as FixedScheduleDayRunStopEnterDTO, r5 as FixedScheduleDayRunStopEnterSchema, r8 as FixedScheduleDayRunStopExitDTO, r7 as FixedScheduleDayRunStopExitSchema, qY as FixedScheduleDayRunStudent, r4 as FixedScheduleDayRunStudentUpdateDTO, r3 as FixedScheduleDayRunStudentUpdateSchema, q_ as FixedScheduleDayRunUpdateDTO, qZ as FixedScheduleDayRunUpdateSchema, rm as cancel_fixed_schedule_day_run, rk as find, rj as get_student_attendance_presigned_url, rc as newFixedScheduleDayRunCancelPayload, rg as newFixedScheduleDayRunStopEnterPayload, ri as newFixedScheduleDayRunStopExitPayload, re as newFixedScheduleDayRunStudentUpdatePayload, ra as newFixedScheduleDayRunUpdatePayload, rb as toFixedScheduleDayRunCancelPayload, rf as toFixedScheduleDayRunStopEnterPayload, rh as toFixedScheduleDayRunStopExitPayload, rd as toFixedScheduleDayRunStudentUpdatePayload, r9 as toFixedScheduleDayRunUpdatePayload, rl as update_fixed_schedule_day_run, rp as update_stop_enter, rq as update_stop_exit, rn as update_student_boarded, ro as update_student_handovered } from '../../../bookmark_service-1aqLWltt.js';
|
|
4
3
|
import 'zod';
|
|
4
|
+
import '../../../core/BaseResponse.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
// src/core/Enums.ts
|
|
2
|
+
var PAGING = /* @__PURE__ */ ((PAGING2) => {
|
|
3
|
+
PAGING2["Yes"] = "Yes";
|
|
4
|
+
PAGING2["No"] = "No";
|
|
5
|
+
return PAGING2;
|
|
6
|
+
})(PAGING || {});
|
|
7
|
+
var LoadParents = /* @__PURE__ */ ((LoadParents2) => {
|
|
8
|
+
LoadParents2["Yes"] = "Yes";
|
|
9
|
+
LoadParents2["No"] = "No";
|
|
10
|
+
LoadParents2["Custom"] = "Custom";
|
|
11
|
+
return LoadParents2;
|
|
12
|
+
})(LoadParents || {});
|
|
13
|
+
var LoadChild = /* @__PURE__ */ ((LoadChild2) => {
|
|
14
|
+
LoadChild2["No"] = "No";
|
|
15
|
+
LoadChild2["Yes"] = "Yes";
|
|
16
|
+
LoadChild2["Count"] = "Count";
|
|
17
|
+
LoadChild2["Custom"] = "Custom";
|
|
18
|
+
LoadChild2["Direct"] = "Direct";
|
|
19
|
+
return LoadChild2;
|
|
20
|
+
})(LoadChild || {});
|
|
21
|
+
var LoadChildCount = /* @__PURE__ */ ((LoadChildCount2) => {
|
|
22
|
+
LoadChildCount2["No"] = "No";
|
|
23
|
+
LoadChildCount2["Yes"] = "Yes";
|
|
24
|
+
LoadChildCount2["Custom"] = "Custom";
|
|
25
|
+
return LoadChildCount2;
|
|
26
|
+
})(LoadChildCount || {});
|
|
27
|
+
var OrderBy = /* @__PURE__ */ ((OrderBy2) => {
|
|
28
|
+
OrderBy2["asc"] = "asc";
|
|
29
|
+
OrderBy2["desc"] = "desc";
|
|
30
|
+
return OrderBy2;
|
|
31
|
+
})(OrderBy || {});
|
|
32
|
+
var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
|
|
33
|
+
LoginFrom2["Web"] = "Web";
|
|
34
|
+
LoginFrom2["Android"] = "Android";
|
|
35
|
+
LoginFrom2["IPhone"] = "IPhone";
|
|
36
|
+
LoginFrom2["AndroidPWA"] = "AndroidPWA";
|
|
37
|
+
LoginFrom2["iOSPWA"] = "iOSPWA";
|
|
38
|
+
return LoginFrom2;
|
|
39
|
+
})(LoginFrom || {});
|
|
40
|
+
var Status = /* @__PURE__ */ ((Status3) => {
|
|
41
|
+
Status3["Active"] = "Active";
|
|
42
|
+
Status3["Inactive"] = "Inactive";
|
|
43
|
+
return Status3;
|
|
44
|
+
})(Status || {});
|
|
45
|
+
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
46
|
+
FileType2["NoFile"] = "NoFile";
|
|
47
|
+
FileType2["Image"] = "Image";
|
|
48
|
+
FileType2["Video"] = "Video";
|
|
49
|
+
FileType2["PDF"] = "PDF";
|
|
50
|
+
FileType2["Excel"] = "Excel";
|
|
51
|
+
return FileType2;
|
|
52
|
+
})(FileType || {});
|
|
53
|
+
var YesNo = /* @__PURE__ */ ((YesNo2) => {
|
|
54
|
+
YesNo2["Yes"] = "Yes";
|
|
55
|
+
YesNo2["No"] = "No";
|
|
56
|
+
return YesNo2;
|
|
57
|
+
})(YesNo || {});
|
|
58
|
+
var BusLeg = /* @__PURE__ */ ((BusLeg2) => {
|
|
59
|
+
BusLeg2["Pickup"] = "Pickup";
|
|
60
|
+
BusLeg2["Drop"] = "Drop";
|
|
61
|
+
return BusLeg2;
|
|
62
|
+
})(BusLeg || {});
|
|
63
|
+
var DayRunStatus = /* @__PURE__ */ ((DayRunStatus2) => {
|
|
64
|
+
DayRunStatus2["Planned"] = "Planned";
|
|
65
|
+
DayRunStatus2["InProgress"] = "InProgress";
|
|
66
|
+
DayRunStatus2["Completed"] = "Completed";
|
|
67
|
+
DayRunStatus2["Cancelled"] = "Cancelled";
|
|
68
|
+
return DayRunStatus2;
|
|
69
|
+
})(DayRunStatus || {});
|
|
70
|
+
var DayRunRunningStatus = /* @__PURE__ */ ((DayRunRunningStatus2) => {
|
|
71
|
+
DayRunRunningStatus2["OnTime"] = "OnTime";
|
|
72
|
+
DayRunRunningStatus2["Delayed"] = "Delayed";
|
|
73
|
+
return DayRunRunningStatus2;
|
|
74
|
+
})(DayRunRunningStatus || {});
|
|
75
|
+
var AttendanceMethod = /* @__PURE__ */ ((AttendanceMethod2) => {
|
|
76
|
+
AttendanceMethod2["None"] = "None";
|
|
77
|
+
AttendanceMethod2["QRCode"] = "QRCode";
|
|
78
|
+
AttendanceMethod2["NFC"] = "NFC";
|
|
79
|
+
AttendanceMethod2["ParentAppCode"] = "ParentAppCode";
|
|
80
|
+
AttendanceMethod2["OTP"] = "OTP";
|
|
81
|
+
AttendanceMethod2["Photo"] = "Photo";
|
|
82
|
+
AttendanceMethod2["Manual"] = "Manual";
|
|
83
|
+
return AttendanceMethod2;
|
|
84
|
+
})(AttendanceMethod || {});
|
|
85
|
+
|
|
86
|
+
// src/services/fleet/bus_mangement/day_run.ts
|
|
87
|
+
import z3 from "zod";
|
|
88
|
+
|
|
89
|
+
// src/zod_utils/zod_utils.ts
|
|
90
|
+
import { z } from "zod";
|
|
91
|
+
|
|
92
|
+
// src/core/BaseResponse.ts
|
|
93
|
+
var r_log = (data = {}) => {
|
|
94
|
+
return data;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// src/zod_utils/zod_utils.ts
|
|
98
|
+
var handleNullOrUndefined = (value) => typeof value === "string" ? value : "";
|
|
99
|
+
var stringMandatory = (fieldName, min = 1, max = 100) => {
|
|
100
|
+
const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).nonempty(`${fieldName} is required.`).transform(handleNullOrUndefined);
|
|
101
|
+
return schema;
|
|
102
|
+
};
|
|
103
|
+
var stringOptional = (fieldName, min = 0, max = 255, defaultValue = "") => {
|
|
104
|
+
const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).transform(handleNullOrUndefined).default(defaultValue);
|
|
105
|
+
return schema;
|
|
106
|
+
};
|
|
107
|
+
var stringArrayOptional = (fieldName, min = 0, max = 100, defaultValue = [], unique = false) => {
|
|
108
|
+
const schema = z.array(z.string().trim(), {
|
|
109
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
110
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
111
|
+
if (unique) {
|
|
112
|
+
schema.refine(
|
|
113
|
+
(arr) => new Set(arr).size === arr.length,
|
|
114
|
+
`${fieldName} must contain unique values.`
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
return schema.optional().default(defaultValue);
|
|
118
|
+
};
|
|
119
|
+
var numberOptional = (fieldName, min = 0, max = 1e14, defaultValue = 0) => {
|
|
120
|
+
return z.preprocess(
|
|
121
|
+
(val) => typeof val === "string" && val.trim() !== "" ? Number(val) : val,
|
|
122
|
+
z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(min, `${fieldName} must be at least ${min}.`).max(max, `${fieldName} must be at most ${max}.`).optional().default(defaultValue)
|
|
123
|
+
);
|
|
124
|
+
};
|
|
125
|
+
var enumMandatory = (fieldName, enumType, defaultValue) => {
|
|
126
|
+
return z.union([
|
|
127
|
+
z.nativeEnum(enumType, {
|
|
128
|
+
invalid_type_error: `${fieldName} should be one of the following values: ${Object.values(
|
|
129
|
+
enumType
|
|
130
|
+
).join(", ")}.`
|
|
131
|
+
}),
|
|
132
|
+
z.string().refine((val) => Object.values(enumType).includes(val), {
|
|
133
|
+
message: `${fieldName} should be one of the following values: ${Object.values(
|
|
134
|
+
enumType
|
|
135
|
+
).join(", ")}.`
|
|
136
|
+
})
|
|
137
|
+
]).default(defaultValue).refine((val) => val !== "", {
|
|
138
|
+
message: `Please select ${fieldName}.`
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
var enumOptional = (fieldName, enumType, defaultValue) => {
|
|
142
|
+
return z.nativeEnum(enumType, {
|
|
143
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
144
|
+
enumType
|
|
145
|
+
).join(", ")}.`
|
|
146
|
+
}).optional().default(() => defaultValue);
|
|
147
|
+
};
|
|
148
|
+
var getAllEnums = (enumType) => {
|
|
149
|
+
return Object.values(enumType);
|
|
150
|
+
};
|
|
151
|
+
var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumType), min = 0, max = 100, unique = false) => {
|
|
152
|
+
const schema = z.array(z.nativeEnum(enumType), {
|
|
153
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
154
|
+
enumType
|
|
155
|
+
).join(", ")}.`
|
|
156
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
157
|
+
if (unique) {
|
|
158
|
+
schema.refine(
|
|
159
|
+
(arr) => new Set(arr).size === arr.length,
|
|
160
|
+
`${fieldName} must contain unique values.`
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
return schema.optional().default(() => defaultValue);
|
|
164
|
+
};
|
|
165
|
+
var handleNullOrUndefinedDate = (value, defaultValue) => {
|
|
166
|
+
if (typeof value === "string" && !isNaN(Date.parse(value))) {
|
|
167
|
+
return value;
|
|
168
|
+
}
|
|
169
|
+
return defaultValue;
|
|
170
|
+
};
|
|
171
|
+
var dateTimeMandatory = (fieldName, minDate, maxDate, defaultValue = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
172
|
+
const schema = z.string().refine((val) => val !== "" && val !== null && val !== void 0, {
|
|
173
|
+
message: `Please select ${fieldName}.`
|
|
174
|
+
}).refine((val) => !isNaN(Date.parse(val)), {
|
|
175
|
+
message: `${fieldName} must be a valid ISO date.`
|
|
176
|
+
}).refine((val) => !minDate || new Date(val) >= new Date(minDate), {
|
|
177
|
+
message: `${fieldName} must be after ${minDate}.`
|
|
178
|
+
}).refine((val) => !maxDate || new Date(val) <= new Date(maxDate), {
|
|
179
|
+
message: `${fieldName} must be before ${maxDate}.`
|
|
180
|
+
}).transform((val) => handleNullOrUndefinedDate(val, defaultValue));
|
|
181
|
+
return schema;
|
|
182
|
+
};
|
|
183
|
+
var dateTimeOptional = (fieldName, minDate, maxDate, defaultValue = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
184
|
+
const schema = z.string().optional().transform((val) => val === "" || val === null || val === void 0 ? void 0 : val).refine((val) => val === void 0 || !isNaN(Date.parse(val)), {
|
|
185
|
+
message: `${fieldName} must be a valid ISO date.`
|
|
186
|
+
}).refine((val) => !minDate || val === void 0 || new Date(val) >= new Date(minDate), {
|
|
187
|
+
message: `${fieldName} must be after ${minDate}.`
|
|
188
|
+
}).refine((val) => !maxDate || val === void 0 || new Date(val) <= new Date(maxDate), {
|
|
189
|
+
message: `${fieldName} must be before ${maxDate}.`
|
|
190
|
+
}).default(defaultValue);
|
|
191
|
+
return schema;
|
|
192
|
+
};
|
|
193
|
+
var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
|
|
194
|
+
var single_select_mandatory = (fieldName) => {
|
|
195
|
+
const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
|
|
196
|
+
return schema;
|
|
197
|
+
};
|
|
198
|
+
var single_select_optional = (fieldName) => {
|
|
199
|
+
r_log(fieldName);
|
|
200
|
+
const schema = z.string().trim().transform(handleNullOrUndefined);
|
|
201
|
+
return schema;
|
|
202
|
+
};
|
|
203
|
+
var multi_select_optional = (fieldName, max = 1e3, defaultValue = []) => {
|
|
204
|
+
const schema = z.array(
|
|
205
|
+
z.string({
|
|
206
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
207
|
+
})
|
|
208
|
+
).max(
|
|
209
|
+
max,
|
|
210
|
+
`Please select at most ${max} ${fieldName}${max > 1 ? "s" : ""}.`
|
|
211
|
+
);
|
|
212
|
+
return schema.optional().default(defaultValue);
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// src/zod_utils/zod_base_schema.ts
|
|
216
|
+
import { z as z2 } from "zod";
|
|
217
|
+
var OrderBySchema = z2.array(
|
|
218
|
+
z2.object({
|
|
219
|
+
name: stringMandatory("Order Field Name", 0, 255),
|
|
220
|
+
field: stringMandatory("Order Field Name", 0, 255),
|
|
221
|
+
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
222
|
+
})
|
|
223
|
+
);
|
|
224
|
+
var BaseFileSchema = z2.object({
|
|
225
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
226
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
227
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
228
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
229
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
230
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
231
|
+
file_size: numberOptional("File Size"),
|
|
232
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
233
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
234
|
+
});
|
|
235
|
+
var BaseQuerySchema = z2.object({
|
|
236
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
237
|
+
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
238
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
239
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
240
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
241
|
+
load_parents: enumOptional("Load Parents", LoadParents, "No" /* No */),
|
|
242
|
+
load_parents_list: stringArrayOptional("Load Parents List"),
|
|
243
|
+
load_child: enumOptional("Load Child", LoadChild, "No" /* No */),
|
|
244
|
+
load_child_list: stringArrayOptional("Load Child List"),
|
|
245
|
+
load_child_count: enumOptional(
|
|
246
|
+
"Load Child",
|
|
247
|
+
LoadChildCount,
|
|
248
|
+
"No" /* No */
|
|
249
|
+
),
|
|
250
|
+
load_child_count_list: stringArrayOptional("Load Child List"),
|
|
251
|
+
include_details: dynamicJsonSchema("Include Details", {}),
|
|
252
|
+
where_relations: dynamicJsonSchema("Where Relations", {}),
|
|
253
|
+
order_by: OrderBySchema.optional().default([]),
|
|
254
|
+
include_master_data: enumOptional("Include Master Data", YesNo, "No" /* No */),
|
|
255
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
256
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
257
|
+
});
|
|
258
|
+
var FilePresignedUrlSchema = z2.object({
|
|
259
|
+
file_name: stringMandatory("File Name", 1, 255),
|
|
260
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */)
|
|
261
|
+
});
|
|
262
|
+
var MongoBaseQuerySchema = z2.object({
|
|
263
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
264
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
265
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
266
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
267
|
+
login_from: enumMandatory("Login From", LoginFrom, "Web" /* Web */),
|
|
268
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
269
|
+
// ✅ Single-selection -> MasterMainDateFormat
|
|
270
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
271
|
+
// ✅ Single-selection -> MasterMainTimeZone
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
// src/core/sdk-config.ts
|
|
275
|
+
var KEY = "__vms_axios_instance__";
|
|
276
|
+
var getAxiosInstance = () => {
|
|
277
|
+
const instance = globalThis[KEY];
|
|
278
|
+
if (!instance) {
|
|
279
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
280
|
+
}
|
|
281
|
+
return instance;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
// src/core/apiCall.ts
|
|
285
|
+
var apiGet = async (url, params) => {
|
|
286
|
+
const response = await getAxiosInstance().get(url, { params });
|
|
287
|
+
return response.data;
|
|
288
|
+
};
|
|
289
|
+
var apiPost = async (url, data) => {
|
|
290
|
+
const response = await getAxiosInstance().post(url, data);
|
|
291
|
+
return response.data;
|
|
292
|
+
};
|
|
293
|
+
var apiPatch = async (url, data) => {
|
|
294
|
+
const response = await getAxiosInstance().patch(url, data);
|
|
295
|
+
return response.data;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
// src/services/fleet/bus_mangement/day_run.ts
|
|
299
|
+
var URL = "day_run";
|
|
300
|
+
var ENDPOINTS = {
|
|
301
|
+
// AWS S3 PRESIGNED
|
|
302
|
+
get_student_attendance_presigned_url: (fileName) => `${URL}/get_student_attendance_presigned_url/${fileName}`,
|
|
303
|
+
// FixedScheduleDayRun APIs
|
|
304
|
+
update_fixed_schedule_day_run: (id) => `${URL}/update_fixed_schedule_day_run/${id}`,
|
|
305
|
+
cancel_fixed_schedule_day_run: (id) => `${URL}/cancel_fixed_schedule_day_run/${id}`,
|
|
306
|
+
find: `${URL}/search`,
|
|
307
|
+
// FixedScheduleDayRunStudent APIs
|
|
308
|
+
update_student_boarded: (id) => `${URL}/update_student_boarded/${id}`,
|
|
309
|
+
update_student_handovered: (id) => `${URL}/update_student_handovered/${id}`,
|
|
310
|
+
// FixedScheduleDayRunStop APIs
|
|
311
|
+
update_stop_enter: (id) => `${URL}/update_stop_enter/${id}`,
|
|
312
|
+
update_stop_exit: (id) => `${URL}/update_stop_exit/${id}`
|
|
313
|
+
};
|
|
314
|
+
var FixedScheduleDayRunUpdateSchema = z3.object({
|
|
315
|
+
// Relations - Parent
|
|
316
|
+
vehicle_id: single_select_optional("MasterVehicle"),
|
|
317
|
+
// Single-Selection -> MasterVehicle
|
|
318
|
+
driver_id: single_select_optional("MasterDriver"),
|
|
319
|
+
// Single-Selection -> MasterDriver
|
|
320
|
+
attendant_id: single_select_optional("MasterDriver"),
|
|
321
|
+
// Single-Selection -> MasterDriver
|
|
322
|
+
// Main Field Details
|
|
323
|
+
start_planned_date_time: dateTimeOptional("Start Planned Date Time"),
|
|
324
|
+
end_planned_date_time: dateTimeOptional("End Planned Date Time"),
|
|
325
|
+
notes: stringOptional("Notes", 0, 500),
|
|
326
|
+
// Other
|
|
327
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone")
|
|
328
|
+
});
|
|
329
|
+
var FixedScheduleDayRunCancelSchema = z3.object({
|
|
330
|
+
cancel_reason: stringOptional("Cancel Reason", 0, 500)
|
|
331
|
+
});
|
|
332
|
+
var FixedScheduleDayRunQuerySchema = BaseQuerySchema.extend({
|
|
333
|
+
// Self Table
|
|
334
|
+
fixed_schedule_day_run_ids: multi_select_optional("FixedScheduleDayRun"),
|
|
335
|
+
// Multi-selection -> FixedScheduleDayRun
|
|
336
|
+
// Relations - Parent
|
|
337
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
338
|
+
// Multi-selection -> UserOrganisation
|
|
339
|
+
organisation_branch_ids: multi_select_optional("OrganisationBranch"),
|
|
340
|
+
// Multi-selection -> OrganisationBranch
|
|
341
|
+
route_ids: multi_select_optional("MasterRoute"),
|
|
342
|
+
// Multi-selection -> MasterRoute
|
|
343
|
+
fixed_schedule_ids: multi_select_optional("MasterFixedSchedule"),
|
|
344
|
+
// Multi-selection -> MasterFixedSchedule
|
|
345
|
+
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
346
|
+
// Multi-selection -> MasterVehicle
|
|
347
|
+
driver_ids: multi_select_optional("MasterDriver"),
|
|
348
|
+
// Multi-selection -> MasterDriver
|
|
349
|
+
attendant_ids: multi_select_optional("MasterDriver"),
|
|
350
|
+
// Multi-selection -> MasterDriver
|
|
351
|
+
// Enums
|
|
352
|
+
schedule_type: enumArrayOptional(
|
|
353
|
+
"Schedule Type",
|
|
354
|
+
BusLeg,
|
|
355
|
+
getAllEnums(BusLeg)
|
|
356
|
+
),
|
|
357
|
+
day_run_status: enumArrayOptional(
|
|
358
|
+
"Day Run Status",
|
|
359
|
+
DayRunStatus,
|
|
360
|
+
getAllEnums(DayRunStatus)
|
|
361
|
+
),
|
|
362
|
+
running_status: enumArrayOptional(
|
|
363
|
+
"Running Status",
|
|
364
|
+
DayRunRunningStatus,
|
|
365
|
+
getAllEnums(DayRunRunningStatus)
|
|
366
|
+
)
|
|
367
|
+
});
|
|
368
|
+
var FixedScheduleDayRunStudentUpdateSchema = z3.object({
|
|
369
|
+
// Relations - Parent
|
|
370
|
+
actual_fixed_schedule_day_run_stop_id: single_select_optional(
|
|
371
|
+
"FixedScheduleDayRunStudent"
|
|
372
|
+
),
|
|
373
|
+
// Single-Selection -> FixedScheduleDayRunStudent
|
|
374
|
+
// Main Field Details
|
|
375
|
+
method: enumMandatory("Method", AttendanceMethod, "None" /* None */),
|
|
376
|
+
mark_time: dateTimeOptional("Mark Time"),
|
|
377
|
+
note: stringOptional("Note", 0, 500),
|
|
378
|
+
// Attendance Image/Logo
|
|
379
|
+
student_attendance_image_url: stringOptional(
|
|
380
|
+
"Student Attendance Image URL",
|
|
381
|
+
0,
|
|
382
|
+
300
|
|
383
|
+
),
|
|
384
|
+
student_attendance_image_key: stringOptional(
|
|
385
|
+
"Student Attendance Image Key",
|
|
386
|
+
0,
|
|
387
|
+
300
|
|
388
|
+
),
|
|
389
|
+
student_attendance_image_name: stringOptional(
|
|
390
|
+
"Student Attendance Image Name",
|
|
391
|
+
0,
|
|
392
|
+
300
|
|
393
|
+
),
|
|
394
|
+
// Other
|
|
395
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone")
|
|
396
|
+
});
|
|
397
|
+
var FixedScheduleDayRunStopEnterSchema = z3.object({
|
|
398
|
+
// Main Field Details
|
|
399
|
+
actual_arrival_time: dateTimeMandatory("Actual Arrival Time"),
|
|
400
|
+
// Other
|
|
401
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone")
|
|
402
|
+
});
|
|
403
|
+
var FixedScheduleDayRunStopExitSchema = z3.object({
|
|
404
|
+
// Main Field Details
|
|
405
|
+
actual_departure_time: dateTimeMandatory("Actual Departure Time"),
|
|
406
|
+
// Other
|
|
407
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone")
|
|
408
|
+
});
|
|
409
|
+
var toFixedScheduleDayRunUpdatePayload = (row) => ({
|
|
410
|
+
vehicle_id: row.vehicle_id || "",
|
|
411
|
+
driver_id: row.driver_id || "",
|
|
412
|
+
attendant_id: row.attendant_id || "",
|
|
413
|
+
start_planned_date_time: row.start_planned_date_time || "",
|
|
414
|
+
end_planned_date_time: row.end_planned_date_time || "",
|
|
415
|
+
notes: row.notes || "",
|
|
416
|
+
time_zone_id: ""
|
|
417
|
+
// Needs to be provided manually
|
|
418
|
+
});
|
|
419
|
+
var newFixedScheduleDayRunUpdatePayload = () => ({
|
|
420
|
+
vehicle_id: "",
|
|
421
|
+
driver_id: "",
|
|
422
|
+
attendant_id: "",
|
|
423
|
+
start_planned_date_time: "",
|
|
424
|
+
end_planned_date_time: "",
|
|
425
|
+
notes: "",
|
|
426
|
+
time_zone_id: ""
|
|
427
|
+
// Needs to be provided manually
|
|
428
|
+
});
|
|
429
|
+
var toFixedScheduleDayRunCancelPayload = (row) => ({
|
|
430
|
+
cancel_reason: row.cancel_reason || ""
|
|
431
|
+
});
|
|
432
|
+
var newFixedScheduleDayRunCancelPayload = () => ({
|
|
433
|
+
cancel_reason: ""
|
|
434
|
+
});
|
|
435
|
+
var toFixedScheduleDayRunStudentUpdatePayload = (row) => ({
|
|
436
|
+
actual_fixed_schedule_day_run_stop_id: row.actual_fixed_schedule_day_run_stop_id || "",
|
|
437
|
+
method: row.method || "None" /* None */,
|
|
438
|
+
mark_time: row.mark_time || "",
|
|
439
|
+
note: row.note || "",
|
|
440
|
+
// Attendance Image/Logo
|
|
441
|
+
student_attendance_image_url: row.student_attendance_image_url || "",
|
|
442
|
+
student_attendance_image_key: row.student_attendance_image_key || "",
|
|
443
|
+
student_attendance_image_name: row.student_attendance_image_name || "",
|
|
444
|
+
time_zone_id: ""
|
|
445
|
+
// Needs to be provided manually
|
|
446
|
+
});
|
|
447
|
+
var newFixedScheduleDayRunStudentUpdatePayload = () => ({
|
|
448
|
+
actual_fixed_schedule_day_run_stop_id: "",
|
|
449
|
+
method: "None" /* None */,
|
|
450
|
+
mark_time: "",
|
|
451
|
+
note: "",
|
|
452
|
+
// Attendance Image/Logo
|
|
453
|
+
student_attendance_image_url: "",
|
|
454
|
+
student_attendance_image_key: "",
|
|
455
|
+
student_attendance_image_name: "",
|
|
456
|
+
time_zone_id: ""
|
|
457
|
+
// Needs to be provided manually
|
|
458
|
+
});
|
|
459
|
+
var toFixedScheduleDayRunStopEnterPayload = (row) => ({
|
|
460
|
+
actual_arrival_time: row.actual_arrival_time || "",
|
|
461
|
+
time_zone_id: ""
|
|
462
|
+
// Needs to be provided manually
|
|
463
|
+
});
|
|
464
|
+
var newFixedScheduleDayRunStopEnterPayload = () => ({
|
|
465
|
+
actual_arrival_time: "",
|
|
466
|
+
time_zone_id: ""
|
|
467
|
+
// Needs to be provided manually
|
|
468
|
+
});
|
|
469
|
+
var toFixedScheduleDayRunStopExitPayload = (row) => ({
|
|
470
|
+
actual_departure_time: row.actual_departure_time || "",
|
|
471
|
+
time_zone_id: ""
|
|
472
|
+
// Needs to be provided manually
|
|
473
|
+
});
|
|
474
|
+
var newFixedScheduleDayRunStopExitPayload = () => ({
|
|
475
|
+
actual_departure_time: "",
|
|
476
|
+
time_zone_id: ""
|
|
477
|
+
// Needs to be provided manually
|
|
478
|
+
});
|
|
479
|
+
var get_student_attendance_presigned_url = async (fileName) => {
|
|
480
|
+
return apiGet(ENDPOINTS.get_student_attendance_presigned_url(fileName));
|
|
481
|
+
};
|
|
482
|
+
var find = async (data) => {
|
|
483
|
+
return apiPost(ENDPOINTS.find, data);
|
|
484
|
+
};
|
|
485
|
+
var update_fixed_schedule_day_run = async (id, data) => {
|
|
486
|
+
return apiPatch(ENDPOINTS.update_fixed_schedule_day_run(id), data);
|
|
487
|
+
};
|
|
488
|
+
var cancel_fixed_schedule_day_run = async (id, data) => {
|
|
489
|
+
return apiPatch(ENDPOINTS.cancel_fixed_schedule_day_run(id), data);
|
|
490
|
+
};
|
|
491
|
+
var update_student_boarded = async (id, data) => {
|
|
492
|
+
return apiPatch(ENDPOINTS.update_student_boarded(id), data);
|
|
493
|
+
};
|
|
494
|
+
var update_student_handovered = async (id, data) => {
|
|
495
|
+
return apiPatch(ENDPOINTS.update_student_handovered(id), data);
|
|
496
|
+
};
|
|
497
|
+
var update_stop_enter = async (id, data) => {
|
|
498
|
+
return apiPatch(ENDPOINTS.update_stop_enter(id), data);
|
|
499
|
+
};
|
|
500
|
+
var update_stop_exit = async (id, data) => {
|
|
501
|
+
return apiPatch(ENDPOINTS.update_stop_exit(id), data);
|
|
502
|
+
};
|
|
503
|
+
export {
|
|
504
|
+
FixedScheduleDayRunCancelSchema,
|
|
505
|
+
FixedScheduleDayRunQuerySchema,
|
|
506
|
+
FixedScheduleDayRunStopEnterSchema,
|
|
507
|
+
FixedScheduleDayRunStopExitSchema,
|
|
508
|
+
FixedScheduleDayRunStudentUpdateSchema,
|
|
509
|
+
FixedScheduleDayRunUpdateSchema,
|
|
510
|
+
cancel_fixed_schedule_day_run,
|
|
511
|
+
find,
|
|
512
|
+
get_student_attendance_presigned_url,
|
|
513
|
+
newFixedScheduleDayRunCancelPayload,
|
|
514
|
+
newFixedScheduleDayRunStopEnterPayload,
|
|
515
|
+
newFixedScheduleDayRunStopExitPayload,
|
|
516
|
+
newFixedScheduleDayRunStudentUpdatePayload,
|
|
517
|
+
newFixedScheduleDayRunUpdatePayload,
|
|
518
|
+
toFixedScheduleDayRunCancelPayload,
|
|
519
|
+
toFixedScheduleDayRunStopEnterPayload,
|
|
520
|
+
toFixedScheduleDayRunStopExitPayload,
|
|
521
|
+
toFixedScheduleDayRunStudentUpdatePayload,
|
|
522
|
+
toFixedScheduleDayRunUpdatePayload,
|
|
523
|
+
update_fixed_schedule_day_run,
|
|
524
|
+
update_stop_enter,
|
|
525
|
+
update_stop_exit,
|
|
526
|
+
update_student_boarded,
|
|
527
|
+
update_student_handovered
|
|
528
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { rr as MasterRoute, ru as MasterRouteDTO, rM as MasterRouteJourneyTimeDTO, rL as MasterRouteJourneyTimeSchema, rw as MasterRouteQueryDTO, rv as MasterRouteQuerySchema, rt as MasterRouteSchema, rs as MasterRouteStop, rC as MasterRouteStopCreateDTO, rB as MasterRouteStopCreateSchema, ry as MasterRouteStopDTO, rJ as MasterRouteStopDeleteAllSchema, rK as MasterRouteStopDeleteDTO, rI as MasterRouteStopDeleteReOrderDTO, rH as MasterRouteStopDeleteSchema, rD as MasterRouteStopIds, rE as MasterRouteStopIdsDTO, rG as MasterRouteStopReorderDTO, rF as MasterRouteStopReorderSchema, rx as MasterRouteStopSchema, rA as MasterRouteStopUpdateDTO, rz as MasterRouteStopUpdateSchema, rT as appendRouteStop, rQ as createMasterRoute, rS as deleteMasterRoute, rW as deleteRouteStopReorder, rX as deleteRouteStopsAll, rP as findMasterRoute, rZ as findRouteStopCache, rO as newMasterRoutePayload, rV as reorderRouteStops, rN as toMasterRoutePayload, rR as updateMasterRoute, rU as updateRouteStop, rY as update_journey_time } from '../../../bookmark_service-1aqLWltt.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { tA as AssignFixedScheduleToStudentsDTO, tz as AssignFixedScheduleToStudentsSchema, tr as MasterFixedSchedule, tu as MasterFixedScheduleDTO, tw as MasterFixedScheduleQueryDTO, tv as MasterFixedScheduleQuerySchema, tt as MasterFixedScheduleSchema, ts as MasterFixedScheduleStudent, ty as MasterFixedScheduleStudentQueryDTO, tx as MasterFixedScheduleStudentQuerySchema, tC as RemoveFixedScheduleToStudentsDTO, tB as RemoveFixedScheduleToStudentsSchema, tE as UpdateStopDTO, tD as UpdateStopSchema, tM as assignFixedScheduleToStudents, tJ as createMasterFixedSchedule, tL as deleteMasterFixedSchedule, tH as findMasterFixedSchedule, tI as findMasterFixedScheduleStudent, tG as newMasterFixedSchedulePayload, tN as removeFixedScheduleToStudents, tF as toMasterFixedSchedulePayload, tK as updateMasterFixedSchedule, tO as updateStop } from '../../../bookmark_service-1aqLWltt.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|