@lcap/nasl 3.3.2-beta.3 → 3.3.2-beta.5
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/coverage/index.html +108 -108
- package/coverage/src/automate/engine/index.html +1 -1
- package/coverage/src/automate/engine/utils.js.html +36 -36
- package/coverage/src/bak/index.html +15 -15
- package/coverage/src/bak/translator.js.html +183 -60
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/index.html +1 -1
- package/coverage/src/breakpoint/generator/index.ts.html +1 -1
- package/coverage/src/breakpoint/index.html +1 -1
- package/coverage/src/breakpoint/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
- package/coverage/src/breakpoint/shared/index.html +1 -1
- package/coverage/src/breakpoint/shared/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/operations.ts.html +1 -1
- package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
- package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
- package/coverage/src/breakpoint/store/core.ts.html +1 -1
- package/coverage/src/breakpoint/store/dock.ts.html +1 -1
- package/coverage/src/breakpoint/store/index.html +1 -1
- package/coverage/src/breakpoint/store/index.ts.html +1 -1
- package/coverage/src/common/BaseNode.ts.html +92 -62
- package/coverage/src/common/Command.ts.html +1 -1
- package/coverage/src/common/EventEmitter.ts.html +1 -1
- package/coverage/src/common/Messager.ts.html +1 -1
- package/coverage/src/common/asyncFuncMap.ts.html +1 -1
- package/coverage/src/common/index.html +14 -14
- package/coverage/src/common/index.ts.html +1 -1
- package/coverage/src/concepts/Abort__.ts.html +9 -6
- package/coverage/src/concepts/Anchor__.ts.html +36 -21
- package/coverage/src/concepts/AnonymousFunction__.ts.html +62 -20
- package/coverage/src/concepts/App__.ts.html +917 -74
- package/coverage/src/concepts/Argument__.ts.html +41 -26
- package/coverage/src/concepts/Assignee__.ts.html +40 -13
- package/coverage/src/concepts/AssignmentLine__.ts.html +9 -6
- package/coverage/src/concepts/Assignment__.ts.html +61 -22
- package/coverage/src/concepts/Attribute__.ts.html +25 -10
- package/coverage/src/concepts/AuthInterface__.ts.html +9 -6
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +25 -10
- package/coverage/src/concepts/AuthLogic__.ts.html +18 -6
- package/coverage/src/concepts/BackendVariable__.ts.html +25 -10
- package/coverage/src/concepts/Backend__.ts.html +25 -10
- package/coverage/src/concepts/BatchAssignment__.ts.html +61 -16
- package/coverage/src/concepts/BinaryExpression__.ts.html +141 -39
- package/coverage/src/concepts/BindAttribute__.ts.html +134 -41
- package/coverage/src/concepts/BindDirective__.ts.html +79 -16
- package/coverage/src/concepts/BindEvent__.ts.html +80 -23
- package/coverage/src/concepts/BindStyle__.ts.html +25 -10
- package/coverage/src/concepts/BooleanLiteral__.ts.html +9 -6
- package/coverage/src/concepts/CallAuthInterface__.ts.html +25 -10
- package/coverage/src/concepts/CallConnector__.ts.html +9 -6
- package/coverage/src/concepts/CallFunction__.ts.html +56 -38
- package/coverage/src/concepts/CallInterface__.ts.html +81 -36
- package/coverage/src/concepts/CallLogic__.ts.html +195 -264
- package/coverage/src/concepts/CallQueryComponent__.ts.html +40 -13
- package/coverage/src/concepts/Comment__.ts.html +11 -8
- package/coverage/src/concepts/CompletionProperty__.ts.html +25 -10
- package/coverage/src/concepts/ConfigGroup__.ts.html +25 -10
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +9 -6
- package/coverage/src/concepts/ConfigProperty__.ts.html +25 -10
- package/coverage/src/concepts/Configuration__.ts.html +25 -10
- package/coverage/src/concepts/Connection__.ts.html +26 -11
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +9 -6
- package/coverage/src/concepts/Connector__.ts.html +85 -22
- package/coverage/src/concepts/Constant__.ts.html +25 -10
- package/coverage/src/concepts/DataSource__.ts.html +26 -11
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +9 -6
- package/coverage/src/concepts/Destination__.ts.html +24 -12
- package/coverage/src/concepts/End__.ts.html +9 -6
- package/coverage/src/concepts/EntityIndex__.ts.html +9 -6
- package/coverage/src/concepts/EntityProperty__.ts.html +62 -14
- package/coverage/src/concepts/Entity__.ts.html +41 -14
- package/coverage/src/concepts/EnumItem__.ts.html +9 -6
- package/coverage/src/concepts/Enum__.ts.html +25 -10
- package/coverage/src/concepts/Event__.ts.html +25 -10
- package/coverage/src/concepts/ExternalDestination__.ts.html +25 -10
- package/coverage/src/concepts/ForEachStatement__.ts.html +68 -47
- package/coverage/src/concepts/FrontendLibrary__.ts.html +40 -13
- package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
- package/coverage/src/concepts/Frontend__.ts.html +86 -23
- package/coverage/src/concepts/Function__.ts.html +92 -26
- package/coverage/src/concepts/Identifier__.ts.html +28 -25
- package/coverage/src/concepts/IfStatement__.ts.html +83 -56
- package/coverage/src/concepts/Integration__.ts.html +40 -13
- package/coverage/src/concepts/InterfaceParam__.ts.html +25 -10
- package/coverage/src/concepts/Interface__.ts.html +61 -22
- package/coverage/src/concepts/JSBlock__.ts.html +188 -8
- package/coverage/src/concepts/JavaLogic__.ts.html +9 -6
- package/coverage/src/concepts/LogicItem__.ts.html +15 -12
- package/coverage/src/concepts/Logic__.ts.html +117 -81
- package/coverage/src/concepts/MatchCase__.ts.html +100 -61
- package/coverage/src/concepts/Match__.ts.html +48 -27
- package/coverage/src/concepts/MemberExpression__.ts.html +72 -66
- package/coverage/src/concepts/MetadataType__.ts.html +1996 -0
- package/coverage/src/concepts/MicroApp__.ts.html +9 -6
- package/coverage/src/concepts/Module__.ts.html +672 -18
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +25 -10
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +25 -10
- package/coverage/src/concepts/Namespace__.ts.html +175 -40
- package/coverage/src/concepts/NewComposite__.ts.html +93 -27
- package/coverage/src/concepts/NewList__.ts.html +44 -14
- package/coverage/src/concepts/NewMap__.ts.html +44 -14
- package/coverage/src/concepts/New__.ts.html +1 -1
- package/coverage/src/concepts/NullLiteral__.ts.html +9 -6
- package/coverage/src/concepts/NumericLiteral__.ts.html +27 -12
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +103 -13
- package/coverage/src/concepts/OverriddenLogic__.ts.html +100 -25
- package/coverage/src/concepts/Param__.ts.html +24 -15
- package/coverage/src/concepts/Point__.ts.html +9 -6
- package/coverage/src/concepts/ProcessComponent__.ts.html +40 -13
- package/coverage/src/concepts/ProcessElement__.ts.html +128 -29
- package/coverage/src/concepts/ProcessOutcome__.ts.html +9 -6
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +9 -6
- package/coverage/src/concepts/Process__.ts.html +85 -22
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +9 -6
- package/coverage/src/concepts/QueryFromExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +25 -10
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +25 -10
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +25 -10
- package/coverage/src/concepts/Rect__.ts.html +9 -6
- package/coverage/src/concepts/Return__.ts.html +25 -10
- package/coverage/src/concepts/Role__.ts.html +9 -6
- package/coverage/src/concepts/SelectMembers__.ts.html +25 -10
- package/coverage/src/concepts/Slot__.ts.html +25 -10
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +25 -10
- package/coverage/src/concepts/Start__.ts.html +9 -6
- package/coverage/src/concepts/StringInterpolation__.ts.html +40 -19
- package/coverage/src/concepts/StringLiteral__.ts.html +9 -6
- package/coverage/src/concepts/StructureProperty__.ts.html +25 -10
- package/coverage/src/concepts/Structure__.ts.html +40 -13
- package/coverage/src/concepts/SwitchCase__.ts.html +33 -18
- package/coverage/src/concepts/SwitchStatement__.ts.html +38 -23
- package/coverage/src/concepts/Theme__.ts.html +9 -6
- package/coverage/src/concepts/Transactional__.ts.html +9 -6
- package/coverage/src/concepts/TriggerEvent__.ts.html +25 -10
- package/coverage/src/concepts/TriggerLauncher__.ts.html +9 -6
- package/coverage/src/concepts/TypeAnnotation__.ts.html +223 -61
- package/coverage/src/concepts/TypeParam__.ts.html +10 -7
- package/coverage/src/concepts/UnaryExpression__.ts.html +40 -13
- package/coverage/src/concepts/Unparsed__.ts.html +11 -8
- package/coverage/src/concepts/UseComponent__.ts.html +9 -6
- package/coverage/src/concepts/ValidationRule__.ts.html +30 -15
- package/coverage/src/concepts/Variable__.ts.html +61 -16
- package/coverage/src/concepts/ViewBlock__.ts.html +9 -6
- package/coverage/src/concepts/ViewComponent__.ts.html +99 -24
- package/coverage/src/concepts/ViewElement__.ts.html +334 -181
- package/coverage/src/concepts/View__.ts.html +326 -71
- package/coverage/src/concepts/WhileStatement__.ts.html +78 -45
- package/coverage/src/concepts/basics/stdlib/index.html +1 -1
- package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
- package/coverage/src/concepts/basics/types/index.html +1 -1
- package/coverage/src/concepts/basics/types/index.ts.html +1 -1
- package/coverage/src/concepts/index.html +823 -808
- package/coverage/src/concepts/index.ts.html +1 -1
- package/coverage/src/concepts/index__.ts.html +7 -4
- package/coverage/src/config.ts.html +1 -1
- package/coverage/src/decorators/index.html +1 -1
- package/coverage/src/decorators/index.ts.html +24 -24
- package/coverage/src/decorators/promise.ts.html +1 -1
- package/coverage/src/eventBus.ts.html +1 -1
- package/coverage/src/generator/compileComponent.ts.html +1 -1
- package/coverage/src/generator/genBundleFiles.ts.html +13 -19
- package/coverage/src/generator/genHash.ts.html +1 -1
- package/coverage/src/generator/genMetaData.ts.html +103 -16
- package/coverage/src/generator/genReleaseBody.ts.html +1 -1
- package/coverage/src/generator/icestark.ts.html +1 -1
- package/coverage/src/generator/index.html +15 -15
- package/coverage/src/generator/index.ts.html +1 -1
- package/coverage/src/generator/microApp.ts.html +1 -1
- package/coverage/src/generator/permission.ts.html +1 -1
- package/coverage/src/generator/qiankun.ts.html +1 -1
- package/coverage/src/generator/styleReplacer.ts.html +1 -1
- package/coverage/src/index.html +7 -7
- package/coverage/src/index.ts.html +4 -4
- package/coverage/src/manager/diagnostic.ts.html +1 -1
- package/coverage/src/manager/index.html +1 -1
- package/coverage/src/manager/stepRecorder.ts.html +1 -1
- package/coverage/src/natural/genNaturalTS.ts.html +1 -1
- package/coverage/src/natural/index.html +15 -15
- package/coverage/src/natural/index.ts.html +1 -1
- package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
- package/coverage/src/natural/transformTSCode.ts.html +78 -18
- package/coverage/src/sentry/index.html +1 -1
- package/coverage/src/sentry/index.ts.html +21 -21
- package/coverage/src/server/createUiTs.ts.html +15 -6
- package/coverage/src/server/entity2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/event.js.html +1 -1
- package/coverage/src/server/extendBaseNode.ts.html +7 -4
- package/coverage/src/server/formatTsUtils.ts.html +1 -1
- package/coverage/src/server/getConnector.ts.html +1 -1
- package/coverage/src/server/getExtensionModules.ts.html +1 -1
- package/coverage/src/server/getFunctions.ts.html +1 -1
- package/coverage/src/server/getInterfaces.ts.html +1 -1
- package/coverage/src/server/getLogging.ts.html +1 -1
- package/coverage/src/server/getLogics.ts.html +1 -1
- package/coverage/src/server/getMemberIdentifier.ts.html +161 -113
- package/coverage/src/server/getProcessComponents.ts.html +1 -1
- package/coverage/src/server/getProcesses.ts.html +1 -1
- package/coverage/src/server/getValidates.ts.html +1 -1
- package/coverage/src/server/index.html +25 -25
- package/coverage/src/server/index.ts.html +1 -1
- package/coverage/src/server/naslServer.ts.html +470 -59
- package/coverage/src/server/naslStdlibMap.ts.html +1 -1
- package/coverage/src/server/process2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/translator.ts.html +3 -3
- package/coverage/src/service/creator/add.configs.js.html +26 -8
- package/coverage/src/service/creator/errHandles.js.html +19 -37
- package/coverage/src/service/creator/index.html +22 -22
- package/coverage/src/service/creator/index.js.html +1 -1
- package/coverage/src/service/datasource/api.js.html +1 -1
- package/coverage/src/service/datasource/index.html +1 -1
- package/coverage/src/service/datasource/index.js.html +1 -1
- package/coverage/src/service/logic/api.js.html +1 -1
- package/coverage/src/service/logic/index.html +1 -1
- package/coverage/src/service/logic/index.js.html +1 -1
- package/coverage/src/service/storage/api.js.html +1 -1
- package/coverage/src/service/storage/index.html +19 -19
- package/coverage/src/service/storage/index.ts.html +1 -1
- package/coverage/src/service/storage/init.ts.html +1498 -598
- package/coverage/src/service/storage/jsoner.ts.html +3 -3
- package/coverage/src/service/storage/map.ts.html +1 -1
- package/coverage/src/service/storage/service.ts.html +1 -1
- package/coverage/src/service/storage/storagePoint.ts.html +1 -1
- package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
- package/coverage/src/templator/genCreateBlock.ts.html +47 -56
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +49 -31
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +81 -93
- package/coverage/src/templator/genEditTableBlock.ts.html +80 -11
- package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genGetBlock.ts.html +1 -1
- package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
- package/coverage/src/templator/genListViewBlock.ts.html +1 -1
- package/coverage/src/templator/genQueryComponent.ts.html +1 -1
- package/coverage/src/templator/genSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genTableBlock.ts.html +66 -3
- package/coverage/src/templator/genUpdateBlock.ts.html +48 -36
- package/coverage/src/templator/index.html +39 -39
- package/coverage/src/templator/index.ts.html +1 -1
- package/coverage/src/templator/utils.ts.html +77 -11
- package/coverage/src/translator/constant.ts.html +1 -1
- package/coverage/src/translator/index.html +20 -20
- package/coverage/src/translator/index.ts.html +1 -1
- package/coverage/src/translator/utils.ts.html +87 -30
- package/coverage/src/utils/cookie.ts.html +1 -1
- package/coverage/src/utils/env.ts.html +1 -1
- package/coverage/src/utils/index.html +27 -27
- package/coverage/src/utils/index.ts.html +115 -22
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +1 -1
- package/coverage/src/utils/string.ts.html +110 -8
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/bak/translator.js +31 -8
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.d.ts +1 -1
- package/out/common/BaseNode.js +8 -3
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/Abort__.js +3 -1
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/Anchor__.js +11 -4
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.js +30 -11
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.js +147 -63
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +11 -4
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.js +23 -9
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.js +3 -1
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js +19 -6
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.js +11 -4
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.js +3 -1
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +12 -5
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.js +3 -1
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.js +11 -4
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.js +12 -5
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +32 -16
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js +15 -8
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +21 -6
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +28 -5
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.js +20 -8
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.js +11 -4
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js +3 -1
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.js +14 -5
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.js +3 -1
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallFunction__.js +22 -11
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.js +15 -8
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.js +47 -72
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js +19 -7
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.js +3 -1
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +11 -4
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js +12 -5
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.js +3 -1
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js +12 -5
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js +12 -5
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.js +12 -5
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.js +3 -1
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.js +48 -21
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.js +11 -4
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.js +12 -5
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.js +3 -1
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/Destination__.js +11 -4
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.js +3 -1
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.js +3 -1
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +19 -7
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.js +21 -9
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.js +3 -1
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.js +11 -4
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js +12 -5
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.js +11 -4
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +34 -24
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.js +21 -9
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/Frontend__.js +47 -20
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js +47 -18
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.js +3 -1
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.js +26 -17
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Integration__.js +20 -8
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js +11 -4
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js +27 -10
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.js +3 -1
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.js +3 -1
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +4 -4
- package/out/concepts/LogicItem__.js +7 -5
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.js +68 -36
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js +36 -24
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.js +23 -16
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +29 -22
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MicroApp__.js +3 -1
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.js +5 -3
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.js +12 -5
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.js +12 -5
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/Namespace__.js +102 -45
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.js +57 -25
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.js +20 -8
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.js +20 -8
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/NullLiteral__.js +3 -1
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js +11 -4
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +32 -5
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +52 -20
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.js +12 -5
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.js +3 -1
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js +21 -9
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +73 -31
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.js +3 -1
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.js +3 -1
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.js +48 -21
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.js +11 -4
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.js +3 -1
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +11 -4
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.js +11 -4
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +12 -5
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.js +11 -4
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.js +11 -4
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js +12 -5
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.js +3 -1
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.js +11 -4
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.js +3 -1
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.js +12 -5
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/Slot__.js +11 -4
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.js +11 -4
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.js +3 -1
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringInterpolation__.js +12 -5
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.js +3 -1
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.js +11 -4
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js +21 -9
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.js +15 -8
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.js +11 -4
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/Theme__.js +3 -1
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.js +3 -1
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.js +12 -5
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.js +3 -1
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +2 -1
- package/out/concepts/TypeAnnotation__.js +55 -22
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.js +3 -1
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +17 -6
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.js +3 -1
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.js +3 -1
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +11 -4
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.js +11 -4
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlock__.js +3 -1
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponent__.js +59 -25
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.js +60 -29
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +1 -0
- package/out/concepts/View__.js +68 -21
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.js +20 -11
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +2 -2
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/generator/permission.js +32 -6
- package/out/generator/permission.js.map +1 -1
- package/out/index.d.ts +1 -1
- package/out/index.js +5 -1
- package/out/index.js.map +1 -1
- package/out/natural/transformTSCode.js +23 -3
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/sentry/index.js +2 -1
- package/out/sentry/index.js.map +1 -1
- package/out/server/translator.js +5 -2
- package/out/server/translator.js.map +1 -1
- package/out/service/creator/add.configs.js +3 -0
- package/out/service/creator/add.configs.js.map +1 -1
- package/out/service/storage/init.d.ts +20 -0
- package/out/service/storage/init.js +296 -9
- package/out/service/storage/init.js.map +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.js +14 -1
- package/out/utils/index.js.map +1 -1
- package/out/utils/sortTsString.js +10 -4
- package/out/utils/sortTsString.js.map +1 -1
- package/package.json +7 -7
- package/src/bak/translator.js +42 -21
- package/src/common/BaseNode.ts +11 -5
- package/src/concepts/Abort__.ts +1 -0
- package/src/concepts/Anchor__.ts +20 -14
- package/src/concepts/AnonymousFunction__.ts +29 -12
- package/src/concepts/App__.ts +161 -76
- package/src/concepts/Argument__.ts +9 -3
- package/src/concepts/Assignee__.ts +21 -8
- package/src/concepts/AssignmentLine__.ts +1 -0
- package/src/concepts/Assignment__.ts +28 -14
- package/src/concepts/Attribute__.ts +9 -3
- package/src/concepts/AuthInterface__.ts +1 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +10 -4
- package/src/concepts/AuthLogic__.ts +4 -0
- package/src/concepts/BackendVariable__.ts +9 -3
- package/src/concepts/Backend__.ts +10 -4
- package/src/concepts/BatchAssignment__.ts +33 -16
- package/src/concepts/BinaryExpression__.ts +15 -9
- package/src/concepts/BindAttribute__.ts +35 -18
- package/src/concepts/BindDirective__.ts +26 -4
- package/src/concepts/BindEvent__.ts +37 -16
- package/src/concepts/BindStyle__.ts +9 -3
- package/src/concepts/BooleanLiteral__.ts +1 -0
- package/src/concepts/CallAuthInterface__.ts +12 -4
- package/src/concepts/CallConnector__.ts +1 -0
- package/src/concepts/CallFunction__.ts +24 -19
- package/src/concepts/CallInterface__.ts +44 -28
- package/src/concepts/CallLogic__.ts +81 -105
- package/src/concepts/CallQueryComponent__.ts +17 -6
- package/src/concepts/Comment__.ts +2 -1
- package/src/concepts/CompletionProperty__.ts +9 -3
- package/src/concepts/ConfigGroup__.ts +10 -4
- package/src/concepts/ConfigPropertyValue__.ts +1 -0
- package/src/concepts/ConfigProperty__.ts +10 -4
- package/src/concepts/Configuration__.ts +10 -4
- package/src/concepts/Connection__.ts +11 -5
- package/src/concepts/ConnectorTrigger__.ts +1 -0
- package/src/concepts/Connector__.ts +46 -20
- package/src/concepts/Constant__.ts +9 -3
- package/src/concepts/DataSource__.ts +10 -4
- package/src/concepts/DatabaseTypeAnnotation__.ts +1 -0
- package/src/concepts/Destination__.ts +9 -4
- package/src/concepts/End__.ts +1 -0
- package/src/concepts/EntityIndex__.ts +1 -0
- package/src/concepts/EntityProperty__.ts +17 -6
- package/src/concepts/Entity__.ts +19 -8
- package/src/concepts/EnumItem__.ts +1 -0
- package/src/concepts/Enum__.ts +9 -3
- package/src/concepts/Event__.ts +10 -4
- package/src/concepts/ExternalDestination__.ts +9 -3
- package/src/concepts/ForEachStatement__.ts +45 -36
- package/src/concepts/FrontendLibrary__.ts +19 -8
- package/src/concepts/Frontend__.ts +45 -19
- package/src/concepts/Function__.ts +46 -19
- package/src/concepts/Identifier__.ts +1 -0
- package/src/concepts/IfStatement__.ts +30 -20
- package/src/concepts/Integration__.ts +18 -7
- package/src/concepts/InterfaceParam__.ts +9 -3
- package/src/concepts/Interface__.ts +31 -15
- package/src/concepts/JSBlock__.ts +1 -0
- package/src/concepts/JavaLogic__.ts +1 -0
- package/src/concepts/LogicItem__.ts +5 -4
- package/src/concepts/Logic__.ts +77 -59
- package/src/concepts/MatchCase__.ts +46 -31
- package/src/concepts/Match__.ts +24 -16
- package/src/concepts/MemberExpression__.ts +27 -21
- package/src/concepts/MicroApp__.ts +1 -0
- package/src/concepts/Module__.ts +10 -9
- package/src/concepts/MsgTriggerEvent__.ts +10 -4
- package/src/concepts/MsgTriggerLauncher__.ts +10 -4
- package/src/concepts/Namespace__.ts +100 -44
- package/src/concepts/NewComposite__.ts +60 -28
- package/src/concepts/NewList__.ts +20 -8
- package/src/concepts/NewMap__.ts +20 -8
- package/src/concepts/NullLiteral__.ts +1 -0
- package/src/concepts/NumericLiteral__.ts +9 -3
- package/src/concepts/OqlQueryComponent__.ts +32 -4
- package/src/concepts/OverriddenLogic__.ts +51 -20
- package/src/concepts/Param__.ts +10 -6
- package/src/concepts/Point__.ts +1 -0
- package/src/concepts/ProcessComponent__.ts +19 -8
- package/src/concepts/ProcessElement__.ts +71 -30
- package/src/concepts/ProcessOutcome__.ts +1 -0
- package/src/concepts/ProcessOutcomes__.ts +1 -0
- package/src/concepts/Process__.ts +46 -20
- package/src/concepts/QueryAggregateExpression__.ts +9 -3
- package/src/concepts/QueryFieldExpression__.ts +1 -0
- package/src/concepts/QueryFromExpression__.ts +9 -3
- package/src/concepts/QueryGroupByExpression__.ts +9 -3
- package/src/concepts/QueryJoinExpression__.ts +10 -4
- package/src/concepts/QueryLimitExpression__.ts +9 -3
- package/src/concepts/QueryOrderByExpression__.ts +9 -3
- package/src/concepts/QuerySelectExpression__.ts +10 -4
- package/src/concepts/Rect__.ts +1 -0
- package/src/concepts/Return__.ts +9 -3
- package/src/concepts/Role__.ts +1 -0
- package/src/concepts/SelectMembers__.ts +10 -4
- package/src/concepts/Slot__.ts +9 -3
- package/src/concepts/SqlQueryComponent__.ts +9 -3
- package/src/concepts/Start__.ts +1 -0
- package/src/concepts/StringInterpolation__.ts +11 -5
- package/src/concepts/StringLiteral__.ts +1 -0
- package/src/concepts/StructureProperty__.ts +9 -3
- package/src/concepts/Structure__.ts +19 -8
- package/src/concepts/SwitchCase__.ts +15 -9
- package/src/concepts/SwitchStatement__.ts +22 -16
- package/src/concepts/Theme__.ts +1 -0
- package/src/concepts/Transactional__.ts +1 -0
- package/src/concepts/TriggerEvent__.ts +10 -4
- package/src/concepts/TriggerLauncher__.ts +1 -0
- package/src/concepts/TypeAnnotation__.ts +62 -28
- package/src/concepts/TypeParam__.ts +2 -1
- package/src/concepts/UnaryExpression__.ts +16 -6
- package/src/concepts/Unparsed__.ts +2 -1
- package/src/concepts/UseComponent__.ts +1 -0
- package/src/concepts/ValidationRule__.ts +10 -4
- package/src/concepts/Variable__.ts +9 -3
- package/src/concepts/ViewBlock__.ts +1 -0
- package/src/concepts/ViewComponent__.ts +57 -24
- package/src/concepts/ViewElement__.ts +156 -115
- package/src/concepts/View__.ts +114 -54
- package/src/concepts/WhileStatement__.ts +27 -15
- package/src/concepts/basics/stdlib/nasl.util.ts +2 -2
- package/src/generator/permission.ts +33 -9
- package/src/index.ts +1 -1
- package/src/natural/transformTSCode.ts +22 -3
- package/src/sentry/index.ts +3 -1
- package/src/server/translator.ts +5 -2
- package/src/service/creator/add.configs.js +6 -0
- package/src/service/storage/init.ts +304 -10
- package/src/utils/index.ts +13 -0
- package/src/utils/sortTsString.ts +9 -4
- package/test/concepts/call-function/__snapshots__/toEmbeddedTS.spec.ts.snap +26 -0
- package/test/concepts/call-function/__snapshots__/toJS.spec.ts.snap +26 -0
- package/test/concepts/call-function/constant.ts +5 -0
- package/test/concepts/call-function/fixtures/from-string.json +100 -0
- package/test/concepts/call-function/fixtures/to-string-global-tz.json +99 -0
- package/test/concepts/call-function/fixtures/to-string-no-tz.json +89 -0
- package/test/concepts/call-function/fixtures/to-string-user-tz.json +101 -0
- package/test/concepts/call-function/fixtures/to-string-utc-tz.json +101 -0
- package/test/concepts/call-function/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/call-function/toJS.spec.ts +14 -0
- package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +1 -1
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +1 -22
- package/.nyc_output/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +0 -1
- package/.nyc_output/processinfo/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
package/out/concepts/App__.js
CHANGED
|
@@ -74,7 +74,6 @@ class App extends BaseNode_1.default {
|
|
|
74
74
|
/**
|
|
75
75
|
* 产品概念
|
|
76
76
|
*/
|
|
77
|
-
// @ts-ignore
|
|
78
77
|
concept;
|
|
79
78
|
/**
|
|
80
79
|
* IDE 版本
|
|
@@ -283,7 +282,7 @@ class App extends BaseNode_1.default {
|
|
|
283
282
|
}
|
|
284
283
|
getStructureExistingNames(excludedList = []) {
|
|
285
284
|
const excludedSet = new Set(excludedList);
|
|
286
|
-
return (this.structures || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
285
|
+
return (this.structures || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
287
286
|
}
|
|
288
287
|
getStructureUniqueName(name = 'Structure1') {
|
|
289
288
|
return utils.unique(name, this.getStructureExistingNames(), undefined, true);
|
|
@@ -343,7 +342,7 @@ class App extends BaseNode_1.default {
|
|
|
343
342
|
}
|
|
344
343
|
getEnumExistingNames(excludedList = []) {
|
|
345
344
|
const excludedSet = new Set(excludedList);
|
|
346
|
-
return (this.enums || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
345
|
+
return (this.enums || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
347
346
|
}
|
|
348
347
|
getEnumUniqueName(name = 'Enum1') {
|
|
349
348
|
return utils.unique(name, this.getEnumExistingNames(), undefined, true);
|
|
@@ -403,7 +402,7 @@ class App extends BaseNode_1.default {
|
|
|
403
402
|
}
|
|
404
403
|
getLogicExistingNames(excludedList = []) {
|
|
405
404
|
const excludedSet = new Set(excludedList);
|
|
406
|
-
return (this.logics || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
405
|
+
return (this.logics || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
407
406
|
}
|
|
408
407
|
getLogicUniqueName(name = 'logic1') {
|
|
409
408
|
return utils.unique(name, this.getLogicExistingNames(), undefined, true);
|
|
@@ -518,7 +517,7 @@ class App extends BaseNode_1.default {
|
|
|
518
517
|
const excludedSet = new Set(excludedList);
|
|
519
518
|
return (this.overriddenLogics || [])
|
|
520
519
|
.filter((item) => !excludedSet.has(item))
|
|
521
|
-
.map((item) => item
|
|
520
|
+
.map((item) => item?.name);
|
|
522
521
|
}
|
|
523
522
|
getOverriddenLogicUniqueName(name = 'overriddenLogic1') {
|
|
524
523
|
return utils.unique(name, this.getOverriddenLogicExistingNames(), undefined, true);
|
|
@@ -578,7 +577,7 @@ class App extends BaseNode_1.default {
|
|
|
578
577
|
}
|
|
579
578
|
getInterfaceExistingNames(excludedList = []) {
|
|
580
579
|
const excludedSet = new Set(excludedList);
|
|
581
|
-
return (this.interfaces || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
580
|
+
return (this.interfaces || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
582
581
|
}
|
|
583
582
|
getInterfaceUniqueName(name = 'Interface1') {
|
|
584
583
|
return utils.unique(name, this.getInterfaceExistingNames(), undefined, true);
|
|
@@ -691,7 +690,7 @@ class App extends BaseNode_1.default {
|
|
|
691
690
|
}
|
|
692
691
|
getFrontendExistingNames(excludedList = []) {
|
|
693
692
|
const excludedSet = new Set(excludedList);
|
|
694
|
-
return (this.frontends || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
693
|
+
return (this.frontends || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
695
694
|
}
|
|
696
695
|
getFrontendUniqueName(name = 'frontend1') {
|
|
697
696
|
return utils.unique(name, this.getFrontendExistingNames(), undefined, true);
|
|
@@ -751,7 +750,7 @@ class App extends BaseNode_1.default {
|
|
|
751
750
|
}
|
|
752
751
|
getProcessExistingNames(excludedList = []) {
|
|
753
752
|
const excludedSet = new Set(excludedList);
|
|
754
|
-
return (this.processes || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
753
|
+
return (this.processes || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
755
754
|
}
|
|
756
755
|
getProcessUniqueName(name = 'Process1') {
|
|
757
756
|
return utils.unique(name, this.getProcessExistingNames(), undefined, true);
|
|
@@ -811,7 +810,7 @@ class App extends BaseNode_1.default {
|
|
|
811
810
|
}
|
|
812
811
|
getRoleExistingNames(excludedList = []) {
|
|
813
812
|
const excludedSet = new Set(excludedList);
|
|
814
|
-
return (this.roles || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
813
|
+
return (this.roles || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
815
814
|
}
|
|
816
815
|
getRoleUniqueName(name = 'role1') {
|
|
817
816
|
return utils.unique(name, this.getRoleExistingNames(), undefined, true);
|
|
@@ -871,7 +870,7 @@ class App extends BaseNode_1.default {
|
|
|
871
870
|
}
|
|
872
871
|
getModuleExistingNames(excludedList = []) {
|
|
873
872
|
const excludedSet = new Set(excludedList);
|
|
874
|
-
return (this.dependencies || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
873
|
+
return (this.dependencies || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
875
874
|
}
|
|
876
875
|
getModuleUniqueName(name = 'module1') {
|
|
877
876
|
return utils.unique(name, this.getModuleExistingNames(), undefined, false);
|
|
@@ -1039,7 +1038,7 @@ class App extends BaseNode_1.default {
|
|
|
1039
1038
|
const excludedSet = new Set(excludedList);
|
|
1040
1039
|
return (this.authLogicsForCallInterface || [])
|
|
1041
1040
|
.filter((item) => !excludedSet.has(item))
|
|
1042
|
-
.map((item) => item
|
|
1041
|
+
.map((item) => item?.name);
|
|
1043
1042
|
}
|
|
1044
1043
|
getAuthLogicForCallInterfaceUniqueName(name = 'authLogicForCallInterface1') {
|
|
1045
1044
|
return utils.unique(name, this.getAuthLogicForCallInterfaceExistingNames(), undefined, false);
|
|
@@ -1060,7 +1059,7 @@ class App extends BaseNode_1.default {
|
|
|
1060
1059
|
name: options,
|
|
1061
1060
|
}, this, 'authLogicsForCallInterface');
|
|
1062
1061
|
}
|
|
1063
|
-
else if (options
|
|
1062
|
+
else if (options instanceof AuthLogicForCallInterface__1.default) {
|
|
1064
1063
|
options.ensureDelete(); // 同一实例不支持多处存在
|
|
1065
1064
|
authLogicForCallInterface = options;
|
|
1066
1065
|
Object.assign(authLogicForCallInterface, relationOptions);
|
|
@@ -1099,7 +1098,9 @@ class App extends BaseNode_1.default {
|
|
|
1099
1098
|
}
|
|
1100
1099
|
getConnectionExistingNames(excludedList = []) {
|
|
1101
1100
|
const excludedSet = new Set(excludedList);
|
|
1102
|
-
return (this.connections || [])
|
|
1101
|
+
return (this.connections || [])
|
|
1102
|
+
.filter((item) => !excludedSet.has(item))
|
|
1103
|
+
.map((item) => item?.name);
|
|
1103
1104
|
}
|
|
1104
1105
|
getConnectionUniqueName(name = 'connection1') {
|
|
1105
1106
|
return utils.unique(name, this.getConnectionExistingNames(), undefined, false);
|
|
@@ -1161,7 +1162,7 @@ class App extends BaseNode_1.default {
|
|
|
1161
1162
|
const excludedSet = new Set(excludedList);
|
|
1162
1163
|
return (this.triggerLaunchers || [])
|
|
1163
1164
|
.filter((item) => !excludedSet.has(item))
|
|
1164
|
-
.map((item) => item
|
|
1165
|
+
.map((item) => item?.name);
|
|
1165
1166
|
}
|
|
1166
1167
|
getTriggerLauncherUniqueName(name = 'triggerLauncher1') {
|
|
1167
1168
|
return utils.unique(name, this.getTriggerLauncherExistingNames(), undefined, false);
|
|
@@ -1243,12 +1244,17 @@ class App extends BaseNode_1.default {
|
|
|
1243
1244
|
};
|
|
1244
1245
|
if (parentKey) {
|
|
1245
1246
|
params.parentKey = parentKey;
|
|
1246
|
-
|
|
1247
|
-
|
|
1247
|
+
// @ts-ignore
|
|
1248
|
+
const t = this.__v_raw || this;
|
|
1249
|
+
// @ts-ignore
|
|
1250
|
+
const n = dataSource.__v_raw || dataSource;
|
|
1251
|
+
if (Array.isArray(t[parentKey])) {
|
|
1252
|
+
// @ts-ignore
|
|
1253
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1248
1254
|
~index && this[parentKey].splice(index, 1);
|
|
1249
1255
|
params.index = index;
|
|
1250
1256
|
}
|
|
1251
|
-
else if (
|
|
1257
|
+
else if (t[parentKey] === n) {
|
|
1252
1258
|
params.index = 0;
|
|
1253
1259
|
this[parentKey] = undefined;
|
|
1254
1260
|
}
|
|
@@ -1279,12 +1285,17 @@ class App extends BaseNode_1.default {
|
|
|
1279
1285
|
};
|
|
1280
1286
|
if (parentKey) {
|
|
1281
1287
|
params.parentKey = parentKey;
|
|
1282
|
-
|
|
1283
|
-
|
|
1288
|
+
// @ts-ignore
|
|
1289
|
+
const t = this.__v_raw || this;
|
|
1290
|
+
// @ts-ignore
|
|
1291
|
+
const n = structure.__v_raw || structure;
|
|
1292
|
+
if (Array.isArray(t[parentKey])) {
|
|
1293
|
+
// @ts-ignore
|
|
1294
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1284
1295
|
~index && this[parentKey].splice(index, 1);
|
|
1285
1296
|
params.index = index;
|
|
1286
1297
|
}
|
|
1287
|
-
else if (
|
|
1298
|
+
else if (t[parentKey] === n) {
|
|
1288
1299
|
params.index = 0;
|
|
1289
1300
|
this[parentKey] = undefined;
|
|
1290
1301
|
}
|
|
@@ -1315,12 +1326,17 @@ class App extends BaseNode_1.default {
|
|
|
1315
1326
|
};
|
|
1316
1327
|
if (parentKey) {
|
|
1317
1328
|
params.parentKey = parentKey;
|
|
1318
|
-
|
|
1319
|
-
|
|
1329
|
+
// @ts-ignore
|
|
1330
|
+
const t = this.__v_raw || this;
|
|
1331
|
+
// @ts-ignore
|
|
1332
|
+
const n = enumeration.__v_raw || enumeration;
|
|
1333
|
+
if (Array.isArray(t[parentKey])) {
|
|
1334
|
+
// @ts-ignore
|
|
1335
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1320
1336
|
~index && this[parentKey].splice(index, 1);
|
|
1321
1337
|
params.index = index;
|
|
1322
1338
|
}
|
|
1323
|
-
else if (
|
|
1339
|
+
else if (t[parentKey] === n) {
|
|
1324
1340
|
params.index = 0;
|
|
1325
1341
|
this[parentKey] = undefined;
|
|
1326
1342
|
}
|
|
@@ -1364,12 +1380,17 @@ class App extends BaseNode_1.default {
|
|
|
1364
1380
|
};
|
|
1365
1381
|
if (parentKey) {
|
|
1366
1382
|
params.parentKey = parentKey;
|
|
1367
|
-
|
|
1368
|
-
|
|
1383
|
+
// @ts-ignore
|
|
1384
|
+
const t = this.__v_raw || this;
|
|
1385
|
+
// @ts-ignore
|
|
1386
|
+
const n = logic.__v_raw || logic;
|
|
1387
|
+
if (Array.isArray(t[parentKey])) {
|
|
1388
|
+
// @ts-ignore
|
|
1389
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1369
1390
|
~index && this[parentKey].splice(index, 1);
|
|
1370
1391
|
params.index = index;
|
|
1371
1392
|
}
|
|
1372
|
-
else if (
|
|
1393
|
+
else if (t[parentKey] === n) {
|
|
1373
1394
|
params.index = 0;
|
|
1374
1395
|
this[parentKey] = undefined;
|
|
1375
1396
|
}
|
|
@@ -1400,12 +1421,17 @@ class App extends BaseNode_1.default {
|
|
|
1400
1421
|
};
|
|
1401
1422
|
if (parentKey) {
|
|
1402
1423
|
params.parentKey = parentKey;
|
|
1403
|
-
|
|
1404
|
-
|
|
1424
|
+
// @ts-ignore
|
|
1425
|
+
const t = this.__v_raw || this;
|
|
1426
|
+
// @ts-ignore
|
|
1427
|
+
const n = overriddenLogic.__v_raw || overriddenLogic;
|
|
1428
|
+
if (Array.isArray(t[parentKey])) {
|
|
1429
|
+
// @ts-ignore
|
|
1430
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1405
1431
|
~index && this[parentKey].splice(index, 1);
|
|
1406
1432
|
params.index = index;
|
|
1407
1433
|
}
|
|
1408
|
-
else if (
|
|
1434
|
+
else if (t[parentKey] === n) {
|
|
1409
1435
|
params.index = 0;
|
|
1410
1436
|
this[parentKey] = undefined;
|
|
1411
1437
|
}
|
|
@@ -1449,12 +1475,17 @@ class App extends BaseNode_1.default {
|
|
|
1449
1475
|
};
|
|
1450
1476
|
if (parentKey) {
|
|
1451
1477
|
params.parentKey = parentKey;
|
|
1452
|
-
|
|
1453
|
-
|
|
1478
|
+
// @ts-ignore
|
|
1479
|
+
const t = this.__v_raw || this;
|
|
1480
|
+
// @ts-ignore
|
|
1481
|
+
const n = itface.__v_raw || itface;
|
|
1482
|
+
if (Array.isArray(t[parentKey])) {
|
|
1483
|
+
// @ts-ignore
|
|
1484
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1454
1485
|
~index && this[parentKey].splice(index, 1);
|
|
1455
1486
|
params.index = index;
|
|
1456
1487
|
}
|
|
1457
|
-
else if (
|
|
1488
|
+
else if (t[parentKey] === n) {
|
|
1458
1489
|
params.index = 0;
|
|
1459
1490
|
this[parentKey] = undefined;
|
|
1460
1491
|
}
|
|
@@ -1485,12 +1516,17 @@ class App extends BaseNode_1.default {
|
|
|
1485
1516
|
};
|
|
1486
1517
|
if (parentKey) {
|
|
1487
1518
|
params.parentKey = parentKey;
|
|
1488
|
-
|
|
1489
|
-
|
|
1519
|
+
// @ts-ignore
|
|
1520
|
+
const t = this.__v_raw || this;
|
|
1521
|
+
// @ts-ignore
|
|
1522
|
+
const n = frontend.__v_raw || frontend;
|
|
1523
|
+
if (Array.isArray(t[parentKey])) {
|
|
1524
|
+
// @ts-ignore
|
|
1525
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1490
1526
|
~index && this[parentKey].splice(index, 1);
|
|
1491
1527
|
params.index = index;
|
|
1492
1528
|
}
|
|
1493
|
-
else if (
|
|
1529
|
+
else if (t[parentKey] === n) {
|
|
1494
1530
|
params.index = 0;
|
|
1495
1531
|
this[parentKey] = undefined;
|
|
1496
1532
|
}
|
|
@@ -1521,12 +1557,17 @@ class App extends BaseNode_1.default {
|
|
|
1521
1557
|
};
|
|
1522
1558
|
if (parentKey) {
|
|
1523
1559
|
params.parentKey = parentKey;
|
|
1524
|
-
|
|
1525
|
-
|
|
1560
|
+
// @ts-ignore
|
|
1561
|
+
const t = this.__v_raw || this;
|
|
1562
|
+
// @ts-ignore
|
|
1563
|
+
const n = backend.__v_raw || backend;
|
|
1564
|
+
if (Array.isArray(t[parentKey])) {
|
|
1565
|
+
// @ts-ignore
|
|
1566
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1526
1567
|
~index && this[parentKey].splice(index, 1);
|
|
1527
1568
|
params.index = index;
|
|
1528
1569
|
}
|
|
1529
|
-
else if (
|
|
1570
|
+
else if (t[parentKey] === n) {
|
|
1530
1571
|
params.index = 0;
|
|
1531
1572
|
this[parentKey] = undefined;
|
|
1532
1573
|
}
|
|
@@ -1557,12 +1598,17 @@ class App extends BaseNode_1.default {
|
|
|
1557
1598
|
};
|
|
1558
1599
|
if (parentKey) {
|
|
1559
1600
|
params.parentKey = parentKey;
|
|
1560
|
-
|
|
1561
|
-
|
|
1601
|
+
// @ts-ignore
|
|
1602
|
+
const t = this.__v_raw || this;
|
|
1603
|
+
// @ts-ignore
|
|
1604
|
+
const n = process.__v_raw || process;
|
|
1605
|
+
if (Array.isArray(t[parentKey])) {
|
|
1606
|
+
// @ts-ignore
|
|
1607
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1562
1608
|
~index && this[parentKey].splice(index, 1);
|
|
1563
1609
|
params.index = index;
|
|
1564
1610
|
}
|
|
1565
|
-
else if (
|
|
1611
|
+
else if (t[parentKey] === n) {
|
|
1566
1612
|
params.index = 0;
|
|
1567
1613
|
this[parentKey] = undefined;
|
|
1568
1614
|
}
|
|
@@ -1593,12 +1639,17 @@ class App extends BaseNode_1.default {
|
|
|
1593
1639
|
};
|
|
1594
1640
|
if (parentKey) {
|
|
1595
1641
|
params.parentKey = parentKey;
|
|
1596
|
-
|
|
1597
|
-
|
|
1642
|
+
// @ts-ignore
|
|
1643
|
+
const t = this.__v_raw || this;
|
|
1644
|
+
// @ts-ignore
|
|
1645
|
+
const n = role.__v_raw || role;
|
|
1646
|
+
if (Array.isArray(t[parentKey])) {
|
|
1647
|
+
// @ts-ignore
|
|
1648
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1598
1649
|
~index && this[parentKey].splice(index, 1);
|
|
1599
1650
|
params.index = index;
|
|
1600
1651
|
}
|
|
1601
|
-
else if (
|
|
1652
|
+
else if (t[parentKey] === n) {
|
|
1602
1653
|
params.index = 0;
|
|
1603
1654
|
this[parentKey] = undefined;
|
|
1604
1655
|
}
|
|
@@ -1629,12 +1680,17 @@ class App extends BaseNode_1.default {
|
|
|
1629
1680
|
};
|
|
1630
1681
|
if (parentKey) {
|
|
1631
1682
|
params.parentKey = parentKey;
|
|
1632
|
-
|
|
1633
|
-
|
|
1683
|
+
// @ts-ignore
|
|
1684
|
+
const t = this.__v_raw || this;
|
|
1685
|
+
// @ts-ignore
|
|
1686
|
+
const n = configuration.__v_raw || configuration;
|
|
1687
|
+
if (Array.isArray(t[parentKey])) {
|
|
1688
|
+
// @ts-ignore
|
|
1689
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1634
1690
|
~index && this[parentKey].splice(index, 1);
|
|
1635
1691
|
params.index = index;
|
|
1636
1692
|
}
|
|
1637
|
-
else if (
|
|
1693
|
+
else if (t[parentKey] === n) {
|
|
1638
1694
|
params.index = 0;
|
|
1639
1695
|
this[parentKey] = undefined;
|
|
1640
1696
|
}
|
|
@@ -1691,12 +1747,17 @@ class App extends BaseNode_1.default {
|
|
|
1691
1747
|
};
|
|
1692
1748
|
if (parentKey) {
|
|
1693
1749
|
params.parentKey = parentKey;
|
|
1694
|
-
|
|
1695
|
-
|
|
1750
|
+
// @ts-ignore
|
|
1751
|
+
const t = this.__v_raw || this;
|
|
1752
|
+
// @ts-ignore
|
|
1753
|
+
const n = module.__v_raw || module;
|
|
1754
|
+
if (Array.isArray(t[parentKey])) {
|
|
1755
|
+
// @ts-ignore
|
|
1756
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1696
1757
|
~index && this[parentKey].splice(index, 1);
|
|
1697
1758
|
params.index = index;
|
|
1698
1759
|
}
|
|
1699
|
-
else if (
|
|
1760
|
+
else if (t[parentKey] === n) {
|
|
1700
1761
|
params.index = 0;
|
|
1701
1762
|
this[parentKey] = undefined;
|
|
1702
1763
|
}
|
|
@@ -1727,12 +1788,17 @@ class App extends BaseNode_1.default {
|
|
|
1727
1788
|
};
|
|
1728
1789
|
if (parentKey) {
|
|
1729
1790
|
params.parentKey = parentKey;
|
|
1730
|
-
|
|
1731
|
-
|
|
1791
|
+
// @ts-ignore
|
|
1792
|
+
const t = this.__v_raw || this;
|
|
1793
|
+
// @ts-ignore
|
|
1794
|
+
const n = integration.__v_raw || integration;
|
|
1795
|
+
if (Array.isArray(t[parentKey])) {
|
|
1796
|
+
// @ts-ignore
|
|
1797
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1732
1798
|
~index && this[parentKey].splice(index, 1);
|
|
1733
1799
|
params.index = index;
|
|
1734
1800
|
}
|
|
1735
|
-
else if (
|
|
1801
|
+
else if (t[parentKey] === n) {
|
|
1736
1802
|
params.index = 0;
|
|
1737
1803
|
this[parentKey] = undefined;
|
|
1738
1804
|
}
|
|
@@ -1763,12 +1829,17 @@ class App extends BaseNode_1.default {
|
|
|
1763
1829
|
};
|
|
1764
1830
|
if (parentKey) {
|
|
1765
1831
|
params.parentKey = parentKey;
|
|
1766
|
-
|
|
1767
|
-
|
|
1832
|
+
// @ts-ignore
|
|
1833
|
+
const t = this.__v_raw || this;
|
|
1834
|
+
// @ts-ignore
|
|
1835
|
+
const n = authLogic.__v_raw || authLogic;
|
|
1836
|
+
if (Array.isArray(t[parentKey])) {
|
|
1837
|
+
// @ts-ignore
|
|
1838
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1768
1839
|
~index && this[parentKey].splice(index, 1);
|
|
1769
1840
|
params.index = index;
|
|
1770
1841
|
}
|
|
1771
|
-
else if (
|
|
1842
|
+
else if (t[parentKey] === n) {
|
|
1772
1843
|
params.index = 0;
|
|
1773
1844
|
this[parentKey] = undefined;
|
|
1774
1845
|
}
|
|
@@ -1799,12 +1870,17 @@ class App extends BaseNode_1.default {
|
|
|
1799
1870
|
};
|
|
1800
1871
|
if (parentKey) {
|
|
1801
1872
|
params.parentKey = parentKey;
|
|
1802
|
-
|
|
1803
|
-
|
|
1873
|
+
// @ts-ignore
|
|
1874
|
+
const t = this.__v_raw || this;
|
|
1875
|
+
// @ts-ignore
|
|
1876
|
+
const n = connection.__v_raw || connection;
|
|
1877
|
+
if (Array.isArray(t[parentKey])) {
|
|
1878
|
+
// @ts-ignore
|
|
1879
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1804
1880
|
~index && this[parentKey].splice(index, 1);
|
|
1805
1881
|
params.index = index;
|
|
1806
1882
|
}
|
|
1807
|
-
else if (
|
|
1883
|
+
else if (t[parentKey] === n) {
|
|
1808
1884
|
params.index = 0;
|
|
1809
1885
|
this[parentKey] = undefined;
|
|
1810
1886
|
}
|
|
@@ -1835,12 +1911,17 @@ class App extends BaseNode_1.default {
|
|
|
1835
1911
|
};
|
|
1836
1912
|
if (parentKey) {
|
|
1837
1913
|
params.parentKey = parentKey;
|
|
1838
|
-
|
|
1839
|
-
|
|
1914
|
+
// @ts-ignore
|
|
1915
|
+
const t = this.__v_raw || this;
|
|
1916
|
+
// @ts-ignore
|
|
1917
|
+
const n = triggerLauncher.__v_raw || triggerLauncher;
|
|
1918
|
+
if (Array.isArray(t[parentKey])) {
|
|
1919
|
+
// @ts-ignore
|
|
1920
|
+
const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1840
1921
|
~index && this[parentKey].splice(index, 1);
|
|
1841
1922
|
params.index = index;
|
|
1842
1923
|
}
|
|
1843
|
-
else if (
|
|
1924
|
+
else if (t[parentKey] === n) {
|
|
1844
1925
|
params.index = 0;
|
|
1845
1926
|
this[parentKey] = undefined;
|
|
1846
1927
|
}
|
|
@@ -2044,7 +2125,7 @@ class App extends BaseNode_1.default {
|
|
|
2044
2125
|
if (name) {
|
|
2045
2126
|
(frontends || []).forEach((frontend) => {
|
|
2046
2127
|
if (frontend.type === scope) {
|
|
2047
|
-
const jsName = `${prefix}/packages/${prefixPath ? prefixPath +
|
|
2128
|
+
const jsName = `${prefix}/packages/${prefixPath ? prefixPath + '/' : ''}${name}@${version}/dist-theme/index.js`;
|
|
2048
2129
|
if (!existingSet.has(jsName)) {
|
|
2049
2130
|
existingSet.add(jsName);
|
|
2050
2131
|
result.custom.js.push(jsName);
|
|
@@ -2407,6 +2488,9 @@ class App extends BaseNode_1.default {
|
|
|
2407
2488
|
__decorate([
|
|
2408
2489
|
(0, decorators_1.property)()
|
|
2409
2490
|
], App.prototype, "id", void 0);
|
|
2491
|
+
__decorate([
|
|
2492
|
+
(0, decorators_1.property)('concept')
|
|
2493
|
+
], App.prototype, "concept", void 0);
|
|
2410
2494
|
__decorate([
|
|
2411
2495
|
(0, decorators_1.property)()
|
|
2412
2496
|
], App.prototype, "ideVersion", void 0);
|