You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
import type { CargoType, UnitDim, UnitWeight } from "@/lib/frontend/types";
|
|
import type { MothershipAddressCandidate } from "@/modules/address/types";
|
|
|
|
export type HostPublicCargoInput = {
|
|
weight: { value: number; unit: UnitWeight };
|
|
dimensions: {
|
|
length: number;
|
|
width: number;
|
|
height: number;
|
|
unit: UnitDim;
|
|
};
|
|
pallet_count: number;
|
|
cargo_type: CargoType;
|
|
};
|
|
|
|
export type HostPublicAddressDraft = {
|
|
street: string;
|
|
city: string;
|
|
state: string;
|
|
zip?: string;
|
|
};
|
|
|
|
export type HostPublicSessionPayload = {
|
|
customer_id: string;
|
|
cargo: HostPublicCargoInput;
|
|
pickup_draft: HostPublicAddressDraft;
|
|
delivery_draft: HostPublicAddressDraft;
|
|
quote_session_id?: string;
|
|
pickup_candidates: MothershipAddressCandidate[];
|
|
delivery_candidates: MothershipAddressCandidate[];
|
|
created_at: string;
|
|
};
|
|
|
|
export type HostPublicCandidatesResponse = {
|
|
host_session_id: string;
|
|
pickup_candidates: MothershipAddressCandidate[];
|
|
delivery_candidates: MothershipAddressCandidate[];
|
|
requires_selection: boolean;
|
|
};
|