UNPKG

@geoapify/route-planner-sdk

Version:

TypeScript SDK for the Geoapify Route Planner API. Supports route optimization, delivery planning, and timeline visualization in browser and Node.js

83 lines (82 loc) 3.32 kB
export declare class Violation { readonly agentIndex: number; name: string; message: string; constructor(message: string, agentIndex: number); toString(): string; } export declare class AgentPickupCapacityExceeded extends Violation { readonly totalAmount: number; readonly capacity: number; constructor(message: string, agentIndex: number, totalAmount: number, capacity: number); } export declare class AgentDeliveryCapacityExceeded extends Violation { readonly totalAmount: number; readonly capacity: number; constructor(message: string, agentIndex: number, totalAmount: number, capacity: number); } export declare class AgentMissingCapability extends Violation { readonly missingCapabilities: string[]; constructor(message: string, agentIndex: number, missingCapabilities: string[]); } export declare class TimeWindowViolation extends Violation { constructor(message: string, agentIndex: number); } export declare class BreakViolation extends Violation { constructor(message: string, agentIndex: number); } export declare class InvalidParameter extends Error { parameterName: string; constructor(message: string, parameterName: string); } export declare class AgentNotFound extends Error { agentIdOrIndex?: string | number | undefined; constructor(message: string, agentIdOrIndex?: string | number | undefined); } export declare class JobNotFound extends Error { jobIdOrIndex?: string | number | undefined; constructor(message: string, jobIdOrIndex?: string | number | undefined); } export declare class ShipmentNotFound extends Error { shipmentIdOrIndex?: string | number | undefined; constructor(message: string, shipmentIdOrIndex?: string | number | undefined); } export declare class AgentHasNoPlan extends Error { agentIndex: number; constructor(message: string, agentIndex: number); } export declare class ItemsNotUnique extends Error { itemType: string; constructor(message: string, itemType: string); } export declare class NoItemsProvided extends Error { itemType: string; constructor(message: string, itemType: string); } export declare class ItemAlreadyAssigned extends Error { itemType: string; itemIndex: number; agentIndex: number; constructor(message: string, itemType: string, itemIndex: number, agentIndex: number); } export declare class InvalidInsertionPosition extends Error { agentIndex: number; waypointIndex?: number | undefined; actionId?: string | undefined; constructor(message: string, agentIndex: number, waypointIndex?: number | undefined, actionId?: string | undefined); } export declare class UnknownStrategy extends Error { strategy: string; operationType: 'assign' | 'remove'; constructor(message: string, strategy: string, operationType: 'assign' | 'remove'); } export declare class RouteMatrixApiError extends Error { statusCode?: number | undefined; statusText?: string | undefined; constructor(message: string, statusCode?: number | undefined, statusText?: string | undefined); } export declare class RoutingApiError extends Error { statusCode?: number | undefined; statusText?: string | undefined; constructor(message: string, statusCode?: number | undefined, statusText?: string | undefined); }