UNPKG

umbraco-management-api-client

Version:

TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)

103 lines (102 loc) 4.26 kB
"use strict"; /* 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.instanceOfCreatePackageRequestModel = instanceOfCreatePackageRequestModel; exports.CreatePackageRequestModelFromJSON = CreatePackageRequestModelFromJSON; exports.CreatePackageRequestModelFromJSONTyped = CreatePackageRequestModelFromJSONTyped; exports.CreatePackageRequestModelToJSON = CreatePackageRequestModelToJSON; exports.CreatePackageRequestModelToJSONTyped = CreatePackageRequestModelToJSONTyped; /** * Check if a given object implements the CreatePackageRequestModel interface. */ function instanceOfCreatePackageRequestModel(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('contentLoadChildNodes' in value) || value['contentLoadChildNodes'] === undefined) return false; if (!('mediaIds' in value) || value['mediaIds'] === undefined) return false; if (!('mediaLoadChildNodes' in value) || value['mediaLoadChildNodes'] === undefined) return false; if (!('documentTypes' in value) || value['documentTypes'] === undefined) return false; if (!('mediaTypes' in value) || value['mediaTypes'] === undefined) return false; if (!('dataTypes' in value) || value['dataTypes'] === undefined) return false; if (!('templates' in value) || value['templates'] === undefined) return false; if (!('partialViews' in value) || value['partialViews'] === undefined) return false; if (!('stylesheets' in value) || value['stylesheets'] === undefined) return false; if (!('scripts' in value) || value['scripts'] === undefined) return false; if (!('languages' in value) || value['languages'] === undefined) return false; if (!('dictionaryItems' in value) || value['dictionaryItems'] === undefined) return false; return true; } function CreatePackageRequestModelFromJSON(json) { return CreatePackageRequestModelFromJSONTyped(json, false); } function CreatePackageRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'contentNodeId': json['contentNodeId'] == null ? undefined : json['contentNodeId'], 'contentLoadChildNodes': json['contentLoadChildNodes'], 'mediaIds': json['mediaIds'], 'mediaLoadChildNodes': json['mediaLoadChildNodes'], 'documentTypes': json['documentTypes'], 'mediaTypes': json['mediaTypes'], 'dataTypes': json['dataTypes'], 'templates': json['templates'], 'partialViews': json['partialViews'], 'stylesheets': json['stylesheets'], 'scripts': json['scripts'], 'languages': json['languages'], 'dictionaryItems': json['dictionaryItems'], 'id': json['id'] == null ? undefined : json['id'], }; } function CreatePackageRequestModelToJSON(json) { return CreatePackageRequestModelToJSONTyped(json, false); } function CreatePackageRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'contentNodeId': value['contentNodeId'], 'contentLoadChildNodes': value['contentLoadChildNodes'], 'mediaIds': value['mediaIds'], 'mediaLoadChildNodes': value['mediaLoadChildNodes'], 'documentTypes': value['documentTypes'], 'mediaTypes': value['mediaTypes'], 'dataTypes': value['dataTypes'], 'templates': value['templates'], 'partialViews': value['partialViews'], 'stylesheets': value['stylesheets'], 'scripts': value['scripts'], 'languages': value['languages'], 'dictionaryItems': value['dictionaryItems'], 'id': value['id'], }; }