/** * Onfleet Node - Version 1 * Discriminator: resource=worker, operation=update */ interface Credentials { onfleetApi: CredentialReference; } /** Update an Onfleet admin */ export type OnfleetV1WorkerUpdateParams = { resource: 'worker'; operation: 'update'; /** * The ID of the worker object for lookup */ id?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** 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; /** The worker's name */ name?: 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[]; }; }; export type OnfleetV1WorkerUpdateNode = { type: 'n8n-nodes-base.onfleet'; version: 1; credentials?: Credentials; config: NodeConfig; };