mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 05:58:18 +00:00
wagon work space, container validation
This commit is contained in:
@@ -1591,6 +1591,30 @@ export const api = {
|
||||
undefined,
|
||||
() => [["wagons"]],
|
||||
),
|
||||
|
||||
bulkTransfer: endpoint<
|
||||
{ wagonIds: string[]; toYardId: string },
|
||||
{ moved: number }
|
||||
>(
|
||||
"wagons",
|
||||
"bulkTransfer",
|
||||
({ wagonIds, toYardId }) =>
|
||||
wagonService.bulkTransfer(wagonIds, toYardId).then((r) => r.data),
|
||||
undefined,
|
||||
() => [["wagons"]],
|
||||
),
|
||||
|
||||
bulkSetStatus: endpoint<
|
||||
{ wagonIds: string[]; status: Wagon["status"] },
|
||||
{ updated: number }
|
||||
>(
|
||||
"wagons",
|
||||
"bulkSetStatus",
|
||||
({ wagonIds, status }) =>
|
||||
wagonService.bulkSetStatus(wagonIds, status).then((r) => r.data),
|
||||
undefined,
|
||||
() => [["wagons"]],
|
||||
),
|
||||
},
|
||||
|
||||
trains: {
|
||||
|
||||
Reference in New Issue
Block a user