@lcap/nasl 3.3.0-beta.0 → 3.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/bak/translator.js +5 -8
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/generator/AfterStartNode.js +1 -2
- package/out/breakpoint/generator/AfterStartNode.js.map +1 -1
- package/out/breakpoint/generator/BeforeEndNode.js +1 -2
- package/out/breakpoint/generator/BeforeEndNode.js.map +1 -1
- package/out/breakpoint/generator/BreakpointNode.js +9 -30
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
- package/out/breakpoint/shared/constants.d.ts +0 -1
- package/out/breakpoint/shared/constants.js +1 -7
- package/out/breakpoint/shared/constants.js.map +1 -1
- package/out/breakpoint/shared/utils.d.ts +1 -3
- package/out/breakpoint/shared/utils.js +4 -25
- package/out/breakpoint/shared/utils.js.map +1 -1
- package/out/common/BaseNode.d.ts +8 -21
- package/out/common/BaseNode.js +69 -115
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/Command.js +1 -6
- package/out/common/Command.js.map +1 -1
- package/out/common/EventEmitter.d.ts +1 -1
- package/out/common/EventEmitter.js +3 -1
- package/out/common/EventEmitter.js.map +1 -1
- package/out/common/classMap.d.ts +4 -0
- package/out/common/classMap.js +5 -0
- package/out/common/classMap.js.map +1 -0
- package/out/common/index.d.ts +1 -0
- package/out/common/index.js +1 -0
- package/out/common/index.js.map +1 -1
- package/out/concepts/Abort__.d.ts +2 -3
- package/out/concepts/Abort__.js +18 -15
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/Anchor__.d.ts +3 -3
- package/out/concepts/Anchor__.js +35 -18
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +3 -3
- package/out/concepts/AnonymousFunction__.js +53 -29
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +157 -160
- package/out/concepts/App__.js +80 -106
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +3 -3
- package/out/concepts/Argument__.js +42 -22
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +2 -3
- package/out/concepts/Assignee__.js +21 -19
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +2 -3
- package/out/concepts/AssignmentLine__.js +17 -15
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +3 -3
- package/out/concepts/Assignment__.js +42 -34
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +2 -3
- package/out/concepts/Attribute__.js +28 -36
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.d.ts +3 -4
- package/out/concepts/AuthInterface__.js +17 -16
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +3 -4
- package/out/concepts/AuthLogicForCallInterface__.js +27 -37
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.d.ts +3 -4
- package/out/concepts/AuthLogic__.js +19 -18
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +7 -8
- package/out/concepts/BackendVariable__.js +34 -39
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.d.ts +31 -32
- package/out/concepts/Backend__.js +22 -23
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +3 -3
- package/out/concepts/BatchAssignment__.js +54 -46
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +3 -3
- package/out/concepts/BinaryExpression__.js +62 -30
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +9 -12
- package/out/concepts/BindAttribute__.js +102 -81
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +3 -5
- package/out/concepts/BindDirective__.js +28 -34
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +3 -3
- package/out/concepts/BindEvent__.js +74 -51
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +3 -5
- package/out/concepts/BindStyle__.js +23 -24
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +3 -3
- package/out/concepts/BooleanLiteral__.js +24 -17
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +2 -3
- package/out/concepts/CallAuthInterface__.js +19 -17
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts +4 -5
- package/out/concepts/CallConnector__.js +34 -41
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +3 -3
- package/out/concepts/CallFunction__.js +71 -33
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +3 -3
- package/out/concepts/CallInterface__.js +57 -26
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +6 -6
- package/out/concepts/CallLogic__.js +180 -135
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +2 -3
- package/out/concepts/CallQueryComponent__.js +41 -57
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.d.ts +3 -3
- package/out/concepts/Comment__.js +24 -17
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.d.ts +2 -3
- package/out/concepts/CompletionProperty__.js +25 -30
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +2 -3
- package/out/concepts/ConfigGroup__.js +20 -21
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +2 -3
- package/out/concepts/ConfigPropertyValue__.js +16 -16
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +2 -3
- package/out/concepts/ConfigProperty__.js +23 -26
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +2 -3
- package/out/concepts/Configuration__.js +18 -16
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +4 -4
- package/out/concepts/Connection__.js +18 -22
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.d.ts +6 -7
- package/out/concepts/ConnectorTrigger__.js +21 -22
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.d.ts +33 -139
- package/out/concepts/Connector__.js +34 -191
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +2 -3
- package/out/concepts/Constant__.js +23 -25
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataElement__.d.ts +46 -0
- package/out/concepts/DataElement__.js +118 -0
- package/out/concepts/DataElement__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +2 -7
- package/out/concepts/DataSource__.js +23 -31
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +4 -5
- package/out/concepts/DatabaseTypeAnnotation__.js +18 -18
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +11 -11
- package/out/concepts/Destination__.js +89 -39
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +2 -3
- package/out/concepts/End__.js +17 -15
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +3 -4
- package/out/concepts/EntityIndex__.js +21 -23
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +4 -4
- package/out/concepts/EntityProperty__.js +67 -51
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +3 -3
- package/out/concepts/Entity__.js +51 -32
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +3 -3
- package/out/concepts/EnumItem__.js +25 -19
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.d.ts +3 -3
- package/out/concepts/Enum__.js +35 -23
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.d.ts +2 -3
- package/out/concepts/Event__.js +21 -24
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +5 -6
- package/out/concepts/ExternalDestination__.js +25 -25
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +3 -3
- package/out/concepts/ForEachStatement__.js +60 -21
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +3 -4
- package/out/concepts/FrontendLibrary__.js +25 -27
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendVariable__.d.ts +3 -4
- package/out/concepts/FrontendVariable__.js +12 -12
- package/out/concepts/FrontendVariable__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +6 -8
- package/out/concepts/Frontend__.js +39 -47
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +3 -3
- package/out/concepts/Function__.js +60 -37
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +3 -4
- package/out/concepts/Identifier__.js +29 -30
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +3 -3
- package/out/concepts/IfStatement__.js +51 -21
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Integration__.d.ts +2 -93
- package/out/concepts/Integration__.js +19 -157
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +4 -30
- package/out/concepts/InterfaceParam__.js +24 -58
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +5 -31
- package/out/concepts/Interface__.js +34 -89
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +3 -3
- package/out/concepts/JSBlock__.js +24 -17
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +3 -4
- package/out/concepts/JavaLogic__.js +21 -22
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +8 -3
- package/out/concepts/LogicItem__.js +30 -23
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +18 -17
- package/out/concepts/Logic__.js +188 -113
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +3 -3
- package/out/concepts/MatchCase__.js +110 -23
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +3 -3
- package/out/concepts/Match__.js +64 -20
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +3 -3
- package/out/concepts/MemberExpression__.js +59 -65
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MicroApp__.d.ts +2 -3
- package/out/concepts/MicroApp__.js +21 -26
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.d.ts +47 -219
- package/out/concepts/Module__.js +32 -232
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.d.ts +3 -4
- package/out/concepts/MsgTriggerEvent__.js +18 -16
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +3 -4
- package/out/concepts/MsgTriggerLauncher__.js +19 -18
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +2 -4
- package/out/concepts/Namespace__.js +46 -64
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +3 -4
- package/out/concepts/NewComposite__.js +133 -71
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +4 -5
- package/out/concepts/NewList__.js +41 -35
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +4 -5
- package/out/concepts/NewMap__.js +38 -39
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +2 -3
- package/out/concepts/New__.js +17 -15
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +2 -3
- package/out/concepts/NullLiteral__.js +17 -15
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.d.ts +3 -3
- package/out/concepts/NumericLiteral__.js +27 -21
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +3 -3
- package/out/concepts/OqlQueryComponent__.js +30 -26
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +22 -14
- package/out/concepts/OverriddenLogic__.js +62 -73
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.d.ts +3 -3
- package/out/concepts/Param__.js +69 -34
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.d.ts +2 -3
- package/out/concepts/Point__.js +16 -16
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.d.ts +2 -3
- package/out/concepts/ProcessComponent__.js +22 -24
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +2 -3
- package/out/concepts/ProcessElement__.js +46 -61
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +2 -3
- package/out/concepts/ProcessOutcome__.js +18 -17
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +2 -3
- package/out/concepts/ProcessOutcomes__.js +17 -15
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +7 -5
- package/out/concepts/Process__.js +35 -46
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.d.ts +2 -3
- package/out/concepts/QueryAggregateExpression__.js +22 -23
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +3 -4
- package/out/concepts/QueryFieldExpression__.js +20 -21
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +3 -4
- package/out/concepts/QueryFromExpression__.js +22 -23
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +2 -3
- package/out/concepts/QueryGroupByExpression__.js +19 -18
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +3 -4
- package/out/concepts/QueryJoinExpression__.js +25 -29
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +2 -3
- package/out/concepts/QueryLimitExpression__.js +22 -22
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +2 -3
- package/out/concepts/QueryOrderByExpression__.js +22 -22
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.d.ts +2 -3
- package/out/concepts/QuerySelectExpression__.js +21 -23
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.d.ts +2 -3
- package/out/concepts/Rect__.js +18 -20
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +3 -3
- package/out/concepts/Return__.js +45 -29
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +2 -3
- package/out/concepts/Role__.js +21 -22
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +2 -3
- package/out/concepts/SelectMembers__.js +21 -20
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/Slot__.d.ts +2 -3
- package/out/concepts/Slot__.js +22 -26
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +3 -3
- package/out/concepts/SqlQueryComponent__.js +31 -28
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +2 -3
- package/out/concepts/Start__.js +17 -15
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +3 -3
- package/out/concepts/StringInterpolation__.js +37 -17
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +3 -3
- package/out/concepts/StringLiteral__.js +22 -14
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +5 -5
- package/out/concepts/StructureProperty__.js +40 -33
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +12 -3
- package/out/concepts/Structure__.js +46 -45
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +3 -3
- package/out/concepts/SwitchCase__.js +54 -19
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.d.ts +3 -3
- package/out/concepts/SwitchStatement__.js +39 -23
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/Theme__.d.ts +2 -3
- package/out/concepts/Theme__.js +14 -12
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +2 -3
- package/out/concepts/Transactional__.js +17 -18
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +2 -3
- package/out/concepts/TriggerEvent__.js +18 -19
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +17 -6
- package/out/concepts/TriggerLauncher__.js +63 -26
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +6 -8
- package/out/concepts/TypeAnnotation__.js +79 -56
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +3 -3
- package/out/concepts/TypeParam__.js +23 -16
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +3 -3
- package/out/concepts/UnaryExpression__.js +39 -21
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +3 -3
- package/out/concepts/Unparsed__.js +23 -16
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.d.ts +2 -3
- package/out/concepts/UseComponent__.js +16 -16
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +16 -17
- package/out/concepts/ValidationRule__.js +15 -18
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +3 -3
- package/out/concepts/Variable__.js +45 -29
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlock__.d.ts +3 -4
- package/out/concepts/ViewBlock__.js +19 -20
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponent__.d.ts +31 -32
- package/out/concepts/ViewComponent__.js +32 -35
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +81 -82
- package/out/concepts/ViewElement__.js +155 -259
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +4 -5
- package/out/concepts/View__.js +207 -141
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +3 -3
- package/out/concepts/WhileStatement__.js +41 -20
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/index__.d.ts +1 -0
- package/out/concepts/index__.js +1 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/types__.d.ts +2 -2
- package/out/decorators/index.d.ts +0 -2
- package/out/decorators/index.js +8 -12
- package/out/decorators/index.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +2 -2
- package/out/generator/genBundleFiles.js +4 -11
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genReleaseBody.d.ts +2 -4
- package/out/generator/genReleaseBody.js +136 -192
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js +1 -0
- package/out/index.js.map +1 -1
- package/out/natural/RequirementAnalyzer.d.ts +22 -0
- package/out/natural/RequirementAnalyzer.js +196 -0
- package/out/natural/RequirementAnalyzer.js.map +1 -0
- package/out/natural/RequirementExecutor.d.ts +51 -0
- package/out/natural/RequirementExecutor.js +692 -0
- package/out/natural/RequirementExecutor.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 +90 -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/knowledgeMap.d.ts +4 -0
- package/out/natural/knowledgeMap.js +40 -0
- package/out/natural/knowledgeMap.js.map +1 -0
- package/out/natural/naslStdlibMap.d.ts +2 -0
- package/out/natural/naslStdlibMap.js +26 -0
- package/out/natural/naslStdlibMap.js.map +1 -0
- package/out/natural/transformTSCode.d.ts +7 -0
- package/out/natural/transformTSCode.js +878 -0
- package/out/natural/transformTSCode.js.map +1 -0
- package/out/sentry/index.js +2 -2
- package/out/sentry/index.js.map +1 -1
- package/out/server/createUiTs.js +1 -34
- package/out/server/createUiTs.js.map +1 -1
- package/out/server/extendBaseNode.js +17 -17
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.js +10 -0
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getConnector.d.ts +0 -3
- package/out/server/getConnector.js +1 -38
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getMemberIdentifier.js +2 -1
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/index.js +0 -2
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +6 -17
- package/out/server/naslServer.js +213 -321
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +4 -2
- package/out/server/translator.js.map +1 -1
- package/out/service/creator/add.configs.js +0 -26
- package/out/service/creator/add.configs.js.map +1 -1
- package/out/service/creator/errHandles.js +3 -5
- package/out/service/creator/errHandles.js.map +1 -1
- package/out/service/creator/index.js +0 -13
- package/out/service/creator/index.js.map +1 -1
- package/out/service/storage/init.js +16 -0
- package/out/service/storage/init.js.map +1 -1
- package/out/service/storage/jsoner.js +1 -1
- package/out/service/storage/jsoner.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +3 -3
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +3 -3
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +1 -1
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/translator/index.d.ts +48 -3
- package/out/translator/index.js +110 -17
- package/out/translator/index.js.map +1 -1
- package/out/translator/lsp.d.ts +45 -0
- package/out/translator/lsp.js +6 -0
- package/out/translator/lsp.js.map +1 -0
- package/out/translator/tsp.d.ts +12 -0
- package/out/translator/{types.js → tsp.js} +1 -1
- package/out/translator/tsp.js.map +1 -0
- package/out/utils/index.d.ts +0 -2
- package/out/utils/index.js +0 -2
- package/out/utils/index.js.map +1 -1
- package/out/utils/logger.d.ts +0 -4
- package/out/utils/logger.js +1 -13
- package/out/utils/logger.js.map +1 -1
- package/out/utils/time-slicing.js +1 -1
- package/out/utils/time-slicing.js.map +1 -1
- package/package.json +11 -5
- package/sandbox/stdlib/nasl.oql.ts +0 -2
- package/sandbox/stdlib/nasl.ui.definition.ts +1415 -2218
- package/sandbox-natural/stdlib/nasl.core.ts +36 -0
- package/sandbox-natural/stdlib/nasl.oql.ts +8 -0
- package/sandbox-natural/stdlib/nasl.ui.ts +63 -0
- package/sandbox-natural/stdlib/nasl.util.ts +119 -0
- package/sandbox-natural/tsconfig.json +12 -0
- package/src/bak/translator.js +5 -8
- package/src/breakpoint/generator/AfterStartNode.ts +1 -2
- package/src/breakpoint/generator/BeforeEndNode.ts +1 -2
- package/src/breakpoint/generator/BreakpointNode.ts +9 -36
- package/src/breakpoint/shared/constants.ts +0 -7
- package/src/breakpoint/shared/utils.ts +3 -36
- package/src/common/BaseNode.ts +81 -140
- package/src/common/Command.ts +1 -6
- package/src/common/EventEmitter.ts +4 -2
- package/src/common/classMap.ts +3 -0
- package/src/common/index.ts +1 -0
- package/src/concepts/Abort__.ts +22 -20
- package/src/concepts/Anchor__.ts +38 -23
- package/src/concepts/AnonymousFunction__.ts +63 -39
- package/src/concepts/App__.ts +314 -364
- package/src/concepts/Argument__.ts +44 -27
- package/src/concepts/Assignee__.ts +39 -41
- package/src/concepts/AssignmentLine__.ts +23 -20
- package/src/concepts/Assignment__.ts +58 -54
- package/src/concepts/Attribute__.ts +34 -40
- package/src/concepts/AuthInterface__.ts +24 -22
- package/src/concepts/AuthLogicForCallInterface__.ts +41 -71
- package/src/concepts/AuthLogic__.ts +30 -21
- package/src/concepts/BackendVariable__.ts +54 -55
- package/src/concepts/Backend__.ts +59 -58
- package/src/concepts/BatchAssignment__.ts +78 -88
- package/src/concepts/BinaryExpression__.ts +66 -72
- package/src/concepts/BindAttribute__.ts +155 -135
- package/src/concepts/BindDirective__.ts +41 -45
- package/src/concepts/BindEvent__.ts +89 -80
- package/src/concepts/BindStyle__.ts +36 -37
- package/src/concepts/BooleanLiteral__.ts +28 -22
- package/src/concepts/CallAuthInterface__.ts +32 -29
- package/src/concepts/CallConnector__.ts +41 -50
- package/src/concepts/CallFunction__.ts +77 -45
- package/src/concepts/CallInterface__.ts +68 -36
- package/src/concepts/CallLogic__.ts +213 -166
- package/src/concepts/CallQueryComponent__.ts +88 -156
- package/src/concepts/Comment__.ts +29 -22
- package/src/concepts/CompletionProperty__.ts +30 -34
- package/src/concepts/ConfigGroup__.ts +29 -28
- package/src/concepts/ConfigPropertyValue__.ts +23 -22
- package/src/concepts/ConfigProperty__.ts +36 -42
- package/src/concepts/Configuration__.ts +26 -23
- package/src/concepts/Connection__.ts +21 -26
- package/src/concepts/ConnectorTrigger__.ts +34 -30
- package/src/concepts/Connector__.ts +87 -342
- package/src/concepts/Constant__.ts +36 -30
- package/src/concepts/DataElement__.ts +131 -0
- package/src/concepts/DataSource__.ts +33 -37
- package/src/concepts/DatabaseTypeAnnotation__.ts +24 -24
- package/src/concepts/Destination__.ts +104 -51
- package/src/concepts/End__.ts +25 -23
- package/src/concepts/EntityIndex__.ts +33 -36
- package/src/concepts/EntityProperty__.ts +84 -64
- package/src/concepts/Entity__.ts +67 -41
- package/src/concepts/EnumItem__.ts +32 -24
- package/src/concepts/Enum__.ts +42 -28
- package/src/concepts/Event__.ts +33 -33
- package/src/concepts/ExternalDestination__.ts +29 -29
- package/src/concepts/ForEachStatement__.ts +73 -34
- package/src/concepts/FrontendLibrary__.ts +38 -37
- package/src/concepts/FrontendVariable__.ts +20 -18
- package/src/concepts/Frontend__.ts +62 -66
- package/src/concepts/Function__.ts +80 -54
- package/src/concepts/Identifier__.ts +34 -37
- package/src/concepts/IfStatement__.ts +77 -40
- package/src/concepts/Integration__.ts +24 -244
- package/src/concepts/InterfaceParam__.ts +33 -69
- package/src/concepts/Interface__.ts +46 -104
- package/src/concepts/JSBlock__.ts +28 -22
- package/src/concepts/JavaLogic__.ts +26 -27
- package/src/concepts/LogicItem__.ts +47 -29
- package/src/concepts/Logic__.ts +226 -168
- package/src/concepts/MatchCase__.ts +128 -38
- package/src/concepts/Match__.ts +73 -28
- package/src/concepts/MemberExpression__.ts +139 -174
- package/src/concepts/MicroApp__.ts +27 -32
- package/src/concepts/Module__.ts +107 -527
- package/src/concepts/MsgTriggerEvent__.ts +33 -25
- package/src/concepts/MsgTriggerLauncher__.ts +30 -27
- package/src/concepts/Namespace__.ts +99 -109
- package/src/concepts/NewComposite__.ts +161 -130
- package/src/concepts/NewList__.ts +51 -45
- package/src/concepts/NewMap__.ts +48 -51
- package/src/concepts/New__.ts +22 -20
- package/src/concepts/NullLiteral__.ts +22 -20
- package/src/concepts/NumericLiteral__.ts +31 -26
- package/src/concepts/OqlQueryComponent__.ts +34 -33
- package/src/concepts/OverriddenLogic__.ts +94 -128
- package/src/concepts/Param__.ts +90 -51
- package/src/concepts/Point__.ts +22 -22
- package/src/concepts/ProcessComponent__.ts +37 -36
- package/src/concepts/ProcessElement__.ts +86 -114
- package/src/concepts/ProcessOutcome__.ts +23 -22
- package/src/concepts/ProcessOutcomes__.ts +22 -20
- package/src/concepts/Process__.ts +63 -69
- package/src/concepts/QueryAggregateExpression__.ts +27 -28
- package/src/concepts/QueryFieldExpression__.ts +25 -26
- package/src/concepts/QueryFromExpression__.ts +28 -29
- package/src/concepts/QueryGroupByExpression__.ts +23 -22
- package/src/concepts/QueryJoinExpression__.ts +41 -62
- package/src/concepts/QueryLimitExpression__.ts +27 -27
- package/src/concepts/QueryOrderByExpression__.ts +27 -27
- package/src/concepts/QuerySelectExpression__.ts +54 -105
- package/src/concepts/Rect__.ts +24 -26
- package/src/concepts/Return__.ts +67 -42
- package/src/concepts/Role__.ts +25 -25
- package/src/concepts/SelectMembers__.ts +32 -30
- package/src/concepts/Slot__.ts +30 -32
- package/src/concepts/SqlQueryComponent__.ts +37 -41
- package/src/concepts/Start__.ts +22 -20
- package/src/concepts/StringInterpolation__.ts +45 -25
- package/src/concepts/StringLiteral__.ts +26 -19
- package/src/concepts/StructureProperty__.ts +47 -38
- package/src/concepts/Structure__.ts +58 -55
- package/src/concepts/SwitchCase__.ts +74 -40
- package/src/concepts/SwitchStatement__.ts +44 -29
- package/src/concepts/Theme__.ts +21 -18
- package/src/concepts/Transactional__.ts +31 -24
- package/src/concepts/TriggerEvent__.ts +29 -28
- package/src/concepts/TriggerLauncher__.ts +82 -32
- package/src/concepts/TypeAnnotation__.ts +98 -92
- package/src/concepts/TypeParam__.ts +28 -21
- package/src/concepts/UnaryExpression__.ts +45 -26
- package/src/concepts/Unparsed__.ts +25 -20
- package/src/concepts/UseComponent__.ts +22 -22
- package/src/concepts/ValidationRule__.ts +555 -539
- package/src/concepts/Variable__.ts +67 -43
- package/src/concepts/ViewBlock__.ts +25 -26
- package/src/concepts/ViewComponent__.ts +91 -87
- package/src/concepts/ViewElement__.ts +2437 -2696
- package/src/concepts/View__.ts +407 -345
- package/src/concepts/WhileStatement__.ts +59 -36
- package/src/concepts/index__.ts +1 -0
- package/src/concepts/types__.ts +124 -124
- package/src/decorators/index.ts +7 -11
- package/src/generator/genBundleFiles.ts +4 -14
- package/src/generator/genReleaseBody.ts +182 -198
- package/src/index.ts +1 -0
- package/src/natural/RequirementAnalyzer.ts +208 -0
- package/src/natural/RequirementExecutor.ts +685 -0
- package/src/natural/componentData.ts +81 -0
- package/src/natural/genNaturalTS.ts +90 -0
- package/src/natural/index.ts +4 -0
- package/src/natural/knowledgeMap.ts +39 -0
- package/src/natural/naslStdlibMap.ts +24 -0
- package/src/natural/transformTSCode.ts +834 -0
- package/src/sentry/index.ts +2 -2
- package/src/server/createUiTs.ts +1 -30
- package/src/server/extendBaseNode.ts +18 -18
- package/src/server/formatTsUtils.ts +11 -0
- package/src/server/getConnector.ts +27 -63
- package/src/server/getMemberIdentifier.ts +3 -2
- package/src/server/index.ts +1 -4
- package/src/server/naslServer.ts +212 -302
- package/src/server/translator.ts +3 -1
- package/src/service/creator/add.configs.js +1 -26
- package/src/service/creator/errHandles.js +4 -5
- package/src/service/creator/index.js +0 -12
- package/src/service/storage/init.ts +17 -0
- package/src/service/storage/jsoner.ts +1 -1
- package/src/templator/genCurdEditMultipleKeyBlock.ts +3 -3
- package/src/templator/genCurdMultipleKeyBlock.ts +3 -3
- package/src/templator/genTableBlock.ts +1 -1
- package/src/test/examples/app1.json +1406 -0
- package/src/test/fixtures/env.ts +19 -0
- package/src/test/integration/connect-create-file.ts +14 -0
- package/src/test/integration/connect-file.ts +24 -0
- package/src/test/integration/node-nasl-server.ts +14 -0
- package/src/test/units/baseTypes/Assignment.spec.ts +20 -0
- package/src/test/units/baseTypes/CallLogic.spec.ts +22 -0
- package/src/test/units/baseTypes/StringLiteral.spec.ts +60 -0
- package/src/test/units/baseTypes/new.spec.ts +13 -0
- package/src/test/units/common/Vertex.spec.ts +23 -0
- package/src/test/units/data/Entity.spec.ts +10 -0
- package/src/test/units/login.spec.ts +10 -0
- package/src/test/units/page/Block.spec.ts +15 -0
- package/src/test/units/page/Element.spec.ts +45 -0
- package/src/test/units/page/example.dashboard.html +46 -0
- package/src/test/units/page/example.view1.html +63 -0
- package/src/test/units/temp/temp.spec.ts +66 -0
- package/src/translator/index.ts +137 -3
- package/src/translator/lsp.ts +50 -0
- package/src/translator/tsp.ts +14 -0
- package/src/utils/index.ts +0 -2
- package/src/utils/logger.ts +0 -13
- package/src/utils/time-slicing.ts +1 -1
- package/test/concepts/call-interface/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/call-interface/toJS.spec.ts +6 -6
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +0 -45
- package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +0 -102
- package/test/concepts/call-logic/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/call-logic/toJS.spec.ts +6 -6
- package/test/concepts/match/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/match/toJS.spec.ts +6 -6
- package/test/concepts/utils.ts +43 -46
- package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/validation-rule/toJS.spec.ts +6 -6
- package/test/concepts/validation-rule/validation-rule.spec.ts +8 -8
- package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +0 -592
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +0 -308
- package/test/concepts/view-element/fixtures/default-not-found.json +313 -313
- package/test/concepts/view-element/toEmbeddedTS.spec.ts +6 -6
- package/test/concepts/view-element/toVue.spec.ts +6 -6
- package/ts-worker/package-lock.json +101 -6663
- package/ts-worker/webpack.config.js +1 -1
- package/out/translator/constant.d.ts +0 -6
- package/out/translator/constant.js +0 -10
- package/out/translator/constant.js.map +0 -1
- package/out/translator/types.d.ts +0 -32
- package/out/translator/types.js.map +0 -1
- package/out/translator/utils.d.ts +0 -17
- package/out/translator/utils.js +0 -102
- package/out/translator/utils.js.map +0 -1
- package/out/utils/cookie.d.ts +0 -9
- package/out/utils/cookie.js +0 -62
- package/out/utils/cookie.js.map +0 -1
- package/out/utils/types.d.ts +0 -1
- package/out/utils/types.js +0 -3
- package/out/utils/types.js.map +0 -1
- package/out/utils/window.d.ts +0 -7
- package/out/utils/window.js +0 -14
- package/out/utils/window.js.map +0 -1
- package/src/translator/constant.ts +0 -7
- package/src/translator/types.ts +0 -40
- package/src/translator/utils.ts +0 -104
- package/src/utils/cookie.ts +0 -60
- package/src/utils/types.ts +0 -1
- package/src/utils/window.ts +0 -9
- package/test/concepts/boolean-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +0 -11
- package/test/concepts/boolean-literal/__snapshots__/toJS.spec.ts.snap +0 -11
- package/test/concepts/boolean-literal/__snapshots__/toVue.spec.ts.snap +0 -11
- package/test/concepts/boolean-literal/constant.ts +0 -5
- package/test/concepts/boolean-literal/fixtures/false.json +0 -4
- package/test/concepts/boolean-literal/fixtures/true.json +0 -4
- package/test/concepts/boolean-literal/toEmbeddedTS.spec.ts +0 -14
- package/test/concepts/boolean-literal/toJS.spec.ts +0 -14
- package/test/concepts/boolean-literal/toVue.spec.ts +0 -14
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +0 -106
- package/test/concepts/call-logic/fixtures/nested-call-logic.json +0 -860
- package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +0 -23
- package/test/concepts/identifier/__snapshots__/toEmbeddedTS.spec.ts.snap +0 -16
- package/test/concepts/identifier/__snapshots__/toJS.spec.ts.snap +0 -16
- package/test/concepts/identifier/__snapshots__/toVue.spec.ts.snap +0 -16
- package/test/concepts/identifier/constant.ts +0 -5
- package/test/concepts/identifier/fixtures/data-source.json +0 -5
- package/test/concepts/identifier/fixtures/no-namespace.json +0 -4
- package/test/concepts/identifier/fixtures/view-variable.json +0 -201
- package/test/concepts/identifier/toEmbeddedTS.spec.ts +0 -14
- package/test/concepts/identifier/toJS.spec.ts +0 -14
- package/test/concepts/identifier/toVue.spec.ts +0 -14
- package/test/concepts/member-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +0 -21
- package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +0 -21
- package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +0 -21
- package/test/concepts/member-expression/constant.ts +0 -5
- package/test/concepts/member-expression/fixtures/app.enums.UserStatusEnum.json +0 -13
- package/test/concepts/member-expression/fixtures/elements.table-view.data.json +0 -13
- package/test/concepts/member-expression/fixtures/entry.created-by.json +0 -18
- package/test/concepts/member-expression/fixtures/nasl.auth.userInfo.json +0 -19
- package/test/concepts/member-expression/toEmbeddedTS.spec.ts +0 -14
- package/test/concepts/member-expression/toJS.spec.ts +0 -14
- package/test/concepts/member-expression/toVue.spec.ts +0 -14
- package/test/concepts/null-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +0 -6
- package/test/concepts/null-literal/__snapshots__/toJS.spec.ts.snap +0 -6
- package/test/concepts/null-literal/__snapshots__/toVue.spec.ts.snap +0 -6
- package/test/concepts/null-literal/constant.ts +0 -5
- package/test/concepts/null-literal/fixtures/null.json +0 -3
- package/test/concepts/null-literal/toEmbeddedTS.spec.ts +0 -14
- package/test/concepts/null-literal/toJS.spec.ts +0 -14
- package/test/concepts/null-literal/toVue.spec.ts +0 -14
- package/test/concepts/numeric-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +0 -6
- package/test/concepts/numeric-literal/__snapshots__/toJS.spec.ts.snap +0 -6
- package/test/concepts/numeric-literal/__snapshots__/toVue.spec.ts.snap +0 -6
- package/test/concepts/numeric-literal/constant.ts +0 -5
- package/test/concepts/numeric-literal/fixtures/number.json +0 -10
- package/test/concepts/numeric-literal/toEmbeddedTS.spec.ts +0 -14
- package/test/concepts/numeric-literal/toJS.spec.ts +0 -14
- package/test/concepts/numeric-literal/toVue.spec.ts +0 -14
- package/test/concepts/string-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +0 -16
- package/test/concepts/string-literal/__snapshots__/toJS.spec.ts.snap +0 -16
- package/test/concepts/string-literal/__snapshots__/toVue.spec.ts.snap +0 -16
- package/test/concepts/string-literal/constant.ts +0 -5
- package/test/concepts/string-literal/fixtures/escape.json +0 -4
- package/test/concepts/string-literal/fixtures/space.json +0 -4
- package/test/concepts/string-literal/fixtures/string.json +0 -4
- package/test/concepts/string-literal/toEmbeddedTS.spec.ts +0 -14
- package/test/concepts/string-literal/toJS.spec.ts +0 -14
- package/test/concepts/string-literal/toVue.spec.ts +0 -14
- package/test/concepts/view-element/fixtures/default-login.json +0 -333
- package/test/concepts/view-element/fixtures/with-role-auth.json +0 -148
- package/test/concepts/view-element/fixtures/with-table.json +0 -3473
package/src/concepts/App__.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
1
2
|
import { queryNodeByPath } from '../service/storage/jsoner';
|
|
2
3
|
import { getNaslNodeByNodeCallee, getNodeByNodeCallee } from '../automate/engine/utils';
|
|
3
4
|
import ConfigProperty from './ConfigProperty__';
|
|
@@ -5,30 +6,16 @@ import TypeAnnotation from './TypeAnnotation__';
|
|
|
5
6
|
import View from './View__';
|
|
6
7
|
// import CallLogic from './CallLogic__';
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
js: Array<string>;
|
|
10
|
-
css: Array<string>;
|
|
11
|
-
names?: Array<string>;
|
|
12
|
-
}
|
|
13
|
-
interface MessageData {
|
|
14
|
-
logicName: string;
|
|
15
|
-
param?: string;
|
|
16
|
-
interfaceName?: string;
|
|
17
|
-
message: string;
|
|
18
|
-
type: number;
|
|
19
|
-
resultName?: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
//================================================================================
|
|
9
|
+
//= ===============================================================================
|
|
23
10
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
24
11
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
25
|
-
|
|
12
|
+
//= ===============================================================================
|
|
26
13
|
import { EventPayload, Params } from '../common/EventEmitter';
|
|
27
|
-
import { concept, excludedInJSON, property
|
|
14
|
+
import { concept, excludedInJSON, property } from '../decorators';
|
|
28
15
|
|
|
29
16
|
import * as utils from '../utils';
|
|
30
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
31
17
|
import BaseNode from '../common/BaseNode';
|
|
18
|
+
import classMap from '../common/classMap';
|
|
32
19
|
import DataSource from './DataSource__';
|
|
33
20
|
import Structure from './Structure__';
|
|
34
21
|
import Enum from './Enum__';
|
|
@@ -49,84 +36,84 @@ import AuthLogicForCallInterface from './AuthLogicForCallInterface__';
|
|
|
49
36
|
import Connection from './Connection__';
|
|
50
37
|
import TriggerLauncher from './TriggerLauncher__';
|
|
51
38
|
|
|
39
|
+
export interface AssetsInfo {
|
|
40
|
+
js: Array<string>;
|
|
41
|
+
css: Array<string>;
|
|
42
|
+
names?: Array<string>;
|
|
43
|
+
}
|
|
44
|
+
interface MessageData {
|
|
45
|
+
logicName: string;
|
|
46
|
+
param?: string;
|
|
47
|
+
interfaceName?: string;
|
|
48
|
+
message: string;
|
|
49
|
+
type: number;
|
|
50
|
+
resultName?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
52
53
|
/**
|
|
53
54
|
* 应用
|
|
54
55
|
*/
|
|
55
|
-
@className
|
|
56
56
|
@concept('应用')
|
|
57
|
-
// @ts-ignore
|
|
58
57
|
export class App extends BaseNode {
|
|
59
|
-
/** 类名 */
|
|
60
|
-
static readonly ConceptName = 'App';
|
|
61
|
-
|
|
62
58
|
/**
|
|
63
59
|
* 应用 Id
|
|
64
60
|
*/
|
|
65
61
|
@property()
|
|
66
|
-
|
|
67
|
-
id!: string;
|
|
62
|
+
id: string = undefined;
|
|
68
63
|
|
|
69
64
|
/**
|
|
70
65
|
* 产品概念
|
|
71
66
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
@property()
|
|
68
|
+
concept: 'App' = 'App';
|
|
74
69
|
|
|
75
70
|
/**
|
|
76
71
|
* IDE 版本
|
|
77
72
|
*/
|
|
78
73
|
@property()
|
|
79
|
-
|
|
80
|
-
ideVersion!: string;
|
|
74
|
+
ideVersion: string = undefined;
|
|
81
75
|
|
|
82
76
|
/**
|
|
83
77
|
* 应用标识
|
|
84
78
|
*/
|
|
85
79
|
@property()
|
|
86
|
-
|
|
87
|
-
name!: string;
|
|
80
|
+
name: string = undefined;
|
|
88
81
|
|
|
89
82
|
/**
|
|
90
83
|
* 应用标题
|
|
91
84
|
*/
|
|
92
85
|
@property()
|
|
93
|
-
|
|
94
|
-
title!: string;
|
|
86
|
+
title: string = undefined;
|
|
95
87
|
|
|
96
88
|
/**
|
|
97
89
|
* 应用图标
|
|
98
90
|
*/
|
|
99
91
|
@property()
|
|
100
|
-
|
|
101
|
-
icon!: string;
|
|
92
|
+
icon: string = undefined;
|
|
102
93
|
|
|
103
94
|
/**
|
|
104
95
|
* 应用描述
|
|
105
96
|
*/
|
|
106
97
|
@property()
|
|
107
|
-
|
|
108
|
-
desc!: string;
|
|
98
|
+
desc: string = undefined;
|
|
109
99
|
|
|
110
100
|
/**
|
|
111
101
|
* 域名
|
|
112
102
|
*/
|
|
113
103
|
@property()
|
|
114
|
-
|
|
115
|
-
dnsAddr!: string;
|
|
104
|
+
dnsAddr: string = undefined;
|
|
116
105
|
|
|
117
106
|
/**
|
|
118
107
|
* 是否有用户中心
|
|
119
108
|
*/
|
|
120
109
|
@property()
|
|
121
|
-
|
|
122
|
-
hasUserCenter!: boolean;
|
|
110
|
+
hasUserCenter: boolean = undefined;
|
|
123
111
|
|
|
124
112
|
/**
|
|
125
113
|
* 是否有权限
|
|
126
114
|
*/
|
|
127
115
|
@property()
|
|
128
|
-
|
|
129
|
-
hasAuth!: boolean;
|
|
116
|
+
hasAuth: boolean = undefined;
|
|
130
117
|
|
|
131
118
|
/**
|
|
132
119
|
* 数据源列表
|
|
@@ -153,7 +140,7 @@ export class App extends BaseNode {
|
|
|
153
140
|
logics: Array<Logic> = [];
|
|
154
141
|
|
|
155
142
|
/**
|
|
156
|
-
*
|
|
143
|
+
* 逻辑列表
|
|
157
144
|
*/
|
|
158
145
|
@property('OverriddenLogic')
|
|
159
146
|
overriddenLogics: Array<OverriddenLogic> = [];
|
|
@@ -165,7 +152,7 @@ export class App extends BaseNode {
|
|
|
165
152
|
interfaces: Array<Interface | AuthInterface> = [];
|
|
166
153
|
|
|
167
154
|
/**
|
|
168
|
-
*
|
|
155
|
+
* 端列表
|
|
169
156
|
*/
|
|
170
157
|
@property('Frontend')
|
|
171
158
|
frontends: Array<Frontend> = [];
|
|
@@ -210,8 +197,7 @@ export class App extends BaseNode {
|
|
|
210
197
|
* 集成
|
|
211
198
|
*/
|
|
212
199
|
@property('Integration')
|
|
213
|
-
|
|
214
|
-
integration!: Integration;
|
|
200
|
+
integration: Integration = undefined;
|
|
215
201
|
|
|
216
202
|
/**
|
|
217
203
|
* 暴露接口的接口鉴权
|
|
@@ -241,11 +227,16 @@ export class App extends BaseNode {
|
|
|
241
227
|
* @param source 需要合并的部分参数
|
|
242
228
|
*/
|
|
243
229
|
constructor(source?: Partial<App>) {
|
|
244
|
-
|
|
230
|
+
// @ts-ignore
|
|
231
|
+
source = { ...App.getDefaultOptions(), ...source };
|
|
245
232
|
super(source);
|
|
246
233
|
super.subConstructor(source);
|
|
247
234
|
}
|
|
248
235
|
|
|
236
|
+
getClassName() {
|
|
237
|
+
return 'App';
|
|
238
|
+
}
|
|
239
|
+
|
|
249
240
|
static from(source: any, parentNode?: any, parentKey?: string): App {
|
|
250
241
|
return super.from(source, parentNode, parentKey) as App;
|
|
251
242
|
}
|
|
@@ -261,6 +252,7 @@ export class App extends BaseNode {
|
|
|
261
252
|
}
|
|
262
253
|
return params;
|
|
263
254
|
}
|
|
255
|
+
|
|
264
256
|
/**
|
|
265
257
|
* 设置集成
|
|
266
258
|
*/
|
|
@@ -312,7 +304,7 @@ export class App extends BaseNode {
|
|
|
312
304
|
name: this.getDataSourceUniqueName(),
|
|
313
305
|
},
|
|
314
306
|
this,
|
|
315
|
-
'dataSources'
|
|
307
|
+
'dataSources'
|
|
316
308
|
);
|
|
317
309
|
} else if (typeof options === 'string') {
|
|
318
310
|
dataSource = DataSource.from(
|
|
@@ -321,7 +313,7 @@ export class App extends BaseNode {
|
|
|
321
313
|
name: options,
|
|
322
314
|
},
|
|
323
315
|
this,
|
|
324
|
-
'dataSources'
|
|
316
|
+
'dataSources'
|
|
325
317
|
);
|
|
326
318
|
} else if (options instanceof DataSource) {
|
|
327
319
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -334,7 +326,7 @@ export class App extends BaseNode {
|
|
|
334
326
|
...options,
|
|
335
327
|
},
|
|
336
328
|
this,
|
|
337
|
-
'dataSources'
|
|
329
|
+
'dataSources'
|
|
338
330
|
);
|
|
339
331
|
}
|
|
340
332
|
this.dataSources.splice(index, 0, dataSource);
|
|
@@ -429,6 +421,7 @@ export class App extends BaseNode {
|
|
|
429
421
|
const excludedSet = new Set(excludedList);
|
|
430
422
|
return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
431
423
|
}
|
|
424
|
+
|
|
432
425
|
getStructureUniqueName(name = 'Structure1') {
|
|
433
426
|
return utils.unique(name, this.getStructureExistingNames(), undefined, true);
|
|
434
427
|
}
|
|
@@ -465,7 +458,7 @@ export class App extends BaseNode {
|
|
|
465
458
|
name: this.getStructureUniqueName(),
|
|
466
459
|
},
|
|
467
460
|
this,
|
|
468
|
-
'structures'
|
|
461
|
+
'structures'
|
|
469
462
|
);
|
|
470
463
|
} else if (typeof options === 'string') {
|
|
471
464
|
structure = Structure.from(
|
|
@@ -474,7 +467,7 @@ export class App extends BaseNode {
|
|
|
474
467
|
name: options,
|
|
475
468
|
},
|
|
476
469
|
this,
|
|
477
|
-
'structures'
|
|
470
|
+
'structures'
|
|
478
471
|
);
|
|
479
472
|
} else if (options instanceof Structure) {
|
|
480
473
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -487,7 +480,7 @@ export class App extends BaseNode {
|
|
|
487
480
|
...options,
|
|
488
481
|
},
|
|
489
482
|
this,
|
|
490
|
-
'structures'
|
|
483
|
+
'structures'
|
|
491
484
|
);
|
|
492
485
|
}
|
|
493
486
|
this.structures.splice(index, 0, structure);
|
|
@@ -582,6 +575,7 @@ export class App extends BaseNode {
|
|
|
582
575
|
const excludedSet = new Set(excludedList);
|
|
583
576
|
return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
584
577
|
}
|
|
578
|
+
|
|
585
579
|
getEnumUniqueName(name = 'Enum1') {
|
|
586
580
|
return utils.unique(name, this.getEnumExistingNames(), undefined, true);
|
|
587
581
|
}
|
|
@@ -618,7 +612,7 @@ export class App extends BaseNode {
|
|
|
618
612
|
name: this.getEnumUniqueName(),
|
|
619
613
|
},
|
|
620
614
|
this,
|
|
621
|
-
'enums'
|
|
615
|
+
'enums'
|
|
622
616
|
);
|
|
623
617
|
} else if (typeof options === 'string') {
|
|
624
618
|
enumeration = Enum.from(
|
|
@@ -627,7 +621,7 @@ export class App extends BaseNode {
|
|
|
627
621
|
name: options,
|
|
628
622
|
},
|
|
629
623
|
this,
|
|
630
|
-
'enums'
|
|
624
|
+
'enums'
|
|
631
625
|
);
|
|
632
626
|
} else if (options instanceof Enum) {
|
|
633
627
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -640,7 +634,7 @@ export class App extends BaseNode {
|
|
|
640
634
|
...options,
|
|
641
635
|
},
|
|
642
636
|
this,
|
|
643
|
-
'enums'
|
|
637
|
+
'enums'
|
|
644
638
|
);
|
|
645
639
|
}
|
|
646
640
|
this.enums.splice(index, 0, enumeration);
|
|
@@ -735,6 +729,7 @@ export class App extends BaseNode {
|
|
|
735
729
|
const excludedSet = new Set(excludedList);
|
|
736
730
|
return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
737
731
|
}
|
|
732
|
+
|
|
738
733
|
getLogicUniqueName(name = 'logic1') {
|
|
739
734
|
return utils.unique(name, this.getLogicExistingNames(), undefined, true);
|
|
740
735
|
}
|
|
@@ -771,7 +766,7 @@ export class App extends BaseNode {
|
|
|
771
766
|
name: this.getLogicUniqueName(),
|
|
772
767
|
},
|
|
773
768
|
this,
|
|
774
|
-
'logics'
|
|
769
|
+
'logics'
|
|
775
770
|
);
|
|
776
771
|
} else if (typeof options === 'string') {
|
|
777
772
|
logic = Logic.from(
|
|
@@ -780,7 +775,7 @@ export class App extends BaseNode {
|
|
|
780
775
|
name: options,
|
|
781
776
|
},
|
|
782
777
|
this,
|
|
783
|
-
'logics'
|
|
778
|
+
'logics'
|
|
784
779
|
);
|
|
785
780
|
} else if (options instanceof Logic) {
|
|
786
781
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -793,7 +788,7 @@ export class App extends BaseNode {
|
|
|
793
788
|
...options,
|
|
794
789
|
},
|
|
795
790
|
this,
|
|
796
|
-
'logics'
|
|
791
|
+
'logics'
|
|
797
792
|
);
|
|
798
793
|
}
|
|
799
794
|
this.logics.splice(index, 0, logic);
|
|
@@ -885,23 +880,23 @@ export class App extends BaseNode {
|
|
|
885
880
|
}
|
|
886
881
|
|
|
887
882
|
/**
|
|
888
|
-
*
|
|
883
|
+
* 插入开放接口的鉴权逻辑
|
|
889
884
|
* @internal
|
|
890
|
-
* @param name
|
|
885
|
+
* @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
891
886
|
*/
|
|
892
887
|
_insertAuthLogicInAuthLogicsAt(name: string, index: number): AuthLogic;
|
|
893
888
|
|
|
894
889
|
/**
|
|
895
|
-
*
|
|
890
|
+
* 插入开放接口的鉴权逻辑
|
|
896
891
|
* @internal
|
|
897
|
-
* @param authLogicOptions
|
|
892
|
+
* @param authLogicOptions 开放接口的鉴权逻辑参数
|
|
898
893
|
*/
|
|
899
894
|
_insertAuthLogicInAuthLogicsAt(authLogicOptions: Partial<AuthLogic>, index: number): AuthLogic;
|
|
900
895
|
|
|
901
896
|
/**
|
|
902
|
-
*
|
|
897
|
+
* 插入开放接口的鉴权逻辑
|
|
903
898
|
* @internal
|
|
904
|
-
* @param authLogic
|
|
899
|
+
* @param authLogic 已有的开放接口的鉴权逻辑实例
|
|
905
900
|
*/
|
|
906
901
|
_insertAuthLogicInAuthLogicsAt(authLogic: AuthLogic, index: number): AuthLogic;
|
|
907
902
|
|
|
@@ -916,7 +911,7 @@ export class App extends BaseNode {
|
|
|
916
911
|
name: this.getAuthLogicUniqueName(),
|
|
917
912
|
},
|
|
918
913
|
this,
|
|
919
|
-
'authLogics'
|
|
914
|
+
'authLogics'
|
|
920
915
|
);
|
|
921
916
|
} else if (typeof options === 'string') {
|
|
922
917
|
authLogic = AuthLogic.from(
|
|
@@ -925,7 +920,7 @@ export class App extends BaseNode {
|
|
|
925
920
|
name: options,
|
|
926
921
|
},
|
|
927
922
|
this,
|
|
928
|
-
'authLogics'
|
|
923
|
+
'authLogics'
|
|
929
924
|
);
|
|
930
925
|
} else if (options instanceof AuthLogic) {
|
|
931
926
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -938,7 +933,7 @@ export class App extends BaseNode {
|
|
|
938
933
|
...options,
|
|
939
934
|
},
|
|
940
935
|
this,
|
|
941
|
-
'authLogics'
|
|
936
|
+
'authLogics'
|
|
942
937
|
);
|
|
943
938
|
}
|
|
944
939
|
this.authLogics.splice(index, 0, authLogic);
|
|
@@ -946,20 +941,20 @@ export class App extends BaseNode {
|
|
|
946
941
|
}
|
|
947
942
|
|
|
948
943
|
/**
|
|
949
|
-
*
|
|
950
|
-
* @param name
|
|
944
|
+
* 插入开放接口的鉴权逻辑
|
|
945
|
+
* @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
951
946
|
*/
|
|
952
947
|
insertAuthLogicInAuthLogicsAt(name: string, index: number): AuthLogic;
|
|
953
948
|
|
|
954
949
|
/**
|
|
955
|
-
*
|
|
956
|
-
* @param authLogicOptions
|
|
950
|
+
* 插入开放接口的鉴权逻辑
|
|
951
|
+
* @param authLogicOptions 开放接口的鉴权逻辑参数
|
|
957
952
|
*/
|
|
958
953
|
insertAuthLogicInAuthLogicsAt(authLogicOptions: Partial<AuthLogic>, index: number): AuthLogic;
|
|
959
954
|
|
|
960
955
|
/**
|
|
961
|
-
*
|
|
962
|
-
* @param authLogic
|
|
956
|
+
* 插入开放接口的鉴权逻辑
|
|
957
|
+
* @param authLogic 已有的开放接口的鉴权逻辑实例
|
|
963
958
|
*/
|
|
964
959
|
insertAuthLogicInAuthLogicsAt(authLogic: AuthLogic, index: number): AuthLogic;
|
|
965
960
|
|
|
@@ -974,23 +969,23 @@ export class App extends BaseNode {
|
|
|
974
969
|
}
|
|
975
970
|
|
|
976
971
|
/**
|
|
977
|
-
*
|
|
972
|
+
* 添加开放接口的鉴权逻辑
|
|
978
973
|
* @internal
|
|
979
|
-
* @param name
|
|
974
|
+
* @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
980
975
|
*/
|
|
981
976
|
_addAuthLogicInAuthLogics(name?: string): AuthLogic;
|
|
982
977
|
|
|
983
978
|
/**
|
|
984
|
-
*
|
|
979
|
+
* 添加开放接口的鉴权逻辑
|
|
985
980
|
* @internal
|
|
986
|
-
* @param authLogicOptions
|
|
981
|
+
* @param authLogicOptions 开放接口的鉴权逻辑参数
|
|
987
982
|
*/
|
|
988
983
|
_addAuthLogicInAuthLogics(authLogicOptions: Partial<AuthLogic>): AuthLogic;
|
|
989
984
|
|
|
990
985
|
/**
|
|
991
|
-
*
|
|
986
|
+
* 添加开放接口的鉴权逻辑
|
|
992
987
|
* @internal
|
|
993
|
-
* @param authLogic
|
|
988
|
+
* @param authLogic 已有的开放接口的鉴权逻辑实例
|
|
994
989
|
*/
|
|
995
990
|
_addAuthLogicInAuthLogics(authLogic: AuthLogic): AuthLogic;
|
|
996
991
|
|
|
@@ -1000,21 +995,21 @@ export class App extends BaseNode {
|
|
|
1000
995
|
}
|
|
1001
996
|
|
|
1002
997
|
/**
|
|
1003
|
-
*
|
|
998
|
+
* 添加开放接口的鉴权逻辑
|
|
1004
999
|
* @internal
|
|
1005
|
-
* @param name
|
|
1000
|
+
* @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
1006
1001
|
*/
|
|
1007
1002
|
addAuthLogicInAuthLogics(name?: string): AuthLogic;
|
|
1008
1003
|
|
|
1009
1004
|
/**
|
|
1010
|
-
*
|
|
1011
|
-
* @param authLogicOptions
|
|
1005
|
+
* 添加开放接口的鉴权逻辑
|
|
1006
|
+
* @param authLogicOptions 开放接口的鉴权逻辑参数
|
|
1012
1007
|
*/
|
|
1013
1008
|
addAuthLogicInAuthLogics(authLogicOptions: Partial<AuthLogic>): AuthLogic;
|
|
1014
1009
|
|
|
1015
1010
|
/**
|
|
1016
|
-
*
|
|
1017
|
-
* @param authLogic
|
|
1011
|
+
* 添加开放接口的鉴权逻辑
|
|
1012
|
+
* @param authLogic 已有的开放接口的鉴权逻辑实例
|
|
1018
1013
|
*/
|
|
1019
1014
|
addAuthLogicInAuthLogics(authLogic: AuthLogic): AuthLogic;
|
|
1020
1015
|
|
|
@@ -1031,32 +1026,31 @@ export class App extends BaseNode {
|
|
|
1031
1026
|
|
|
1032
1027
|
getOverriddenLogicExistingNames(excludedList: Array<OverriddenLogic> = []) {
|
|
1033
1028
|
const excludedSet = new Set(excludedList);
|
|
1034
|
-
return ((this.overriddenLogics as OverriddenLogic[]) || [])
|
|
1035
|
-
.filter((item) => !excludedSet.has(item))
|
|
1036
|
-
.map((item) => item.name);
|
|
1029
|
+
return ((this.overriddenLogics as OverriddenLogic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
1037
1030
|
}
|
|
1031
|
+
|
|
1038
1032
|
getOverriddenLogicUniqueName(name = 'overriddenLogic1') {
|
|
1039
1033
|
return utils.unique(name, this.getOverriddenLogicExistingNames(), undefined, true);
|
|
1040
1034
|
}
|
|
1041
1035
|
|
|
1042
1036
|
/**
|
|
1043
|
-
*
|
|
1037
|
+
* 插入逻辑
|
|
1044
1038
|
* @internal
|
|
1045
|
-
* @param name
|
|
1039
|
+
* @param name 逻辑名称,如果不填会自动生成一个唯一名称
|
|
1046
1040
|
*/
|
|
1047
1041
|
_insertOverriddenLogicAt(name: string, index: number): OverriddenLogic;
|
|
1048
1042
|
|
|
1049
1043
|
/**
|
|
1050
|
-
*
|
|
1044
|
+
* 插入逻辑
|
|
1051
1045
|
* @internal
|
|
1052
|
-
* @param overriddenLogicOptions
|
|
1046
|
+
* @param overriddenLogicOptions 逻辑参数
|
|
1053
1047
|
*/
|
|
1054
1048
|
_insertOverriddenLogicAt(overriddenLogicOptions: Partial<OverriddenLogic>, index: number): OverriddenLogic;
|
|
1055
1049
|
|
|
1056
1050
|
/**
|
|
1057
|
-
*
|
|
1051
|
+
* 插入逻辑
|
|
1058
1052
|
* @internal
|
|
1059
|
-
* @param overriddenLogic
|
|
1053
|
+
* @param overriddenLogic 已有的逻辑实例
|
|
1060
1054
|
*/
|
|
1061
1055
|
_insertOverriddenLogicAt(overriddenLogic: OverriddenLogic, index: number): OverriddenLogic;
|
|
1062
1056
|
|
|
@@ -1071,7 +1065,7 @@ export class App extends BaseNode {
|
|
|
1071
1065
|
name: this.getOverriddenLogicUniqueName(),
|
|
1072
1066
|
},
|
|
1073
1067
|
this,
|
|
1074
|
-
'overriddenLogics'
|
|
1068
|
+
'overriddenLogics'
|
|
1075
1069
|
);
|
|
1076
1070
|
} else if (typeof options === 'string') {
|
|
1077
1071
|
overriddenLogic = OverriddenLogic.from(
|
|
@@ -1080,7 +1074,7 @@ export class App extends BaseNode {
|
|
|
1080
1074
|
name: options,
|
|
1081
1075
|
},
|
|
1082
1076
|
this,
|
|
1083
|
-
'overriddenLogics'
|
|
1077
|
+
'overriddenLogics'
|
|
1084
1078
|
);
|
|
1085
1079
|
} else if (options instanceof OverriddenLogic) {
|
|
1086
1080
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -1093,7 +1087,7 @@ export class App extends BaseNode {
|
|
|
1093
1087
|
...options,
|
|
1094
1088
|
},
|
|
1095
1089
|
this,
|
|
1096
|
-
'overriddenLogics'
|
|
1090
|
+
'overriddenLogics'
|
|
1097
1091
|
);
|
|
1098
1092
|
}
|
|
1099
1093
|
this.overriddenLogics.splice(index, 0, overriddenLogic);
|
|
@@ -1101,20 +1095,20 @@ export class App extends BaseNode {
|
|
|
1101
1095
|
}
|
|
1102
1096
|
|
|
1103
1097
|
/**
|
|
1104
|
-
*
|
|
1105
|
-
* @param name
|
|
1098
|
+
* 插入逻辑
|
|
1099
|
+
* @param name 逻辑名称,如果不填会自动生成一个唯一名称
|
|
1106
1100
|
*/
|
|
1107
1101
|
insertOverriddenLogicAt(name: string, index: number): OverriddenLogic;
|
|
1108
1102
|
|
|
1109
1103
|
/**
|
|
1110
|
-
*
|
|
1111
|
-
* @param overriddenLogicOptions
|
|
1104
|
+
* 插入逻辑
|
|
1105
|
+
* @param overriddenLogicOptions 逻辑参数
|
|
1112
1106
|
*/
|
|
1113
1107
|
insertOverriddenLogicAt(overriddenLogicOptions: Partial<OverriddenLogic>, index: number): OverriddenLogic;
|
|
1114
1108
|
|
|
1115
1109
|
/**
|
|
1116
|
-
*
|
|
1117
|
-
* @param overriddenLogic
|
|
1110
|
+
* 插入逻辑
|
|
1111
|
+
* @param overriddenLogic 已有的逻辑实例
|
|
1118
1112
|
*/
|
|
1119
1113
|
insertOverriddenLogicAt(overriddenLogic: OverriddenLogic, index: number): OverriddenLogic;
|
|
1120
1114
|
|
|
@@ -1129,23 +1123,23 @@ export class App extends BaseNode {
|
|
|
1129
1123
|
}
|
|
1130
1124
|
|
|
1131
1125
|
/**
|
|
1132
|
-
*
|
|
1126
|
+
* 添加逻辑
|
|
1133
1127
|
* @internal
|
|
1134
|
-
* @param name
|
|
1128
|
+
* @param name 逻辑名称,如果不填会自动生成一个唯一名称
|
|
1135
1129
|
*/
|
|
1136
1130
|
_addOverriddenLogic(name?: string): OverriddenLogic;
|
|
1137
1131
|
|
|
1138
1132
|
/**
|
|
1139
|
-
*
|
|
1133
|
+
* 添加逻辑
|
|
1140
1134
|
* @internal
|
|
1141
|
-
* @param overriddenLogicOptions
|
|
1135
|
+
* @param overriddenLogicOptions 逻辑参数
|
|
1142
1136
|
*/
|
|
1143
1137
|
_addOverriddenLogic(overriddenLogicOptions: Partial<OverriddenLogic>): OverriddenLogic;
|
|
1144
1138
|
|
|
1145
1139
|
/**
|
|
1146
|
-
*
|
|
1140
|
+
* 添加逻辑
|
|
1147
1141
|
* @internal
|
|
1148
|
-
* @param overriddenLogic
|
|
1142
|
+
* @param overriddenLogic 已有的逻辑实例
|
|
1149
1143
|
*/
|
|
1150
1144
|
_addOverriddenLogic(overriddenLogic: OverriddenLogic): OverriddenLogic;
|
|
1151
1145
|
|
|
@@ -1155,21 +1149,21 @@ export class App extends BaseNode {
|
|
|
1155
1149
|
}
|
|
1156
1150
|
|
|
1157
1151
|
/**
|
|
1158
|
-
*
|
|
1152
|
+
* 添加逻辑
|
|
1159
1153
|
* @internal
|
|
1160
|
-
* @param name
|
|
1154
|
+
* @param name 逻辑名称,如果不填会自动生成一个唯一名称
|
|
1161
1155
|
*/
|
|
1162
1156
|
addOverriddenLogic(name?: string): OverriddenLogic;
|
|
1163
1157
|
|
|
1164
1158
|
/**
|
|
1165
|
-
*
|
|
1166
|
-
* @param overriddenLogicOptions
|
|
1159
|
+
* 添加逻辑
|
|
1160
|
+
* @param overriddenLogicOptions 逻辑参数
|
|
1167
1161
|
*/
|
|
1168
1162
|
addOverriddenLogic(overriddenLogicOptions: Partial<OverriddenLogic>): OverriddenLogic;
|
|
1169
1163
|
|
|
1170
1164
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
* @param overriddenLogic
|
|
1165
|
+
* 添加逻辑
|
|
1166
|
+
* @param overriddenLogic 已有的逻辑实例
|
|
1173
1167
|
*/
|
|
1174
1168
|
addOverriddenLogic(overriddenLogic: OverriddenLogic): OverriddenLogic;
|
|
1175
1169
|
|
|
@@ -1188,6 +1182,7 @@ export class App extends BaseNode {
|
|
|
1188
1182
|
const excludedSet = new Set(excludedList);
|
|
1189
1183
|
return ((this.interfaces as Interface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
1190
1184
|
}
|
|
1185
|
+
|
|
1191
1186
|
getInterfaceUniqueName(name = 'Interface1') {
|
|
1192
1187
|
return utils.unique(name, this.getInterfaceExistingNames(), undefined, true);
|
|
1193
1188
|
}
|
|
@@ -1224,7 +1219,7 @@ export class App extends BaseNode {
|
|
|
1224
1219
|
name: this.getInterfaceUniqueName(),
|
|
1225
1220
|
},
|
|
1226
1221
|
this,
|
|
1227
|
-
'interfaces'
|
|
1222
|
+
'interfaces'
|
|
1228
1223
|
);
|
|
1229
1224
|
} else if (typeof options === 'string') {
|
|
1230
1225
|
itface = Interface.from(
|
|
@@ -1233,7 +1228,7 @@ export class App extends BaseNode {
|
|
|
1233
1228
|
name: options,
|
|
1234
1229
|
},
|
|
1235
1230
|
this,
|
|
1236
|
-
'interfaces'
|
|
1231
|
+
'interfaces'
|
|
1237
1232
|
);
|
|
1238
1233
|
} else if (options instanceof Interface) {
|
|
1239
1234
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -1246,7 +1241,7 @@ export class App extends BaseNode {
|
|
|
1246
1241
|
...options,
|
|
1247
1242
|
},
|
|
1248
1243
|
this,
|
|
1249
|
-
'interfaces'
|
|
1244
|
+
'interfaces'
|
|
1250
1245
|
);
|
|
1251
1246
|
}
|
|
1252
1247
|
this.interfaces.splice(index, 0, itface);
|
|
@@ -1338,23 +1333,23 @@ export class App extends BaseNode {
|
|
|
1338
1333
|
}
|
|
1339
1334
|
|
|
1340
1335
|
/**
|
|
1341
|
-
*
|
|
1336
|
+
* 插入接口
|
|
1342
1337
|
* @internal
|
|
1343
|
-
* @param name
|
|
1338
|
+
* @param name 接口名称,如果不填会自动生成一个唯一名称
|
|
1344
1339
|
*/
|
|
1345
1340
|
_insertAuthInterfaceInInterfacesAt(name: string, index: number): AuthInterface;
|
|
1346
1341
|
|
|
1347
1342
|
/**
|
|
1348
|
-
*
|
|
1343
|
+
* 插入接口
|
|
1349
1344
|
* @internal
|
|
1350
|
-
* @param itfaceOptions
|
|
1345
|
+
* @param itfaceOptions 接口参数
|
|
1351
1346
|
*/
|
|
1352
1347
|
_insertAuthInterfaceInInterfacesAt(itfaceOptions: Partial<AuthInterface>, index: number): AuthInterface;
|
|
1353
1348
|
|
|
1354
1349
|
/**
|
|
1355
|
-
*
|
|
1350
|
+
* 插入接口
|
|
1356
1351
|
* @internal
|
|
1357
|
-
* @param itface
|
|
1352
|
+
* @param itface 已有的接口实例
|
|
1358
1353
|
*/
|
|
1359
1354
|
_insertAuthInterfaceInInterfacesAt(itface: AuthInterface, index: number): AuthInterface;
|
|
1360
1355
|
|
|
@@ -1369,7 +1364,7 @@ export class App extends BaseNode {
|
|
|
1369
1364
|
name: this.getAuthInterfaceUniqueName(),
|
|
1370
1365
|
},
|
|
1371
1366
|
this,
|
|
1372
|
-
'interfaces'
|
|
1367
|
+
'interfaces'
|
|
1373
1368
|
);
|
|
1374
1369
|
} else if (typeof options === 'string') {
|
|
1375
1370
|
itface = AuthInterface.from(
|
|
@@ -1378,7 +1373,7 @@ export class App extends BaseNode {
|
|
|
1378
1373
|
name: options,
|
|
1379
1374
|
},
|
|
1380
1375
|
this,
|
|
1381
|
-
'interfaces'
|
|
1376
|
+
'interfaces'
|
|
1382
1377
|
);
|
|
1383
1378
|
} else if (options instanceof AuthInterface) {
|
|
1384
1379
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -1391,7 +1386,7 @@ export class App extends BaseNode {
|
|
|
1391
1386
|
...options,
|
|
1392
1387
|
},
|
|
1393
1388
|
this,
|
|
1394
|
-
'interfaces'
|
|
1389
|
+
'interfaces'
|
|
1395
1390
|
);
|
|
1396
1391
|
}
|
|
1397
1392
|
this.interfaces.splice(index, 0, itface);
|
|
@@ -1399,20 +1394,20 @@ export class App extends BaseNode {
|
|
|
1399
1394
|
}
|
|
1400
1395
|
|
|
1401
1396
|
/**
|
|
1402
|
-
*
|
|
1403
|
-
* @param name
|
|
1397
|
+
* 插入接口
|
|
1398
|
+
* @param name 接口名称,如果不填会自动生成一个唯一名称
|
|
1404
1399
|
*/
|
|
1405
1400
|
insertAuthInterfaceInInterfacesAt(name: string, index: number): AuthInterface;
|
|
1406
1401
|
|
|
1407
1402
|
/**
|
|
1408
|
-
*
|
|
1409
|
-
* @param itfaceOptions
|
|
1403
|
+
* 插入接口
|
|
1404
|
+
* @param itfaceOptions 接口参数
|
|
1410
1405
|
*/
|
|
1411
1406
|
insertAuthInterfaceInInterfacesAt(itfaceOptions: Partial<AuthInterface>, index: number): AuthInterface;
|
|
1412
1407
|
|
|
1413
1408
|
/**
|
|
1414
|
-
*
|
|
1415
|
-
* @param itface
|
|
1409
|
+
* 插入接口
|
|
1410
|
+
* @param itface 已有的接口实例
|
|
1416
1411
|
*/
|
|
1417
1412
|
insertAuthInterfaceInInterfacesAt(itface: AuthInterface, index: number): AuthInterface;
|
|
1418
1413
|
|
|
@@ -1427,23 +1422,23 @@ export class App extends BaseNode {
|
|
|
1427
1422
|
}
|
|
1428
1423
|
|
|
1429
1424
|
/**
|
|
1430
|
-
*
|
|
1425
|
+
* 添加接口
|
|
1431
1426
|
* @internal
|
|
1432
|
-
* @param name
|
|
1427
|
+
* @param name 接口名称,如果不填会自动生成一个唯一名称
|
|
1433
1428
|
*/
|
|
1434
1429
|
_addAuthInterfaceInInterfaces(name?: string): AuthInterface;
|
|
1435
1430
|
|
|
1436
1431
|
/**
|
|
1437
|
-
*
|
|
1432
|
+
* 添加接口
|
|
1438
1433
|
* @internal
|
|
1439
|
-
* @param itfaceOptions
|
|
1434
|
+
* @param itfaceOptions 接口参数
|
|
1440
1435
|
*/
|
|
1441
1436
|
_addAuthInterfaceInInterfaces(itfaceOptions: Partial<AuthInterface>): AuthInterface;
|
|
1442
1437
|
|
|
1443
1438
|
/**
|
|
1444
|
-
*
|
|
1439
|
+
* 添加接口
|
|
1445
1440
|
* @internal
|
|
1446
|
-
* @param itface
|
|
1441
|
+
* @param itface 已有的接口实例
|
|
1447
1442
|
*/
|
|
1448
1443
|
_addAuthInterfaceInInterfaces(itface: AuthInterface): AuthInterface;
|
|
1449
1444
|
|
|
@@ -1453,21 +1448,21 @@ export class App extends BaseNode {
|
|
|
1453
1448
|
}
|
|
1454
1449
|
|
|
1455
1450
|
/**
|
|
1456
|
-
*
|
|
1451
|
+
* 添加接口
|
|
1457
1452
|
* @internal
|
|
1458
|
-
* @param name
|
|
1453
|
+
* @param name 接口名称,如果不填会自动生成一个唯一名称
|
|
1459
1454
|
*/
|
|
1460
1455
|
addAuthInterfaceInInterfaces(name?: string): AuthInterface;
|
|
1461
1456
|
|
|
1462
1457
|
/**
|
|
1463
|
-
*
|
|
1464
|
-
* @param itfaceOptions
|
|
1458
|
+
* 添加接口
|
|
1459
|
+
* @param itfaceOptions 接口参数
|
|
1465
1460
|
*/
|
|
1466
1461
|
addAuthInterfaceInInterfaces(itfaceOptions: Partial<AuthInterface>): AuthInterface;
|
|
1467
1462
|
|
|
1468
1463
|
/**
|
|
1469
|
-
*
|
|
1470
|
-
* @param itface
|
|
1464
|
+
* 添加接口
|
|
1465
|
+
* @param itface 已有的接口实例
|
|
1471
1466
|
*/
|
|
1472
1467
|
addAuthInterfaceInInterfaces(itface: AuthInterface): AuthInterface;
|
|
1473
1468
|
|
|
@@ -1486,28 +1481,29 @@ export class App extends BaseNode {
|
|
|
1486
1481
|
const excludedSet = new Set(excludedList);
|
|
1487
1482
|
return ((this.frontends as Frontend[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
1488
1483
|
}
|
|
1484
|
+
|
|
1489
1485
|
getFrontendUniqueName(name = 'frontend1') {
|
|
1490
1486
|
return utils.unique(name, this.getFrontendExistingNames(), undefined, true);
|
|
1491
1487
|
}
|
|
1492
1488
|
|
|
1493
1489
|
/**
|
|
1494
|
-
*
|
|
1490
|
+
* 插入端
|
|
1495
1491
|
* @internal
|
|
1496
|
-
* @param name
|
|
1492
|
+
* @param name 端名称,如果不填会自动生成一个唯一名称
|
|
1497
1493
|
*/
|
|
1498
1494
|
_insertFrontendAt(name: string, index: number): Frontend;
|
|
1499
1495
|
|
|
1500
1496
|
/**
|
|
1501
|
-
*
|
|
1497
|
+
* 插入端
|
|
1502
1498
|
* @internal
|
|
1503
|
-
* @param frontendOptions
|
|
1499
|
+
* @param frontendOptions 端参数
|
|
1504
1500
|
*/
|
|
1505
1501
|
_insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
|
|
1506
1502
|
|
|
1507
1503
|
/**
|
|
1508
|
-
*
|
|
1504
|
+
* 插入端
|
|
1509
1505
|
* @internal
|
|
1510
|
-
* @param frontend
|
|
1506
|
+
* @param frontend 已有的端实例
|
|
1511
1507
|
*/
|
|
1512
1508
|
_insertFrontendAt(frontend: Frontend, index: number): Frontend;
|
|
1513
1509
|
|
|
@@ -1522,7 +1518,7 @@ export class App extends BaseNode {
|
|
|
1522
1518
|
name: this.getFrontendUniqueName(),
|
|
1523
1519
|
},
|
|
1524
1520
|
this,
|
|
1525
|
-
'frontends'
|
|
1521
|
+
'frontends'
|
|
1526
1522
|
);
|
|
1527
1523
|
} else if (typeof options === 'string') {
|
|
1528
1524
|
frontend = Frontend.from(
|
|
@@ -1531,7 +1527,7 @@ export class App extends BaseNode {
|
|
|
1531
1527
|
name: options,
|
|
1532
1528
|
},
|
|
1533
1529
|
this,
|
|
1534
|
-
'frontends'
|
|
1530
|
+
'frontends'
|
|
1535
1531
|
);
|
|
1536
1532
|
} else if (options instanceof Frontend) {
|
|
1537
1533
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -1544,7 +1540,7 @@ export class App extends BaseNode {
|
|
|
1544
1540
|
...options,
|
|
1545
1541
|
},
|
|
1546
1542
|
this,
|
|
1547
|
-
'frontends'
|
|
1543
|
+
'frontends'
|
|
1548
1544
|
);
|
|
1549
1545
|
}
|
|
1550
1546
|
this.frontends.splice(index, 0, frontend);
|
|
@@ -1552,20 +1548,20 @@ export class App extends BaseNode {
|
|
|
1552
1548
|
}
|
|
1553
1549
|
|
|
1554
1550
|
/**
|
|
1555
|
-
*
|
|
1556
|
-
* @param name
|
|
1551
|
+
* 插入端
|
|
1552
|
+
* @param name 端名称,如果不填会自动生成一个唯一名称
|
|
1557
1553
|
*/
|
|
1558
1554
|
insertFrontendAt(name: string, index: number): Frontend;
|
|
1559
1555
|
|
|
1560
1556
|
/**
|
|
1561
|
-
*
|
|
1562
|
-
* @param frontendOptions
|
|
1557
|
+
* 插入端
|
|
1558
|
+
* @param frontendOptions 端参数
|
|
1563
1559
|
*/
|
|
1564
1560
|
insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
|
|
1565
1561
|
|
|
1566
1562
|
/**
|
|
1567
|
-
*
|
|
1568
|
-
* @param frontend
|
|
1563
|
+
* 插入端
|
|
1564
|
+
* @param frontend 已有的端实例
|
|
1569
1565
|
*/
|
|
1570
1566
|
insertFrontendAt(frontend: Frontend, index: number): Frontend;
|
|
1571
1567
|
|
|
@@ -1580,23 +1576,23 @@ export class App extends BaseNode {
|
|
|
1580
1576
|
}
|
|
1581
1577
|
|
|
1582
1578
|
/**
|
|
1583
|
-
*
|
|
1579
|
+
* 添加端
|
|
1584
1580
|
* @internal
|
|
1585
|
-
* @param name
|
|
1581
|
+
* @param name 端名称,如果不填会自动生成一个唯一名称
|
|
1586
1582
|
*/
|
|
1587
1583
|
_addFrontend(name?: string): Frontend;
|
|
1588
1584
|
|
|
1589
1585
|
/**
|
|
1590
|
-
*
|
|
1586
|
+
* 添加端
|
|
1591
1587
|
* @internal
|
|
1592
|
-
* @param frontendOptions
|
|
1588
|
+
* @param frontendOptions 端参数
|
|
1593
1589
|
*/
|
|
1594
1590
|
_addFrontend(frontendOptions: Partial<Frontend>): Frontend;
|
|
1595
1591
|
|
|
1596
1592
|
/**
|
|
1597
|
-
*
|
|
1593
|
+
* 添加端
|
|
1598
1594
|
* @internal
|
|
1599
|
-
* @param frontend
|
|
1595
|
+
* @param frontend 已有的端实例
|
|
1600
1596
|
*/
|
|
1601
1597
|
_addFrontend(frontend: Frontend): Frontend;
|
|
1602
1598
|
|
|
@@ -1606,21 +1602,21 @@ export class App extends BaseNode {
|
|
|
1606
1602
|
}
|
|
1607
1603
|
|
|
1608
1604
|
/**
|
|
1609
|
-
*
|
|
1605
|
+
* 添加端
|
|
1610
1606
|
* @internal
|
|
1611
|
-
* @param name
|
|
1607
|
+
* @param name 端名称,如果不填会自动生成一个唯一名称
|
|
1612
1608
|
*/
|
|
1613
1609
|
addFrontend(name?: string): Frontend;
|
|
1614
1610
|
|
|
1615
1611
|
/**
|
|
1616
|
-
*
|
|
1617
|
-
* @param frontendOptions
|
|
1612
|
+
* 添加端
|
|
1613
|
+
* @param frontendOptions 端参数
|
|
1618
1614
|
*/
|
|
1619
1615
|
addFrontend(frontendOptions: Partial<Frontend>): Frontend;
|
|
1620
1616
|
|
|
1621
1617
|
/**
|
|
1622
|
-
*
|
|
1623
|
-
* @param frontend
|
|
1618
|
+
* 添加端
|
|
1619
|
+
* @param frontend 已有的端实例
|
|
1624
1620
|
*/
|
|
1625
1621
|
addFrontend(frontend: Frontend): Frontend;
|
|
1626
1622
|
|
|
@@ -1639,6 +1635,7 @@ export class App extends BaseNode {
|
|
|
1639
1635
|
const excludedSet = new Set(excludedList);
|
|
1640
1636
|
return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
1641
1637
|
}
|
|
1638
|
+
|
|
1642
1639
|
getProcessUniqueName(name = 'Process1') {
|
|
1643
1640
|
return utils.unique(name, this.getProcessExistingNames(), undefined, true);
|
|
1644
1641
|
}
|
|
@@ -1675,7 +1672,7 @@ export class App extends BaseNode {
|
|
|
1675
1672
|
name: this.getProcessUniqueName(),
|
|
1676
1673
|
},
|
|
1677
1674
|
this,
|
|
1678
|
-
'processes'
|
|
1675
|
+
'processes'
|
|
1679
1676
|
);
|
|
1680
1677
|
} else if (typeof options === 'string') {
|
|
1681
1678
|
process = Process.from(
|
|
@@ -1684,7 +1681,7 @@ export class App extends BaseNode {
|
|
|
1684
1681
|
name: options,
|
|
1685
1682
|
},
|
|
1686
1683
|
this,
|
|
1687
|
-
'processes'
|
|
1684
|
+
'processes'
|
|
1688
1685
|
);
|
|
1689
1686
|
} else if (options instanceof Process) {
|
|
1690
1687
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -1697,7 +1694,7 @@ export class App extends BaseNode {
|
|
|
1697
1694
|
...options,
|
|
1698
1695
|
},
|
|
1699
1696
|
this,
|
|
1700
|
-
'processes'
|
|
1697
|
+
'processes'
|
|
1701
1698
|
);
|
|
1702
1699
|
}
|
|
1703
1700
|
this.processes.splice(index, 0, process);
|
|
@@ -1792,6 +1789,7 @@ export class App extends BaseNode {
|
|
|
1792
1789
|
const excludedSet = new Set(excludedList);
|
|
1793
1790
|
return ((this.roles as Role[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
1794
1791
|
}
|
|
1792
|
+
|
|
1795
1793
|
getRoleUniqueName(name = 'role1') {
|
|
1796
1794
|
return utils.unique(name, this.getRoleExistingNames(), undefined, true);
|
|
1797
1795
|
}
|
|
@@ -1828,7 +1826,7 @@ export class App extends BaseNode {
|
|
|
1828
1826
|
name: this.getRoleUniqueName(),
|
|
1829
1827
|
},
|
|
1830
1828
|
this,
|
|
1831
|
-
'roles'
|
|
1829
|
+
'roles'
|
|
1832
1830
|
);
|
|
1833
1831
|
} else if (typeof options === 'string') {
|
|
1834
1832
|
role = Role.from(
|
|
@@ -1837,7 +1835,7 @@ export class App extends BaseNode {
|
|
|
1837
1835
|
name: options,
|
|
1838
1836
|
},
|
|
1839
1837
|
this,
|
|
1840
|
-
'roles'
|
|
1838
|
+
'roles'
|
|
1841
1839
|
);
|
|
1842
1840
|
} else if (options instanceof Role) {
|
|
1843
1841
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -1850,7 +1848,7 @@ export class App extends BaseNode {
|
|
|
1850
1848
|
...options,
|
|
1851
1849
|
},
|
|
1852
1850
|
this,
|
|
1853
|
-
'roles'
|
|
1851
|
+
'roles'
|
|
1854
1852
|
);
|
|
1855
1853
|
}
|
|
1856
1854
|
this.roles.splice(index, 0, role);
|
|
@@ -1945,6 +1943,7 @@ export class App extends BaseNode {
|
|
|
1945
1943
|
const excludedSet = new Set(excludedList);
|
|
1946
1944
|
return ((this.dependencies as Module[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
1947
1945
|
}
|
|
1946
|
+
|
|
1948
1947
|
getModuleUniqueName(name = 'module1') {
|
|
1949
1948
|
return utils.unique(name, this.getModuleExistingNames(), undefined, false);
|
|
1950
1949
|
}
|
|
@@ -1981,7 +1980,7 @@ export class App extends BaseNode {
|
|
|
1981
1980
|
name: this.getModuleUniqueName(),
|
|
1982
1981
|
},
|
|
1983
1982
|
this,
|
|
1984
|
-
'dependencies'
|
|
1983
|
+
'dependencies'
|
|
1985
1984
|
);
|
|
1986
1985
|
} else if (typeof options === 'string') {
|
|
1987
1986
|
module = Module.from(
|
|
@@ -1990,7 +1989,7 @@ export class App extends BaseNode {
|
|
|
1990
1989
|
name: options,
|
|
1991
1990
|
},
|
|
1992
1991
|
this,
|
|
1993
|
-
'dependencies'
|
|
1992
|
+
'dependencies'
|
|
1994
1993
|
);
|
|
1995
1994
|
} else if (options instanceof Module) {
|
|
1996
1995
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -2003,7 +2002,7 @@ export class App extends BaseNode {
|
|
|
2003
2002
|
...options,
|
|
2004
2003
|
},
|
|
2005
2004
|
this,
|
|
2006
|
-
'dependencies'
|
|
2005
|
+
'dependencies'
|
|
2007
2006
|
);
|
|
2008
2007
|
}
|
|
2009
2008
|
this.dependencies.splice(index, 0, module);
|
|
@@ -2126,7 +2125,7 @@ export class App extends BaseNode {
|
|
|
2126
2125
|
name: this.getConnectorUniqueName(),
|
|
2127
2126
|
},
|
|
2128
2127
|
this,
|
|
2129
|
-
'dependencies'
|
|
2128
|
+
'dependencies'
|
|
2130
2129
|
);
|
|
2131
2130
|
} else if (typeof options === 'string') {
|
|
2132
2131
|
connector = Connector.from(
|
|
@@ -2135,7 +2134,7 @@ export class App extends BaseNode {
|
|
|
2135
2134
|
name: options,
|
|
2136
2135
|
},
|
|
2137
2136
|
this,
|
|
2138
|
-
'dependencies'
|
|
2137
|
+
'dependencies'
|
|
2139
2138
|
);
|
|
2140
2139
|
} else if (options instanceof Connector) {
|
|
2141
2140
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -2148,7 +2147,7 @@ export class App extends BaseNode {
|
|
|
2148
2147
|
...options,
|
|
2149
2148
|
},
|
|
2150
2149
|
this,
|
|
2151
|
-
'dependencies'
|
|
2150
|
+
'dependencies'
|
|
2152
2151
|
);
|
|
2153
2152
|
}
|
|
2154
2153
|
this.dependencies.splice(index, 0, connector);
|
|
@@ -2271,7 +2270,7 @@ export class App extends BaseNode {
|
|
|
2271
2270
|
name: this.getModuleUniqueName(),
|
|
2272
2271
|
},
|
|
2273
2272
|
this,
|
|
2274
|
-
'interfaceDependencies'
|
|
2273
|
+
'interfaceDependencies'
|
|
2275
2274
|
);
|
|
2276
2275
|
} else if (typeof options === 'string') {
|
|
2277
2276
|
module = Module.from(
|
|
@@ -2280,7 +2279,7 @@ export class App extends BaseNode {
|
|
|
2280
2279
|
name: options,
|
|
2281
2280
|
},
|
|
2282
2281
|
this,
|
|
2283
|
-
'interfaceDependencies'
|
|
2282
|
+
'interfaceDependencies'
|
|
2284
2283
|
);
|
|
2285
2284
|
} else if (options instanceof Module) {
|
|
2286
2285
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -2293,7 +2292,7 @@ export class App extends BaseNode {
|
|
|
2293
2292
|
...options,
|
|
2294
2293
|
},
|
|
2295
2294
|
this,
|
|
2296
|
-
'interfaceDependencies'
|
|
2295
|
+
'interfaceDependencies'
|
|
2297
2296
|
);
|
|
2298
2297
|
}
|
|
2299
2298
|
this.interfaceDependencies.splice(index, 0, module);
|
|
@@ -2386,45 +2385,35 @@ export class App extends BaseNode {
|
|
|
2386
2385
|
|
|
2387
2386
|
getAuthLogicForCallInterfaceExistingNames(excludedList: Array<AuthLogicForCallInterface> = []) {
|
|
2388
2387
|
const excludedSet = new Set(excludedList);
|
|
2389
|
-
return ((this.authLogicsForCallInterface as AuthLogicForCallInterface[]) || [])
|
|
2390
|
-
.filter((item) => !excludedSet.has(item))
|
|
2391
|
-
.map((item) => item.name);
|
|
2388
|
+
return ((this.authLogicsForCallInterface as AuthLogicForCallInterface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
2392
2389
|
}
|
|
2390
|
+
|
|
2393
2391
|
getAuthLogicForCallInterfaceUniqueName(name = 'authLogicForCallInterface1') {
|
|
2394
2392
|
return utils.unique(name, this.getAuthLogicForCallInterfaceExistingNames(), undefined, false);
|
|
2395
2393
|
}
|
|
2396
2394
|
|
|
2397
2395
|
/**
|
|
2398
|
-
*
|
|
2396
|
+
* 插入调用的鉴权逻辑
|
|
2399
2397
|
* @internal
|
|
2400
|
-
* @param name
|
|
2398
|
+
* @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
2401
2399
|
*/
|
|
2402
2400
|
_insertAuthLogicForCallInterfaceAt(name: string, index: number): AuthLogicForCallInterface;
|
|
2403
2401
|
|
|
2404
2402
|
/**
|
|
2405
|
-
*
|
|
2403
|
+
* 插入调用的鉴权逻辑
|
|
2406
2404
|
* @internal
|
|
2407
|
-
* @param authLogicForCallInterfaceOptions
|
|
2405
|
+
* @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
|
|
2408
2406
|
*/
|
|
2409
|
-
_insertAuthLogicForCallInterfaceAt(
|
|
2410
|
-
authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
|
|
2411
|
-
index: number,
|
|
2412
|
-
): AuthLogicForCallInterface;
|
|
2407
|
+
_insertAuthLogicForCallInterfaceAt(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>, index: number): AuthLogicForCallInterface;
|
|
2413
2408
|
|
|
2414
2409
|
/**
|
|
2415
|
-
*
|
|
2410
|
+
* 插入调用的鉴权逻辑
|
|
2416
2411
|
* @internal
|
|
2417
|
-
* @param authLogicForCallInterface
|
|
2412
|
+
* @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
|
|
2418
2413
|
*/
|
|
2419
|
-
_insertAuthLogicForCallInterfaceAt(
|
|
2420
|
-
authLogicForCallInterface: AuthLogicForCallInterface,
|
|
2421
|
-
index: number,
|
|
2422
|
-
): AuthLogicForCallInterface;
|
|
2414
|
+
_insertAuthLogicForCallInterfaceAt(authLogicForCallInterface: AuthLogicForCallInterface, index: number): AuthLogicForCallInterface;
|
|
2423
2415
|
|
|
2424
|
-
_insertAuthLogicForCallInterfaceAt(
|
|
2425
|
-
options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface,
|
|
2426
|
-
index: number,
|
|
2427
|
-
) {
|
|
2416
|
+
_insertAuthLogicForCallInterfaceAt(options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface, index: number) {
|
|
2428
2417
|
const authLogicForCallInterfaceOptions: any = {};
|
|
2429
2418
|
const relationOptions = { parentNode: this, parentKey: 'authLogicsForCallInterface' };
|
|
2430
2419
|
let authLogicForCallInterface: AuthLogicForCallInterface;
|
|
@@ -2435,7 +2424,7 @@ export class App extends BaseNode {
|
|
|
2435
2424
|
name: this.getAuthLogicForCallInterfaceUniqueName(),
|
|
2436
2425
|
},
|
|
2437
2426
|
this,
|
|
2438
|
-
'authLogicsForCallInterface'
|
|
2427
|
+
'authLogicsForCallInterface'
|
|
2439
2428
|
);
|
|
2440
2429
|
} else if (typeof options === 'string') {
|
|
2441
2430
|
authLogicForCallInterface = AuthLogicForCallInterface.from(
|
|
@@ -2444,11 +2433,11 @@ export class App extends BaseNode {
|
|
|
2444
2433
|
name: options,
|
|
2445
2434
|
},
|
|
2446
2435
|
this,
|
|
2447
|
-
'authLogicsForCallInterface'
|
|
2436
|
+
'authLogicsForCallInterface'
|
|
2448
2437
|
);
|
|
2449
|
-
} else if (options
|
|
2438
|
+
} else if (options instanceof AuthLogicForCallInterface) {
|
|
2450
2439
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
2451
|
-
authLogicForCallInterface = options
|
|
2440
|
+
authLogicForCallInterface = options;
|
|
2452
2441
|
Object.assign(authLogicForCallInterface, relationOptions);
|
|
2453
2442
|
} else {
|
|
2454
2443
|
authLogicForCallInterface = AuthLogicForCallInterface.from(
|
|
@@ -2457,7 +2446,7 @@ export class App extends BaseNode {
|
|
|
2457
2446
|
...options,
|
|
2458
2447
|
},
|
|
2459
2448
|
this,
|
|
2460
|
-
'authLogicsForCallInterface'
|
|
2449
|
+
'authLogicsForCallInterface'
|
|
2461
2450
|
);
|
|
2462
2451
|
}
|
|
2463
2452
|
this.authLogicsForCallInterface.splice(index, 0, authLogicForCallInterface);
|
|
@@ -2465,33 +2454,24 @@ export class App extends BaseNode {
|
|
|
2465
2454
|
}
|
|
2466
2455
|
|
|
2467
2456
|
/**
|
|
2468
|
-
*
|
|
2469
|
-
* @param name
|
|
2457
|
+
* 插入调用的鉴权逻辑
|
|
2458
|
+
* @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
2470
2459
|
*/
|
|
2471
2460
|
insertAuthLogicForCallInterfaceAt(name: string, index: number): AuthLogicForCallInterface;
|
|
2472
2461
|
|
|
2473
2462
|
/**
|
|
2474
|
-
*
|
|
2475
|
-
* @param authLogicForCallInterfaceOptions
|
|
2463
|
+
* 插入调用的鉴权逻辑
|
|
2464
|
+
* @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
|
|
2476
2465
|
*/
|
|
2477
|
-
insertAuthLogicForCallInterfaceAt(
|
|
2478
|
-
authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
|
|
2479
|
-
index: number,
|
|
2480
|
-
): AuthLogicForCallInterface;
|
|
2466
|
+
insertAuthLogicForCallInterfaceAt(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>, index: number): AuthLogicForCallInterface;
|
|
2481
2467
|
|
|
2482
2468
|
/**
|
|
2483
|
-
*
|
|
2484
|
-
* @param authLogicForCallInterface
|
|
2469
|
+
* 插入调用的鉴权逻辑
|
|
2470
|
+
* @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
|
|
2485
2471
|
*/
|
|
2486
|
-
insertAuthLogicForCallInterfaceAt(
|
|
2487
|
-
authLogicForCallInterface: AuthLogicForCallInterface,
|
|
2488
|
-
index: number,
|
|
2489
|
-
): AuthLogicForCallInterface;
|
|
2472
|
+
insertAuthLogicForCallInterfaceAt(authLogicForCallInterface: AuthLogicForCallInterface, index: number): AuthLogicForCallInterface;
|
|
2490
2473
|
|
|
2491
|
-
insertAuthLogicForCallInterfaceAt(
|
|
2492
|
-
options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface,
|
|
2493
|
-
index: number,
|
|
2494
|
-
) {
|
|
2474
|
+
insertAuthLogicForCallInterfaceAt(options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface, index: number) {
|
|
2495
2475
|
const node = this._insertAuthLogicForCallInterfaceAt(options as any, index);
|
|
2496
2476
|
node.create({
|
|
2497
2477
|
index,
|
|
@@ -2502,25 +2482,23 @@ export class App extends BaseNode {
|
|
|
2502
2482
|
}
|
|
2503
2483
|
|
|
2504
2484
|
/**
|
|
2505
|
-
*
|
|
2485
|
+
* 添加调用的鉴权逻辑
|
|
2506
2486
|
* @internal
|
|
2507
|
-
* @param name
|
|
2487
|
+
* @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
2508
2488
|
*/
|
|
2509
2489
|
_addAuthLogicForCallInterface(name?: string): AuthLogicForCallInterface;
|
|
2510
2490
|
|
|
2511
2491
|
/**
|
|
2512
|
-
*
|
|
2492
|
+
* 添加调用的鉴权逻辑
|
|
2513
2493
|
* @internal
|
|
2514
|
-
* @param authLogicForCallInterfaceOptions
|
|
2494
|
+
* @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
|
|
2515
2495
|
*/
|
|
2516
|
-
_addAuthLogicForCallInterface(
|
|
2517
|
-
authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
|
|
2518
|
-
): AuthLogicForCallInterface;
|
|
2496
|
+
_addAuthLogicForCallInterface(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>): AuthLogicForCallInterface;
|
|
2519
2497
|
|
|
2520
2498
|
/**
|
|
2521
|
-
*
|
|
2499
|
+
* 添加调用的鉴权逻辑
|
|
2522
2500
|
* @internal
|
|
2523
|
-
* @param authLogicForCallInterface
|
|
2501
|
+
* @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
|
|
2524
2502
|
*/
|
|
2525
2503
|
_addAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): AuthLogicForCallInterface;
|
|
2526
2504
|
|
|
@@ -2530,23 +2508,21 @@ export class App extends BaseNode {
|
|
|
2530
2508
|
}
|
|
2531
2509
|
|
|
2532
2510
|
/**
|
|
2533
|
-
*
|
|
2511
|
+
* 添加调用的鉴权逻辑
|
|
2534
2512
|
* @internal
|
|
2535
|
-
* @param name
|
|
2513
|
+
* @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
2536
2514
|
*/
|
|
2537
2515
|
addAuthLogicForCallInterface(name?: string): AuthLogicForCallInterface;
|
|
2538
2516
|
|
|
2539
2517
|
/**
|
|
2540
|
-
*
|
|
2541
|
-
* @param authLogicForCallInterfaceOptions
|
|
2518
|
+
* 添加调用的鉴权逻辑
|
|
2519
|
+
* @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
|
|
2542
2520
|
*/
|
|
2543
|
-
addAuthLogicForCallInterface(
|
|
2544
|
-
authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
|
|
2545
|
-
): AuthLogicForCallInterface;
|
|
2521
|
+
addAuthLogicForCallInterface(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>): AuthLogicForCallInterface;
|
|
2546
2522
|
|
|
2547
2523
|
/**
|
|
2548
|
-
*
|
|
2549
|
-
* @param authLogicForCallInterface
|
|
2524
|
+
* 添加调用的鉴权逻辑
|
|
2525
|
+
* @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
|
|
2550
2526
|
*/
|
|
2551
2527
|
addAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): AuthLogicForCallInterface;
|
|
2552
2528
|
|
|
@@ -2565,6 +2541,7 @@ export class App extends BaseNode {
|
|
|
2565
2541
|
const excludedSet = new Set(excludedList);
|
|
2566
2542
|
return ((this.connections as Connection[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
2567
2543
|
}
|
|
2544
|
+
|
|
2568
2545
|
getConnectionUniqueName(name = 'connection1') {
|
|
2569
2546
|
return utils.unique(name, this.getConnectionExistingNames(), undefined, false);
|
|
2570
2547
|
}
|
|
@@ -2601,7 +2578,7 @@ export class App extends BaseNode {
|
|
|
2601
2578
|
name: this.getConnectionUniqueName(),
|
|
2602
2579
|
},
|
|
2603
2580
|
this,
|
|
2604
|
-
'connections'
|
|
2581
|
+
'connections'
|
|
2605
2582
|
);
|
|
2606
2583
|
} else if (typeof options === 'string') {
|
|
2607
2584
|
connection = Connection.from(
|
|
@@ -2610,7 +2587,7 @@ export class App extends BaseNode {
|
|
|
2610
2587
|
name: options,
|
|
2611
2588
|
},
|
|
2612
2589
|
this,
|
|
2613
|
-
'connections'
|
|
2590
|
+
'connections'
|
|
2614
2591
|
);
|
|
2615
2592
|
} else if (options instanceof Connection) {
|
|
2616
2593
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -2623,7 +2600,7 @@ export class App extends BaseNode {
|
|
|
2623
2600
|
...options,
|
|
2624
2601
|
},
|
|
2625
2602
|
this,
|
|
2626
|
-
'connections'
|
|
2603
|
+
'connections'
|
|
2627
2604
|
);
|
|
2628
2605
|
}
|
|
2629
2606
|
this.connections.splice(index, 0, connection);
|
|
@@ -2716,10 +2693,9 @@ export class App extends BaseNode {
|
|
|
2716
2693
|
|
|
2717
2694
|
getTriggerLauncherExistingNames(excludedList: Array<TriggerLauncher> = []) {
|
|
2718
2695
|
const excludedSet = new Set(excludedList);
|
|
2719
|
-
return ((this.triggerLaunchers as TriggerLauncher[]) || [])
|
|
2720
|
-
.filter((item) => !excludedSet.has(item))
|
|
2721
|
-
.map((item) => item.name);
|
|
2696
|
+
return ((this.triggerLaunchers as TriggerLauncher[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
2722
2697
|
}
|
|
2698
|
+
|
|
2723
2699
|
getTriggerLauncherUniqueName(name = 'triggerLauncher1') {
|
|
2724
2700
|
return utils.unique(name, this.getTriggerLauncherExistingNames(), undefined, false);
|
|
2725
2701
|
}
|
|
@@ -2756,7 +2732,7 @@ export class App extends BaseNode {
|
|
|
2756
2732
|
name: this.getTriggerLauncherUniqueName(),
|
|
2757
2733
|
},
|
|
2758
2734
|
this,
|
|
2759
|
-
'triggerLaunchers'
|
|
2735
|
+
'triggerLaunchers'
|
|
2760
2736
|
);
|
|
2761
2737
|
} else if (typeof options === 'string') {
|
|
2762
2738
|
triggerLauncher = TriggerLauncher.from(
|
|
@@ -2765,7 +2741,7 @@ export class App extends BaseNode {
|
|
|
2765
2741
|
name: options,
|
|
2766
2742
|
},
|
|
2767
2743
|
this,
|
|
2768
|
-
'triggerLaunchers'
|
|
2744
|
+
'triggerLaunchers'
|
|
2769
2745
|
);
|
|
2770
2746
|
} else if (options instanceof TriggerLauncher) {
|
|
2771
2747
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
@@ -2778,7 +2754,7 @@ export class App extends BaseNode {
|
|
|
2778
2754
|
...options,
|
|
2779
2755
|
},
|
|
2780
2756
|
this,
|
|
2781
|
-
'triggerLaunchers'
|
|
2757
|
+
'triggerLaunchers'
|
|
2782
2758
|
);
|
|
2783
2759
|
}
|
|
2784
2760
|
this.triggerLaunchers.splice(index, 0, triggerLauncher);
|
|
@@ -2886,7 +2862,7 @@ export class App extends BaseNode {
|
|
|
2886
2862
|
if (typeof options === 'string') {
|
|
2887
2863
|
dataSource = (this.dataSources as DataSource[]).find((item) => item.name === options);
|
|
2888
2864
|
if (!dataSource) {
|
|
2889
|
-
throw new Error(
|
|
2865
|
+
throw new Error(`找不到数据源 ${options}`);
|
|
2890
2866
|
}
|
|
2891
2867
|
} else {
|
|
2892
2868
|
dataSource = options;
|
|
@@ -2895,7 +2871,7 @@ export class App extends BaseNode {
|
|
|
2895
2871
|
}
|
|
2896
2872
|
|
|
2897
2873
|
__removeDataSource(dataSource: DataSource) {
|
|
2898
|
-
const parentKey = dataSource
|
|
2874
|
+
const { parentKey } = dataSource;
|
|
2899
2875
|
const params: Params = {
|
|
2900
2876
|
parentNode: this,
|
|
2901
2877
|
parentKey,
|
|
@@ -2934,7 +2910,7 @@ export class App extends BaseNode {
|
|
|
2934
2910
|
if (typeof options === 'string') {
|
|
2935
2911
|
structure = (this.structures as Structure[]).find((item) => item.name === options);
|
|
2936
2912
|
if (!structure) {
|
|
2937
|
-
throw new Error(
|
|
2913
|
+
throw new Error(`找不到数据结构 ${options}`);
|
|
2938
2914
|
}
|
|
2939
2915
|
} else {
|
|
2940
2916
|
structure = options;
|
|
@@ -2943,7 +2919,7 @@ export class App extends BaseNode {
|
|
|
2943
2919
|
}
|
|
2944
2920
|
|
|
2945
2921
|
__removeStructure(structure: Structure) {
|
|
2946
|
-
const parentKey = structure
|
|
2922
|
+
const { parentKey } = structure;
|
|
2947
2923
|
const params: Params = {
|
|
2948
2924
|
parentNode: this,
|
|
2949
2925
|
parentKey,
|
|
@@ -2982,7 +2958,7 @@ export class App extends BaseNode {
|
|
|
2982
2958
|
if (typeof options === 'string') {
|
|
2983
2959
|
enumeration = (this.enums as Enum[]).find((item) => item.name === options);
|
|
2984
2960
|
if (!enumeration) {
|
|
2985
|
-
throw new Error(
|
|
2961
|
+
throw new Error(`找不到枚举 ${options}`);
|
|
2986
2962
|
}
|
|
2987
2963
|
} else {
|
|
2988
2964
|
enumeration = options;
|
|
@@ -2991,7 +2967,7 @@ export class App extends BaseNode {
|
|
|
2991
2967
|
}
|
|
2992
2968
|
|
|
2993
2969
|
__removeEnum(enumeration: Enum) {
|
|
2994
|
-
const parentKey = enumeration
|
|
2970
|
+
const { parentKey } = enumeration;
|
|
2995
2971
|
const params: Params = {
|
|
2996
2972
|
parentNode: this,
|
|
2997
2973
|
parentKey,
|
|
@@ -3030,7 +3006,7 @@ export class App extends BaseNode {
|
|
|
3030
3006
|
if (typeof options === 'string') {
|
|
3031
3007
|
logic = (this.logics as Logic[]).find((item) => item.name === options);
|
|
3032
3008
|
if (!logic) {
|
|
3033
|
-
throw new Error(
|
|
3009
|
+
throw new Error(`找不到逻辑 ${options}`);
|
|
3034
3010
|
}
|
|
3035
3011
|
} else {
|
|
3036
3012
|
logic = options;
|
|
@@ -3039,14 +3015,14 @@ export class App extends BaseNode {
|
|
|
3039
3015
|
}
|
|
3040
3016
|
|
|
3041
3017
|
/**
|
|
3042
|
-
*
|
|
3043
|
-
* @param name
|
|
3018
|
+
* 删除开放接口的鉴权逻辑
|
|
3019
|
+
* @param name 开放接口的鉴权逻辑名称
|
|
3044
3020
|
*/
|
|
3045
3021
|
removeAuthLogicInAuthLogics(name: string): void;
|
|
3046
3022
|
|
|
3047
3023
|
/**
|
|
3048
|
-
*
|
|
3049
|
-
* @param authLogic
|
|
3024
|
+
* 删除开放接口的鉴权逻辑
|
|
3025
|
+
* @param authLogic 已有的开放接口的鉴权逻辑实例
|
|
3050
3026
|
*/
|
|
3051
3027
|
removeAuthLogicInAuthLogics(authLogic: AuthLogic): void;
|
|
3052
3028
|
|
|
@@ -3055,7 +3031,7 @@ export class App extends BaseNode {
|
|
|
3055
3031
|
if (typeof options === 'string') {
|
|
3056
3032
|
authLogic = (this.authLogics as AuthLogic[]).find((item) => item.name === options);
|
|
3057
3033
|
if (!authLogic) {
|
|
3058
|
-
throw new Error(
|
|
3034
|
+
throw new Error(`找不到开放接口的鉴权逻辑 ${options}`);
|
|
3059
3035
|
}
|
|
3060
3036
|
} else {
|
|
3061
3037
|
authLogic = options;
|
|
@@ -3064,7 +3040,7 @@ export class App extends BaseNode {
|
|
|
3064
3040
|
}
|
|
3065
3041
|
|
|
3066
3042
|
__removeLogic(logic: Logic) {
|
|
3067
|
-
const parentKey = logic
|
|
3043
|
+
const { parentKey } = logic;
|
|
3068
3044
|
const params: Params = {
|
|
3069
3045
|
parentNode: this,
|
|
3070
3046
|
parentKey,
|
|
@@ -3087,14 +3063,14 @@ export class App extends BaseNode {
|
|
|
3087
3063
|
}
|
|
3088
3064
|
|
|
3089
3065
|
/**
|
|
3090
|
-
*
|
|
3091
|
-
* @param name
|
|
3066
|
+
* 删除逻辑
|
|
3067
|
+
* @param name 逻辑名称
|
|
3092
3068
|
*/
|
|
3093
3069
|
removeOverriddenLogic(name: string): void;
|
|
3094
3070
|
|
|
3095
3071
|
/**
|
|
3096
|
-
*
|
|
3097
|
-
* @param overriddenLogic
|
|
3072
|
+
* 删除逻辑
|
|
3073
|
+
* @param overriddenLogic 已有的逻辑实例
|
|
3098
3074
|
*/
|
|
3099
3075
|
removeOverriddenLogic(overriddenLogic: OverriddenLogic): void;
|
|
3100
3076
|
|
|
@@ -3103,7 +3079,7 @@ export class App extends BaseNode {
|
|
|
3103
3079
|
if (typeof options === 'string') {
|
|
3104
3080
|
overriddenLogic = (this.overriddenLogics as OverriddenLogic[]).find((item) => item.name === options);
|
|
3105
3081
|
if (!overriddenLogic) {
|
|
3106
|
-
throw new Error(
|
|
3082
|
+
throw new Error(`找不到逻辑 ${options}`);
|
|
3107
3083
|
}
|
|
3108
3084
|
} else {
|
|
3109
3085
|
overriddenLogic = options;
|
|
@@ -3112,7 +3088,7 @@ export class App extends BaseNode {
|
|
|
3112
3088
|
}
|
|
3113
3089
|
|
|
3114
3090
|
__removeOverriddenLogic(overriddenLogic: OverriddenLogic) {
|
|
3115
|
-
const parentKey = overriddenLogic
|
|
3091
|
+
const { parentKey } = overriddenLogic;
|
|
3116
3092
|
const params: Params = {
|
|
3117
3093
|
parentNode: this,
|
|
3118
3094
|
parentKey,
|
|
@@ -3151,7 +3127,7 @@ export class App extends BaseNode {
|
|
|
3151
3127
|
if (typeof options === 'string') {
|
|
3152
3128
|
itface = (this.interfaces as Interface[]).find((item) => item.name === options);
|
|
3153
3129
|
if (!itface) {
|
|
3154
|
-
throw new Error(
|
|
3130
|
+
throw new Error(`找不到接口 ${options}`);
|
|
3155
3131
|
}
|
|
3156
3132
|
} else {
|
|
3157
3133
|
itface = options;
|
|
@@ -3160,14 +3136,14 @@ export class App extends BaseNode {
|
|
|
3160
3136
|
}
|
|
3161
3137
|
|
|
3162
3138
|
/**
|
|
3163
|
-
*
|
|
3164
|
-
* @param name
|
|
3139
|
+
* 删除接口
|
|
3140
|
+
* @param name 接口名称
|
|
3165
3141
|
*/
|
|
3166
3142
|
removeAuthInterfaceInInterfaces(name: string): void;
|
|
3167
3143
|
|
|
3168
3144
|
/**
|
|
3169
|
-
*
|
|
3170
|
-
* @param itface
|
|
3145
|
+
* 删除接口
|
|
3146
|
+
* @param itface 已有的接口实例
|
|
3171
3147
|
*/
|
|
3172
3148
|
removeAuthInterfaceInInterfaces(itface: AuthInterface): void;
|
|
3173
3149
|
|
|
@@ -3176,7 +3152,7 @@ export class App extends BaseNode {
|
|
|
3176
3152
|
if (typeof options === 'string') {
|
|
3177
3153
|
itface = (this.interfaces as AuthInterface[]).find((item) => item.name === options);
|
|
3178
3154
|
if (!itface) {
|
|
3179
|
-
throw new Error(
|
|
3155
|
+
throw new Error(`找不到接口 ${options}`);
|
|
3180
3156
|
}
|
|
3181
3157
|
} else {
|
|
3182
3158
|
itface = options;
|
|
@@ -3185,7 +3161,7 @@ export class App extends BaseNode {
|
|
|
3185
3161
|
}
|
|
3186
3162
|
|
|
3187
3163
|
__removeInterface(itface: Interface) {
|
|
3188
|
-
const parentKey = itface
|
|
3164
|
+
const { parentKey } = itface;
|
|
3189
3165
|
const params: Params = {
|
|
3190
3166
|
parentNode: this,
|
|
3191
3167
|
parentKey,
|
|
@@ -3208,14 +3184,14 @@ export class App extends BaseNode {
|
|
|
3208
3184
|
}
|
|
3209
3185
|
|
|
3210
3186
|
/**
|
|
3211
|
-
*
|
|
3212
|
-
* @param name
|
|
3187
|
+
* 删除端
|
|
3188
|
+
* @param name 端名称
|
|
3213
3189
|
*/
|
|
3214
3190
|
removeFrontend(name: string): void;
|
|
3215
3191
|
|
|
3216
3192
|
/**
|
|
3217
|
-
*
|
|
3218
|
-
* @param frontend
|
|
3193
|
+
* 删除端
|
|
3194
|
+
* @param frontend 已有的端实例
|
|
3219
3195
|
*/
|
|
3220
3196
|
removeFrontend(frontend: Frontend): void;
|
|
3221
3197
|
|
|
@@ -3224,7 +3200,7 @@ export class App extends BaseNode {
|
|
|
3224
3200
|
if (typeof options === 'string') {
|
|
3225
3201
|
frontend = (this.frontends as Frontend[]).find((item) => item.name === options);
|
|
3226
3202
|
if (!frontend) {
|
|
3227
|
-
throw new Error(
|
|
3203
|
+
throw new Error(`找不到端 ${options}`);
|
|
3228
3204
|
}
|
|
3229
3205
|
} else {
|
|
3230
3206
|
frontend = options;
|
|
@@ -3233,7 +3209,7 @@ export class App extends BaseNode {
|
|
|
3233
3209
|
}
|
|
3234
3210
|
|
|
3235
3211
|
__removeFrontend(frontend: Frontend) {
|
|
3236
|
-
const parentKey = frontend
|
|
3212
|
+
const { parentKey } = frontend;
|
|
3237
3213
|
const params: Params = {
|
|
3238
3214
|
parentNode: this,
|
|
3239
3215
|
parentKey,
|
|
@@ -3272,7 +3248,7 @@ export class App extends BaseNode {
|
|
|
3272
3248
|
if (typeof options === 'string') {
|
|
3273
3249
|
backend = this.backend;
|
|
3274
3250
|
if (!backend) {
|
|
3275
|
-
throw new Error(
|
|
3251
|
+
throw new Error(`找不到后端 ${options}`);
|
|
3276
3252
|
}
|
|
3277
3253
|
} else {
|
|
3278
3254
|
backend = options;
|
|
@@ -3281,7 +3257,7 @@ export class App extends BaseNode {
|
|
|
3281
3257
|
}
|
|
3282
3258
|
|
|
3283
3259
|
__removeBackend(backend: Backend) {
|
|
3284
|
-
const parentKey = backend
|
|
3260
|
+
const { parentKey } = backend;
|
|
3285
3261
|
const params: Params = {
|
|
3286
3262
|
parentNode: this,
|
|
3287
3263
|
parentKey,
|
|
@@ -3320,7 +3296,7 @@ export class App extends BaseNode {
|
|
|
3320
3296
|
if (typeof options === 'string') {
|
|
3321
3297
|
process = (this.processes as Process[]).find((item) => item.name === options);
|
|
3322
3298
|
if (!process) {
|
|
3323
|
-
throw new Error(
|
|
3299
|
+
throw new Error(`找不到流程 ${options}`);
|
|
3324
3300
|
}
|
|
3325
3301
|
} else {
|
|
3326
3302
|
process = options;
|
|
@@ -3329,7 +3305,7 @@ export class App extends BaseNode {
|
|
|
3329
3305
|
}
|
|
3330
3306
|
|
|
3331
3307
|
__removeProcess(process: Process) {
|
|
3332
|
-
const parentKey = process
|
|
3308
|
+
const { parentKey } = process;
|
|
3333
3309
|
const params: Params = {
|
|
3334
3310
|
parentNode: this,
|
|
3335
3311
|
parentKey,
|
|
@@ -3368,7 +3344,7 @@ export class App extends BaseNode {
|
|
|
3368
3344
|
if (typeof options === 'string') {
|
|
3369
3345
|
role = (this.roles as Role[]).find((item) => item.name === options);
|
|
3370
3346
|
if (!role) {
|
|
3371
|
-
throw new Error(
|
|
3347
|
+
throw new Error(`找不到角色 ${options}`);
|
|
3372
3348
|
}
|
|
3373
3349
|
} else {
|
|
3374
3350
|
role = options;
|
|
@@ -3377,7 +3353,7 @@ export class App extends BaseNode {
|
|
|
3377
3353
|
}
|
|
3378
3354
|
|
|
3379
3355
|
__removeRole(role: Role) {
|
|
3380
|
-
const parentKey = role
|
|
3356
|
+
const { parentKey } = role;
|
|
3381
3357
|
const params: Params = {
|
|
3382
3358
|
parentNode: this,
|
|
3383
3359
|
parentKey,
|
|
@@ -3416,7 +3392,7 @@ export class App extends BaseNode {
|
|
|
3416
3392
|
if (typeof options === 'string') {
|
|
3417
3393
|
configuration = this.configuration;
|
|
3418
3394
|
if (!configuration) {
|
|
3419
|
-
throw new Error(
|
|
3395
|
+
throw new Error(`找不到配置管理 ${options}`);
|
|
3420
3396
|
}
|
|
3421
3397
|
} else {
|
|
3422
3398
|
configuration = options;
|
|
@@ -3425,7 +3401,7 @@ export class App extends BaseNode {
|
|
|
3425
3401
|
}
|
|
3426
3402
|
|
|
3427
3403
|
__removeConfiguration(configuration: Configuration) {
|
|
3428
|
-
const parentKey = configuration
|
|
3404
|
+
const { parentKey } = configuration;
|
|
3429
3405
|
const params: Params = {
|
|
3430
3406
|
parentNode: this,
|
|
3431
3407
|
parentKey,
|
|
@@ -3464,7 +3440,7 @@ export class App extends BaseNode {
|
|
|
3464
3440
|
if (typeof options === 'string') {
|
|
3465
3441
|
module = (this.dependencies as Module[]).find((item) => item.name === options);
|
|
3466
3442
|
if (!module) {
|
|
3467
|
-
throw new Error(
|
|
3443
|
+
throw new Error(`找不到模块 ${options}`);
|
|
3468
3444
|
}
|
|
3469
3445
|
} else {
|
|
3470
3446
|
module = options;
|
|
@@ -3489,7 +3465,7 @@ export class App extends BaseNode {
|
|
|
3489
3465
|
if (typeof options === 'string') {
|
|
3490
3466
|
connector = (this.dependencies as Connector[]).find((item) => item.name === options);
|
|
3491
3467
|
if (!connector) {
|
|
3492
|
-
throw new Error(
|
|
3468
|
+
throw new Error(`找不到连接器 ${options}`);
|
|
3493
3469
|
}
|
|
3494
3470
|
} else {
|
|
3495
3471
|
connector = options;
|
|
@@ -3514,7 +3490,7 @@ export class App extends BaseNode {
|
|
|
3514
3490
|
if (typeof options === 'string') {
|
|
3515
3491
|
module = (this.interfaceDependencies as Module[]).find((item) => item.name === options);
|
|
3516
3492
|
if (!module) {
|
|
3517
|
-
throw new Error(
|
|
3493
|
+
throw new Error(`找不到模块 ${options}`);
|
|
3518
3494
|
}
|
|
3519
3495
|
} else {
|
|
3520
3496
|
module = options;
|
|
@@ -3523,7 +3499,7 @@ export class App extends BaseNode {
|
|
|
3523
3499
|
}
|
|
3524
3500
|
|
|
3525
3501
|
__removeModule(module: Module) {
|
|
3526
|
-
const parentKey = module
|
|
3502
|
+
const { parentKey } = module;
|
|
3527
3503
|
const params: Params = {
|
|
3528
3504
|
parentNode: this,
|
|
3529
3505
|
parentKey,
|
|
@@ -3562,7 +3538,7 @@ export class App extends BaseNode {
|
|
|
3562
3538
|
if (typeof options === 'string') {
|
|
3563
3539
|
integration = this.integration;
|
|
3564
3540
|
if (!integration) {
|
|
3565
|
-
throw new Error(
|
|
3541
|
+
throw new Error(`找不到集成 ${options}`);
|
|
3566
3542
|
}
|
|
3567
3543
|
} else {
|
|
3568
3544
|
integration = options;
|
|
@@ -3571,7 +3547,7 @@ export class App extends BaseNode {
|
|
|
3571
3547
|
}
|
|
3572
3548
|
|
|
3573
3549
|
__removeIntegration(integration: Integration) {
|
|
3574
|
-
const parentKey = integration
|
|
3550
|
+
const { parentKey } = integration;
|
|
3575
3551
|
const params: Params = {
|
|
3576
3552
|
parentNode: this,
|
|
3577
3553
|
parentKey,
|
|
@@ -3594,25 +3570,23 @@ export class App extends BaseNode {
|
|
|
3594
3570
|
}
|
|
3595
3571
|
|
|
3596
3572
|
/**
|
|
3597
|
-
*
|
|
3598
|
-
* @param name
|
|
3573
|
+
* 删除调用的鉴权逻辑
|
|
3574
|
+
* @param name 调用的鉴权逻辑名称
|
|
3599
3575
|
*/
|
|
3600
3576
|
removeAuthLogicForCallInterface(name: string): void;
|
|
3601
3577
|
|
|
3602
3578
|
/**
|
|
3603
|
-
*
|
|
3604
|
-
* @param authLogicForCallInterface
|
|
3579
|
+
* 删除调用的鉴权逻辑
|
|
3580
|
+
* @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
|
|
3605
3581
|
*/
|
|
3606
3582
|
removeAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): void;
|
|
3607
3583
|
|
|
3608
3584
|
removeAuthLogicForCallInterface(options: string | AuthLogicForCallInterface) {
|
|
3609
3585
|
let authLogicForCallInterface: AuthLogicForCallInterface;
|
|
3610
3586
|
if (typeof options === 'string') {
|
|
3611
|
-
authLogicForCallInterface = (this.authLogicsForCallInterface as AuthLogicForCallInterface[]).find(
|
|
3612
|
-
(item) => item.name === options,
|
|
3613
|
-
);
|
|
3587
|
+
authLogicForCallInterface = (this.authLogicsForCallInterface as AuthLogicForCallInterface[]).find((item) => item.name === options);
|
|
3614
3588
|
if (!authLogicForCallInterface) {
|
|
3615
|
-
throw new Error(
|
|
3589
|
+
throw new Error(`找不到调用的鉴权逻辑 ${options}`);
|
|
3616
3590
|
}
|
|
3617
3591
|
} else {
|
|
3618
3592
|
authLogicForCallInterface = options;
|
|
@@ -3621,7 +3595,7 @@ export class App extends BaseNode {
|
|
|
3621
3595
|
}
|
|
3622
3596
|
|
|
3623
3597
|
__removeAuthLogic(authLogic: AuthLogic) {
|
|
3624
|
-
const parentKey = authLogic
|
|
3598
|
+
const { parentKey } = authLogic;
|
|
3625
3599
|
const params: Params = {
|
|
3626
3600
|
parentNode: this,
|
|
3627
3601
|
parentKey,
|
|
@@ -3660,7 +3634,7 @@ export class App extends BaseNode {
|
|
|
3660
3634
|
if (typeof options === 'string') {
|
|
3661
3635
|
connection = (this.connections as Connection[]).find((item) => item.name === options);
|
|
3662
3636
|
if (!connection) {
|
|
3663
|
-
throw new Error(
|
|
3637
|
+
throw new Error(`找不到连接 ${options}`);
|
|
3664
3638
|
}
|
|
3665
3639
|
} else {
|
|
3666
3640
|
connection = options;
|
|
@@ -3669,7 +3643,7 @@ export class App extends BaseNode {
|
|
|
3669
3643
|
}
|
|
3670
3644
|
|
|
3671
3645
|
__removeConnection(connection: Connection) {
|
|
3672
|
-
const parentKey = connection
|
|
3646
|
+
const { parentKey } = connection;
|
|
3673
3647
|
const params: Params = {
|
|
3674
3648
|
parentNode: this,
|
|
3675
3649
|
parentKey,
|
|
@@ -3708,7 +3682,7 @@ export class App extends BaseNode {
|
|
|
3708
3682
|
if (typeof options === 'string') {
|
|
3709
3683
|
triggerLauncher = (this.triggerLaunchers as TriggerLauncher[]).find((item) => item.name === options);
|
|
3710
3684
|
if (!triggerLauncher) {
|
|
3711
|
-
throw new Error(
|
|
3685
|
+
throw new Error(`找不到触发器启动器 ${options}`);
|
|
3712
3686
|
}
|
|
3713
3687
|
} else {
|
|
3714
3688
|
triggerLauncher = options;
|
|
@@ -3717,7 +3691,7 @@ export class App extends BaseNode {
|
|
|
3717
3691
|
}
|
|
3718
3692
|
|
|
3719
3693
|
__removeTriggerLauncher(triggerLauncher: TriggerLauncher) {
|
|
3720
|
-
const parentKey = triggerLauncher
|
|
3694
|
+
const { parentKey } = triggerLauncher;
|
|
3721
3695
|
const params: Params = {
|
|
3722
3696
|
parentNode: this,
|
|
3723
3697
|
parentKey,
|
|
@@ -3739,10 +3713,10 @@ export class App extends BaseNode {
|
|
|
3739
3713
|
return params;
|
|
3740
3714
|
}
|
|
3741
3715
|
|
|
3742
|
-
|
|
3716
|
+
//= ===============================================================================
|
|
3743
3717
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
3744
3718
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
3745
|
-
|
|
3719
|
+
//= ===============================================================================
|
|
3746
3720
|
|
|
3747
3721
|
findDataSourceByName(name: string) {
|
|
3748
3722
|
return this.dataSources.find((dataSourceItem) => dataSourceItem.name === name);
|
|
@@ -3892,13 +3866,9 @@ export class App extends BaseNode {
|
|
|
3892
3866
|
};
|
|
3893
3867
|
|
|
3894
3868
|
packageInfo.template.name = scope === 'h5' ? '@lcap/mobile-template' : 'lcap-pc-template';
|
|
3895
|
-
packageInfo.template.version =
|
|
3896
|
-
scope === 'h5' ? dependencyMap.FrontendArchH5.version : dependencyMap.FrontendArchPC.version;
|
|
3869
|
+
packageInfo.template.version = scope === 'h5' ? dependencyMap.FrontendArchH5.version : dependencyMap.FrontendArchPC.version;
|
|
3897
3870
|
packageInfo.ui.name = scope === 'h5' ? '@lcap/mobile-ui' : 'cloud-ui.vusion';
|
|
3898
|
-
packageInfo.ui.version =
|
|
3899
|
-
scope === 'h5'
|
|
3900
|
-
? dependencyMap.FrontendComponentLibraryH5.version
|
|
3901
|
-
: dependencyMap.FrontendComponentLibraryPC.version;
|
|
3871
|
+
packageInfo.ui.version = scope === 'h5' ? dependencyMap.FrontendComponentLibraryH5.version : dependencyMap.FrontendComponentLibraryPC.version;
|
|
3902
3872
|
return packageInfo;
|
|
3903
3873
|
}
|
|
3904
3874
|
|
|
@@ -3973,20 +3943,18 @@ export class App extends BaseNode {
|
|
|
3973
3943
|
});
|
|
3974
3944
|
});
|
|
3975
3945
|
this.dependencies.forEach((dep: Module) => {
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
}
|
|
3987
|
-
}
|
|
3988
|
-
});
|
|
3946
|
+
const { name, version, compilerInfoMap, frontends } = dep;
|
|
3947
|
+
const prefixPath = compilerInfoMap?.js?.prefix;
|
|
3948
|
+
(frontends || []).forEach((frontend) => {
|
|
3949
|
+
if (frontend.type === scope) {
|
|
3950
|
+
const jsName = `${prefix}/packages/${prefixPath ? `${prefixPath}/` : ''}${name}@${version}/dist-theme/index.js`;
|
|
3951
|
+
if (!existingSet.has(jsName)) {
|
|
3952
|
+
existingSet.add(jsName);
|
|
3953
|
+
result.custom.js.push(jsName);
|
|
3954
|
+
result.custom.names.push(dep.name);
|
|
3955
|
+
}
|
|
3989
3956
|
}
|
|
3957
|
+
});
|
|
3990
3958
|
});
|
|
3991
3959
|
return result;
|
|
3992
3960
|
}
|
|
@@ -4209,10 +4177,7 @@ export class App extends BaseNode {
|
|
|
4209
4177
|
message: `输出参数发生变更,请点击“重新导出”`,
|
|
4210
4178
|
});
|
|
4211
4179
|
}
|
|
4212
|
-
} else if (
|
|
4213
|
-
JSON.stringify(logicReturns[0]?.typeAnnotation?.toJSON()) !==
|
|
4214
|
-
JSON.stringify(interfaceReturns[0]?.typeAnnotation?.toJSON())
|
|
4215
|
-
) {
|
|
4180
|
+
} else if (JSON.stringify(logicReturns[0]?.typeAnnotation?.toJSON()) !== JSON.stringify(interfaceReturns[0]?.typeAnnotation?.toJSON())) {
|
|
4216
4181
|
errorList.push({
|
|
4217
4182
|
logicName: logic.name,
|
|
4218
4183
|
interfaceName: item.name,
|
|
@@ -4359,30 +4324,15 @@ export class App extends BaseNode {
|
|
|
4359
4324
|
return this.logics.find((item) => item.name === name);
|
|
4360
4325
|
}
|
|
4361
4326
|
|
|
4362
|
-
|
|
4363
|
-
getModuleExistingTitles(excludedList: Array<Module> = []) {
|
|
4364
|
-
const excludedSet = new Set(excludedList);
|
|
4365
|
-
return ((this.dependencies as Module[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.title);
|
|
4366
|
-
}
|
|
4367
|
-
|
|
4368
|
-
/** hank */
|
|
4369
|
-
// setConnector() {
|
|
4370
|
-
// const [a, b, c, d, e, f] = this.connections;
|
|
4371
|
-
// console.log(a, b, c, d, e, f, this.connections)
|
|
4372
|
-
// const res = []
|
|
4373
|
-
// this.update({
|
|
4374
|
-
// connections: [a, b, c, e, f],
|
|
4375
|
-
// });
|
|
4376
|
-
// }
|
|
4377
|
-
|
|
4378
|
-
//================================================================================
|
|
4327
|
+
//= ===============================================================================
|
|
4379
4328
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
4380
4329
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
4381
|
-
|
|
4330
|
+
//= ===============================================================================
|
|
4382
4331
|
}
|
|
4383
4332
|
|
|
4333
|
+
classMap.App = App;
|
|
4384
4334
|
export default App;
|
|
4385
|
-
|
|
4335
|
+
//= ===============================================================================
|
|
4386
4336
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
4387
4337
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
4388
|
-
|
|
4338
|
+
//= ===============================================================================
|