/** * Onfleet Node - Version 1 * Discriminator: resource=task, operation=create */ interface Credentials { onfleetApi: CredentialReference; } /** Create a new Onfleet admin */ export type OnfleetV1TaskCreateParams = { resource: 'task'; operation: 'create'; /** * The ID of the task object for lookup */ id?: string | Expression | PlaceholderValue; /** * Destination * @default {} */ destination?: { /** Destination Properties */ destinationProperties?: { /** Whether or not the address is specified in a single unparsed string * @default false */ unparsed?: boolean | Expression; /** The destination's street address details * @displayOptions.show { unparsed: [true] } */ address?: string | Expression | PlaceholderValue; /** The number component of this address, it may also contain letters * @displayOptions.show { unparsed: [false] } */ addressNumber?: string | Expression | PlaceholderValue; /** The name of the street * @displayOptions.show { unparsed: [false] } */ addressStreet?: string | Expression | PlaceholderValue; /** The name of the municipality * @displayOptions.show { unparsed: [false] } */ addressCity?: string | Expression | PlaceholderValue; /** State * @displayOptions.show { unparsed: [false] } */ addressState?: string | Expression | PlaceholderValue; /** The name of the country * @displayOptions.show { unparsed: [false] } */ addressCountry?: string | Expression | PlaceholderValue; /** The postal or zip code * @displayOptions.show { unparsed: [false] } */ addressPostalCode?: string | Expression | PlaceholderValue; /** A name associated with this address */ addressName?: string | Expression | PlaceholderValue; /** The suite or apartment number, or any additional relevant information */ addressApartment?: string | Expression | PlaceholderValue; /** Notes about the destination */ addressNotes?: string | Expression | PlaceholderValue; }; }; /** * Additional Fields * @default {} */ additionalFields?: { /** The earliest time the task should be completed */ completeAfter?: string | Expression; /** The latest time the task should be completed */ completeBefore?: string | Expression; /** The ID of the organization that will be responsible for fulfilling the task */ executor?: string | Expression | PlaceholderValue; /** The ID of the organization that will be displayed to the recipient of the task */ merchant?: string | Expression | PlaceholderValue; /** Notes for the task */ notes?: string | Expression | PlaceholderValue; /** Whether the task is a pickup task * @default false */ pickupTask?: boolean | Expression; /** The number of units to be dropped off while completing this task, for route optimization purposes * @default 0 */ quantity?: number | Expression; /** Recipient * @default {} */ recipient?: { /** Recipient Properties */ recipientProperties?: { /** The recipient's complete name */ recipientName?: string | Expression | PlaceholderValue; /** A unique, valid phone number as per the organization's country if there's no leading + sign. If a phone number has a leading + sign, it will disregard the organization's country setting. */ recipientPhone?: string | Expression | PlaceholderValue; /** Notes for this recipient: these are global notes that should not be task- or destination-specific */ recipientNotes?: string | Expression | PlaceholderValue; /** Whether this recipient has requested to skip SMS notifications * @default false */ recipientSkipSMSNotifications?: boolean | Expression; }; }; /** Override the recipient name for this task only */ recipientName?: string | Expression | PlaceholderValue; /** Override the recipient notes for this task only */ recipientNotes?: string | Expression | PlaceholderValue; /** Whether to override the recipient notification settings for this task * @default false */ recipientSkipSMSNotifications?: boolean | Expression; /** The number of minutes to be spent by the worker on arrival at this task's destination, for route optimization purposes * @default 0 */ serviceTime?: number | Expression; /** Whether to override the organization ID with the merchant's org ID for this task * @default false */ useMerchantForProxy?: boolean | Expression; }; }; export type OnfleetV1TaskCreateNode = { type: 'n8n-nodes-base.onfleet'; version: 1; credentials?: Credentials; config: NodeConfig; };