/** * Notion Node - Version 2.1 * Discriminator: resource=database, operation=search */ interface Credentials { notionApi: CredentialReference; } /** Search databases using text search */ export type NotionV21DatabaseSearchParams = { resource: 'database'; operation: 'search'; /** * The text to search for */ text?: string | Expression | PlaceholderValue; /** * 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 50 */ limit?: number | Expression; /** * Whether to return a simplified version of the response instead of the raw data * @default true */ simple?: boolean | Expression; /** * Options * @default {} */ options?: { /** Sort * @default {} */ sort?: { /** Sort */ sortValue?: { /** The direction to sort * @default descending */ direction?: 'ascending' | 'descending' | Expression; /** The name of the timestamp to sort against * @default last_edited_time */ timestamp?: 'last_edited_time' | Expression; }; }; }; }; export type NotionV21DatabaseSearchOutput = { id?: string; name?: string; url?: string; }; export type NotionV21DatabaseSearchNode = { type: 'n8n-nodes-base.notion'; version: 2.1; credentials?: Credentials; config: NodeConfig; output?: Items; };