mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 17:23:53 -05:00
dialog assisted notebooks (#6564)
This commit is contained in:
@@ -27,11 +27,51 @@ export interface ResourceTypeOptionValue {
|
||||
}
|
||||
|
||||
export interface DeploymentProvider {
|
||||
title: string;
|
||||
dialog: DialogInfo;
|
||||
notebook: string | NotebookInfo;
|
||||
requiredTools: ToolRequirementInfo[];
|
||||
when: string;
|
||||
}
|
||||
|
||||
export interface DialogInfo {
|
||||
title: string;
|
||||
name: string;
|
||||
tabs: DialogTabInfo[];
|
||||
}
|
||||
|
||||
export interface DialogTabInfo {
|
||||
title: string;
|
||||
sections: DialogSectionInfo[];
|
||||
}
|
||||
|
||||
export interface DialogSectionInfo {
|
||||
title: string;
|
||||
fields: DialogFieldInfo[];
|
||||
}
|
||||
|
||||
export interface DialogFieldInfo {
|
||||
label: string;
|
||||
variableName: string;
|
||||
type: FieldType;
|
||||
defaultValue: string;
|
||||
confirmationRequired: boolean;
|
||||
confirmationLabel: string;
|
||||
min?: number;
|
||||
max?: number;
|
||||
required: boolean;
|
||||
options: string[];
|
||||
placeHolder: string;
|
||||
}
|
||||
|
||||
export enum FieldType {
|
||||
Text = 'text',
|
||||
Number = 'number',
|
||||
DateTimeText = 'datetime_text',
|
||||
Password = 'password',
|
||||
Options = 'options'
|
||||
}
|
||||
|
||||
export interface NotebookInfo {
|
||||
win32: string;
|
||||
darwin: string;
|
||||
@@ -55,4 +95,4 @@ export interface ITool {
|
||||
readonly displayName: string;
|
||||
readonly description: string;
|
||||
readonly type: ToolType;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user