@imbricate/core
Version:
Imbricate Core, Notebook for Engineers
30 lines (29 loc) • 1.4 kB
JavaScript
;
/**
* @author WMXPY
* @namespace Document
* @description Exclude Annotation
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImbricateDocumentExcludeAnnotationBase = void 0;
const feature_not_supported_1 = require("../../error/document/feature-not-supported");
const feature_1 = require("../feature");
const full_feature_1 = require("./full-feature");
class ImbricateDocumentExcludeAnnotationBase extends full_feature_1.ImbricateDocumentFullFeatureBase {
constructor() {
super(...arguments);
this.annotations = {};
this.supportedFeatures = [
feature_1.IMBRICATE_DOCUMENT_FEATURE.DOCUMENT_PUT_PROPERTY,
feature_1.IMBRICATE_DOCUMENT_FEATURE.DOCUMENT_PUT_EDIT_RECORD,
feature_1.IMBRICATE_DOCUMENT_FEATURE.DOCUMENT_GET_EDIT_RECORD,
];
}
putAnnotation(_namespace, _identifier, _value, _auditOptions) {
throw feature_not_supported_1.ImbricateDocumentFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DOCUMENT_FEATURE.DOCUMENT_PUT_ANNOTATION);
}
deleteAnnotation(_namespace, _identifier, _auditOptions) {
throw feature_not_supported_1.ImbricateDocumentFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DOCUMENT_FEATURE.DOCUMENT_DELETE_ANNOTATION);
}
}
exports.ImbricateDocumentExcludeAnnotationBase = ImbricateDocumentExcludeAnnotationBase;