/** * Pipedrive Node - Version 1 * Discriminator: resource=person, operation=search */ interface Credentials { pipedriveApi: CredentialReference; pipedriveOAuth2Api: CredentialReference; } /** Search a deal */ export type PipedriveV1PersonSearchParams = { resource: 'person'; operation: 'search'; authentication?: 'apiToken' | 'oAuth2' | Expression; /** * 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 100 */ limit?: number | Expression; /** * The search term to look for. Minimum 2 characters (or 1 if using exact_match). */ term?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Whether only full exact matches against the given term are returned. It is not case sensitive. * @default false */ exactMatch?: boolean | Expression; /** A comma-separated string array. The fields to perform the search from. Defaults to all of them. */ fields?: string | Expression | PlaceholderValue; /** Supports including optional fields in the results which are not provided by default */ includeFields?: string | Expression | PlaceholderValue; /** Will filter Deals by the provided Organization ID */ organizationId?: string | Expression | PlaceholderValue; /** Whether to return the data exactly in the way it got received from the API * @default false */ rawData?: boolean | Expression; }; }; export type PipedriveV1PersonSearchOutput = { custom_fields?: Array; emails?: Array; id?: number; name?: string; notes?: Array; organization?: { id?: number; name?: string; }; owner?: { id?: number; }; phones?: Array; result_score?: number; type?: string; update_time?: string; visible_to?: number; }; export type PipedriveV1PersonSearchNode = { type: 'n8n-nodes-base.pipedrive'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };