@onlyoffice/docspace-plugin-sdk
Version:
Simple plugin system for onlyoffice docspace
41 lines (40 loc) • 1.55 kB
JavaScript
;
/**
* (c) Copyright Ascensio System SIA 2026
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Events = void 0;
/**
* Defines the supported event types for the plugin system.
*/
var Events;
(function (Events) {
/** Triggered when a new item is created */
Events["CREATE"] = "create";
/** Triggered when an item is renamed */
Events["RENAME"] = "rename";
/** Triggered when a new room is created */
Events["ROOM_CREATE"] = "create_room";
/** Triggered when a room is edited */
Events["ROOM_EDIT"] = "edit_room";
/** Triggered when a column configuration is changed */
Events["CHANGE_COLUMN"] = "change_column";
/** Triggered when a user's type or role is modified */
Events["CHANGE_USER_TYPE"] = "change_user_type";
/** Triggered when a new file is created through a plugin */
Events["CREATE_PLUGIN_FILE"] = "create_plugin_file";
})(Events || (exports.Events = Events = {}));