mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
@@ -2,11 +2,9 @@ import type { Freight, PaginatedResponse } from "@edr/types";
|
|||||||
import { endpoint } from "@/utils/endpoint";
|
import { endpoint } from "@/utils/endpoint";
|
||||||
import type {
|
import type {
|
||||||
CreateFileUploadFieldDto,
|
CreateFileUploadFieldDto,
|
||||||
CreateFileUploadSettingDto,
|
|
||||||
FileUploadField,
|
FileUploadField,
|
||||||
FileUploadSetting,
|
FileUploadSetting,
|
||||||
UpdateFileUploadFieldDto,
|
UpdateFileUploadFieldDto,
|
||||||
UpdateFileUploadSettingDto,
|
|
||||||
} from "@/types/fileUploadSettings";
|
} from "@/types/fileUploadSettings";
|
||||||
import {
|
import {
|
||||||
bookingsService,
|
bookingsService,
|
||||||
@@ -236,8 +234,11 @@ export const api = {
|
|||||||
getAvailableDays: endpoint<
|
getAvailableDays: endpoint<
|
||||||
{ originYardId?: string; destinationYardId?: string },
|
{ originYardId?: string; destinationYardId?: string },
|
||||||
string[]
|
string[]
|
||||||
>("train-scheduling", "availableDays", ({ originYardId, destinationYardId }) =>
|
>(
|
||||||
bookingsService.getAvailableDays({ originYardId, destinationYardId }),
|
"train-scheduling",
|
||||||
|
"availableDays",
|
||||||
|
({ originYardId, destinationYardId }) =>
|
||||||
|
bookingsService.getAvailableDays({ originYardId, destinationYardId }),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user