n8n-nodes-base
Version:
Base nodes of n8n
64 lines (59 loc) • 1.4 kB
text/typescript
/**
* Notion Node - Version 2
* Discriminator: resource=block, operation=getAll
*/
interface Credentials {
notionApi: CredentialReference;
}
/** Get many child blocks */
export type NotionV2BlockGetAllParams = {
resource: 'block';
operation: 'getAll';
/**
* The Notion Block to get all children from
* @default {"mode":"url","value":""}
*/
blockId?: { __rl: true; mode: 'url' | 'id'; value: string; cachedResultName?: 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 50
*/
limit?: number | Expression<number>;
/**
* Also Fetch Nested Blocks
* @default false
*/
fetchNestedBlocks?: boolean | Expression<boolean>;
};
export type NotionV2BlockGetAllOutput = {
archived?: boolean;
content?: string;
has_children?: boolean;
id?: string;
in_trash?: boolean;
last_edited_by?: {
id?: string;
object?: string;
};
object?: string;
parent?: {
page_id?: string;
type?: string;
};
parent_id?: string;
root_id?: string;
type?: string;
};
export type NotionV2BlockGetAllNode = {
type: 'n8n-nodes-base.notion';
version: 2;
credentials?: Credentials;
config: NodeConfig<NotionV2BlockGetAllParams>;
output?: Items<NotionV2BlockGetAllOutput>;
};