UNPKG

@upstart.gg/sdk

Version:

You can test the CLI without recompiling by running:

53 lines (52 loc) 1.45 kB
import { ListPagesResponse, NotionOptions, NotionPage } from "./types.js"; import { TObject, TProperties } from "@sinclair/typebox"; import * as _notionhq_client0 from "@notionhq/client"; import { CreateDatabaseResponse, DatabaseObjectResponse } from "@notionhq/client"; //#region src/shared/datarecords/external/notion/handler.d.ts declare function saveRecord({ formData, options, properties, accessToken }: { formData: FormData; options: NotionOptions; properties: TProperties; accessToken: string; }): Promise<_notionhq_client0.PartialPageObjectResponse | undefined>; declare function listPages(accessToken: string, parameters?: { maxResults?: number; maxCalls?: number; }): Promise<ListPagesResponse>; declare function updateTable({ id, newName, newProperties, accessToken }: { id: string; newName?: string; newProperties?: TProperties; accessToken: string; }): Promise<NotionOptions>; declare function createTable({ name, schema, pageId, accessToken }: { name: string; schema: TObject; pageId: string; accessToken: string; }): Promise<NotionOptions>; declare function checkPage({ pageId, accessToken }: { pageId: string; accessToken: string; }): Promise<NotionPage | undefined>; //#endregion export { type CreateDatabaseResponse, type DatabaseObjectResponse, type ListPagesResponse, checkPage, createTable, listPages, saveRecord, updateTable }; //# sourceMappingURL=handler.d.ts.map