import IBase from '../Base'; import IUser from '../User'; import { UserPopulate } from '../User/User'; import IPermission, { AccessRole, PermissionPopulate } from './Permission'; export declare enum Progress { inprogress = "inprogress", done = "done" } export declare enum ItemTypeMain { file = "file", webService = "webService", webMap = "webMap", application = "application", processingService = "processingService", form = "form" } export declare enum ItemTypeParent { folder = "folder", database = "database", databaseConnection = "databaseConnection" } export declare enum ItemTypeChildren { databaseItem = "databaseItem", applicationItem = "applicationItem", webMapItem = "webMapItem" } export declare const ItemType: { databaseItem: ItemTypeChildren.databaseItem; applicationItem: ItemTypeChildren.applicationItem; webMapItem: ItemTypeChildren.webMapItem; folder: ItemTypeParent.folder; database: ItemTypeParent.database; databaseConnection: ItemTypeParent.databaseConnection; file: ItemTypeMain.file; webService: ItemTypeMain.webService; webMap: ItemTypeMain.webMap; application: ItemTypeMain.application; processingService: ItemTypeMain.processingService; form: ItemTypeMain.form; }; export declare type ItemType = ItemTypeParent | ItemTypeMain | ItemTypeChildren; export declare enum FileItemTypeMSWord { msWord2010 = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", msWord2007 = "application/vnd.ms-word", msWord2003 = "application/msword" } export declare enum FileItemTypeMSExcel { msExcel2010 = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", msExcel2007 = "application/vnd.ms-excel", msExcel2003 = "application/msexcel" } export declare enum FileItemTypeMSPowerPoint { msPowerPoint2010 = "application/vnd.openxmlformats-officedocument.presentationml.presentation", msPowerPoint2007 = "application/vnd.ms-powerpoint", msPowerPoint2003 = "application/mspowerpoint" } export declare enum FileItemTypePDF { pdf = "application/pdf" } export declare enum FileItemTypeCompressed { zip = "application/zip", msZip = "application/x-zip-compressed", xZip = "multipart/x-zip", rar = "application/x-rar-compressed" } export declare enum FileItemTypeImage { png = "image/png", jpg = "image/jpg", jpeg = "image/jpeg", svg = "image/svg+xml", tif = "image/tif", tiff = "image/tiff" } export declare enum FileItemTypeAudio { mp3 = "audio/mpeg" } export declare enum FileItemTypeVideo { mp4 = "video/mp4" } export declare enum FileItemTypeText { text = "text/plain", csv = "text/csv", html = "text/html" } export declare enum FileItemTypeFont { woff = "font/woff", ttf = "font/ttf", otf = "font/otf" } export declare enum FileItemTypeOther { stream = "application/octet-stream" } export declare const FileItemTypeDocument: { pdf: FileItemTypePDF.pdf; msPowerPoint2010: FileItemTypeMSPowerPoint.msPowerPoint2010; msPowerPoint2007: FileItemTypeMSPowerPoint.msPowerPoint2007; msPowerPoint2003: FileItemTypeMSPowerPoint.msPowerPoint2003; msExcel2010: FileItemTypeMSExcel.msExcel2010; msExcel2007: FileItemTypeMSExcel.msExcel2007; msExcel2003: FileItemTypeMSExcel.msExcel2003; msWord2010: FileItemTypeMSWord.msWord2010; msWord2007: FileItemTypeMSWord.msWord2007; msWord2003: FileItemTypeMSWord.msWord2003; }; export declare type FileItemTypeDocument = FileItemTypeMSWord | FileItemTypeMSExcel | FileItemTypeMSPowerPoint | FileItemTypePDF; export declare const FileItemType: { stream: FileItemTypeOther.stream; zip: FileItemTypeCompressed.zip; msZip: FileItemTypeCompressed.msZip; xZip: FileItemTypeCompressed.xZip; rar: FileItemTypeCompressed.rar; woff: FileItemTypeFont.woff; ttf: FileItemTypeFont.ttf; otf: FileItemTypeFont.otf; text: FileItemTypeText.text; csv: FileItemTypeText.csv; html: FileItemTypeText.html; mp4: FileItemTypeVideo.mp4; mp3: FileItemTypeAudio.mp3; png: FileItemTypeImage.png; jpg: FileItemTypeImage.jpg; jpeg: FileItemTypeImage.jpeg; svg: FileItemTypeImage.svg; tif: FileItemTypeImage.tif; tiff: FileItemTypeImage.tiff; pdf: FileItemTypePDF.pdf; msPowerPoint2010: FileItemTypeMSPowerPoint.msPowerPoint2010; msPowerPoint2007: FileItemTypeMSPowerPoint.msPowerPoint2007; msPowerPoint2003: FileItemTypeMSPowerPoint.msPowerPoint2003; msExcel2010: FileItemTypeMSExcel.msExcel2010; msExcel2007: FileItemTypeMSExcel.msExcel2007; msExcel2003: FileItemTypeMSExcel.msExcel2003; msWord2010: FileItemTypeMSWord.msWord2010; msWord2007: FileItemTypeMSWord.msWord2007; msWord2003: FileItemTypeMSWord.msWord2003; }; export declare type FileItemType = FileItemTypeDocument | FileItemTypeImage | FileItemTypeAudio | FileItemTypeVideo | FileItemTypeText | FileItemTypeFont | FileItemTypeCompressed | FileItemTypeOther; export declare enum DatabaseItemType { featureCollection = "featureCollection", pointCollection = "pointCollection", polygonCollection = "polygonCollection", polylineCollection = "polylineCollection", table = "table", view = "view" } export declare enum WebMapItemType { groupLayer = "groupLayer", pointCollectionLayer = "pointCollectionLayer", polygonCollectionLayer = "polygonCollectionLayer", polylineCollectionLayer = "polylineCollectionLayer", featureCollectionLayer = "featureCollectionLayer", webServiceLayer = "webServiceLayer", tileLayer = "tileLayer", pmTileLayer = "pmTileLayer", vectorTileLayer = "vectorTileLayer", arcgisTileLayer = "arcgisTileLayer", arcgisMapImageLayer = "arcgisMapImageLayer", arcgisFeatureLayer = "arcgisFeatureLayer", googleMapsLayer = "googleMapsLayer", hereRasterTileLayer = "hereRasterTileLayer", tomtomRasterTileLayer = "tomtomRasterTileLayer", ogcWMTSLayer = "ogcWMTSLayer", ogcWMSLayer = "ogcWMSLayer", ogcWFSLayer = "ogcWFSLayer", osmLayer = "osmLayer" } export declare enum DatabaseConnectionType { mssql = "mssql", oracle = "oracle", pgsql = "pgsql", mysql = "mysql", mongo = "mongo" } export declare enum WebServiceItemTypeArcGIS { arcgis = "arcgis", arcgisTile = "arcgisTile", arcgisDynamic = "arcgisDynamic", arcgisFeature = "arcgisFeature" } export declare enum WebServiceItemTypeOGC { ogc = "ogc", ogcWMS = "ogcWMS", ogcWMTS = "ogcWMTS", ogcWFS = "ogcWFS" } export declare enum WebServiceItemTypeStandard { rasterTile = "rasterTile", vectorTile = "vectorTile" } export declare enum WebServiceItemTypeFile { geojson = "geojson", csv = "csv" } export declare enum WebServiceItemTypeGoogle { kml = "kml", kmz = "kmz" } export declare enum WebServiceItemTypeOSM { osm = "osm" } export declare const WebServiceItemType: { kml: WebServiceItemTypeGoogle.kml; kmz: WebServiceItemTypeGoogle.kmz; osm: WebServiceItemTypeOSM.osm; rasterTile: WebServiceItemTypeStandard.rasterTile; vectorTile: WebServiceItemTypeStandard.vectorTile; ogc: WebServiceItemTypeOGC.ogc; ogcWMS: WebServiceItemTypeOGC.ogcWMS; ogcWMTS: WebServiceItemTypeOGC.ogcWMTS; ogcWFS: WebServiceItemTypeOGC.ogcWFS; arcgis: WebServiceItemTypeArcGIS.arcgis; arcgisTile: WebServiceItemTypeArcGIS.arcgisTile; arcgisDynamic: WebServiceItemTypeArcGIS.arcgisDynamic; arcgisFeature: WebServiceItemTypeArcGIS.arcgisFeature; }; export declare type WebServiceItemType = WebServiceItemTypeOSM | WebServiceItemTypeArcGIS | WebServiceItemTypeOGC | WebServiceItemTypeStandard | WebServiceItemTypeFile; export declare const ItemSubtype: { groupLayer: WebMapItemType.groupLayer; pointCollectionLayer: WebMapItemType.pointCollectionLayer; polygonCollectionLayer: WebMapItemType.polygonCollectionLayer; polylineCollectionLayer: WebMapItemType.polylineCollectionLayer; featureCollectionLayer: WebMapItemType.featureCollectionLayer; webServiceLayer: WebMapItemType.webServiceLayer; tileLayer: WebMapItemType.tileLayer; pmTileLayer: WebMapItemType.pmTileLayer; vectorTileLayer: WebMapItemType.vectorTileLayer; arcgisTileLayer: WebMapItemType.arcgisTileLayer; arcgisMapImageLayer: WebMapItemType.arcgisMapImageLayer; arcgisFeatureLayer: WebMapItemType.arcgisFeatureLayer; googleMapsLayer: WebMapItemType.googleMapsLayer; hereRasterTileLayer: WebMapItemType.hereRasterTileLayer; tomtomRasterTileLayer: WebMapItemType.tomtomRasterTileLayer; ogcWMTSLayer: WebMapItemType.ogcWMTSLayer; ogcWMSLayer: WebMapItemType.ogcWMSLayer; ogcWFSLayer: WebMapItemType.ogcWFSLayer; osmLayer: WebMapItemType.osmLayer; kml: WebServiceItemTypeGoogle.kml; kmz: WebServiceItemTypeGoogle.kmz; osm: WebServiceItemTypeOSM.osm; rasterTile: WebServiceItemTypeStandard.rasterTile; vectorTile: WebServiceItemTypeStandard.vectorTile; ogc: WebServiceItemTypeOGC.ogc; ogcWMS: WebServiceItemTypeOGC.ogcWMS; ogcWMTS: WebServiceItemTypeOGC.ogcWMTS; ogcWFS: WebServiceItemTypeOGC.ogcWFS; arcgis: WebServiceItemTypeArcGIS.arcgis; arcgisTile: WebServiceItemTypeArcGIS.arcgisTile; arcgisDynamic: WebServiceItemTypeArcGIS.arcgisDynamic; arcgisFeature: WebServiceItemTypeArcGIS.arcgisFeature; featureCollection: DatabaseItemType.featureCollection; pointCollection: DatabaseItemType.pointCollection; polygonCollection: DatabaseItemType.polygonCollection; polylineCollection: DatabaseItemType.polylineCollection; table: DatabaseItemType.table; view: DatabaseItemType.view; stream: FileItemTypeOther.stream; zip: FileItemTypeCompressed.zip; msZip: FileItemTypeCompressed.msZip; xZip: FileItemTypeCompressed.xZip; rar: FileItemTypeCompressed.rar; woff: FileItemTypeFont.woff; ttf: FileItemTypeFont.ttf; otf: FileItemTypeFont.otf; text: FileItemTypeText.text; csv: FileItemTypeText.csv; html: FileItemTypeText.html; mp4: FileItemTypeVideo.mp4; mp3: FileItemTypeAudio.mp3; png: FileItemTypeImage.png; jpg: FileItemTypeImage.jpg; jpeg: FileItemTypeImage.jpeg; svg: FileItemTypeImage.svg; tif: FileItemTypeImage.tif; tiff: FileItemTypeImage.tiff; pdf: FileItemTypePDF.pdf; msPowerPoint2010: FileItemTypeMSPowerPoint.msPowerPoint2010; msPowerPoint2007: FileItemTypeMSPowerPoint.msPowerPoint2007; msPowerPoint2003: FileItemTypeMSPowerPoint.msPowerPoint2003; msExcel2010: FileItemTypeMSExcel.msExcel2010; msExcel2007: FileItemTypeMSExcel.msExcel2007; msExcel2003: FileItemTypeMSExcel.msExcel2003; msWord2010: FileItemTypeMSWord.msWord2010; msWord2007: FileItemTypeMSWord.msWord2007; msWord2003: FileItemTypeMSWord.msWord2003; }; export declare type ItemSubtype = DatabaseItemType | FileItemType | WebServiceItemType | WebMapItemType; export default interface IItem extends IBase { name?: string; type?: ItemType | keyof typeof ItemType | string; subtype?: ItemSubtype | keyof typeof ItemSubtype | string; description?: string; readonly owner?: IUser | string; parent?: IItem | string; permission?: IPermission; readonly thumbnail?: string; readonly progress?: Progress | keyof typeof Progress; readonly trashed?: boolean; deletable?: boolean; readonly lastModified?: Date; hidden?: boolean; readonly accessRole?: AccessRole | keyof typeof AccessRole | string; readonly importable?: boolean; readonly exportable?: boolean; readonly executable?: boolean; } export declare class ItemPopulate implements IItem { _id: string; name: string; type: IItem['type']; subtype?: IItem['subtype']; readonly owner: UserPopulate | string; } export declare class ItemRequest implements IItem { name: string; type: IItem['type']; subtype?: IItem['subtype']; description?: string; parent?: ItemPopulate | string; permission?: PermissionPopulate; /** * @format binary */ readonly thumbnail?: string; deletable?: boolean; /** * @TJS-type object */ props?: any; /** * @TJS-type object */ extendedProps?: any; hidden?: boolean; } export declare class ItemResponse implements IItem { _id: string; name: string; type: IItem['type']; subtype?: IItem['subtype']; description?: string; readonly owner: UserPopulate | string; parent?: ItemPopulate | string; permission: PermissionPopulate; readonly thumbnail?: string; progress: IItem['progress']; readonly trashed: boolean; deletable: boolean; readonly lastModified?: Date; props?: IBase['props']; extendedProps?: IBase['extendedProps']; readonly createdAt?: IBase['createdAt']; readonly createdBy?: UserPopulate | string; readonly updatedAt?: IBase['updatedAt']; readonly updatedBy?: UserPopulate | string; hidden?: boolean; readonly accessRole?: AccessRole | keyof typeof AccessRole | string; readonly importable?: boolean; readonly exportable?: boolean; readonly executable?: boolean; }