UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

96 lines (95 loc) 3.71 kB
/* tslint:disable */ /* eslint-disable */ /** * API v4 * Swagger documentation for API v4 * * The version of the OpenAPI document: 4.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * @export * @enum {string} */ export var V4AirtableFieldDtoType; (function (V4AirtableFieldDtoType) { V4AirtableFieldDtoType["SingleLineText"] = "singleLineText"; V4AirtableFieldDtoType["Email"] = "email"; V4AirtableFieldDtoType["Url"] = "url"; V4AirtableFieldDtoType["MultilineText"] = "multilineText"; V4AirtableFieldDtoType["Number"] = "number"; V4AirtableFieldDtoType["Percent"] = "percent"; V4AirtableFieldDtoType["Currency"] = "currency"; V4AirtableFieldDtoType["SingleSelect"] = "singleSelect"; V4AirtableFieldDtoType["MultipleSelects"] = "multipleSelects"; V4AirtableFieldDtoType["SingleCollaborator"] = "singleCollaborator"; V4AirtableFieldDtoType["MultipleCollaborators"] = "multipleCollaborators"; V4AirtableFieldDtoType["MultipleRecordLinks"] = "multipleRecordLinks"; V4AirtableFieldDtoType["Date"] = "date"; V4AirtableFieldDtoType["DateTime"] = "dateTime"; V4AirtableFieldDtoType["Checkbox"] = "checkbox"; V4AirtableFieldDtoType["Formula"] = "formula"; V4AirtableFieldDtoType["CreatedTime"] = "createdTime"; V4AirtableFieldDtoType["Rollup"] = "rollup"; V4AirtableFieldDtoType["Count"] = "count"; V4AirtableFieldDtoType["Lookup"] = "lookup"; V4AirtableFieldDtoType["MultipleLookupValues"] = "multipleLookupValues"; V4AirtableFieldDtoType["AutoNumber"] = "autoNumber"; V4AirtableFieldDtoType["Barcode"] = "barcode"; V4AirtableFieldDtoType["Rating"] = "rating"; V4AirtableFieldDtoType["RichText"] = "richText"; V4AirtableFieldDtoType["Duration"] = "duration"; V4AirtableFieldDtoType["LastModifiedTime"] = "lastModifiedTime"; V4AirtableFieldDtoType["Button"] = "button"; V4AirtableFieldDtoType["CreatedBy"] = "createdBy"; V4AirtableFieldDtoType["LastModifiedBy"] = "lastModifiedBy"; V4AirtableFieldDtoType["ExternalSyncSource"] = "externalSyncSource"; V4AirtableFieldDtoType["Attachment"] = "attachment"; })(V4AirtableFieldDtoType || (V4AirtableFieldDtoType = {})); /** * Check if a given object implements the V4AirtableFieldDto interface. */ export function instanceOfV4AirtableFieldDto(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } export function V4AirtableFieldDtoFromJSON(json) { return V4AirtableFieldDtoFromJSONTyped(json, false); } export function V4AirtableFieldDtoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'id': json['id'], 'name': json['name'], 'type': json['type'], 'description': json['description'] == null ? undefined : json['description'], 'options': json['options'] == null ? undefined : json['options'], }; } export function V4AirtableFieldDtoToJSON(json) { return V4AirtableFieldDtoToJSONTyped(json, false); } export function V4AirtableFieldDtoToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'type': value['type'], 'description': value['description'], 'options': value['options'], }; }