mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 08:48:11 +00:00
enhance booking windows section with pagination and improved UI
This commit is contained in:
@@ -21,6 +21,7 @@ import type {
|
||||
LocomotiveRecord,
|
||||
PinWagonsPayload,
|
||||
RecordCheckpointPayload,
|
||||
StaffBookingWindow,
|
||||
TrainScheduleDetail,
|
||||
TrainScheduleFilters,
|
||||
TrainScheduleListItem,
|
||||
@@ -543,6 +544,13 @@ export const trainSchedulingService = {
|
||||
return unwrap(response.data);
|
||||
},
|
||||
|
||||
getAllBookingWindows: async (): Promise<StaffBookingWindow[]> => {
|
||||
const response = await client.get<StaffBookingWindow[]>(
|
||||
URL_CONSTANTS.TRAIN_SCHEDULING.BOOKING_WINDOWS,
|
||||
);
|
||||
return unwrap(response.data);
|
||||
},
|
||||
|
||||
updateGlobalRules: async (
|
||||
payload: Partial<Omit<TrainSchedulingGlobalRules, "id">>,
|
||||
): Promise<TrainSchedulingGlobalRules> => {
|
||||
|
||||
Reference in New Issue
Block a user