/** * Onfleet Node - Version 1 * Discriminator: resource=hub, operation=create */ interface Credentials { onfleetApi: CredentialReference; } /** Create a new Onfleet admin */ export type OnfleetV1HubCreateParams = { resource: 'hub'; operation: 'create'; /** * A name to identify the hub */ name?: 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?: { /** These are the teams that this Hub will be assigned to. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ teams?: string[]; }; }; export type OnfleetV1HubCreateNode = { type: 'n8n-nodes-base.onfleet'; version: 1; credentials?: Credentials; config: NodeConfig; };