@lcap/nasl 2.14.0-beta.5 → 2.15.1
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/out/automate/template/process.js +10298 -9487
- package/out/automate/template/process.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +170 -0
- package/out/concepts/AnonymousFunction__.js +439 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -0
- package/out/concepts/AssignmentLine__.d.ts +40 -0
- package/out/concepts/AssignmentLine__.js +109 -0
- package/out/concepts/AssignmentLine__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +248 -0
- package/out/concepts/BatchAssignment__.js +742 -0
- package/out/concepts/BatchAssignment__.js.map +1 -0
- package/out/concepts/BindDirective__.js +2 -2
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +126 -0
- package/out/concepts/BindStyle__.js +233 -0
- package/out/concepts/BindStyle__.js.map +1 -0
- package/out/concepts/ConstructArgument__.d.ts +40 -0
- package/out/concepts/ConstructArgument__.js +108 -0
- package/out/concepts/ConstructArgument__.js.map +1 -0
- package/out/concepts/Construct__.d.ts +189 -0
- package/out/concepts/Construct__.js +340 -0
- package/out/concepts/Construct__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +1 -0
- package/out/concepts/Interface__.js +17 -5
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +256 -0
- package/out/concepts/MatchCase__.js +584 -0
- package/out/concepts/MatchCase__.js.map +1 -0
- package/out/concepts/Match__.d.ts +117 -0
- package/out/concepts/Match__.js +434 -0
- package/out/concepts/Match__.js.map +1 -0
- package/out/concepts/OqlQueryComponent__.d.ts +73 -0
- package/out/concepts/OqlQueryComponent__.js +395 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -0
- package/out/concepts/ProcessElement__.js +6 -4
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +141 -0
- package/out/concepts/SelectMembers__.js +290 -0
- package/out/concepts/SelectMembers__.js.map +1 -0
- package/out/concepts/SqlQueryComponent__.d.ts +4 -0
- package/out/concepts/SqlQueryComponent__.js +144 -2
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Variable__.js +0 -1
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.js +10 -1
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/generator/genMetaData.d.ts +10 -1
- package/out/generator/genMetaData.js +28 -34
- package/out/generator/genMetaData.js.map +1 -1
- package/out/server/extendBaseNode.js +17 -4
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/naslServer.js +14 -0
- package/out/server/naslServer.js.map +1 -1
- package/out/server/stdlib/nasl.annotation.d.ts +4 -0
- package/out/server/stdlib/nasl.annotation.js +1 -0
- package/out/server/stdlib/nasl.annotation.js.map +1 -0
- package/out/server/stdlib/nasl.auth.d.ts +30 -0
- package/out/server/stdlib/nasl.auth.js +1 -0
- package/out/server/stdlib/nasl.auth.js.map +1 -0
- package/out/server/stdlib/nasl.browser.d.ts +5 -0
- package/out/server/stdlib/nasl.browser.js +1 -0
- package/out/server/stdlib/nasl.browser.js.map +1 -0
- package/out/server/stdlib/nasl.collection.d.ts +22 -0
- package/out/server/stdlib/nasl.collection.js +1 -0
- package/out/server/stdlib/nasl.collection.js.map +1 -0
- package/out/server/stdlib/nasl.configuration.d.ts +3 -0
- package/out/server/stdlib/nasl.configuration.js +1 -0
- package/out/server/stdlib/nasl.configuration.js.map +1 -0
- package/out/server/stdlib/nasl.core.d.ts +104 -0
- package/out/server/stdlib/nasl.core.js +1 -0
- package/out/server/stdlib/nasl.core.js.map +1 -0
- package/out/server/stdlib/nasl.interface.d.ts +7 -0
- package/out/server/stdlib/nasl.interface.js +1 -0
- package/out/server/stdlib/nasl.interface.js.map +1 -0
- package/out/server/stdlib/nasl.langUtil.d.ts +28 -0
- package/out/server/stdlib/nasl.langUtil.js +1 -0
- package/out/server/stdlib/nasl.langUtil.js.map +1 -0
- package/out/server/stdlib/nasl.process.d.ts +50 -0
- package/out/server/stdlib/nasl.process.js +1 -0
- package/out/server/stdlib/nasl.process.js.map +1 -0
- package/out/server/stdlib/nasl.ui.d.ts +186 -0
- package/out/server/stdlib/nasl.ui.definition.d.ts +1072 -0
- package/out/server/stdlib/nasl.ui.definition.js +632 -0
- package/out/server/stdlib/nasl.ui.definition.js.map +1 -0
- package/out/server/stdlib/nasl.ui.js +1 -0
- package/out/server/stdlib/nasl.ui.js.map +1 -0
- package/out/server/stdlib/nasl.util.d.ts +74 -0
- package/out/server/stdlib/nasl.util.js +4 -0
- package/out/server/stdlib/nasl.util.js.map +1 -0
- package/out/server/stdlib/nasl.validation.d.ts +32 -0
- package/out/server/stdlib/nasl.validation.js +1 -0
- package/out/server/stdlib/nasl.validation.js.map +1 -0
- package/out/server/translator.js +4 -0
- package/out/server/translator.js.map +1 -1
- package/out/service/logic/api.d.ts +9 -0
- package/out/service/logic/api.js +11 -0
- package/out/service/logic/api.js.map +1 -0
- package/out/service/logic/index.d.ts +2 -0
- package/out/service/logic/index.js +10 -0
- package/out/service/logic/index.js.map +1 -0
- package/out/templator/genCreateBlock.js +1 -1
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +4 -5
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +4 -4
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +5 -3
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +3 -2
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +4 -2
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +1 -1
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/sql-parser/index.d.ts +1 -0
- package/out/templator/sql-parser/index.js +228 -0
- package/out/templator/sql-parser/index.js.map +1 -0
- package/out/templator/sql-parser/parser.js +26664 -0
- package/out/templator/sql-parser/parser.js.map +1 -0
- package/package.json +1 -1
- package/src/concepts/BindDirective__.ts +2 -17
- package/src/concepts/Interface__.ts +31 -16
- package/src/concepts/ProcessElement__.ts +8 -6
- package/src/concepts/SqlQueryComponent__.ts +143 -2
- package/src/concepts/Variable__.ts +0 -1
- package/src/concepts/ViewElement__.ts +12 -20
- package/src/generator/genMetaData.ts +55 -37
- package/src/server/extendBaseNode.ts +16 -4
- package/src/server/naslServer.ts +14 -0
- package/src/server/translator.ts +4 -0
- package/src/templator/genCreateBlock.ts +1 -1
- package/src/templator/genCurdEditMultipleKeyBlock.ts +4 -7
- package/src/templator/genCurdMultipleKeyBlock.ts +4 -4
- package/src/templator/genEditTableBlock.ts +5 -3
- package/src/templator/genGetBlock.ts +3 -2
- package/src/templator/genTableBlock.ts +4 -2
- package/src/templator/genUpdateBlock.ts +1 -1
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { TranslatorState } from '../translator';
|
|
2
|
+
import { ElementToVueOptions } from './ViewElement__';
|
|
3
|
+
import { Params } from '../common/EventEmitter';
|
|
4
|
+
import LogicItem from './LogicItem__';
|
|
5
|
+
import TypeAnnotation from './TypeAnnotation__';
|
|
6
|
+
/**
|
|
7
|
+
* 匹配分支情况
|
|
8
|
+
*/
|
|
9
|
+
export declare class MatchCase extends LogicItem {
|
|
10
|
+
/**
|
|
11
|
+
* 产品概念
|
|
12
|
+
*/
|
|
13
|
+
concept: 'MatchCase';
|
|
14
|
+
/**
|
|
15
|
+
* 条件表达式
|
|
16
|
+
*/
|
|
17
|
+
patterns: Array<LogicItem | TypeAnnotation>;
|
|
18
|
+
/**
|
|
19
|
+
* then
|
|
20
|
+
*/
|
|
21
|
+
body: Array<LogicItem>;
|
|
22
|
+
/**
|
|
23
|
+
* 是否可枚举
|
|
24
|
+
*/
|
|
25
|
+
isMatchedTypeEnumable: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @param source 需要合并的部分参数
|
|
28
|
+
*/
|
|
29
|
+
constructor(source?: Partial<MatchCase>);
|
|
30
|
+
static from(source: any, parentNode?: any, parentKey?: string): MatchCase;
|
|
31
|
+
/**
|
|
32
|
+
* 设置条件表达式
|
|
33
|
+
*/
|
|
34
|
+
setPatterns(patterns: Array<LogicItem | TypeAnnotation>): void;
|
|
35
|
+
/**
|
|
36
|
+
* 设置是否可枚举
|
|
37
|
+
*/
|
|
38
|
+
setIsMatchedTypeEnumable(isMatchedTypeEnumable: boolean): void;
|
|
39
|
+
getLogicItemExistingNames(excludedList?: Array<LogicItem>): string[];
|
|
40
|
+
getLogicItemUniqueName(name?: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* 插入逻辑项
|
|
43
|
+
* @internal
|
|
44
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
45
|
+
*/
|
|
46
|
+
_insertLogicItemInPatternsAt(name: string, index: number): LogicItem;
|
|
47
|
+
/**
|
|
48
|
+
* 插入逻辑项
|
|
49
|
+
* @internal
|
|
50
|
+
* @param logicItemOptions 逻辑项参数
|
|
51
|
+
*/
|
|
52
|
+
_insertLogicItemInPatternsAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
53
|
+
/**
|
|
54
|
+
* 插入逻辑项
|
|
55
|
+
* @internal
|
|
56
|
+
* @param logicItem 已有的逻辑项实例
|
|
57
|
+
*/
|
|
58
|
+
_insertLogicItemInPatternsAt(logicItem: LogicItem, index: number): LogicItem;
|
|
59
|
+
/**
|
|
60
|
+
* 插入逻辑项
|
|
61
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
62
|
+
*/
|
|
63
|
+
insertLogicItemInPatternsAt(name: string, index: number): LogicItem;
|
|
64
|
+
/**
|
|
65
|
+
* 插入逻辑项
|
|
66
|
+
* @param logicItemOptions 逻辑项参数
|
|
67
|
+
*/
|
|
68
|
+
insertLogicItemInPatternsAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
69
|
+
/**
|
|
70
|
+
* 插入逻辑项
|
|
71
|
+
* @param logicItem 已有的逻辑项实例
|
|
72
|
+
*/
|
|
73
|
+
insertLogicItemInPatternsAt(logicItem: LogicItem, index: number): LogicItem;
|
|
74
|
+
/**
|
|
75
|
+
* 添加逻辑项
|
|
76
|
+
* @internal
|
|
77
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
78
|
+
*/
|
|
79
|
+
_addLogicItemInPatterns(name?: string): LogicItem;
|
|
80
|
+
/**
|
|
81
|
+
* 添加逻辑项
|
|
82
|
+
* @internal
|
|
83
|
+
* @param logicItemOptions 逻辑项参数
|
|
84
|
+
*/
|
|
85
|
+
_addLogicItemInPatterns(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
86
|
+
/**
|
|
87
|
+
* 添加逻辑项
|
|
88
|
+
* @internal
|
|
89
|
+
* @param logicItem 已有的逻辑项实例
|
|
90
|
+
*/
|
|
91
|
+
_addLogicItemInPatterns(logicItem: LogicItem): LogicItem;
|
|
92
|
+
/**
|
|
93
|
+
* 添加逻辑项
|
|
94
|
+
* @internal
|
|
95
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
96
|
+
*/
|
|
97
|
+
addLogicItemInPatterns(name?: string): LogicItem;
|
|
98
|
+
/**
|
|
99
|
+
* 添加逻辑项
|
|
100
|
+
* @param logicItemOptions 逻辑项参数
|
|
101
|
+
*/
|
|
102
|
+
addLogicItemInPatterns(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
103
|
+
/**
|
|
104
|
+
* 添加逻辑项
|
|
105
|
+
* @param logicItem 已有的逻辑项实例
|
|
106
|
+
*/
|
|
107
|
+
addLogicItemInPatterns(logicItem: LogicItem): LogicItem;
|
|
108
|
+
/**
|
|
109
|
+
* 插入逻辑项
|
|
110
|
+
* @internal
|
|
111
|
+
* @param logicItemOptions 逻辑项参数
|
|
112
|
+
*/
|
|
113
|
+
_insertItemInBodyAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
114
|
+
/**
|
|
115
|
+
* 插入逻辑项
|
|
116
|
+
* @internal
|
|
117
|
+
* @param logicItem 已有的逻辑项实例
|
|
118
|
+
*/
|
|
119
|
+
_insertItemInBodyAt(logicItem: LogicItem, index: number): LogicItem;
|
|
120
|
+
/**
|
|
121
|
+
* 插入逻辑项
|
|
122
|
+
* @param logicItemOptions 逻辑项参数
|
|
123
|
+
*/
|
|
124
|
+
insertItemInBodyAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
125
|
+
/**
|
|
126
|
+
* 插入逻辑项
|
|
127
|
+
* @param logicItem 已有的逻辑项实例
|
|
128
|
+
*/
|
|
129
|
+
insertItemInBodyAt(logicItem: LogicItem, index: number): LogicItem;
|
|
130
|
+
/**
|
|
131
|
+
* 添加逻辑项
|
|
132
|
+
* @internal
|
|
133
|
+
* @param logicItemOptions 逻辑项参数
|
|
134
|
+
*/
|
|
135
|
+
_addItemInBody(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
136
|
+
/**
|
|
137
|
+
* 添加逻辑项
|
|
138
|
+
* @internal
|
|
139
|
+
* @param logicItem 已有的逻辑项实例
|
|
140
|
+
*/
|
|
141
|
+
_addItemInBody(logicItem: LogicItem): LogicItem;
|
|
142
|
+
/**
|
|
143
|
+
* 添加逻辑项
|
|
144
|
+
* @param logicItemOptions 逻辑项参数
|
|
145
|
+
*/
|
|
146
|
+
addItemInBody(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
147
|
+
/**
|
|
148
|
+
* 添加逻辑项
|
|
149
|
+
* @param logicItem 已有的逻辑项实例
|
|
150
|
+
*/
|
|
151
|
+
addItemInBody(logicItem: LogicItem): LogicItem;
|
|
152
|
+
getTypeAnnotationExistingNames(excludedList?: Array<TypeAnnotation>): string[];
|
|
153
|
+
getTypeAnnotationUniqueName(name?: string): string;
|
|
154
|
+
/**
|
|
155
|
+
* 插入类型标注
|
|
156
|
+
* @internal
|
|
157
|
+
* @param name 类型标注名称,如果不填会自动生成一个唯一名称
|
|
158
|
+
*/
|
|
159
|
+
_insertTypeAnnotationAt(name: string, index: number): TypeAnnotation;
|
|
160
|
+
/**
|
|
161
|
+
* 插入类型标注
|
|
162
|
+
* @internal
|
|
163
|
+
* @param typeAnnotationOptions 类型标注参数
|
|
164
|
+
*/
|
|
165
|
+
_insertTypeAnnotationAt(typeAnnotationOptions: Partial<TypeAnnotation>, index: number): TypeAnnotation;
|
|
166
|
+
/**
|
|
167
|
+
* 插入类型标注
|
|
168
|
+
* @internal
|
|
169
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
170
|
+
*/
|
|
171
|
+
_insertTypeAnnotationAt(typeAnnotation: TypeAnnotation, index: number): TypeAnnotation;
|
|
172
|
+
/**
|
|
173
|
+
* 插入类型标注
|
|
174
|
+
* @param name 类型标注名称,如果不填会自动生成一个唯一名称
|
|
175
|
+
*/
|
|
176
|
+
insertTypeAnnotationAt(name: string, index: number): TypeAnnotation;
|
|
177
|
+
/**
|
|
178
|
+
* 插入类型标注
|
|
179
|
+
* @param typeAnnotationOptions 类型标注参数
|
|
180
|
+
*/
|
|
181
|
+
insertTypeAnnotationAt(typeAnnotationOptions: Partial<TypeAnnotation>, index: number): TypeAnnotation;
|
|
182
|
+
/**
|
|
183
|
+
* 插入类型标注
|
|
184
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
185
|
+
*/
|
|
186
|
+
insertTypeAnnotationAt(typeAnnotation: TypeAnnotation, index: number): TypeAnnotation;
|
|
187
|
+
/**
|
|
188
|
+
* 添加类型标注
|
|
189
|
+
* @internal
|
|
190
|
+
* @param name 类型标注名称,如果不填会自动生成一个唯一名称
|
|
191
|
+
*/
|
|
192
|
+
_addTypeAnnotation(name?: string): TypeAnnotation;
|
|
193
|
+
/**
|
|
194
|
+
* 添加类型标注
|
|
195
|
+
* @internal
|
|
196
|
+
* @param typeAnnotationOptions 类型标注参数
|
|
197
|
+
*/
|
|
198
|
+
_addTypeAnnotation(typeAnnotationOptions: Partial<TypeAnnotation>): TypeAnnotation;
|
|
199
|
+
/**
|
|
200
|
+
* 添加类型标注
|
|
201
|
+
* @internal
|
|
202
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
203
|
+
*/
|
|
204
|
+
_addTypeAnnotation(typeAnnotation: TypeAnnotation): TypeAnnotation;
|
|
205
|
+
/**
|
|
206
|
+
* 添加类型标注
|
|
207
|
+
* @internal
|
|
208
|
+
* @param name 类型标注名称,如果不填会自动生成一个唯一名称
|
|
209
|
+
*/
|
|
210
|
+
addTypeAnnotation(name?: string): TypeAnnotation;
|
|
211
|
+
/**
|
|
212
|
+
* 添加类型标注
|
|
213
|
+
* @param typeAnnotationOptions 类型标注参数
|
|
214
|
+
*/
|
|
215
|
+
addTypeAnnotation(typeAnnotationOptions: Partial<TypeAnnotation>): TypeAnnotation;
|
|
216
|
+
/**
|
|
217
|
+
* 添加类型标注
|
|
218
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
219
|
+
*/
|
|
220
|
+
addTypeAnnotation(typeAnnotation: TypeAnnotation): TypeAnnotation;
|
|
221
|
+
/**
|
|
222
|
+
* 删除逻辑项
|
|
223
|
+
* @param name 逻辑项名称
|
|
224
|
+
*/
|
|
225
|
+
removeLogicItemInPatterns(name: string): void;
|
|
226
|
+
/**
|
|
227
|
+
* 删除逻辑项
|
|
228
|
+
* @param logicItem 已有的逻辑项实例
|
|
229
|
+
*/
|
|
230
|
+
removeLogicItemInPatterns(logicItem: LogicItem): void;
|
|
231
|
+
/**
|
|
232
|
+
* 删除逻辑项
|
|
233
|
+
* @param logicItem 已有的逻辑项实例
|
|
234
|
+
*/
|
|
235
|
+
removeItemInBody(logicItem: LogicItem): void;
|
|
236
|
+
__removeLogicItem(logicItem: LogicItem): Params;
|
|
237
|
+
/**
|
|
238
|
+
* 删除类型标注
|
|
239
|
+
* @param name 类型标注名称
|
|
240
|
+
*/
|
|
241
|
+
removeTypeAnnotation(name: string): void;
|
|
242
|
+
/**
|
|
243
|
+
* 删除类型标注
|
|
244
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
245
|
+
*/
|
|
246
|
+
removeTypeAnnotation(typeAnnotation: TypeAnnotation): void;
|
|
247
|
+
__removeTypeAnnotation(typeAnnotation: TypeAnnotation): Params;
|
|
248
|
+
get isDisabled(): boolean;
|
|
249
|
+
get isSlotTypeError(): boolean;
|
|
250
|
+
isTypeMatching(): Promise<boolean>;
|
|
251
|
+
toVue(options?: ElementToVueOptions): string;
|
|
252
|
+
toUI(state?: TranslatorState): string;
|
|
253
|
+
toJS(expression: LogicItem, index?: number, length?: number): string;
|
|
254
|
+
toEmbeddedTS(state?: TranslatorState, index?: number, parentCode?: string): string;
|
|
255
|
+
}
|
|
256
|
+
export default MatchCase;
|