/** * Onfleet Node - Version 1 * Discriminator: resource=team, operation=autoDispatch */ interface Credentials { onfleetApi: CredentialReference; } /** Automatically dispatch tasks assigned to a team to on-duty drivers */ export type OnfleetV1TeamAutoDispatchParams = { resource: 'team'; operation: 'autoDispatch'; /** * The ID of the team object for lookup */ id?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Ending Route * @default {} */ endingRoute?: { /** Ending Route Properties */ endingRouteProperties?: { /** Where the route will end */ routeEnd?: 'team_hub' | 'worker_routing_address' | 'hub' | 'anywhere' | Expression; /** The team's hub. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @displayOptions.show { routeEnd: ["hub"] } */ hub?: string | Expression; }; }; /** Max allowed time in minutes that a task can be late * @default 10 */ maxAllowedDelay?: number | Expression; /** Total number of tasks allowed on a route * @default 100 */ maxTasksPerRoute?: number | Expression; /** Schedule Time Window * @default {} */ scheduleTimeWindow?: { /** Schedule Time Window Properties */ scheduleTimeWindowProperties?: { /** Start Time */ startTime?: string | Expression; /** End Time */ endTime?: string | Expression; }; }; /** The default service time to apply in Minutes to the tasks when no task service time exists * @default 2 */ serviceTime?: number | Expression; /** Task Time Window * @default {} */ taskTimeWindow?: { /** Task Time Window Properties */ taskTimeWindowProperties?: { /** Start Time */ startTime?: string | Expression; /** End Time */ endTime?: string | Expression; }; }; }; }; export type OnfleetV1TeamAutoDispatchNode = { type: 'n8n-nodes-base.onfleet'; version: 1; credentials?: Credentials; config: NodeConfig; };