umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
74 lines (73 loc) • 2.94 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* Umbraco Management API
* This shows all APIs available in this version of Umbraco - including all the legacy apis that are available for backward compatibility
*
* The version of the OpenAPI document: Latest
*
*
* 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.instanceOfIndexResponseModel = instanceOfIndexResponseModel;
exports.IndexResponseModelFromJSON = IndexResponseModelFromJSON;
exports.IndexResponseModelFromJSONTyped = IndexResponseModelFromJSONTyped;
exports.IndexResponseModelToJSON = IndexResponseModelToJSON;
exports.IndexResponseModelToJSONTyped = IndexResponseModelToJSONTyped;
const HealthStatusResponseModel_1 = require("./HealthStatusResponseModel");
/**
* Check if a given object implements the IndexResponseModel interface.
*/
function instanceOfIndexResponseModel(value) {
if (!('name' in value) || value['name'] === undefined)
return false;
if (!('healthStatus' in value) || value['healthStatus'] === undefined)
return false;
if (!('canRebuild' in value) || value['canRebuild'] === undefined)
return false;
if (!('searcherName' in value) || value['searcherName'] === undefined)
return false;
if (!('documentCount' in value) || value['documentCount'] === undefined)
return false;
if (!('fieldCount' in value) || value['fieldCount'] === undefined)
return false;
return true;
}
function IndexResponseModelFromJSON(json) {
return IndexResponseModelFromJSONTyped(json, false);
}
function IndexResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'],
'healthStatus': (0, HealthStatusResponseModel_1.HealthStatusResponseModelFromJSON)(json['healthStatus']),
'canRebuild': json['canRebuild'],
'searcherName': json['searcherName'],
'documentCount': json['documentCount'],
'fieldCount': json['fieldCount'],
'providerProperties': json['providerProperties'] == null ? undefined : json['providerProperties'],
};
}
function IndexResponseModelToJSON(json) {
return IndexResponseModelToJSONTyped(json, false);
}
function IndexResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'name': value['name'],
'healthStatus': (0, HealthStatusResponseModel_1.HealthStatusResponseModelToJSON)(value['healthStatus']),
'canRebuild': value['canRebuild'],
'searcherName': value['searcherName'],
'documentCount': value['documentCount'],
'fieldCount': value['fieldCount'],
'providerProperties': value['providerProperties'],
};
}