@mavenmachines/shipment-types
v1.0.4
Published
Shared shipment-domain event, projection, and view types.
Keywords
Readme
shipment-types
Shared shipment-domain event, projection, and view types.
Shipment Transit Location Projection
ShipmentTransitLocationProjectionPayload represents the latest transit
location for a shipment, excluding the nested facilityLocation object.
{
shipmentId: number;
proNumber?: string;
status: ShipmentStatusEnum;
isOTRToWaypoint: boolean; // false when the shipment is at a waypoint
isFacilityLocationAvailable: boolean;
waypointLocationCode: string;
waypointCompanyLocationId: number;
associatedManifestIds: string[];
updatedAt: string; // UTC ISO date
latestAssociatedManifestId: string | null; // null when not associated with any manifest
}ShipmentTransitFacilityLocationProjectionPayload represents the current
facility location for a shipment when one is available.
{
shipmentId: number;
proNumber?: string;
facilityLocationId?: string;
type: string;
name: string;
updatedAt: string; // UTC ISO date
}