@lcap/nasl 2.18.0-beta.7 → 2.20.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/out/automate/engine/index.js +3 -3
- package/out/automate/engine/index.js.map +1 -1
- package/out/bak/translator.js +85 -37
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.d.ts +6 -10
- package/out/common/BaseNode.js +7 -53
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +0 -10
- package/out/concepts/App__.js +0 -74
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +5 -5
- package/out/concepts/AssignmentLine__.js +6 -6
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js +2 -1
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +60 -60
- package/out/concepts/BatchAssignment__.js +41 -68
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +0 -19
- package/out/concepts/BindAttribute__.js +2 -39
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +2 -2
- package/out/concepts/BindStyle__.js +3 -3
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js +8 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallFunction__.js +25 -58
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +0 -7
- package/out/concepts/CallInterface__.js +7 -53
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +1 -2
- package/out/concepts/CallLogic__.js +25 -89
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js +1 -13
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +0 -3
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +0 -6
- package/out/concepts/DataSource__.js +0 -41
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +2 -11
- package/out/concepts/Destination__.js +48 -148
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +8 -21
- package/out/concepts/EntityProperty__.js +23 -109
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +0 -32
- package/out/concepts/Entity__.js +2 -117
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Enum__.js +4 -0
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +4 -0
- package/out/concepts/ForEachStatement__.js +8 -4
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.js +4 -16
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +0 -8
- package/out/concepts/IfStatement__.js +0 -22
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +1 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +1 -6
- package/out/concepts/Logic__.js +50 -150
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +1 -1
- package/out/concepts/MatchCase__.js +8 -15
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +19 -21
- package/out/concepts/Match__.js +25 -112
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -4
- package/out/concepts/MemberExpression__.js +15 -30
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js +1 -1
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +3 -7
- package/out/concepts/OqlQueryComponent__.js +95 -56
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.d.ts +1 -1
- package/out/concepts/Param__.js +4 -40
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +3 -3
- package/out/concepts/QueryOrderByExpression__.js +3 -3
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Return__.js +2 -38
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +1 -1
- package/out/concepts/SelectMembers__.js +2 -2
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +4 -2
- package/out/concepts/SqlQueryComponent__.js +88 -9
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/StringLiteral__.js +7 -0
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +0 -1
- package/out/concepts/TypeAnnotation__.js +12 -25
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +0 -1
- package/out/concepts/TypeParam__.js +0 -2
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +9 -6
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +23 -88
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.js +2 -38
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +29 -30
- package/out/concepts/ViewElement__.js +52 -118
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +3 -4
- package/out/concepts/View__.js +83 -97
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.js +1 -1
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.browser.js +0 -50
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +4 -36
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +43 -63
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/index__.d.ts +0 -2
- package/out/concepts/index__.js +0 -2
- package/out/concepts/index__.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +2 -5
- package/out/generator/genBundleFiles.js +155 -108
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.d.ts +10 -1
- package/out/generator/genMetaData.js +50 -189
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/index.d.ts +0 -1
- package/out/generator/index.js +0 -1
- package/out/generator/index.js.map +1 -1
- package/out/index.d.ts +2 -3
- package/out/index.js +1 -5
- package/out/index.js.map +1 -1
- package/out/server/entity2LogicNamespace.js +11 -11
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/extendBaseNode.js +18 -4
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +2 -1
- package/out/server/formatTsUtils.js +64 -40
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getLogics.js +6 -13
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +7 -7
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcesses.d.ts +1 -1
- package/out/server/getProcesses.js +1 -1
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/index.d.ts +1 -0
- package/out/server/index.js +27 -2
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +7 -47
- package/out/server/naslServer.js +399 -604
- package/out/server/naslServer.js.map +1 -1
- package/out/server/naslStdlibMap.js +28 -30
- package/out/server/naslStdlibMap.js.map +1 -1
- package/out/server/translator.js +11 -59
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.js +3 -33
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +4 -6
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +4 -7
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +5 -7
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEnumSelectBlock.js +2 -5
- package/out/templator/genEnumSelectBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +2 -2
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +2 -2
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genQueryComponent.d.ts +2 -2
- package/out/templator/genQueryComponent.js +1 -4
- package/out/templator/genQueryComponent.js.map +1 -1
- package/out/templator/genTableBlock.js +2 -2
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +3 -4
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.js +1 -1
- package/out/templator/utils.js.map +1 -1
- package/out/test/integration/node-nasl-server.js +38 -10
- package/out/test/integration/node-nasl-server.js.map +1 -1
- package/out/translator/index.d.ts +0 -1
- package/out/translator/index.js +1 -1
- package/out/translator/index.js.map +1 -1
- package/out/utils/index.d.ts +0 -1
- package/out/utils/index.js +1 -38
- package/out/utils/index.js.map +1 -1
- package/out/utils/string.d.ts +2 -15
- package/out/utils/string.js +3 -18
- package/out/utils/string.js.map +1 -1
- package/package.json +2 -2
- package/sandbox/stdlib/nasl.auth.ts +1 -1
- package/sandbox/stdlib/nasl.core.ts +1 -0
- package/sandbox/stdlib/nasl.logging.ts +4 -4
- package/sandbox/stdlib/nasl.util.ts +8 -4
- package/src/automate/engine/index.js +4 -4
- package/src/automate/engine/uniqueName.js +3 -3
- package/src/automate/template/myProcess.js +1 -1
- package/src/automate/upgrader/2.20.js +41 -0
- package/src/bak/translator.js +4 -1
- package/src/concepts/AnonymousFunction__.ts +48 -2
- package/src/concepts/App__.ts +288 -615
- package/src/concepts/BatchAssignment__.ts +45 -1
- package/src/concepts/BindAttribute__.ts +18 -25
- package/src/concepts/BindDirective__.ts +7 -0
- package/src/concepts/BindEvent__.ts +7 -0
- package/src/concepts/BindStyle__.ts +7 -0
- package/src/concepts/CallFunction__.ts +34 -45
- package/src/concepts/CallInterface__.ts +2 -1
- package/src/concepts/CallLogic__.ts +61 -44
- package/src/concepts/CallQueryComponent__.ts +4 -1
- package/src/concepts/Constant__.ts +7 -0
- package/src/concepts/DataSource__.ts +57 -5
- package/src/concepts/Destination__.ts +8 -21
- package/src/concepts/Frontend__.ts +937 -0
- package/src/concepts/Identifier__.ts +18 -16
- package/src/concepts/LogicItem__.ts +8 -1
- package/src/concepts/Logic__.ts +128 -142
- package/src/concepts/Match__.ts +13 -29
- package/src/concepts/NewComposite__.ts +1357 -0
- package/src/concepts/NewList__.ts +440 -0
- package/src/concepts/NewMap__.ts +666 -0
- package/src/concepts/New__.ts +73 -0
- package/src/concepts/Param__.ts +245 -199
- package/src/concepts/ProcessElement__.ts +43 -36
- package/src/concepts/ProcessOutcomes__.ts +90 -0
- package/src/concepts/Process__.ts +1 -23
- package/src/concepts/Return__.ts +11 -1
- package/src/concepts/SelectMembers__.ts +3 -3
- package/src/concepts/Transactional__.ts +7 -0
- package/src/concepts/TypeAnnotation__.ts +54 -49
- package/src/concepts/ValidationRule__.ts +19 -1
- package/src/concepts/Variable__.ts +12 -6
- package/src/concepts/ViewElement__.ts +51 -7
- package/src/concepts/View__.ts +21 -25
- package/src/concepts/basics/stdlib/nasl.auth.ts +1 -1
- package/src/concepts/basics/stdlib/nasl.logging.ts +5 -0
- package/src/concepts/basics/stdlib/nasl.ui.ts +2 -0
- package/src/concepts/basics/stdlib/nasl.util.ts +153 -19
- package/src/concepts/index__.ts +7 -0
- package/src/enums/KEYWORDS.ts +9 -0
- package/src/generator/genBundleFiles.ts +43 -29
- package/src/generator/genMetaData.ts +5 -10
- package/src/generator/genReleaseBody.ts +77 -41
- package/src/generator/index.ts +1 -0
- package/src/generator/permission.ts +261 -0
- package/src/index.ts +1 -1
- package/src/server/entity2LogicNamespace.ts +90 -10
- package/src/server/extendBaseNode.ts +29 -3
- package/src/server/formatTsUtils.ts +6 -0
- package/src/server/getLogics.ts +13 -1
- package/src/server/getMemberIdentifier.ts +5 -5
- package/src/server/naslServer.ts +235 -58
- package/src/server/process2LogicNamespace.ts +8 -0
- package/src/server/translator.ts +33 -1
- package/src/service/creator/add.configs.js +4 -0
- package/src/service/datasource/api.js +11 -0
- package/src/service/datasource/index.js +6 -0
- package/src/service/storage/init.ts +12 -0
- package/src/service/video/VideoTranscribe.js +1 -0
- package/src/templator/genEditTableBlock.ts +8 -16
- package/src/templator/genGetBlock.ts +18 -19
- package/src/templator/genGridViewBlock.ts +18 -18
- package/src/templator/genListViewBlock.ts +8 -11
- package/src/templator/genTableBlock.ts +6 -10
- package/ts-worker/lib/tsserver.js +8 -1
- package/out/automate/engine/2.14-components.d.ts +0 -1115
- package/out/automate/engine/2.14-components.js +0 -1087
- package/out/automate/engine/2.14-components.js.map +0 -1
- package/out/concepts/ExternalDestination__.d.ts +0 -73
- package/out/concepts/ExternalDestination__.js +0 -264
- package/out/concepts/ExternalDestination__.js.map +0 -1
- package/out/concepts/MatchExpression__.d.ts +0 -97
- package/out/concepts/MatchExpression__.js +0 -281
- package/out/concepts/MatchExpression__.js.map +0 -1
- package/out/concepts/StringInterpolation__.d.ts +0 -113
- package/out/concepts/StringInterpolation__.js +0 -227
- package/out/concepts/StringInterpolation__.js.map +0 -1
- package/out/generator/genReleaseBody.d.ts +0 -41
- package/out/generator/genReleaseBody.js +0 -349
- package/out/generator/genReleaseBody.js.map +0 -1
- package/out/service/defaultErrorMessage.json +0 -97
- package/out/service/logic/api.d.ts +0 -9
- package/out/service/logic/api.js +0 -11
- package/out/service/logic/api.js.map +0 -1
- package/out/service/logic/index.d.ts +0 -2
- package/out/service/logic/index.js +0 -10
- package/out/service/logic/index.js.map +0 -1
- package/sandbox/stdlib/dist/nasl.logging.js +0 -0
- package/src/automate/engine/dist/index.dev.js +0 -517
- package/src/common/dist/BaseNode.js +0 -1101
- package/src/concepts/basics/stdlib/dist/nasl.util.js +0 -1503
- package/src/concepts/basics/stdlib/dist/reference2TypeAnnotationList.js +0 -24
- package/src/concepts/dist/Anchor__.js +0 -179
- package/src/concepts/dist/Assignment__.js +0 -301
- package/src/concepts/dist/CallFunction__.js +0 -513
- package/src/concepts/dist/CallInterface__.js +0 -533
- package/src/concepts/dist/CallLogic__.js +0 -892
- package/src/concepts/dist/ForEachStatement__.js +0 -426
- package/src/concepts/dist/MatchCase__.js +0 -587
- package/src/concepts/dist/Match__.js +0 -631
- package/src/concepts/dist/MemberExpression__.js +0 -348
- package/src/concepts/dist/Param__.js +0 -538
- package/src/concepts/dist/Return__.js +0 -494
- package/src/concepts/dist/Variable__.js +0 -537
- package/src/concepts/dist/ViewElement__.js +0 -1680
- package/src/generator/dist/genBundleFiles.js +0 -261
- package/src/generator/dist/genMetaData.js +0 -249
- package/src/server/dist/formatTsUtils.js +0 -683
- package/src/server/dist/naslServer.js +0 -3474
- package/src/service/storage/dist/init.js +0 -572
- package/ts-worker/dist/webpack.config.dev.js +0 -108
package/out/server/index.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NaslServer = void 0;
|
|
26
|
+
exports.NaslServer = exports.naslServer = void 0;
|
|
4
27
|
const getLogics_1 = require("./getLogics");
|
|
5
28
|
const getInterfaces_1 = require("./getInterfaces");
|
|
6
29
|
const getFunctions_1 = require("./getFunctions");
|
|
@@ -8,11 +31,12 @@ const getLogging_1 = require("./getLogging");
|
|
|
8
31
|
const getValidates_1 = require("./getValidates");
|
|
9
32
|
const getProcessComponents_1 = require("./getProcessComponents");
|
|
10
33
|
const getMemberIdentifier_1 = require("./getMemberIdentifier");
|
|
11
|
-
const naslServer_1 = require("./naslServer");
|
|
34
|
+
const naslServer_1 = __importStar(require("./naslServer"));
|
|
12
35
|
require("./extendBaseNode");
|
|
13
36
|
const createUiTs_1 = require("./createUiTs");
|
|
14
37
|
const formatTsUtils_1 = require("./formatTsUtils");
|
|
15
38
|
const server = {
|
|
39
|
+
naslServer: naslServer_1.default,
|
|
16
40
|
getLogics: getLogics_1.getLogics,
|
|
17
41
|
iteratorTree: getLogics_1.iteratorTree,
|
|
18
42
|
getInterfaces: getInterfaces_1.getInterfaces,
|
|
@@ -33,5 +57,6 @@ const server = {
|
|
|
33
57
|
displayString2TypeAnnotation: formatTsUtils_1.displayString2TypeAnnotation,
|
|
34
58
|
};
|
|
35
59
|
exports.default = server;
|
|
60
|
+
exports.naslServer = naslServer_1.default;
|
|
36
61
|
exports.NaslServer = naslServer_1.NaslServer;
|
|
37
62
|
//# sourceMappingURL=index.js.map
|
package/out/server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,mDAAgD;AAChD,iDAAkE;AAClE,6CAA0C;AAC1C,iDAAmE;AACnE,iEAAmF;AACnF,+DAO+B;AAC/B,2DAAiF;AACjF,4BAA0B;AAC1B,6CAAuD;AACvD,mDAA+D;AAC/D,MAAM,MAAM,GAAQ;IAChB,UAAU,EAAE,oBAAkB;IAC9B,SAAS,EAAT,qBAAS;IACT,YAAY,EAAZ,wBAAY;IACZ,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,kBAAkB,EAAlB,iCAAkB;IAClB,oBAAoB,EAApB,2CAAoB;IACpB,mBAAmB,EAAnB,0CAAmB;IACnB,mBAAmB,EAAnB,yCAAmB;IACnB,YAAY,EAAZ,2BAAY;IACZ,mBAAmB,EAAnB,kCAAmB;IACnB,2BAA2B,EAA3B,iDAA2B;IAC3B,qBAAqB,EAArB,2CAAqB;IACrB,kBAAkB,EAAlB,wCAAkB;IAClB,2BAA2B,EAA3B,iDAA2B;IAC3B,qBAAqB,EAArB,2CAAqB;IACrB,uBAAuB,EAAvB,oCAAuB;IACvB,UAAU,EAAV,uBAAU;IACV,4BAA4B,EAA5B,4CAA4B;CAC/B,CAAC;AACF,kBAAe,MAAM,CAAC;AACT,QAAA,UAAU,GAAG,oBAAkB,CAAC;AAChC,QAAA,UAAU,GAAG,uBAAe,CAAC"}
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
import { Worker } from 'worker_threads';
|
|
3
3
|
import Messager from '../common/Messager';
|
|
4
4
|
import * as tsProtocol from 'typescript/lib/protocol';
|
|
5
|
-
import { Module, BaseNode, App, Structure, Logic, TypeAnnotation, View, Param, Argument
|
|
5
|
+
import { Module, BaseNode, App, Structure, Logic, TypeAnnotation, View, Param, Argument } from '../concepts';
|
|
6
6
|
import { SourceMap, SourceMapItem } from '../translator';
|
|
7
7
|
import { MinRange } from './translator';
|
|
8
|
-
import { EventPayload } from '../common';
|
|
9
8
|
import { DiagnosticRecord, Diagnostic, DiagnosticManager } from '../manager/diagnostic';
|
|
10
|
-
import { EventEmitter } from '../common/EventEmitter';
|
|
11
9
|
export interface FileNode extends BaseNode {
|
|
12
10
|
getEmbeddedFilePath(name?: string): string;
|
|
13
11
|
toEmbeddedTSFile(): {
|
|
@@ -31,7 +29,6 @@ declare type QuickInfoNodes = Array<{
|
|
|
31
29
|
node: BaseNode;
|
|
32
30
|
item: SourceMapItem;
|
|
33
31
|
}>;
|
|
34
|
-
export declare function getDisplayString2Type(displayString: string): string[];
|
|
35
32
|
export declare class NaslServer {
|
|
36
33
|
messager: Messager;
|
|
37
34
|
worker: Worker;
|
|
@@ -45,11 +42,8 @@ export declare class NaslServer {
|
|
|
45
42
|
[elementLogicName: string]: Array<Logic>;
|
|
46
43
|
};
|
|
47
44
|
diagnosticManager: DiagnosticManager;
|
|
48
|
-
embeddedTSEmitter: EventEmitter;
|
|
49
|
-
changeStackList: Array<EventPayload>;
|
|
50
45
|
constructor();
|
|
51
46
|
start(): Promise<unknown>;
|
|
52
|
-
terminate(): void;
|
|
53
47
|
createUiTs(allComponent: any): Promise<void>;
|
|
54
48
|
contentToFile(module: Module | App, results: Array<ReturnType<Structure['toEmbeddedTSFile']>>): void;
|
|
55
49
|
view2TSFile(viewsChildren: View[], results: Array<ReturnType<Structure['toEmbeddedTSFile']>>): void;
|
|
@@ -85,6 +79,7 @@ export declare class NaslServer {
|
|
|
85
79
|
references(args: tsProtocol.FileLocationRequestArgs): Promise<tsProtocol.ReferencesResponseBody>;
|
|
86
80
|
getValueSelectCompletion(node: BaseNode, value: string, noFilterList?: Array<string>): Promise<unknown>;
|
|
87
81
|
_getValueSelectCompletion(args: any): Promise<unknown>;
|
|
82
|
+
getDisplayString2Type(displayString: string): string[];
|
|
88
83
|
/**
|
|
89
84
|
* 获取 Convert 的可选类型
|
|
90
85
|
* @param node 传入当前已经选择的变量
|
|
@@ -101,7 +96,6 @@ export declare class NaslServer {
|
|
|
101
96
|
* @returns 全部类型的str 或者 最后一个.后的内容
|
|
102
97
|
*/
|
|
103
98
|
getDataSchemaType(node: BaseNode, allType?: boolean): Promise<string>;
|
|
104
|
-
getDataSchemaStructureOrTypeAnnotation(node: ViewElement): Promise<any>;
|
|
105
99
|
/**
|
|
106
100
|
* ts的 quickInfo方法,查询指定位置的详情
|
|
107
101
|
* @param args 文件信息数组
|
|
@@ -174,7 +168,7 @@ export declare class NaslServer {
|
|
|
174
168
|
* @returns 诊断结果
|
|
175
169
|
*/
|
|
176
170
|
_attachDiagnostics(fileNode: BaseNode): Diagnostic[];
|
|
177
|
-
|
|
171
|
+
checkMatchError(node: BaseNode, diagnostics: Diagnostic[]): void;
|
|
178
172
|
existStructureFix(semanticDiagnostics: Diagnostic[], node: FileNode, that: any): void;
|
|
179
173
|
/**
|
|
180
174
|
* 单个问题的诊断处理
|
|
@@ -270,10 +264,10 @@ export declare class NaslServer {
|
|
|
270
264
|
typeAnnotation: TypeAnnotation;
|
|
271
265
|
option: any;
|
|
272
266
|
}>>;
|
|
273
|
-
getNaslAnnotatedJSON(app: App, releaseFlag: boolean): Promise<
|
|
267
|
+
getNaslAnnotatedJSON(app: App, releaseFlag: boolean): Promise<{}>;
|
|
274
268
|
createdNaslAnnotatedJSON(app: App): Promise<void>;
|
|
275
269
|
IncrementalAnnotationJSON(records: DiagnosticRecord[]): Promise<void>;
|
|
276
|
-
|
|
270
|
+
annitationToJson(typesMap: Map<BaseNode, TypeAnnotation | {
|
|
277
271
|
typeAnnotation: TypeAnnotation;
|
|
278
272
|
option: any;
|
|
279
273
|
}>, json: {}): void;
|
|
@@ -306,40 +300,6 @@ export declare class NaslServer {
|
|
|
306
300
|
responseRequired: boolean;
|
|
307
301
|
response: tsProtocol.QuickInfoResponseBody;
|
|
308
302
|
}>;
|
|
309
|
-
/**
|
|
310
|
-
* 处理删除节点
|
|
311
|
-
* @param fileNode 当前删除节点的文件级别节点
|
|
312
|
-
* @param targetNode 当前操作的节点
|
|
313
|
-
* @param result toTs生成的内容
|
|
314
|
-
*/
|
|
315
|
-
handleDelete(fileNode: BaseNode, targetNode: BaseNode, result: ReturnType<Structure['toEmbeddedTSFile']>): Promise<void>;
|
|
316
|
-
/**
|
|
317
|
-
* 除去rename场景下的更新
|
|
318
|
-
* @param fileNode 文件级别的节点
|
|
319
|
-
* @param targetNode 触发修改的节点
|
|
320
|
-
* @param result 生成代码的code 和位置信息
|
|
321
|
-
*/
|
|
322
|
-
handleChange(fileNode: BaseNode, targetNode: BaseNode, result: ReturnType<Structure['toEmbeddedTSFile']>, action: string): Promise<void>;
|
|
323
|
-
/**
|
|
324
|
-
* 重命名的更新
|
|
325
|
-
* @param fileNode 文件级别的节点
|
|
326
|
-
* @param targetNode 触发修改的节点
|
|
327
|
-
* @param result 生成代码的code 和位置信息
|
|
328
|
-
* @param isRename 是不是修改名字
|
|
329
|
-
* @param oldFilePath 如果是改名,文件级别的才会有这个参数,用于文件新增替换
|
|
330
|
-
*/
|
|
331
|
-
handleRename(fileNode: BaseNode, targetNode: BaseNode, result: ReturnType<Structure['toEmbeddedTSFile']>, oldFilePath?: string): Promise<void>;
|
|
332
|
-
/**
|
|
333
|
-
* 处理一些节点操作,子节点需要更新并且check的场景
|
|
334
|
-
* 因为删除,新增父页面,或者重命名会一起
|
|
335
|
-
* 删除或者新增view而且他有子集 就要执行同样的操作
|
|
336
|
-
* @param action 当前操作类型
|
|
337
|
-
* @param fileNode 文件节点
|
|
338
|
-
* @param targetNode 操作节点 这里要两个相等才会走家去面对哦逻辑
|
|
339
|
-
* @param oldpath 触发内容的oldpath
|
|
340
|
-
*/
|
|
341
|
-
incidentalAction(action: string, fileNode: BaseNode, targetNode: BaseNode, oldpath?: string): Promise<void>;
|
|
342
|
-
receiveHandleChange($event: EventPayload): Promise<boolean>;
|
|
343
|
-
changeFileNext(): void;
|
|
344
303
|
}
|
|
345
|
-
|
|
304
|
+
declare const naslServer: NaslServer;
|
|
305
|
+
export default naslServer;
|