UNPKG

flowus-api-sdk

Version:

Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks

66 lines (65 loc) 2.45 kB
"use strict"; /* 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.RichTextItemMentionTypeEnum = void 0; exports.instanceOfRichTextItemMention = instanceOfRichTextItemMention; exports.RichTextItemMentionFromJSON = RichTextItemMentionFromJSON; exports.RichTextItemMentionFromJSONTyped = RichTextItemMentionFromJSONTyped; exports.RichTextItemMentionToJSON = RichTextItemMentionToJSON; exports.RichTextItemMentionToJSONTyped = RichTextItemMentionToJSONTyped; const RichTextItemMentionUser_1 = require("./RichTextItemMentionUser"); const RichTextItemMentionDate_1 = require("./RichTextItemMentionDate"); /** * @export */ exports.RichTextItemMentionTypeEnum = { User: 'user', Page: 'page', Date: 'date' }; /** * Check if a given object implements the RichTextItemMention interface. */ function instanceOfRichTextItemMention(value) { return true; } function RichTextItemMentionFromJSON(json) { return RichTextItemMentionFromJSONTyped(json, false); } function RichTextItemMentionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'user': json['user'] == null ? undefined : (0, RichTextItemMentionUser_1.RichTextItemMentionUserFromJSON)(json['user']), 'page': json['page'] == null ? undefined : (0, RichTextItemMentionUser_1.RichTextItemMentionUserFromJSON)(json['page']), 'date': json['date'] == null ? undefined : (0, RichTextItemMentionDate_1.RichTextItemMentionDateFromJSON)(json['date']), }; } function RichTextItemMentionToJSON(json) { return RichTextItemMentionToJSONTyped(json, false); } function RichTextItemMentionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': value['type'], 'user': (0, RichTextItemMentionUser_1.RichTextItemMentionUserToJSON)(value['user']), 'page': (0, RichTextItemMentionUser_1.RichTextItemMentionUserToJSON)(value['page']), 'date': (0, RichTextItemMentionDate_1.RichTextItemMentionDateToJSON)(value['date']), }; }