n8n-nodes-base
Version:
Base nodes of n8n
87 lines (83 loc) • 2.75 kB
text/typescript
/**
* 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<string> | PlaceholderValue;
/**
* Destination
* @default {}
*/
destination?: {
/** Destination Properties
*/
destinationProperties?: {
/** Whether or not the address is specified in a single unparsed string
* @default false
*/
unparsed?: boolean | Expression<boolean>;
/** The destination's street address details
* @displayOptions.show { unparsed: [true] }
*/
address?: string | Expression<string> | PlaceholderValue;
/** The number component of this address, it may also contain letters
* @displayOptions.show { unparsed: [false] }
*/
addressNumber?: string | Expression<string> | PlaceholderValue;
/** The name of the street
* @displayOptions.show { unparsed: [false] }
*/
addressStreet?: string | Expression<string> | PlaceholderValue;
/** The name of the municipality
* @displayOptions.show { unparsed: [false] }
*/
addressCity?: string | Expression<string> | PlaceholderValue;
/** State
* @displayOptions.show { unparsed: [false] }
*/
addressState?: string | Expression<string> | PlaceholderValue;
/** The name of the country
* @displayOptions.show { unparsed: [false] }
*/
addressCountry?: string | Expression<string> | PlaceholderValue;
/** The postal or zip code
* @displayOptions.show { unparsed: [false] }
*/
addressPostalCode?: string | Expression<string> | PlaceholderValue;
/** A name associated with this address
*/
addressName?: string | Expression<string> | PlaceholderValue;
/** The suite or apartment number, or any additional relevant information
*/
addressApartment?: string | Expression<string> | PlaceholderValue;
/** Notes about the destination
*/
addressNotes?: string | Expression<string> | 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<OnfleetV1HubCreateParams>;
};