mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
changes
This commit is contained in:
@@ -258,6 +258,24 @@ export const contractsService = {
|
||||
return data.data ?? data;
|
||||
},
|
||||
|
||||
listBookingRequests: async (id: string): Promise<Freight.IBookingRequest[]> => {
|
||||
const { data } = await client.get(C.BOOKING_REQUESTS(id));
|
||||
return data.data ?? data;
|
||||
},
|
||||
|
||||
submitBookingRequest: async (
|
||||
id: string,
|
||||
dto: Freight.CreateBookingRequestDto,
|
||||
): Promise<Freight.IBookingRequest> => {
|
||||
const { data } = await client.post(C.BOOKING_REQUESTS(id), dto);
|
||||
return data.data ?? data;
|
||||
},
|
||||
|
||||
cancelBookingRequest: async (reqId: string): Promise<Freight.IBookingRequest> => {
|
||||
const { data } = await client.post(C.BOOKING_REQUEST_CANCEL(reqId), {});
|
||||
return data.data ?? data;
|
||||
},
|
||||
|
||||
// ── Booking under contract (Path A customer) ──
|
||||
createBookingUnderContract: async (
|
||||
id: string,
|
||||
|
||||
Reference in New Issue
Block a user