@lcap/nasl 3.7.1-beta.1 → 3.7.1-beta.3
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/common/BaseNode.js +3 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +1 -1
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.js +9 -27
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +1 -1
- package/out/concepts/Argument__.js +2 -6
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/AssigneeV2__.js +0 -2
- package/out/concepts/AssigneeV2__.js.map +1 -1
- package/out/concepts/Assignee__.js +0 -2
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.js +0 -2
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js +2 -4
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +1 -1
- package/out/concepts/Attribute__.js +7 -23
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.js +1 -3
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +7 -7
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.js +1 -3
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +2 -2
- package/out/concepts/BackendVariable__.js +3 -9
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.js +1 -3
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +1 -3
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js +4 -4
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +6 -58
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +6 -6
- package/out/concepts/BindDirective__.js +7 -21
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +3 -3
- package/out/concepts/BindEvent__.js +3 -13
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.js +1 -3
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js +1 -3
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +11 -19
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +8 -10
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallConnector__.js +2 -6
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallEvent__.js +2 -6
- package/out/concepts/CallEvent__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +1 -1
- package/out/concepts/CallFunction__.js +3 -13
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +1 -1
- package/out/concepts/CallInterface__.js +3 -9
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +4 -4
- package/out/concepts/CallLogic__.js +8 -23
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +2 -2
- package/out/concepts/CallQueryComponent__.js +2 -13
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.js +1 -3
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +5 -15
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js +1 -3
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +0 -1
- package/out/concepts/ConfigPropertyValue__.js +2 -13
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js +3 -9
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.js +3 -9
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorLogic__.js +1 -3
- package/out/concepts/ConnectorLogic__.js.map +1 -1
- package/out/concepts/ConnectorTriggerLauncher__.js +6 -9
- package/out/concepts/ConnectorTriggerLauncher__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.js +2 -6
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.js +3 -9
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.js +2 -6
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/CountersignPolicyV2__.js +1 -3
- package/out/concepts/CountersignPolicyV2__.js.map +1 -1
- package/out/concepts/CountersignPolicy__.js +1 -3
- package/out/concepts/CountersignPolicy__.js.map +1 -1
- package/out/concepts/DataSource__.js +6 -12
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.js +6 -6
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/Destination__.js +3 -9
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +2 -2
- package/out/concepts/EntityIndex__.js +4 -13
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +10 -12
- package/out/concepts/EntityProperty__.js +25 -44
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +2 -2
- package/out/concepts/Entity__.js +7 -17
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +1 -1
- package/out/concepts/EnumItem__.js +1 -7
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.js +3 -9
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/EventDeclaration__.js +4 -16
- package/out/concepts/EventDeclaration__.js.map +1 -1
- package/out/concepts/Event__.js +5 -15
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +1 -1
- package/out/concepts/ExternalDestination__.js +1 -3
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/FieldPermissionV2__.js +2 -6
- package/out/concepts/FieldPermissionV2__.js.map +1 -1
- package/out/concepts/FlowConditionV2__.js +1 -3
- package/out/concepts/FlowConditionV2__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +1 -1
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.js +2 -6
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +0 -4
- package/out/concepts/FrontendType__.js +2 -15
- package/out/concepts/FrontendType__.js.map +1 -1
- package/out/concepts/FrontendVariable__.js +1 -3
- package/out/concepts/FrontendVariable__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +0 -2
- package/out/concepts/Frontend__.js +8 -31
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js +2 -6
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/HistoryProcessV2__.js +4 -12
- package/out/concepts/HistoryProcessV2__.js.map +1 -1
- package/out/concepts/I18nInfo__.d.ts +1 -1
- package/out/concepts/I18nInfo__.js +5 -9
- package/out/concepts/I18nInfo__.js.map +1 -1
- package/out/concepts/IconSetter__.js +1 -7
- package/out/concepts/IconSetter__.js.map +1 -1
- package/out/concepts/Identifier__.js +7 -7
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/ImportedInterface__.d.ts +1 -1
- package/out/concepts/ImportedInterface__.js +1 -3
- package/out/concepts/ImportedInterface__.js.map +1 -1
- package/out/concepts/InputSetter__.js +1 -7
- package/out/concepts/InputSetter__.js.map +1 -1
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js +4 -12
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js +8 -18
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.js +1 -3
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.js +3 -9
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicDeclaration__.js +3 -13
- package/out/concepts/LogicDeclaration__.js.map +1 -1
- package/out/concepts/LogicItem__.js +5 -31
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +6 -6
- package/out/concepts/Logic__.js +25 -36
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +2 -2
- package/out/concepts/MatchCase__.js +11 -11
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.js +1 -3
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +6 -2
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +1 -1
- package/out/concepts/MetadataType__.js +4 -12
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/MicroApp__.js +7 -21
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.d.ts +2 -2
- package/out/concepts/Module__.js +8 -24
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.js +4 -12
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.js +6 -10
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +1 -1
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +1 -1
- package/out/concepts/NewMap__.js +5 -2
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/NumberInputSetter__.js +5 -35
- package/out/concepts/NumberInputSetter__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js +1 -3
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OperatePermissionV2__.js +4 -12
- package/out/concepts/OperatePermissionV2__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +1 -1
- package/out/concepts/OqlQueryComponent__.js +2 -6
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +12 -26
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ParamWithGroup__.js +2 -6
- package/out/concepts/ParamWithGroup__.js.map +1 -1
- package/out/concepts/Param__.d.ts +1 -1
- package/out/concepts/Param__.js +2 -14
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.js +2 -6
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessBindV2__.js +2 -6
- package/out/concepts/ProcessBindV2__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js +4 -12
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.js +8 -24
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +10 -22
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.js +1 -3
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.js +0 -1
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/ProcessV2__.js +6 -18
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/Process__.js +3 -9
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/PropDeclaration__.d.ts +4 -0
- package/out/concepts/PropDeclaration__.js +19 -84
- package/out/concepts/PropDeclaration__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.js +2 -6
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.js +4 -12
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +3 -9
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +4 -12
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.js +12 -4
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.js +6 -2
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js +5 -7
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.js +4 -12
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +1 -1
- package/out/concepts/Return__.js +2 -10
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +4 -4
- package/out/concepts/Role__.js +6 -14
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.js +1 -3
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SetterOption__.js +6 -34
- package/out/concepts/SetterOption__.js.map +1 -1
- package/out/concepts/SlotDeclaration__.js +5 -23
- package/out/concepts/SlotDeclaration__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.js +4 -12
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/StaticString__.d.ts +1 -1
- package/out/concepts/StaticString__.js +6 -10
- package/out/concepts/StaticString__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +1 -1
- package/out/concepts/StringLiteral__.js +2 -6
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +5 -5
- package/out/concepts/StructureProperty__.js +5 -13
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +0 -4
- package/out/concepts/Structure__.js +9 -18
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +1 -1
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/ThemeVariable__.js +1 -3
- package/out/concepts/ThemeVariable__.js.map +1 -1
- package/out/concepts/Theme__.js +2 -6
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +2 -2
- package/out/concepts/Transactional__.js +6 -12
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.js +1 -3
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.js +3 -9
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +2 -2
- package/out/concepts/TypeAnnotation__.js +24 -31
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.js +1 -3
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +1 -3
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.js +1 -3
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.js +2 -6
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +3 -17
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +1 -1
- package/out/concepts/Variable__.js +2 -10
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlockWithImage__.js +2 -6
- package/out/concepts/ViewBlockWithImage__.js.map +1 -1
- package/out/concepts/ViewBlock__.js +3 -13
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponentDeclaration__.d.ts +1 -1
- package/out/concepts/ViewComponentDeclaration__.js +8 -36
- package/out/concepts/ViewComponentDeclaration__.js.map +1 -1
- package/out/concepts/ViewElement__.js +82 -72
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +22 -40
- package/out/concepts/View__.js.map +1 -1
- package/out/generator/genBundleFiles.js +1 -0
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/release-body/utils.js +2 -1
- package/out/generator/release-body/utils.js.map +1 -1
- package/out/natural/genNaturalTS.js +1 -0
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/server/naslServer.js +24 -10
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +54 -0
- package/out/server/translator.js.map +1 -1
- package/out/utils/env.d.ts +2 -0
- package/out/utils/env.js +3 -1
- package/out/utils/env.js.map +1 -1
- package/package.json +1 -1
- package/src/common/BaseNode.ts +3 -1
- package/src/concepts/AnonymousFunction__.ts +1 -1
- package/src/concepts/App__.ts +9 -27
- package/src/concepts/Argument__.ts +3 -7
- package/src/concepts/AssigneeV2__.ts +0 -2
- package/src/concepts/Assignee__.ts +0 -2
- package/src/concepts/AssignmentLine__.ts +0 -2
- package/src/concepts/Assignment__.ts +2 -4
- package/src/concepts/Attribute__.ts +9 -21
- package/src/concepts/AuthInterface__.ts +1 -3
- package/src/concepts/AuthLogicForCallInterface__.ts +4 -5
- package/src/concepts/AuthLogic__.ts +1 -3
- package/src/concepts/BackendVariable__.ts +5 -11
- package/src/concepts/Backend__.ts +1 -3
- package/src/concepts/BatchAssignment__.ts +4 -4
- package/src/concepts/BinaryExpression__.ts +9 -7
- package/src/concepts/BindAttribute__.ts +26 -38
- package/src/concepts/BindDirective__.ts +13 -27
- package/src/concepts/BindEvent__.ts +7 -13
- package/src/concepts/BindStyle__.ts +1 -3
- package/src/concepts/BooleanLiteral__.ts +1 -3
- package/src/concepts/BusinessComponent__.ts +16 -20
- package/src/concepts/BusinessLogic__.ts +7 -10
- package/src/concepts/CallConnector__.ts +3 -7
- package/src/concepts/CallEvent__.ts +2 -6
- package/src/concepts/CallFunction__.ts +6 -13
- package/src/concepts/CallInterface__.ts +8 -15
- package/src/concepts/CallLogic__.ts +37 -44
- package/src/concepts/CallQueryComponent__.ts +9 -22
- package/src/concepts/Comment__.ts +1 -3
- package/src/concepts/CompletionProperty__.ts +5 -15
- package/src/concepts/ConfigGroup__.ts +2 -7
- package/src/concepts/ConfigPropertyValue__.ts +3 -15
- package/src/concepts/ConfigProperty__.ts +3 -9
- package/src/concepts/Configuration__.ts +1 -4
- package/src/concepts/Connection__.ts +3 -9
- package/src/concepts/ConnectorLogic__.ts +2 -4
- package/src/concepts/ConnectorTriggerLauncher__.ts +13 -11
- package/src/concepts/ConnectorTrigger__.ts +12 -12
- package/src/concepts/Connector__.ts +3 -9
- package/src/concepts/Constant__.ts +2 -6
- package/src/concepts/CountersignPolicyV2__.ts +1 -3
- package/src/concepts/CountersignPolicy__.ts +1 -3
- package/src/concepts/DataSource__.ts +16 -18
- package/src/concepts/DatabaseTypeAnnotation__.ts +6 -11
- package/src/concepts/Destination__.ts +3 -9
- package/src/concepts/EntityIndex__.ts +6 -15
- package/src/concepts/EntityProperty__.ts +35 -56
- package/src/concepts/Entity__.ts +7 -17
- package/src/concepts/EnumItem__.ts +7 -9
- package/src/concepts/Enum__.ts +3 -9
- package/src/concepts/EventDeclaration__.ts +5 -13
- package/src/concepts/Event__.ts +5 -15
- package/src/concepts/ExternalDestination__.ts +2 -4
- package/src/concepts/FieldPermissionV2__.ts +2 -6
- package/src/concepts/FlowConditionV2__.ts +1 -3
- package/src/concepts/ForEachStatement__.ts +1 -1
- package/src/concepts/FrontendLibrary__.ts +2 -6
- package/src/concepts/FrontendType__.ts +2 -14
- package/src/concepts/FrontendVariable__.ts +1 -3
- package/src/concepts/Frontend__.ts +11 -35
- package/src/concepts/Function__.ts +2 -6
- package/src/concepts/HistoryProcessV2__.ts +4 -12
- package/src/concepts/I18nInfo__.ts +8 -15
- package/src/concepts/IconSetter__.ts +2 -4
- package/src/concepts/Identifier__.ts +9 -10
- package/src/concepts/ImportedInterface__.ts +2 -4
- package/src/concepts/InputSetter__.ts +2 -4
- package/src/concepts/Integration__.ts +0 -1
- package/src/concepts/InterfaceParam__.ts +4 -12
- package/src/concepts/InterfaceTriggerEvent__.ts +1 -1
- package/src/concepts/Interface__.ts +10 -21
- package/src/concepts/JSBlock__.ts +1 -3
- package/src/concepts/JavaLogic__.ts +3 -9
- package/src/concepts/LogicDeclaration__.ts +4 -10
- package/src/concepts/LogicItem__.ts +9 -19
- package/src/concepts/Logic__.ts +43 -47
- package/src/concepts/MatchCase__.ts +12 -12
- package/src/concepts/Match__.ts +11 -8
- package/src/concepts/MemberExpression__.ts +8 -2
- package/src/concepts/MetadataType__.ts +9 -16
- package/src/concepts/MicroApp__.ts +7 -21
- package/src/concepts/Module__.ts +10 -26
- package/src/concepts/Namespace__.ts +4 -12
- package/src/concepts/NewComposite__.ts +18 -16
- package/src/concepts/NewList__.ts +1 -1
- package/src/concepts/NewMap__.ts +15 -6
- package/src/concepts/NumberInputSetter__.ts +10 -20
- package/src/concepts/NumericLiteral__.ts +1 -3
- package/src/concepts/OperatePermissionV2__.ts +4 -12
- package/src/concepts/OqlQueryComponent__.ts +3 -7
- package/src/concepts/OverriddenLogic__.ts +15 -25
- package/src/concepts/ParamWithGroup__.ts +2 -6
- package/src/concepts/Param__.ts +5 -9
- package/src/concepts/Point__.ts +2 -6
- package/src/concepts/ProcessBindV2__.ts +2 -6
- package/src/concepts/ProcessComponent__.ts +4 -12
- package/src/concepts/ProcessElementV2__.ts +11 -27
- package/src/concepts/ProcessElement__.ts +13 -23
- package/src/concepts/ProcessOutcome__.ts +1 -3
- package/src/concepts/ProcessOutcomes__.ts +0 -1
- package/src/concepts/ProcessV2__.ts +11 -19
- package/src/concepts/Process__.ts +3 -9
- package/src/concepts/PropDeclaration__.ts +31 -57
- package/src/concepts/QueryAggregateExpression__.ts +3 -8
- package/src/concepts/QueryFieldExpression__.ts +23 -30
- package/src/concepts/QueryFromExpression__.ts +3 -9
- package/src/concepts/QueryJoinExpression__.ts +5 -14
- package/src/concepts/QueryLimitExpression__.ts +16 -4
- package/src/concepts/QueryOrderByExpression__.ts +22 -13
- package/src/concepts/QuerySelectExpression__.ts +8 -13
- package/src/concepts/Rect__.ts +4 -12
- package/src/concepts/Return__.ts +4 -8
- package/src/concepts/Role__.ts +8 -16
- package/src/concepts/SelectMembers__.ts +1 -3
- package/src/concepts/SetterOption__.ts +10 -22
- package/src/concepts/SlotDeclaration__.ts +7 -17
- package/src/concepts/SqlQueryComponent__.ts +5 -13
- package/src/concepts/StaticString__.ts +9 -16
- package/src/concepts/StringLiteral__.ts +5 -11
- package/src/concepts/StructureProperty__.ts +10 -18
- package/src/concepts/Structure__.ts +10 -18
- package/src/concepts/SwitchCase__.ts +1 -1
- package/src/concepts/SwitchStatement__.ts +1 -1
- package/src/concepts/ThemeVariable__.ts +1 -3
- package/src/concepts/Theme__.ts +2 -6
- package/src/concepts/Transactional__.ts +10 -19
- package/src/concepts/TriggerEvent__.ts +1 -3
- package/src/concepts/TriggerLauncher__.ts +11 -15
- package/src/concepts/TypeAnnotation__.ts +50 -41
- package/src/concepts/TypeParam__.ts +1 -3
- package/src/concepts/UnaryExpression__.ts +1 -3
- package/src/concepts/Unparsed__.ts +1 -3
- package/src/concepts/UseComponent__.ts +2 -6
- package/src/concepts/ValidationRule__.ts +5 -11
- package/src/concepts/Variable__.ts +4 -8
- package/src/concepts/ViewBlockWithImage__.ts +2 -6
- package/src/concepts/ViewBlock__.ts +4 -10
- package/src/concepts/ViewComponentDeclaration__.ts +11 -27
- package/src/concepts/ViewElement__.ts +219 -146
- package/src/concepts/View__.ts +40 -54
- package/src/generator/genBundleFiles.ts +2 -1
- package/src/generator/release-body/utils.ts +2 -1
- package/src/natural/genNaturalTS.ts +1 -0
- package/src/server/naslServer.ts +24 -10
- package/src/server/translator.ts +56 -0
- package/src/utils/env.ts +2 -0
|
@@ -101,9 +101,7 @@ export class BinaryExpression extends LogicItem {
|
|
|
101
101
|
/**
|
|
102
102
|
* 运算符
|
|
103
103
|
*/
|
|
104
|
-
@property(
|
|
105
|
-
objectRef: '',
|
|
106
|
-
})
|
|
104
|
+
@property()
|
|
107
105
|
operator:
|
|
108
106
|
| '+'
|
|
109
107
|
| '-'
|
|
@@ -204,9 +202,9 @@ export class BinaryExpression extends LogicItem {
|
|
|
204
202
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
205
203
|
//================================================================================
|
|
206
204
|
|
|
207
|
-
get processType
|
|
208
|
-
if(this.left?.concept === 'MemberExpression') {
|
|
209
|
-
return (this.left as MemberExpression)?.lastObject?.name
|
|
205
|
+
get processType() {
|
|
206
|
+
if (this.left?.concept === 'MemberExpression') {
|
|
207
|
+
return (this.left as MemberExpression)?.lastObject?.name;
|
|
210
208
|
}
|
|
211
209
|
return null;
|
|
212
210
|
}
|
|
@@ -355,7 +353,11 @@ export class BinaryExpression extends LogicItem {
|
|
|
355
353
|
@withSourceMapGenerator
|
|
356
354
|
*toEmbeddedTS(state = createCompilerState()): TranslatorGenerator {
|
|
357
355
|
const self = this;
|
|
358
|
-
if
|
|
356
|
+
if (
|
|
357
|
+
['in', 'contains'].includes(self.operator) &&
|
|
358
|
+
self.parentNode?.concept === 'FlowConditionV2' &&
|
|
359
|
+
self.right.concept === 'NewList'
|
|
360
|
+
) {
|
|
359
361
|
let code = '';
|
|
360
362
|
code += `nasl.langUtil.ruleIn(`;
|
|
361
363
|
code += self.left?.toEmbeddedTS
|
|
@@ -63,26 +63,20 @@ export class BindAttribute extends BaseNode {
|
|
|
63
63
|
/**
|
|
64
64
|
* 元素绑定属性名称
|
|
65
65
|
*/
|
|
66
|
-
@property(
|
|
67
|
-
objectRef: '',
|
|
68
|
-
})
|
|
66
|
+
@property()
|
|
69
67
|
name: string = '';
|
|
70
68
|
|
|
71
69
|
/**
|
|
72
70
|
* type
|
|
73
71
|
*/
|
|
74
|
-
@property(
|
|
75
|
-
objectRef: '',
|
|
76
|
-
})
|
|
72
|
+
@property()
|
|
77
73
|
type: 'string' | 'static' | 'dynamic';
|
|
78
74
|
|
|
79
75
|
/**
|
|
80
76
|
* 属性值
|
|
81
77
|
*/
|
|
82
|
-
@property(
|
|
83
|
-
|
|
84
|
-
})
|
|
85
|
-
value?: string = null;
|
|
78
|
+
@property()
|
|
79
|
+
value?: string;
|
|
86
80
|
|
|
87
81
|
/**
|
|
88
82
|
* 属性表达式
|
|
@@ -90,7 +84,7 @@ export class BindAttribute extends BaseNode {
|
|
|
90
84
|
@property({
|
|
91
85
|
objectRef: 'LogicItem',
|
|
92
86
|
})
|
|
93
|
-
expression?: LogicItem
|
|
87
|
+
expression?: LogicItem;
|
|
94
88
|
|
|
95
89
|
/**
|
|
96
90
|
* 跳转页面
|
|
@@ -98,7 +92,7 @@ export class BindAttribute extends BaseNode {
|
|
|
98
92
|
@property({
|
|
99
93
|
objectRef: 'Destination',
|
|
100
94
|
})
|
|
101
|
-
destination?: Destination
|
|
95
|
+
destination?: Destination;
|
|
102
96
|
|
|
103
97
|
/**
|
|
104
98
|
* 跳转页面
|
|
@@ -106,7 +100,7 @@ export class BindAttribute extends BaseNode {
|
|
|
106
100
|
@property({
|
|
107
101
|
objectRef: 'ExternalDestination',
|
|
108
102
|
})
|
|
109
|
-
externalDestination?: ExternalDestination
|
|
103
|
+
externalDestination?: ExternalDestination;
|
|
110
104
|
|
|
111
105
|
/**
|
|
112
106
|
* 验证规则
|
|
@@ -116,7 +110,7 @@ export class BindAttribute extends BaseNode {
|
|
|
116
110
|
isArray: true,
|
|
117
111
|
defaultValue: null,
|
|
118
112
|
})
|
|
119
|
-
rules?: Array<ValidationRule
|
|
113
|
+
rules?: Array<ValidationRule>;
|
|
120
114
|
|
|
121
115
|
/**
|
|
122
116
|
* 经办人
|
|
@@ -124,7 +118,7 @@ export class BindAttribute extends BaseNode {
|
|
|
124
118
|
@property({
|
|
125
119
|
objectRef: 'Assignee',
|
|
126
120
|
})
|
|
127
|
-
assignee?: Assignee
|
|
121
|
+
assignee?: Assignee;
|
|
128
122
|
|
|
129
123
|
/**
|
|
130
124
|
* 经办人
|
|
@@ -132,23 +126,19 @@ export class BindAttribute extends BaseNode {
|
|
|
132
126
|
@property({
|
|
133
127
|
objectRef: 'AssigneeV2',
|
|
134
128
|
})
|
|
135
|
-
assigneeV2?: AssigneeV2
|
|
129
|
+
assigneeV2?: AssigneeV2;
|
|
136
130
|
|
|
137
131
|
/**
|
|
138
132
|
* 是否使用 v-model
|
|
139
133
|
*/
|
|
140
|
-
@property(
|
|
141
|
-
|
|
142
|
-
})
|
|
143
|
-
model?: boolean = null;
|
|
134
|
+
@property()
|
|
135
|
+
model?: boolean;
|
|
144
136
|
|
|
145
137
|
/**
|
|
146
138
|
* 是否开启双向绑定
|
|
147
139
|
*/
|
|
148
|
-
@property(
|
|
149
|
-
|
|
150
|
-
})
|
|
151
|
-
sync?: boolean = null;
|
|
140
|
+
@property()
|
|
141
|
+
sync?: boolean;
|
|
152
142
|
|
|
153
143
|
/**
|
|
154
144
|
* 草稿态
|
|
@@ -163,10 +153,8 @@ export class BindAttribute extends BaseNode {
|
|
|
163
153
|
/**
|
|
164
154
|
* 国际化键
|
|
165
155
|
*/
|
|
166
|
-
@property(
|
|
167
|
-
|
|
168
|
-
})
|
|
169
|
-
i18nKey?: string = null;
|
|
156
|
+
@property()
|
|
157
|
+
i18nKey?: string;
|
|
170
158
|
|
|
171
159
|
/**
|
|
172
160
|
* @param source 需要合并的部分参数
|
|
@@ -1110,7 +1098,9 @@ export class BindAttribute extends BaseNode {
|
|
|
1110
1098
|
let code = `${this.name}: `;
|
|
1111
1099
|
|
|
1112
1100
|
if (['destination', 'externalDestination'].includes(this.name) && this.type === 'dynamic') {
|
|
1113
|
-
code += (this as any)[this.name].toNaturalTS(
|
|
1101
|
+
code += (this as any)[this.name].toNaturalTS(
|
|
1102
|
+
shiftState(state, code, { tabSize: state.tabSize + 1, inline: true }),
|
|
1103
|
+
);
|
|
1114
1104
|
} else if (this.name === 'rules') {
|
|
1115
1105
|
code += '[\n';
|
|
1116
1106
|
this.rules?.forEach((item) => {
|
|
@@ -1119,10 +1109,8 @@ export class BindAttribute extends BaseNode {
|
|
|
1119
1109
|
});
|
|
1120
1110
|
code += `\n${indent(state.tabSize)}]`;
|
|
1121
1111
|
} else {
|
|
1122
|
-
if (this.type === 'string')
|
|
1123
|
-
|
|
1124
|
-
else if (this.type === 'static')
|
|
1125
|
-
code += `${this.value}`;
|
|
1112
|
+
if (this.type === 'string') code += `'${this.value?.replace(/'/g, "\\'")}'`;
|
|
1113
|
+
else if (this.type === 'static') code += `${this.value}`;
|
|
1126
1114
|
else {
|
|
1127
1115
|
code += this.expression?.toNaturalTS(shiftState(state, code, { tabSize: state.tabSize, inline: true }));
|
|
1128
1116
|
}
|
|
@@ -1136,7 +1124,9 @@ export class BindAttribute extends BaseNode {
|
|
|
1136
1124
|
let code = `${this.name} = `;
|
|
1137
1125
|
|
|
1138
1126
|
if (['destination', 'externalDestination'].includes(this.name) && this.type === 'dynamic') {
|
|
1139
|
-
code += (this as any)[this.name].toNaturalTS(
|
|
1127
|
+
code += (this as any)[this.name].toNaturalTS(
|
|
1128
|
+
shiftState(state, code, { tabSize: state.tabSize + 1, inline: true }),
|
|
1129
|
+
);
|
|
1140
1130
|
} else if (this.name === 'rules') {
|
|
1141
1131
|
code += '[\n';
|
|
1142
1132
|
this.rules?.forEach((item) => {
|
|
@@ -1145,10 +1135,8 @@ export class BindAttribute extends BaseNode {
|
|
|
1145
1135
|
});
|
|
1146
1136
|
code += '\n]';
|
|
1147
1137
|
} else {
|
|
1148
|
-
if (this.type === 'string')
|
|
1149
|
-
|
|
1150
|
-
else if (this.type === 'static')
|
|
1151
|
-
code += `${this.value}`;
|
|
1138
|
+
if (this.type === 'string') code += `'${this.value.replace(/'/g, "\\'")}'`;
|
|
1139
|
+
else if (this.type === 'static') code += `${this.value}`;
|
|
1152
1140
|
else {
|
|
1153
1141
|
code += this.expression?.toTextualNASL(shiftState(state, code, { tabSize: state.tabSize, inline: true }));
|
|
1154
1142
|
}
|
|
@@ -52,34 +52,26 @@ export class BindDirective extends BaseNode {
|
|
|
52
52
|
/**
|
|
53
53
|
* 元素指令名称
|
|
54
54
|
*/
|
|
55
|
-
@property(
|
|
56
|
-
objectRef: '',
|
|
57
|
-
})
|
|
55
|
+
@property()
|
|
58
56
|
name: string = '';
|
|
59
57
|
|
|
60
58
|
/**
|
|
61
59
|
* 原始名称
|
|
62
60
|
*/
|
|
63
|
-
@property(
|
|
64
|
-
|
|
65
|
-
})
|
|
66
|
-
rawName: string;
|
|
61
|
+
@property()
|
|
62
|
+
rawName?: string;
|
|
67
63
|
|
|
68
64
|
/**
|
|
69
65
|
* type
|
|
70
66
|
*/
|
|
71
|
-
@property(
|
|
72
|
-
objectRef: '',
|
|
73
|
-
})
|
|
67
|
+
@property()
|
|
74
68
|
type: 'string' | 'static' | 'dynamic';
|
|
75
69
|
|
|
76
70
|
/**
|
|
77
71
|
* 指令值
|
|
78
72
|
*/
|
|
79
|
-
@property(
|
|
80
|
-
|
|
81
|
-
})
|
|
82
|
-
value: string;
|
|
73
|
+
@property()
|
|
74
|
+
value?: string;
|
|
83
75
|
|
|
84
76
|
/**
|
|
85
77
|
* 属性表达式
|
|
@@ -87,23 +79,19 @@ export class BindDirective extends BaseNode {
|
|
|
87
79
|
@property({
|
|
88
80
|
objectRef: 'LogicItem',
|
|
89
81
|
})
|
|
90
|
-
expression
|
|
82
|
+
expression?: LogicItem;
|
|
91
83
|
|
|
92
84
|
/**
|
|
93
85
|
* 指令参数
|
|
94
86
|
*/
|
|
95
|
-
@property(
|
|
96
|
-
|
|
97
|
-
})
|
|
98
|
-
arg: string;
|
|
87
|
+
@property()
|
|
88
|
+
arg?: string;
|
|
99
89
|
|
|
100
90
|
/**
|
|
101
91
|
* 指令修饰器
|
|
102
92
|
*/
|
|
103
|
-
@property(
|
|
104
|
-
|
|
105
|
-
})
|
|
106
|
-
modifiers: string;
|
|
93
|
+
@property()
|
|
94
|
+
modifiers?: string;
|
|
107
95
|
|
|
108
96
|
/**
|
|
109
97
|
* 草稿态
|
|
@@ -118,10 +106,8 @@ export class BindDirective extends BaseNode {
|
|
|
118
106
|
/**
|
|
119
107
|
* 国际化键
|
|
120
108
|
*/
|
|
121
|
-
@property(
|
|
122
|
-
|
|
123
|
-
})
|
|
124
|
-
i18nKey: string;
|
|
109
|
+
@property()
|
|
110
|
+
i18nKey?: string;
|
|
125
111
|
|
|
126
112
|
/**
|
|
127
113
|
* @param source 需要合并的部分参数
|
|
@@ -61,9 +61,7 @@ export class BindEvent extends BaseNode {
|
|
|
61
61
|
/**
|
|
62
62
|
* 元素绑定事件名称
|
|
63
63
|
*/
|
|
64
|
-
@property(
|
|
65
|
-
objectRef: '',
|
|
66
|
-
})
|
|
64
|
+
@property()
|
|
67
65
|
name: string = '';
|
|
68
66
|
|
|
69
67
|
/**
|
|
@@ -79,18 +77,14 @@ export class BindEvent extends BaseNode {
|
|
|
79
77
|
/**
|
|
80
78
|
* calleeNamespace
|
|
81
79
|
*/
|
|
82
|
-
@property(
|
|
83
|
-
|
|
84
|
-
})
|
|
85
|
-
calleeNamespace: string;
|
|
80
|
+
@property()
|
|
81
|
+
calleeNamespace?: string;
|
|
86
82
|
|
|
87
83
|
/**
|
|
88
84
|
* calleeName
|
|
89
85
|
*/
|
|
90
|
-
@property(
|
|
91
|
-
|
|
92
|
-
})
|
|
93
|
-
calleeName: string;
|
|
86
|
+
@property()
|
|
87
|
+
calleeName?: string;
|
|
94
88
|
|
|
95
89
|
/**
|
|
96
90
|
* 实际参数
|
|
@@ -100,7 +94,7 @@ export class BindEvent extends BaseNode {
|
|
|
100
94
|
isArray: true,
|
|
101
95
|
defaultValue: null,
|
|
102
96
|
})
|
|
103
|
-
arguments
|
|
97
|
+
arguments?: Array<Argument>;
|
|
104
98
|
|
|
105
99
|
/**
|
|
106
100
|
* @param source 需要合并的部分参数
|
|
@@ -663,7 +657,7 @@ export class BindEvent extends BaseNode {
|
|
|
663
657
|
});
|
|
664
658
|
|
|
665
659
|
code += `${indent(state.tabSize)}]`;
|
|
666
|
-
|
|
660
|
+
|
|
667
661
|
return code;
|
|
668
662
|
}
|
|
669
663
|
|
|
@@ -71,25 +71,19 @@ export class BusinessComponent extends BaseNode {
|
|
|
71
71
|
/**
|
|
72
72
|
* 业务组件名称
|
|
73
73
|
*/
|
|
74
|
-
@property(
|
|
75
|
-
objectRef: '',
|
|
76
|
-
})
|
|
74
|
+
@property()
|
|
77
75
|
name: string;
|
|
78
76
|
|
|
79
77
|
/**
|
|
80
78
|
* 业务组件标题
|
|
81
79
|
*/
|
|
82
|
-
@property(
|
|
83
|
-
objectRef: '',
|
|
84
|
-
})
|
|
80
|
+
@property()
|
|
85
81
|
title: string;
|
|
86
82
|
|
|
87
83
|
/**
|
|
88
84
|
* 业务组件描述
|
|
89
85
|
*/
|
|
90
|
-
@property(
|
|
91
|
-
objectRef: '',
|
|
92
|
-
})
|
|
86
|
+
@property()
|
|
93
87
|
description: string;
|
|
94
88
|
|
|
95
89
|
/**
|
|
@@ -155,9 +149,7 @@ export class BusinessComponent extends BaseNode {
|
|
|
155
149
|
/**
|
|
156
150
|
* icon
|
|
157
151
|
*/
|
|
158
|
-
@property(
|
|
159
|
-
objectRef: '',
|
|
160
|
-
})
|
|
152
|
+
@property()
|
|
161
153
|
icon: string;
|
|
162
154
|
|
|
163
155
|
/**
|
|
@@ -1895,10 +1887,15 @@ export class BusinessComponent extends BaseNode {
|
|
|
1895
1887
|
});
|
|
1896
1888
|
}
|
|
1897
1889
|
// 获取当前element,铺平
|
|
1898
|
-
elementsAttrs(
|
|
1890
|
+
elementsAttrs(
|
|
1891
|
+
elements: Array<ViewElement>,
|
|
1892
|
+
componentList: Array<ViewElement>,
|
|
1893
|
+
allComponentList: Array<ViewElement & { currentIndex: number }>,
|
|
1894
|
+
currentIndex: number,
|
|
1895
|
+
) {
|
|
1899
1896
|
if (elements) {
|
|
1900
1897
|
elements.forEach((item: ViewElement & { currentIndex: number }) => {
|
|
1901
|
-
let index = currentIndex ?? -1
|
|
1898
|
+
let index = currentIndex ?? -1;
|
|
1902
1899
|
if (item.tag === 'template' && item.haveScope()) {
|
|
1903
1900
|
index += 1;
|
|
1904
1901
|
}
|
|
@@ -1906,7 +1903,7 @@ export class BusinessComponent extends BaseNode {
|
|
|
1906
1903
|
componentList.push(item);
|
|
1907
1904
|
}
|
|
1908
1905
|
item.currentIndex = index;
|
|
1909
|
-
allComponentList.push(item)
|
|
1906
|
+
allComponentList.push(item);
|
|
1910
1907
|
if (item.children.length > 0) {
|
|
1911
1908
|
this.elementsAttrs(item.children, componentList, allComponentList, index);
|
|
1912
1909
|
}
|
|
@@ -1999,14 +1996,13 @@ export class BusinessComponent extends BaseNode {
|
|
|
1999
1996
|
const callFunctionAdvanceMap: Map<Variable, CallFunction> = new Map();
|
|
2000
1997
|
yield* self.traverseChildrenGenerator(function* traverseChildrenGenerator(el) {
|
|
2001
1998
|
if (
|
|
2002
|
-
el &&
|
|
2003
|
-
|
|
2004
|
-
|
|
1999
|
+
el &&
|
|
2000
|
+
// 批量赋值
|
|
2001
|
+
(asserts.isBatchAssignment(el) ||
|
|
2005
2002
|
// 赋值
|
|
2006
2003
|
(asserts.isAssignment(el) && el.left?.name) ||
|
|
2007
2004
|
// 内置函数对集合类型的推导
|
|
2008
|
-
(asserts.isCallFunction(el) && el.derivablecollection?.name)
|
|
2009
|
-
)
|
|
2005
|
+
(asserts.isCallFunction(el) && el.derivablecollection?.name))
|
|
2010
2006
|
) {
|
|
2011
2007
|
if (asserts.isAssignment(el)) {
|
|
2012
2008
|
const advanceVar = self.variables?.find(
|
|
@@ -50,9 +50,7 @@ export class BusinessLogic extends Logic {
|
|
|
50
50
|
/**
|
|
51
51
|
* 是否开放外部调用
|
|
52
52
|
*/
|
|
53
|
-
@property(
|
|
54
|
-
objectRef: '',
|
|
55
|
-
})
|
|
53
|
+
@property()
|
|
56
54
|
isPublic: boolean;
|
|
57
55
|
|
|
58
56
|
/**
|
|
@@ -139,14 +137,13 @@ export class BusinessLogic extends Logic {
|
|
|
139
137
|
const callFunctionAdvanceMap: Map<Return | Variable, CallFunction> = new Map();
|
|
140
138
|
yield* self.traverseChildrenGenerator(function* traverseChildrenGenerator(el) {
|
|
141
139
|
if (
|
|
142
|
-
el &&
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
el &&
|
|
141
|
+
// 批量赋值
|
|
142
|
+
(asserts.isBatchAssignment(el) ||
|
|
145
143
|
// 赋值
|
|
146
144
|
(asserts.isAssignment(el) && el.left?.name) ||
|
|
147
145
|
// 内置函数对集合类型的推导
|
|
148
|
-
(asserts.isCallFunction(el) && el.derivablecollection?.name)
|
|
149
|
-
)
|
|
146
|
+
(asserts.isCallFunction(el) && el.derivablecollection?.name))
|
|
150
147
|
) {
|
|
151
148
|
if (asserts.isAssignment(el)) {
|
|
152
149
|
const advanceVar = self.variables?.find(
|
|
@@ -175,7 +172,7 @@ export class BusinessLogic extends Logic {
|
|
|
175
172
|
leftIndex.length === 1
|
|
176
173
|
? yield* el.left.expression.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
177
174
|
: yield* el.left.members[leftIndex[1]]?.toEmbeddedTS(shiftState(state, code, { inline: true })) ??
|
|
178
|
-
|
|
175
|
+
returnOrigin('');
|
|
179
176
|
const advanceVar = self.variables?.find(
|
|
180
177
|
(variable) => !variable.typeAnnotation && leftCode === variable.name,
|
|
181
178
|
);
|
|
@@ -249,7 +246,7 @@ export class BusinessLogic extends Logic {
|
|
|
249
246
|
leftIndex.length === 1
|
|
250
247
|
? yield* assignment.left.expression.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
251
248
|
: yield* assignment.left.members[leftIndex[1]]?.toEmbeddedTS(shiftState(state, code, { inline: true })) ??
|
|
252
|
-
|
|
249
|
+
returnOrigin('');
|
|
253
250
|
if (leftCode === node.name) {
|
|
254
251
|
const rightNode: any =
|
|
255
252
|
rightIndex.length === 1
|
|
@@ -55,17 +55,13 @@ export class CallConnector extends CallLogic {
|
|
|
55
55
|
/**
|
|
56
56
|
* calleeConnectionName
|
|
57
57
|
*/
|
|
58
|
-
@property(
|
|
59
|
-
objectRef: '',
|
|
60
|
-
})
|
|
58
|
+
@property()
|
|
61
59
|
calleeConnectionName: string;
|
|
62
60
|
|
|
63
61
|
/**
|
|
64
62
|
* 调用连接器标题
|
|
65
63
|
*/
|
|
66
|
-
@property(
|
|
67
|
-
objectRef: '',
|
|
68
|
-
})
|
|
64
|
+
@property()
|
|
69
65
|
label: string = '连接器';
|
|
70
66
|
|
|
71
67
|
/**
|
|
@@ -206,7 +202,7 @@ export class CallConnector extends CallLogic {
|
|
|
206
202
|
};
|
|
207
203
|
});
|
|
208
204
|
}
|
|
209
|
-
} catch (err) {
|
|
205
|
+
} catch (err) {}
|
|
210
206
|
return node;
|
|
211
207
|
}
|
|
212
208
|
|
|
@@ -48,17 +48,13 @@ export class CallEvent extends LogicItem {
|
|
|
48
48
|
/**
|
|
49
49
|
* calleeNamespace
|
|
50
50
|
*/
|
|
51
|
-
@property(
|
|
52
|
-
objectRef: '',
|
|
53
|
-
})
|
|
51
|
+
@property()
|
|
54
52
|
calleeNamespace: string;
|
|
55
53
|
|
|
56
54
|
/**
|
|
57
55
|
* calleeName
|
|
58
56
|
*/
|
|
59
|
-
@property(
|
|
60
|
-
objectRef: '',
|
|
61
|
-
})
|
|
57
|
+
@property()
|
|
62
58
|
calleeName: string;
|
|
63
59
|
|
|
64
60
|
/**
|
|
@@ -60,26 +60,20 @@ export class CallFunction extends LogicItem {
|
|
|
60
60
|
/**
|
|
61
61
|
* calleeNamespace
|
|
62
62
|
*/
|
|
63
|
-
@property(
|
|
64
|
-
objectRef: '',
|
|
65
|
-
})
|
|
63
|
+
@property()
|
|
66
64
|
calleeNamespace: string;
|
|
67
65
|
|
|
68
66
|
/**
|
|
69
67
|
* calleeName
|
|
70
68
|
*/
|
|
71
|
-
@property(
|
|
72
|
-
objectRef: '',
|
|
73
|
-
})
|
|
69
|
+
@property()
|
|
74
70
|
calleeName: string;
|
|
75
71
|
|
|
76
72
|
/**
|
|
77
73
|
* shortcut
|
|
78
74
|
*/
|
|
79
|
-
@property(
|
|
80
|
-
|
|
81
|
-
})
|
|
82
|
-
shortcut: boolean;
|
|
75
|
+
@property()
|
|
76
|
+
shortcut?: boolean;
|
|
83
77
|
|
|
84
78
|
/**
|
|
85
79
|
* 类型参数
|
|
@@ -89,7 +83,7 @@ export class CallFunction extends LogicItem {
|
|
|
89
83
|
isArray: true,
|
|
90
84
|
defaultValue: null,
|
|
91
85
|
})
|
|
92
|
-
typeArguments?: Array<TypeAnnotation
|
|
86
|
+
typeArguments?: Array<TypeAnnotation>;
|
|
93
87
|
|
|
94
88
|
/**
|
|
95
89
|
* 实际参数
|
|
@@ -644,8 +638,7 @@ export class CallFunction extends LogicItem {
|
|
|
644
638
|
const typeAnnotation = self.typeArguments[0];
|
|
645
639
|
code += `<`;
|
|
646
640
|
code += `${yield* typeAnnotation.toEmbeddedTS(shiftState(state, code, { tabSize: 0 }))}>()`;
|
|
647
|
-
}
|
|
648
|
-
else {
|
|
641
|
+
} else {
|
|
649
642
|
code = self.calleeKey;
|
|
650
643
|
if (Array.isArray(self.typeArguments) && self.typeArguments.length) {
|
|
651
644
|
// 如果有内容
|
|
@@ -63,26 +63,20 @@ export class CallInterface extends LogicItem {
|
|
|
63
63
|
/**
|
|
64
64
|
* calleeNamespace
|
|
65
65
|
*/
|
|
66
|
-
@property(
|
|
67
|
-
objectRef: '',
|
|
68
|
-
})
|
|
66
|
+
@property()
|
|
69
67
|
calleeNamespace: string;
|
|
70
68
|
|
|
71
69
|
/**
|
|
72
70
|
* calleeName
|
|
73
71
|
*/
|
|
74
|
-
@property(
|
|
75
|
-
objectRef: '',
|
|
76
|
-
})
|
|
72
|
+
@property()
|
|
77
73
|
calleeName: string;
|
|
78
74
|
|
|
79
75
|
/**
|
|
80
76
|
* shortcut
|
|
81
77
|
*/
|
|
82
|
-
@property(
|
|
83
|
-
|
|
84
|
-
})
|
|
85
|
-
shortcut: boolean;
|
|
78
|
+
@property()
|
|
79
|
+
shortcut?: boolean;
|
|
86
80
|
|
|
87
81
|
/**
|
|
88
82
|
* 实际参数
|
|
@@ -347,9 +341,9 @@ export class CallInterface extends LogicItem {
|
|
|
347
341
|
const { calleewholeKey, app, completeArguments } = this;
|
|
348
342
|
let [, _name, , _interfaceName] = calleewholeKey.split('.');
|
|
349
343
|
let isAppInterface = calleewholeKey.startsWith('app.interfaces');
|
|
350
|
-
if(!_interfaceName && isAppInterface){
|
|
344
|
+
if (!_interfaceName && isAppInterface) {
|
|
351
345
|
// 兼容此两种情况 1 "apis.hsjtest.interfaces.dsfsdf" 2 "app.interfaces.fffffffff"
|
|
352
|
-
_interfaceName = calleewholeKey.split('.')?.[2]
|
|
346
|
+
_interfaceName = calleewholeKey.split('.')?.[2];
|
|
353
347
|
}
|
|
354
348
|
let _module: Module | Connector | App;
|
|
355
349
|
// 由于自定义连接器的引入,目前在 集成中心下也存在着一部分接口
|
|
@@ -364,7 +358,7 @@ export class CallInterface extends LogicItem {
|
|
|
364
358
|
// default
|
|
365
359
|
_module = app?.interfaceDependencies?.find?.((item) => item.name === _name);
|
|
366
360
|
}
|
|
367
|
-
if(isAppInterface){
|
|
361
|
+
if (isAppInterface) {
|
|
368
362
|
_module = app;
|
|
369
363
|
}
|
|
370
364
|
const _interface = (_module as Module)?.interfaces?.find?.((item) => item.name === _interfaceName);
|
|
@@ -700,8 +694,7 @@ export class CallInterface extends LogicItem {
|
|
|
700
694
|
}
|
|
701
695
|
if (this.arguments?.length) {
|
|
702
696
|
this.arguments.forEach((arg) => {
|
|
703
|
-
if (!arg)
|
|
704
|
-
return;
|
|
697
|
+
if (!arg) return;
|
|
705
698
|
const idx = logicParam.findIndex((params) => arg.keyword === params.name);
|
|
706
699
|
const param = logicParam[idx];
|
|
707
700
|
|