vms-nest-prisma-api-document 1006.0.0 → 1007.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.
Files changed (111) hide show
  1. package/dist/{bookmark_service-DcstEM-v.d.ts → bookmark_service-CL4_vRjh.d.ts} +651 -691
  2. package/dist/core/Enums.d.ts +33 -1
  3. package/dist/core/Enums.js +42 -0
  4. package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
  5. package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
  6. package/dist/services/account/bookmark_service.d.ts +1 -1
  7. package/dist/services/account/invoice_service.d.ts +1 -1
  8. package/dist/services/account/notification_preferences.service.d.ts +1 -1
  9. package/dist/services/account/report_preferences.service.d.ts +1 -1
  10. package/dist/services/account/ticket_service.d.ts +1 -1
  11. package/dist/services/fleet/bus_mangement/bus_stop.d.ts +1 -1
  12. package/dist/services/fleet/bus_mangement/calendar.d.ts +1 -1
  13. package/dist/services/fleet/bus_mangement/day_run.d.ts +6 -0
  14. package/dist/services/fleet/bus_mangement/day_run.js +0 -0
  15. package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
  16. package/dist/services/fleet/bus_mangement/master_route.js +15 -14
  17. package/dist/services/fleet/bus_mangement/master_schedule.d.ts +1 -1
  18. package/dist/services/fleet/bus_mangement/master_schedule.js +55 -137
  19. package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
  20. package/dist/services/fleet/bus_mangement/student.d.ts +1 -1
  21. package/dist/services/fleet/bus_mangement/student.js +21 -46
  22. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +1 -1
  23. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +1 -1
  24. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +1 -1
  25. package/dist/services/fleet/incident_management/incident_management_service.d.ts +1 -1
  26. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +1 -1
  27. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +1 -1
  28. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +1 -1
  29. package/dist/services/fleet/issue_management/issue_management_service.d.ts +1 -1
  30. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +1 -1
  31. package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +1 -1
  32. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
  33. package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
  34. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
  35. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
  36. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
  37. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
  38. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
  39. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -1
  40. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
  41. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  42. package/dist/services/main/devices/master_device_service.d.ts +1 -1
  43. package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
  44. package/dist/services/main/sims/master_sim_service.d.ts +1 -1
  45. package/dist/services/main/users/auth_service.d.ts +1 -1
  46. package/dist/services/main/users/user_admin_service.d.ts +1 -1
  47. package/dist/services/main/users/user_organisation_service.d.ts +1 -1
  48. package/dist/services/main/users/user_service.d.ts +1 -1
  49. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
  50. package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
  51. package/dist/services/master/bus/master_class_service.d.ts +1 -1
  52. package/dist/services/master/bus/master_program_service.d.ts +1 -1
  53. package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
  54. package/dist/services/master/bus/master_section_service.d.ts +1 -1
  55. package/dist/services/master/bus/master_semester_service.d.ts +1 -1
  56. package/dist/services/master/bus/master_stream_service.d.ts +1 -1
  57. package/dist/services/master/bus/master_year_service.d.ts +1 -1
  58. package/dist/services/master/cache_reset/master_reset_cache_service.d.ts +1 -1
  59. package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
  60. package/dist/services/master/device/master_device_model_service.d.ts +1 -1
  61. package/dist/services/master/device/master_device_type_service.d.ts +1 -1
  62. package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
  63. package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
  64. package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
  65. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
  66. package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -1
  67. package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
  68. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
  69. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
  70. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
  71. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
  72. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
  73. package/dist/services/master/main/master_main_country_service.d.ts +1 -1
  74. package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
  75. package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
  76. package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
  77. package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
  78. package/dist/services/master/main/master_main_language_service.d.ts +1 -1
  79. package/dist/services/master/main/master_main_sim_provider_service.d.ts +1 -1
  80. package/dist/services/master/main/master_main_state_service.d.ts +1 -1
  81. package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
  82. package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
  83. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
  84. package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
  85. package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
  86. package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
  87. package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
  88. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
  89. package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
  90. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
  91. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
  92. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
  93. package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
  94. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
  95. package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
  96. package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
  97. package/dist/services/master/user/master_user_role_service.d.ts +1 -1
  98. package/dist/services/master/user/master_user_status_service.d.ts +1 -1
  99. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
  100. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
  101. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +1 -1
  102. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
  103. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
  104. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
  105. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
  106. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
  107. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
  108. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
  109. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
  110. package/dist/services/website/exclusive_feature_access.d.ts +1 -1
  111. package/package.json +1 -1
@@ -728,6 +728,38 @@ declare enum StudentLeaveType {
728
728
  PickupOnly = "PickupOnly",
729
729
  DropOnly = "DropOnly"
730
730
  }
