mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
import * as sqlops from 'sqlops';
|
|
import { IItemConfig, IComponentShape } from 'sql/workbench/api/common/sqlExtHostTypes';
|
|
import Event, { Emitter } from 'vs/base/common/event';
|
|
|
|
export interface IView {
|
|
readonly id: string;
|
|
readonly connection: sqlops.connection.Connection;
|
|
readonly serverInfo: sqlops.ServerInfo;
|
|
}
|
|
|
|
export interface IModelView extends IView {
|
|
initializeModel(rootComponent: IComponentShape): void;
|
|
clearContainer(componentId: string): void;
|
|
addToContainer(containerId: string, item: IItemConfig): void;
|
|
setLayout(componentId: string, layout: any): void;
|
|
setProperties(componentId: string, properties: { [key: string]: any }): void;
|
|
setValid(componentId: string, valid: boolean): void;
|
|
registerEvent(componentId: string);
|
|
onEvent: Event<any>;
|
|
}
|