@amplience/dc-cli
Version:
Dynamic Content CLI Tool
12 lines (11 loc) • 555 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateContentTypeSchema = void 0;
const dc_management_sdk_js_1 = require("dc-management-sdk-js");
const updateContentTypeSchema = async (schemaToUpdate, schemaBody, validationLevel) => {
const updatedSchema = new dc_management_sdk_js_1.ContentTypeSchema();
updatedSchema.body = schemaBody;
updatedSchema.validationLevel = validationLevel;
return schemaToUpdate.related.update(updatedSchema);
};
exports.updateContentTypeSchema = updateContentTypeSchema;