731
+ declare enum DayRunStatus {
732
+ Planned = "Planned",
733
+ InProgress = "InProgress",
734
+ Completed = "Completed",
735
+ Cancelled = "Cancelled"
736
+ }
737
+ declare enum DayRunRunningStatus {
738
+ OnTime = "OnTime",
739
+ Delayed = "Delayed"
740
+ }
741
+ declare enum DayRunStopStatus {
742
+ Pending = "Pending",
743
+ Arrived = "Arrived",
744
+ Departed = "Departed",
745
+ Skipped = "Skipped"
746
+ }
747
+ declare enum StudentLegStatus {
748
+ Planned = "Planned",
749
+ PlannedAbsent = "PlannedAbsent",
750
+ UnplannedAbsent = "UnplannedAbsent",
751
+ Boarded = "Boarded",
752
+ Handovered = "Handovered"
753
+ }
754
+ declare enum AttendanceMethod {
755
+ None = "None",
756
+ QRCode = "QRCode",
757
+ NFC = "NFC",
758
+ ParentAppCode = "ParentAppCode",
759
+ OTP = "OTP",
760
+ Photo = "Photo",
761
+ Manual = "Manual"
762
+ }
731
763
  declare enum HolidayType {
732
764
  FullDay = "FullDay",
733
765
  HalfDay = "HalfDay"
@@ -835,4 +867,4 @@ declare enum APIAuthType {
835
867
  BASIC_AUTH = "BASIC_AUTH"
836
868
  }
837
869
 
838
- export { APIAuthType, AdminRole, AlertSubType, AlertType, ApprovalStatus, BillingStatus, BloodGroup, BooleanType, BusLeg, BusStopType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, DriverType, ExecutionStatus, ExpenseCategory, ExpiryType, FileType, FleetSize, FleetVendorAddressLabel, FuelTankType, GPSFuelApproveStatus, GPSSource, GPSType, GPSVehicleCategory, Gender, GeofencePurposeType, GeofenceStatusType, GeofenceType, HolidayType, IncidentRoadType, IncidentTime, IncidentVisibility, IncidentWeather, InspectionActionStatus, InspectionPriority, InspectionScheduleStatus, InspectionStatus, InspectionType, InvoiceStatus, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoanInterestType, LoginFrom, MenuType, Module, NightDriving, NotificationChannel, NotificationList, NotificationPreference, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReminderType, ReportChannel, ReportList, ReportType, RequestType, RetreadingMethod, RunType, ScheduleStatus, ScheduleType, ServiceScheduleStatus, ServiceStatus, ServiceType, ShareChannel, SimStatus, Status, SteeringType, StockType, StudentLeaveType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TransportPlanType, TyreStatus, VehicleLifeStatus, VerifyStatus, WheelDriveType, YesNo };
870
+ export { APIAuthType, AdminRole, AlertSubType, AlertType, ApprovalStatus, AttendanceMethod, BillingStatus, BloodGroup, BooleanType, BusLeg, BusStopType, DayRunRunningStatus, DayRunStatus, DayRunStopStatus, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, DriverType, ExecutionStatus, ExpenseCategory, ExpiryType, FileType, FleetSize, FleetVendorAddressLabel, FuelTankType, GPSFuelApproveStatus, GPSSource, GPSType, GPSVehicleCategory, Gender, GeofencePurposeType, GeofenceStatusType, GeofenceType, HolidayType, IncidentRoadType, IncidentTime, IncidentVisibility, IncidentWeather, InspectionActionStatus, InspectionPriority, InspectionScheduleStatus, InspectionStatus, InspectionType, InvoiceStatus, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoanInterestType, LoginFrom, MenuType, Module, NightDriving, NotificationChannel, NotificationList, NotificationPreference, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReminderType, ReportChannel, ReportList, ReportType, RequestType, RetreadingMethod, RunType, ScheduleStatus, ScheduleType, ServiceScheduleStatus, ServiceStatus, ServiceType, ShareChannel, SimStatus, Status, SteeringType, StockType, StudentLeaveType, StudentLegStatus, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TransportPlanType, TyreStatus, VehicleLifeStatus, VerifyStatus, WheelDriveType, YesNo };
@@ -820,6 +820,43 @@ var StudentLeaveType = /* @__PURE__ */ ((StudentLeaveType2) => {
820
820
  StudentLeaveType2["DropOnly"] = "DropOnly";
821
821
  return StudentLeaveType2;
822
822
  })(StudentLeaveType || {});
823
+ var DayRunStatus = /* @__PURE__ */ ((DayRunStatus2) => {
824
+ DayRunStatus2["Planned"] = "Planned";
825
+ DayRunStatus2["InProgress"] = "InProgress";
826
+ DayRunStatus2["Completed"] = "Completed";
827
+ DayRunStatus2["Cancelled"] = "Cancelled";
828
+ return DayRunStatus2;
829
+ })(DayRunStatus || {});
830
+ var DayRunRunningStatus = /* @__PURE__ */ ((DayRunRunningStatus2) => {
831
+ DayRunRunningStatus2["OnTime"] = "OnTime";
832
+ DayRunRunningStatus2["Delayed"] = "Delayed";
833
+ return DayRunRunningStatus2;
834
+ })(DayRunRunningStatus || {});
835
+ var DayRunStopStatus = /* @__PURE__ */ ((DayRunStopStatus2) => {
836
+ DayRunStopStatus2["Pending"] = "Pending";
837
+ DayRunStopStatus2["Arrived"] = "Arrived";
838
+ DayRunStopStatus2["Departed"] = "Departed";
839
+ DayRunStopStatus2["Skipped"] = "Skipped";
840
+ return DayRunStopStatus2;
841
+ })(DayRunStopStatus || {});
842
+ var StudentLegStatus = /* @__PURE__ */ ((StudentLegStatus2) => {
843
+ StudentLegStatus2["Planned"] = "Planned";
844
+ StudentLegStatus2["PlannedAbsent"] = "PlannedAbsent";
845
+ StudentLegStatus2["UnplannedAbsent"] = "UnplannedAbsent";
846
+ StudentLegStatus2["Boarded"] = "Boarded";
847
+ StudentLegStatus2["Handovered"] = "Handovered";
848
+ return StudentLegStatus2;
849
+ })(StudentLegStatus || {});
850
+ var AttendanceMethod = /* @__PURE__ */ ((AttendanceMethod2) => {
851
+ AttendanceMethod2["None"] = "None";
852
+ AttendanceMethod2["QRCode"] = "QRCode";
853
+ AttendanceMethod2["NFC"] = "NFC";
854
+ AttendanceMethod2["ParentAppCode"] = "ParentAppCode";
855
+ AttendanceMethod2["OTP"] = "OTP";
856
+ AttendanceMethod2["Photo"] = "Photo";
857
+ AttendanceMethod2["Manual"] = "Manual";
858
+ return AttendanceMethod2;
859
+ })(AttendanceMethod || {});
823
860
  var HolidayType = /* @__PURE__ */ ((HolidayType2) => {
824
861
  HolidayType2["FullDay"] = "FullDay";
825
862
  HolidayType2["HalfDay"] = "HalfDay";
@@ -947,11 +984,15 @@ export {
947
984
  AlertSubType,
948
985
  AlertType,
949
986
  ApprovalStatus,
987
+ AttendanceMethod,
950
988
  BillingStatus,
951
989
  BloodGroup,
952
990
  BooleanType,
953
991
  BusLeg,
954
992
  BusStopType,
993
+ DayRunRunningStatus,
994
+ DayRunStatus,
995
+ DayRunStopStatus,
955
996
  DeviceStatus,
956
997
  DeviceType,
957
998
  DocumentStatus,
@@ -1039,6 +1080,7 @@ export {
1039
1080
  SteeringType,
1040
1081
  StockType,
1041
1082
  StudentLeaveType,
1083
+ StudentLegStatus,
1042
1084
  TicketStatus,
1043
1085
  TimeSlot,
1044
1086
  TrackHistoryLinkStatus,
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  user_id: string;
24
24
  organisation_id: string;
25
- login_from: LoginFrom;
26
25
  country_id: string;
26
+ login_from: LoginFrom;
27
27
  os_details: Record<string, any>;
28
28
  ip_details: Record<string, any>;
29
29
  }, {
30
30
  user_id: string;
31
31
  organisation_id: string;
32
- login_from: LoginFrom;
33
32
  country_id: string;
33
+ login_from: LoginFrom;
34
34
  os_details?: Record<string, any> | undefined;
35
35
  ip_details?: Record<string, any> | undefined;
36
36
  }>;
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
48
48
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
49
49
  country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
+ login_from: LoginFrom;
51
52
  search: string;
52
53
  paging: PAGING;
53
54
  page_count: number;
54
55
  page_index: number;
55
- login_from: LoginFrom;
56
56
  date_format_id: string;
57
57
  time_zone_id: string;
58
58
  user_ids: string[];
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
43
43
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
44
44
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
+ login_from: LoginFrom;
46
47
  search: string;
47
48
  paging: PAGING;
48
49
  page_count: number;
49
50
  page_index: number;
50
- login_from: LoginFrom;
51
51
  date_format_id: string;
52
52
  time_zone_id: string;
53
53
  user_ids: string[];
@@ -1,6 +1,6 @@
1
1
  import '../../core/Enums.js';
2
2
  import '../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { A0 as BookMark, A2 as BookMarkDTO, A4 as BookMarkQueryDTO, A3 as BookMarkQuerySchema, A1 as BookMarkSchema, A8 as createBookMark, Aa as deleteBookMark, A7 as findBookMarks, A6 as newBookMarkPayload, A5 as toBookMarkPayload, A9 as updateBookMark } from '../../bookmark_service-DcstEM-v.js';
4
+ export { zJ as BookMark, zL as BookMarkDTO, zN as BookMarkQueryDTO, zM as BookMarkQuerySchema, zK as BookMarkSchema, zR as createBookMark, zT as deleteBookMark, zQ as findBookMarks, zP as newBookMarkPayload, zO as toBookMarkPayload, zS as updateBookMark } from '../../bookmark_service-CL4_vRjh.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-DcstEM-v.js';
5
+ import { U as UserOrganisation, M as MasterMainCurrency } from '../../bookmark_service-CL4_vRjh.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-DcstEM-v.js';
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-CL4_vRjh.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-DcstEM-v.js';
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-CL4_vRjh.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-DcstEM-v.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-CL4_vRjh.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-DcstEM-v.js';
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-CL4_vRjh.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 { xB as OrganisationCalendar, xD as OrganisationCalendarDTO, xF as OrganisationCalendarQueryDTO, xE as OrganisationCalendarQuerySchema, xC as OrganisationCalendarSchema, xJ as createOrganisationCalendar, xL as deleteOrganisationCalendar, xI as findOrganisationCalendar, xH as newOrganisationCalendarPayload, xG as toOrganisationCalendarPayload, xK as updateOrganisationCalendar } from '../../../bookmark_service-DcstEM-v.js';
4
+ export { xi as OrganisationCalendar, xk as OrganisationCalendarDTO, xm as OrganisationCalendarQueryDTO, xl as OrganisationCalendarQuerySchema, xj as OrganisationCalendarSchema, xq as createOrganisationCalendar, xs as deleteOrganisationCalendar, xp as findOrganisationCalendar, xo as newOrganisationCalendarPayload, xn as toOrganisationCalendarPayload, xr as updateOrganisationCalendar } from '../../../bookmark_service-CL4_vRjh.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -0,0 +1,6 @@
1
+ import '../../../core/Enums.js';
2
+ export { qW as FixedScheduleDayRun, qX as FixedScheduleDayRunStop, qY as FixedScheduleDayRunStudent } from '../../../bookmark_service-CL4_vRjh.js';
3
+ import '../../../core/BaseResponse.js';
4
+ import 'zod';
5
+ import '../../../zod_utils/zod_base_schema.js';
6
+ import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
File without changes
@@ -1,6 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { qW as MasterRoute, qZ as MasterRouteDTO, rf as MasterRouteJourneyTimeDTO, re as MasterRouteJourneyTimeSchema, q$ as MasterRouteQueryDTO, q_ as MasterRouteQuerySchema, qY as MasterRouteSchema, qX as MasterRouteStop, r5 as MasterRouteStopCreateDTO, r4 as MasterRouteStopCreateSchema, r1 as MasterRouteStopDTO, rc as MasterRouteStopDeleteAllSchema, rd as MasterRouteStopDeleteDTO, rb as MasterRouteStopDeleteReOrderDTO, ra as MasterRouteStopDeleteSchema, r6 as MasterRouteStopIds, r7 as MasterRouteStopIdsDTO, r9 as MasterRouteStopReorderDTO, r8 as MasterRouteStopReorderSchema, r0 as MasterRouteStopSchema, r3 as MasterRouteStopUpdateDTO, r2 as MasterRouteStopUpdateSchema, rm as appendRouteStop, rj as createMasterRoute, rl as deleteMasterRoute, rq as deleteRouteStopReorder, rp as deleteRouteStopsAll, ri as findMasterRoute, rh as newMasterRoutePayload, ro as reorderRouteStops, rg as toMasterRoutePayload, rk as updateMasterRoute, rn as updateRouteStop, rr as update_journey_time } from '../../../bookmark_service-DcstEM-v.js';
4
+ export { qZ as MasterRoute, r0 as MasterRouteDTO, ri as MasterRouteJourneyTimeDTO, rh as MasterRouteJourneyTimeSchema, r2 as MasterRouteQueryDTO, r1 as MasterRouteQuerySchema, q$ as MasterRouteSchema, q_ as MasterRouteStop, r8 as MasterRouteStopCreateDTO, r7 as MasterRouteStopCreateSchema, r4 as MasterRouteStopDTO, rf as MasterRouteStopDeleteAllSchema, rg as MasterRouteStopDeleteDTO, re as MasterRouteStopDeleteReOrderDTO, rd as MasterRouteStopDeleteSchema, r9 as MasterRouteStopIds, ra as MasterRouteStopIdsDTO, rc as MasterRouteStopReorderDTO, rb as MasterRouteStopReorderSchema, r3 as MasterRouteStopSchema, r6 as MasterRouteStopUpdateDTO, r5 as MasterRouteStopUpdateSchema, rp as appendRouteStop, rm as createMasterRoute, ro as deleteMasterRoute, rs as deleteRouteStopReorder, rt as deleteRouteStopsAll, rl as findMasterRoute, rv as findRouteStopCache, rk as newMasterRoutePayload, rr as reorderRouteStops, rj as toMasterRoutePayload, rn as updateMasterRoute, rq as updateRouteStop, ru as update_journey_time } from '../../../bookmark_service-CL4_vRjh.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.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;
@@ -285,9 +289,10 @@ var ENDPOINTS = {
285
289
  append_route_stop: `${URL}/append_route_stop`,
286
290
  update_route_stop: (id) => `${URL}/update_route_stop/${id}`,
287
291
  reorder_route_stops: `${URL}/reorder_route_stops`,
288
- delete_route_stops_all: `${URL}/delete_route_stops_all`,
289
292
  delete_route_stop_reorder: `${URL}/delete_route_stop_reorder`,
290
- update_journey_time: `${URL}/update_journey_time`
293
+ delete_route_stops_all: `${URL}/delete_route_stops_all`,
294
+ update_journey_time: `${URL}/update_journey_time`,
295
+ find_route_stop_cache: (route_id) => `${URL}/route_stop/cache/${route_id}`
291
296
  };
292
297
  var MasterRouteSchema = z3.object({
293
298
  // Relations - Parent
@@ -299,10 +304,6 @@ var MasterRouteSchema = z3.object({
299
304
  route_name: stringMandatory("Route Name", 3, 100),
300
305
  route_notes: stringOptional("Route Notes", 0, 500),
301
306
  route_status: enumMandatory("Route Status", Status, "Active" /* Active */),
302
- pickup_journey_time_in_minutes: numberOptional(
303
- "Pickup Journey Time In Minutes"
304
- ),
305
- drop_journey_time_in_minutes: numberOptional("Drop Journey Time In Minutes"),
306
307
  // Stops Info
307
308
  pickup_start_stop_id: single_select_optional("Pickup_Start_BusStop"),
308
309
  // Single-Selection -> BusStop
@@ -391,8 +392,6 @@ var toMasterRoutePayload = (row) => ({
391
392
  route_name: row.route_name || "",
392
393
  route_notes: row.route_notes || "",
393
394
  route_status: row.route_status || "Active" /* Active */,
394
- pickup_journey_time_in_minutes: row.pickup_journey_time_in_minutes || 0,
395
- drop_journey_time_in_minutes: row.drop_journey_time_in_minutes || 0,
396
395
  pickup_start_stop_id: row.pickup_start_stop_id || "",
397
396
  pickup_end_stop_id: row.pickup_end_stop_id || "",
398
397
  drop_start_stop_id: row.drop_start_stop_id || "",
@@ -405,8 +404,6 @@ var newMasterRoutePayload = () => ({
405
404
  route_name: "",
406
405
  route_notes: "",
407
406
  route_status: "Active" /* Active */,
408
- pickup_journey_time_in_minutes: 0,
409
- drop_journey_time_in_minutes: 0,
410
407
  pickup_start_stop_id: "",
411
408
  pickup_end_stop_id: "",
412
409
  drop_start_stop_id: "",
@@ -434,14 +431,17 @@ var updateRouteStop = async (id, data) => {
434
431
  var reorderRouteStops = async (data) => {
435
432
  return apiPost(ENDPOINTS.reorder_route_stops, data);
436
433
  };
437
- var deleteRouteStopsAll = async (data) => {
438
- return apiPost(ENDPOINTS.delete_route_stops_all, data);
439
- };
440
434
  var deleteRouteStopReorder = async (data) => {
441
435
  return apiPost(ENDPOINTS.delete_route_stop_reorder, data);
442
436
  };
437
+ var deleteRouteStopsAll = async (data) => {
438
+ return apiPost(ENDPOINTS.delete_route_stops_all, data);
439
+ };
443
440
  var update_journey_time = async (data) => {
444
- return apiPost(ENDPOINTS.update_journey_time, data);
441
+ return apiPatch(ENDPOINTS.update_journey_time, data);
442
+ };
443
+ var findRouteStopCache = async (route_id) => {
444
+ return apiGet(ENDPOINTS.find_route_stop_cache(route_id));
445
445
  };
446
446
  export {
447
447
  MasterRouteJourneyTimeSchema,
@@ -460,6 +460,7 @@ export {
460
460
  deleteRouteStopReorder,
461
461
  deleteRouteStopsAll,
462
462
  findMasterRoute,
463
+ findRouteStopCache,
463
464
  newMasterRoutePayload,
464
465
  reorderRouteStops,
465
466
  toMasterRoutePayload,
@@ -1,6 +1,6 @@
1
1
  import '../../../core/Enums.js';
2
2
  import '../../../core/BaseResponse.js';
3
3
  import 'zod';
4
- export { sZ as MasterFixedSchedule, t0 as MasterFixedScheduleDTO, t2 as MasterFixedScheduleQueryDTO, t1 as MasterFixedScheduleQuerySchema, s$ as MasterFixedScheduleSchema, s_ as MasterRouteStudent, t8 as MasterRouteStudentAssignRemoveDTO, t7 as MasterRouteStudentAssignRemoveSchema, tc as MasterRouteStudentScheduleAssignRemoveDTO, tb as MasterRouteStudentScheduleAssignRemoveSchema, ta as MasterRouteStudentStopAssignRemoveDTO, t9 as MasterRouteStudentStopAssignRemoveSchema, t6 as StudentNoScheduleQueryDTO, t5 as StudentNoScheduleQuerySchema, t4 as StudentNoStopQueryDTO, t3 as StudentNoStopQuerySchema, ty as assignMasterRouteStudentScheduleToStudentDrop, tx as assignMasterRouteStudentScheduleToStudentsPickup, tu as assignMasterRouteStudentStopToStudentsDrop, tt as assignMasterRouteStudentStopToStudentsPickup, tq as assignRouteStudentsDrop, tp as assignRouteStudentsPickup, ti as createMasterFixedSchedule, tk as deleteMasterFixedSchedule, th as findMasterFixedSchedule, to as findStudentsWithNoScheduleDrop, tn as findStudentsWithNoSchedulePickup, tm as findStudentsWithNoStopDrop, tl as findStudentsWithNoStopPickup, te as newMasterFixedSchedulePayload, tg as newMasterRouteStudentAssignPayload, tA as removeMasterRouteStudentScheduleToStudentDrop, tz as removeMasterRouteStudentScheduleToStudentPickup, tw as removeMasterRouteStudentStopToStudentsDrop, tv as removeMasterRouteStudentStopToStudentsPickup, ts as removeRouteStudentsDrop, tr as removeRouteStudentsPickup, td as toMasterFixedSchedulePayload, tf as toMasterRouteStudentAssignPayload, tj as updateMasterFixedSchedule } from '../../../bookmark_service-DcstEM-v.js';
4
+ export { t4 as AssignFixedScheduleToStudentsDTO, t3 as AssignFixedScheduleToStudentsSchema, sZ as MasterFixedSchedule, t0 as MasterFixedScheduleDTO, t2 as MasterFixedScheduleQueryDTO, t1 as MasterFixedScheduleQuerySchema, s$ as MasterFixedScheduleSchema, s_ as MasterFixedScheduleStudent, t6 as RemoveFixedScheduleToStudentsDTO, t5 as RemoveFixedScheduleToStudentsSchema, t8 as UpdateStopDTO, t7 as UpdateStopSchema, tf as assignFixedScheduleToStudents, tc as createMasterFixedSchedule, te as deleteMasterFixedSchedule, tb as findMasterFixedSchedule, ta as newMasterFixedSchedulePayload, tg as removeFixedScheduleToStudents, t9 as toMasterFixedSchedulePayload, td as updateMasterFixedSchedule, th as updateStop } from '../../../bookmark_service-CL4_vRjh.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
@@ -55,6 +55,20 @@ var stringArrayOptional = (fieldName, min = 0, max = 100, defaultValue = [], uni
55
55
  }
56
56
  return schema.optional().default(defaultValue);
57
57
  };
58
+ var numberMandatory = (fieldName, min = 1, max = 1e14, defaultValue = 0) => {
59
+ return z.preprocess(
60
+ (val) => {
61
+ if (val === null || val === void 0 || val === "") {
62
+ return defaultValue;
63
+ }
64
+ if (typeof val === "string" && !isNaN(Number(val))) {
65
+ return Number(val);
66
+ }
67
+ return val;
68
+ },
69
+ 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}.`)
70
+ );
71
+ };
58
72
  var numberOptional = (fieldName, min = 0, max = 1e14, defaultValue = 0) => {
59
73
  return z.preprocess(
60
74
  (val) => typeof val === "string" && val.trim() !== "" ? Number(val) : val,
@@ -261,27 +275,13 @@ var MongoBaseQuerySchema = z2.object({
261
275
  var URL = "master_schedule";
262
276
  var ENDPOINTS = {
263
277
  // MasterFixedSchedule APIs
264
- find_schedule: `${URL}/schedule/search`,
265
- create_schedule: `${URL}/schedule`,
266
- update_schedule: (id) => `${URL}/schedule/${id}`,
267
- remove_schedule: (id) => `${URL}/schedule/${id}`,
268
- // MasterRouteStudent assign/unassign APIs
269
- find_students_with_no_stop_pickup: `${URL}/students_with_no_stop_pickup/search`,
270
- find_students_with_no_stop_drop: `${URL}/students_with_no_stop_drop/search`,
271
- find_students_with_no_schedule_pickup: `${URL}/students_with_no_schedule_pickup/search`,
272
- find_students_with_no_schedule_drop: `${URL}/students_with_no_schedule_drop/search`,
273
- assign_route_students_pickup: `${URL}/assign_route_students_pickup`,
274
- assign_route_students_drop: `${URL}/assign_route_students_drop`,
275
- remove_route_students_pickup: `${URL}/remove_route_students_pickup`,
276
- remove_route_students_drop: `${URL}/remove_route_students_drop`,
277
- assign_master_route_student_stop_to_students_pickup: `${URL}/assign_master_route_student_stop_to_students_pickup`,
278
- assign_master_route_student_stop_to_students_drop: `${URL}/assign_master_route_student_stop_to_students_drop`,
279
- remove_master_route_student_stop_to_students_pickup: `${URL}/remove_master_route_student_stop_to_students_pickup`,
280
- remove_master_route_student_stop_to_students_drop: `${URL}/remove_master_route_student_stop_to_students_drop`,
281
- assign_master_route_student_schedule_to_students_pickup: `${URL}/assign_master_route_student_schedule_to_students_pickup`,
282
- assign_master_route_student_schedule_to_students_drop: `${URL}/assign_master_route_student_schedule_to_students_drop`,
283
- remove_master_route_student_schedule_to_students_pickup: `${URL}/remove_master_route_student_schedule_to_students_pickup`,
284
- remove_master_route_student_schedule_to_students_drop: `${URL}/remove_master_route_student_schedule_to_students_drop`
278
+ find_schedule: `${URL}/fixed_schedule/search`,
279
+ create_schedule: `${URL}/fixed_schedule`,
280
+ update_schedule: (id) => `${URL}/fixed_schedule/${id}`,
281
+ remove_schedule: (id) => `${URL}/fixed_schedule/${id}`,
282
+ assign_fixed_schedule_to_students: `${URL}/fixed_schedule/assign_fixed_schedule_to_students`,
283
+ remove_fixed_schedule_to_students: `${URL}/fixed_schedule/remove_fixed_schedule_to_students`,
284
+ update_stop: `${URL}/fixed_schedule/update_stop`
285
285
  };
286
286
  var MasterFixedScheduleSchema = z3.object({
287
287
  organisation_id: single_select_mandatory("UserOrganisation"),
@@ -290,7 +290,7 @@ var MasterFixedScheduleSchema = z3.object({
290
290
  // Single-Selection -> OrganisationBranch
291
291
  route_id: single_select_mandatory("MasterRoute"),
292
292
  // Single-Selection -> MasterRoute
293
- vehicle_id: single_select_optional("MasterVehicle"),
293
+ vehicle_id: single_select_mandatory("MasterVehicle"),
294
294
  // Single-Selection -> MasterVehicle
295
295
  driver_id: single_select_optional("Driver"),
296
296
  // Single-Selection -> MasterDriver
@@ -298,10 +298,10 @@ var MasterFixedScheduleSchema = z3.object({
298
298
  // Single-Selection -> MasterDriver
299
299
  schedule_name: stringMandatory("Schedule Name", 3, 100),
300
300
  schedule_status: enumMandatory("Schedule Status", Status, "Active" /* Active */),
301
- is_stops_finalized: enumMandatory("Is Stops Finalized", YesNo, "No" /* No */),
302
301
  schedule_type: enumMandatory("Schedule Type", BusLeg, "Pickup" /* Pickup */),
303
- start_time: stringMandatory("Start Time"),
304
- end_time: stringMandatory("End Time"),
302
+ max_seating_count: numberMandatory("Max Seating Count"),
303
+ start_time: stringOptional("Start Time"),
304
+ end_time: stringOptional("End Time"),
305
305
  schedule_plan_start_date: dateOptional("Schedule Plan Start Date"),
306
306
  schedule_plan_end_date: dateOptional("Schedule Plan End Date"),
307
307
  sunday: enumMandatory("Sunday", YesNo, "No" /* No */),
@@ -316,6 +316,10 @@ var MasterFixedScheduleSchema = z3.object({
316
316
  time_zone_id: single_select_mandatory("MasterMainTimeZone")
317
317
  });
318
318
  var MasterFixedScheduleQuerySchema = BaseQuerySchema.extend({
319
+ // Self Table
320
+ fixed_schedule_ids: multi_select_optional("MasterFixedSchedule"),
321
+ // Multi-selection -> MasterFixedSchedule
322
+ // Relations - Parent
319
323
  organisation_ids: multi_select_optional("UserOrganisation"),
320
324
  // Multi-selection -> UserOrganisation
321
325
  organisation_branch_ids: multi_select_optional("OrganisationBranch"),
@@ -328,53 +332,31 @@ var MasterFixedScheduleQuerySchema = BaseQuerySchema.extend({
328
332
  // Multi-selection -> MasterDriver
329
333
  attendant_ids: multi_select_optional("Attendant"),
330
334
  // Multi-selection -> MasterDriver
331
- fixed_schedule_ids: multi_select_optional("MasterFixedSchedule"),
332
- // Multi-selection -> MasterFixedSchedule
335
+ // Enums
333
336
  schedule_status: enumArrayOptional(
334
337
  "Schedule Status",
335
338
  Status,
336
339
  getAllEnums(Status)
337
340
  ),
338
- is_stops_finalized: enumArrayOptional(
339
- "Is Stops Finalized",
340
- YesNo,
341
- getAllEnums(YesNo)
342
- ),
343
341
  schedule_type: enumArrayOptional(
344
342
  "Schedule Type",
345
343
  BusLeg,
346
344
  getAllEnums(BusLeg)
347
345
  )
348
346
  });
349
- var StudentNoStopQuerySchema = BaseQuerySchema.extend({
350
- route_id: single_select_mandatory("MasterRoute")
351
- // Single-Selection -> MasterRoute
352
- });
353
- var StudentNoScheduleQuerySchema = BaseQuerySchema.extend({
354
- route_id: single_select_mandatory("MasterRoute")
355
- // Single-Selection -> MasterRoute
356
- });
357
- var MasterRouteStudentAssignRemoveSchema = z3.object({
358
- route_id: single_select_mandatory("MasterRoute"),
359
- // Single-Selection -> MasterRoute
347
+ var AssignFixedScheduleToStudentsSchema = z3.object({
348
+ fixed_schedule_id: single_select_mandatory("MasterFixedSchedule"),
360
349
  student_ids: multi_select_optional("Student")
361
- // Multi selection -> Student
362
350
  });
363
- var MasterRouteStudentStopAssignRemoveSchema = z3.object({
364
- route_id: single_select_mandatory("MasterRoute"),
365
- // Single-Selection -> MasterRoute
366
- route_stop_id: single_select_mandatory("MasterRouteStop"),
367
- // Single-Selection -> MasterRouteStop
368
- route_student_ids: multi_select_optional("MasterRouteStudent")
369
- // Multi selection -> MasterRouteStudent
370
- });
371
- var MasterRouteStudentScheduleAssignRemoveSchema = z3.object({
372
- route_id: single_select_mandatory("MasterRoute"),
373
- // Single-Selection -> MasterRoute
351
+ var RemoveFixedScheduleToStudentsSchema = z3.object({
374
352
  fixed_schedule_id: single_select_mandatory("MasterFixedSchedule"),
375
- // Single-Selection -> MasterFixedSchedule
376
- route_student_ids: multi_select_optional("MasterRouteStudent")
377
- // Multi selection -> MasterRouteStudent
353
+ student_ids: multi_select_optional("Student")
354
+ });
355
+ var UpdateStopSchema = z3.object({
356
+ fixed_schedule_student_id: single_select_mandatory(
357
+ "MasterFixedScheduleStudent"
358
+ ),
359
+ route_stop_id: single_select_mandatory("MasterRouteStop")
378
360
  });
379
361
  var toMasterFixedSchedulePayload = (row) => ({
380
362
  organisation_id: row.organisation_id || "",
@@ -385,8 +367,8 @@ var toMasterFixedSchedulePayload = (row) => ({
385
367
  attendant_id: row.attendant_id || "",
386
368
  schedule_name: row.schedule_name || "",
387
369
  schedule_status: row.schedule_status || "Active" /* Active */,
388
- is_stops_finalized: row.is_stops_finalized || "No" /* No */,
389
370
  schedule_type: row.schedule_type || "Pickup" /* Pickup */,
371
+ max_seating_count: row.max_seating_count || 0,
390
372
  start_time: row.start_time || "00:00",
391
373
  end_time: row.end_time || "00:00",
392
374
  schedule_plan_start_date: row.schedule_plan_start_date || "",
@@ -408,8 +390,8 @@ var newMasterFixedSchedulePayload = () => ({
408
390
  organisation_branch_id: "",
409
391
  schedule_name: "",
410
392
  schedule_status: "Active" /* Active */,
411
- is_stops_finalized: "No" /* No */,
412
393
  schedule_type: "Pickup" /* Pickup */,
394
+ max_seating_count: 0,
413
395
  start_time: "00:00",
414
396
  end_time: "00:00",
415
397
  schedule_plan_start_date: "",
@@ -428,14 +410,6 @@ var newMasterFixedSchedulePayload = () => ({
428
410
  time_zone_id: ""
429
411
  // Needs to be provided manually
430
412
  });
431
- var toMasterRouteStudentAssignPayload = (row) => ({
432
- route_id: row.route_id || "",
433
- student_ids: []
434
- });
435
- var newMasterRouteStudentAssignPayload = () => ({
436
- route_id: "",
437
- student_ids: []
438
- });
439
413
  var findMasterFixedSchedule = async (data) => {
440
414
  return apiPost(ENDPOINTS.find_schedule, data);
441
415
  };
@@ -448,84 +422,28 @@ var updateMasterFixedSchedule = async (id, data) => {
448
422
  var deleteMasterFixedSchedule = async (id) => {
449
423
  return apiDelete(ENDPOINTS.remove_schedule(id));
450
424
  };
451
- var findStudentsWithNoStopPickup = async (data) => {
452
- return apiPost(ENDPOINTS.find_students_with_no_stop_pickup, data);
453
- };
454
- var findStudentsWithNoStopDrop = async (data) => {
455
- return apiPost(ENDPOINTS.find_students_with_no_stop_drop, data);
456
- };
457
- var findStudentsWithNoSchedulePickup = async (data) => {
458
- return apiPost(ENDPOINTS.find_students_with_no_schedule_pickup, data);
459
- };
460
- var findStudentsWithNoScheduleDrop = async (data) => {
461
- return apiPost(ENDPOINTS.find_students_with_no_schedule_drop, data);
462
- };
463
- var assignRouteStudentsPickup = async (data) => {
464
- return apiPost(ENDPOINTS.assign_route_students_pickup, data);
465
- };
466
- var assignRouteStudentsDrop = async (data) => {
467
- return apiPost(ENDPOINTS.assign_route_students_drop, data);
468
- };
469
- var removeRouteStudentsPickup = async (data) => {
470
- return apiPost(ENDPOINTS.remove_route_students_pickup, data);
471
- };
472
- var removeRouteStudentsDrop = async (data) => {
473
- return apiPost(ENDPOINTS.remove_route_students_drop, data);
474
- };
475
- var assignMasterRouteStudentStopToStudentsPickup = async (data) => {
476
- return apiPost(ENDPOINTS.assign_master_route_student_stop_to_students_pickup, data);
477
- };
478
- var assignMasterRouteStudentStopToStudentsDrop = async (data) => {
479
- return apiPost(ENDPOINTS.assign_master_route_student_stop_to_students_drop, data);
480
- };
481
- var removeMasterRouteStudentStopToStudentsPickup = async (data) => {
482
- return apiPost(ENDPOINTS.remove_master_route_student_stop_to_students_pickup, data);
483
- };
484
- var removeMasterRouteStudentStopToStudentsDrop = async (data) => {
485
- return apiPost(ENDPOINTS.remove_master_route_student_stop_to_students_drop, data);
486
- };
487
- var assignMasterRouteStudentScheduleToStudentsPickup = async (data) => {
488
- return apiPost(ENDPOINTS.assign_master_route_student_schedule_to_students_pickup, data);
489
- };
490
- var assignMasterRouteStudentScheduleToStudentDrop = async (data) => {
491
- return apiPost(ENDPOINTS.assign_master_route_student_schedule_to_students_drop, data);
425
+ var assignFixedScheduleToStudents = async (data) => {
426
+ return apiPost(ENDPOINTS.assign_fixed_schedule_to_students, data);
492
427
  };
493
- var removeMasterRouteStudentScheduleToStudentPickup = async (data) => {
494
- return apiPost(ENDPOINTS.remove_master_route_student_schedule_to_students_pickup, data);
428
+ var removeFixedScheduleToStudents = async (data) => {
429
+ return apiPost(ENDPOINTS.remove_fixed_schedule_to_students, data);
495
430
  };
496
- var removeMasterRouteStudentScheduleToStudentDrop = async (data) => {
497
- return apiPost(ENDPOINTS.remove_master_route_student_schedule_to_students_drop, data);
431
+ var updateStop = async (data) => {
432
+ return apiPost(ENDPOINTS.update_stop, data);
498
433
  };
499
434
  export {
435
+ AssignFixedScheduleToStudentsSchema,
500
436
  MasterFixedScheduleQuerySchema,
501
437
  MasterFixedScheduleSchema,
502
- MasterRouteStudentAssignRemoveSchema,
503
- MasterRouteStudentScheduleAssignRemoveSchema,
504
- MasterRouteStudentStopAssignRemoveSchema,
505
- StudentNoScheduleQuerySchema,
506
- StudentNoStopQuerySchema,
507
- assignMasterRouteStudentScheduleToStudentDrop,
508
- assignMasterRouteStudentScheduleToStudentsPickup,
509
- assignMasterRouteStudentStopToStudentsDrop,
510
- assignMasterRouteStudentStopToStudentsPickup,
511
- assignRouteStudentsDrop,
512
- assignRouteStudentsPickup,
438
+ RemoveFixedScheduleToStudentsSchema,
439
+ UpdateStopSchema,
440
+ assignFixedScheduleToStudents,
513
441
  createMasterFixedSchedule,
514
442
  deleteMasterFixedSchedule,
515
443
  findMasterFixedSchedule,
516
- findStudentsWithNoScheduleDrop,
517
- findStudentsWithNoSchedulePickup,
518
- findStudentsWithNoStopDrop,
519
- findStudentsWithNoStopPickup,
520
444
  newMasterFixedSchedulePayload,
521
- newMasterRouteStudentAssignPayload,
522
- removeMasterRouteStudentScheduleToStudentDrop,
523
- removeMasterRouteStudentScheduleToStudentPickup,
524
- removeMasterRouteStudentStopToStudentsDrop,
525
- removeMasterRouteStudentStopToStudentsPickup,
526
- removeRouteStudentsDrop,
527
- removeRouteStudentsPickup,
445
+ removeFixedScheduleToStudents,
528
446
  toMasterFixedSchedulePayload,
529
- toMasterRouteStudentAssignPayload,
530
- updateMasterFixedSchedule
447
+ updateMasterFixedSchedule,
448
+ updateStop
531
449
  };