feat(companies): add Transit Agent service linked to transit-agent roster; forwarder/agent onboarding step, assigned-bookings tab, booking assignment + notify, drop agent validity window

This commit is contained in:
marshal
2026-09-06 21:41:29 +00:00
parent 6d4a919f39
commit 1eb9f10354
67 changed files with 2528 additions and 302 deletions

View File

@@ -5,8 +5,7 @@ import type { ResetChannel } from "../types/shippingLineCompany";
export interface TransitAgent {
id: string;
name: string;
validFrom: string;
validTo: string;
country: "ET" | "DJ";
isActive: boolean;
/** Null on every agent that exists only as a GL-assignable roster entry. */
email?: string | null;
@@ -29,7 +28,7 @@ export interface ActivationSendResult {
}
export const transitAgentsService = {
/** Active + currently inside its validity window — the assignment dropdown. */
/** Every active agent — the assignment dropdown. */
async listAssignable() {
const response = await apiClient.get<TransitAgent[]>(
URL_CONSTANTS.RULE_ENGINE.TRANSIT_AGENTS_ASSIGNABLE,