@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
116 lines (115 loc) • 7.53 kB
JavaScript
/* 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 V4ViewsGetViewObjectSchemaResponseRelationObjectName;
(function (V4ViewsGetViewObjectSchemaResponseRelationObjectName) {
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Property"] = "property";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Unit"] = "unit";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Source"] = "source";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Organization"] = "organization";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Contact"] = "contact";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["County"] = "county";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["HousingAuthority"] = "housing_authority";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Lender"] = "lender";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Neighborhood"] = "neighborhood";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Notification"] = "notification";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Owner"] = "owner";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["PropertyManager"] = "property_manager";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Option"] = "option";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Thread"] = "thread";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Lead"] = "lead";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Offer"] = "offer";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["User"] = "user";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Group"] = "group";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Market"] = "market";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Message"] = "message";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["MessageSubscription"] = "message_subscription";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["TitleCompany"] = "title_company";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["View"] = "view";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["FileUpload"] = "file_upload";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["ImageUpload"] = "image_upload";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["PaymentStandard"] = "payment_standard";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["InsurancePolicy"] = "insurance_policy";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["InsuranceProvider"] = "insurance_provider";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Leasing"] = "leasing";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Tenant"] = "tenant";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Inspection"] = "inspection";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["UtilityAllowance"] = "utility_allowance";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Walkthrough"] = "walkthrough";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Zipcode"] = "zipcode";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["MlsListing"] = "mls_listing";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Transaction"] = "transaction";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["AirtableComment"] = "airtableComment";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["AirtableCommentNotification"] = "airtableCommentNotification";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["AirtableCommentSubscription"] = "airtableCommentSubscription";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationContactProperty"] = "relation_contact_property";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationContactSource"] = "relation_contact_source";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationGroupUser"] = "relation_group_user";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationLeadUser"] = "relation_lead_user";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationMarketOwner"] = "relation_market_owner";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationMarketTitleCompany"] = "relation_market_title_company";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationOfferProperty"] = "relation_offer_property";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationUserThread"] = "relation_user_thread";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationSourceProperty"] = "relation_source_property";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationLeadProperty"] = "relation_lead_property";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationInspectionUser"] = "relation_inspection_user";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationLeasingUser"] = "relation_leasing_user";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Renovation"] = "renovation";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationRenovationUser"] = "relation_renovation_user";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RentalListing"] = "rental_listing";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationRentalListingUser"] = "relation_rental_listing_user";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Update"] = "update";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["WorkOrder"] = "work_order";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["Contractor"] = "contractor";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationWorkOrderContractor"] = "relation_work_order_contractor";
V4ViewsGetViewObjectSchemaResponseRelationObjectName["RelationLeasingTenant"] = "relation_leasing_tenant";
})(V4ViewsGetViewObjectSchemaResponseRelationObjectName || (V4ViewsGetViewObjectSchemaResponseRelationObjectName = {}));
/**
* Check if a given object implements the V4ViewsGetViewObjectSchemaResponseRelation interface.
*/
export function instanceOfV4ViewsGetViewObjectSchemaResponseRelation(value) {
if (!('objectName' in value) || value['objectName'] === undefined)
return false;
if (!('columnName' in value) || value['columnName'] === undefined)
return false;
return true;
}
export function V4ViewsGetViewObjectSchemaResponseRelationFromJSON(json) {
return V4ViewsGetViewObjectSchemaResponseRelationFromJSONTyped(json, false);
}
export function V4ViewsGetViewObjectSchemaResponseRelationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
...json, // Preserve relation fields from views
'objectName': json['objectName'],
'columnName': json['columnName'],
};
}
export function V4ViewsGetViewObjectSchemaResponseRelationToJSON(json) {
return V4ViewsGetViewObjectSchemaResponseRelationToJSONTyped(json, false);
}
export function V4ViewsGetViewObjectSchemaResponseRelationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'objectName': value['objectName'],
'columnName': value['columnName'],
};
}