n8n-nodes-base
Version:
Base nodes of n8n
63 lines (59 loc) • 1.84 kB
text/typescript
/**
* Mautic Node - Version 1
* Discriminator: resource=contact, operation=getAll
*/
interface Credentials {
mauticApi: CredentialReference;
mauticOAuth2Api: CredentialReference;
}
/** Create & modify contacts */
export type MauticV1ContactGetAllParams = {
resource: 'contact';
operation: 'getAll';
authentication?: 'credentials' | 'oAuth2' | Expression<string>;
/**
* Whether to return all results or only up to a given limit
* @default false
*/
returnAll?: boolean | Expression<boolean>;
/**
* Max number of results to return
* @displayOptions.show { returnAll: [false] }
* @default 30
*/
limit?: number | Expression<number>;
/**
* Options
* @displayOptions.hide { operation: ["sendEmail", "editDoNotContactList", "editContactPoint"] }
* @default {}
*/
options?: {
/** String or search command to filter entities by
*/
search?: string | Expression<string> | PlaceholderValue;
/** Column to sort by. Can use any column listed in the response.
*/
orderBy?: string | Expression<string> | PlaceholderValue;
/** Sort direction: ASC or DESC
*/
orderByDir?: 'asc' | 'desc' | Expression<string>;
/** Whether to return currently published entities
* @default false
*/
publishedOnly?: boolean | Expression<boolean>;
/** Whether to return array of entities without additional lists in it
* @default false
*/
minimal?: boolean | Expression<boolean>;
/** By default only the data of the fields get returned. If this options gets set the RAW response with all data gets returned.
* @default true
*/
rawData?: boolean | Expression<boolean>;
};
};
export type MauticV1ContactGetAllNode = {
type: 'n8n-nodes-base.mautic';
version: 1;
credentials?: Credentials;
config: NodeConfig<MauticV1ContactGetAllParams>;
};