UNPKG

flowus-api-sdk

Version:

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

85 lines (84 loc) 4.15 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.instanceOfPropertySchema = instanceOfPropertySchema; exports.PropertySchemaFromJSON = PropertySchemaFromJSON; exports.PropertySchemaFromJSONTyped = PropertySchemaFromJSONTyped; exports.PropertySchemaToJSON = PropertySchemaToJSON; exports.PropertySchemaToJSONTyped = PropertySchemaToJSONTyped; const PropertySchemaSelectSelect_1 = require("./PropertySchemaSelectSelect"); const PropertySchemaNumberNumber_1 = require("./PropertySchemaNumberNumber"); const PropertySchemaRelationRelation_1 = require("./PropertySchemaRelationRelation"); const PropertySchemaFormulaFormula_1 = require("./PropertySchemaFormulaFormula"); /** * Check if a given object implements the PropertySchema interface. */ function instanceOfPropertySchema(value) { return true; } function PropertySchemaFromJSON(json) { return PropertySchemaFromJSONTyped(json, false); } function PropertySchemaFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'type': json['type'] == null ? undefined : json['type'], 'title': json['title'] == null ? undefined : json['title'], 'rich_text': json['rich_text'] == null ? undefined : json['rich_text'], 'number': json['number'] == null ? undefined : (0, PropertySchemaNumberNumber_1.PropertySchemaNumberNumberFromJSON)(json['number']), 'select': json['select'] == null ? undefined : (0, PropertySchemaSelectSelect_1.PropertySchemaSelectSelectFromJSON)(json['select']), 'multi_select': json['multi_select'] == null ? undefined : (0, PropertySchemaSelectSelect_1.PropertySchemaSelectSelectFromJSON)(json['multi_select']), 'date': json['date'] == null ? undefined : json['date'], 'people': json['people'] == null ? undefined : json['people'], 'files': json['files'] == null ? undefined : json['files'], 'checkbox': json['checkbox'] == null ? undefined : json['checkbox'], 'url': json['url'] == null ? undefined : json['url'], 'email': json['email'] == null ? undefined : json['email'], 'phone_number': json['phone_number'] == null ? undefined : json['phone_number'], 'formula': json['formula'] == null ? undefined : (0, PropertySchemaFormulaFormula_1.PropertySchemaFormulaFormulaFromJSON)(json['formula']), 'relation': json['relation'] == null ? undefined : (0, PropertySchemaRelationRelation_1.PropertySchemaRelationRelationFromJSON)(json['relation']), }; } function PropertySchemaToJSON(json) { return PropertySchemaToJSONTyped(json, false); } function PropertySchemaToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'type': value['type'], 'title': value['title'], 'rich_text': value['rich_text'], 'number': (0, PropertySchemaNumberNumber_1.PropertySchemaNumberNumberToJSON)(value['number']), 'select': (0, PropertySchemaSelectSelect_1.PropertySchemaSelectSelectToJSON)(value['select']), 'multi_select': (0, PropertySchemaSelectSelect_1.PropertySchemaSelectSelectToJSON)(value['multi_select']), 'date': value['date'], 'people': value['people'], 'files': value['files'], 'checkbox': value['checkbox'], 'url': value['url'], 'email': value['email'], 'phone_number': value['phone_number'], 'formula': (0, PropertySchemaFormulaFormula_1.PropertySchemaFormulaFormulaToJSON)(value['formula']), 'relation': (0, PropertySchemaRelationRelation_1.PropertySchemaRelationRelationToJSON)(value['relation']), }; }