import type * as Samsara from "../index.js"; /** * An order task to create or update. */ export interface FleetOrderTaskUpsertInputRequestBody { /** Task-specific customer metadata. */ customerProperties?: Samsara.FleetOrderCustomerPropertyObjectRequestBody[] | undefined; /** Dispatcher-visible note. */ dispatcherNotes?: string | undefined; /** Driver-visible note. */ driverNotes?: string | undefined; /** Hub UUID for this task. Nested route writes derive it from route context when omitted. */ hubId?: string | undefined; /** Existing task ID. Omit to create a task. */ id?: string | undefined; /** Task position constraint. Valid values: `none`, `first`, `last` */ positionConstraintType?: FleetOrderTaskUpsertInputRequestBody.PositionConstraintType | undefined; /** Task quantities. */ quantities?: Samsara.FleetOrderQuantityInputRequestBody[] | undefined; /** Expected service duration in seconds. */ serviceDurationSeconds?: number | undefined; serviceLocation?: Samsara.FleetOrderServiceLocationInputRequestBody | undefined; /** Existing service window UUIDs to retire. */ serviceWindowIdsToRemove?: string[] | undefined; /** Service windows to create or update. */ serviceWindows?: Samsara.FleetOrderServiceWindowUpsertInputRequestBody[] | undefined; /** Task type. Valid values: `delivery`, `pickup`, `pickupDelivery` */ taskType: FleetOrderTaskUpsertInputRequestBody.TaskType; } export declare namespace FleetOrderTaskUpsertInputRequestBody { /** Task position constraint. Valid values: `none`, `first`, `last` */ const PositionConstraintType: { readonly None: "none"; readonly First: "first"; readonly Last: "last"; }; type PositionConstraintType = (typeof PositionConstraintType)[keyof typeof PositionConstraintType]; /** Task type. Valid values: `delivery`, `pickup`, `pickupDelivery` */ const TaskType: { readonly Delivery: "delivery"; readonly Pickup: "pickup"; readonly PickupDelivery: "pickupDelivery"; }; type TaskType = (typeof TaskType)[keyof typeof TaskType]; }