UNPKG

@webda/shell

Version:

Deploy a Webda app or configure it

45 lines (44 loc) 1.26 kB
import { Constructor, Core, CoreEvents, ModelAction } from "@webda/core"; import { JSONSchema7 } from "json-schema"; /** * Abstract diagram with the common replacement methods */ export declare abstract class Diagram { protected name: string; append: boolean; content: string; file: string; constructor(name: string); update(file: string, webda: Core): void; abstract generate(webda: Core): string; } /** * Export each CoreModel and their Store */ export declare class StorageDiagram extends Diagram { constructor(); generate(webda: Core): string; } /** * Export each CoreModel, their properties and actions */ export declare class ModelDiagram extends Diagram { constructor(); generateClassDefinition(schema: JSONSchema7, actions: { [key: string]: ModelAction; }): string; generate(webda: Core<CoreEvents>): string; } /** * Export each Service and their dependencies * * It detect dependencies by looking at the attributes of the service * So dynamic dependencies are not detected */ export declare class ServiceDiagram extends Diagram { constructor(); generate(webda: Core<CoreEvents>): string; } export declare const DiagramTypes: { [key: string]: Constructor<Diagram, []>; };