Merge pull request #992 from Tria-plc/freight_feature/usermanagement

Pre-declaration Djibouti GL assignee request flow
This commit is contained in:
marshal
2026-07-28 12:17:50 +03:00
committed by GitHub
18 changed files with 593 additions and 20 deletions

View File

@@ -332,6 +332,18 @@ export const bookingsService = {
return unwrap(response.data) as Freight.ClearanceView;
},
/** GL ET asks Djibouti to name the officer handling the shipment in transit. */
requestTransitAssignee: (id: string, note?: string) =>
postBooking<BookingDetail>(B.CLEARANCE_TRANSIT_ASSIGNEE_REQUEST(id), {
note,
}),
/** GL Djibouti names (or changes) that officer — unblocks the declaration. */
assignTransitAssignee: (id: string, assignee: string) =>
postBooking<BookingDetail>(B.CLEARANCE_TRANSIT_ASSIGNEE_ASSIGN(id), {
assignee,
}),
uploadDeclaration: async (
id: string,
files: Record<string, File | null>,