@udus/notion-renderer
Version:

59 lines • 1.86 kB
TypeScript
import type { Client } from "@notionhq/client";
import type { BookmarkBlockObjectResponse } from "@notionhq/client/build/src/api-endpoints.js";
export declare const convertBookmarkResponseToBlock: (block: BookmarkBlockObjectResponse, client: Client) => Promise<{
bookmark: {
caption: import("../../../../types/index.js").RichTextType;
url: string;
};
type: "bookmark";
parent: {
type: "database_id";
database_id: string;
} | {
type: "page_id";
page_id: string;
} | {
type: "block_id";
block_id: string;
} | {
type: "workspace";
workspace: true;
};
object: "block";
id: string;
created_time: string;
created_by: import("@notionhq/client/build/src/api-endpoints.js").PartialUserObjectResponse;
last_edited_time: string;
last_edited_by: import("@notionhq/client/build/src/api-endpoints.js").PartialUserObjectResponse;
has_children: boolean;
archived: boolean;
} | {
bookmark: {
site_meta: import("@extractus/article-extractor").ArticleData;
caption: import("../../../../types/index.js").RichTextType;
url: string;
};
type: "bookmark";
parent: {
type: "database_id";
database_id: string;
} | {
type: "page_id";
page_id: string;
} | {
type: "block_id";
block_id: string;
} | {
type: "workspace";
workspace: true;
};
object: "block";
id: string;
created_time: string;
created_by: import("@notionhq/client/build/src/api-endpoints.js").PartialUserObjectResponse;
last_edited_time: string;
last_edited_by: import("@notionhq/client/build/src/api-endpoints.js").PartialUserObjectResponse;
has_children: boolean;
archived: boolean;
}>;
//# sourceMappingURL=bookmark.d.ts.map