UNPKG

flowus-api-sdk

Version:

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

70 lines (69 loc) 2.91 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.V1SearchPageResultObjectEnum = void 0; exports.instanceOfV1SearchPageResult = instanceOfV1SearchPageResult; exports.V1SearchPageResultFromJSON = V1SearchPageResultFromJSON; exports.V1SearchPageResultFromJSONTyped = V1SearchPageResultFromJSONTyped; exports.V1SearchPageResultToJSON = V1SearchPageResultToJSON; exports.V1SearchPageResultToJSONTyped = V1SearchPageResultToJSONTyped; const V1SearchPageResultProperties_1 = require("./V1SearchPageResultProperties"); const V1SearchPageResultParent_1 = require("./V1SearchPageResultParent"); /** * @export */ exports.V1SearchPageResultObjectEnum = { Page: 'page' }; /** * Check if a given object implements the V1SearchPageResult interface. */ function instanceOfV1SearchPageResult(value) { return true; } function V1SearchPageResultFromJSON(json) { return V1SearchPageResultFromJSONTyped(json, false); } function V1SearchPageResultFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'object': json['object'] == null ? undefined : json['object'], 'id': json['id'] == null ? undefined : json['id'], 'created_time': json['created_time'] == null ? undefined : (new Date(json['created_time'])), 'last_edited_time': json['last_edited_time'] == null ? undefined : (new Date(json['last_edited_time'])), 'parent': json['parent'] == null ? undefined : (0, V1SearchPageResultParent_1.V1SearchPageResultParentFromJSON)(json['parent']), 'archived': json['archived'] == null ? undefined : json['archived'], 'properties': json['properties'] == null ? undefined : (0, V1SearchPageResultProperties_1.V1SearchPageResultPropertiesFromJSON)(json['properties']), }; } function V1SearchPageResultToJSON(json) { return V1SearchPageResultToJSONTyped(json, false); } function V1SearchPageResultToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'object': value['object'], 'id': value['id'], 'created_time': value['created_time'] == null ? undefined : ((value['created_time']).toISOString()), 'last_edited_time': value['last_edited_time'] == null ? undefined : ((value['last_edited_time']).toISOString()), 'parent': (0, V1SearchPageResultParent_1.V1SearchPageResultParentToJSON)(value['parent']), 'archived': value['archived'], 'properties': (0, V1SearchPageResultProperties_1.V1SearchPageResultPropertiesToJSON)(value['properties']), }; }