/** * Onfleet Node - Version 1 * Discriminator: resource=team, operation=getTimeEstimates */ interface Credentials { onfleetApi: CredentialReference; } /** Get estimated times for upcoming tasks for a team, returns a selected driver */ export type OnfleetV1TeamGetTimeEstimatesParams = { resource: 'team'; operation: 'getTimeEstimates'; /** * The ID of the team object for lookup */ id?: string | Expression | PlaceholderValue; /** * Filters * @default {} */ filters?: { /** Drop Off * @default {} */ dropOff?: { /** DropOff Properties */ dropOffProperties?: { /** The longitude for drop off location * @default 0 */ dropOffLongitude?: number | Expression; /** The latitude for drop off location * @default 0 */ dropOffLatitude?: number | Expression; }; }; /** Pick Up * @default {} */ pickUp?: { /** Pick Up Properties */ pickUpProperties?: { /** The longitude for pickup location * @default 0 */ pickupLongitude?: number | Expression; /** The latitude for pickup location * @default 0 */ pickupLatitude?: number | Expression; /** If the request includes pickupLocation, pickupTime must be present if the time is fewer than 3 hours in the future */ pickupTime?: string | Expression; }; }; /** Vehicle types to ignore in the query * @default CAR */ restrictedVehicleTypes?: 'CAR' | 'MOTORCYCLE' | 'BICYCLE' | 'TRUCK' | Expression; /** The expected time a worker will take at the pickupLocation, dropoffLocation, or both (as applicable) Unit: seconds * @default 120 */ serviceTime?: number | Expression; }; }; export type OnfleetV1TeamGetTimeEstimatesNode = { type: 'n8n-nodes-base.onfleet'; version: 1; credentials?: Credentials; config: NodeConfig; };