UNPKG

@onlyoffice/docspace-plugin-sdk

Version:

Simple plugin system for onlyoffice docspace

129 lines (128 loc) 3.67 kB
/** * (c) Copyright Ascensio System SIA 2025 * * 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 */ /** * Defines the supported file types. */ export declare const enum FilesType { /** DocSpace room or workspace */ room = "room", /** Generic file type */ file = "file", /** Directory or folder */ folder = "folder", /** Image file (various formats) */ image = "image", /** Video file (various formats) */ video = "video" } /** * Defines the supported file extensions. */ export declare const enum FilesExst { /** Microsoft Word document */ doc = ".doc", /** Microsoft Word document (XML-based) */ docx = ".docx", /** Microsoft Word macro-enabled document */ docm = ".docm", /** Microsoft Word template */ dotx = ".dotx", /** OpenDocument text format */ odt = ".odt", /** OpenDocument flat XML text format */ fodt = ".fodt", /** OpenDocument text template */ ott = ".ott", /** Rich Text Format */ rtf = ".rtf", /** Plain text */ txt = ".txt", /** Portable Document Format */ pdf = ".pdf", /** Form document (DOCX-based) */ docxf = ".docxf", /** Form document (OpenDocument-based) */ oform = ".oform", /** Microsoft Excel spreadsheet */ xls = ".xls", /** Microsoft Excel spreadsheet (XML-based) */ xlsx = ".xlsx", /** Microsoft Excel macro-enabled spreadsheet */ xlsm = ".xlsm", /** OpenDocument spreadsheet */ ods = ".ods", /** OpenDocument spreadsheet template */ ots = ".ots", /** Microsoft PowerPoint presentation */ ppt = ".ppt", /** Microsoft PowerPoint presentation (XML-based) */ pptx = ".pptx", /** Microsoft PowerPoint macro-enabled presentation */ pptm = ".pptm", /** OpenDocument presentation */ odp = ".odp", /** OpenDocument presentation template */ otp = ".otp", /** PowerPoint show format */ pps = ".pps", /** PowerPoint show format (XML-based) */ ppsx = ".ppsx", /** PowerPoint template */ pot = ".pot", /** OpenDocument flat XML presentation */ /** Video file (AVI format) */ avi = ".avi", /** Video file (FLV format) */ flv = ".flv", /** Video file (MKV format) */ mkv = ".mkv", /** Video file (MOV format) */ mov = ".mov", /** Video file (MP4 format) */ mp4 = ".mp4", /** Video file (MPEG format) */ mpg = ".mpg", /** Video file (WebM format) */ webm = ".webm", /** Video file (M2TS format) */ m2ts = ".m2ts", /** Video file (DVD format) */ dvd = ".dvd", /** Scalable Vector Graphics */ svg = ".svg", /** Comma-separated values */ csv = ".csv", /** DjVu format */ djvu = ".djvu", /** E-book format (EPUB) */ epub = ".epub", /** E-book format (FB2) */ fb2 = ".fb2", /** E-book format (PB2) */ pb2 = ".pb2", /** Archive format (IAF) */ iaf = ".iaf", /** Calendar format (ICS) */ ics = ".ics", /** Web archive (MHT) */ mht = ".mht", /** XML Paper Specification */ xps = ".xps", /** Extensible Markup Language */ xml = ".xml" }