flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
88 lines (87 loc) • 2.98 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppendBlockChildrenRequestChildrenInnerTypeEnum = void 0;
exports.instanceOfAppendBlockChildrenRequestChildrenInner = instanceOfAppendBlockChildrenRequestChildrenInner;
exports.AppendBlockChildrenRequestChildrenInnerFromJSON = AppendBlockChildrenRequestChildrenInnerFromJSON;
exports.AppendBlockChildrenRequestChildrenInnerFromJSONTyped = AppendBlockChildrenRequestChildrenInnerFromJSONTyped;
exports.AppendBlockChildrenRequestChildrenInnerToJSON = AppendBlockChildrenRequestChildrenInnerToJSON;
exports.AppendBlockChildrenRequestChildrenInnerToJSONTyped = AppendBlockChildrenRequestChildrenInnerToJSONTyped;
const BlockData_1 = require("./BlockData");
/**
* @export
*/
exports.AppendBlockChildrenRequestChildrenInnerTypeEnum = {
Paragraph: 'paragraph',
Heading1: 'heading_1',
Heading2: 'heading_2',
Heading3: 'heading_3',
BulletedListItem: 'bulleted_list_item',
NumberedListItem: 'numbered_list_item',
ToDo: 'to_do',
Quote: 'quote',
Toggle: 'toggle',
Code: 'code',
Image: 'image',
File: 'file',
Bookmark: 'bookmark',
Embed: 'embed',
Callout: 'callout',
Equation: 'equation',
LinkToPage: 'link_to_page',
Template: 'template',
SyncedBlock: 'synced_block',
Divider: 'divider',
ColumnList: 'column_list',
Column: 'column',
Table: 'table',
TableRow: 'table_row',
ChildPage: 'child_page',
ChildDatabase: 'child_database'
};
/**
* Check if a given object implements the AppendBlockChildrenRequestChildrenInner interface.
*/
function instanceOfAppendBlockChildrenRequestChildrenInner(value) {
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('data' in value) || value['data'] === undefined)
return false;
return true;
}
function AppendBlockChildrenRequestChildrenInnerFromJSON(json) {
return AppendBlockChildrenRequestChildrenInnerFromJSONTyped(json, false);
}
function AppendBlockChildrenRequestChildrenInnerFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'],
'data': (0, BlockData_1.BlockDataFromJSON)(json['data']),
};
}
function AppendBlockChildrenRequestChildrenInnerToJSON(json) {
return AppendBlockChildrenRequestChildrenInnerToJSONTyped(json, false);
}
function AppendBlockChildrenRequestChildrenInnerToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'data': (0, BlockData_1.BlockDataToJSON)(value['data']),
};
}