flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
78 lines (77 loc) • 2.48 kB
TypeScript
/**
* FlowUs API
* FlowUs Developer API
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { BlockData } from './BlockData';
/**
*
* @export
* @interface UpdateBlockRequest
*/
export interface UpdateBlockRequest {
/**
*
* @type {string}
* @memberof UpdateBlockRequest
*/
type?: UpdateBlockRequestTypeEnum;
/**
* 设置为true来归档(删除)块
* @type {boolean}
* @memberof UpdateBlockRequest
*/
archived?: boolean;
/**
*
* @type {BlockData}
* @memberof UpdateBlockRequest
*/
data?: BlockData;
}
/**
* @export
*/
export declare const UpdateBlockRequestTypeEnum: {
readonly Paragraph: "paragraph";
readonly Heading1: "heading_1";
readonly Heading2: "heading_2";
readonly Heading3: "heading_3";
readonly BulletedListItem: "bulleted_list_item";
readonly NumberedListItem: "numbered_list_item";
readonly ToDo: "to_do";
readonly Quote: "quote";
readonly Toggle: "toggle";
readonly Code: "code";
readonly Image: "image";
readonly File: "file";
readonly Bookmark: "bookmark";
readonly Embed: "embed";
readonly Callout: "callout";
readonly Equation: "equation";
readonly LinkToPage: "link_to_page";
readonly Template: "template";
readonly SyncedBlock: "synced_block";
readonly Divider: "divider";
readonly ColumnList: "column_list";
readonly Column: "column";
readonly Table: "table";
readonly TableRow: "table_row";
readonly ChildPage: "child_page";
readonly ChildDatabase: "child_database";
};
export type UpdateBlockRequestTypeEnum = typeof UpdateBlockRequestTypeEnum[keyof typeof UpdateBlockRequestTypeEnum];
/**
* Check if a given object implements the UpdateBlockRequest interface.
*/
export declare function instanceOfUpdateBlockRequest(value: object): value is UpdateBlockRequest;
export declare function UpdateBlockRequestFromJSON(json: any): UpdateBlockRequest;
export declare function UpdateBlockRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBlockRequest;
export declare function UpdateBlockRequestToJSON(json: any): UpdateBlockRequest;
export declare function UpdateBlockRequestToJSONTyped(value?: UpdateBlockRequest | null, ignoreDiscriminator?: boolean): any;