@lcap/nasl 3.3.2-beta.4 → 3.3.3-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/.nyc_output/{d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json → 4f2d526f-9422-4abc-993d-0857e05a5009.json} +1 -1
- package/.nyc_output/processinfo/4f2d526f-9422-4abc-993d-0857e05a5009.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/index.html +108 -108
- package/coverage/src/automate/engine/index.html +1 -1
- package/coverage/src/automate/engine/utils.js.html +36 -36
- package/coverage/src/bak/index.html +15 -15
- package/coverage/src/bak/translator.js.html +183 -60
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/index.html +1 -1
- package/coverage/src/breakpoint/generator/index.ts.html +1 -1
- package/coverage/src/breakpoint/index.html +1 -1
- package/coverage/src/breakpoint/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
- package/coverage/src/breakpoint/shared/index.html +1 -1
- package/coverage/src/breakpoint/shared/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/operations.ts.html +1 -1
- package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
- package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
- package/coverage/src/breakpoint/store/core.ts.html +1 -1
- package/coverage/src/breakpoint/store/dock.ts.html +1 -1
- package/coverage/src/breakpoint/store/index.html +1 -1
- package/coverage/src/breakpoint/store/index.ts.html +1 -1
- package/coverage/src/common/BaseNode.ts.html +92 -62
- package/coverage/src/common/Command.ts.html +1 -1
- package/coverage/src/common/EventEmitter.ts.html +1 -1
- package/coverage/src/common/Messager.ts.html +1 -1
- package/coverage/src/common/asyncFuncMap.ts.html +1 -1
- package/coverage/src/common/index.html +14 -14
- package/coverage/src/common/index.ts.html +1 -1
- package/coverage/src/concepts/Abort__.ts.html +9 -6
- package/coverage/src/concepts/Anchor__.ts.html +36 -21
- package/coverage/src/concepts/AnonymousFunction__.ts.html +62 -20
- package/coverage/src/concepts/App__.ts.html +917 -74
- package/coverage/src/concepts/Argument__.ts.html +41 -26
- package/coverage/src/concepts/Assignee__.ts.html +40 -13
- package/coverage/src/concepts/AssignmentLine__.ts.html +9 -6
- package/coverage/src/concepts/Assignment__.ts.html +61 -22
- package/coverage/src/concepts/Attribute__.ts.html +25 -10
- package/coverage/src/concepts/AuthInterface__.ts.html +9 -6
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +25 -10
- package/coverage/src/concepts/AuthLogic__.ts.html +18 -6
- package/coverage/src/concepts/BackendVariable__.ts.html +25 -10
- package/coverage/src/concepts/Backend__.ts.html +25 -10
- package/coverage/src/concepts/BatchAssignment__.ts.html +61 -16
- package/coverage/src/concepts/BinaryExpression__.ts.html +141 -39
- package/coverage/src/concepts/BindAttribute__.ts.html +134 -41
- package/coverage/src/concepts/BindDirective__.ts.html +79 -16
- package/coverage/src/concepts/BindEvent__.ts.html +80 -23
- package/coverage/src/concepts/BindStyle__.ts.html +25 -10
- package/coverage/src/concepts/BooleanLiteral__.ts.html +9 -6
- package/coverage/src/concepts/CallAuthInterface__.ts.html +25 -10
- package/coverage/src/concepts/CallConnector__.ts.html +9 -6
- package/coverage/src/concepts/CallFunction__.ts.html +56 -38
- package/coverage/src/concepts/CallInterface__.ts.html +81 -36
- package/coverage/src/concepts/CallLogic__.ts.html +195 -264
- package/coverage/src/concepts/CallQueryComponent__.ts.html +40 -13
- package/coverage/src/concepts/Comment__.ts.html +11 -8
- package/coverage/src/concepts/CompletionProperty__.ts.html +25 -10
- package/coverage/src/concepts/ConfigGroup__.ts.html +25 -10
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +9 -6
- package/coverage/src/concepts/ConfigProperty__.ts.html +25 -10
- package/coverage/src/concepts/Configuration__.ts.html +25 -10
- package/coverage/src/concepts/Connection__.ts.html +26 -11
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +9 -6
- package/coverage/src/concepts/Connector__.ts.html +85 -22
- package/coverage/src/concepts/Constant__.ts.html +25 -10
- package/coverage/src/concepts/DataSource__.ts.html +26 -11
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +9 -6
- package/coverage/src/concepts/Destination__.ts.html +24 -12
- package/coverage/src/concepts/End__.ts.html +9 -6
- package/coverage/src/concepts/EntityIndex__.ts.html +9 -6
- package/coverage/src/concepts/EntityProperty__.ts.html +62 -14
- package/coverage/src/concepts/Entity__.ts.html +41 -14
- package/coverage/src/concepts/EnumItem__.ts.html +9 -6
- package/coverage/src/concepts/Enum__.ts.html +25 -10
- package/coverage/src/concepts/Event__.ts.html +25 -10
- package/coverage/src/concepts/ExternalDestination__.ts.html +25 -10
- package/coverage/src/concepts/ForEachStatement__.ts.html +68 -47
- package/coverage/src/concepts/FrontendLibrary__.ts.html +40 -13
- package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
- package/coverage/src/concepts/Frontend__.ts.html +86 -23
- package/coverage/src/concepts/Function__.ts.html +92 -26
- package/coverage/src/concepts/Identifier__.ts.html +28 -25
- package/coverage/src/concepts/IfStatement__.ts.html +83 -56
- package/coverage/src/concepts/Integration__.ts.html +40 -13
- package/coverage/src/concepts/InterfaceParam__.ts.html +25 -10
- package/coverage/src/concepts/Interface__.ts.html +61 -22
- package/coverage/src/concepts/JSBlock__.ts.html +188 -8
- package/coverage/src/concepts/JavaLogic__.ts.html +9 -6
- package/coverage/src/concepts/LogicItem__.ts.html +15 -12
- package/coverage/src/concepts/Logic__.ts.html +117 -81
- package/coverage/src/concepts/MatchCase__.ts.html +100 -61
- package/coverage/src/concepts/Match__.ts.html +48 -27
- package/coverage/src/concepts/MemberExpression__.ts.html +72 -66
- package/coverage/src/concepts/MetadataType__.ts.html +1996 -0
- package/coverage/src/concepts/MicroApp__.ts.html +9 -6
- package/coverage/src/concepts/Module__.ts.html +672 -18
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +25 -10
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +25 -10
- package/coverage/src/concepts/Namespace__.ts.html +175 -40
- package/coverage/src/concepts/NewComposite__.ts.html +93 -27
- package/coverage/src/concepts/NewList__.ts.html +44 -14
- package/coverage/src/concepts/NewMap__.ts.html +44 -14
- package/coverage/src/concepts/New__.ts.html +1 -1
- package/coverage/src/concepts/NullLiteral__.ts.html +9 -6
- package/coverage/src/concepts/NumericLiteral__.ts.html +27 -12
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +103 -13
- package/coverage/src/concepts/OverriddenLogic__.ts.html +100 -25
- package/coverage/src/concepts/Param__.ts.html +24 -15
- package/coverage/src/concepts/Point__.ts.html +9 -6
- package/coverage/src/concepts/ProcessComponent__.ts.html +40 -13
- package/coverage/src/concepts/ProcessElement__.ts.html +128 -29
- package/coverage/src/concepts/ProcessOutcome__.ts.html +9 -6
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +9 -6
- package/coverage/src/concepts/Process__.ts.html +85 -22
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +9 -6
- package/coverage/src/concepts/QueryFromExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +25 -10
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +25 -10
- package/coverage/src/concepts/Rect__.ts.html +9 -6
- package/coverage/src/concepts/Return__.ts.html +25 -10
- package/coverage/src/concepts/Role__.ts.html +9 -6
- package/coverage/src/concepts/SelectMembers__.ts.html +25 -10
- package/coverage/src/concepts/Slot__.ts.html +25 -10
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +25 -10
- package/coverage/src/concepts/Start__.ts.html +9 -6
- package/coverage/src/concepts/StringInterpolation__.ts.html +40 -19
- package/coverage/src/concepts/StringLiteral__.ts.html +9 -6
- package/coverage/src/concepts/StructureProperty__.ts.html +25 -10
- package/coverage/src/concepts/Structure__.ts.html +40 -13
- package/coverage/src/concepts/SwitchCase__.ts.html +33 -18
- package/coverage/src/concepts/SwitchStatement__.ts.html +38 -23
- package/coverage/src/concepts/Theme__.ts.html +9 -6
- package/coverage/src/concepts/Transactional__.ts.html +9 -6
- package/coverage/src/concepts/TriggerEvent__.ts.html +25 -10
- package/coverage/src/concepts/TriggerLauncher__.ts.html +9 -6
- package/coverage/src/concepts/TypeAnnotation__.ts.html +223 -61
- package/coverage/src/concepts/TypeParam__.ts.html +10 -7
- package/coverage/src/concepts/UnaryExpression__.ts.html +40 -13
- package/coverage/src/concepts/Unparsed__.ts.html +11 -8
- package/coverage/src/concepts/UseComponent__.ts.html +9 -6
- package/coverage/src/concepts/ValidationRule__.ts.html +30 -15
- package/coverage/src/concepts/Variable__.ts.html +61 -16
- package/coverage/src/concepts/ViewBlock__.ts.html +9 -6
- package/coverage/src/concepts/ViewComponent__.ts.html +99 -24
- package/coverage/src/concepts/ViewElement__.ts.html +334 -181
- package/coverage/src/concepts/View__.ts.html +326 -71
- package/coverage/src/concepts/WhileStatement__.ts.html +78 -45
- package/coverage/src/concepts/basics/stdlib/index.html +1 -1
- package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
- package/coverage/src/concepts/basics/types/index.html +1 -1
- package/coverage/src/concepts/basics/types/index.ts.html +1 -1
- package/coverage/src/concepts/index.html +823 -808
- package/coverage/src/concepts/index.ts.html +1 -1
- package/coverage/src/concepts/index__.ts.html +7 -4
- package/coverage/src/config.ts.html +1 -1
- package/coverage/src/decorators/index.html +1 -1
- package/coverage/src/decorators/index.ts.html +24 -24
- package/coverage/src/decorators/promise.ts.html +1 -1
- package/coverage/src/eventBus.ts.html +1 -1
- package/coverage/src/generator/compileComponent.ts.html +1 -1
- package/coverage/src/generator/genBundleFiles.ts.html +13 -19
- package/coverage/src/generator/genHash.ts.html +1 -1
- package/coverage/src/generator/genMetaData.ts.html +103 -16
- package/coverage/src/generator/genReleaseBody.ts.html +1 -1
- package/coverage/src/generator/icestark.ts.html +1 -1
- package/coverage/src/generator/index.html +15 -15
- package/coverage/src/generator/index.ts.html +1 -1
- package/coverage/src/generator/microApp.ts.html +1 -1
- package/coverage/src/generator/permission.ts.html +1 -1
- package/coverage/src/generator/qiankun.ts.html +1 -1
- package/coverage/src/generator/styleReplacer.ts.html +1 -1
- package/coverage/src/index.html +7 -7
- package/coverage/src/index.ts.html +4 -4
- package/coverage/src/manager/diagnostic.ts.html +1 -1
- package/coverage/src/manager/index.html +1 -1
- package/coverage/src/manager/stepRecorder.ts.html +1 -1
- package/coverage/src/natural/genNaturalTS.ts.html +1 -1
- package/coverage/src/natural/index.html +15 -15
- package/coverage/src/natural/index.ts.html +1 -1
- package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
- package/coverage/src/natural/transformTSCode.ts.html +78 -18
- package/coverage/src/sentry/index.html +1 -1
- package/coverage/src/sentry/index.ts.html +21 -21
- package/coverage/src/server/createUiTs.ts.html +15 -6
- package/coverage/src/server/entity2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/event.js.html +1 -1
- package/coverage/src/server/extendBaseNode.ts.html +7 -4
- package/coverage/src/server/formatTsUtils.ts.html +1 -1
- package/coverage/src/server/getConnector.ts.html +1 -1
- package/coverage/src/server/getExtensionModules.ts.html +1 -1
- package/coverage/src/server/getFunctions.ts.html +1 -1
- package/coverage/src/server/getInterfaces.ts.html +1 -1
- package/coverage/src/server/getLogging.ts.html +1 -1
- package/coverage/src/server/getLogics.ts.html +1 -1
- package/coverage/src/server/getMemberIdentifier.ts.html +161 -113
- package/coverage/src/server/getProcessComponents.ts.html +1 -1
- package/coverage/src/server/getProcesses.ts.html +1 -1
- package/coverage/src/server/getValidates.ts.html +1 -1
- package/coverage/src/server/index.html +25 -25
- package/coverage/src/server/index.ts.html +1 -1
- package/coverage/src/server/naslServer.ts.html +470 -59
- package/coverage/src/server/naslStdlibMap.ts.html +1 -1
- package/coverage/src/server/process2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/translator.ts.html +3 -3
- package/coverage/src/service/creator/add.configs.js.html +26 -8
- package/coverage/src/service/creator/errHandles.js.html +19 -37
- package/coverage/src/service/creator/index.html +22 -22
- package/coverage/src/service/creator/index.js.html +1 -1
- package/coverage/src/service/datasource/api.js.html +1 -1
- package/coverage/src/service/datasource/index.html +1 -1
- package/coverage/src/service/datasource/index.js.html +1 -1
- package/coverage/src/service/logic/api.js.html +1 -1
- package/coverage/src/service/logic/index.html +1 -1
- package/coverage/src/service/logic/index.js.html +1 -1
- package/coverage/src/service/storage/api.js.html +1 -1
- package/coverage/src/service/storage/index.html +19 -19
- package/coverage/src/service/storage/index.ts.html +1 -1
- package/coverage/src/service/storage/init.ts.html +1498 -598
- package/coverage/src/service/storage/jsoner.ts.html +3 -3
- package/coverage/src/service/storage/map.ts.html +1 -1
- package/coverage/src/service/storage/service.ts.html +1 -1
- package/coverage/src/service/storage/storagePoint.ts.html +1 -1
- package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
- package/coverage/src/templator/genCreateBlock.ts.html +47 -56
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +49 -31
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +81 -93
- package/coverage/src/templator/genEditTableBlock.ts.html +80 -11
- package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genGetBlock.ts.html +1 -1
- package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
- package/coverage/src/templator/genListViewBlock.ts.html +1 -1
- package/coverage/src/templator/genQueryComponent.ts.html +1 -1
- package/coverage/src/templator/genSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genTableBlock.ts.html +66 -3
- package/coverage/src/templator/genUpdateBlock.ts.html +48 -36
- package/coverage/src/templator/index.html +39 -39
- package/coverage/src/templator/index.ts.html +1 -1
- package/coverage/src/templator/utils.ts.html +77 -11
- package/coverage/src/translator/constant.ts.html +1 -1
- package/coverage/src/translator/index.html +20 -20
- package/coverage/src/translator/index.ts.html +1 -1
- package/coverage/src/translator/utils.ts.html +87 -30
- package/coverage/src/utils/cookie.ts.html +1 -1
- package/coverage/src/utils/env.ts.html +1 -1
- package/coverage/src/utils/index.html +27 -27
- package/coverage/src/utils/index.ts.html +115 -22
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +1 -1
- package/coverage/src/utils/string.ts.html +110 -8
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.core.ts +187 -185
- package/src/bak/translator.js +75 -43
- package/src/common/BaseNode.ts +62 -12
- package/src/concepts/Abort__.ts +1 -0
- package/src/concepts/Anchor__.ts +19 -14
- package/src/concepts/AnonymousFunction__.ts +26 -12
- package/src/concepts/App__.ts +359 -76
- package/src/concepts/Argument__.ts +8 -3
- package/src/concepts/Assignee__.ts +15 -6
- package/src/concepts/AssignmentLine__.ts +1 -0
- package/src/concepts/Assignment__.ts +27 -14
- package/src/concepts/Attribute__.ts +8 -3
- package/src/concepts/AuthInterface__.ts +1 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +8 -3
- package/src/concepts/AuthLogic__.ts +4 -0
- package/src/concepts/BackendVariable__.ts +30 -6
- package/src/concepts/Backend__.ts +8 -3
- package/src/concepts/BatchAssignment__.ts +28 -13
- package/src/concepts/BinaryExpression__.ts +56 -22
- package/src/concepts/BindAttribute__.ts +50 -18
- package/src/concepts/BindDirective__.ts +26 -5
- package/src/concepts/BindEvent__.ts +34 -15
- package/src/concepts/BindStyle__.ts +8 -3
- package/src/concepts/BooleanLiteral__.ts +1 -0
- package/src/concepts/CallAuthInterface__.ts +8 -3
- package/src/concepts/CallConnector__.ts +1 -0
- package/src/concepts/CallFunction__.ts +27 -24
- package/src/concepts/CallInterface__.ts +43 -28
- package/src/concepts/CallLogic__.ts +85 -62
- package/src/concepts/CallQueryComponent__.ts +15 -6
- package/src/concepts/Comment__.ts +2 -1
- package/src/concepts/CompletionProperty__.ts +8 -3
- package/src/concepts/ConfigGroup__.ts +8 -3
- package/src/concepts/ConfigPropertyValue__.ts +1 -0
- package/src/concepts/ConfigProperty__.ts +8 -3
- package/src/concepts/Configuration__.ts +8 -3
- package/src/concepts/Connection__.ts +9 -4
- package/src/concepts/ConnectorTrigger__.ts +1 -0
- package/src/concepts/Connector__.ts +36 -15
- package/src/concepts/Constant__.ts +8 -3
- package/src/concepts/DataSource__.ts +8 -3
- package/src/concepts/DatabaseTypeAnnotation__.ts +1 -0
- package/src/concepts/Destination__.ts +8 -4
- package/src/concepts/End__.ts +1 -0
- package/src/concepts/EntityIndex__.ts +1 -0
- package/src/concepts/EntityProperty__.ts +23 -7
- package/src/concepts/Entity__.ts +15 -6
- package/src/concepts/EnumItem__.ts +1 -0
- package/src/concepts/Enum__.ts +8 -3
- package/src/concepts/Event__.ts +8 -3
- package/src/concepts/ExternalDestination__.ts +8 -3
- package/src/concepts/ForEachStatement__.ts +43 -36
- package/src/concepts/FrontendLibrary__.ts +15 -6
- package/src/concepts/Frontend__.ts +36 -15
- package/src/concepts/Function__.ts +40 -18
- package/src/concepts/Identifier__.ts +1 -0
- package/src/concepts/IfStatement__.ts +29 -20
- package/src/concepts/Integration__.ts +15 -6
- package/src/concepts/InterfaceParam__.ts +8 -3
- package/src/concepts/Interface__.ts +28 -15
- package/src/concepts/JSBlock__.ts +60 -0
- package/src/concepts/JavaLogic__.ts +1 -0
- package/src/concepts/LogicItem__.ts +5 -4
- package/src/concepts/Logic__.ts +70 -58
- package/src/concepts/MatchCase__.ts +42 -29
- package/src/concepts/Match__.ts +23 -16
- package/src/concepts/MemberExpression__.ts +24 -19
- package/src/concepts/MetadataType__.ts +637 -0
- package/src/concepts/MicroApp__.ts +1 -0
- package/src/concepts/Module__.ts +227 -9
- package/src/concepts/MsgTriggerEvent__.ts +8 -3
- package/src/concepts/MsgTriggerLauncher__.ts +8 -3
- package/src/concepts/Namespace__.ts +78 -33
- package/src/concepts/NewComposite__.ts +41 -19
- package/src/concepts/NewList__.ts +17 -7
- package/src/concepts/NewMap__.ts +17 -7
- package/src/concepts/NullLiteral__.ts +1 -0
- package/src/concepts/NumericLiteral__.ts +9 -4
- package/src/concepts/OqlQueryComponent__.ts +35 -5
- package/src/concepts/OverriddenLogic__.ts +44 -19
- package/src/concepts/Param__.ts +38 -15
- package/src/concepts/Point__.ts +1 -0
- package/src/concepts/ProcessComponent__.ts +15 -6
- package/src/concepts/ProcessElement__.ts +57 -24
- package/src/concepts/ProcessOutcome__.ts +1 -0
- package/src/concepts/ProcessOutcomes__.ts +1 -0
- package/src/concepts/Process__.ts +36 -15
- package/src/concepts/QueryAggregateExpression__.ts +8 -3
- package/src/concepts/QueryFieldExpression__.ts +1 -0
- package/src/concepts/QueryFromExpression__.ts +8 -3
- package/src/concepts/QueryGroupByExpression__.ts +8 -3
- package/src/concepts/QueryJoinExpression__.ts +8 -3
- package/src/concepts/QueryLimitExpression__.ts +8 -3
- package/src/concepts/QueryOrderByExpression__.ts +8 -3
- package/src/concepts/QuerySelectExpression__.ts +8 -3
- package/src/concepts/Rect__.ts +1 -0
- package/src/concepts/Return__.ts +31 -6
- package/src/concepts/Role__.ts +1 -0
- package/src/concepts/SelectMembers__.ts +8 -3
- package/src/concepts/Slot__.ts +8 -3
- package/src/concepts/SqlQueryComponent__.ts +8 -3
- package/src/concepts/Start__.ts +1 -0
- package/src/concepts/StringInterpolation__.ts +14 -7
- package/src/concepts/StringLiteral__.ts +1 -0
- package/src/concepts/StructureProperty__.ts +8 -3
- package/src/concepts/Structure__.ts +15 -6
- package/src/concepts/SwitchCase__.ts +14 -9
- package/src/concepts/SwitchStatement__.ts +21 -16
- package/src/concepts/Theme__.ts +1 -0
- package/src/concepts/Transactional__.ts +1 -0
- package/src/concepts/TriggerEvent__.ts +8 -3
- package/src/concepts/TriggerLauncher__.ts +1 -0
- package/src/concepts/TypeAnnotation__.ts +75 -21
- package/src/concepts/TypeParam__.ts +2 -1
- package/src/concepts/UnaryExpression__.ts +15 -6
- package/src/concepts/Unparsed__.ts +2 -1
- package/src/concepts/UseComponent__.ts +1 -0
- package/src/concepts/ValidationRule__.ts +10 -5
- package/src/concepts/Variable__.ts +32 -8
- package/src/concepts/ViewBlock__.ts +1 -0
- package/src/concepts/ViewComponent__.ts +43 -18
- package/src/concepts/ViewElement__.ts +190 -119
- package/src/concepts/View__.ts +136 -58
- package/src/concepts/WhileStatement__.ts +26 -15
- package/src/concepts/basics/stdlib/nasl.util.ts +2 -2
- package/src/concepts/index__.ts +1 -0
- package/src/concepts/types__.ts +2 -0
- package/src/generator/genBundleFiles.ts +11 -13
- package/src/generator/genMetaData.ts +37 -8
- package/src/generator/permission.ts +33 -9
- package/src/sentry/index.ts +3 -1
- package/src/server/extendBaseNode.ts +2 -1
- package/src/server/getMemberIdentifier.ts +122 -121
- package/src/server/naslServer.ts +141 -5
- package/src/server/translator.ts +2 -2
- package/src/service/storage/init.ts +46 -22
- package/src/templator/genCreateBlock.ts +35 -38
- package/src/templator/genCurdEditMultipleKeyBlock.ts +31 -25
- package/src/templator/genCurdMultipleKeyBlock.ts +67 -71
- package/src/templator/genEditTableBlock.ts +7 -6
- package/src/templator/genUpdateBlock.ts +30 -26
- package/src/templator/utils.ts +23 -1
- package/src/translator/utils.ts +20 -0
- package/src/utils/index.ts +19 -1
- package/src/utils/string.ts +34 -0
- package/test/concepts/call-interface/__snapshots__/toJS.spec.ts.snap +2 -2
- package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +3 -3
- package/test/concepts/match/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/numeric-literal/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +3 -3
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +4 -0
- package/.nyc_output/processinfo/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +0 -1
- package/out/automate/engine/index.d.ts +0 -4
- package/out/automate/engine/index.js +0 -443
- package/out/automate/engine/index.js.map +0 -1
- package/out/automate/engine/operators.d.ts +0 -24
- package/out/automate/engine/operators.js +0 -252
- package/out/automate/engine/operators.js.map +0 -1
- package/out/automate/engine/uniqueName.d.ts +0 -12
- package/out/automate/engine/uniqueName.js +0 -112
- package/out/automate/engine/uniqueName.js.map +0 -1
- package/out/automate/engine/utils.d.ts +0 -25
- package/out/automate/engine/utils.js +0 -444
- package/out/automate/engine/utils.js.map +0 -1
- package/out/automate/engine/viewCache.d.ts +0 -19
- package/out/automate/engine/viewCache.js +0 -45
- package/out/automate/engine/viewCache.js.map +0 -1
- package/out/automate/template/myProcess.d.ts +0 -10
- package/out/automate/template/myProcess.js +0 -11498
- package/out/automate/template/myProcess.js.map +0 -1
- package/out/automate/upgrader/2.12.d.ts +0 -7
- package/out/automate/upgrader/2.12.js +0 -63
- package/out/automate/upgrader/2.12.js.map +0 -1
- package/out/automate/upgrader/2.14-components.d.ts +0 -1115
- package/out/automate/upgrader/2.14-components.js +0 -1087
- package/out/automate/upgrader/2.14-components.js.map +0 -1
- package/out/automate/upgrader/2.14.d.ts +0 -10
- package/out/automate/upgrader/2.14.js +0 -236
- package/out/automate/upgrader/2.14.js.map +0 -1
- package/out/automate/upgrader/2.14.old.d.ts +0 -1
- package/out/automate/upgrader/2.14.old.js +0 -125
- package/out/automate/upgrader/2.14.old.js.map +0 -1
- package/out/automate/upgrader/2.16.d.ts +0 -10
- package/out/automate/upgrader/2.16.js +0 -75
- package/out/automate/upgrader/2.16.js.map +0 -1
- package/out/automate/upgrader/2.17.d.ts +0 -21
- package/out/automate/upgrader/2.17.js +0 -557
- package/out/automate/upgrader/2.17.js.map +0 -1
- package/out/automate/upgrader/2.18.d.ts +0 -10
- package/out/automate/upgrader/2.18.js +0 -107
- package/out/automate/upgrader/2.18.js.map +0 -1
- package/out/automate/upgrader/2.20.d.ts +0 -17
- package/out/automate/upgrader/2.20.js +0 -68
- package/out/automate/upgrader/2.20.js.map +0 -1
- package/out/bak/translator.d.ts +0 -1
- package/out/bak/translator.js +0 -190
- package/out/bak/translator.js.map +0 -1
- package/out/breakpoint/generator/AfterStartNode.d.ts +0 -7
- package/out/breakpoint/generator/AfterStartNode.js +0 -30
- package/out/breakpoint/generator/AfterStartNode.js.map +0 -1
- package/out/breakpoint/generator/BeforeEndNode.d.ts +0 -7
- package/out/breakpoint/generator/BeforeEndNode.js +0 -28
- package/out/breakpoint/generator/BeforeEndNode.js.map +0 -1
- package/out/breakpoint/generator/BreakpointNode.d.ts +0 -15
- package/out/breakpoint/generator/BreakpointNode.js +0 -284
- package/out/breakpoint/generator/BreakpointNode.js.map +0 -1
- package/out/breakpoint/generator/CallbackNode.d.ts +0 -4
- package/out/breakpoint/generator/CallbackNode.js +0 -22
- package/out/breakpoint/generator/CallbackNode.js.map +0 -1
- package/out/breakpoint/generator/FragmentNode.d.ts +0 -4
- package/out/breakpoint/generator/FragmentNode.js +0 -18
- package/out/breakpoint/generator/FragmentNode.js.map +0 -1
- package/out/breakpoint/generator/index.d.ts +0 -4
- package/out/breakpoint/generator/index.js +0 -119
- package/out/breakpoint/generator/index.js.map +0 -1
- package/out/breakpoint/index.d.ts +0 -3
- package/out/breakpoint/index.js +0 -20
- package/out/breakpoint/index.js.map +0 -1
- package/out/breakpoint/shared/constants.d.ts +0 -37
- package/out/breakpoint/shared/constants.js +0 -106
- package/out/breakpoint/shared/constants.js.map +0 -1
- package/out/breakpoint/shared/index.d.ts +0 -3
- package/out/breakpoint/shared/index.js +0 -33
- package/out/breakpoint/shared/index.js.map +0 -1
- package/out/breakpoint/shared/operations.d.ts +0 -10
- package/out/breakpoint/shared/operations.js +0 -25
- package/out/breakpoint/shared/operations.js.map +0 -1
- package/out/breakpoint/shared/socket.d.ts +0 -48
- package/out/breakpoint/shared/socket.js +0 -257
- package/out/breakpoint/shared/socket.js.map +0 -1
- package/out/breakpoint/shared/utils.d.ts +0 -27
- package/out/breakpoint/shared/utils.js +0 -229
- package/out/breakpoint/shared/utils.js.map +0 -1
- package/out/breakpoint/store/core.d.ts +0 -80
- package/out/breakpoint/store/core.js +0 -416
- package/out/breakpoint/store/core.js.map +0 -1
- package/out/breakpoint/store/dock.d.ts +0 -1
- package/out/breakpoint/store/dock.js +0 -160
- package/out/breakpoint/store/dock.js.map +0 -1
- package/out/breakpoint/store/index.d.ts +0 -2
- package/out/breakpoint/store/index.js +0 -19
- package/out/breakpoint/store/index.js.map +0 -1
- package/out/common/BaseNode.d.ts +0 -330
- package/out/common/BaseNode.js +0 -1261
- package/out/common/BaseNode.js.map +0 -1
- package/out/common/Command.d.ts +0 -21
- package/out/common/Command.js +0 -79
- package/out/common/Command.js.map +0 -1
- package/out/common/ComponentAPI.d.ts +0 -110
- package/out/common/ComponentAPI.js +0 -3
- package/out/common/ComponentAPI.js.map +0 -1
- package/out/common/EventEmitter.d.ts +0 -59
- package/out/common/EventEmitter.js +0 -69
- package/out/common/EventEmitter.js.map +0 -1
- package/out/common/Messager.d.ts +0 -91
- package/out/common/Messager.js +0 -207
- package/out/common/Messager.js.map +0 -1
- package/out/common/asyncFuncMap.d.ts +0 -2
- package/out/common/asyncFuncMap.js +0 -16
- package/out/common/asyncFuncMap.js.map +0 -1
- package/out/common/index.d.ts +0 -3
- package/out/common/index.js +0 -20
- package/out/common/index.js.map +0 -1
- package/out/concepts/Abort__.d.ts +0 -26
- package/out/concepts/Abort__.js +0 -80
- package/out/concepts/Abort__.js.map +0 -1
- package/out/concepts/Anchor__.d.ts +0 -46
- package/out/concepts/Anchor__.js +0 -198
- package/out/concepts/Anchor__.js.map +0 -1
- package/out/concepts/AnonymousFunction__.d.ts +0 -173
- package/out/concepts/AnonymousFunction__.js +0 -519
- package/out/concepts/AnonymousFunction__.js.map +0 -1
- package/out/concepts/App__.d.ts +0 -1687
- package/out/concepts/App__.js +0 -2529
- package/out/concepts/App__.js.map +0 -1
- package/out/concepts/Argument__.d.ts +0 -67
- package/out/concepts/Argument__.js +0 -302
- package/out/concepts/Argument__.js.map +0 -1
- package/out/concepts/Assignee__.d.ts +0 -289
- package/out/concepts/Assignee__.js +0 -425
- package/out/concepts/Assignee__.js.map +0 -1
- package/out/concepts/AssignmentLine__.d.ts +0 -42
- package/out/concepts/AssignmentLine__.js +0 -111
- package/out/concepts/AssignmentLine__.js.map +0 -1
- package/out/concepts/Assignment__.d.ts +0 -75
- package/out/concepts/Assignment__.js +0 -310
- package/out/concepts/Assignment__.js.map +0 -1
- package/out/concepts/Attribute__.d.ts +0 -98
- package/out/concepts/Attribute__.js +0 -206
- package/out/concepts/Attribute__.js.map +0 -1
- package/out/concepts/AuthInterface__.d.ts +0 -36
- package/out/concepts/AuthInterface__.js +0 -83
- package/out/concepts/AuthInterface__.js.map +0 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +0 -139
- package/out/concepts/AuthLogicForCallInterface__.js +0 -523
- package/out/concepts/AuthLogicForCallInterface__.js.map +0 -1
- package/out/concepts/AuthLogic__.d.ts +0 -67
- package/out/concepts/AuthLogic__.js +0 -219
- package/out/concepts/AuthLogic__.js.map +0 -1
- package/out/concepts/BackendVariable__.d.ts +0 -138
- package/out/concepts/BackendVariable__.js +0 -424
- package/out/concepts/BackendVariable__.js.map +0 -1
- package/out/concepts/Backend__.d.ts +0 -135
- package/out/concepts/Backend__.js +0 -275
- package/out/concepts/Backend__.js.map +0 -1
- package/out/concepts/BatchAssignment__.d.ts +0 -253
- package/out/concepts/BatchAssignment__.js +0 -856
- package/out/concepts/BatchAssignment__.js.map +0 -1
- package/out/concepts/BinaryExpression__.d.ts +0 -72
- package/out/concepts/BinaryExpression__.js +0 -386
- package/out/concepts/BinaryExpression__.js.map +0 -1
- package/out/concepts/BindAttribute__.d.ts +0 -324
- package/out/concepts/BindAttribute__.js +0 -1046
- package/out/concepts/BindAttribute__.js.map +0 -1
- package/out/concepts/BindDirective__.d.ts +0 -163
- package/out/concepts/BindDirective__.js +0 -540
- package/out/concepts/BindDirective__.js.map +0 -1
- package/out/concepts/BindEvent__.d.ts +0 -253
- package/out/concepts/BindEvent__.js +0 -922
- package/out/concepts/BindEvent__.js.map +0 -1
- package/out/concepts/BindStyle__.d.ts +0 -140
- package/out/concepts/BindStyle__.js +0 -433
- package/out/concepts/BindStyle__.js.map +0 -1
- package/out/concepts/BooleanLiteral__.d.ts +0 -36
- package/out/concepts/BooleanLiteral__.js +0 -106
- package/out/concepts/BooleanLiteral__.js.map +0 -1
- package/out/concepts/CallAuthInterface__.d.ts +0 -126
- package/out/concepts/CallAuthInterface__.js +0 -405
- package/out/concepts/CallAuthInterface__.js.map +0 -1
- package/out/concepts/CallConnector__.d.ts +0 -47
- package/out/concepts/CallConnector__.js +0 -264
- package/out/concepts/CallConnector__.js.map +0 -1
- package/out/concepts/CallFunction__.d.ts +0 -159
- package/out/concepts/CallFunction__.js +0 -549
- package/out/concepts/CallFunction__.js.map +0 -1
- package/out/concepts/CallInterface__.d.ts +0 -130
- package/out/concepts/CallInterface__.js +0 -790
- package/out/concepts/CallInterface__.js.map +0 -1
- package/out/concepts/CallLogic__.d.ts +0 -231
- package/out/concepts/CallLogic__.js +0 -1322
- package/out/concepts/CallLogic__.js.map +0 -1
- package/out/concepts/CallQueryComponent__.d.ts +0 -433
- package/out/concepts/CallQueryComponent__.js +0 -1283
- package/out/concepts/CallQueryComponent__.js.map +0 -1
- package/out/concepts/Comment__.d.ts +0 -33
- package/out/concepts/Comment__.js +0 -102
- package/out/concepts/Comment__.js.map +0 -1
- package/out/concepts/CompletionProperty__.d.ts +0 -105
- package/out/concepts/CompletionProperty__.js +0 -269
- package/out/concepts/CompletionProperty__.js.map +0 -1
- package/out/concepts/ConfigGroup__.d.ts +0 -125
- package/out/concepts/ConfigGroup__.js +0 -254
- package/out/concepts/ConfigGroup__.js.map +0 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +0 -45
- package/out/concepts/ConfigPropertyValue__.js +0 -107
- package/out/concepts/ConfigPropertyValue__.js.map +0 -1
- package/out/concepts/ConfigProperty__.d.ts +0 -154
- package/out/concepts/ConfigProperty__.js +0 -325
- package/out/concepts/ConfigProperty__.js.map +0 -1
- package/out/concepts/Configuration__.d.ts +0 -124
- package/out/concepts/Configuration__.js +0 -227
- package/out/concepts/Configuration__.js.map +0 -1
- package/out/concepts/Connection__.d.ts +0 -166
- package/out/concepts/Connection__.js +0 -335
- package/out/concepts/Connection__.js.map +0 -1
- package/out/concepts/ConnectorTrigger__.d.ts +0 -79
- package/out/concepts/ConnectorTrigger__.js +0 -157
- package/out/concepts/ConnectorTrigger__.js.map +0 -1
- package/out/concepts/Connector__.d.ts +0 -570
- package/out/concepts/Connector__.js +0 -856
- package/out/concepts/Connector__.js.map +0 -1
- package/out/concepts/Constant__.d.ts +0 -111
- package/out/concepts/Constant__.js +0 -255
- package/out/concepts/Constant__.js.map +0 -1
- package/out/concepts/DataSource__.d.ts +0 -169
- package/out/concepts/DataSource__.js +0 -465
- package/out/concepts/DataSource__.js.map +0 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +0 -32
- package/out/concepts/DatabaseTypeAnnotation__.js +0 -79
- package/out/concepts/DatabaseTypeAnnotation__.js.map +0 -1
- package/out/concepts/Destination__.d.ts +0 -158
- package/out/concepts/Destination__.js +0 -796
- package/out/concepts/Destination__.js.map +0 -1
- package/out/concepts/End__.d.ts +0 -25
- package/out/concepts/End__.js +0 -114
- package/out/concepts/End__.js.map +0 -1
- package/out/concepts/EntityIndex__.d.ts +0 -96
- package/out/concepts/EntityIndex__.js +0 -221
- package/out/concepts/EntityIndex__.js.map +0 -1
- package/out/concepts/EntityProperty__.d.ts +0 -275
- package/out/concepts/EntityProperty__.js +0 -819
- package/out/concepts/EntityProperty__.js.map +0 -1
- package/out/concepts/Entity__.d.ts +0 -340
- package/out/concepts/Entity__.js +0 -738
- package/out/concepts/Entity__.js.map +0 -1
- package/out/concepts/EnumItem__.d.ts +0 -65
- package/out/concepts/EnumItem__.js +0 -152
- package/out/concepts/EnumItem__.js.map +0 -1
- package/out/concepts/Enum__.d.ts +0 -139
- package/out/concepts/Enum__.js +0 -334
- package/out/concepts/Enum__.js.map +0 -1
- package/out/concepts/Event__.d.ts +0 -144
- package/out/concepts/Event__.js +0 -249
- package/out/concepts/Event__.js.map +0 -1
- package/out/concepts/ExternalDestination__.d.ts +0 -76
- package/out/concepts/ExternalDestination__.js +0 -286
- package/out/concepts/ExternalDestination__.js.map +0 -1
- package/out/concepts/ForEachStatement__.d.ts +0 -171
- package/out/concepts/ForEachStatement__.js +0 -508
- package/out/concepts/ForEachStatement__.js.map +0 -1
- package/out/concepts/FrontendLibrary__.d.ts +0 -214
- package/out/concepts/FrontendLibrary__.js +0 -353
- package/out/concepts/FrontendLibrary__.js.map +0 -1
- package/out/concepts/FrontendVariable__.d.ts +0 -22
- package/out/concepts/FrontendVariable__.js +0 -65
- package/out/concepts/FrontendVariable__.js.map +0 -1
- package/out/concepts/Frontend__.d.ts +0 -478
- package/out/concepts/Frontend__.js +0 -845
- package/out/concepts/Frontend__.js.map +0 -1
- package/out/concepts/Function__.d.ts +0 -418
- package/out/concepts/Function__.js +0 -757
- package/out/concepts/Function__.js.map +0 -1
- package/out/concepts/Identifier__.d.ts +0 -52
- package/out/concepts/Identifier__.js +0 -302
- package/out/concepts/Identifier__.js.map +0 -1
- package/out/concepts/IfStatement__.d.ts +0 -159
- package/out/concepts/IfStatement__.js +0 -333
- package/out/concepts/IfStatement__.js.map +0 -1
- package/out/concepts/Integration__.d.ts +0 -144
- package/out/concepts/Integration__.js +0 -282
- package/out/concepts/Integration__.js.map +0 -1
- package/out/concepts/InterfaceParam__.d.ts +0 -136
- package/out/concepts/InterfaceParam__.js +0 -296
- package/out/concepts/InterfaceParam__.js.map +0 -1
- package/out/concepts/Interface__.d.ts +0 -331
- package/out/concepts/Interface__.js +0 -881
- package/out/concepts/Interface__.js.map +0 -1
- package/out/concepts/JSBlock__.d.ts +0 -35
- package/out/concepts/JSBlock__.js +0 -112
- package/out/concepts/JSBlock__.js.map +0 -1
- package/out/concepts/JavaLogic__.d.ts +0 -43
- package/out/concepts/JavaLogic__.js +0 -124
- package/out/concepts/JavaLogic__.js.map +0 -1
- package/out/concepts/LogicItem__.d.ts +0 -152
- package/out/concepts/LogicItem__.js +0 -286
- package/out/concepts/LogicItem__.js.map +0 -1
- package/out/concepts/Logic__.d.ts +0 -644
- package/out/concepts/Logic__.js +0 -1819
- package/out/concepts/Logic__.js.map +0 -1
- package/out/concepts/MatchCase__.d.ts +0 -259
- package/out/concepts/MatchCase__.js +0 -683
- package/out/concepts/MatchCase__.js.map +0 -1
- package/out/concepts/Match__.d.ts +0 -125
- package/out/concepts/Match__.js +0 -683
- package/out/concepts/Match__.js.map +0 -1
- package/out/concepts/MemberExpression__.d.ts +0 -75
- package/out/concepts/MemberExpression__.js +0 -484
- package/out/concepts/MemberExpression__.js.map +0 -1
- package/out/concepts/MicroApp__.d.ts +0 -52
- package/out/concepts/MicroApp__.js +0 -119
- package/out/concepts/MicroApp__.js.map +0 -1
- package/out/concepts/Module__.d.ts +0 -1236
- package/out/concepts/Module__.js +0 -1692
- package/out/concepts/Module__.js.map +0 -1
- package/out/concepts/MsgTriggerEvent__.d.ts +0 -138
- package/out/concepts/MsgTriggerEvent__.js +0 -227
- package/out/concepts/MsgTriggerEvent__.js.map +0 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +0 -127
- package/out/concepts/MsgTriggerLauncher__.js +0 -222
- package/out/concepts/MsgTriggerLauncher__.js.map +0 -1
- package/out/concepts/Namespace__.d.ts +0 -1070
- package/out/concepts/Namespace__.js +0 -1394
- package/out/concepts/Namespace__.js.map +0 -1
- package/out/concepts/NewComposite__.d.ts +0 -349
- package/out/concepts/NewComposite__.js +0 -1221
- package/out/concepts/NewComposite__.js.map +0 -1
- package/out/concepts/NewList__.d.ts +0 -136
- package/out/concepts/NewList__.js +0 -423
- package/out/concepts/NewList__.js.map +0 -1
- package/out/concepts/NewMap__.d.ts +0 -226
- package/out/concepts/NewMap__.js +0 -550
- package/out/concepts/NewMap__.js.map +0 -1
- package/out/concepts/New__.d.ts +0 -21
- package/out/concepts/New__.js +0 -70
- package/out/concepts/New__.js.map +0 -1
- package/out/concepts/NullLiteral__.d.ts +0 -27
- package/out/concepts/NullLiteral__.js +0 -81
- package/out/concepts/NullLiteral__.js.map +0 -1
- package/out/concepts/NumericLiteral__.d.ts +0 -57
- package/out/concepts/NumericLiteral__.js +0 -180
- package/out/concepts/NumericLiteral__.js.map +0 -1
- package/out/concepts/OqlQueryComponent__.d.ts +0 -74
- package/out/concepts/OqlQueryComponent__.js +0 -335
- package/out/concepts/OqlQueryComponent__.js.map +0 -1
- package/out/concepts/OverriddenLogic__.d.ts +0 -635
- package/out/concepts/OverriddenLogic__.js +0 -1634
- package/out/concepts/OverriddenLogic__.js.map +0 -1
- package/out/concepts/Param__.d.ts +0 -173
- package/out/concepts/Param__.js +0 -489
- package/out/concepts/Param__.js.map +0 -1
- package/out/concepts/Point__.d.ts +0 -32
- package/out/concepts/Point__.js +0 -79
- package/out/concepts/Point__.js.map +0 -1
- package/out/concepts/ProcessComponent__.d.ts +0 -220
- package/out/concepts/ProcessComponent__.js +0 -339
- package/out/concepts/ProcessComponent__.js.map +0 -1
- package/out/concepts/ProcessElement__.d.ts +0 -647
- package/out/concepts/ProcessElement__.js +0 -1227
- package/out/concepts/ProcessElement__.js.map +0 -1
- package/out/concepts/ProcessOutcome__.d.ts +0 -32
- package/out/concepts/ProcessOutcome__.js +0 -90
- package/out/concepts/ProcessOutcome__.js.map +0 -1
- package/out/concepts/ProcessOutcomes__.d.ts +0 -32
- package/out/concepts/ProcessOutcomes__.js +0 -89
- package/out/concepts/ProcessOutcomes__.js.map +0 -1
- package/out/concepts/Process__.d.ts +0 -614
- package/out/concepts/Process__.js +0 -1037
- package/out/concepts/Process__.js.map +0 -1
- package/out/concepts/QueryAggregateExpression__.d.ts +0 -52
- package/out/concepts/QueryAggregateExpression__.js +0 -149
- package/out/concepts/QueryAggregateExpression__.js.map +0 -1
- package/out/concepts/QueryFieldExpression__.d.ts +0 -54
- package/out/concepts/QueryFieldExpression__.js +0 -160
- package/out/concepts/QueryFieldExpression__.js.map +0 -1
- package/out/concepts/QueryFromExpression__.d.ts +0 -99
- package/out/concepts/QueryFromExpression__.js +0 -208
- package/out/concepts/QueryFromExpression__.js.map +0 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +0 -47
- package/out/concepts/QueryGroupByExpression__.js +0 -140
- package/out/concepts/QueryGroupByExpression__.js.map +0 -1
- package/out/concepts/QueryJoinExpression__.d.ts +0 -186
- package/out/concepts/QueryJoinExpression__.js +0 -331
- package/out/concepts/QueryJoinExpression__.js.map +0 -1
- package/out/concepts/QueryLimitExpression__.d.ts +0 -58
- package/out/concepts/QueryLimitExpression__.js +0 -160
- package/out/concepts/QueryLimitExpression__.js.map +0 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +0 -69
- package/out/concepts/QueryOrderByExpression__.js +0 -173
- package/out/concepts/QueryOrderByExpression__.js.map +0 -1
- package/out/concepts/QuerySelectExpression__.d.ts +0 -204
- package/out/concepts/QuerySelectExpression__.js +0 -299
- package/out/concepts/QuerySelectExpression__.js.map +0 -1
- package/out/concepts/Rect__.d.ts +0 -40
- package/out/concepts/Rect__.js +0 -95
- package/out/concepts/Rect__.js.map +0 -1
- package/out/concepts/Return__.d.ts +0 -135
- package/out/concepts/Return__.js +0 -370
- package/out/concepts/Return__.js.map +0 -1
- package/out/concepts/Role__.d.ts +0 -63
- package/out/concepts/Role__.js +0 -169
- package/out/concepts/Role__.js.map +0 -1
- package/out/concepts/SelectMembers__.d.ts +0 -143
- package/out/concepts/SelectMembers__.js +0 -293
- package/out/concepts/SelectMembers__.js.map +0 -1
- package/out/concepts/Slot__.d.ts +0 -75
- package/out/concepts/Slot__.js +0 -165
- package/out/concepts/Slot__.js.map +0 -1
- package/out/concepts/SqlQueryComponent__.d.ts +0 -72
- package/out/concepts/SqlQueryComponent__.js +0 -281
- package/out/concepts/SqlQueryComponent__.js.map +0 -1
- package/out/concepts/Start__.d.ts +0 -25
- package/out/concepts/Start__.js +0 -73
- package/out/concepts/Start__.js.map +0 -1
- package/out/concepts/StringInterpolation__.d.ts +0 -116
- package/out/concepts/StringInterpolation__.js +0 -263
- package/out/concepts/StringInterpolation__.js.map +0 -1
- package/out/concepts/StringLiteral__.d.ts +0 -39
- package/out/concepts/StringLiteral__.js +0 -138
- package/out/concepts/StringLiteral__.js.map +0 -1
- package/out/concepts/StructureProperty__.d.ts +0 -136
- package/out/concepts/StructureProperty__.js +0 -320
- package/out/concepts/StructureProperty__.js.map +0 -1
- package/out/concepts/Structure__.d.ts +0 -248
- package/out/concepts/Structure__.js +0 -475
- package/out/concepts/Structure__.js.map +0 -1
- package/out/concepts/SwitchCase__.d.ts +0 -95
- package/out/concepts/SwitchCase__.js +0 -273
- package/out/concepts/SwitchCase__.js.map +0 -1
- package/out/concepts/SwitchStatement__.d.ts +0 -85
- package/out/concepts/SwitchStatement__.js +0 -200
- package/out/concepts/SwitchStatement__.js.map +0 -1
- package/out/concepts/Theme__.d.ts +0 -38
- package/out/concepts/Theme__.js +0 -88
- package/out/concepts/Theme__.js.map +0 -1
- package/out/concepts/Transactional__.d.ts +0 -88
- package/out/concepts/Transactional__.js +0 -168
- package/out/concepts/Transactional__.js.map +0 -1
- package/out/concepts/TriggerEvent__.d.ts +0 -121
- package/out/concepts/TriggerEvent__.js +0 -224
- package/out/concepts/TriggerEvent__.js.map +0 -1
- package/out/concepts/TriggerLauncher__.d.ts +0 -82
- package/out/concepts/TriggerLauncher__.js +0 -220
- package/out/concepts/TriggerLauncher__.js.map +0 -1
- package/out/concepts/TypeAnnotation__.d.ts +0 -299
- package/out/concepts/TypeAnnotation__.js +0 -995
- package/out/concepts/TypeAnnotation__.js.map +0 -1
- package/out/concepts/TypeParam__.d.ts +0 -26
- package/out/concepts/TypeParam__.js +0 -79
- package/out/concepts/TypeParam__.js.map +0 -1
- package/out/concepts/UnaryExpression__.d.ts +0 -50
- package/out/concepts/UnaryExpression__.js +0 -186
- package/out/concepts/UnaryExpression__.js.map +0 -1
- package/out/concepts/Unparsed__.d.ts +0 -33
- package/out/concepts/Unparsed__.js +0 -100
- package/out/concepts/Unparsed__.js.map +0 -1
- package/out/concepts/UseComponent__.d.ts +0 -32
- package/out/concepts/UseComponent__.js +0 -79
- package/out/concepts/UseComponent__.js.map +0 -1
- package/out/concepts/ValidationRule__.d.ts +0 -148
- package/out/concepts/ValidationRule__.js +0 -489
- package/out/concepts/ValidationRule__.js.map +0 -1
- package/out/concepts/Variable__.d.ts +0 -155
- package/out/concepts/Variable__.js +0 -420
- package/out/concepts/Variable__.js.map +0 -1
- package/out/concepts/ViewBlock__.d.ts +0 -36
- package/out/concepts/ViewBlock__.js +0 -87
- package/out/concepts/ViewBlock__.js.map +0 -1
- package/out/concepts/ViewComponent__.d.ts +0 -566
- package/out/concepts/ViewComponent__.js +0 -762
- package/out/concepts/ViewComponent__.js.map +0 -1
- package/out/concepts/ViewElement__.d.ts +0 -628
- package/out/concepts/ViewElement__.js +0 -2245
- package/out/concepts/ViewElement__.js.map +0 -1
- package/out/concepts/View__.d.ts +0 -723
- package/out/concepts/View__.js +0 -2129
- package/out/concepts/View__.js.map +0 -1
- package/out/concepts/WhileStatement__.d.ts +0 -98
- package/out/concepts/WhileStatement__.js +0 -235
- package/out/concepts/WhileStatement__.js.map +0 -1
- package/out/concepts/basics/stdlib/index.d.ts +0 -4
- package/out/concepts/basics/stdlib/index.js +0 -45
- package/out/concepts/basics/stdlib/index.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.auth.js +0 -164
- package/out/concepts/basics/stdlib/nasl.auth.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.browser.js +0 -149
- package/out/concepts/basics/stdlib/nasl.browser.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.collection.js +0 -52
- package/out/concepts/basics/stdlib/nasl.collection.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.configuration.js +0 -33
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.core.d.ts +0 -5
- package/out/concepts/basics/stdlib/nasl.core.js +0 -49
- package/out/concepts/basics/stdlib/nasl.core.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.event.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.event.js +0 -25
- package/out/concepts/basics/stdlib/nasl.event.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.http.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.http.js +0 -169
- package/out/concepts/basics/stdlib/nasl.http.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.interface.js +0 -43
- package/out/concepts/basics/stdlib/nasl.interface.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.io.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.io.js +0 -52
- package/out/concepts/basics/stdlib/nasl.io.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.logging.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.logging.js +0 -56
- package/out/concepts/basics/stdlib/nasl.logging.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.process.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.process.js +0 -638
- package/out/concepts/basics/stdlib/nasl.process.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +0 -7
- package/out/concepts/basics/stdlib/nasl.ui.js +0 -1063
- package/out/concepts/basics/stdlib/nasl.ui.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.util.d.ts +0 -5
- package/out/concepts/basics/stdlib/nasl.util.js +0 -2255
- package/out/concepts/basics/stdlib/nasl.util.js.map +0 -1
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.validation.js +0 -565
- package/out/concepts/basics/stdlib/nasl.validation.js.map +0 -1
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -5
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +0 -26
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +0 -1
- package/out/concepts/basics/stdlib/timeZone.d.ts +0 -5
- package/out/concepts/basics/stdlib/timeZone.js +0 -196
- package/out/concepts/basics/stdlib/timeZone.js.map +0 -1
- package/out/concepts/basics/types/coreTypeList.d.ts +0 -2
- package/out/concepts/basics/types/coreTypeList.js +0 -15
- package/out/concepts/basics/types/coreTypeList.js.map +0 -1
- package/out/concepts/basics/types/index.d.ts +0 -16
- package/out/concepts/basics/types/index.js +0 -35
- package/out/concepts/basics/types/index.js.map +0 -1
- package/out/concepts/index.d.ts +0 -6
- package/out/concepts/index.js +0 -25
- package/out/concepts/index.js.map +0 -1
- package/out/concepts/index__.d.ts +0 -122
- package/out/concepts/index__.js +0 -139
- package/out/concepts/index__.js.map +0 -1
- package/out/concepts/types__.d.ts +0 -124
- package/out/concepts/types__.js +0 -3
- package/out/concepts/types__.js.map +0 -1
- package/out/config.d.ts +0 -43
- package/out/config.js +0 -72
- package/out/config.js.map +0 -1
- package/out/decorators/index.d.ts +0 -57
- package/out/decorators/index.js +0 -170
- package/out/decorators/index.js.map +0 -1
- package/out/decorators/promise.d.ts +0 -7
- package/out/decorators/promise.js +0 -28
- package/out/decorators/promise.js.map +0 -1
- package/out/enums/KEYWORDS.d.ts +0 -6
- package/out/enums/KEYWORDS.js +0 -1244
- package/out/enums/KEYWORDS.js.map +0 -1
- package/out/enums/LEVEL_NAME_MAP.d.ts +0 -26
- package/out/enums/LEVEL_NAME_MAP.js +0 -30
- package/out/enums/LEVEL_NAME_MAP.js.map +0 -1
- package/out/eventBus.d.ts +0 -3
- package/out/eventBus.js +0 -7
- package/out/eventBus.js.map +0 -1
- package/out/generator/compileComponent.d.ts +0 -11
- package/out/generator/compileComponent.js +0 -12
- package/out/generator/compileComponent.js.map +0 -1
- package/out/generator/genBundleFiles.d.ts +0 -34
- package/out/generator/genBundleFiles.js +0 -547
- package/out/generator/genBundleFiles.js.map +0 -1
- package/out/generator/genHash.d.ts +0 -7
- package/out/generator/genHash.js +0 -39
- package/out/generator/genHash.js.map +0 -1
- package/out/generator/genMetaData.d.ts +0 -31
- package/out/generator/genMetaData.js +0 -286
- package/out/generator/genMetaData.js.map +0 -1
- package/out/generator/genReleaseBody.d.ts +0 -72
- package/out/generator/genReleaseBody.js +0 -322
- package/out/generator/genReleaseBody.js.map +0 -1
- package/out/generator/icestark.d.ts +0 -2
- package/out/generator/icestark.js +0 -48
- package/out/generator/icestark.js.map +0 -1
- package/out/generator/index.d.ts +0 -7
- package/out/generator/index.js +0 -24
- package/out/generator/index.js.map +0 -1
- package/out/generator/microApp.d.ts +0 -2
- package/out/generator/microApp.js +0 -36
- package/out/generator/microApp.js.map +0 -1
- package/out/generator/permission.d.ts +0 -10
- package/out/generator/permission.js +0 -270
- package/out/generator/permission.js.map +0 -1
- package/out/generator/qiankun.d.ts +0 -2
- package/out/generator/qiankun.js +0 -52
- package/out/generator/qiankun.js.map +0 -1
- package/out/generator/styleReplacer.d.ts +0 -3
- package/out/generator/styleReplacer.js +0 -68
- package/out/generator/styleReplacer.js.map +0 -1
- package/out/index.d.ts +0 -13
- package/out/index.js +0 -67
- package/out/index.js.map +0 -1
- package/out/manager/diagnostic.d.ts +0 -35
- package/out/manager/diagnostic.js +0 -63
- package/out/manager/diagnostic.js.map +0 -1
- package/out/manager/stepRecorder.d.ts +0 -20
- package/out/manager/stepRecorder.js +0 -114
- package/out/manager/stepRecorder.js.map +0 -1
- package/out/natural/componentData.d.ts +0 -31
- package/out/natural/componentData.js +0 -85
- package/out/natural/componentData.js.map +0 -1
- package/out/natural/genNaturalTS.d.ts +0 -3
- package/out/natural/genNaturalTS.js +0 -90
- package/out/natural/genNaturalTS.js.map +0 -1
- package/out/natural/index.d.ts +0 -2
- package/out/natural/index.js +0 -19
- package/out/natural/index.js.map +0 -1
- package/out/natural/naslStdlibMap.d.ts +0 -2
- package/out/natural/naslStdlibMap.js +0 -26
- package/out/natural/naslStdlibMap.js.map +0 -1
- package/out/natural/transformTSCode.d.ts +0 -7
- package/out/natural/transformTSCode.js +0 -920
- package/out/natural/transformTSCode.js.map +0 -1
- package/out/sentry/index.d.ts +0 -34
- package/out/sentry/index.js +0 -148
- package/out/sentry/index.js.map +0 -1
- package/out/server/createUiTs.d.ts +0 -16
- package/out/server/createUiTs.js +0 -296
- package/out/server/createUiTs.js.map +0 -1
- package/out/server/entity2LogicNamespace.d.ts +0 -10
- package/out/server/entity2LogicNamespace.js +0 -382
- package/out/server/entity2LogicNamespace.js.map +0 -1
- package/out/server/event.d.ts +0 -30
- package/out/server/event.js +0 -151
- package/out/server/event.js.map +0 -1
- package/out/server/extendBaseNode.d.ts +0 -1
- package/out/server/extendBaseNode.js +0 -544
- package/out/server/extendBaseNode.js.map +0 -1
- package/out/server/formatTsUtils.d.ts +0 -37
- package/out/server/formatTsUtils.js +0 -852
- package/out/server/formatTsUtils.js.map +0 -1
- package/out/server/getConnector.d.ts +0 -14
- package/out/server/getConnector.js +0 -78
- package/out/server/getConnector.js.map +0 -1
- package/out/server/getExtensionModules.d.ts +0 -3
- package/out/server/getExtensionModules.js +0 -34
- package/out/server/getExtensionModules.js.map +0 -1
- package/out/server/getFunctions.d.ts +0 -3
- package/out/server/getFunctions.js +0 -20
- package/out/server/getFunctions.js.map +0 -1
- package/out/server/getInterfaces.d.ts +0 -2
- package/out/server/getInterfaces.js +0 -48
- package/out/server/getInterfaces.js.map +0 -1
- package/out/server/getLogging.d.ts +0 -1
- package/out/server/getLogging.js +0 -9
- package/out/server/getLogging.js.map +0 -1
- package/out/server/getLogics.d.ts +0 -4
- package/out/server/getLogics.js +0 -381
- package/out/server/getLogics.js.map +0 -1
- package/out/server/getMemberIdentifier.d.ts +0 -17
- package/out/server/getMemberIdentifier.js +0 -482
- package/out/server/getMemberIdentifier.js.map +0 -1
- package/out/server/getProcessComponents.d.ts +0 -2
- package/out/server/getProcessComponents.js +0 -13
- package/out/server/getProcessComponents.js.map +0 -1
- package/out/server/getProcesses.d.ts +0 -33
- package/out/server/getProcesses.js +0 -597
- package/out/server/getProcesses.js.map +0 -1
- package/out/server/getScope.d.ts +0 -13
- package/out/server/getScope.js +0 -61
- package/out/server/getScope.js.map +0 -1
- package/out/server/getValidates.d.ts +0 -3
- package/out/server/getValidates.js +0 -14
- package/out/server/getValidates.js.map +0 -1
- package/out/server/index.d.ts +0 -5
- package/out/server/index.js +0 -42
- package/out/server/index.js.map +0 -1
- package/out/server/naslServer.d.ts +0 -381
- package/out/server/naslServer.js +0 -4591
- package/out/server/naslServer.js.map +0 -1
- package/out/server/naslStdlibMap.d.ts +0 -2
- package/out/server/naslStdlibMap.js +0 -54
- package/out/server/naslStdlibMap.js.map +0 -1
- package/out/server/process2LogicNamespace.d.ts +0 -26
- package/out/server/process2LogicNamespace.js +0 -109
- package/out/server/process2LogicNamespace.js.map +0 -1
- package/out/server/translator.d.ts +0 -26
- package/out/server/translator.js +0 -806
- package/out/server/translator.js.map +0 -1
- package/out/service/creator/add.configs.d.ts +0 -1
- package/out/service/creator/add.configs.js +0 -103
- package/out/service/creator/add.configs.js.map +0 -1
- package/out/service/creator/errHandles.d.ts +0 -18
- package/out/service/creator/errHandles.js +0 -68
- package/out/service/creator/errHandles.js.map +0 -1
- package/out/service/creator/index.d.ts +0 -1
- package/out/service/creator/index.js +0 -87
- package/out/service/creator/index.js.map +0 -1
- package/out/service/datasource/api.d.ts +0 -12
- package/out/service/datasource/api.js +0 -14
- package/out/service/datasource/api.js.map +0 -1
- package/out/service/datasource/index.d.ts +0 -2
- package/out/service/datasource/index.js +0 -10
- package/out/service/datasource/index.js.map +0 -1
- package/out/service/defaultErrorMessage.json +0 -98
- 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/checktypeSocket.d.ts +0 -5
- package/out/service/logic/checktypeSocket.js +0 -55
- package/out/service/logic/checktypeSocket.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/out/service/storage/api.d.ts +0 -54
- package/out/service/storage/api.js +0 -42
- package/out/service/storage/api.js.map +0 -1
- package/out/service/storage/index.d.ts +0 -2
- package/out/service/storage/index.js +0 -10
- package/out/service/storage/index.js.map +0 -1
- package/out/service/storage/init.d.ts +0 -102
- package/out/service/storage/init.js +0 -1126
- package/out/service/storage/init.js.map +0 -1
- package/out/service/storage/jsoner.d.ts +0 -36
- package/out/service/storage/jsoner.js +0 -129
- package/out/service/storage/jsoner.js.map +0 -1
- package/out/service/storage/map.d.ts +0 -4
- package/out/service/storage/map.js +0 -54
- package/out/service/storage/map.js.map +0 -1
- package/out/service/storage/service.d.ts +0 -25
- package/out/service/storage/service.js +0 -80
- package/out/service/storage/service.js.map +0 -1
- package/out/service/storage/storagePoint.d.ts +0 -17
- package/out/service/storage/storagePoint.js +0 -76
- package/out/service/storage/storagePoint.js.map +0 -1
- package/out/service/video/BaseService.d.ts +0 -7
- package/out/service/video/BaseService.js +0 -61
- package/out/service/video/BaseService.js.map +0 -1
- package/out/service/video/MainCallbackService.d.ts +0 -12
- package/out/service/video/MainCallbackService.js +0 -183
- package/out/service/video/MainCallbackService.js.map +0 -1
- package/out/service/video/VideoTranscribe.d.ts +0 -15
- package/out/service/video/VideoTranscribe.js +0 -96
- package/out/service/video/VideoTranscribe.js.map +0 -1
- package/out/service/video/publishService.d.ts +0 -1
- package/out/service/video/publishService.js +0 -58
- package/out/service/video/publishService.js.map +0 -1
- package/out/templator/genCallComponentLogic.d.ts +0 -17
- package/out/templator/genCallComponentLogic.js +0 -29
- package/out/templator/genCallComponentLogic.js.map +0 -1
- package/out/templator/genCreateBlock.d.ts +0 -10
- package/out/templator/genCreateBlock.js +0 -343
- package/out/templator/genCreateBlock.js.map +0 -1
- package/out/templator/genCurdEditMultipleKeyBlock.d.ts +0 -8
- package/out/templator/genCurdEditMultipleKeyBlock.js +0 -527
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +0 -1
- package/out/templator/genCurdMultipleKeyBlock.d.ts +0 -34
- package/out/templator/genCurdMultipleKeyBlock.js +0 -704
- package/out/templator/genCurdMultipleKeyBlock.js.map +0 -1
- package/out/templator/genEditTableBlock.d.ts +0 -51
- package/out/templator/genEditTableBlock.js +0 -326
- package/out/templator/genEditTableBlock.js.map +0 -1
- package/out/templator/genEnumSelectBlock.d.ts +0 -10
- package/out/templator/genEnumSelectBlock.js +0 -26
- package/out/templator/genEnumSelectBlock.js.map +0 -1
- package/out/templator/genGetBlock.d.ts +0 -6
- package/out/templator/genGetBlock.js +0 -138
- package/out/templator/genGetBlock.js.map +0 -1
- package/out/templator/genGridViewBlock.d.ts +0 -55
- package/out/templator/genGridViewBlock.js +0 -359
- package/out/templator/genGridViewBlock.js.map +0 -1
- package/out/templator/genListViewBlock.d.ts +0 -19
- package/out/templator/genListViewBlock.js +0 -148
- package/out/templator/genListViewBlock.js.map +0 -1
- package/out/templator/genQueryComponent.d.ts +0 -34
- package/out/templator/genQueryComponent.js +0 -349
- package/out/templator/genQueryComponent.js.map +0 -1
- package/out/templator/genSelectBlock.d.ts +0 -45
- package/out/templator/genSelectBlock.js +0 -388
- package/out/templator/genSelectBlock.js.map +0 -1
- package/out/templator/genTableBlock.d.ts +0 -53
- package/out/templator/genTableBlock.js +0 -304
- package/out/templator/genTableBlock.js.map +0 -1
- package/out/templator/genUpdateBlock.d.ts +0 -6
- package/out/templator/genUpdateBlock.js +0 -385
- package/out/templator/genUpdateBlock.js.map +0 -1
- package/out/templator/index.d.ts +0 -19
- package/out/templator/index.js +0 -38
- package/out/templator/index.js.map +0 -1
- package/out/templator/utils.d.ts +0 -683
- package/out/templator/utils.js +0 -459
- package/out/templator/utils.js.map +0 -1
- package/out/translator/constant.d.ts +0 -6
- package/out/translator/constant.js +0 -10
- package/out/translator/constant.js.map +0 -1
- package/out/translator/index.d.ts +0 -3
- package/out/translator/index.js +0 -20
- package/out/translator/index.js.map +0 -1
- package/out/translator/types.d.ts +0 -33
- package/out/translator/types.js +0 -3
- package/out/translator/types.js.map +0 -1
- package/out/translator/utils.d.ts +0 -17
- package/out/translator/utils.js +0 -111
- package/out/translator/utils.js.map +0 -1
- package/out/utils/cookie.d.ts +0 -9
- package/out/utils/cookie.js +0 -62
- package/out/utils/cookie.js.map +0 -1
- package/out/utils/env.d.ts +0 -2
- package/out/utils/env.js +0 -6
- package/out/utils/env.js.map +0 -1
- package/out/utils/index.d.ts +0 -44
- package/out/utils/index.js +0 -201
- package/out/utils/index.js.map +0 -1
- package/out/utils/logger.d.ts +0 -7
- package/out/utils/logger.js +0 -23
- package/out/utils/logger.js.map +0 -1
- package/out/utils/sortTsString.d.ts +0 -1
- package/out/utils/sortTsString.js +0 -38
- package/out/utils/sortTsString.js.map +0 -1
- package/out/utils/string.d.ts +0 -51
- package/out/utils/string.js +0 -107
- package/out/utils/string.js.map +0 -1
- package/out/utils/time-slicing.d.ts +0 -41
- package/out/utils/time-slicing.js +0 -82
- package/out/utils/time-slicing.js.map +0 -1
- package/out/utils/traverse.d.ts +0 -36
- package/out/utils/traverse.js +0 -143
- package/out/utils/traverse.js.map +0 -1
- package/out/utils/types.d.ts +0 -1
- package/out/utils/types.js +0 -3
- package/out/utils/types.js.map +0 -1
- package/out/utils/window.d.ts +0 -7
- package/out/utils/window.js +0 -14
- package/out/utils/window.js.map +0 -1
|
@@ -164,7 +164,7 @@ async function findResourcesOfLogic(logic: Logic, uploaders: Map<string, ViewEle
|
|
|
164
164
|
UIs = UIs.concat(await findUIReferences(logic));
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
const service = logic.toService() as { url: { method: string; path: string } };
|
|
167
|
+
const service = logic.toService() as { url: { method: string; path: string; }; };
|
|
168
168
|
if (uploaders.has(service.url.path)) {
|
|
169
169
|
UIs = UIs.concat(uploaders.get(service.url.path));
|
|
170
170
|
}
|
|
@@ -234,21 +234,44 @@ function getAllLogics(app: App) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
function findUploaders(app: App) {
|
|
237
|
-
const
|
|
237
|
+
const uploaders = new Map<string, ViewElement[]>();
|
|
238
|
+
const callLogicUploadList = new Map<string, any>();
|
|
239
|
+
let callLogicUploadFlag = false;
|
|
238
240
|
app.traverseChildren((node) => {
|
|
239
241
|
if (node instanceof ViewElement && node.tag?.includes('uploader')) {
|
|
240
242
|
const urlAttr = node.bindAttrs.find((item) => item.name === 'url');
|
|
241
243
|
const url = urlAttr?.value;
|
|
242
244
|
if (url) {
|
|
243
|
-
if (!
|
|
244
|
-
else
|
|
245
|
+
if (!uploaders.has(url)) uploaders.set(url, [node]);
|
|
246
|
+
else uploaders.get(url).push(node);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
if (node instanceof CallLogic && node?.calleeName?.includes('downloadFile') && node?.calleeNamespace === 'nasl.io' && !callLogicUploadFlag) {
|
|
250
|
+
const viewElement = node?.getAncestor('ViewElement');
|
|
251
|
+
const view = node?.getAncestor('View');
|
|
252
|
+
// ViewElement 权限优先
|
|
253
|
+
if (viewElement instanceof ViewElement && viewElement?.auth) {
|
|
254
|
+
callLogicUploadList.set(viewElement?.authPath, [{
|
|
255
|
+
type: 'component',
|
|
256
|
+
path: viewElement?.authPath
|
|
257
|
+
}]);
|
|
258
|
+
} else if (view instanceof View && view?.auth) {
|
|
259
|
+
callLogicUploadList.set(view?.authPath, [{
|
|
260
|
+
type: 'page',
|
|
261
|
+
path: view?.authPath
|
|
262
|
+
}]);
|
|
263
|
+
} else {
|
|
264
|
+
// 如果开启权限和未开启权限都有,以未开启权限为准,清空 map,设置为 [[]]
|
|
265
|
+
callLogicUploadFlag = true;
|
|
266
|
+
callLogicUploadList.clear()
|
|
245
267
|
}
|
|
246
268
|
}
|
|
247
269
|
});
|
|
248
|
-
return
|
|
270
|
+
return { uploaders, callLogicUploadList: callLogicUploadList.size === 0 ? [[]] : Array.from(callLogicUploadList.values()) };
|
|
249
271
|
}
|
|
272
|
+
|
|
250
273
|
function checkUploadAuth(uploaders: Map<string, ViewElement[]>) {
|
|
251
|
-
const res: { key: string; authValue: ResourceNode[] }[] = [];
|
|
274
|
+
const res: { key: string; authValue: ResourceNode[]; }[] = [];
|
|
252
275
|
// 如果开启控制权限-component,没开启权限-page
|
|
253
276
|
uploaders.forEach((value, key) => {
|
|
254
277
|
const authValue: ResourceNode[] = [];
|
|
@@ -282,13 +305,13 @@ function convertArray(arr: ResourceNode[]) {
|
|
|
282
305
|
export async function genPermissionData(app: App) {
|
|
283
306
|
// console.time('xxx');
|
|
284
307
|
openCache();
|
|
285
|
-
const logicPageResourceDtoList: { [key: string]: ResourceNode[][] } = {};
|
|
308
|
+
const logicPageResourceDtoList: { [key: string]: ResourceNode[][]; } = {};
|
|
286
309
|
const { logics, processLogics } = getAllLogics(app);
|
|
287
|
-
const uploaders = findUploaders(app);
|
|
310
|
+
const { uploaders, callLogicUploadList } = findUploaders(app);
|
|
288
311
|
for (const logic of [...logics, ...processLogics]) {
|
|
289
312
|
const resources = await findResourcesOfLogic(logic, uploaders);
|
|
290
313
|
if (resources.length === 0) continue;
|
|
291
|
-
const service = logics.includes(logic) ? logic.toService() : (logic.toProcessService() as { url: { method: string; path: string } });
|
|
314
|
+
const service = logics.includes(logic) ? logic.toService() : (logic.toProcessService() as { url: { method: string; path: string; }; });
|
|
292
315
|
const key = `${service.url.path}:${service.url.method}`;
|
|
293
316
|
logicPageResourceDtoList[key] = resources;
|
|
294
317
|
}
|
|
@@ -301,6 +324,7 @@ export async function genPermissionData(app: App) {
|
|
|
301
324
|
}
|
|
302
325
|
});
|
|
303
326
|
}
|
|
327
|
+
logicPageResourceDtoList['/upload/download_files:POST'] = callLogicUploadList;
|
|
304
328
|
closeCache();
|
|
305
329
|
// console.timeEnd('xxx');
|
|
306
330
|
return logicPageResourceDtoList;
|
package/src/sentry/index.ts
CHANGED
|
@@ -142,13 +142,15 @@ export const sentryMonitor: Monitor = (key) => (SourceClass) => {
|
|
|
142
142
|
constructor(...params: any[]) {
|
|
143
143
|
super(...params);
|
|
144
144
|
|
|
145
|
-
fireListeners(key)({
|
|
145
|
+
const effect = fireListeners(key)({
|
|
146
146
|
hook: CONSTRUCTOR_HOOK,
|
|
147
147
|
name: 'constructor',
|
|
148
148
|
instance: this,
|
|
149
149
|
result: this,
|
|
150
150
|
params,
|
|
151
151
|
});
|
|
152
|
+
|
|
153
|
+
effect && effect();
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
Connector,
|
|
24
24
|
MsgTriggerLauncher,
|
|
25
25
|
Connection,
|
|
26
|
+
MetadataType
|
|
26
27
|
} from '../concepts';
|
|
27
28
|
import { EventPayload, invokeCommand, registerCommand } from '../common';
|
|
28
29
|
import { getNodeByNodeCallee, getNaslNodeByNodeCallee } from '../automate/engine/utils';
|
|
@@ -263,7 +264,7 @@ BaseNode.prototype.prepareDelete = async function prepareDelete(cb?: Function) {
|
|
|
263
264
|
return;
|
|
264
265
|
}
|
|
265
266
|
// Structure 和 Interface是内部有delete方法
|
|
266
|
-
if (node instanceof Structure || node instanceof Interface) {
|
|
267
|
+
if (node instanceof Structure || node instanceof Interface || node instanceof MetadataType) {
|
|
267
268
|
(this as any).deleteLogincAndModule();
|
|
268
269
|
} else if (node instanceof Connection) {
|
|
269
270
|
delConnection(node);
|
|
@@ -303,7 +303,7 @@ export async function getVariableIdentifier(node: SynatxNode): Promise<Completio
|
|
|
303
303
|
export async function getGlobalVariableIdentifier(node: BaseNode): Promise<CompletionProperty[]> {
|
|
304
304
|
let globalVariable: CompletionProperty[] = [];
|
|
305
305
|
// 公共变量修改
|
|
306
|
-
if ((node as any).view) {
|
|
306
|
+
if ((node as any).view || (node as any).frontend) {
|
|
307
307
|
globalVariable = formatGlobalVariable();
|
|
308
308
|
// globalVariable = [];
|
|
309
309
|
}
|
|
@@ -355,123 +355,124 @@ export function getConfigsIdentifier(node: BaseNode): CompletionProperty[] {
|
|
|
355
355
|
}
|
|
356
356
|
function flatElements(elements: ViewElement[], componentList: CompletionProperty[], nodeParentElement: string, currentAttriBute: string) {
|
|
357
357
|
elements?.forEach((item) => {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
} else {
|
|
374
|
-
return true
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
})
|
|
378
|
-
attrsList.forEach((attr) => {
|
|
379
|
-
const currentAttrInfo = PAGE_COMPONENT_INCLUDE_TAG_MAP[ item.tag]?.[attr.name]
|
|
380
|
-
if (attr.name !== 'sorting') {
|
|
381
|
-
const stashAttr: any = {
|
|
382
|
-
...attr,
|
|
383
|
-
name: attr.name,
|
|
384
|
-
value: `${item.name}.${attr.name}`,
|
|
385
|
-
expression: new MemberExpression({
|
|
386
|
-
object: stashItem.expression,
|
|
387
|
-
property: new Identifier({
|
|
388
|
-
name: currentAttrInfo.value,
|
|
389
|
-
namespace: attr.name
|
|
390
|
-
}),
|
|
391
|
-
}),
|
|
392
|
-
};
|
|
393
|
-
const completionProperty = new CompletionProperty(stashAttr);
|
|
394
|
-
completionProperty.name = currentAttrInfo ? `${currentAttrInfo.value}(${currentAttrInfo.label})` : attr.name;
|
|
395
|
-
completionProperty.icon = 'attr'
|
|
396
|
-
stashItem.children.push(completionProperty)
|
|
397
|
-
}
|
|
398
|
-
})
|
|
399
|
-
if (['u-select', 'van-pickerson'].includes(item.tag)) {
|
|
400
|
-
const pageAttr: any = {
|
|
401
|
-
name: 'page-number',
|
|
402
|
-
value: `${item.name}.page-number`,
|
|
403
|
-
expression: new MemberExpression({
|
|
404
|
-
object: stashItem.expression,
|
|
405
|
-
property: new Identifier({
|
|
406
|
-
name: 'page',
|
|
407
|
-
namespace: 'page-number'
|
|
408
|
-
}),
|
|
409
|
-
}),
|
|
410
|
-
};
|
|
411
|
-
const completionProperty = new CompletionProperty(pageAttr);
|
|
412
|
-
completionProperty.name = 'page(当前页数)';
|
|
413
|
-
completionProperty.icon = 'attr'
|
|
414
|
-
stashItem.children.push(completionProperty)
|
|
415
|
-
const filterAttr: any = {
|
|
416
|
-
name: 'filterText',
|
|
417
|
-
value: `${item.name}.filterText`,
|
|
418
|
-
expression: new MemberExpression({
|
|
419
|
-
object: stashItem.expression,
|
|
420
|
-
property: new Identifier({
|
|
421
|
-
name: 'filterText',
|
|
422
|
-
namespace: 'filterText'
|
|
423
|
-
}),
|
|
424
|
-
}),
|
|
425
|
-
};
|
|
426
|
-
const filterTextCompletionProperty = new CompletionProperty(filterAttr);
|
|
427
|
-
filterTextCompletionProperty.name = 'filterText(过滤文本)';
|
|
428
|
-
filterTextCompletionProperty.icon = 'attr'
|
|
429
|
-
stashItem.children.push(filterTextCompletionProperty)
|
|
430
|
-
} else if (['u-list-view', 'u-grid-view', 'u-table-view', 'van-list-view', 'van-grid-view'].includes(item.tag)) {
|
|
431
|
-
const sortAttr: any = {
|
|
432
|
-
name: 'sort',
|
|
433
|
-
value: `${item.name}.sort`,
|
|
434
|
-
expression: new MemberExpression({
|
|
435
|
-
object: stashItem.expression,
|
|
436
|
-
property: new Identifier({
|
|
437
|
-
name: 'sort',
|
|
438
|
-
namespace: 'sorting.field'
|
|
439
|
-
}),
|
|
440
|
-
}),
|
|
441
|
-
};
|
|
442
|
-
const sortCompletionProperty = new CompletionProperty(sortAttr);
|
|
443
|
-
sortCompletionProperty.name = 'sort(排序属性)';
|
|
444
|
-
sortCompletionProperty.icon = 'attr'
|
|
445
|
-
stashItem.children.push(sortCompletionProperty)
|
|
446
|
-
const orderAttr: any = {
|
|
447
|
-
name: 'order',
|
|
448
|
-
value: `${item.name}.order`,
|
|
449
|
-
expression: new MemberExpression({
|
|
450
|
-
object: stashItem.expression,
|
|
451
|
-
property: new Identifier({
|
|
452
|
-
name: 'order',
|
|
453
|
-
namespace: 'sorting.order'
|
|
454
|
-
}),
|
|
455
|
-
}),
|
|
456
|
-
};
|
|
457
|
-
const orderCompletionProperty = new CompletionProperty(orderAttr);
|
|
458
|
-
orderCompletionProperty.name = 'order(排序顺序)';
|
|
459
|
-
orderCompletionProperty.icon = 'attr'
|
|
460
|
-
stashItem.children.push(orderCompletionProperty)
|
|
461
|
-
}
|
|
462
|
-
const completionProperty = new CompletionProperty(stashItem);
|
|
463
|
-
completionProperty.icon = 'element';
|
|
464
|
-
if (current) {
|
|
465
|
-
componentList.unshift(completionProperty)
|
|
358
|
+
if (PAGE_COMPONENT_INCLUDE_TAG_MAP?.[item.tag]) {
|
|
359
|
+
const current = item.name === nodeParentElement
|
|
360
|
+
const stashItem: any = {
|
|
361
|
+
name: `${item.name}${current ? '(当前组件)' : ''}`,
|
|
362
|
+
value: item.name,
|
|
363
|
+
expression: new Identifier({
|
|
364
|
+
name: current ? '当前组件' : item.name,
|
|
365
|
+
namespace: `elements.${current ? '$ce' : item.name}.property`
|
|
366
|
+
}),
|
|
367
|
+
children: [],
|
|
368
|
+
};
|
|
369
|
+
const attrsList = item.bindAttrs.filter((attr) => {
|
|
370
|
+
if (PAGE_COMPONENT_INCLUDE_TAG_MAP[item.tag]?.[attr.name]) {
|
|
371
|
+
if (current && attr.name === currentAttriBute) {
|
|
372
|
+
return false
|
|
466
373
|
} else {
|
|
467
|
-
|
|
374
|
+
return true
|
|
468
375
|
}
|
|
376
|
+
}
|
|
377
|
+
})
|
|
378
|
+
attrsList.forEach((attr) => {
|
|
379
|
+
const currentAttrInfo = PAGE_COMPONENT_INCLUDE_TAG_MAP[item.tag]?.[attr.name]
|
|
380
|
+
if (attr.name !== 'sorting') {
|
|
381
|
+
const stashAttr: any = {
|
|
382
|
+
...attr,
|
|
383
|
+
name: attr.name,
|
|
384
|
+
value: `${item.name}.${attr.name}`,
|
|
385
|
+
expression: new MemberExpression({
|
|
386
|
+
object: stashItem.expression,
|
|
387
|
+
property: new Identifier({
|
|
388
|
+
name: currentAttrInfo.value,
|
|
389
|
+
namespace: attr.name
|
|
390
|
+
}),
|
|
391
|
+
}),
|
|
392
|
+
};
|
|
393
|
+
const completionProperty = new CompletionProperty(stashAttr);
|
|
394
|
+
completionProperty.name = currentAttrInfo ? `${currentAttrInfo.value}(${currentAttrInfo.label})` : attr.name;
|
|
395
|
+
completionProperty.icon = 'attr'
|
|
396
|
+
stashItem.children.push(completionProperty)
|
|
397
|
+
}
|
|
398
|
+
})
|
|
399
|
+
if (['u-select', 'van-pickerson'].includes(item.tag)) {
|
|
400
|
+
const pageAttr: any = {
|
|
401
|
+
name: 'page-number',
|
|
402
|
+
value: `${item.name}.page-number`,
|
|
403
|
+
expression: new MemberExpression({
|
|
404
|
+
object: stashItem.expression,
|
|
405
|
+
property: new Identifier({
|
|
406
|
+
name: 'page',
|
|
407
|
+
namespace: 'page-number'
|
|
408
|
+
}),
|
|
409
|
+
}),
|
|
410
|
+
};
|
|
411
|
+
const completionProperty = new CompletionProperty(pageAttr);
|
|
412
|
+
completionProperty.name = 'page(当前页数)';
|
|
413
|
+
completionProperty.icon = 'attr'
|
|
414
|
+
stashItem.children.push(completionProperty)
|
|
415
|
+
const filterAttr: any = {
|
|
416
|
+
name: 'filterText',
|
|
417
|
+
value: `${item.name}.filterText`,
|
|
418
|
+
expression: new MemberExpression({
|
|
419
|
+
object: stashItem.expression,
|
|
420
|
+
property: new Identifier({
|
|
421
|
+
name: 'filterText',
|
|
422
|
+
namespace: 'filterText'
|
|
423
|
+
}),
|
|
424
|
+
}),
|
|
425
|
+
};
|
|
426
|
+
const filterTextCompletionProperty = new CompletionProperty(filterAttr);
|
|
427
|
+
filterTextCompletionProperty.name = 'filterText(过滤文本)';
|
|
428
|
+
filterTextCompletionProperty.icon = 'attr'
|
|
429
|
+
stashItem.children.push(filterTextCompletionProperty)
|
|
430
|
+
} else if (['u-list-view', 'u-grid-view', 'u-table-view', 'van-list-view', 'van-grid-view'].includes(item.tag)) {
|
|
431
|
+
const sortAttr: any = {
|
|
432
|
+
name: 'sort',
|
|
433
|
+
value: `${item.name}.sort`,
|
|
434
|
+
expression: new MemberExpression({
|
|
435
|
+
object: stashItem.expression,
|
|
436
|
+
property: new Identifier({
|
|
437
|
+
name: 'sort',
|
|
438
|
+
namespace: 'sorting.field'
|
|
439
|
+
}),
|
|
440
|
+
}),
|
|
441
|
+
};
|
|
442
|
+
const sortCompletionProperty = new CompletionProperty(sortAttr);
|
|
443
|
+
sortCompletionProperty.name = 'sort(排序属性)';
|
|
444
|
+
sortCompletionProperty.icon = 'attr'
|
|
445
|
+
stashItem.children.push(sortCompletionProperty)
|
|
446
|
+
const orderAttr: any = {
|
|
447
|
+
name: 'order',
|
|
448
|
+
value: `${item.name}.order`,
|
|
449
|
+
expression: new MemberExpression({
|
|
450
|
+
object: stashItem.expression,
|
|
451
|
+
property: new Identifier({
|
|
452
|
+
name: 'order',
|
|
453
|
+
namespace: 'sorting.order'
|
|
454
|
+
}),
|
|
455
|
+
}),
|
|
456
|
+
};
|
|
457
|
+
const orderCompletionProperty = new CompletionProperty(orderAttr);
|
|
458
|
+
orderCompletionProperty.name = 'order(排序顺序)';
|
|
459
|
+
orderCompletionProperty.icon = 'attr'
|
|
460
|
+
stashItem.children.push(orderCompletionProperty)
|
|
469
461
|
}
|
|
470
|
-
|
|
471
|
-
|
|
462
|
+
const completionProperty = new CompletionProperty(stashItem);
|
|
463
|
+
completionProperty.icon = 'element';
|
|
464
|
+
if (current) {
|
|
465
|
+
componentList.unshift(completionProperty)
|
|
466
|
+
} else {
|
|
467
|
+
componentList.push(completionProperty)
|
|
472
468
|
}
|
|
469
|
+
}
|
|
470
|
+
if (item.children.length > 0) {
|
|
471
|
+
flatElements(item.children, componentList, nodeParentElement, currentAttriBute)
|
|
472
|
+
}
|
|
473
473
|
})
|
|
474
474
|
}
|
|
475
|
+
|
|
475
476
|
// 获取页面组件
|
|
476
477
|
export function getPageComponentsIdentifier(node: SynatxNode): CompletionProperty[] {
|
|
477
478
|
const { fileNode } = node.getCurrentSource();
|
|
@@ -486,22 +487,22 @@ export function getPageComponentsIdentifier(node: SynatxNode): CompletionPropert
|
|
|
486
487
|
function getCurrentElement(item: any): ViewElement | undefined {
|
|
487
488
|
if (!item?.parentNode) return undefined
|
|
488
489
|
if (item.parentNode?.concept === 'ViewElement') {
|
|
489
|
-
|
|
490
|
+
return item.parentNode
|
|
490
491
|
} else if (item.parentNode?.concept === 'View') {
|
|
491
|
-
|
|
492
|
+
return undefined
|
|
492
493
|
} else {
|
|
493
|
-
|
|
494
|
+
return getCurrentElement(item.parentNode)
|
|
494
495
|
}
|
|
495
496
|
}
|
|
496
497
|
|
|
497
498
|
function getCurrentAttriBute(item: any): BindAttribute | undefined {
|
|
498
499
|
if (item.concept === 'BindAttribute') {
|
|
499
|
-
|
|
500
|
+
return item
|
|
500
501
|
} else {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
502
|
+
if (item?.parentNode && item.parentNode?.concept !== 'View') {
|
|
503
|
+
return getCurrentAttriBute(item.parentNode)
|
|
504
|
+
} else {
|
|
505
|
+
return undefined
|
|
506
|
+
}
|
|
506
507
|
}
|
|
507
508
|
}
|
package/src/server/naslServer.ts
CHANGED
|
@@ -84,6 +84,7 @@ import {
|
|
|
84
84
|
Connection,
|
|
85
85
|
TriggerLauncher,
|
|
86
86
|
CallConnector,
|
|
87
|
+
MetadataType
|
|
87
88
|
} from '../concepts';
|
|
88
89
|
|
|
89
90
|
import { lsp2tspNumber, SourceMap, SourceMapItem, isSameRange } from '../translator';
|
|
@@ -391,6 +392,15 @@ class NaslServer {
|
|
|
391
392
|
this.file2NodeMap.set(result.filePath, structure);
|
|
392
393
|
} catch (err) {}
|
|
393
394
|
});
|
|
395
|
+
module.metadataTypes?.forEach((metadataType) => {
|
|
396
|
+
try {
|
|
397
|
+
const result = metadataType.toEmbeddedTSFile();
|
|
398
|
+
results.push(result);
|
|
399
|
+
// sourceMap都存在目录级别内容下,在页面层级下去找
|
|
400
|
+
metadataType.sourceMap = result.sourceMap;
|
|
401
|
+
this.file2NodeMap.set(result.filePath, metadataType);
|
|
402
|
+
} catch (err) {}
|
|
403
|
+
});
|
|
394
404
|
if (module instanceof App) {
|
|
395
405
|
module.overriddenLogics?.forEach?.((logic) => {
|
|
396
406
|
try {
|
|
@@ -1778,6 +1788,20 @@ class NaslServer {
|
|
|
1778
1788
|
node.tsErrorDetail = diagnostic;
|
|
1779
1789
|
diagnostics.push(diagnostic);
|
|
1780
1790
|
}
|
|
1791
|
+
const fileSourceCode = this.getNodeCode(fileNode, value);
|
|
1792
|
+
if (fileSourceCode.includes('|') && fileSourceCode.includes('.metadataTypes.')) {
|
|
1793
|
+
const typeAnnotation = node.typeAnnotation.toJSON()
|
|
1794
|
+
this._treeMetadataType2CoreType(typeAnnotation, (node.rootNode as App))
|
|
1795
|
+
const isDuplicate = this._isDuplicateCoreType(typeAnnotation)
|
|
1796
|
+
if (isDuplicate) {
|
|
1797
|
+
const diagnostic = {
|
|
1798
|
+
node: node,
|
|
1799
|
+
severity: 'error',
|
|
1800
|
+
message: `变量 ${node.name} 类型定义包含相同的数据类型`,
|
|
1801
|
+
};
|
|
1802
|
+
diagnostics.push(diagnostic);
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1781
1805
|
} else if (node instanceof BindAttribute || node instanceof BindDirective || node instanceof BindStyle) {
|
|
1782
1806
|
if (Array.isArray(node.bindExpressions)) {
|
|
1783
1807
|
const exp = node.bindExpressions.find((bindExpression) => this.hasComponentLogics(bindExpression));
|
|
@@ -1905,7 +1929,7 @@ class NaslServer {
|
|
|
1905
1929
|
const rulesMap: any = {};
|
|
1906
1930
|
if (Array.isArray(rules)) {
|
|
1907
1931
|
rules.forEach((rule) => {
|
|
1908
|
-
const match = rule
|
|
1932
|
+
const match = rule?.match(/^([^()]+)\(([\d\-.]+)\)$/);
|
|
1909
1933
|
if (match) {
|
|
1910
1934
|
const [, key, value] = match;
|
|
1911
1935
|
rulesMap[key] = value;
|
|
@@ -2173,9 +2197,10 @@ class NaslServer {
|
|
|
2173
2197
|
}
|
|
2174
2198
|
}
|
|
2175
2199
|
}
|
|
2200
|
+
|
|
2176
2201
|
if (node instanceof Return || node instanceof Variable) {
|
|
2202
|
+
const nodeTypeName = node.concept === 'Return' ? '输出参数' : '局部变量';
|
|
2177
2203
|
if (!node.typeAnnotation && !node.__TypeAnnotation) {
|
|
2178
|
-
const nodeTypeName = node.concept === 'Return' ? '输出参数' : '局部变量';
|
|
2179
2204
|
let used = false;
|
|
2180
2205
|
fileNode?.sourceMap.forEach((valueIn, nodeIn) => {
|
|
2181
2206
|
if (!used && nodeIn && (nodeIn instanceof BatchAssignment || (nodeIn instanceof Assignment && nodeIn.left?.name))) {
|
|
@@ -2210,6 +2235,36 @@ class NaslServer {
|
|
|
2210
2235
|
} else {
|
|
2211
2236
|
delete node.tsErrorDetail;
|
|
2212
2237
|
}
|
|
2238
|
+
const fileSourceCode = this.getNodeCode(fileNode, value);
|
|
2239
|
+
if (fileSourceCode.includes('|') && fileSourceCode.includes('.metadataTypes.')) {
|
|
2240
|
+
const typeAnnotation = node.typeAnnotation.toJSON()
|
|
2241
|
+
this._treeMetadataType2CoreType(typeAnnotation, (node.rootNode as App))
|
|
2242
|
+
const isDuplicate = this._isDuplicateCoreType(typeAnnotation)
|
|
2243
|
+
if (isDuplicate) {
|
|
2244
|
+
const diagnostic = {
|
|
2245
|
+
node: node,
|
|
2246
|
+
severity: 'error',
|
|
2247
|
+
message: `${nodeTypeName} ${node.name} 类型定义包含相同的数据类型`,
|
|
2248
|
+
};
|
|
2249
|
+
diagnostics.push(diagnostic);
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
if (node instanceof Param) {
|
|
2254
|
+
const fileSourceCode = this.getNodeCode(fileNode, value);
|
|
2255
|
+
if (fileSourceCode.includes('|') && fileSourceCode.includes('.metadataTypes.')) {
|
|
2256
|
+
const typeAnnotation = node.typeAnnotation.toJSON()
|
|
2257
|
+
this._treeMetadataType2CoreType(typeAnnotation, (node.rootNode as App))
|
|
2258
|
+
const isDuplicate = this._isDuplicateCoreType(typeAnnotation)
|
|
2259
|
+
if (isDuplicate) {
|
|
2260
|
+
const diagnostic = {
|
|
2261
|
+
node: node,
|
|
2262
|
+
severity: 'error',
|
|
2263
|
+
message: `输入参数 ${node.name} 类型定义包含相同的数据类型`,
|
|
2264
|
+
};
|
|
2265
|
+
diagnostics.push(diagnostic);
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2213
2268
|
}
|
|
2214
2269
|
this.checkNodeError(node, diagnostics);
|
|
2215
2270
|
});
|
|
@@ -2217,10 +2272,91 @@ class NaslServer {
|
|
|
2217
2272
|
fileNode?.sourceMap.forEach((value, node) => {
|
|
2218
2273
|
this.checkNodeError(node, diagnostics);
|
|
2219
2274
|
});
|
|
2275
|
+
} else if (fileNode instanceof MetadataType) {
|
|
2276
|
+
fileNode?.sourceMap.forEach((value, node) => {
|
|
2277
|
+
const rulesMap: any = {};
|
|
2278
|
+
const { rules, typeAnnotation } = node as MetadataType;
|
|
2279
|
+
if (Array.isArray(rules)) {
|
|
2280
|
+
rules.forEach((rule) => {
|
|
2281
|
+
if (`${rule?.toUI()}` == 'undefined' || `${rule.toUI()}` == 'null') return
|
|
2282
|
+
const match = rule.toUI?.().match(/^([^()]+)\(([\d\-.]+)\)$/);
|
|
2283
|
+
if (match) {
|
|
2284
|
+
const [, key, value] = match;
|
|
2285
|
+
rulesMap[key] = value;
|
|
2286
|
+
}
|
|
2287
|
+
});
|
|
2288
|
+
}
|
|
2289
|
+
const { typeName } = typeAnnotation || {};
|
|
2290
|
+
const typeAnnotationErrorDetail: any = {
|
|
2291
|
+
severity: 'warning',
|
|
2292
|
+
errorPos: {},
|
|
2293
|
+
};
|
|
2294
|
+
const minVal = rulesMap.min;
|
|
2295
|
+
const maxVal = rulesMap.max;
|
|
2296
|
+
if (['Long', 'Decimal'].includes(typeName) && !typeAnnotationErrorDetail.errorPos.min) {
|
|
2297
|
+
if (minVal && maxVal) {
|
|
2298
|
+
if (new Decimal(maxVal).lessThan(minVal)) {
|
|
2299
|
+
const errorMsg = '最小值不得大于最大值';
|
|
2300
|
+
const diag: any = {
|
|
2301
|
+
node: node,
|
|
2302
|
+
severity: 'warning',
|
|
2303
|
+
message: errorMsg,
|
|
2304
|
+
};
|
|
2305
|
+
diagnostics.push(diag);
|
|
2306
|
+
typeAnnotationErrorDetail.errorPos.min = errorMsg;
|
|
2307
|
+
} else {
|
|
2308
|
+
typeAnnotationErrorDetail.errorPos = {};
|
|
2309
|
+
(node as MetadataType).typeAnnotation.tsErrorDetail = null;
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
if (Object.keys(typeAnnotationErrorDetail.errorPos).length) {
|
|
2314
|
+
typeAnnotation.tsErrorDetail = typeAnnotationErrorDetail;
|
|
2315
|
+
}
|
|
2316
|
+
})
|
|
2220
2317
|
}
|
|
2221
2318
|
return diagnostics;
|
|
2222
2319
|
}
|
|
2223
2320
|
|
|
2321
|
+
_treeMetadataType2CoreType(type: TypeAnnotation, app: App) {
|
|
2322
|
+
type.typeArguments?.forEach((item: TypeAnnotation) => {
|
|
2323
|
+
if (item.typeNamespace.endsWith('.metadataTypes')) {
|
|
2324
|
+
let originType = {} as TypeAnnotation
|
|
2325
|
+
if (item.typeNamespace === 'app.metadataTypes') {
|
|
2326
|
+
originType = app.metadataTypes?.find((metadataType) => metadataType.name === item.typeName)?.typeAnnotation;
|
|
2327
|
+
} else if (item.typeNamespace.startsWith('extensions.') && item.typeNamespace.endsWith('.metadataTypes')) {
|
|
2328
|
+
const dependencyName = item.typeNamespace.replace('extensions.', '').replace('.metadataTypes', '')
|
|
2329
|
+
originType = app.dependencies?.find((dependency) => dependency.name === dependencyName)?.metadataTypes?.find((ele) => ele.name === item.typeName)?.typeAnnotation ?? {} as TypeAnnotation
|
|
2330
|
+
}
|
|
2331
|
+
item.typeKind = 'primitive'
|
|
2332
|
+
item.typeNamespace = 'nasl.core'
|
|
2333
|
+
item.typeName = originType?.typeName
|
|
2334
|
+
}
|
|
2335
|
+
if (type.typeArguments?.length > 0) {
|
|
2336
|
+
type.typeArguments.forEach((ele) => {
|
|
2337
|
+
this._treeMetadataType2CoreType(ele, app)
|
|
2338
|
+
})
|
|
2339
|
+
}
|
|
2340
|
+
})
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
_isDuplicateCoreType(type: TypeAnnotation) {
|
|
2344
|
+
const argsStringList = type.typeArguments?.map((item) => JSON.stringify(item)) || []
|
|
2345
|
+
const setList = Array.from(new Set(argsStringList))
|
|
2346
|
+
if (argsStringList.length > setList.length) {
|
|
2347
|
+
return true
|
|
2348
|
+
}
|
|
2349
|
+
let flag = false
|
|
2350
|
+
if (type.typeArguments?.length > 0) {
|
|
2351
|
+
type.typeArguments.forEach((ele) => {
|
|
2352
|
+
const subFlag = this._isDuplicateCoreType(ele)
|
|
2353
|
+
if (subFlag) {
|
|
2354
|
+
flag = true
|
|
2355
|
+
}
|
|
2356
|
+
})
|
|
2357
|
+
}
|
|
2358
|
+
return flag
|
|
2359
|
+
}
|
|
2224
2360
|
checkNodeError(node: BaseNode, diagnostics: Diagnostic[]): any {
|
|
2225
2361
|
if (!node) return;
|
|
2226
2362
|
// 如果节点是match的看看节点里是不是有重复的
|
|
@@ -3352,7 +3488,7 @@ class NaslServer {
|
|
|
3352
3488
|
// 如果跳转链接或者页面变量同一个param和TypeAnnotation 有两个过滤掉一个
|
|
3353
3489
|
if (
|
|
3354
3490
|
(minRange.node instanceof Param || minRange.node instanceof Variable || minRange.node instanceof Return) &&
|
|
3355
|
-
(node instanceof Entity || node instanceof Enum || node instanceof Structure)
|
|
3491
|
+
(node instanceof Entity || node instanceof Enum || node instanceof Structure || node instanceof MetadataType)
|
|
3356
3492
|
) {
|
|
3357
3493
|
return null;
|
|
3358
3494
|
}
|
|
@@ -4095,7 +4231,7 @@ class NaslServer {
|
|
|
4095
4231
|
const nodes: QuickInfoNodes = [];
|
|
4096
4232
|
this.file2NodeMap.forEach((fileNode, filePath) => {
|
|
4097
4233
|
// 先不排除view,传递给后端的时候,去除views下的标注
|
|
4098
|
-
if (!['Structure', 'DataSource', 'Entity', 'Enum', 'Role'].includes(fileNode.concept)) {
|
|
4234
|
+
if (!['Structure', 'DataSource', 'Entity', 'Enum', 'Role', 'MetadataType'].includes(fileNode.concept)) {
|
|
4099
4235
|
fileNode.sourceMap.forEach((item, node) => {
|
|
4100
4236
|
nodes.push({
|
|
4101
4237
|
filePath,
|
|
@@ -4129,7 +4265,7 @@ class NaslServer {
|
|
|
4129
4265
|
if (!fileNode) return;
|
|
4130
4266
|
record.id = fileNode.id;
|
|
4131
4267
|
record.node = fileNode;
|
|
4132
|
-
if (!['Structure', 'DataSource', 'Entity', 'Enum', 'Role'].includes(fileNode.concept)) {
|
|
4268
|
+
if (!['Structure', 'DataSource', 'Entity', 'Enum', 'Role', 'MetadataType'].includes(fileNode.concept)) {
|
|
4133
4269
|
fileNode.sourceMap &&
|
|
4134
4270
|
fileNode.sourceMap.forEach((item, nodeItem) => {
|
|
4135
4271
|
nodes.push({
|
package/src/server/translator.ts
CHANGED
|
@@ -227,11 +227,11 @@ const TS_RULES: Array<{
|
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
re: /Expression expected/,
|
|
230
|
-
result: '
|
|
230
|
+
result: '表达式不能为空!',
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
re: /Cannot find name '__(?:IDENTIFIER|LEFT|RIGHT)__'/,
|
|
234
|
-
result: '
|
|
234
|
+
result: '表达式不能为空!',
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
re: /Cannot find name '__(?:FRONTENDVARIABLES)__'/,
|