@lcap/nasl 3.6.0-alpha.7 → 3.6.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/automate/engine/index.d.ts +4 -0
- package/out/automate/engine/index.js +443 -0
- package/out/automate/engine/index.js.map +1 -0
- package/out/automate/engine/operators.d.ts +26 -0
- package/out/automate/engine/operators.js +364 -0
- package/out/automate/engine/operators.js.map +1 -0
- package/out/automate/engine/uniqueName.d.ts +12 -0
- package/out/automate/engine/uniqueName.js +116 -0
- package/out/automate/engine/uniqueName.js.map +1 -0
- package/out/automate/engine/utils.d.ts +25 -0
- package/out/automate/engine/utils.js +440 -0
- package/out/automate/engine/utils.js.map +1 -0
- package/out/automate/engine/viewCache.d.ts +19 -0
- package/out/automate/engine/viewCache.js +45 -0
- package/out/automate/engine/viewCache.js.map +1 -0
- package/out/automate/template/myProcess.d.ts +10 -0
- package/out/automate/template/myProcess.js +11502 -0
- package/out/automate/template/myProcess.js.map +1 -0
- package/out/automate/upgrader/2.12.d.ts +7 -0
- package/out/automate/upgrader/2.12.js +63 -0
- package/out/automate/upgrader/2.12.js.map +1 -0
- package/out/automate/upgrader/2.14-components.d.ts +1115 -0
- package/out/automate/upgrader/2.14-components.js +1087 -0
- package/out/automate/upgrader/2.14-components.js.map +1 -0
- package/out/automate/upgrader/2.14.d.ts +10 -0
- package/out/automate/upgrader/2.14.js +236 -0
- package/out/automate/upgrader/2.14.js.map +1 -0
- package/out/automate/upgrader/2.14.old.d.ts +1 -0
- package/out/automate/upgrader/2.14.old.js +125 -0
- package/out/automate/upgrader/2.14.old.js.map +1 -0
- package/out/automate/upgrader/2.16.d.ts +10 -0
- package/out/automate/upgrader/2.16.js +75 -0
- package/out/automate/upgrader/2.16.js.map +1 -0
- package/out/automate/upgrader/2.17.d.ts +21 -0
- package/out/automate/upgrader/2.17.js +557 -0
- package/out/automate/upgrader/2.17.js.map +1 -0
- package/out/automate/upgrader/2.18.d.ts +10 -0
- package/out/automate/upgrader/2.18.js +107 -0
- package/out/automate/upgrader/2.18.js.map +1 -0
- package/out/automate/upgrader/2.20.d.ts +17 -0
- package/out/automate/upgrader/2.20.js +68 -0
- package/out/automate/upgrader/2.20.js.map +1 -0
- package/out/bak/translator.d.ts +1 -0
- package/out/bak/translator.js +305 -0
- package/out/bak/translator.js.map +1 -0
- package/out/breakpoint/generator/AfterStartNode.d.ts +7 -0
- package/out/breakpoint/generator/AfterStartNode.js +30 -0
- package/out/breakpoint/generator/AfterStartNode.js.map +1 -0
- package/out/breakpoint/generator/BeforeEndNode.d.ts +7 -0
- package/out/breakpoint/generator/BeforeEndNode.js +28 -0
- package/out/breakpoint/generator/BeforeEndNode.js.map +1 -0
- package/out/breakpoint/generator/BreakpointNode.d.ts +18 -0
- package/out/breakpoint/generator/BreakpointNode.js +293 -0
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -0
- package/out/breakpoint/generator/CallbackNode.d.ts +4 -0
- package/out/breakpoint/generator/CallbackNode.js +37 -0
- package/out/breakpoint/generator/CallbackNode.js.map +1 -0
- package/out/breakpoint/generator/FragmentNode.d.ts +4 -0
- package/out/breakpoint/generator/FragmentNode.js +18 -0
- package/out/breakpoint/generator/FragmentNode.js.map +1 -0
- package/out/breakpoint/generator/index.d.ts +4 -0
- package/out/breakpoint/generator/index.js +119 -0
- package/out/breakpoint/generator/index.js.map +1 -0
- package/out/breakpoint/index.d.ts +3 -0
- package/out/breakpoint/index.js +20 -0
- package/out/breakpoint/index.js.map +1 -0
- package/out/breakpoint/shared/constants.d.ts +37 -0
- package/out/breakpoint/shared/constants.js +108 -0
- package/out/breakpoint/shared/constants.js.map +1 -0
- package/out/breakpoint/shared/index.d.ts +3 -0
- package/out/breakpoint/shared/index.js +33 -0
- package/out/breakpoint/shared/index.js.map +1 -0
- package/out/breakpoint/shared/operations.d.ts +10 -0
- package/out/breakpoint/shared/operations.js +25 -0
- package/out/breakpoint/shared/operations.js.map +1 -0
- package/out/breakpoint/shared/socket.d.ts +48 -0
- package/out/breakpoint/shared/socket.js +257 -0
- package/out/breakpoint/shared/socket.js.map +1 -0
- package/out/breakpoint/shared/utils.d.ts +27 -0
- package/out/breakpoint/shared/utils.js +217 -0
- package/out/breakpoint/shared/utils.js.map +1 -0
- package/out/breakpoint/store/core.d.ts +80 -0
- package/out/breakpoint/store/core.js +416 -0
- package/out/breakpoint/store/core.js.map +1 -0
- package/out/breakpoint/store/dock.d.ts +1 -0
- package/out/breakpoint/store/dock.js +160 -0
- package/out/breakpoint/store/dock.js.map +1 -0
- package/out/breakpoint/store/index.d.ts +2 -0
- package/out/breakpoint/store/index.js +19 -0
- package/out/breakpoint/store/index.js.map +1 -0
- package/out/common/BaseNode.d.ts +377 -0
- package/out/common/BaseNode.js +1432 -0
- package/out/common/BaseNode.js.map +1 -0
- package/out/common/Command.d.ts +21 -0
- package/out/common/Command.js +79 -0
- package/out/common/Command.js.map +1 -0
- package/out/common/ComponentAPI.d.ts +112 -0
- package/out/common/ComponentAPI.js +3 -0
- package/out/common/ComponentAPI.js.map +1 -0
- package/out/common/EventEmitter.d.ts +61 -0
- package/out/common/EventEmitter.js +71 -0
- package/out/common/EventEmitter.js.map +1 -0
- package/out/common/Messager.d.ts +91 -0
- package/out/common/Messager.js +205 -0
- package/out/common/Messager.js.map +1 -0
- package/out/common/asyncFuncMap.d.ts +2 -0
- package/out/common/asyncFuncMap.js +16 -0
- package/out/common/asyncFuncMap.js.map +1 -0
- package/out/common/index.d.ts +4 -0
- package/out/common/index.js +21 -0
- package/out/common/index.js.map +1 -0
- package/out/common/utils.d.ts +2 -0
- package/out/common/utils.js +18 -0
- package/out/common/utils.js.map +1 -0
- package/out/concepts/Abort__.d.ts +28 -0
- package/out/concepts/Abort__.js +80 -0
- package/out/concepts/Abort__.js.map +1 -0
- package/out/concepts/AbstractInterface__.d.ts +22 -0
- package/out/concepts/AbstractInterface__.js +56 -0
- package/out/concepts/AbstractInterface__.js.map +1 -0
- package/out/concepts/Anchor__.d.ts +48 -0
- package/out/concepts/Anchor__.js +200 -0
- package/out/concepts/Anchor__.js.map +1 -0
- package/out/concepts/AnonymousFunction__.d.ts +180 -0
- package/out/concepts/AnonymousFunction__.js +555 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -0
- package/out/concepts/App__.d.ts +1818 -0
- package/out/concepts/App__.js +2983 -0
- package/out/concepts/App__.js.map +1 -0
- package/out/concepts/Argument__.d.ts +70 -0
- package/out/concepts/Argument__.js +270 -0
- package/out/concepts/Argument__.js.map +1 -0
- package/out/concepts/Assignee__.d.ts +291 -0
- package/out/concepts/Assignee__.js +461 -0
- package/out/concepts/Assignee__.js.map +1 -0
- package/out/concepts/AssignmentLine__.d.ts +44 -0
- package/out/concepts/AssignmentLine__.js +114 -0
- package/out/concepts/AssignmentLine__.js.map +1 -0
- package/out/concepts/Assignment__.d.ts +77 -0
- package/out/concepts/Assignment__.js +338 -0
- package/out/concepts/Assignment__.js.map +1 -0
- package/out/concepts/Attribute__.d.ts +112 -0
- package/out/concepts/Attribute__.js +208 -0
- package/out/concepts/Attribute__.js.map +1 -0
- package/out/concepts/AuthInterface__.d.ts +38 -0
- package/out/concepts/AuthInterface__.js +74 -0
- package/out/concepts/AuthInterface__.js.map +1 -0
- package/out/concepts/AuthLogicForCallInterface__.d.ts +141 -0
- package/out/concepts/AuthLogicForCallInterface__.js +514 -0
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -0
- package/out/concepts/AuthLogic__.d.ts +69 -0
- package/out/concepts/AuthLogic__.js +210 -0
- package/out/concepts/AuthLogic__.js.map +1 -0
- package/out/concepts/BackendVariable__.d.ts +145 -0
- package/out/concepts/BackendVariable__.js +502 -0
- package/out/concepts/BackendVariable__.js.map +1 -0
- package/out/concepts/Backend__.d.ts +134 -0
- package/out/concepts/Backend__.js +280 -0
- package/out/concepts/Backend__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +255 -0
- package/out/concepts/BatchAssignment__.js +881 -0
- package/out/concepts/BatchAssignment__.js.map +1 -0
- package/out/concepts/BinaryExpression__.d.ts +76 -0
- package/out/concepts/BinaryExpression__.js +422 -0
- package/out/concepts/BinaryExpression__.js.map +1 -0
- package/out/concepts/BindAttribute__.d.ts +329 -0
- package/out/concepts/BindAttribute__.js +1130 -0
- package/out/concepts/BindAttribute__.js.map +1 -0
- package/out/concepts/BindDirective__.d.ts +170 -0
- package/out/concepts/BindDirective__.js +573 -0
- package/out/concepts/BindDirective__.js.map +1 -0
- package/out/concepts/BindEvent__.d.ts +254 -0
- package/out/concepts/BindEvent__.js +959 -0
- package/out/concepts/BindEvent__.js.map +1 -0
- package/out/concepts/BindStyle__.d.ts +142 -0
- package/out/concepts/BindStyle__.js +453 -0
- package/out/concepts/BindStyle__.js.map +1 -0
- package/out/concepts/Block__.d.ts +84 -0
- package/out/concepts/Block__.js +215 -0
- package/out/concepts/Block__.js.map +1 -0
- package/out/concepts/BooleanLiteral__.d.ts +38 -0
- package/out/concepts/BooleanLiteral__.js +97 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -0
- package/out/concepts/BusinessComponent__.d.ts +641 -0
- package/out/concepts/BusinessComponent__.js +1944 -0
- package/out/concepts/BusinessComponent__.js.map +1 -0
- package/out/concepts/BusinessLogic__.d.ts +38 -0
- package/out/concepts/BusinessLogic__.js +358 -0
- package/out/concepts/BusinessLogic__.js.map +1 -0
- package/out/concepts/CallAuthInterface__.d.ts +130 -0
- package/out/concepts/CallAuthInterface__.js +438 -0
- package/out/concepts/CallAuthInterface__.js.map +1 -0
- package/out/concepts/CallConnector__.d.ts +49 -0
- package/out/concepts/CallConnector__.js +257 -0
- package/out/concepts/CallConnector__.js.map +1 -0
- package/out/concepts/CallEvent__.d.ts +101 -0
- package/out/concepts/CallEvent__.js +280 -0
- package/out/concepts/CallEvent__.js.map +1 -0
- package/out/concepts/CallFunction__.d.ts +162 -0
- package/out/concepts/CallFunction__.js +600 -0
- package/out/concepts/CallFunction__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +136 -0
- package/out/concepts/CallInterface__.js +814 -0
- package/out/concepts/CallInterface__.js.map +1 -0
- package/out/concepts/CallLogic__.d.ts +235 -0
- package/out/concepts/CallLogic__.js +1361 -0
- package/out/concepts/CallLogic__.js.map +1 -0
- package/out/concepts/CallQueryComponent__.d.ts +435 -0
- package/out/concepts/CallQueryComponent__.js +1235 -0
- package/out/concepts/CallQueryComponent__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +35 -0
- package/out/concepts/Comment__.js +94 -0
- package/out/concepts/Comment__.js.map +1 -0
- package/out/concepts/CompletionProperty__.d.ts +107 -0
- package/out/concepts/CompletionProperty__.js +239 -0
- package/out/concepts/CompletionProperty__.js.map +1 -0
- package/out/concepts/ConfigGroup__.d.ts +127 -0
- package/out/concepts/ConfigGroup__.js +258 -0
- package/out/concepts/ConfigGroup__.js.map +1 -0
- package/out/concepts/ConfigPropertyValue__.d.ts +47 -0
- package/out/concepts/ConfigPropertyValue__.js +93 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -0
- package/out/concepts/ConfigProperty__.d.ts +153 -0
- package/out/concepts/ConfigProperty__.js +321 -0
- package/out/concepts/ConfigProperty__.js.map +1 -0
- package/out/concepts/Configuration__.d.ts +126 -0
- package/out/concepts/Configuration__.js +236 -0
- package/out/concepts/Configuration__.js.map +1 -0
- package/out/concepts/Connection__.d.ts +165 -0
- package/out/concepts/Connection__.js +330 -0
- package/out/concepts/Connection__.js.map +1 -0
- package/out/concepts/ConnectorTrigger__.d.ts +81 -0
- package/out/concepts/ConnectorTrigger__.js +138 -0
- package/out/concepts/ConnectorTrigger__.js.map +1 -0
- package/out/concepts/Connector__.d.ts +929 -0
- package/out/concepts/Connector__.js +1343 -0
- package/out/concepts/Connector__.js.map +1 -0
- package/out/concepts/Constant__.d.ts +121 -0
- package/out/concepts/Constant__.js +331 -0
- package/out/concepts/Constant__.js.map +1 -0
- package/out/concepts/CountersignPolicy__.d.ts +28 -0
- package/out/concepts/CountersignPolicy__.js +62 -0
- package/out/concepts/CountersignPolicy__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +168 -0
- package/out/concepts/DataSource__.js +460 -0
- package/out/concepts/DataSource__.js.map +1 -0
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +34 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +65 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
- package/out/concepts/DefaultValue__.d.ts +104 -0
- package/out/concepts/DefaultValue__.js +242 -0
- package/out/concepts/DefaultValue__.js.map +1 -0
- package/out/concepts/Destination__.d.ts +160 -0
- package/out/concepts/Destination__.js +799 -0
- package/out/concepts/Destination__.js.map +1 -0
- package/out/concepts/End__.d.ts +27 -0
- package/out/concepts/End__.js +115 -0
- package/out/concepts/End__.js.map +1 -0
- package/out/concepts/EntityIndex__.d.ts +98 -0
- package/out/concepts/EntityIndex__.js +201 -0
- package/out/concepts/EntityIndex__.js.map +1 -0
- package/out/concepts/EntityProperty__.d.ts +293 -0
- package/out/concepts/EntityProperty__.js +824 -0
- package/out/concepts/EntityProperty__.js.map +1 -0
- package/out/concepts/Entity__.d.ts +339 -0
- package/out/concepts/Entity__.js +764 -0
- package/out/concepts/Entity__.js.map +1 -0
- package/out/concepts/EnumItem__.d.ts +67 -0
- package/out/concepts/EnumItem__.js +131 -0
- package/out/concepts/EnumItem__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +138 -0
- package/out/concepts/Enum__.js +321 -0
- package/out/concepts/Enum__.js.map +1 -0
- package/out/concepts/Event__.d.ts +160 -0
- package/out/concepts/Event__.js +294 -0
- package/out/concepts/Event__.js.map +1 -0
- package/out/concepts/ExternalDestination__.d.ts +78 -0
- package/out/concepts/ExternalDestination__.js +309 -0
- package/out/concepts/ExternalDestination__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +173 -0
- package/out/concepts/ForEachStatement__.js +497 -0
- package/out/concepts/ForEachStatement__.js.map +1 -0
- package/out/concepts/FrontendLibrary__.d.ts +216 -0
- package/out/concepts/FrontendLibrary__.js +364 -0
- package/out/concepts/FrontendLibrary__.js.map +1 -0
- package/out/concepts/FrontendType__.d.ts +308 -0
- package/out/concepts/FrontendType__.js +606 -0
- package/out/concepts/FrontendType__.js.map +1 -0
- package/out/concepts/FrontendVariable__.d.ts +36 -0
- package/out/concepts/FrontendVariable__.js +77 -0
- package/out/concepts/FrontendVariable__.js.map +1 -0
- package/out/concepts/Frontend__.d.ts +420 -0
- package/out/concepts/Frontend__.js +915 -0
- package/out/concepts/Frontend__.js.map +1 -0
- package/out/concepts/Function__.d.ts +420 -0
- package/out/concepts/Function__.js +805 -0
- package/out/concepts/Function__.js.map +1 -0
- package/out/concepts/I18nInfo__.d.ts +46 -0
- package/out/concepts/I18nInfo__.js +90 -0
- package/out/concepts/I18nInfo__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +59 -0
- package/out/concepts/Identifier__.js +326 -0
- package/out/concepts/Identifier__.js.map +1 -0
- package/out/concepts/IfStatement__.d.ts +161 -0
- package/out/concepts/IfStatement__.js +372 -0
- package/out/concepts/IfStatement__.js.map +1 -0
- package/out/concepts/ImportedInterface__.d.ts +20 -0
- package/out/concepts/ImportedInterface__.js +48 -0
- package/out/concepts/ImportedInterface__.js.map +1 -0
- package/out/concepts/Integration__.d.ts +146 -0
- package/out/concepts/Integration__.js +296 -0
- package/out/concepts/Integration__.js.map +1 -0
- package/out/concepts/InterfaceParam__.d.ts +146 -0
- package/out/concepts/InterfaceParam__.js +342 -0
- package/out/concepts/InterfaceParam__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +328 -0
- package/out/concepts/Interface__.js +892 -0
- package/out/concepts/Interface__.js.map +1 -0
- package/out/concepts/JSBlock__.d.ts +37 -0
- package/out/concepts/JSBlock__.js +104 -0
- package/out/concepts/JSBlock__.js.map +1 -0
- package/out/concepts/JavaLogic__.d.ts +45 -0
- package/out/concepts/JavaLogic__.js +109 -0
- package/out/concepts/JavaLogic__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +155 -0
- package/out/concepts/LogicItem__.js +284 -0
- package/out/concepts/LogicItem__.js.map +1 -0
- package/out/concepts/Logic__.d.ts +649 -0
- package/out/concepts/Logic__.js +1939 -0
- package/out/concepts/Logic__.js.map +1 -0
- package/out/concepts/MatchCase__.d.ts +261 -0
- package/out/concepts/MatchCase__.js +706 -0
- package/out/concepts/MatchCase__.js.map +1 -0
- package/out/concepts/Match__.d.ts +127 -0
- package/out/concepts/Match__.js +731 -0
- package/out/concepts/Match__.js.map +1 -0
- package/out/concepts/MemberExpression__.d.ts +80 -0
- package/out/concepts/MemberExpression__.js +529 -0
- package/out/concepts/MemberExpression__.js.map +1 -0
- package/out/concepts/MetadataType__.d.ts +236 -0
- package/out/concepts/MetadataType__.js +464 -0
- package/out/concepts/MetadataType__.js.map +1 -0
- package/out/concepts/MicroApp__.d.ts +54 -0
- package/out/concepts/MicroApp__.js +80 -0
- package/out/concepts/MicroApp__.js.map +1 -0
- package/out/concepts/Module__.d.ts +1171 -0
- package/out/concepts/Module__.js +1747 -0
- package/out/concepts/Module__.js.map +1 -0
- package/out/concepts/MsgTriggerEvent__.d.ts +140 -0
- package/out/concepts/MsgTriggerEvent__.js +236 -0
- package/out/concepts/MsgTriggerEvent__.js.map +1 -0
- package/out/concepts/MsgTriggerLauncher__.d.ts +129 -0
- package/out/concepts/MsgTriggerLauncher__.js +226 -0
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -0
- package/out/concepts/MultiApprovalPolicy__.d.ts +26 -0
- package/out/concepts/MultiApprovalPolicy__.js +59 -0
- package/out/concepts/MultiApprovalPolicy__.js.map +1 -0
- package/out/concepts/Namespace__.d.ts +1086 -0
- package/out/concepts/Namespace__.js +1555 -0
- package/out/concepts/Namespace__.js.map +1 -0
- package/out/concepts/NewComposite__.d.ts +353 -0
- package/out/concepts/NewComposite__.js +1277 -0
- package/out/concepts/NewComposite__.js.map +1 -0
- package/out/concepts/NewList__.d.ts +141 -0
- package/out/concepts/NewList__.js +470 -0
- package/out/concepts/NewList__.js.map +1 -0
- package/out/concepts/NewMap__.d.ts +231 -0
- package/out/concepts/NewMap__.js +604 -0
- package/out/concepts/NewMap__.js.map +1 -0
- package/out/concepts/New__.d.ts +23 -0
- package/out/concepts/New__.js +65 -0
- package/out/concepts/New__.js.map +1 -0
- package/out/concepts/NullLiteral__.d.ts +29 -0
- package/out/concepts/NullLiteral__.js +77 -0
- package/out/concepts/NullLiteral__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +59 -0
- package/out/concepts/NumericLiteral__.js +177 -0
- package/out/concepts/NumericLiteral__.js.map +1 -0
- package/out/concepts/OqlQueryComponent__.d.ts +76 -0
- package/out/concepts/OqlQueryComponent__.js +351 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -0
- package/out/concepts/OverriddenLogic__.d.ts +634 -0
- package/out/concepts/OverriddenLogic__.js +1661 -0
- package/out/concepts/OverriddenLogic__.js.map +1 -0
- package/out/concepts/Paginate__.d.ts +97 -0
- package/out/concepts/Paginate__.js +267 -0
- package/out/concepts/Paginate__.js.map +1 -0
- package/out/concepts/ParamWithGroup__.d.ts +39 -0
- package/out/concepts/ParamWithGroup__.js +85 -0
- package/out/concepts/ParamWithGroup__.js.map +1 -0
- package/out/concepts/Param__.d.ts +182 -0
- package/out/concepts/Param__.js +524 -0
- package/out/concepts/Param__.js.map +1 -0
- package/out/concepts/Point__.d.ts +34 -0
- package/out/concepts/Point__.js +65 -0
- package/out/concepts/Point__.js.map +1 -0
- package/out/concepts/ProcessComponent__.d.ts +222 -0
- package/out/concepts/ProcessComponent__.js +340 -0
- package/out/concepts/ProcessComponent__.js.map +1 -0
- package/out/concepts/ProcessElement__.d.ts +665 -0
- package/out/concepts/ProcessElement__.js +1354 -0
- package/out/concepts/ProcessElement__.js.map +1 -0
- package/out/concepts/ProcessOutcome__.d.ts +34 -0
- package/out/concepts/ProcessOutcome__.js +97 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -0
- package/out/concepts/ProcessOutcomes__.d.ts +34 -0
- package/out/concepts/ProcessOutcomes__.js +104 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -0
- package/out/concepts/Process__.d.ts +615 -0
- package/out/concepts/Process__.js +1117 -0
- package/out/concepts/Process__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +54 -0
- package/out/concepts/QueryAggregateExpression__.js +140 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/concepts/QueryFieldExpression__.d.ts +56 -0
- package/out/concepts/QueryFieldExpression__.js +142 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/concepts/QueryFromExpression__.d.ts +101 -0
- package/out/concepts/QueryFromExpression__.js +227 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -0
- package/out/concepts/QueryGroupByExpression__.d.ts +50 -0
- package/out/concepts/QueryGroupByExpression__.js +142 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/concepts/QueryJoinExpression__.d.ts +188 -0
- package/out/concepts/QueryJoinExpression__.js +327 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/concepts/QueryLimitExpression__.d.ts +60 -0
- package/out/concepts/QueryLimitExpression__.js +159 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/concepts/QueryOrderByExpression__.d.ts +71 -0
- package/out/concepts/QueryOrderByExpression__.js +172 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/concepts/QuerySelectExpression__.d.ts +206 -0
- package/out/concepts/QuerySelectExpression__.js +308 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/concepts/Rect__.d.ts +42 -0
- package/out/concepts/Rect__.js +71 -0
- package/out/concepts/Rect__.js.map +1 -0
- package/out/concepts/Return__.d.ts +147 -0
- package/out/concepts/Return__.js +429 -0
- package/out/concepts/Return__.js.map +1 -0
- package/out/concepts/Role__.d.ts +62 -0
- package/out/concepts/Role__.js +151 -0
- package/out/concepts/Role__.js.map +1 -0
- package/out/concepts/SelectMembers__.d.ts +145 -0
- package/out/concepts/SelectMembers__.js +300 -0
- package/out/concepts/SelectMembers__.js.map +1 -0
- package/out/concepts/SequentialPolicy__.d.ts +20 -0
- package/out/concepts/SequentialPolicy__.js +48 -0
- package/out/concepts/SequentialPolicy__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +77 -0
- package/out/concepts/Slot__.js +141 -0
- package/out/concepts/Slot__.js.map +1 -0
- package/out/concepts/SqlQueryComponent__.d.ts +74 -0
- package/out/concepts/SqlQueryComponent__.js +269 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/concepts/Start__.d.ts +27 -0
- package/out/concepts/Start__.js +69 -0
- package/out/concepts/Start__.js.map +1 -0
- package/out/concepts/StaticString__.d.ts +49 -0
- package/out/concepts/StaticString__.js +91 -0
- package/out/concepts/StaticString__.js.map +1 -0
- package/out/concepts/StringInterpolation__.d.ts +118 -0
- package/out/concepts/StringInterpolation__.js +284 -0
- package/out/concepts/StringInterpolation__.js.map +1 -0
- package/out/concepts/StringLiteral__.d.ts +45 -0
- package/out/concepts/StringLiteral__.js +159 -0
- package/out/concepts/StringLiteral__.js.map +1 -0
- package/out/concepts/StructureProperty__.d.ts +154 -0
- package/out/concepts/StructureProperty__.js +338 -0
- package/out/concepts/StructureProperty__.js.map +1 -0
- package/out/concepts/Structure__.d.ts +250 -0
- package/out/concepts/Structure__.js +508 -0
- package/out/concepts/Structure__.js.map +1 -0
- package/out/concepts/SwitchCase__.d.ts +97 -0
- package/out/concepts/SwitchCase__.js +305 -0
- package/out/concepts/SwitchCase__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +87 -0
- package/out/concepts/SwitchStatement__.js +234 -0
- package/out/concepts/SwitchStatement__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +40 -0
- package/out/concepts/Theme__.js +84 -0
- package/out/concepts/Theme__.js.map +1 -0
- package/out/concepts/Transactional__.d.ts +90 -0
- package/out/concepts/Transactional__.js +149 -0
- package/out/concepts/Transactional__.js.map +1 -0
- package/out/concepts/TriggerEvent__.d.ts +54 -0
- package/out/concepts/TriggerEvent__.js +137 -0
- package/out/concepts/TriggerEvent__.js.map +1 -0
- package/out/concepts/TriggerLauncher__.d.ts +81 -0
- package/out/concepts/TriggerLauncher__.js +197 -0
- package/out/concepts/TriggerLauncher__.js.map +1 -0
- package/out/concepts/TypeAnnotation__.d.ts +305 -0
- package/out/concepts/TypeAnnotation__.js +1095 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -0
- package/out/concepts/TypeParam__.d.ts +28 -0
- package/out/concepts/TypeParam__.js +71 -0
- package/out/concepts/TypeParam__.js.map +1 -0
- package/out/concepts/UnaryExpression__.d.ts +52 -0
- package/out/concepts/UnaryExpression__.js +191 -0
- package/out/concepts/UnaryExpression__.js.map +1 -0
- package/out/concepts/Unparsed__.d.ts +36 -0
- package/out/concepts/Unparsed__.js +91 -0
- package/out/concepts/Unparsed__.js.map +1 -0
- package/out/concepts/UseComponent__.d.ts +34 -0
- package/out/concepts/UseComponent__.js +65 -0
- package/out/concepts/UseComponent__.js.map +1 -0
- package/out/concepts/ValidationRule__.d.ts +152 -0
- package/out/concepts/ValidationRule__.js +535 -0
- package/out/concepts/ValidationRule__.js.map +1 -0
- package/out/concepts/Variable__.d.ts +164 -0
- package/out/concepts/Variable__.js +505 -0
- package/out/concepts/Variable__.js.map +1 -0
- package/out/concepts/ViewBlock__.d.ts +38 -0
- package/out/concepts/ViewBlock__.js +68 -0
- package/out/concepts/ViewBlock__.js.map +1 -0
- package/out/concepts/ViewComponent__.d.ts +568 -0
- package/out/concepts/ViewComponent__.js +809 -0
- package/out/concepts/ViewComponent__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +656 -0
- package/out/concepts/ViewElement__.js +2727 -0
- package/out/concepts/ViewElement__.js.map +1 -0
- package/out/concepts/View__.d.ts +747 -0
- package/out/concepts/View__.js +2633 -0
- package/out/concepts/View__.js.map +1 -0
- package/out/concepts/WhileStatement__.d.ts +100 -0
- package/out/concepts/WhileStatement__.js +269 -0
- package/out/concepts/WhileStatement__.js.map +1 -0
- package/out/concepts/basics/constants.d.ts +1 -0
- package/out/concepts/basics/constants.js +6 -0
- package/out/concepts/basics/constants.js.map +1 -0
- package/out/concepts/basics/stdlib/index.d.ts +16 -0
- package/out/concepts/basics/stdlib/index.js +90 -0
- package/out/concepts/basics/stdlib/index.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +9 -0
- package/out/concepts/basics/stdlib/nasl.auth.js +206 -0
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.browser.js +158 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +9 -0
- package/out/concepts/basics/stdlib/nasl.collection.js +57 -0
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js +65 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.core.js +47 -0
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.event.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.event.js +34 -0
- package/out/concepts/basics/stdlib/nasl.event.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.http.d.ts +9 -0
- package/out/concepts/basics/stdlib/nasl.http.js +174 -0
- package/out/concepts/basics/stdlib/nasl.http.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +9 -0
- package/out/concepts/basics/stdlib/nasl.interface.js +49 -0
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.io.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.io.js +61 -0
- package/out/concepts/basics/stdlib/nasl.io.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.logging.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.logging.js +65 -0
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts +9 -0
- package/out/concepts/basics/stdlib/nasl.process.js +643 -0
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +9 -0
- package/out/concepts/basics/stdlib/nasl.ui.js +1038 -0
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.util.js +2285 -0
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.validation.js +574 -0
- package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +4 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +47 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/concepts/basics/stdlib/timeZone.d.ts +5 -0
- package/out/concepts/basics/stdlib/timeZone.js +196 -0
- package/out/concepts/basics/stdlib/timeZone.js.map +1 -0
- package/out/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/out/concepts/basics/types/coreTypeList.js +15 -0
- package/out/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/concepts/basics/types/index.d.ts +16 -0
- package/out/concepts/basics/types/index.js +35 -0
- package/out/concepts/basics/types/index.js.map +1 -0
- package/out/concepts/index.d.ts +7 -0
- package/out/concepts/index.js +41 -0
- package/out/concepts/index.js.map +1 -0
- package/out/concepts/index__.d.ts +138 -0
- package/out/concepts/index__.js +155 -0
- package/out/concepts/index__.js.map +1 -0
- package/out/concepts/types__.d.ts +0 -0
- package/out/concepts/types__.js +1 -0
- package/out/concepts/types__.js.map +1 -0
- package/out/concepts/utils/asserts.d.ts +6982 -0
- package/out/concepts/utils/asserts.js +9276 -0
- package/out/concepts/utils/asserts.js.map +1 -0
- package/out/concepts/utils/quick-info.d.ts +13 -0
- package/out/concepts/utils/quick-info.js +51 -0
- package/out/concepts/utils/quick-info.js.map +1 -0
- package/out/concepts/utils/types.d.ts +450 -0
- package/out/concepts/utils/types.js +3 -0
- package/out/concepts/utils/types.js.map +1 -0
- package/out/config.d.ts +43 -0
- package/out/config.js +72 -0
- package/out/config.js.map +1 -0
- package/out/decorators/index.d.ts +67 -0
- package/out/decorators/index.js +213 -0
- package/out/decorators/index.js.map +1 -0
- package/out/decorators/promise.d.ts +7 -0
- package/out/decorators/promise.js +28 -0
- package/out/decorators/promise.js.map +1 -0
- package/out/enums/KEYWORDS.d.ts +6 -0
- package/out/enums/KEYWORDS.js +1248 -0
- package/out/enums/KEYWORDS.js.map +1 -0
- package/out/enums/LEVEL_NAME_MAP.d.ts +26 -0
- package/out/enums/LEVEL_NAME_MAP.js +30 -0
- package/out/enums/LEVEL_NAME_MAP.js.map +1 -0
- package/out/eventBus.d.ts +3 -0
- package/out/eventBus.js +7 -0
- package/out/eventBus.js.map +1 -0
- package/out/generator/compileComponent.d.ts +11 -0
- package/out/generator/compileComponent.js +12 -0
- package/out/generator/compileComponent.js.map +1 -0
- package/out/generator/genBundleFiles.d.ts +37 -0
- package/out/generator/genBundleFiles.js +678 -0
- package/out/generator/genBundleFiles.js.map +1 -0
- package/out/generator/genHash.d.ts +7 -0
- package/out/generator/genHash.js +39 -0
- package/out/generator/genHash.js.map +1 -0
- package/out/generator/genMetaData.d.ts +31 -0
- package/out/generator/genMetaData.js +365 -0
- package/out/generator/genMetaData.js.map +1 -0
- package/out/generator/genReleaseBody.d.ts +72 -0
- package/out/generator/genReleaseBody.js +333 -0
- package/out/generator/genReleaseBody.js.map +1 -0
- package/out/generator/icestark.d.ts +2 -0
- package/out/generator/icestark.js +50 -0
- package/out/generator/icestark.js.map +1 -0
- package/out/generator/index.d.ts +7 -0
- package/out/generator/index.js +24 -0
- package/out/generator/index.js.map +1 -0
- package/out/generator/microApp.d.ts +2 -0
- package/out/generator/microApp.js +36 -0
- package/out/generator/microApp.js.map +1 -0
- package/out/generator/permission.d.ts +14 -0
- package/out/generator/permission.js +296 -0
- package/out/generator/permission.js.map +1 -0
- package/out/generator/qiankun.d.ts +2 -0
- package/out/generator/qiankun.js +54 -0
- package/out/generator/qiankun.js.map +1 -0
- package/out/generator/styleReplacer.d.ts +3 -0
- package/out/generator/styleReplacer.js +68 -0
- package/out/generator/styleReplacer.js.map +1 -0
- package/out/index.d.ts +13 -0
- package/out/index.js +67 -0
- package/out/index.js.map +1 -0
- package/out/manager/diagnostic.d.ts +35 -0
- package/out/manager/diagnostic.js +64 -0
- package/out/manager/diagnostic.js.map +1 -0
- package/out/manager/stepRecorder.d.ts +20 -0
- package/out/manager/stepRecorder.js +114 -0
- package/out/manager/stepRecorder.js.map +1 -0
- package/out/natural/componentData.d.ts +31 -0
- package/out/natural/componentData.js +85 -0
- package/out/natural/componentData.js.map +1 -0
- package/out/natural/genNaturalTS.d.ts +3 -0
- package/out/natural/genNaturalTS.js +87 -0
- package/out/natural/genNaturalTS.js.map +1 -0
- package/out/natural/index.d.ts +4 -0
- package/out/natural/index.js +21 -0
- package/out/natural/index.js.map +1 -0
- package/out/natural/naslStdlibMap.d.ts +1 -0
- package/out/natural/naslStdlibMap.js +35 -0
- package/out/natural/naslStdlibMap.js.map +1 -0
- package/out/natural/prompt/analyzeClaims.d.ts +1 -0
- package/out/natural/prompt/analyzeClaims.js +21 -0
- package/out/natural/prompt/analyzeClaims.js.map +1 -0
- package/out/natural/prompt/executeClaims.d.ts +1 -0
- package/out/natural/prompt/executeClaims.js +73 -0
- package/out/natural/prompt/executeClaims.js.map +1 -0
- package/out/natural/transformTSCode.d.ts +7 -0
- package/out/natural/transformTSCode.js +931 -0
- package/out/natural/transformTSCode.js.map +1 -0
- package/out/sentry/index.d.ts +34 -0
- package/out/sentry/index.js +149 -0
- package/out/sentry/index.js.map +1 -0
- package/out/server/createUiTs.d.ts +17 -0
- package/out/server/createUiTs.js +268 -0
- package/out/server/createUiTs.js.map +1 -0
- package/out/server/entity2LogicNamespace.d.ts +10 -0
- package/out/server/entity2LogicNamespace.js +382 -0
- package/out/server/entity2LogicNamespace.js.map +1 -0
- package/out/server/event.d.ts +30 -0
- package/out/server/event.js +151 -0
- package/out/server/event.js.map +1 -0
- package/out/server/extendBaseNode.d.ts +1 -0
- package/out/server/extendBaseNode.js +605 -0
- package/out/server/extendBaseNode.js.map +1 -0
- package/out/server/formatTsUtils.d.ts +36 -0
- package/out/server/formatTsUtils.js +854 -0
- package/out/server/formatTsUtils.js.map +1 -0
- package/out/server/getConnector.d.ts +14 -0
- package/out/server/getConnector.js +101 -0
- package/out/server/getConnector.js.map +1 -0
- package/out/server/getExtensionModules.d.ts +3 -0
- package/out/server/getExtensionModules.js +34 -0
- package/out/server/getExtensionModules.js.map +1 -0
- package/out/server/getFunctions.d.ts +3 -0
- package/out/server/getFunctions.js +20 -0
- package/out/server/getFunctions.js.map +1 -0
- package/out/server/getInterfaces.d.ts +2 -0
- package/out/server/getInterfaces.js +48 -0
- package/out/server/getInterfaces.js.map +1 -0
- package/out/server/getLogging.d.ts +1 -0
- package/out/server/getLogging.js +9 -0
- package/out/server/getLogging.js.map +1 -0
- package/out/server/getLogics.d.ts +5 -0
- package/out/server/getLogics.js +454 -0
- package/out/server/getLogics.js.map +1 -0
- package/out/server/getMemberIdentifier.d.ts +17 -0
- package/out/server/getMemberIdentifier.js +594 -0
- package/out/server/getMemberIdentifier.js.map +1 -0
- package/out/server/getProcessComponents.d.ts +2 -0
- package/out/server/getProcessComponents.js +13 -0
- package/out/server/getProcessComponents.js.map +1 -0
- package/out/server/getProcesses.d.ts +33 -0
- package/out/server/getProcesses.js +647 -0
- package/out/server/getProcesses.js.map +1 -0
- package/out/server/getScope.d.ts +13 -0
- package/out/server/getScope.js +61 -0
- package/out/server/getScope.js.map +1 -0
- package/out/server/getValidates.d.ts +3 -0
- package/out/server/getValidates.js +14 -0
- package/out/server/getValidates.js.map +1 -0
- package/out/server/index.d.ts +5 -0
- package/out/server/index.js +43 -0
- package/out/server/index.js.map +1 -0
- package/out/server/naslServer.d.ts +375 -0
- package/out/server/naslServer.js +4735 -0
- package/out/server/naslServer.js.map +1 -0
- package/out/server/naslStdlibMap.d.ts +2 -0
- package/out/server/naslStdlibMap.js +54 -0
- package/out/server/naslStdlibMap.js.map +1 -0
- package/out/server/process2LogicNamespace.d.ts +26 -0
- package/out/server/process2LogicNamespace.js +109 -0
- package/out/server/process2LogicNamespace.js.map +1 -0
- package/out/server/translator.d.ts +26 -0
- package/out/server/translator.js +847 -0
- package/out/server/translator.js.map +1 -0
- package/out/service/creator/add.configs.d.ts +1 -0
- package/out/service/creator/add.configs.js +103 -0
- package/out/service/creator/add.configs.js.map +1 -0
- package/out/service/creator/errHandles.d.ts +18 -0
- package/out/service/creator/errHandles.js +71 -0
- package/out/service/creator/errHandles.js.map +1 -0
- package/out/service/creator/index.d.ts +1 -0
- package/out/service/creator/index.js +87 -0
- package/out/service/creator/index.js.map +1 -0
- package/out/service/datasource/api.d.ts +12 -0
- package/out/service/datasource/api.js +14 -0
- package/out/service/datasource/api.js.map +1 -0
- package/out/service/datasource/index.d.ts +2 -0
- package/out/service/datasource/index.js +10 -0
- package/out/service/datasource/index.js.map +1 -0
- package/out/service/defaultErrorMessage.json +98 -0
- package/out/service/logic/api.d.ts +9 -0
- package/out/service/logic/api.js +11 -0
- package/out/service/logic/api.js.map +1 -0
- package/out/service/logic/checktypeSocket.d.ts +5 -0
- package/out/service/logic/checktypeSocket.js +55 -0
- package/out/service/logic/checktypeSocket.js.map +1 -0
- package/out/service/logic/index.d.ts +2 -0
- package/out/service/logic/index.js +10 -0
- package/out/service/logic/index.js.map +1 -0
- package/out/service/storage/api.d.ts +54 -0
- package/out/service/storage/api.js +42 -0
- package/out/service/storage/api.js.map +1 -0
- package/out/service/storage/index.d.ts +2 -0
- package/out/service/storage/index.js +10 -0
- package/out/service/storage/index.js.map +1 -0
- package/out/service/storage/init.d.ts +105 -0
- package/out/service/storage/init.js +1232 -0
- package/out/service/storage/init.js.map +1 -0
- package/out/service/storage/jsoner.d.ts +36 -0
- package/out/service/storage/jsoner.js +148 -0
- package/out/service/storage/jsoner.js.map +1 -0
- package/out/service/storage/map.d.ts +4 -0
- package/out/service/storage/map.js +54 -0
- package/out/service/storage/map.js.map +1 -0
- package/out/service/storage/service.d.ts +25 -0
- package/out/service/storage/service.js +80 -0
- package/out/service/storage/service.js.map +1 -0
- package/out/service/storage/storagePoint.d.ts +17 -0
- package/out/service/storage/storagePoint.js +76 -0
- package/out/service/storage/storagePoint.js.map +1 -0
- package/out/service/video/BaseService.d.ts +7 -0
- package/out/service/video/BaseService.js +61 -0
- package/out/service/video/BaseService.js.map +1 -0
- package/out/service/video/MainCallbackService.d.ts +12 -0
- package/out/service/video/MainCallbackService.js +183 -0
- package/out/service/video/MainCallbackService.js.map +1 -0
- package/out/service/video/VideoTranscribe.d.ts +15 -0
- package/out/service/video/VideoTranscribe.js +96 -0
- package/out/service/video/VideoTranscribe.js.map +1 -0
- package/out/service/video/publishService.d.ts +1 -0
- package/out/service/video/publishService.js +58 -0
- package/out/service/video/publishService.js.map +1 -0
- package/out/templator/genCallComponentLogic.d.ts +17 -0
- package/out/templator/genCallComponentLogic.js +29 -0
- package/out/templator/genCallComponentLogic.js.map +1 -0
- package/out/templator/genCreateBlock.d.ts +10 -0
- package/out/templator/genCreateBlock.js +372 -0
- package/out/templator/genCreateBlock.js.map +1 -0
- package/out/templator/genCurdEditMultipleKeyBlock.d.ts +8 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js +527 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
- package/out/templator/genCurdMultipleKeyBlock.d.ts +61 -0
- package/out/templator/genCurdMultipleKeyBlock.js +1378 -0
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -0
- package/out/templator/genEditTableBlock.d.ts +51 -0
- package/out/templator/genEditTableBlock.js +325 -0
- package/out/templator/genEditTableBlock.js.map +1 -0
- package/out/templator/genEnumSelectBlock.d.ts +10 -0
- package/out/templator/genEnumSelectBlock.js +53 -0
- package/out/templator/genEnumSelectBlock.js.map +1 -0
- package/out/templator/genGetBlock.d.ts +6 -0
- package/out/templator/genGetBlock.js +139 -0
- package/out/templator/genGetBlock.js.map +1 -0
- package/out/templator/genGridViewBlock.d.ts +55 -0
- package/out/templator/genGridViewBlock.js +359 -0
- package/out/templator/genGridViewBlock.js.map +1 -0
- package/out/templator/genListViewBlock.d.ts +19 -0
- package/out/templator/genListViewBlock.js +148 -0
- package/out/templator/genListViewBlock.js.map +1 -0
- package/out/templator/genQueryComponent.d.ts +34 -0
- package/out/templator/genQueryComponent.js +344 -0
- package/out/templator/genQueryComponent.js.map +1 -0
- package/out/templator/genSelectBlock.d.ts +45 -0
- package/out/templator/genSelectBlock.js +415 -0
- package/out/templator/genSelectBlock.js.map +1 -0
- package/out/templator/genTableBlock.d.ts +55 -0
- package/out/templator/genTableBlock.js +421 -0
- package/out/templator/genTableBlock.js.map +1 -0
- package/out/templator/genUpdateBlock.d.ts +6 -0
- package/out/templator/genUpdateBlock.js +414 -0
- package/out/templator/genUpdateBlock.js.map +1 -0
- package/out/templator/index.d.ts +19 -0
- package/out/templator/index.js +38 -0
- package/out/templator/index.js.map +1 -0
- package/out/templator/utils.d.ts +683 -0
- package/out/templator/utils.js +472 -0
- package/out/templator/utils.js.map +1 -0
- package/out/translator/constant.d.ts +6 -0
- package/out/translator/constant.js +10 -0
- package/out/translator/constant.js.map +1 -0
- package/out/translator/index.d.ts +3 -0
- package/out/translator/index.js +20 -0
- package/out/translator/index.js.map +1 -0
- package/out/translator/types.d.ts +49 -0
- package/out/translator/types.js +3 -0
- package/out/translator/types.js.map +1 -0
- package/out/translator/utils.d.ts +44 -0
- package/out/translator/utils.js +241 -0
- package/out/translator/utils.js.map +1 -0
- package/out/utils/cookie.d.ts +9 -0
- package/out/utils/cookie.js +62 -0
- package/out/utils/cookie.js.map +1 -0
- package/out/utils/env.d.ts +2 -0
- package/out/utils/env.js +6 -0
- package/out/utils/env.js.map +1 -0
- package/out/utils/i18nInfo.d.ts +5 -0
- package/out/utils/i18nInfo.js +36 -0
- package/out/utils/i18nInfo.js.map +1 -0
- package/out/utils/index.d.ts +61 -0
- package/out/utils/index.js +386 -0
- package/out/utils/index.js.map +1 -0
- package/out/utils/logger.d.ts +7 -0
- package/out/utils/logger.js +23 -0
- package/out/utils/logger.js.map +1 -0
- package/out/utils/sortTsString.d.ts +1 -0
- package/out/utils/sortTsString.js +44 -0
- package/out/utils/sortTsString.js.map +1 -0
- package/out/utils/string.d.ts +64 -0
- package/out/utils/string.js +153 -0
- package/out/utils/string.js.map +1 -0
- package/out/utils/time-slicing/constant.d.ts +35 -0
- package/out/utils/time-slicing/constant.js +40 -0
- package/out/utils/time-slicing/constant.js.map +1 -0
- package/out/utils/time-slicing/controller.d.ts +53 -0
- package/out/utils/time-slicing/controller.js +294 -0
- package/out/utils/time-slicing/controller.js.map +1 -0
- package/out/utils/time-slicing/index.d.ts +5 -0
- package/out/utils/time-slicing/index.js +26 -0
- package/out/utils/time-slicing/index.js.map +1 -0
- package/out/utils/time-slicing/page-state.d.ts +2 -0
- package/out/utils/time-slicing/page-state.js +14 -0
- package/out/utils/time-slicing/page-state.js.map +1 -0
- package/out/utils/time-slicing/performance.d.ts +11 -0
- package/out/utils/time-slicing/performance.js +50 -0
- package/out/utils/time-slicing/performance.js.map +1 -0
- package/out/utils/time-slicing/runner.d.ts +12 -0
- package/out/utils/time-slicing/runner.js +52 -0
- package/out/utils/time-slicing/runner.js.map +1 -0
- package/out/utils/time-slicing/tool.d.ts +24 -0
- package/out/utils/time-slicing/tool.js +47 -0
- package/out/utils/time-slicing/tool.js.map +1 -0
- package/out/utils/time-slicing/utils.d.ts +62 -0
- package/out/utils/time-slicing/utils.js +47 -0
- package/out/utils/time-slicing/utils.js.map +1 -0
- package/out/utils/time-slicing/wrapper.d.ts +18 -0
- package/out/utils/time-slicing/wrapper.js +55 -0
- package/out/utils/time-slicing/wrapper.js.map +1 -0
- package/out/utils/traverse.d.ts +36 -0
- package/out/utils/traverse.js +143 -0
- package/out/utils/traverse.js.map +1 -0
- package/out/utils/types.d.ts +13 -0
- package/out/utils/types.js +3 -0
- package/out/utils/types.js.map +1 -0
- package/out/utils/window.d.ts +7 -0
- package/out/utils/window.js +14 -0
- package/out/utils/window.js.map +1 -0
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.oql.ts +2 -2
- package/src/concepts/NewComposite__.ts +2 -2
- package/src/server/translator.ts +1 -1
- package/src/templator/genTableBlock.ts +5 -1
- package/test/concepts/new-composite/__snapshots__/getQuickInfoOffset.spec.ts.snap +7 -7
- package/test/concepts/new-composite/__snapshots__/toEmbeddedTS.spec.ts.snap +11 -7
- package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +139 -189
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +9 -1
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkAStructure_ = exports.naslNodeTranslateMessage = exports.translateDiagnosticMessage = exports.outOriginalvalue = void 0;
|
|
4
|
+
const naslServer_1 = require("./naslServer");
|
|
5
|
+
const concepts_1 = require("../concepts");
|
|
6
|
+
const sortTsString_1 = require("../utils/sortTsString");
|
|
7
|
+
const mapAstString = new Map();
|
|
8
|
+
function transformType(tsType) {
|
|
9
|
+
if (tsType === 'string' || tsType === 'String')
|
|
10
|
+
return '字符串';
|
|
11
|
+
else if (tsType === 'number')
|
|
12
|
+
return '数字';
|
|
13
|
+
else if (tsType === 'Integer')
|
|
14
|
+
return '整数';
|
|
15
|
+
else if (tsType === 'Double')
|
|
16
|
+
return '小数';
|
|
17
|
+
else if (tsType === 'Decimal')
|
|
18
|
+
return '小数';
|
|
19
|
+
else if (tsType === 'Long')
|
|
20
|
+
return '整数';
|
|
21
|
+
else if (tsType === 'DateTime')
|
|
22
|
+
return '日期时间';
|
|
23
|
+
else if (tsType === 'Date')
|
|
24
|
+
return '日期';
|
|
25
|
+
else if (tsType === 'Time')
|
|
26
|
+
return '时间';
|
|
27
|
+
else if (tsType === 'boolean' || tsType === 'Boolean')
|
|
28
|
+
return '布尔值';
|
|
29
|
+
else if (tsType === 'unknown')
|
|
30
|
+
return '未知类型';
|
|
31
|
+
else if (tsType === 'Enums')
|
|
32
|
+
return '枚举';
|
|
33
|
+
else if (tsType === 'views')
|
|
34
|
+
return '页面';
|
|
35
|
+
else if (tsType === 'void')
|
|
36
|
+
return '无返回值';
|
|
37
|
+
else if (tsType === '__elements')
|
|
38
|
+
return '页面元素';
|
|
39
|
+
else if (tsType === '__unknown__')
|
|
40
|
+
return '无效';
|
|
41
|
+
else if (tsType === 'extensions')
|
|
42
|
+
return '拓展模块';
|
|
43
|
+
else if (tsType === 'Promise<void>')
|
|
44
|
+
return '未知类型';
|
|
45
|
+
else if ((tsType.startsWith('{') && tsType.endsWith('}')) || (tsType.startsWith('{') && tsType.endsWith('...'))) {
|
|
46
|
+
if (tsType.includes('__name: "AStructure_')) {
|
|
47
|
+
return tsType.replace(/__name: "AStructure_\w{8}";/g, '');
|
|
48
|
+
}
|
|
49
|
+
return '当前节点';
|
|
50
|
+
}
|
|
51
|
+
else if (tsType.endsWith('[]')) {
|
|
52
|
+
return `List<${transformType(tsType.slice(0, -2))}>`;
|
|
53
|
+
}
|
|
54
|
+
else if (tsType.startsWith('<T extends ') && tsType.endsWith('>() => T')) {
|
|
55
|
+
const types = (0, naslServer_1.getDisplayString2Type)(tsType);
|
|
56
|
+
let tsStr = '';
|
|
57
|
+
types.forEach((item, index) => {
|
|
58
|
+
tsStr += index === 0 ? transformType(item) : ' | ' + transformType(item);
|
|
59
|
+
});
|
|
60
|
+
return tsStr;
|
|
61
|
+
}
|
|
62
|
+
else if (tsType.includes(' & ')) {
|
|
63
|
+
const types = tsType.split(' & ');
|
|
64
|
+
let tsStr = '';
|
|
65
|
+
types.forEach((item, index) => {
|
|
66
|
+
tsStr += index === 0 ? transformType(item) : ' | ' + transformType(item);
|
|
67
|
+
});
|
|
68
|
+
return tsStr;
|
|
69
|
+
}
|
|
70
|
+
else if (tsType.includes(' | ')) {
|
|
71
|
+
const types = tsType.split(' | ');
|
|
72
|
+
let tsStr = '';
|
|
73
|
+
types.forEach((item, index) => {
|
|
74
|
+
const newItem = item.replace(/[a-zA-Z_]+/g, (text) => transformType(text));
|
|
75
|
+
tsStr += index === 0 ? newItem : ' 或 ' + newItem;
|
|
76
|
+
});
|
|
77
|
+
return tsStr;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
return tsType;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const NAMESPACE_CONCEPT_MAP = {
|
|
84
|
+
entities: '实体',
|
|
85
|
+
structures: '数据结构',
|
|
86
|
+
enums: '枚举',
|
|
87
|
+
logics: '逻辑',
|
|
88
|
+
interfaces: '接口',
|
|
89
|
+
views: '页面',
|
|
90
|
+
elements: '元素',
|
|
91
|
+
processes: '流程',
|
|
92
|
+
roles: '角色',
|
|
93
|
+
extensions: '扩展模块',
|
|
94
|
+
apis: '接口应用',
|
|
95
|
+
components: '扩展组件',
|
|
96
|
+
properties: '配置参数',
|
|
97
|
+
};
|
|
98
|
+
function transformNamespace(tsNamespace) {
|
|
99
|
+
for (const key in NAMESPACE_CONCEPT_MAP) {
|
|
100
|
+
const value = NAMESPACE_CONCEPT_MAP[key];
|
|
101
|
+
if (tsNamespace.endsWith(key))
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
return tsNamespace;
|
|
105
|
+
}
|
|
106
|
+
function transformMethod(tsMethod) {
|
|
107
|
+
if (tsMethod === 'forEach')
|
|
108
|
+
return 'ForEach';
|
|
109
|
+
else
|
|
110
|
+
return tsMethod;
|
|
111
|
+
}
|
|
112
|
+
function transformIdentifier(identifier) {
|
|
113
|
+
if (NAMESPACE_CONCEPT_MAP[identifier])
|
|
114
|
+
return NAMESPACE_CONCEPT_MAP[identifier];
|
|
115
|
+
else
|
|
116
|
+
return ` ${transformType(identifier)} 上的`;
|
|
117
|
+
}
|
|
118
|
+
function outOriginalvalue(value) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
exports.outOriginalvalue = outOriginalvalue;
|
|
122
|
+
const TS_RULES_TYPE_INCONSISTENCY = [
|
|
123
|
+
/This condition will always return '(.+?)' since the types '(.+?)' and '(.+?)' have no overlap/,
|
|
124
|
+
/Property '(.+?)' is missing in type '(.+?)' but required in type '(.+?)'/,
|
|
125
|
+
/Argument of type '(.+?)' is not assignable to parameter of type '(.+?)'/,
|
|
126
|
+
/Type '(.+?)' is not assignable to type '(.+?)'/,
|
|
127
|
+
/Type '(.+?)' does not satisfy the constraint '(.+?)'/,
|
|
128
|
+
/Type '(.+?)' is missing the following properties from type '(.+?)'/,
|
|
129
|
+
];
|
|
130
|
+
const TS_RULES = [
|
|
131
|
+
{
|
|
132
|
+
re: /Property '(FrontEnd|BackEnd)(.+?)' is private and only accessible within/,
|
|
133
|
+
result: '找不到配置参数$2',
|
|
134
|
+
transforms: [transformType, transformType],
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
re: /Property '(.+?)' is private and only accessible within class '(.+?)'./,
|
|
138
|
+
result: '“$1”是私有的,只能在“$2”中访问。',
|
|
139
|
+
transforms: [transformType, transformType],
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
re: /Object literal may only specify known properties, and '(.+?)' does not exist in type/,
|
|
143
|
+
result: '当前参数$1,不可用。',
|
|
144
|
+
transforms: [transformType],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
re: /Object literal may only specify known properties, but '(.+?)' does not exist in type/,
|
|
148
|
+
result: '当前参数$1,不可用。',
|
|
149
|
+
transforms: [transformType],
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
re: /Argument of type '(.+?)' is not assignable to parameter of type '(.+?)'/,
|
|
153
|
+
result: '参数类型不一致!传入类型:$1,接收类型:$2。',
|
|
154
|
+
transforms: [transformType, transformType],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
re: /Type '(.+?)' is not assignable to type '(.+?)'/,
|
|
158
|
+
result: '左右参数类型不一致!左边类型:$2,右边类型:$1。',
|
|
159
|
+
transforms: [transformType, transformType],
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
re: /Type '(.+?)' does not satisfy the constraint '(.+?)'/,
|
|
163
|
+
result: '参数类型不一致!传入类型:$1,接收类型:$2。',
|
|
164
|
+
transforms: [transformType, transformType],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
re: /This condition will always return '(.+?)' since the types '(.+?)' and '(.+?)' have no overlap/,
|
|
168
|
+
result: '左右参数类型不一致!左边类型:$2,右边类型:$3。',
|
|
169
|
+
transforms: [transformType, transformType, transformType],
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
re: /Type '(.+?)' is missing the following properties from type '(.+?)'/,
|
|
173
|
+
result: '类型不一致!左边类型:$2,右边类型:$1。',
|
|
174
|
+
transforms: [transformType, transformType],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
re: /Property '(.+?)' is missing in type '(.+?)' but required in type '(.+?)'/,
|
|
178
|
+
result: '类型不一致!左边类型:$3,右边类型:$2。',
|
|
179
|
+
transforms: [outOriginalvalue, transformType, transformType],
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
re: /object literal cannot have multiple properties with the same name/,
|
|
183
|
+
result: '不能具有多个名称相同的属性。',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
re: /Invalid character/,
|
|
187
|
+
result: '无效的字符',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
// This expression is not callable.\n Type 'Entity1' has no call signatures.
|
|
191
|
+
re: /This expression is not callable.\s*Type '(.+?)' has no call signatures/,
|
|
192
|
+
result: '此表达式不可用。',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
re: /Expression expected/,
|
|
196
|
+
result: '表达式不能为空!',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
re: /Cannot find name '__(?:IDENTIFIER|LEFT|RIGHT)__'/,
|
|
200
|
+
result: '表达式不能为空!',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
re: /Cannot find name '__(?:FRONTENDVARIABLES)__'/,
|
|
204
|
+
result: '前端全局变量:不可在非页面下使用。',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
re: /Cannot find name '__(?:QueryFieldExpression)__'/,
|
|
208
|
+
result: '数据查询:实体属性不能为空。',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
re: /Cannot find name '__(?:WHERE_MULTIPLE_CONDITION)__'/,
|
|
212
|
+
result: '数据查询:筛选条件不能有多个表达式。',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
re: /Cannot find name '__(?:HAVING_MULTIPLE_CONDITION)__'/,
|
|
216
|
+
result: '数据查询:聚合属性过滤不能有多个表达式。',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
re: /Cannot find name '__(?:EMPTY_AGGREGATE_NAME)__'/,
|
|
220
|
+
result: '数据查询:聚合函数名称不能为空。',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
re: /Cannot find name '__(?:EMPTY_AGGREGATE_ALIAS)__'/,
|
|
224
|
+
result: '数据查询:聚合函数别名不能为空。',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
re: /Cannot find name '__(?:EMPTY_GROUP_BY_NAME)__'/,
|
|
228
|
+
result: '数据查询:分组属性不能为空。',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
re: /Cannot find name '__(?:EMPTY_GROUP_BY_ALIAS)__'/,
|
|
232
|
+
result: '分组属性别名不能为空。',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
re: /Cannot find name '__(?:SQL_GRAMMAR_ERROR)__'/,
|
|
236
|
+
result: 'SQL查询:语句可能有异常。',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
re: /Cannot find name '__(?:OQL_GRAMMAR_ERROR)__'/,
|
|
240
|
+
result: 'SQL查询:语句可能有异常。',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
re: /Cannot find name '__(?:OQL_ALIAS_WARNING)__'/,
|
|
244
|
+
result: 'SQL查询:别名不符合规范。',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
re: /Cannot find name '__(?:OQL_EMPTY_ERROR)__'/,
|
|
248
|
+
result: 'SQL查询:语句不能为空。',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
re: /Cannot find name '__(?:NO_SELECT_TYPE)__'/,
|
|
252
|
+
result: '未选择返回数据类型',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
re: /'_unsupported_syntax_lcap'/,
|
|
256
|
+
result: 'SQL查询:不支持的使用方式',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
re: /Cannot find name '__UsersEmpty__'./,
|
|
260
|
+
result: '任务完成人为空',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
re: /Cannot find name '__assignmentLineEmpty__'./,
|
|
264
|
+
result: '批量赋值没有连线',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
re: /Cannot find name '__ValidationRule__'./,
|
|
268
|
+
result: '校验规则不能为空',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
re: /No value exists in scope for the shorthand property '__(?:IDENTIFIER|LEFT|RIGHT)__'. Either declare one or provide an initializer./,
|
|
272
|
+
result: '用户任务未关联页面',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
re: /No value exists in scope for the shorthand property '__(?:outOfProcess)__'. Either declare one or provide an initializer./,
|
|
276
|
+
result: '节点未关联到流程图',
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
re: /'(.+?)' has no exported member(?: named)? '(.+?)'/,
|
|
280
|
+
result: '找不到接口$1 $2。',
|
|
281
|
+
transforms: [transformNamespace, transformType],
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
re: /Unreachable code detected\./,
|
|
285
|
+
result: '逻辑中有未使用的。',
|
|
286
|
+
},
|
|
287
|
+
// {
|
|
288
|
+
// re: /Property '__slice' does not exist on type '(.+?)'/,
|
|
289
|
+
// result: 'ForEach:循环列表:参数类型不匹配!所需类型:数组、集合等,提供类型:$1',
|
|
290
|
+
// transforms: [transformType],
|
|
291
|
+
// },
|
|
292
|
+
{
|
|
293
|
+
re: /Property '(.+?)' does not exist on type 'typeof (.+?)'/,
|
|
294
|
+
result: '找不到$2 $1。',
|
|
295
|
+
transforms: [transformMethod, transformIdentifier],
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
re: /Property '(.+?)' does not exist on type '(.+?)'/,
|
|
299
|
+
result: '找不到$2 $1。',
|
|
300
|
+
transforms: [transformMethod, transformIdentifier],
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
re: /Cannot find name '(.+?)'. Did you mean '(.+?)'\?/,
|
|
304
|
+
result: '找不到 $1。',
|
|
305
|
+
transforms: [outOriginalvalue, outOriginalvalue],
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
re: /Expected (.+?) type arguments, but got (.+?)/,
|
|
309
|
+
result: '预期 $1 个类型参数,但传入了 $2 个。',
|
|
310
|
+
transforms: [outOriginalvalue, outOriginalvalue],
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
re: /Expected (.+?) arguments, but got (.+?)./,
|
|
314
|
+
result: '预期 $1 个参数,但传入了 $2 个。',
|
|
315
|
+
transforms: [outOriginalvalue, outOriginalvalue],
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
re: /The (.+?)-hand side of an arithmetic operation must be of type (.+?). type./,
|
|
319
|
+
result: '表达式错误!',
|
|
320
|
+
transforms: [outOriginalvalue, outOriginalvalue],
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
re: /Operator '(.+?)' cannot be applied to types '(.+?)' and '(.+?)'./,
|
|
324
|
+
result: '符号:$1 参数类型不匹配!所需类型:基础类型>$2,提供类型:$3。',
|
|
325
|
+
transforms: [outOriginalvalue, transformType, transformType],
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
re: /Object is possibly 'undefined'./,
|
|
329
|
+
result: '所选择的内容未定义。',
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
re: /Cannot find name '(.+?)'./,
|
|
333
|
+
result: '所选择的内容 $1 未定义。',
|
|
334
|
+
transforms: [outOriginalvalue],
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
re: /Duplicate identifier '(.+?)'./,
|
|
338
|
+
result: '当前内容中有重复的 $1,可能会影响使用。',
|
|
339
|
+
transforms: [outOriginalvalue],
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
re: /'__LogicEmpty' is declared but its value is never read./,
|
|
343
|
+
result: '逻辑为空,请编辑内容',
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
re: /'__destinationEmpty__' is declared but its value is never read./,
|
|
347
|
+
result: '任务未关联页面',
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
re: /'__devConfigValueEmpty' is declared but its value is never read./,
|
|
351
|
+
result: '配置参数开发环境取值未设置',
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
re: /'__onlineConfigValueEmpty' is declared but its value is never read./,
|
|
355
|
+
result: '配置参数生产环境取值未设置',
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
re: /Variable '(.+?)' implicitly has an 'any' type./,
|
|
359
|
+
result: '$1推导不出类型!请连线或手动设置',
|
|
360
|
+
transforms: [transformType],
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
re: /'(.+?)' refers to a value, but is being used as a type here. Did you mean 'typeof (.+?)'?/,
|
|
364
|
+
result: '$1未初始化!请连线',
|
|
365
|
+
transforms: [transformType],
|
|
366
|
+
},
|
|
367
|
+
];
|
|
368
|
+
const POST_RULES = [
|
|
369
|
+
{
|
|
370
|
+
re: /__IDENTIFIER__/g,
|
|
371
|
+
result: 'undefined',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
re: /Integer|"Integer"/g,
|
|
375
|
+
result: '整数',
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
re: /Long|"Long"/g,
|
|
379
|
+
result: '整数',
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
re: /Double|"Double"/g,
|
|
383
|
+
result: '小数',
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
re: /Decimal|"Decimal"/g,
|
|
387
|
+
result: '小数',
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
re: /String|"String"/g,
|
|
391
|
+
result: '字符串',
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
re: /Boolean|"Boolean"/g,
|
|
395
|
+
result: '布尔值',
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
re: /never/g,
|
|
399
|
+
result: '未知类型',
|
|
400
|
+
},
|
|
401
|
+
// 匿名数据结构去掉冗余展示 __name: "AStructure_\w{8}"
|
|
402
|
+
{
|
|
403
|
+
re: /__name: "AStructure_\w{8}";/g,
|
|
404
|
+
result: '',
|
|
405
|
+
},
|
|
406
|
+
];
|
|
407
|
+
Object.keys(NAMESPACE_CONCEPT_MAP).forEach((key) => {
|
|
408
|
+
POST_RULES.push({
|
|
409
|
+
re: new RegExp(key, 'g'),
|
|
410
|
+
result: NAMESPACE_CONCEPT_MAP[key],
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
function translateDiagnosticMessage(message) {
|
|
414
|
+
// 业务组件先处理
|
|
415
|
+
const businessComponent = /Namespace 'app.frontendTypes.(.+?).businessComponents' has no exported member '(.+?)'./.exec(message);
|
|
416
|
+
if (businessComponent?.[1] && businessComponent?.[2]) {
|
|
417
|
+
return `找不到${businessComponent?.[1]}端下的业务组件${businessComponent?.[2]}`;
|
|
418
|
+
}
|
|
419
|
+
for (const rule of TS_RULES) {
|
|
420
|
+
const cap = rule.re.exec(message);
|
|
421
|
+
if (cap) {
|
|
422
|
+
return rule.result.replace(/\$(\d+)/g, (m, index) => rule.transforms[index - 1](cap[index]));
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return message;
|
|
426
|
+
}
|
|
427
|
+
exports.translateDiagnosticMessage = translateDiagnosticMessage;
|
|
428
|
+
/**
|
|
429
|
+
* 节点和ts 报错结合,转成更精准的ts报错
|
|
430
|
+
* @param minRange
|
|
431
|
+
* @param tsErrorDetail 报错具体信息
|
|
432
|
+
* @returns
|
|
433
|
+
*/
|
|
434
|
+
function naslNodeTranslateMessage(minRange, tsErrorDetail) {
|
|
435
|
+
const text = tsErrorDetail?.originalDiagnostic?.text;
|
|
436
|
+
let node = minRange?.node;
|
|
437
|
+
const logicAncestor = node.getAncestor('Logic') || {};
|
|
438
|
+
const { parentNode = { concept: '' } } = logicAncestor;
|
|
439
|
+
// const isFELogic = ['BindEvent', 'View'].includes(parentNode.concept);
|
|
440
|
+
// 有一些节点报错信息不向外暴露,缺失一些原生标签等等的展示
|
|
441
|
+
if (node instanceof concepts_1.View || node instanceof concepts_1.BusinessComponent || node instanceof concepts_1.ViewElement) {
|
|
442
|
+
if (text.startsWith(`'nasl.ui' has no exported member named `)) {
|
|
443
|
+
return null;
|
|
444
|
+
}
|
|
445
|
+
else if (text.startsWith(`Property '`) && text.includes(`does not exist on type 'typeof ui'.`)) {
|
|
446
|
+
return null;
|
|
447
|
+
}
|
|
448
|
+
else if (text.startsWith(`Namespace 'nasl.ui' has no exported member `)) {
|
|
449
|
+
return null;
|
|
450
|
+
}
|
|
451
|
+
else if (text.startsWith(`Function expression, which lacks return-type annotation, implicitly has an 'any[]' return type.`)) {
|
|
452
|
+
return null;
|
|
453
|
+
}
|
|
454
|
+
else if (/Property 'businessComponents' does not exist on type 'typeof (pc|h5)'./.exec(text)) {
|
|
455
|
+
return null;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
// 处理bindevent参数没传递的报错
|
|
459
|
+
if (/Expected (.+?) arguments, but got (.+?)./.exec(text)) {
|
|
460
|
+
// bindevent本身现在就不传参数
|
|
461
|
+
if (node instanceof concepts_1.BindEvent) {
|
|
462
|
+
return null;
|
|
463
|
+
}
|
|
464
|
+
if (node instanceof concepts_1.ProcessElement && (node.isUserTask || node.type === 'AutoTask' || node.type === 'StartNoneEvent')) {
|
|
465
|
+
const reg = /Expected (.+?) arguments, but got (.+?)./.exec(text);
|
|
466
|
+
let u;
|
|
467
|
+
switch (node.type) {
|
|
468
|
+
case 'UserTask':
|
|
469
|
+
u = '用户任务';
|
|
470
|
+
break;
|
|
471
|
+
case 'AutoTask':
|
|
472
|
+
u = '自动任务';
|
|
473
|
+
break;
|
|
474
|
+
case 'ApprovalTask':
|
|
475
|
+
u = '审批任务';
|
|
476
|
+
break;
|
|
477
|
+
case 'MultiApprovalTask':
|
|
478
|
+
u = '多人审批任务';
|
|
479
|
+
break;
|
|
480
|
+
case 'InitiateTask':
|
|
481
|
+
u = '发起任务';
|
|
482
|
+
break;
|
|
483
|
+
default:
|
|
484
|
+
u = '任务';
|
|
485
|
+
}
|
|
486
|
+
if (reg[2] === '0') {
|
|
487
|
+
tsErrorDetail.message = `${u}出口顺序流个数不能是0`;
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
tsErrorDetail.message = `${u}出口顺序流个数不能大于1`;
|
|
491
|
+
}
|
|
492
|
+
if (node.type === 'StartNoneEvent') {
|
|
493
|
+
tsErrorDetail.message = `开始节点只能有一个出口顺序流`;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
if (node instanceof concepts_1.ProcessElement && ['ExclusiveGateway', 'ParallelGateway', 'InclusiveGateway'].includes(node.type)) {
|
|
497
|
+
const reg = /Expected (.+?) arguments, but got (.+?)./.exec(text);
|
|
498
|
+
let u = '排他网关';
|
|
499
|
+
if (node.type === 'ParallelGateway') {
|
|
500
|
+
u = '并行网关';
|
|
501
|
+
}
|
|
502
|
+
else if (node.type === 'InclusiveGateway') {
|
|
503
|
+
u = '包容网关';
|
|
504
|
+
}
|
|
505
|
+
if (reg[2] === '0') {
|
|
506
|
+
tsErrorDetail.message = `${u}出口顺序流和入口顺序流个数不能等于0`;
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
tsErrorDetail.message = `${u}出口顺序流和入口顺序流个数同时等于1,该${u}没有意义`;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
// 因为缺少参数时候有可能有特殊情况,因为原本少的多了就会找到 callLogic上,
|
|
514
|
+
// 但是只少一个的时候就会找到准确的Argument上 需要特殊处理, ui层就可以统一处理
|
|
515
|
+
if (/Expected (.+?) arguments, but got (.+?)./.exec(text) && node.getAncestor('CallLogic')) {
|
|
516
|
+
node = node.getAncestor('CallLogic');
|
|
517
|
+
}
|
|
518
|
+
// 赋值左右侧类型不一致, 把文字换一下
|
|
519
|
+
if (/Argument of type '(.+?)' is not assignable to parameter of type '(.+?)'/.exec(text)) {
|
|
520
|
+
if (node instanceof concepts_1.OqlQueryComponent) {
|
|
521
|
+
tsErrorDetail.message = tsErrorDetail.message
|
|
522
|
+
.replace('参数类型不一致!传入类型:', '类型不一致!传入类型:')
|
|
523
|
+
.replace('接收类型:', '期望类型:');
|
|
524
|
+
}
|
|
525
|
+
else if (node.parentNode instanceof concepts_1.Assignment) {
|
|
526
|
+
// OQL 的返回类型报错需要转换翻译,其内部 SQL 语句的参数类型报错不转换翻译
|
|
527
|
+
if (node instanceof concepts_1.OqlQueryComponent) {
|
|
528
|
+
if (node.getCurrentSource().currentSource.start.line + 1 === tsErrorDetail.originalDiagnostic.start.line) {
|
|
529
|
+
tsErrorDetail.message = tsErrorDetail.message
|
|
530
|
+
.replace('参数类型不一致!传入类型:', '赋值:类型不一致!右边类型:')
|
|
531
|
+
.replace('接收类型:', '左边类型:');
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
// node = node.getAncestor('CallLogic');
|
|
536
|
+
tsErrorDetail.message = tsErrorDetail.message
|
|
537
|
+
.replace('参数类型不一致!传入类型:', '赋值:类型不一致!右边类型:')
|
|
538
|
+
.replace('接收类型:', '左边类型:');
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
else if (node.parentNode instanceof concepts_1.NewMap) {
|
|
542
|
+
if (text.includes(`is not assignable to parameter of type 'None'`)) {
|
|
543
|
+
const cap = /Argument of type '(.+?)' is not assignable to parameter of type '(.+?)'/.exec(text);
|
|
544
|
+
tsErrorDetail.message = tsErrorDetail.message = `参数类型不一致!传入类型:${transformType(cap[1])},接收类型:字符串 或 布尔值 或 整数 或 小数`;
|
|
545
|
+
}
|
|
546
|
+
else if (text.includes(`parameter of type 'never'`)) {
|
|
547
|
+
tsErrorDetail.message = '自动推导不出类型!newMap中有未知类型';
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
else if (node.parentNode instanceof concepts_1.NewList && text.includes(`parameter of type 'never'`)) {
|
|
551
|
+
tsErrorDetail.message = '自动推导不出类型!newList中有未知类型';
|
|
552
|
+
}
|
|
553
|
+
else if (node instanceof concepts_1.ProcessOutcome || node instanceof concepts_1.ProcessOutcomes) {
|
|
554
|
+
const cap = /Argument of type '(.+?)' is not assignable to parameter of type '(.+?)'/.exec(text);
|
|
555
|
+
const selectComes = cap[1].split(' | ');
|
|
556
|
+
const currentComes = cap[2].split(' | ');
|
|
557
|
+
if (node instanceof concepts_1.ProcessOutcome) {
|
|
558
|
+
tsErrorDetail.message = `流向出口不存在,${selectComes.map((item) => item).join(',')}出口流不属于[${currentComes.map((item) => item).join(',')}]当中的某个流`;
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
tsErrorDetail.message = `流向出口不存在,${selectComes.map((item) => item).join(',')}有错误的出口流`;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
if (/Property '__slice' does not exist on type '(.+?)'/.exec(text)) {
|
|
566
|
+
const cap = /Property '__slice' does not exist on type '(.+?)'/.exec(text);
|
|
567
|
+
if (cap) {
|
|
568
|
+
if (node instanceof concepts_1.ForEachStatement) {
|
|
569
|
+
tsErrorDetail.message = `ForEach:循环列表:参数类型不匹配!所需类型:数组、集合等,提供类型:$1`.replace(/\$(\d+)/g, (m, index) => transformType(cap[index]));
|
|
570
|
+
}
|
|
571
|
+
else if (node instanceof concepts_1.Paginate) {
|
|
572
|
+
tsErrorDetail.message = `分页:分页对象类型不匹配!所需类型:数组、集合等,提供类型:$1`.replace(/\$(\d+)/g, (m, index) => transformType(cap[index]));
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
if (node instanceof concepts_1.Argument || node instanceof concepts_1.Anchor) {
|
|
577
|
+
// if (/Type '(.+?)' is not assignable to type '(.+?)'./.exec(text)) {
|
|
578
|
+
// }
|
|
579
|
+
// Argument在callInterface上的报错放到内部
|
|
580
|
+
if (node.expression) {
|
|
581
|
+
node = node.expression;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
if (node instanceof concepts_1.AnonymousFunction) {
|
|
585
|
+
if (node.body)
|
|
586
|
+
node = node.body;
|
|
587
|
+
}
|
|
588
|
+
else if (node instanceof concepts_1.Function) {
|
|
589
|
+
if (node.returnExpression)
|
|
590
|
+
node = node.returnExpression;
|
|
591
|
+
}
|
|
592
|
+
// 处理一些复制过来的内容 Identifier或者MemberExpression内容缺失,错误要像上冒
|
|
593
|
+
if (node instanceof concepts_1.Identifier || node instanceof concepts_1.MemberExpression) {
|
|
594
|
+
if (node.parentNode instanceof concepts_1.MemberExpression) {
|
|
595
|
+
let parentNode = node;
|
|
596
|
+
while (parentNode && parentNode.parentNode instanceof concepts_1.MemberExpression) {
|
|
597
|
+
parentNode = parentNode.parentNode;
|
|
598
|
+
}
|
|
599
|
+
node = parentNode || node;
|
|
600
|
+
let str = tsErrorDetail.message;
|
|
601
|
+
str = node.constructor.nodeTitle + ':' + str;
|
|
602
|
+
tsErrorDetail.message = str;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
// 类型报错的,需要放到上一级
|
|
606
|
+
if (/'(.+?)' has no exported member(?: named)? '(.+?)'/.exec(text) || /Property '(.+?)' does not exist on type '(.+?)'./.exec(text)) {
|
|
607
|
+
if (node instanceof concepts_1.TypeAnnotation) {
|
|
608
|
+
// 变量type的报错放到type本身上
|
|
609
|
+
// node = node.parentNode;
|
|
610
|
+
let str = tsErrorDetail.message;
|
|
611
|
+
if (node) {
|
|
612
|
+
str = node.parentNode.constructor.nodeTitle + ':' + str;
|
|
613
|
+
}
|
|
614
|
+
tsErrorDetail.message = str;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* 所有问题的报错处理具体信息
|
|
619
|
+
* 转成一个最合理的文案
|
|
620
|
+
*/
|
|
621
|
+
if (/^Cannot find name '__(?:IDENTIFIER|LEFT|RIGHT)__'\.$/.exec(text)) {
|
|
622
|
+
if (node instanceof concepts_1.IfStatement || node instanceof concepts_1.SwitchCase || node instanceof concepts_1.WhileStatement) {
|
|
623
|
+
tsErrorDetail.message = node.constructor.nodeTitle + ':参数不能为空!所需类型:基础类型>布尔值';
|
|
624
|
+
}
|
|
625
|
+
else if (node instanceof concepts_1.ForEachStatement) {
|
|
626
|
+
tsErrorDetail.message = 'ForEach:结束值:不能为空!所需类型:基础类型>整数';
|
|
627
|
+
}
|
|
628
|
+
else if (node instanceof concepts_1.UnaryExpression) {
|
|
629
|
+
tsErrorDetail.message = '!:参数不能为空!';
|
|
630
|
+
}
|
|
631
|
+
else if (node instanceof concepts_1.Assignment) {
|
|
632
|
+
tsErrorDetail.message = '赋值:参数不能为空!';
|
|
633
|
+
}
|
|
634
|
+
else if (node instanceof concepts_1.BatchAssignment) {
|
|
635
|
+
tsErrorDetail.message = '批量赋值:参数不能为空';
|
|
636
|
+
}
|
|
637
|
+
else if ((node instanceof concepts_1.Argument && node.parentNode instanceof concepts_1.CallInterface) || node instanceof concepts_1.CallInterface) {
|
|
638
|
+
tsErrorDetail.message = '调用接口:参数不能为空!';
|
|
639
|
+
}
|
|
640
|
+
else if ((node instanceof concepts_1.Argument && node.parentNode instanceof concepts_1.CallFunction) || node instanceof concepts_1.CallFunction) {
|
|
641
|
+
tsErrorDetail.message = '调用函数:参数不能为空!';
|
|
642
|
+
}
|
|
643
|
+
else if ((node instanceof concepts_1.Argument && node.parentNode instanceof concepts_1.CallLogic) || node instanceof concepts_1.CallLogic) {
|
|
644
|
+
tsErrorDetail.message = '调用逻辑:参数不能为空!';
|
|
645
|
+
}
|
|
646
|
+
else if (node instanceof concepts_1.ProcessOutcome || node instanceof concepts_1.Function || node instanceof concepts_1.MatchCase) {
|
|
647
|
+
tsErrorDetail.message = node.constructor.nodeTitle + ':不能为空!';
|
|
648
|
+
}
|
|
649
|
+
else if (node instanceof concepts_1.NewMap) {
|
|
650
|
+
tsErrorDetail.message = 'Map推导不出类型!请手动设置!';
|
|
651
|
+
}
|
|
652
|
+
else if (node instanceof concepts_1.NewList) {
|
|
653
|
+
tsErrorDetail.message = 'List推导不出类型!请手动设置!';
|
|
654
|
+
}
|
|
655
|
+
else if (node instanceof concepts_1.Argument) {
|
|
656
|
+
let str = tsErrorDetail.message;
|
|
657
|
+
str = node.parentNode.constructor.nodeTitle + ':' + str;
|
|
658
|
+
tsErrorDetail.message = str;
|
|
659
|
+
}
|
|
660
|
+
else if (node instanceof concepts_1.TypeAnnotation) {
|
|
661
|
+
// 如果是TypeAnnotation 嵌套TypeAnnotation,就往上冒,多是那种T嵌套的
|
|
662
|
+
let str = tsErrorDetail.message;
|
|
663
|
+
// TypeAnnotation要冒泡到最上面
|
|
664
|
+
while (node.parentNode && node.parentNode instanceof concepts_1.TypeAnnotation) {
|
|
665
|
+
node = node.parentNode;
|
|
666
|
+
}
|
|
667
|
+
str = node.parentNode.constructor.nodeTitle + ':' + str;
|
|
668
|
+
tsErrorDetail.message = str;
|
|
669
|
+
}
|
|
670
|
+
else if (node instanceof concepts_1.Identifier) {
|
|
671
|
+
// 根据父级内容推断当前缺少啥
|
|
672
|
+
const identifierToString = (node) => {
|
|
673
|
+
let str = tsErrorDetail.message;
|
|
674
|
+
if (node.parentNode instanceof concepts_1.Assignment) {
|
|
675
|
+
str = '赋值:参数不能为空!';
|
|
676
|
+
}
|
|
677
|
+
else if (node.parentNode instanceof concepts_1.Argument && node.parentNode.parentNode instanceof concepts_1.CallLogic) {
|
|
678
|
+
str = '调用逻辑:参数不能为空!';
|
|
679
|
+
}
|
|
680
|
+
else if (node.parentNode instanceof concepts_1.ValidationRule) {
|
|
681
|
+
str = '验证逻辑:验证对象不能为空!';
|
|
682
|
+
}
|
|
683
|
+
else {
|
|
684
|
+
str = node.parentNode.constructor.nodeTitle + ':' + str;
|
|
685
|
+
tsErrorDetail.message = str;
|
|
686
|
+
}
|
|
687
|
+
return str;
|
|
688
|
+
};
|
|
689
|
+
tsErrorDetail.message = identifierToString(node);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
if (/'__UpdateNoProperty__' is declared but its value is never read./.exec(text)) {
|
|
693
|
+
tsErrorDetail.message = '局部更新:未选择任何属性';
|
|
694
|
+
const callLogic = node?.parentNode?.parentNode?.parentNode;
|
|
695
|
+
const bodyArgument = callLogic?.arguments?.find((item) => item.keyword === 'body');
|
|
696
|
+
node = bodyArgument?.expression;
|
|
697
|
+
}
|
|
698
|
+
// 左右类型不一致的,把上级信息带上
|
|
699
|
+
if (/^Type '(.+?)' is not assignable to type '(.+?)'\./.exec(text) ||
|
|
700
|
+
/^This condition will always return '(.+?)' since the types '(.+?)' and '(.+?)' have no overlap./.exec(text)) {
|
|
701
|
+
if (node instanceof concepts_1.OqlQueryComponent) {
|
|
702
|
+
// SQL语句:查询字段重复:id
|
|
703
|
+
let cap = /^Type '(.+?)' is not assignable to type 'true'\./.exec(text);
|
|
704
|
+
if (cap) {
|
|
705
|
+
const errorMsg = 'SQL查询:查询字段重复:$1'.replace(/\$(\d+)/g, (m, index) => transformType(cap[index]));
|
|
706
|
+
tsErrorDetail.message = errorMsg;
|
|
707
|
+
}
|
|
708
|
+
else {
|
|
709
|
+
cap = /^Type '(.+?)' is not assignable to type '(.+?)'\./.exec(text);
|
|
710
|
+
if (cap) {
|
|
711
|
+
const errorMsg = 'SQL查询:返回类型不一致:选择类型:$2,返回类型:$1'.replace(/\$(\d+)/g, (m, index) => transformType(cap[index]));
|
|
712
|
+
tsErrorDetail.message = errorMsg;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
else {
|
|
717
|
+
let str = tsErrorDetail.message;
|
|
718
|
+
str = node.parentNode.constructor.nodeTitle + ':' + str;
|
|
719
|
+
tsErrorDetail.message = str;
|
|
720
|
+
if (node.parentNode instanceof concepts_1.AnonymousFunction) {
|
|
721
|
+
// 匿名函数:左右参数类型不一致!左边类型:布尔值,右边类型:整数。
|
|
722
|
+
tsErrorDetail.message = tsErrorDetail.message.replace('左右参数', '返回值').replace('左边类型', '接收类型').replace('右边类型', '传入类型');
|
|
723
|
+
}
|
|
724
|
+
else if ([`Type 'void' is not assignable to type 'never'.`, `Type 'any' is not assignable to type 'never'.`].includes(text)) {
|
|
725
|
+
tsErrorDetail.message = `${node.name}推导不出类型!请连线或手动设置`;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
if (/Property '(.+?)' is missing in type '(.+?)' but required in type '(.+?)'/.exec(text)) {
|
|
730
|
+
if (node.parentNode instanceof concepts_1.NewComposite) {
|
|
731
|
+
tsErrorDetail.message = tsErrorDetail.message
|
|
732
|
+
.replace('类型不一致', '接收与传入类型不一致')
|
|
733
|
+
.replace('左边类型', '左边接收类型')
|
|
734
|
+
.replace('右边类型', '右边传入类型');
|
|
735
|
+
tsErrorDetail.message = node.name + tsErrorDetail.message;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
// 参数类型不一致!
|
|
739
|
+
if (/^Type '(.+?)' does not satisfy the constraint '(.+?)'\./.exec(text)) {
|
|
740
|
+
// match
|
|
741
|
+
if ((node instanceof concepts_1.TypeAnnotation && node.parentNode instanceof concepts_1.MatchCase) || node instanceof concepts_1.MatchCase) {
|
|
742
|
+
return null;
|
|
743
|
+
// ide进行计算
|
|
744
|
+
// const reg = /^Type '(.+?)' does not satisfy the constraint '(.+?)'\./.exec(text);
|
|
745
|
+
// if (reg[1] && reg[2]) {
|
|
746
|
+
// tsErrorDetail.message = '匹配:类型不一致! 传入类型:' + transformType(reg[1]) + ',接收类型:' + transformType(reg[2]);
|
|
747
|
+
// if (reg[2] === 'never') {
|
|
748
|
+
// tsErrorDetail.message = '匹配:类型不一致! 传入类型:' + transformType(reg[1]) + ',接收类型:无可以接收的类型';
|
|
749
|
+
// }
|
|
750
|
+
// }
|
|
751
|
+
// tsErrorDetail.titleTip = '该类型无法满足条件';
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
// 左右类型不一致的,把上级信息带上
|
|
755
|
+
if (/^A type literal property cannot have an initializer./.exec(text)) {
|
|
756
|
+
if (node instanceof concepts_1.Param)
|
|
757
|
+
return null;
|
|
758
|
+
}
|
|
759
|
+
if (/'__LogicEmpty' is declared but its value is never read./.exec(text)) {
|
|
760
|
+
if (node instanceof concepts_1.Logic) {
|
|
761
|
+
node.isSmpty = true;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
if (/Variable '(.+?)' implicitly has an 'any' type./.exec(text) || /Variable '(.+?)' implicitly has an 'any\[\]' type./.exec(text)) {
|
|
765
|
+
if (node.parentNode instanceof concepts_1.NewComposite) {
|
|
766
|
+
//
|
|
767
|
+
}
|
|
768
|
+
else if (node.parentNode instanceof concepts_1.NewList) {
|
|
769
|
+
tsErrorDetail.message = tsErrorDetail.message.replace('!请连线或手动设置', '');
|
|
770
|
+
}
|
|
771
|
+
else if (node.parentNode instanceof concepts_1.NewMap) {
|
|
772
|
+
tsErrorDetail.message = tsErrorDetail.message.replace('!请连线或手动设置', '');
|
|
773
|
+
}
|
|
774
|
+
else {
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
if (checkAStructure_(text)) {
|
|
779
|
+
return null;
|
|
780
|
+
}
|
|
781
|
+
for (const rule of POST_RULES) {
|
|
782
|
+
if (rule.re.test(tsErrorDetail.message)) {
|
|
783
|
+
tsErrorDetail.message = tsErrorDetail.message.replace(rule.re, (value, index, oldStr) => {
|
|
784
|
+
// 处理匹配到的值的左右的内容,是不是还是字母,要是字母就原样输出,防止展示问题
|
|
785
|
+
try {
|
|
786
|
+
const leftCode = index - 1 < 0 ? '' : oldStr[index - 1];
|
|
787
|
+
const rightCode = oldStr[index + value.length] || '';
|
|
788
|
+
if (/^[A-Za-z]+$/.test(leftCode) || /^[A-Za-z]+$/.test(rightCode)) {
|
|
789
|
+
return value;
|
|
790
|
+
}
|
|
791
|
+
else {
|
|
792
|
+
return rule.result;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
catch (err) {
|
|
796
|
+
return value;
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
if (node && tsErrorDetail) {
|
|
802
|
+
node.tsErrorDetail = tsErrorDetail;
|
|
803
|
+
}
|
|
804
|
+
return {
|
|
805
|
+
node,
|
|
806
|
+
...tsErrorDetail,
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
exports.naslNodeTranslateMessage = naslNodeTranslateMessage;
|
|
810
|
+
function checkAStructure_(errorText) {
|
|
811
|
+
const index = TS_RULES_TYPE_INCONSISTENCY.findIndex((item) => item.exec(errorText));
|
|
812
|
+
if (index !== -1) {
|
|
813
|
+
const rule = TS_RULES_TYPE_INCONSISTENCY[index];
|
|
814
|
+
const cap = rule.exec(errorText);
|
|
815
|
+
if (rule === TS_RULES_TYPE_INCONSISTENCY[0] || rule === TS_RULES_TYPE_INCONSISTENCY[1]) {
|
|
816
|
+
cap.splice(1, 1);
|
|
817
|
+
}
|
|
818
|
+
if (cap[1].includes('__name: "AStructure_') &&
|
|
819
|
+
cap[2].includes('__name: "AStructure_')) {
|
|
820
|
+
const x = (0, sortTsString_1.sortTsString)(transformType(cap[1]));
|
|
821
|
+
const y = (0, sortTsString_1.sortTsString)(transformType(cap[2]));
|
|
822
|
+
if (x === null || y === null) {
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
825
|
+
if (x === y) {
|
|
826
|
+
return true;
|
|
827
|
+
}
|
|
828
|
+
else if (mapAstString.get(x) === y || mapAstString.get(y) === x) {
|
|
829
|
+
return true;
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
const regex = /Type '"AStructure_(.*)' is not assignable to type '"AStructure_(.*)'/;
|
|
833
|
+
const nameError = regex.exec(errorText);
|
|
834
|
+
const length1 = x.match(/:/g) ? x.match(/:/g).length : -1;
|
|
835
|
+
const length2 = y.match(/:/g) ? y.match(/:/g).length : -2;
|
|
836
|
+
if (nameError && length1 === length2) {
|
|
837
|
+
mapAstString.set(x, y);
|
|
838
|
+
mapAstString.set(y, x);
|
|
839
|
+
return true;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
return false;
|
|
845
|
+
}
|
|
846
|
+
exports.checkAStructure_ = checkAStructure_;
|
|
847
|
+
//# sourceMappingURL=translator.js.map
|