UNPKG

@eclipse-emfcloud/modelserver-client

Version:

Typescript rest client to interact with an EMF.cloud modelserver

52 lines 2.77 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ModelServerPaths = void 0; /******************************************************************************** * Copyright (c) 2019-2022 EclipseSource and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0, or the MIT License which is * available at https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: EPL-2.0 OR MIT *******************************************************************************/ /** * Utility collection of all the available endpoint paths of a (default) modelserver. */ var ModelServerPaths; (function (ModelServerPaths) { /** Endpoint to retrieve the uris of all available models in the workspace */ ModelServerPaths.MODEL_URIS = 'modeluris'; /** Endpoint for executing CRUD model operations or retrieving all available models in the workspace */ ModelServerPaths.MODEL_CRUD = 'models'; /** Endpoint to retrieve a model element by its id */ ModelServerPaths.MODEL_ELEMENT = 'modelelement'; /** Endpoint to retrieve the type schema of a model as JSON schema */ ModelServerPaths.TYPE_SCHEMA = 'typeschema'; /** Endpoint to retrieve the UI schema of a model as JSON schema */ ModelServerPaths.UI_SCHEMA = 'uischema'; /** Endpoint to configure the modelserver */ ModelServerPaths.SERVER_CONFIGURE = 'server/configure'; /** Endpoint to ping the modelserver */ ModelServerPaths.SERVER_PING = 'server/ping'; /** Endpoint to subscribe/unsubscribe for model state notifications. Has to be called with a Websocket-protocol */ ModelServerPaths.SUBSCRIPTION = 'subscribe'; /** Endpoint to edit a model using a command */ ModelServerPaths.EDIT = 'edit'; /** Endpoint to close a model. This unloads the model form the workspace and omits discards any dirty changes */ ModelServerPaths.CLOSE = 'close'; /** Endpoint to save a model */ ModelServerPaths.SAVE = 'save'; /** Endpoint to save all currently loaded models */ ModelServerPaths.SAVE_ALL = 'saveall'; /** Endpoint to undo the last edit command on model */ ModelServerPaths.UNDO = 'undo'; /** Endpoint to redo the last edit command on model */ ModelServerPaths.REDO = 'redo'; /** Endpoint to trigger validation for a model */ ModelServerPaths.VALIDATION = 'validation'; /** Endpoint to get a list of validation constraints of a model */ ModelServerPaths.VALIDATION_CONSTRAINTS = 'validation/constraints'; })(ModelServerPaths = exports.ModelServerPaths || (exports.ModelServerPaths = {})); //# sourceMappingURL=model-server-paths.js.map