@narkdown/client
Version:
Get unlimited response of Notion API
43 lines (42 loc) • 1.86 kB
TypeScript
import { Client as NotionClient } from '@notionhq/client';
import { ListBlockChildrenParameters, ListBlockChildrenResponse, ListDatabasesParameters, ListDatabasesResponse, ListUsersParameters, ListUsersResponse, QueryDatabaseParameters, QueryDatabaseResponse, SearchParameters, SearchResponse } from '@notionhq/client/build/src/api-endpoints';
export declare class NarkdownClient extends NotionClient {
readonly unlimited: {
blocks: {
children: {
/**
* Retrieve block children without pagination
*/
list: ({ start_cursor, ...rest }: ListBlockChildrenParameters) => Promise<ListBlockChildrenResponse>;
};
};
databases: {
/**
* Query a database without pagination
*/
query: ({ start_cursor, ...rest }: QueryDatabaseParameters) => Promise<QueryDatabaseResponse>;
/**
* List databases without pagination
*
* @deprecated Please use `search`
*/
list: ({ start_cursor, ...rest }: ListDatabasesParameters) => Promise<ListDatabasesResponse>;
};
users: {
/**
* List all users without pagination
*/
list: ({ start_cursor, ...rest }: ListUsersParameters) => Promise<ListUsersResponse>;
};
/**
* Search without pagination
*/
search: ({ start_cursor, ...rest }: SearchParameters) => Promise<SearchResponse>;
};
}
export * from '@notionhq/client/build/src/api-endpoints';
export * from '@notionhq/client/build/src/Client';
export * from '@notionhq/client/build/src/errors';
export * from '@notionhq/client/build/src/fetch-types';
export * from '@notionhq/client';
export * from '@notionhq/client/build/src/type-utils';