UNPKG

umbraco-management-api-client

Version:

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

52 lines (51 loc) 2.22 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.instanceOfPublishDocumentRequestModel = instanceOfPublishDocumentRequestModel; exports.PublishDocumentRequestModelFromJSON = PublishDocumentRequestModelFromJSON; exports.PublishDocumentRequestModelFromJSONTyped = PublishDocumentRequestModelFromJSONTyped; exports.PublishDocumentRequestModelToJSON = PublishDocumentRequestModelToJSON; exports.PublishDocumentRequestModelToJSONTyped = PublishDocumentRequestModelToJSONTyped; const PublishDocumentRequestModelPublishSchedulesInner_1 = require("./PublishDocumentRequestModelPublishSchedulesInner"); /** * Check if a given object implements the PublishDocumentRequestModel interface. */ function instanceOfPublishDocumentRequestModel(value) { if (!('publishSchedules' in value) || value['publishSchedules'] === undefined) return false; return true; } function PublishDocumentRequestModelFromJSON(json) { return PublishDocumentRequestModelFromJSONTyped(json, false); } function PublishDocumentRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'publishSchedules': (json['publishSchedules'].map(PublishDocumentRequestModelPublishSchedulesInner_1.PublishDocumentRequestModelPublishSchedulesInnerFromJSON)), }; } function PublishDocumentRequestModelToJSON(json) { return PublishDocumentRequestModelToJSONTyped(json, false); } function PublishDocumentRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'publishSchedules': (value['publishSchedules'].map(PublishDocumentRequestModelPublishSchedulesInner_1.PublishDocumentRequestModelPublishSchedulesInnerToJSON)), }; }