This commit is contained in:
marshal
2026-07-01 20:55:17 +03:00
parent 612df8daff
commit 9c18d086d7
112 changed files with 5654 additions and 1370 deletions

View File

@@ -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,