@kusto/monaco-kusto 10.0.7 → 10.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +3 -3
- package/release/dev/Kusto.Language.Bridge.min.js +1 -1
- package/release/dev/kusto.javascript.client.min.js +1 -1
- package/release/dev/kustoMode.js +2 -2
- package/release/dev/kustoWorker.js +45 -31
- package/release/dev/{main-ed17dbfe.js → main-14fb70f8.js} +2 -2
- package/release/dev/monaco.contribution.js +2 -2
- package/release/dev/{schema-747e1e00.js → schema-0a4f9ccd.js} +2 -2
- package/release/esm/kusto.worker.js +29 -13
- package/release/esm/languageService/kustoLanguageService.js +23 -12
- package/release/esm/languageService/schema.d.ts +87 -87
- package/release/esm/{schema-6fcbaf0d.js → schema-fd27df3d.js} +1 -1
- package/release/esm/util.d.ts +3 -0
- package/release/esm/util.js +1 -0
- package/release/min/Kusto.Language.Bridge.min.js +1 -1
- package/release/min/kusto.javascript.client.min.js +1 -1
- package/release/min/kustoMode.js +2 -2
- package/release/min/kustoWorker.js +4 -4
- package/release/min/{main-0d710df4.js → main-8d4424b0.js} +2 -2
- package/release/min/monaco.contribution.js +2 -2
- package/release/min/{schema-37352c11.js → schema-47d31727.js} +2 -2
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
export interface Column {
|
|
2
|
-
name: string;
|
|
3
|
-
type: string;
|
|
4
|
-
docstring?: string;
|
|
5
|
-
examples?: string[];
|
|
2
|
+
readonly name: string;
|
|
3
|
+
readonly type: string;
|
|
4
|
+
readonly docstring?: string;
|
|
5
|
+
readonly examples?: readonly string[];
|
|
6
6
|
}
|
|
7
7
|
export interface Table {
|
|
8
|
-
name: string;
|
|
9
|
-
entityType?: TableEntityType;
|
|
10
|
-
columns: Column[];
|
|
11
|
-
docstring?: string;
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly entityType?: TableEntityType;
|
|
10
|
+
readonly columns: readonly Column[];
|
|
11
|
+
readonly docstring?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface MaterializedViewTable extends Table {
|
|
14
|
-
entityType: 'MaterializedViewTable';
|
|
15
|
-
mvQuery?: string;
|
|
14
|
+
readonly entityType: 'MaterializedViewTable';
|
|
15
|
+
readonly mvQuery?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface ScalarParameter {
|
|
18
|
-
name: string;
|
|
19
|
-
type?: string;
|
|
20
|
-
cslType?: string;
|
|
21
|
-
docstring?: string;
|
|
22
|
-
cslDefaultValue?: string;
|
|
23
|
-
examples?: string[];
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly type?: string;
|
|
20
|
+
readonly cslType?: string;
|
|
21
|
+
readonly docstring?: string;
|
|
22
|
+
readonly cslDefaultValue?: string;
|
|
23
|
+
readonly examples?: readonly string[];
|
|
24
24
|
}
|
|
25
25
|
export interface TabularParameter {
|
|
26
|
-
name: string;
|
|
27
|
-
columns: Column[];
|
|
28
|
-
docstring?: string;
|
|
26
|
+
readonly name: string;
|
|
27
|
+
readonly columns: readonly Column[];
|
|
28
|
+
readonly docstring?: string;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* An input parameter either be a scalar in which case it has a name, type and
|
|
@@ -33,47 +33,47 @@ export interface TabularParameter {
|
|
|
33
33
|
* of scalar types which are the column types.
|
|
34
34
|
*/
|
|
35
35
|
export interface InputParameter extends ScalarParameter {
|
|
36
|
-
columns?: ScalarParameter[];
|
|
36
|
+
readonly columns?: ScalarParameter[];
|
|
37
37
|
}
|
|
38
38
|
export interface Function {
|
|
39
|
-
name: string;
|
|
40
|
-
body: string;
|
|
41
|
-
inputParameters: InputParameter[];
|
|
42
|
-
docstring?: string;
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly body: string;
|
|
41
|
+
readonly inputParameters: readonly InputParameter[];
|
|
42
|
+
readonly docstring?: string;
|
|
43
43
|
}
|
|
44
44
|
export interface EntityGroup {
|
|
45
|
-
name: string;
|
|
46
|
-
members: string[];
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly members: readonly string[];
|
|
47
47
|
}
|
|
48
48
|
export interface Database {
|
|
49
|
-
name: string;
|
|
50
|
-
alternateName?: string;
|
|
51
|
-
tables: Table[];
|
|
52
|
-
functions: Function[];
|
|
53
|
-
entityGroups: EntityGroup[];
|
|
54
|
-
majorVersion: number;
|
|
55
|
-
minorVersion: number;
|
|
49
|
+
readonly name: string;
|
|
50
|
+
readonly alternateName?: string;
|
|
51
|
+
readonly tables: readonly Table[];
|
|
52
|
+
readonly functions: readonly Function[];
|
|
53
|
+
readonly entityGroups: readonly EntityGroup[];
|
|
54
|
+
readonly majorVersion: number;
|
|
55
|
+
readonly minorVersion: number;
|
|
56
56
|
}
|
|
57
57
|
export type ClusterType = 'Engine' | 'DataManagement' | 'ClusterManager';
|
|
58
58
|
export interface EngineSchema {
|
|
59
|
-
clusterType: 'Engine';
|
|
60
|
-
cluster: {
|
|
61
|
-
connectionString: string;
|
|
62
|
-
databases: Database[];
|
|
59
|
+
readonly clusterType: 'Engine';
|
|
60
|
+
readonly cluster: {
|
|
61
|
+
readonly connectionString: string;
|
|
62
|
+
readonly databases: readonly Database[];
|
|
63
63
|
};
|
|
64
|
-
database: Database | undefined;
|
|
65
|
-
globalScalarParameters?: ScalarParameter[];
|
|
66
|
-
globalTabularParameters?: TabularParameter[];
|
|
64
|
+
readonly database: Database | undefined;
|
|
65
|
+
readonly globalScalarParameters?: readonly ScalarParameter[];
|
|
66
|
+
readonly globalTabularParameters?: readonly TabularParameter[];
|
|
67
67
|
}
|
|
68
68
|
export type TableEntityType = 'Table' | 'ExternalTable' | 'MaterializedViewTable';
|
|
69
69
|
export interface ClusterMangerSchema {
|
|
70
|
-
clusterType: 'ClusterManager';
|
|
71
|
-
accounts: string[];
|
|
72
|
-
services: string[];
|
|
73
|
-
connectionString: string;
|
|
70
|
+
readonly clusterType: 'ClusterManager';
|
|
71
|
+
readonly accounts: readonly string[];
|
|
72
|
+
readonly services: readonly string[];
|
|
73
|
+
readonly connectionString: string;
|
|
74
74
|
}
|
|
75
75
|
export interface DataManagementSchema {
|
|
76
|
-
clusterType: 'DataManagement';
|
|
76
|
+
readonly clusterType: 'DataManagement';
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Schema types:
|
|
@@ -86,71 +86,71 @@ export declare const getCslTypeNameFromClrType: (clrType: string) => string;
|
|
|
86
86
|
export declare const getEntityDataTypeFromCslType: (cslType: string) => string;
|
|
87
87
|
export declare const getCallName: (fn: Function) => string;
|
|
88
88
|
export declare const getExpression: (fn: Function) => string;
|
|
89
|
-
export declare const getInputParametersAsCslString: (inputParameters: InputParameter[]) => any;
|
|
89
|
+
export declare const getInputParametersAsCslString: (inputParameters: readonly InputParameter[]) => any;
|
|
90
90
|
/**
|
|
91
91
|
* This is the schema of the output of kusto command
|
|
92
92
|
* .show schema as json
|
|
93
93
|
*/
|
|
94
94
|
export declare namespace showSchema {
|
|
95
95
|
interface Column {
|
|
96
|
-
Name: string;
|
|
97
|
-
Type: string;
|
|
98
|
-
CslType: string;
|
|
99
|
-
DocString?: string;
|
|
100
|
-
Examples?: string[];
|
|
96
|
+
readonly Name: string;
|
|
97
|
+
readonly Type: string;
|
|
98
|
+
readonly CslType: string;
|
|
99
|
+
readonly DocString?: string;
|
|
100
|
+
readonly Examples?: readonly string[];
|
|
101
101
|
}
|
|
102
102
|
interface Table {
|
|
103
|
-
Name: string;
|
|
104
|
-
EntityType: TableEntityType;
|
|
105
|
-
OrderedColumns: Column[];
|
|
106
|
-
DocString?: string;
|
|
103
|
+
readonly Name: string;
|
|
104
|
+
readonly EntityType: TableEntityType;
|
|
105
|
+
readonly OrderedColumns: readonly Column[];
|
|
106
|
+
readonly DocString?: string;
|
|
107
107
|
}
|
|
108
108
|
interface Tables {
|
|
109
|
-
[tableName: string]: Table;
|
|
109
|
+
readonly [tableName: string]: Table;
|
|
110
110
|
}
|
|
111
111
|
interface ScalarParameter {
|
|
112
|
-
Name: string;
|
|
113
|
-
Type?: string;
|
|
114
|
-
CslType?: string;
|
|
115
|
-
DocString?: string;
|
|
116
|
-
CslDefaultValue?: string;
|
|
112
|
+
readonly Name: string;
|
|
113
|
+
readonly Type?: string;
|
|
114
|
+
readonly CslType?: string;
|
|
115
|
+
readonly DocString?: string;
|
|
116
|
+
readonly CslDefaultValue?: string;
|
|
117
117
|
}
|
|
118
118
|
interface TabularParameter {
|
|
119
|
-
Name: string;
|
|
120
|
-
Columns: Column[];
|
|
121
|
-
DocString?: string;
|
|
119
|
+
readonly Name: string;
|
|
120
|
+
readonly Columns: readonly Column[];
|
|
121
|
+
readonly DocString?: string;
|
|
122
|
+
}
|
|
123
|
+
interface InputParameter extends ScalarParameter {
|
|
124
|
+
readonly Columns?: readonly ScalarParameter[];
|
|
122
125
|
}
|
|
123
|
-
type InputParameter = ScalarParameter & {
|
|
124
|
-
Columns?: ScalarParameter[];
|
|
125
|
-
};
|
|
126
126
|
interface Function {
|
|
127
|
-
Name: string;
|
|
128
|
-
InputParameters: InputParameter[];
|
|
129
|
-
Body: string;
|
|
130
|
-
Folder: string;
|
|
131
|
-
DocString: string;
|
|
132
|
-
FunctionKind: string;
|
|
133
|
-
OutputColumns: any[];
|
|
127
|
+
readonly Name: string;
|
|
128
|
+
readonly InputParameters: readonly InputParameter[];
|
|
129
|
+
readonly Body: string;
|
|
130
|
+
readonly Folder: string;
|
|
131
|
+
readonly DocString: string;
|
|
132
|
+
readonly FunctionKind: string;
|
|
133
|
+
readonly OutputColumns: readonly any[];
|
|
134
134
|
}
|
|
135
135
|
interface Functions {
|
|
136
|
-
[functionName: string]: Function;
|
|
136
|
+
readonly [functionName: string]: Function;
|
|
137
137
|
}
|
|
138
138
|
interface Database {
|
|
139
|
-
Name: string;
|
|
140
|
-
Tables: Tables;
|
|
141
|
-
ExternalTables: Tables;
|
|
142
|
-
MaterializedViews: Table;
|
|
143
|
-
EntityGroups: Record<string, string[]
|
|
144
|
-
MajorVersion: number;
|
|
145
|
-
MinorVersion: number;
|
|
146
|
-
Functions: Functions;
|
|
147
|
-
DatabaseAccessMode: string;
|
|
139
|
+
readonly Name: string;
|
|
140
|
+
readonly Tables: Tables;
|
|
141
|
+
readonly ExternalTables: Tables;
|
|
142
|
+
readonly MaterializedViews: Table;
|
|
143
|
+
readonly EntityGroups: Readonly<Record<string, readonly string[]>>;
|
|
144
|
+
readonly MajorVersion: number;
|
|
145
|
+
readonly MinorVersion: number;
|
|
146
|
+
readonly Functions: Functions;
|
|
147
|
+
readonly DatabaseAccessMode: string;
|
|
148
148
|
}
|
|
149
149
|
interface Databases {
|
|
150
|
-
[dbName: string]: Database;
|
|
150
|
+
readonly [dbName: string]: Database;
|
|
151
151
|
}
|
|
152
152
|
interface Result {
|
|
153
|
-
Plugins:
|
|
154
|
-
Databases: Databases;
|
|
153
|
+
readonly Plugins: readonly unknown[];
|
|
154
|
+
readonly Databases: Databases;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 10.0.
|
|
3
|
+
* monaco-kusto version: 10.0.9(34b077d53294df0cb4b182c057201793bb037ffa)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|