UNPKG

umbraco-management-api-client

Version:

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

55 lines (54 loc) 2.25 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.instanceOfDocumentTypeCleanupModel = instanceOfDocumentTypeCleanupModel; exports.DocumentTypeCleanupModelFromJSON = DocumentTypeCleanupModelFromJSON; exports.DocumentTypeCleanupModelFromJSONTyped = DocumentTypeCleanupModelFromJSONTyped; exports.DocumentTypeCleanupModelToJSON = DocumentTypeCleanupModelToJSON; exports.DocumentTypeCleanupModelToJSONTyped = DocumentTypeCleanupModelToJSONTyped; /** * Check if a given object implements the DocumentTypeCleanupModel interface. */ function instanceOfDocumentTypeCleanupModel(value) { if (!('preventCleanup' in value) || value['preventCleanup'] === undefined) return false; return true; } function DocumentTypeCleanupModelFromJSON(json) { return DocumentTypeCleanupModelFromJSONTyped(json, false); } function DocumentTypeCleanupModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'preventCleanup': json['preventCleanup'], 'keepAllVersionsNewerThanDays': json['keepAllVersionsNewerThanDays'] == null ? undefined : json['keepAllVersionsNewerThanDays'], 'keepLatestVersionPerDayForDays': json['keepLatestVersionPerDayForDays'] == null ? undefined : json['keepLatestVersionPerDayForDays'], }; } function DocumentTypeCleanupModelToJSON(json) { return DocumentTypeCleanupModelToJSONTyped(json, false); } function DocumentTypeCleanupModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'preventCleanup': value['preventCleanup'], 'keepAllVersionsNewerThanDays': value['keepAllVersionsNewerThanDays'], 'keepLatestVersionPerDayForDays': value['keepLatestVersionPerDayForDays'], }; }