/** * Salesmate Node - Version 1 * Discriminator: resource=company, operation=getAll */ interface Credentials { salesmateApi: CredentialReference; } /** Get many companies */ export type SalesmateV1CompanyGetAllParams = { resource: 'company'; 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 10 */ limit?: number | Expression; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Options * @default {} */ options?: { /** Comma-separated list of fields to return */ fields?: string | Expression | PlaceholderValue; /** The field to sort by */ sortBy?: string | Expression | PlaceholderValue; /** Sort Order * @default desc */ sortOrder?: 'asc' | 'desc' | Expression; }; /** * Filters * @displayOptions.show { jsonParameters: [true] } */ filtersJson?: IDataObject | string | Expression; /** * Filters * @displayOptions.show { jsonParameters: [false] } * @default {} */ filters?: { /** Filters */ filtersUi?: { /** Operator * @default AND */ operator?: 'AND' | 'OR' | Expression; /** Conditions * @default {} */ conditions?: { /** Conditions */ conditionsUi?: Array<{ /** Field * @default name */ field?: 'name' | 'email' | 'phone' | Expression; /** Value of the property to set * @default EQUALS */ condition?: 'EQUALS' | 'NOT_EQUALS' | 'Contains' | 'DOES_NOT_CONTAINS' | 'EMPTY' | 'NOT_EMPTY' | 'STARTS_WITH' | 'ENDS_WITH' | Expression; /** Value */ value?: string | Expression | PlaceholderValue; }>; }; }; }; }; export type SalesmateV1CompanyGetAllNode = { type: 'n8n-nodes-base.salesmate'; version: 1; credentials?: Credentials; config: NodeConfig; };