"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.applySpecRegistryAdd = applySpecRegistryAdd;
const add_validation_1 = require("./add-validation");
const add_safety_1 = require("./add-safety");
function applySpecRegistryAdd(input) {
    return (0, add_safety_1.applySpecRegistryAddSafety)({
        currentDocument: input.currentDocument,
        validationResult: (0, add_validation_1.validateSpecRegistryAddInput)({
            proposedEntry: input.proposedEntry,
            currentEntries: input.currentDocument.entries
        })
    });
}
