@lcap/nasl 2.22.0-beta.5 → 3.0.0-beta.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/README.md +13 -0
- package/docs/classes/Module.html +15 -15
- package/docs/classes/Namespace.html +15 -15
- package/docs/classes/ViewComponent.html +19 -19
- package/out/automate/engine/utils.js +4 -0
- package/out/automate/engine/utils.js.map +1 -1
- package/out/breakpoint/generator/AfterStartNode.d.ts +7 -0
- package/out/breakpoint/generator/AfterStartNode.js +27 -0
- package/out/breakpoint/generator/AfterStartNode.js.map +1 -0
- package/out/breakpoint/generator/BeforeEndNode.d.ts +7 -0
- package/out/breakpoint/generator/BeforeEndNode.js +27 -0
- package/out/breakpoint/generator/BeforeEndNode.js.map +1 -0
- package/out/breakpoint/generator/BreakpointNode.d.ts +14 -0
- package/out/breakpoint/generator/BreakpointNode.js +166 -0
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -0
- package/out/breakpoint/generator/index.d.ts +4 -0
- package/out/breakpoint/generator/index.js +98 -0
- package/out/breakpoint/generator/index.js.map +1 -0
- package/out/breakpoint/index.d.ts +3 -0
- package/out/breakpoint/index.js +20 -0
- package/out/breakpoint/index.js.map +1 -0
- package/out/breakpoint/shared/constants.d.ts +30 -0
- package/out/breakpoint/shared/constants.js +87 -0
- package/out/breakpoint/shared/constants.js.map +1 -0
- package/out/breakpoint/shared/index.d.ts +3 -0
- package/out/breakpoint/shared/index.js +33 -0
- package/out/breakpoint/shared/index.js.map +1 -0
- package/out/breakpoint/shared/operations.d.ts +10 -0
- package/out/breakpoint/shared/operations.js +25 -0
- package/out/breakpoint/shared/operations.js.map +1 -0
- package/out/breakpoint/shared/socket.d.ts +47 -0
- package/out/breakpoint/shared/socket.js +210 -0
- package/out/breakpoint/shared/socket.js.map +1 -0
- package/out/breakpoint/shared/utils.d.ts +20 -0
- package/out/breakpoint/shared/utils.js +133 -0
- package/out/breakpoint/shared/utils.js.map +1 -0
- package/out/breakpoint/store/core.d.ts +30 -0
- package/out/breakpoint/store/core.js +341 -0
- package/out/breakpoint/store/core.js.map +1 -0
- package/out/breakpoint/store/dock.d.ts +1 -0
- package/out/breakpoint/store/dock.js +127 -0
- package/out/breakpoint/store/dock.js.map +1 -0
- package/out/breakpoint/store/index.d.ts +2 -0
- package/out/breakpoint/store/index.js +19 -0
- package/out/breakpoint/store/index.js.map +1 -0
- package/out/common/BaseNode.d.ts +8 -0
- package/out/common/BaseNode.js +19 -0
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/App__.d.ts +365 -16
- package/out/concepts/App__.js +431 -10
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Assignment__.js +1 -1
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/AuthInterface__.d.ts +37 -0
- package/out/concepts/AuthInterface__.js +141 -0
- package/out/concepts/AuthInterface__.js.map +1 -0
- package/out/concepts/AuthLogicForCallInterface__.d.ts +138 -0
- package/out/concepts/AuthLogicForCallInterface__.js +493 -0
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -0
- package/out/concepts/AuthLogic__.d.ts +66 -0
- package/out/concepts/AuthLogic__.js +206 -0
- package/out/concepts/AuthLogic__.js.map +1 -0
- package/out/concepts/BackendVariable__.d.ts +137 -0
- package/out/concepts/BackendVariable__.js +422 -0
- package/out/concepts/BackendVariable__.js.map +1 -0
- package/out/concepts/Backend__.d.ts +134 -0
- package/out/concepts/Backend__.js +274 -0
- package/out/concepts/Backend__.js.map +1 -0
- package/out/concepts/BindAttribute__.d.ts +1 -1
- package/out/concepts/BindAttribute__.js +3 -1
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +12 -0
- package/out/concepts/BindEvent__.js +68 -0
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +126 -0
- package/out/concepts/CallAuthInterface__.js +408 -0
- package/out/concepts/CallAuthInterface__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +6 -1
- package/out/concepts/CallInterface__.js +9 -1
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.js +3 -1
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js +9 -7
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Destination__.js +1 -1
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.js +29 -2
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +1 -2
- package/out/concepts/Entity__.js +1 -31
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +9 -4
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +29 -29
- package/out/concepts/FrontendLibrary__.js +2 -2
- package/out/concepts/FrontendVariable__.d.ts +21 -0
- package/out/concepts/FrontendVariable__.js +64 -0
- package/out/concepts/FrontendVariable__.js.map +1 -0
- package/out/concepts/Frontend__.d.ts +151 -47
- package/out/concepts/Frontend__.js +188 -32
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js +1 -1
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.js +1 -1
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +1 -1
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +18 -3
- package/out/concepts/LogicItem__.js +22 -4
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +14 -9
- package/out/concepts/Logic__.js +43 -5
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +29 -29
- package/out/concepts/Namespace__.js +2 -2
- package/out/concepts/NewComposite__.js +2 -2
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +643 -0
- package/out/concepts/OverriddenLogic__.js +1602 -0
- package/out/concepts/OverriddenLogic__.js.map +1 -0
- package/out/concepts/Param__.d.ts +6 -0
- package/out/concepts/Param__.js +10 -0
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +2 -0
- package/out/concepts/QueryFieldExpression__.js +9 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.d.ts +2 -2
- package/out/concepts/QuerySelectExpression__.js +2 -2
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.js +6 -6
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +10 -0
- package/out/concepts/Variable__.js +12 -0
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewComponent__.d.ts +33 -33
- package/out/concepts/ViewComponent__.js +7 -7
- package/out/concepts/ViewElement__.d.ts +6 -0
- package/out/concepts/ViewElement__.js +104 -1
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +2 -2
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/index.js +2 -1
- package/out/concepts/basics/stdlib/index.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.auth.js +24 -0
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.http.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.http.js +167 -0
- package/out/concepts/basics/stdlib/nasl.http.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.js +68 -0
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +4 -19
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +83 -17
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/basics/types/index.d.ts +1 -0
- package/out/concepts/basics/types/index.js +4 -1
- package/out/concepts/basics/types/index.js.map +1 -1
- package/out/concepts/index__.d.ts +8 -0
- package/out/concepts/index__.js +8 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/enums/KEYWORDS.js +0 -1
- package/out/enums/KEYWORDS.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +1 -0
- package/out/generator/genBundleFiles.js +27 -0
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.d.ts +4 -1
- package/out/generator/genMetaData.js +14 -0
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/genReleaseBody.d.ts +2 -1
- package/out/generator/genReleaseBody.js +2 -1
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/index.d.ts +2 -1
- package/out/index.js +3 -1
- package/out/index.js.map +1 -1
- package/out/server/extendBaseNode.js +16 -4
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +2 -1
- package/out/server/formatTsUtils.js +39 -4
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getExtensionModules.d.ts +2 -2
- package/out/server/getExtensionModules.js +16 -2
- package/out/server/getExtensionModules.js.map +1 -1
- package/out/server/getLogics.js +5 -5
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.d.ts +1 -0
- package/out/server/getMemberIdentifier.js +34 -7
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/naslServer.d.ts +64 -64
- package/out/server/naslServer.js +249 -121
- package/out/server/naslServer.js.map +1 -1
- package/out/server/naslStdlibMap.js +2 -0
- package/out/server/naslStdlibMap.js.map +1 -1
- package/out/server/translator.d.ts +1 -0
- package/out/server/translator.js +67 -2
- package/out/server/translator.js.map +1 -1
- package/out/service/defaultErrorMessage.json +1 -0
- package/out/service/storage/api.d.ts +10 -1
- package/out/service/storage/api.js +6 -0
- package/out/service/storage/api.js.map +1 -1
- package/out/service/storage/init.d.ts +4 -0
- package/out/service/storage/init.js +55 -35
- package/out/service/storage/init.js.map +1 -1
- package/out/service/storage/service.d.ts +3 -0
- package/out/service/storage/service.js +14 -0
- package/out/service/storage/service.js.map +1 -1
- package/out/utils/sortTsString.d.ts +1 -0
- package/out/utils/sortTsString.js +36 -0
- package/out/utils/sortTsString.js.map +1 -0
- package/out/utils/traverse.js +2 -2
- package/out/utils/traverse.js.map +1 -1
- package/package.json +7 -2
- package/sandbox/stdlib/nasl.auth.ts +8 -4
- package/sandbox/stdlib/nasl.core.d.ts +206 -0
- package/sandbox/stdlib/nasl.core.js +1 -0
- package/sandbox/stdlib/nasl.core.js.map +1 -0
- package/sandbox/stdlib/nasl.http.ts +35 -0
- package/sandbox/stdlib/nasl.process.ts +13 -0
- package/sandbox/stdlib/nasl.ui.ts +0 -5
- package/src/automate/engine/utils.js +4 -1
- package/src/breakpoint/generator/AfterStartNode.ts +27 -0
- package/src/breakpoint/generator/BeforeEndNode.ts +27 -0
- package/src/breakpoint/generator/BreakpointNode.ts +228 -0
- package/src/breakpoint/generator/index.ts +114 -0
- package/src/breakpoint/index.ts +3 -0
- package/src/breakpoint/shared/constants.ts +95 -0
- package/src/breakpoint/shared/index.ts +3 -0
- package/src/breakpoint/shared/operations.ts +25 -0
- package/src/breakpoint/shared/socket.ts +326 -0
- package/src/breakpoint/shared/utils.ts +195 -0
- package/src/breakpoint/store/core.ts +411 -0
- package/src/breakpoint/store/dock.ts +166 -0
- package/src/breakpoint/store/index.ts +2 -0
- package/src/breakpoint/types/index.d.ts +19 -0
- package/src/common/BaseNode.ts +19 -1
- package/src/concepts/App__.ts +828 -26
- package/src/concepts/Assignment__.ts +1 -1
- package/src/concepts/AuthInterface__.ts +148 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +573 -0
- package/src/concepts/AuthLogic__.ts +225 -0
- package/src/concepts/BackendVariable__.ts +466 -0
- package/src/concepts/Backend__.ts +347 -0
- package/src/concepts/BindAttribute__.ts +4 -3
- package/src/concepts/BindEvent__.ts +71 -2
- package/src/concepts/CallAuthInterface__.ts +490 -0
- package/src/concepts/CallInterface__.ts +10 -2
- package/src/concepts/CallLogic__.ts +3 -1
- package/src/concepts/CallQueryComponent__.ts +67 -7
- package/src/concepts/Destination__.ts +19 -1
- package/src/concepts/End__.ts +31 -3
- package/src/concepts/EntityProperty__.ts +6 -0
- package/src/concepts/Entity__.ts +8 -31
- package/src/concepts/ForEachStatement__.ts +9 -4
- package/src/concepts/FrontendLibrary__.ts +30 -30
- package/src/concepts/FrontendVariable__.ts +76 -0
- package/src/concepts/Frontend__.ts +352 -89
- package/src/concepts/Function__.ts +1 -1
- package/src/concepts/Identifier__.ts +5 -5
- package/src/concepts/Interface__.ts +1 -1
- package/src/concepts/LogicItem__.ts +26 -6
- package/src/concepts/Logic__.ts +86 -8
- package/src/concepts/Module__.ts +32 -2
- package/src/concepts/Namespace__.ts +30 -30
- package/src/concepts/NewComposite__.ts +2 -3
- package/src/concepts/OverriddenLogic__.ts +2165 -0
- package/src/concepts/Param__.ts +13 -3
- package/src/concepts/QueryFieldExpression__.ts +18 -0
- package/src/concepts/QuerySelectExpression__.ts +11 -3
- package/src/concepts/TypeAnnotation__.ts +45 -6
- package/src/concepts/Variable__.ts +14 -0
- package/src/concepts/ViewComponent__.ts +35 -35
- package/src/concepts/ViewElement__.ts +104 -1
- package/src/concepts/View__.ts +24 -2
- package/src/concepts/basics/stdlib/index.ts +2 -1
- package/src/concepts/basics/stdlib/nasl.auth.ts +24 -0
- package/src/concepts/basics/stdlib/nasl.http.ts +166 -0
- package/src/concepts/basics/stdlib/nasl.process.ts +68 -0
- package/src/concepts/basics/stdlib/nasl.ui.ts +4 -19
- package/src/concepts/basics/stdlib/nasl.util.ts +83 -17
- package/src/concepts/basics/types/index.ts +5 -4
- package/src/concepts/index__.ts +8 -0
- package/src/enums/KEYWORDS.ts +0 -1
- package/src/generator/genBundleFiles.ts +36 -2
- package/src/generator/genMetaData.ts +16 -1
- package/src/generator/genReleaseBody.ts +4 -1
- package/src/index.ts +2 -1
- package/src/server/extendBaseNode.ts +18 -7
- package/src/server/formatTsUtils.ts +37 -5
- package/src/server/getExtensionModules.ts +18 -3
- package/src/server/getLogics.ts +6 -6
- package/src/server/getMemberIdentifier.ts +35 -9
- package/src/server/naslServer.ts +250 -124
- package/src/server/naslStdlibMap.ts +2 -0
- package/src/server/translator.ts +67 -1
- package/src/service/defaultErrorMessage.json +1 -0
- package/src/service/storage/api.js +7 -1
- package/src/service/storage/init.ts +66 -35
- package/src/service/storage/service.ts +18 -2
- package/src/utils/sortTsString.ts +32 -0
- package/src/utils/traverse.ts +2 -2
- package/test/examples/app-simple.json +73635 -0
- package/ts-worker/lib/tsserver.js +3 -3
- package/ts-worker/package.json +1 -1
package/src/concepts/View__.ts
CHANGED
|
@@ -269,6 +269,8 @@ export class View extends BaseNode {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
|
|
273
|
+
|
|
272
274
|
/**
|
|
273
275
|
* 插入页面元素
|
|
274
276
|
* @internal
|
|
@@ -402,6 +404,7 @@ export class View extends BaseNode {
|
|
|
402
404
|
return node;
|
|
403
405
|
}
|
|
404
406
|
|
|
407
|
+
|
|
405
408
|
getParamUniqueName(name = 'param1') {
|
|
406
409
|
return utils.unique(name, this.getVarExistingNames(), undefined, false);
|
|
407
410
|
}
|
|
@@ -539,6 +542,7 @@ export class View extends BaseNode {
|
|
|
539
542
|
return node;
|
|
540
543
|
}
|
|
541
544
|
|
|
545
|
+
|
|
542
546
|
getVariableUniqueName(name = 'variable1') {
|
|
543
547
|
return utils.unique(name, this.getVarExistingNames(), undefined, false);
|
|
544
548
|
}
|
|
@@ -676,6 +680,7 @@ export class View extends BaseNode {
|
|
|
676
680
|
return node;
|
|
677
681
|
}
|
|
678
682
|
|
|
683
|
+
|
|
679
684
|
getLogicUniqueName(name = 'logic1') {
|
|
680
685
|
return utils.unique(name, this.getLogicExistingNames(), undefined, false);
|
|
681
686
|
}
|
|
@@ -813,6 +818,7 @@ export class View extends BaseNode {
|
|
|
813
818
|
return node;
|
|
814
819
|
}
|
|
815
820
|
|
|
821
|
+
|
|
816
822
|
getBindEventExistingNames(excludedList: Array<BindEvent> = []) {
|
|
817
823
|
const excludedSet = new Set(excludedList);
|
|
818
824
|
return ((this.bindEvents as BindEvent[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
@@ -954,6 +960,9 @@ export class View extends BaseNode {
|
|
|
954
960
|
return node;
|
|
955
961
|
}
|
|
956
962
|
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
957
966
|
getViewExistingNames(excludedList: Array<View> = []) {
|
|
958
967
|
const excludedSet = new Set(excludedList);
|
|
959
968
|
return ((this.children as View[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
@@ -1095,6 +1104,9 @@ export class View extends BaseNode {
|
|
|
1095
1104
|
return node;
|
|
1096
1105
|
}
|
|
1097
1106
|
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1098
1110
|
/**
|
|
1099
1111
|
* 删除页面元素
|
|
1100
1112
|
* @param name 页面元素名称
|
|
@@ -1143,6 +1155,8 @@ export class View extends BaseNode {
|
|
|
1143
1155
|
return params;
|
|
1144
1156
|
}
|
|
1145
1157
|
|
|
1158
|
+
|
|
1159
|
+
|
|
1146
1160
|
/**
|
|
1147
1161
|
* 删除输入参数
|
|
1148
1162
|
* @param name 输入参数名称
|
|
@@ -1191,6 +1205,8 @@ export class View extends BaseNode {
|
|
|
1191
1205
|
return params;
|
|
1192
1206
|
}
|
|
1193
1207
|
|
|
1208
|
+
|
|
1209
|
+
|
|
1194
1210
|
/**
|
|
1195
1211
|
* 删除变量
|
|
1196
1212
|
* @param name 变量名称
|
|
@@ -1239,6 +1255,8 @@ export class View extends BaseNode {
|
|
|
1239
1255
|
return params;
|
|
1240
1256
|
}
|
|
1241
1257
|
|
|
1258
|
+
|
|
1259
|
+
|
|
1242
1260
|
/**
|
|
1243
1261
|
* 删除逻辑
|
|
1244
1262
|
* @param name 逻辑名称
|
|
@@ -1287,6 +1305,8 @@ export class View extends BaseNode {
|
|
|
1287
1305
|
return params;
|
|
1288
1306
|
}
|
|
1289
1307
|
|
|
1308
|
+
|
|
1309
|
+
|
|
1290
1310
|
/**
|
|
1291
1311
|
* 删除元素绑定事件
|
|
1292
1312
|
* @param name 元素绑定事件名称
|
|
@@ -1335,6 +1355,8 @@ export class View extends BaseNode {
|
|
|
1335
1355
|
return params;
|
|
1336
1356
|
}
|
|
1337
1357
|
|
|
1358
|
+
|
|
1359
|
+
|
|
1338
1360
|
/**
|
|
1339
1361
|
* 删除页面
|
|
1340
1362
|
* @param name 页面名称
|
|
@@ -1489,7 +1511,7 @@ export class View extends BaseNode {
|
|
|
1489
1511
|
}
|
|
1490
1512
|
}
|
|
1491
1513
|
|
|
1492
|
-
//
|
|
1514
|
+
// 服务端逻辑
|
|
1493
1515
|
if (Array.isArray(definition.logics)) {
|
|
1494
1516
|
definition.logics.forEach((logicOption: any) => {
|
|
1495
1517
|
const logic = Logic.from({
|
|
@@ -2137,7 +2159,7 @@ export class View extends BaseNode {
|
|
|
2137
2159
|
return _interface ? `${rightNode.tsCalleeKey}(${_interface.params.map(() => 'null').join(',')})` : null;
|
|
2138
2160
|
}
|
|
2139
2161
|
|
|
2140
|
-
//
|
|
2162
|
+
// 调用服务端逻辑,参数替换成 null
|
|
2141
2163
|
if (rightNode instanceof CallLogic && rightNode.calleeNamespace === 'app.logics') {
|
|
2142
2164
|
const calleeName = rightNode?.calleeName;
|
|
2143
2165
|
const calleeLogic = this.app.logics.find((l) => l.name === calleeName);
|
|
@@ -11,6 +11,7 @@ import naslProcess from './nasl.process';
|
|
|
11
11
|
import naslValidation from './nasl.validation';
|
|
12
12
|
import naslBrowser from './nasl.browser';
|
|
13
13
|
import naslAuth from './nasl.auth';
|
|
14
|
+
import naslHttp from './nasl.http';
|
|
14
15
|
import naslConfiguration from './nasl.configuration';
|
|
15
16
|
import naslLogging from './nasl.logging';
|
|
16
17
|
import naslIo from './nasl.io';
|
|
@@ -19,6 +20,6 @@ export { reference2TypeAnnotationList } from './reference2TypeAnnotationList';
|
|
|
19
20
|
export const stdlibNamespace = new Namespace({
|
|
20
21
|
name: 'nasl',
|
|
21
22
|
path: 'nasl',
|
|
22
|
-
children: [naslCore, naslCollection, naslInterface, naslUi, naslUtil, naslProcess, naslValidation, naslBrowser, naslAuth, naslConfiguration, naslLogging, naslIo],
|
|
23
|
+
children: [naslCore, naslCollection, naslInterface, naslUi, naslUtil, naslProcess, naslValidation, naslBrowser, naslAuth, naslConfiguration, naslLogging, naslIo, naslHttp],
|
|
23
24
|
});
|
|
24
25
|
export default stdlibNamespace;
|
|
@@ -49,6 +49,30 @@ export const authStructures = [
|
|
|
49
49
|
}),
|
|
50
50
|
],
|
|
51
51
|
}),
|
|
52
|
+
new Structure({
|
|
53
|
+
name: 'LCAPUser',
|
|
54
|
+
properties: [
|
|
55
|
+
new StructureProperty({
|
|
56
|
+
name: 'userName',
|
|
57
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
58
|
+
}),
|
|
59
|
+
new StructureProperty({
|
|
60
|
+
name: 'userId',
|
|
61
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
62
|
+
}),
|
|
63
|
+
new StructureProperty({
|
|
64
|
+
name: 'extendFiledMap',
|
|
65
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
66
|
+
typeArguments: [
|
|
67
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
68
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
69
|
+
TypeAnnotation.createTypeParam('K'),
|
|
70
|
+
TypeAnnotation.createTypeParam('V'),
|
|
71
|
+
],
|
|
72
|
+
}),
|
|
73
|
+
}),
|
|
74
|
+
],
|
|
75
|
+
}),
|
|
52
76
|
];
|
|
53
77
|
|
|
54
78
|
export const authTypeList: Array<TypeAnnotation> = reference2TypeAnnotationList(authStructures, 'nasl.auth');
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import Namespace from '../../Namespace__';
|
|
2
|
+
import Param from '../../Param__';
|
|
3
|
+
import Return from '../../Return__';
|
|
4
|
+
import Logic from '../../Logic__';
|
|
5
|
+
import TypeAnnotation from '../../TypeAnnotation__';
|
|
6
|
+
import Structure from '../../Structure__';
|
|
7
|
+
import StructureProperty from '../../StructureProperty__';
|
|
8
|
+
import { reference2TypeAnnotationList } from './reference2TypeAnnotationList';
|
|
9
|
+
import TypeParam from '@nasl/concepts/TypeParam__';
|
|
10
|
+
|
|
11
|
+
export const httpStructures = [
|
|
12
|
+
new Structure({
|
|
13
|
+
name: 'HttpCookie',
|
|
14
|
+
properties: [
|
|
15
|
+
new StructureProperty({
|
|
16
|
+
name: 'name',
|
|
17
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
18
|
+
}),
|
|
19
|
+
new StructureProperty({
|
|
20
|
+
name: 'value',
|
|
21
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
22
|
+
}),
|
|
23
|
+
new StructureProperty({
|
|
24
|
+
name: 'domain',
|
|
25
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
26
|
+
}),
|
|
27
|
+
new StructureProperty({
|
|
28
|
+
name: 'cookiePath',
|
|
29
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
30
|
+
}),
|
|
31
|
+
new StructureProperty({
|
|
32
|
+
name: 'sameSite',
|
|
33
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
34
|
+
}),
|
|
35
|
+
new StructureProperty({
|
|
36
|
+
name: 'httpOnly',
|
|
37
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
38
|
+
}),
|
|
39
|
+
new StructureProperty({
|
|
40
|
+
name: 'secure',
|
|
41
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
42
|
+
}),
|
|
43
|
+
new StructureProperty({
|
|
44
|
+
name: 'maxAge',
|
|
45
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
46
|
+
}),
|
|
47
|
+
],
|
|
48
|
+
}),
|
|
49
|
+
new Structure({
|
|
50
|
+
name: 'HttpResponse',
|
|
51
|
+
typeParams: [
|
|
52
|
+
new TypeParam({
|
|
53
|
+
name: 'T',
|
|
54
|
+
}),
|
|
55
|
+
],
|
|
56
|
+
properties: [
|
|
57
|
+
new StructureProperty({
|
|
58
|
+
name: 'status',
|
|
59
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
60
|
+
}),
|
|
61
|
+
new StructureProperty({
|
|
62
|
+
name: 'body',
|
|
63
|
+
typeAnnotation: TypeAnnotation.createPrimitive('T'),
|
|
64
|
+
}),
|
|
65
|
+
new StructureProperty({
|
|
66
|
+
name: 'headers',
|
|
67
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
68
|
+
typeArguments: [
|
|
69
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
70
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
71
|
+
TypeAnnotation.createTypeParam('K'),
|
|
72
|
+
TypeAnnotation.createTypeParam('V'),
|
|
73
|
+
],
|
|
74
|
+
}),
|
|
75
|
+
}), new StructureProperty({
|
|
76
|
+
name: 'cookies',
|
|
77
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
78
|
+
typeArguments: [
|
|
79
|
+
TypeAnnotation.createTypeParam('K'),
|
|
80
|
+
TypeAnnotation.createReference('HttpCookie', {
|
|
81
|
+
typeNamespace: 'nasl.http',
|
|
82
|
+
}),
|
|
83
|
+
],
|
|
84
|
+
}),
|
|
85
|
+
}),
|
|
86
|
+
],
|
|
87
|
+
}),
|
|
88
|
+
new Structure({
|
|
89
|
+
name: 'HttpRequest',
|
|
90
|
+
typeParams: [
|
|
91
|
+
new TypeParam({
|
|
92
|
+
name: 'T',
|
|
93
|
+
}),
|
|
94
|
+
],
|
|
95
|
+
properties: [
|
|
96
|
+
new StructureProperty({
|
|
97
|
+
name: 'requestURL',
|
|
98
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
99
|
+
}),
|
|
100
|
+
new StructureProperty({
|
|
101
|
+
name: 'remoteIp',
|
|
102
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
103
|
+
}),
|
|
104
|
+
new StructureProperty({
|
|
105
|
+
name: 'requestMethod',
|
|
106
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
107
|
+
}),
|
|
108
|
+
new StructureProperty({
|
|
109
|
+
name: 'body',
|
|
110
|
+
typeAnnotation: TypeAnnotation.createPrimitive('T'),
|
|
111
|
+
}),
|
|
112
|
+
new StructureProperty({
|
|
113
|
+
name: 'headers',
|
|
114
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
115
|
+
typeArguments: [
|
|
116
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
117
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
118
|
+
TypeAnnotation.createTypeParam('K'),
|
|
119
|
+
TypeAnnotation.createTypeParam('V'),
|
|
120
|
+
],
|
|
121
|
+
}),
|
|
122
|
+
}),
|
|
123
|
+
new StructureProperty({
|
|
124
|
+
name: 'pathParams',
|
|
125
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
126
|
+
typeArguments: [
|
|
127
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
128
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
129
|
+
TypeAnnotation.createTypeParam('K'),
|
|
130
|
+
TypeAnnotation.createTypeParam('V'),
|
|
131
|
+
],
|
|
132
|
+
}),
|
|
133
|
+
}),
|
|
134
|
+
new StructureProperty({
|
|
135
|
+
name: 'queryParams',
|
|
136
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
137
|
+
typeArguments: [
|
|
138
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
139
|
+
// TypeAnnotation.createPrimitive('String'),
|
|
140
|
+
TypeAnnotation.createTypeParam('K'),
|
|
141
|
+
TypeAnnotation.createTypeParam('V'),
|
|
142
|
+
],
|
|
143
|
+
}),
|
|
144
|
+
}),
|
|
145
|
+
new StructureProperty({
|
|
146
|
+
name: 'cookies',
|
|
147
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
148
|
+
typeArguments: [
|
|
149
|
+
TypeAnnotation.createTypeParam('K'),
|
|
150
|
+
TypeAnnotation.createReference('HttpCookie', {
|
|
151
|
+
typeNamespace: 'nasl.http',
|
|
152
|
+
}),
|
|
153
|
+
],
|
|
154
|
+
}),
|
|
155
|
+
}),
|
|
156
|
+
],
|
|
157
|
+
}),
|
|
158
|
+
];
|
|
159
|
+
|
|
160
|
+
export const httpTypeList: Array<TypeAnnotation> = reference2TypeAnnotationList(httpStructures, 'nasl.http');
|
|
161
|
+
|
|
162
|
+
export default new Namespace({
|
|
163
|
+
name: 'http',
|
|
164
|
+
structures: httpStructures,
|
|
165
|
+
logics: [],
|
|
166
|
+
});
|
|
@@ -42,6 +42,34 @@ const logics = [
|
|
|
42
42
|
}),
|
|
43
43
|
],
|
|
44
44
|
}),
|
|
45
|
+
new Logic({
|
|
46
|
+
name: 'setProcessDefinitionState',
|
|
47
|
+
description: '流程定义设置激活/挂起',
|
|
48
|
+
params: [
|
|
49
|
+
new Param({
|
|
50
|
+
name: 'name',
|
|
51
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
52
|
+
}),
|
|
53
|
+
new Param({
|
|
54
|
+
name: 'state',
|
|
55
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
56
|
+
}),
|
|
57
|
+
new Param({
|
|
58
|
+
name: 'processInstancesAffected',
|
|
59
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
60
|
+
}),
|
|
61
|
+
new Param({
|
|
62
|
+
name: 'effectiveDate',
|
|
63
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Date'),
|
|
64
|
+
}),
|
|
65
|
+
],
|
|
66
|
+
returns: [
|
|
67
|
+
new Return({
|
|
68
|
+
name: 'result',
|
|
69
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
70
|
+
}),
|
|
71
|
+
],
|
|
72
|
+
}),
|
|
45
73
|
new Logic({
|
|
46
74
|
name: 'getProcessInstance',
|
|
47
75
|
description: '获取流程详情,如发起人、时间',
|
|
@@ -390,6 +418,34 @@ const logics = [
|
|
|
390
418
|
}),
|
|
391
419
|
],
|
|
392
420
|
}),
|
|
421
|
+
new Logic({
|
|
422
|
+
name: 'updateTaskDefinitionStrategy',
|
|
423
|
+
description: '设置任务策略',
|
|
424
|
+
params: [
|
|
425
|
+
new Param({
|
|
426
|
+
name: 'processDefName',
|
|
427
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
428
|
+
}),
|
|
429
|
+
new Param({
|
|
430
|
+
name: 'name',
|
|
431
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
432
|
+
}),
|
|
433
|
+
new Param({
|
|
434
|
+
name: 'emptyAssignee',
|
|
435
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
436
|
+
}),
|
|
437
|
+
new Param({
|
|
438
|
+
name: 'skipEnabled',
|
|
439
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
440
|
+
}),
|
|
441
|
+
],
|
|
442
|
+
returns: [
|
|
443
|
+
new Return({
|
|
444
|
+
name: 'result',
|
|
445
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
446
|
+
}),
|
|
447
|
+
],
|
|
448
|
+
}),
|
|
393
449
|
];
|
|
394
450
|
|
|
395
451
|
export const processStructures = [
|
|
@@ -408,6 +464,10 @@ export const processStructures = [
|
|
|
408
464
|
name: 'description',
|
|
409
465
|
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
410
466
|
}),
|
|
467
|
+
new StructureProperty({
|
|
468
|
+
name: 'suspended',
|
|
469
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
470
|
+
}),
|
|
411
471
|
],
|
|
412
472
|
}),
|
|
413
473
|
new Structure({
|
|
@@ -466,6 +526,14 @@ export const processStructures = [
|
|
|
466
526
|
name: 'processDefName',
|
|
467
527
|
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
468
528
|
}),
|
|
529
|
+
new StructureProperty({
|
|
530
|
+
name: 'emptyAssignee',
|
|
531
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
532
|
+
}),
|
|
533
|
+
new StructureProperty({
|
|
534
|
+
name: 'skipEnabled',
|
|
535
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
536
|
+
}),
|
|
469
537
|
],
|
|
470
538
|
}),
|
|
471
539
|
new Structure({
|
|
@@ -837,19 +837,14 @@ export const uiStructures = [
|
|
|
837
837
|
}),
|
|
838
838
|
new Structure({
|
|
839
839
|
name: 'SelectData',
|
|
840
|
-
typeParams: [
|
|
841
|
-
new TypeParam({
|
|
842
|
-
name: 'T',
|
|
843
|
-
}),
|
|
844
|
-
],
|
|
845
840
|
properties: [
|
|
846
841
|
new StructureProperty({
|
|
847
842
|
name: 'parent',
|
|
848
|
-
typeAnnotation: TypeAnnotation.
|
|
843
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
849
844
|
}),
|
|
850
845
|
new StructureProperty({
|
|
851
846
|
name: 'item',
|
|
852
|
-
typeAnnotation: TypeAnnotation.
|
|
847
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
853
848
|
}),
|
|
854
849
|
new StructureProperty({
|
|
855
850
|
name: 'level',
|
|
@@ -863,33 +858,23 @@ export const uiStructures = [
|
|
|
863
858
|
}),
|
|
864
859
|
new Structure({
|
|
865
860
|
name: 'DragAndDropUpdateData',
|
|
866
|
-
typeParams: [
|
|
867
|
-
new TypeParam({
|
|
868
|
-
name: 'T',
|
|
869
|
-
}),
|
|
870
|
-
],
|
|
871
861
|
properties: [
|
|
872
862
|
new StructureProperty({
|
|
873
863
|
name: 'sourceList',
|
|
874
864
|
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
875
|
-
typeArguments: [TypeAnnotation.
|
|
865
|
+
typeArguments: [TypeAnnotation.createPrimitive('String')],
|
|
876
866
|
}),
|
|
877
867
|
}),
|
|
878
868
|
new StructureProperty({
|
|
879
869
|
name: 'targetList',
|
|
880
870
|
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
881
|
-
typeArguments: [TypeAnnotation.
|
|
871
|
+
typeArguments: [TypeAnnotation.createPrimitive('String')],
|
|
882
872
|
}),
|
|
883
873
|
}),
|
|
884
874
|
],
|
|
885
875
|
}),
|
|
886
876
|
new Structure({
|
|
887
877
|
name: 'DragAndDropEvent',
|
|
888
|
-
typeParams: [
|
|
889
|
-
new TypeParam({
|
|
890
|
-
name: 'T',
|
|
891
|
-
}),
|
|
892
|
-
],
|
|
893
878
|
properties: [
|
|
894
879
|
new StructureProperty({
|
|
895
880
|
name: 'source',
|
|
@@ -96,6 +96,7 @@ export default new Namespace({
|
|
|
96
96
|
params: [
|
|
97
97
|
new Param({
|
|
98
98
|
name: 'value',
|
|
99
|
+
description: '指定要转换的对象',
|
|
99
100
|
defaultExpression: new Identifier(),
|
|
100
101
|
}),
|
|
101
102
|
],
|
|
@@ -117,6 +118,7 @@ export default new Namespace({
|
|
|
117
118
|
params: [
|
|
118
119
|
new Param({
|
|
119
120
|
name: 'value',
|
|
121
|
+
description: '指定要转换的对象',
|
|
120
122
|
defaultExpression: new Identifier(),
|
|
121
123
|
}),
|
|
122
124
|
],
|
|
@@ -152,8 +154,16 @@ export default new Namespace({
|
|
|
152
154
|
description: '是否忽略大小写,true为忽略,false为不忽略',
|
|
153
155
|
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
154
156
|
options: [
|
|
155
|
-
{
|
|
156
|
-
|
|
157
|
+
{
|
|
158
|
+
text: 'true',
|
|
159
|
+
value: 'true',
|
|
160
|
+
description: '忽略大小写',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
text: 'false',
|
|
164
|
+
value: 'false',
|
|
165
|
+
description: '对大小写敏感',
|
|
166
|
+
},
|
|
157
167
|
],
|
|
158
168
|
}),
|
|
159
169
|
],
|
|
@@ -182,8 +192,16 @@ export default new Namespace({
|
|
|
182
192
|
description: '是否忽略大小写,true为忽略,false为不忽略',
|
|
183
193
|
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
184
194
|
options: [
|
|
185
|
-
{
|
|
186
|
-
|
|
195
|
+
{
|
|
196
|
+
text: 'true',
|
|
197
|
+
value: 'true',
|
|
198
|
+
description: '忽略大小写',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
text: 'false',
|
|
202
|
+
value: 'false',
|
|
203
|
+
description: '对大小写敏感',
|
|
204
|
+
},
|
|
187
205
|
],
|
|
188
206
|
}),
|
|
189
207
|
],
|
|
@@ -1138,8 +1156,16 @@ export default new Namespace({
|
|
|
1138
1156
|
defaultValue: 'false',
|
|
1139
1157
|
defaultExpression: new BooleanLiteral({ value: 'false' }),
|
|
1140
1158
|
options: [
|
|
1141
|
-
{
|
|
1142
|
-
|
|
1159
|
+
{
|
|
1160
|
+
text: 'true',
|
|
1161
|
+
value: 'true',
|
|
1162
|
+
description: '显示千分位',
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
text: 'false',
|
|
1166
|
+
value: 'false',
|
|
1167
|
+
description: '不显示千分位',
|
|
1168
|
+
},
|
|
1143
1169
|
],
|
|
1144
1170
|
}),
|
|
1145
1171
|
],
|
|
@@ -1214,14 +1240,46 @@ export default new Namespace({
|
|
|
1214
1240
|
defaultValue: 'd',
|
|
1215
1241
|
defaultExpression: new StringLiteral({ value: 'd' }),
|
|
1216
1242
|
options: [
|
|
1217
|
-
{
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
{
|
|
1223
|
-
|
|
1224
|
-
|
|
1243
|
+
{
|
|
1244
|
+
text: 'Year',
|
|
1245
|
+
value: 'y',
|
|
1246
|
+
description: '年数',
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
text: 'Season',
|
|
1250
|
+
value: 'q',
|
|
1251
|
+
description: '季度数',
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
text: 'Month',
|
|
1255
|
+
value: 'M',
|
|
1256
|
+
description: '月数',
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
text: 'Week',
|
|
1260
|
+
value: 'w',
|
|
1261
|
+
description: '星期数',
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
text: 'Day',
|
|
1265
|
+
value: 'd',
|
|
1266
|
+
description: '天数',
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
text: 'Hour',
|
|
1270
|
+
value: 'h',
|
|
1271
|
+
description: '小时数',
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
text: 'Minute',
|
|
1275
|
+
value: 'm',
|
|
1276
|
+
description: '分钟数',
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
text: 'Second',
|
|
1280
|
+
value: 's',
|
|
1281
|
+
description: '秒数',
|
|
1282
|
+
},
|
|
1225
1283
|
],
|
|
1226
1284
|
}),
|
|
1227
1285
|
],
|
|
@@ -1292,7 +1350,7 @@ export default new Namespace({
|
|
|
1292
1350
|
}),
|
|
1293
1351
|
new Function({
|
|
1294
1352
|
name: 'GetSpecificDaysOfWeek',
|
|
1295
|
-
description: '
|
|
1353
|
+
description: '给定起止日期和条件,获取其中满足条件的日期',
|
|
1296
1354
|
params: [
|
|
1297
1355
|
new Param({
|
|
1298
1356
|
name: '起始',
|
|
@@ -1434,8 +1492,16 @@ export default new Namespace({
|
|
|
1434
1492
|
defaultValue: 'asc',
|
|
1435
1493
|
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
1436
1494
|
options: [
|
|
1437
|
-
{
|
|
1438
|
-
|
|
1495
|
+
{
|
|
1496
|
+
text: 'asc',
|
|
1497
|
+
value: 'true',
|
|
1498
|
+
description: '升序',
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
text: 'desc',
|
|
1502
|
+
value: 'false',
|
|
1503
|
+
description: '降序',
|
|
1504
|
+
},
|
|
1439
1505
|
],
|
|
1440
1506
|
}),
|
|
1441
1507
|
],
|
|
@@ -5,10 +5,10 @@ export const dataTypeList: Array<{
|
|
|
5
5
|
title: string;
|
|
6
6
|
children: Array<TypeAnnotation>;
|
|
7
7
|
}> = [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
];
|
|
8
|
+
{ title: '基础类型', children: primitiveTypeList },
|
|
9
|
+
{ title: '自定义类型', children: [] },
|
|
10
|
+
{ title: '平台类型', children: [] },
|
|
11
|
+
];
|
|
12
12
|
|
|
13
13
|
export const dataTypesMap: { [typeKey: string]: TypeAnnotation } = {};
|
|
14
14
|
primitiveTypeList.forEach((typeAnnotation) => {
|
|
@@ -17,6 +17,7 @@ primitiveTypeList.forEach((typeAnnotation) => {
|
|
|
17
17
|
|
|
18
18
|
export { collectionStructures, collectionTypeList } from '../stdlib/nasl.collection';
|
|
19
19
|
export { authStructures, authTypeList } from '../stdlib/nasl.auth';
|
|
20
|
+
export { httpStructures, httpTypeList } from '../stdlib/nasl.http';
|
|
20
21
|
export { processStructures, processTypeList } from '../stdlib/nasl.process';
|
|
21
22
|
export { uiStructures, uiTypeList } from '../stdlib/nasl.ui';
|
|
22
23
|
export { interfaceTypeList } from '../stdlib/nasl.interface';
|