flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
86 lines (85 loc) • 2.58 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.UpdateBlockRequestTypeEnum = void 0;
exports.instanceOfUpdateBlockRequest = instanceOfUpdateBlockRequest;
exports.UpdateBlockRequestFromJSON = UpdateBlockRequestFromJSON;
exports.UpdateBlockRequestFromJSONTyped = UpdateBlockRequestFromJSONTyped;
exports.UpdateBlockRequestToJSON = UpdateBlockRequestToJSON;
exports.UpdateBlockRequestToJSONTyped = UpdateBlockRequestToJSONTyped;
const BlockData_1 = require("./BlockData");
/**
* @export
*/
exports.UpdateBlockRequestTypeEnum = {
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 UpdateBlockRequest interface.
*/
function instanceOfUpdateBlockRequest(value) {
return true;
}
function UpdateBlockRequestFromJSON(json) {
return UpdateBlockRequestFromJSONTyped(json, false);
}
function UpdateBlockRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'archived': json['archived'] == null ? undefined : json['archived'],
'data': json['data'] == null ? undefined : (0, BlockData_1.BlockDataFromJSON)(json['data']),
};
}
function UpdateBlockRequestToJSON(json) {
return UpdateBlockRequestToJSONTyped(json, false);
}
function UpdateBlockRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'archived': value['archived'],
'data': (0, BlockData_1.BlockDataToJSON)(value['data']),
};
}