mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 06:28:12 +00:00
add goverment booking
This commit is contained in:
@@ -659,6 +659,22 @@ export const api = {
|
||||
() => TRAIN_SCHEDULING_INVALIDATIONS,
|
||||
),
|
||||
|
||||
switchGovernmentBooking: endpoint<
|
||||
{ id: string; governmentBookingId: string; removeBookingIds: string[] },
|
||||
TrainScheduleDetail
|
||||
>(
|
||||
"train-scheduling",
|
||||
"switch-government-booking",
|
||||
({ id, governmentBookingId, removeBookingIds }) =>
|
||||
trainSchedulingService.switchGovernmentBooking(
|
||||
id,
|
||||
governmentBookingId,
|
||||
removeBookingIds,
|
||||
),
|
||||
undefined,
|
||||
() => TRAIN_SCHEDULING_INVALIDATIONS,
|
||||
),
|
||||
|
||||
setLoadingStatus: endpoint<
|
||||
{ id: string; bookingIds: string[]; loadingStatus: LoadingStatus },
|
||||
TrainScheduleDetail
|
||||
|
||||
Reference in New Issue
Block a user