/** * Magento 2 Node - Version 1 * Discriminator: resource=customer, operation=getAll */ interface Credentials { magento2Api: CredentialReference; } /** Get many customers */ export type Magento2V1CustomerGetAllParams = { resource: 'customer'; operation: 'getAll'; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 5 */ limit?: number | Expression; /** * Filter * @default none */ filterType?: 'none' | 'manual' | 'json' | Expression; /** * Must Match * @displayOptions.show { filterType: ["manual"] } * @default anyFilter */ matchType?: 'anyFilter' | 'allFilters' | Expression; /** * Filters * @displayOptions.show { filterType: ["manual"] } * @default {} */ filters?: { /** Conditions */ conditions?: Array<{ /** Field */ field?: string | Expression; /** Condition Type * @default eq */ condition_type?: 'eq' | 'gt' | 'gteq' | 'in' | 'lt' | 'lte' | 'like' | 'moreq' | 'neq' | 'nin' | 'notnull' | 'null' | Expression; /** Value * @displayOptions.hide { condition_type: ["null", "notnull"] } */ value?: string | Expression | PlaceholderValue; }>; }; /** * Filters (JSON) * @displayOptions.show { filterType: ["json"] } */ filterJson?: string | Expression | PlaceholderValue; /** * Options * @default {} */ options?: { /** Sort * @default [] */ sort?: { /** Sort */ sort?: Array<{ /** The sorting direction * @default ASC */ direction?: 'ASC' | 'DESC' | Expression; /** The sorting field */ field?: string | Expression; }>; }; }; }; export type Magento2V1CustomerGetAllNode = { type: 'n8n-nodes-base.magento2'; version: 1; credentials?: Credentials; config: NodeConfig; };