/** * Onfleet Node - Version 1 * Discriminator: resource=worker, operation=create */ interface Credentials { onfleetApi: CredentialReference; } /** Create a new Onfleet admin */ export type OnfleetV1WorkerCreateParams = { resource: 'worker'; operation: 'create'; /** * The worker's name */ name?: string | Expression | PlaceholderValue; /** * A list of worker’s phone numbers */ phone?: string | Expression | PlaceholderValue; /** * One or more teams of which the worker is a member. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ teams?: string[]; /** * Additional Fields * @default {} */ additionalFields?: { /** The maximum number of units this worker can carry, for route optimization purposes * @default 0 */ capacity?: number | Expression; /** This value is used in place of the worker's actual name within sms notifications, delivery tracking pages, and across organization boundaries */ displayName?: string | Expression | PlaceholderValue; /** Vehicle * @default {} */ vehicle?: { /** Vehicle Properties */ vehicleProperties?: { /** Whether the worker has vehicle or not. If it's not provided, this worker will be treated as if on foot. */ type?: 'BICYCLE' | 'CAR' | 'MOTORCYCLE' | 'TRUCK' | Expression; /** The vehicle's make, model, year, or any other relevant identifying details */ description?: string | Expression | PlaceholderValue; /** The vehicle's license plate number */ licensePlate?: string | Expression | PlaceholderValue; /** The vehicle's color */ color?: string | Expression | PlaceholderValue; }; }; }; }; export type OnfleetV1WorkerCreateNode = { type: 'n8n-nodes-base.onfleet'; version: 1; credentials?: Credentials; config: NodeConfig; };