/** * Copyright 2019 EPAM Systems * * 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. */ import { JupyterLab } from '@jupyterlab/application'; import { ServiceManager } from '@jupyterlab/services'; import { ISplashScreen, InstanceTracker } from '@jupyterlab/apputils'; import { FileBrowser } from '@jupyterlab/filebrowser'; import { Widget } from '@phosphor/widgets'; import { IApiCloudState } from '../models'; import { ILegionApi } from '../api'; import { WidgetRegistry } from '../components/Widgets'; import { IConfigurationMainResponse } from '../models/configuration'; /** * CommandIDs contains IDs of all Legion commands. * This commands can be used outside of Legion system. */ export declare namespace CommandIDs { const openCloudModelPlugin = "legion:ui-cloud-mode"; const mainRepository = "legion:main-repository"; const unAuthorizeOnCluster = "legion:cloud-reset-auth"; const authorizeOnCluster = "legion:cloud-start-auth"; const removeConnection = "legion:connection-remove"; const removeModelPackaging = "legion:modelpackaging-remove"; const removeCloudTraining = "legion:cloud-training-remove"; const newCloudDeployment = "legion:cloud-deployment-new"; const removeCloudDeployment = "legion:cloud-deployment-remove"; const openTrainingLogs = "legion:cloud-training-logs"; const openPackagingLogs = "legion:cloud-packaging-logs"; const applyCloudResources = "legion:resources:apply"; const removeCloudResources = "legion:resources:remove"; const condaUpdateEnv = "legion:resources:conda_env"; const refreshCloud = "legion:refresh-cloud-mode"; const palleteCommands: string[]; } export interface IAddCommandsOptions { app: JupyterLab; tracker: InstanceTracker; services: ServiceManager; api: ILegionApi; splash: ISplashScreen; } export interface IAddCloudCommandsOptions extends IAddCommandsOptions { config: IConfigurationMainResponse; state: IApiCloudState; trainingLogs: WidgetRegistry; packagingLogs: WidgetRegistry; }