mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 22:58:17 +00:00
Merge branch 'freight/develop' of github.com:Tria-plc/edr-platform into freight_feature/priority
This commit is contained in:
@@ -38,6 +38,7 @@ import {
|
||||
} from "@/types/dropdownSettings";
|
||||
import type {
|
||||
CompanyInfoResponse,
|
||||
CompanyProfileResponse,
|
||||
CreateCompanyPayload,
|
||||
DashboardSummary,
|
||||
} from "./companies.service";
|
||||
@@ -128,14 +129,19 @@ export const api = {
|
||||
"getDashboard",
|
||||
companiesService.getDashboard,
|
||||
),
|
||||
|
||||
addCompanyProfiles: endpoint<{ types: string[] }, CompanyProfileResponse[]>(
|
||||
"companies",
|
||||
"addCompanyProfiles",
|
||||
companiesService.addCompanyProfiles,
|
||||
),
|
||||
},
|
||||
|
||||
bookings: {
|
||||
list: endpoint<BookingListFilter | void, PaginatedResponse<Freight.IBooking>>(
|
||||
"bookings",
|
||||
"list",
|
||||
bookingsService.list,
|
||||
),
|
||||
list: endpoint<
|
||||
BookingListFilter | void,
|
||||
PaginatedResponse<Freight.IBooking>
|
||||
>("bookings", "list", bookingsService.list),
|
||||
|
||||
get: endpoint<{ id: string }, Freight.IBooking>(
|
||||
"bookings",
|
||||
@@ -217,8 +223,14 @@ export const api = {
|
||||
getBookableSchedules: endpoint<
|
||||
{ originYardId?: string; destinationYardId?: string },
|
||||
Freight.BookableScheduleItem[]
|
||||
>("train-scheduling", "bookableSchedules", ({ originYardId, destinationYardId }) =>
|
||||
bookingsService.getBookableSchedules({ originYardId, destinationYardId }),
|
||||
>(
|
||||
"train-scheduling",
|
||||
"bookableSchedules",
|
||||
({ originYardId, destinationYardId }) =>
|
||||
bookingsService.getBookableSchedules({
|
||||
originYardId,
|
||||
destinationYardId,
|
||||
}),
|
||||
),
|
||||
|
||||
getAvailableDays: endpoint<
|
||||
@@ -291,19 +303,6 @@ export const api = {
|
||||
({ entity }) => fileUploadSettingsService.getByEntity(entity),
|
||||
),
|
||||
|
||||
create: endpoint<CreateFileUploadSettingDto, FileUploadSetting>(
|
||||
"file-upload-settings",
|
||||
"create",
|
||||
(payload) => fileUploadSettingsService.create(payload),
|
||||
),
|
||||
|
||||
update: endpoint<
|
||||
{ id: string; dto: UpdateFileUploadSettingDto },
|
||||
FileUploadSetting
|
||||
>("file-upload-settings", "update", ({ id, dto }) =>
|
||||
fileUploadSettingsService.update(id, dto),
|
||||
),
|
||||
|
||||
remove: endpoint<{ id: string }, void>(
|
||||
"file-upload-settings",
|
||||
"remove",
|
||||
|
||||
Reference in New Issue
Block a user