mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 08:48:11 +00:00
booking operations and trains scheduling also allocations
This commit is contained in:
@@ -94,6 +94,7 @@ export const URL_CONSTANTS = {
|
||||
STAFF_REQUEST_CHANGES: (id: string) =>
|
||||
`/bookings/${id}/staff/request-changes`,
|
||||
STAFF_REJECT: (id: string) => `/bookings/${id}/staff/reject`,
|
||||
GOVERNMENT_EXPEDITE: (id: string) => `/bookings/${id}/government-expedite`,
|
||||
APPROVE_STEP: (id: string, stepId: string) =>
|
||||
`/bookings/${id}/approval-steps/${stepId}/approve`,
|
||||
REJECT_STEP: (id: string, stepId: string) =>
|
||||
@@ -130,8 +131,40 @@ export const URL_CONSTANTS = {
|
||||
},
|
||||
|
||||
TRAIN_SCHEDULING: {
|
||||
ELIGIBLE_BOOKINGS: "/train-scheduling/container/eligible-bookings",
|
||||
PREVIEW: "/train-scheduling/container/preview",
|
||||
ELIGIBLE_BOOKINGS: "/train-scheduling/eligible-bookings",
|
||||
GLOBAL_RULES: "/train-scheduling/global-rules",
|
||||
PREVIEW: "/train-scheduling/preview",
|
||||
ASSIGN_BOOKINGS: (id: string) => `/train-scheduling/schedules/${id}/assign-bookings`,
|
||||
CONTAINER: {
|
||||
ELIGIBLE_BOOKINGS: "/train-scheduling/container/eligible-bookings",
|
||||
PREVIEW: "/train-scheduling/container/preview",
|
||||
SCHEDULES: "/train-scheduling/container/schedules",
|
||||
SCHEDULE_BY_ID: (id: string) => `/train-scheduling/container/schedules/${id}`,
|
||||
ASSIGN_BOOKINGS: (id: string) =>
|
||||
`/train-scheduling/container/schedules/${id}/assign-bookings`,
|
||||
CANCEL_SCHEDULE: (id: string) =>
|
||||
`/train-scheduling/container/schedules/${id}/cancel`,
|
||||
},
|
||||
BULK: {
|
||||
ELIGIBLE_BOOKINGS: "/train-scheduling/bulk/eligible-bookings",
|
||||
PREVIEW: "/train-scheduling/bulk/preview",
|
||||
SCHEDULES: "/train-scheduling/bulk/schedules",
|
||||
SCHEDULE_BY_ID: (id: string) => `/train-scheduling/bulk/schedules/${id}`,
|
||||
ASSIGN_BOOKINGS: (id: string) =>
|
||||
`/train-scheduling/bulk/schedules/${id}/assign-bookings`,
|
||||
CANCEL_SCHEDULE: (id: string) =>
|
||||
`/train-scheduling/bulk/schedules/${id}/cancel`,
|
||||
},
|
||||
UNASSIGN_BOOKING: (scheduleId: string, bookingId: string) =>
|
||||
`/train-scheduling/schedules/${scheduleId}/bookings/${bookingId}`,
|
||||
PIN_WAGONS: (id: string) => `/train-scheduling/schedules/${id}/pin-wagons`,
|
||||
FINALIZE: (id: string) => `/train-scheduling/schedules/${id}/finalize`,
|
||||
DISPATCH: (id: string) => `/train-scheduling/schedules/${id}/dispatch`,
|
||||
RESCHEDULE_PREVIEW: (id: string) =>
|
||||
`/train-scheduling/schedules/${id}/reschedule/preview`,
|
||||
RESCHEDULE_EXECUTE: (id: string) =>
|
||||
`/train-scheduling/schedules/${id}/reschedule/execute`,
|
||||
MAINTENANCE: (id: string) => `/train-scheduling/schedules/${id}/maintenance`,
|
||||
SCHEDULES: "/train-scheduling/container/schedules",
|
||||
SCHEDULE_BY_ID: (id: string) => `/train-scheduling/container/schedules/${id}`,
|
||||
CANCEL_SCHEDULE: (id: string) =>
|
||||
|
||||
Reference in New Issue
Block a user