@telefonica/confluence-sync
Version:
Creates/updates/deletes Confluence pages based on a list of objects containing the page contents. Supports nested pages and attachments upload
23 lines (22 loc) • 906 B
JavaScript
;
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.RootPageRequiredException = void 0;
const ConfluenceSyncPages_types_1 = require("../ConfluenceSyncPages.types");
class RootPageRequiredException extends Error {
constructor(mode, options) {
/* istanbul ignore else */
if (mode === ConfluenceSyncPages_types_1.SyncModes.TREE) {
super("rootPageId is required for TREE sync mode", options);
}
else if (mode === ConfluenceSyncPages_types_1.SyncModes.FLAT) {
super("rootPageId is required for FLAT sync mode", options);
}
else {
/* istanbul ignore next */
super("Unknown sync mode", options);
}
}
}
exports.RootPageRequiredException = RootPageRequiredException;