@lcap/nasl 3.4.0-beta.5 → 3.4.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/b920244d-8d01-4e76-be5a-95132217c5a1.json +1 -0
- package/.nyc_output/processinfo/b920244d-8d01-4e76-be5a-95132217c5a1.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +461 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/coverage/src/automate/engine/index.html +116 -0
- package/coverage/src/automate/engine/utils.js.html +1414 -0
- package/coverage/src/bak/index.html +116 -0
- package/coverage/src/bak/translator.js.html +631 -0
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +175 -0
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +169 -0
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +1246 -0
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +145 -0
- package/coverage/src/breakpoint/generator/index.html +176 -0
- package/coverage/src/breakpoint/generator/index.ts.html +508 -0
- package/coverage/src/breakpoint/index.html +116 -0
- package/coverage/src/breakpoint/index.ts.html +94 -0
- package/coverage/src/breakpoint/shared/constants.ts.html +436 -0
- package/coverage/src/breakpoint/shared/index.html +176 -0
- package/coverage/src/breakpoint/shared/index.ts.html +94 -0
- package/coverage/src/breakpoint/shared/operations.ts.html +160 -0
- package/coverage/src/breakpoint/shared/socket.ts.html +1297 -0
- package/coverage/src/breakpoint/shared/utils.ts.html +1087 -0
- package/coverage/src/breakpoint/store/core.ts.html +1600 -0
- package/coverage/src/breakpoint/store/dock.ts.html +733 -0
- package/coverage/src/breakpoint/store/index.html +146 -0
- package/coverage/src/breakpoint/store/index.ts.html +91 -0
- package/coverage/src/common/BaseNode.ts.html +4081 -0
- package/coverage/src/common/Command.ts.html +310 -0
- package/coverage/src/common/EventEmitter.ts.html +373 -0
- package/coverage/src/common/Messager.ts.html +820 -0
- package/coverage/src/common/asyncFuncMap.ts.html +127 -0
- package/coverage/src/common/index.html +191 -0
- package/coverage/src/common/index.ts.html +94 -0
- package/coverage/src/concepts/Abort__.ts.html +331 -0
- package/coverage/src/concepts/Anchor__.ts.html +667 -0
- package/coverage/src/concepts/AnonymousFunction__.ts.html +2092 -0
- package/coverage/src/concepts/App__.ts.html +13651 -0
- package/coverage/src/concepts/Argument__.ts.html +907 -0
- package/coverage/src/concepts/Assignee__.ts.html +2317 -0
- package/coverage/src/concepts/AssignmentLine__.ts.html +430 -0
- package/coverage/src/concepts/Assignment__.ts.html +1174 -0
- package/coverage/src/concepts/Attribute__.ts.html +919 -0
- package/coverage/src/concepts/AuthInterface__.ts.html +370 -0
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +2011 -0
- package/coverage/src/concepts/AuthLogic__.ts.html +793 -0
- package/coverage/src/concepts/BackendVariable__.ts.html +1690 -0
- package/coverage/src/concepts/Backend__.ts.html +1192 -0
- package/coverage/src/concepts/BatchAssignment__.ts.html +3376 -0
- package/coverage/src/concepts/BinaryExpression__.ts.html +1468 -0
- package/coverage/src/concepts/BindAttribute__.ts.html +3931 -0
- package/coverage/src/concepts/BindDirective__.ts.html +2002 -0
- package/coverage/src/concepts/BindEvent__.ts.html +3487 -0
- package/coverage/src/concepts/BindStyle__.ts.html +1645 -0
- package/coverage/src/concepts/BooleanLiteral__.ts.html +421 -0
- package/coverage/src/concepts/CallAuthInterface__.ts.html +1642 -0
- package/coverage/src/concepts/CallConnector__.ts.html +925 -0
- package/coverage/src/concepts/CallFunction__.ts.html +2164 -0
- package/coverage/src/concepts/CallInterface__.ts.html +2776 -0
- package/coverage/src/concepts/CallLogic__.ts.html +4693 -0
- package/coverage/src/concepts/CallQueryComponent__.ts.html +5419 -0
- package/coverage/src/concepts/Comment__.ts.html +397 -0
- package/coverage/src/concepts/CompletionProperty__.ts.html +946 -0
- package/coverage/src/concepts/ConfigGroup__.ts.html +1132 -0
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +427 -0
- package/coverage/src/concepts/ConfigProperty__.ts.html +1375 -0
- package/coverage/src/concepts/Configuration__.ts.html +1054 -0
- package/coverage/src/concepts/Connection__.ts.html +1387 -0
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +598 -0
- package/coverage/src/concepts/Connector__.ts.html +4390 -0
- package/coverage/src/concepts/Constant__.ts.html +1123 -0
- package/coverage/src/concepts/DataSource__.ts.html +1798 -0
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +334 -0
- package/coverage/src/concepts/DefaultValue__.ts.html +946 -0
- package/coverage/src/concepts/Destination__.ts.html +2761 -0
- package/coverage/src/concepts/End__.ts.html +436 -0
- package/coverage/src/concepts/EntityIndex__.ts.html +799 -0
- package/coverage/src/concepts/EntityProperty__.ts.html +2866 -0
- package/coverage/src/concepts/Entity__.ts.html +3070 -0
- package/coverage/src/concepts/EnumItem__.ts.html +553 -0
- package/coverage/src/concepts/Enum__.ts.html +1258 -0
- package/coverage/src/concepts/Event__.ts.html +1111 -0
- package/coverage/src/concepts/ExternalDestination__.ts.html +1060 -0
- package/coverage/src/concepts/ForEachStatement__.ts.html +2023 -0
- package/coverage/src/concepts/FrontendLibrary__.ts.html +1762 -0
- package/coverage/src/concepts/FrontendVariable__.ts.html +292 -0
- package/coverage/src/concepts/Frontend__.ts.html +4078 -0
- package/coverage/src/concepts/Function__.ts.html +3718 -0
- package/coverage/src/concepts/Identifier__.ts.html +1060 -0
- package/coverage/src/concepts/IfStatement__.ts.html +1636 -0
- package/coverage/src/concepts/Integration__.ts.html +1273 -0
- package/coverage/src/concepts/InterfaceParam__.ts.html +1258 -0
- package/coverage/src/concepts/Interface__.ts.html +3463 -0
- package/coverage/src/concepts/JSBlock__.ts.html +424 -0
- package/coverage/src/concepts/JavaLogic__.ts.html +463 -0
- package/coverage/src/concepts/LogicItem__.ts.html +1174 -0
- package/coverage/src/concepts/Logic__.ts.html +7732 -0
- package/coverage/src/concepts/MatchCase__.ts.html +2974 -0
- package/coverage/src/concepts/Match__.ts.html +2494 -0
- package/coverage/src/concepts/MemberExpression__.ts.html +1744 -0
- package/coverage/src/concepts/MicroApp__.ts.html +439 -0
- package/coverage/src/concepts/Module__.ts.html +9385 -0
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +1072 -0
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +1045 -0
- package/coverage/src/concepts/Namespace__.ts.html +8221 -0
- package/coverage/src/concepts/NewComposite__.ts.html +4765 -0
- package/coverage/src/concepts/NewList__.ts.html +1702 -0
- package/coverage/src/concepts/NewMap__.ts.html +2470 -0
- package/coverage/src/concepts/New__.ts.html +289 -0
- package/coverage/src/concepts/NullLiteral__.ts.html +352 -0
- package/coverage/src/concepts/NumericLiteral__.ts.html +697 -0
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +1237 -0
- package/coverage/src/concepts/OverriddenLogic__.ts.html +6970 -0
- package/coverage/src/concepts/Param__.ts.html +1798 -0
- package/coverage/src/concepts/Point__.ts.html +334 -0
- package/coverage/src/concepts/ProcessComponent__.ts.html +1717 -0
- package/coverage/src/concepts/ProcessElement__.ts.html +6187 -0
- package/coverage/src/concepts/ProcessOutcome__.ts.html +355 -0
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +355 -0
- package/coverage/src/concepts/Process__.ts.html +5071 -0
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +589 -0
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +586 -0
- package/coverage/src/concepts/QueryFromExpression__.ts.html +937 -0
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +580 -0
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +1606 -0
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +664 -0
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +706 -0
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +1741 -0
- package/coverage/src/concepts/Rect__.ts.html +376 -0
- package/coverage/src/concepts/Return__.ts.html +1471 -0
- package/coverage/src/concepts/Role__.ts.html +604 -0
- package/coverage/src/concepts/SelectMembers__.ts.html +1279 -0
- package/coverage/src/concepts/Slot__.ts.html +649 -0
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +1003 -0
- package/coverage/src/concepts/Start__.ts.html +307 -0
- package/coverage/src/concepts/StringInterpolation__.ts.html +1156 -0
- package/coverage/src/concepts/StringLiteral__.ts.html +508 -0
- package/coverage/src/concepts/StructureProperty__.ts.html +1300 -0
- package/coverage/src/concepts/Structure__.ts.html +2182 -0
- package/coverage/src/concepts/SwitchCase__.ts.html +1204 -0
- package/coverage/src/concepts/SwitchStatement__.ts.html +904 -0
- package/coverage/src/concepts/Theme__.ts.html +361 -0
- package/coverage/src/concepts/Transactional__.ts.html +631 -0
- package/coverage/src/concepts/TriggerEvent__.ts.html +1039 -0
- package/coverage/src/concepts/TriggerLauncher__.ts.html +778 -0
- package/coverage/src/concepts/TypeAnnotation__.ts.html +3832 -0
- package/coverage/src/concepts/TypeParam__.ts.html +322 -0
- package/coverage/src/concepts/UnaryExpression__.ts.html +730 -0
- package/coverage/src/concepts/Unparsed__.ts.html +397 -0
- package/coverage/src/concepts/UseComponent__.ts.html +334 -0
- package/coverage/src/concepts/ValidationRule__.ts.html +1876 -0
- package/coverage/src/concepts/Variable__.ts.html +1705 -0
- package/coverage/src/concepts/ViewBlock__.ts.html +355 -0
- package/coverage/src/concepts/ViewComponent__.ts.html +4327 -0
- package/coverage/src/concepts/ViewElement__.ts.html +8992 -0
- package/coverage/src/concepts/View__.ts.html +9019 -0
- package/coverage/src/concepts/WhileStatement__.ts.html +1105 -0
- package/coverage/src/concepts/basics/stdlib/index.html +356 -0
- package/coverage/src/concepts/basics/stdlib/index.ts.html +208 -0
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +565 -0
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +517 -0
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +226 -0
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +172 -0
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +214 -0
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +145 -0
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +589 -0
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +214 -0
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +229 -0
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +268 -0
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +1999 -0
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +3259 -0
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +6955 -0
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1768 -0
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +163 -0
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +664 -0
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +121 -0
- package/coverage/src/concepts/basics/types/index.html +131 -0
- package/coverage/src/concepts/basics/types/index.ts.html +160 -0
- package/coverage/src/concepts/index.html +1976 -0
- package/coverage/src/concepts/index.ts.html +103 -0
- package/coverage/src/concepts/index__.ts.html +454 -0
- package/coverage/src/config.ts.html +325 -0
- package/coverage/src/decorators/index.html +131 -0
- package/coverage/src/decorators/index.ts.html +583 -0
- package/coverage/src/decorators/promise.ts.html +169 -0
- package/coverage/src/eventBus.ts.html +100 -0
- package/coverage/src/generator/compileComponent.ts.html +142 -0
- package/coverage/src/generator/genBundleFiles.ts.html +1828 -0
- package/coverage/src/generator/genHash.ts.html +124 -0
- package/coverage/src/generator/genMetaData.ts.html +1084 -0
- package/coverage/src/generator/genReleaseBody.ts.html +1282 -0
- package/coverage/src/generator/icestark.ts.html +220 -0
- package/coverage/src/generator/index.html +266 -0
- package/coverage/src/generator/index.ts.html +106 -0
- package/coverage/src/generator/microApp.ts.html +172 -0
- package/coverage/src/generator/permission.ts.html +1036 -0
- package/coverage/src/generator/qiankun.ts.html +232 -0
- package/coverage/src/generator/styleReplacer.ts.html +199 -0
- package/coverage/src/index.html +146 -0
- package/coverage/src/index.ts.html +124 -0
- package/coverage/src/manager/diagnostic.ts.html +442 -0
- package/coverage/src/manager/index.html +131 -0
- package/coverage/src/manager/stepRecorder.ts.html +457 -0
- package/coverage/src/natural/genNaturalTS.ts.html +355 -0
- package/coverage/src/natural/index.html +161 -0
- package/coverage/src/natural/index.ts.html +91 -0
- package/coverage/src/natural/naslStdlibMap.ts.html +157 -0
- package/coverage/src/natural/transformTSCode.ts.html +2707 -0
- package/coverage/src/sentry/index.html +116 -0
- package/coverage/src/sentry/index.ts.html +676 -0
- package/coverage/src/server/createUiTs.ts.html +919 -0
- package/coverage/src/server/entity2LogicNamespace.ts.html +1294 -0
- package/coverage/src/server/event.js.html +526 -0
- package/coverage/src/server/extendBaseNode.ts.html +1762 -0
- package/coverage/src/server/formatTsUtils.ts.html +2689 -0
- package/coverage/src/server/getConnector.ts.html +316 -0
- package/coverage/src/server/getExtensionModules.ts.html +178 -0
- package/coverage/src/server/getFunctions.ts.html +133 -0
- package/coverage/src/server/getInterfaces.ts.html +229 -0
- package/coverage/src/server/getLogging.ts.html +100 -0
- package/coverage/src/server/getLogics.ts.html +1363 -0
- package/coverage/src/server/getMemberIdentifier.ts.html +1606 -0
- package/coverage/src/server/getProcessComponents.ts.html +112 -0
- package/coverage/src/server/getProcesses.ts.html +2023 -0
- package/coverage/src/server/getValidates.ts.html +115 -0
- package/coverage/src/server/index.html +401 -0
- package/coverage/src/server/index.ts.html +229 -0
- package/coverage/src/server/naslServer.ts.html +14356 -0
- package/coverage/src/server/naslStdlibMap.ts.html +241 -0
- package/coverage/src/server/process2LogicNamespace.ts.html +454 -0
- package/coverage/src/server/translator.ts.html +2566 -0
- package/coverage/src/service/creator/add.configs.js.html +397 -0
- package/coverage/src/service/creator/errHandles.js.html +304 -0
- package/coverage/src/service/creator/index.html +146 -0
- package/coverage/src/service/creator/index.js.html +352 -0
- package/coverage/src/service/datasource/api.js.html +118 -0
- package/coverage/src/service/datasource/index.html +131 -0
- package/coverage/src/service/datasource/index.js.html +103 -0
- package/coverage/src/service/logic/api.js.html +109 -0
- package/coverage/src/service/logic/index.html +131 -0
- package/coverage/src/service/logic/index.js.html +103 -0
- package/coverage/src/service/storage/api.js.html +202 -0
- package/coverage/src/service/storage/index.html +206 -0
- package/coverage/src/service/storage/index.ts.html +103 -0
- package/coverage/src/service/storage/init.ts.html +3721 -0
- package/coverage/src/service/storage/jsoner.ts.html +502 -0
- package/coverage/src/service/storage/map.ts.html +256 -0
- package/coverage/src/service/storage/service.ts.html +331 -0
- package/coverage/src/service/storage/storagePoint.ts.html +304 -0
- package/coverage/src/templator/genCallComponentLogic.ts.html +163 -0
- package/coverage/src/templator/genCreateBlock.ts.html +1093 -0
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +1609 -0
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +2254 -0
- package/coverage/src/templator/genEditTableBlock.ts.html +1021 -0
- package/coverage/src/templator/genEnumSelectBlock.ts.html +178 -0
- package/coverage/src/templator/genGetBlock.ts.html +451 -0
- package/coverage/src/templator/genGridViewBlock.ts.html +1114 -0
- package/coverage/src/templator/genListViewBlock.ts.html +475 -0
- package/coverage/src/templator/genQueryComponent.ts.html +1207 -0
- package/coverage/src/templator/genSelectBlock.ts.html +1243 -0
- package/coverage/src/templator/genTableBlock.ts.html +973 -0
- package/coverage/src/templator/genUpdateBlock.ts.html +1192 -0
- package/coverage/src/templator/index.html +326 -0
- package/coverage/src/templator/index.ts.html +154 -0
- package/coverage/src/templator/utils.ts.html +1861 -0
- package/coverage/src/translator/constant.ts.html +106 -0
- package/coverage/src/translator/index.html +146 -0
- package/coverage/src/translator/index.ts.html +94 -0
- package/coverage/src/translator/utils.ts.html +436 -0
- package/coverage/src/utils/cookie.ts.html +265 -0
- package/coverage/src/utils/env.ts.html +91 -0
- package/coverage/src/utils/index.html +236 -0
- package/coverage/src/utils/index.ts.html +694 -0
- package/coverage/src/utils/logger.ts.html +145 -0
- package/coverage/src/utils/sortTsString.ts.html +187 -0
- package/coverage/src/utils/string.ts.html +400 -0
- package/coverage/src/utils/time-slicing.ts.html +418 -0
- package/coverage/src/utils/traverse.ts.html +568 -0
- package/coverage/src/utils/window.ts.html +112 -0
- package/out/bak/translator.js +2 -19
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.d.ts +11 -0
- package/out/common/BaseNode.js +57 -1
- package/out/common/BaseNode.js.map +1 -1
- 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/common/utils.d.ts +2 -0
- package/out/common/utils.js +18 -0
- package/out/common/utils.js.map +1 -0
- package/out/concepts/Abort__.d.ts +2 -2
- package/out/concepts/Abort__.js +6 -2
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/Anchor__.d.ts +2 -2
- package/out/concepts/Anchor__.js +5 -4
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +3 -3
- package/out/concepts/AnonymousFunction__.js +19 -15
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +2 -2
- package/out/concepts/Argument__.js +12 -13
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +2 -2
- package/out/concepts/Assignee__.js +11 -9
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +2 -2
- package/out/concepts/AssignmentLine__.js +3 -2
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +2 -2
- package/out/concepts/Assignment__.js +13 -29
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/AuthInterface__.js +1 -1
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +2 -2
- package/out/concepts/AuthLogicForCallInterface__.js +56 -75
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +5 -8
- package/out/concepts/BackendVariable__.js +47 -29
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.d.ts +4 -7
- package/out/concepts/Backend__.js +7 -6
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +2 -2
- package/out/concepts/BatchAssignment__.js +19 -20
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +2 -2
- package/out/concepts/BinaryExpression__.js +37 -38
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +4 -4
- package/out/concepts/BindAttribute__.js +39 -32
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +2 -2
- package/out/concepts/BindDirective__.js +10 -8
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +4 -7
- package/out/concepts/BindEvent__.js +20 -18
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +2 -2
- package/out/concepts/BindStyle__.js +9 -7
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/Block__.d.ts +6 -2
- package/out/concepts/Block__.js +36 -5
- package/out/concepts/Block__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +2 -2
- package/out/concepts/BooleanLiteral__.js +2 -2
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +3 -2
- package/out/concepts/CallAuthInterface__.js +46 -30
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts +2 -2
- package/out/concepts/CallConnector__.js +25 -23
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +2 -2
- package/out/concepts/CallFunction__.js +19 -16
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +3 -2
- package/out/concepts/CallInterface__.js +16 -6
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +2 -3
- package/out/concepts/CallLogic__.js +26 -20
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +4 -4
- package/out/concepts/CallQueryComponent__.js +38 -36
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.d.ts +2 -2
- package/out/concepts/Comment__.js +3 -2
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +4 -7
- package/out/concepts/ConfigProperty__.js +12 -10
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +4 -7
- package/out/concepts/Connection__.js +6 -5
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +3 -3
- package/out/concepts/Constant__.js +38 -13
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +4 -7
- package/out/concepts/DataSource__.js +7 -6
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DefaultValue__.d.ts +6 -2
- package/out/concepts/DefaultValue__.js +11 -3
- package/out/concepts/DefaultValue__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +3 -3
- package/out/concepts/Destination__.js +29 -26
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +2 -2
- package/out/concepts/End__.js +17 -13
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +2 -2
- package/out/concepts/EntityIndex__.js +4 -3
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +2 -2
- package/out/concepts/EntityProperty__.js +9 -8
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +4 -7
- package/out/concepts/Entity__.js +22 -22
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +2 -2
- package/out/concepts/EnumItem__.js +4 -3
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.d.ts +4 -7
- package/out/concepts/Enum__.js +10 -8
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +2 -2
- package/out/concepts/ExternalDestination__.js +7 -5
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +2 -2
- package/out/concepts/ForEachStatement__.js +14 -12
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +4 -7
- package/out/concepts/Frontend__.js +7 -6
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +3 -3
- package/out/concepts/Function__.js +22 -18
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +2 -2
- package/out/concepts/Identifier__.js +19 -23
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +2 -2
- package/out/concepts/IfStatement__.js +12 -10
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/ImportedInterface__.d.ts +20 -0
- package/out/concepts/ImportedInterface__.js +57 -0
- package/out/concepts/ImportedInterface__.js.map +1 -0
- package/out/concepts/InterfaceParam__.d.ts +2 -7
- package/out/concepts/InterfaceParam__.js +33 -14
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +7 -15
- package/out/concepts/Interface__.js +33 -43
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +2 -2
- package/out/concepts/JSBlock__.js +3 -58
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +2 -2
- package/out/concepts/JavaLogic__.js +6 -2
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +2 -2
- package/out/concepts/LogicItem__.js +7 -13
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +8 -11
- package/out/concepts/Logic__.js +124 -157
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +2 -2
- package/out/concepts/MatchCase__.js +23 -22
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +2 -2
- package/out/concepts/Match__.js +24 -22
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +2 -2
- package/out/concepts/MemberExpression__.js +28 -24
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +4 -7
- package/out/concepts/MetadataType__.js +11 -9
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/Module__.d.ts +8 -179
- package/out/concepts/Module__.js +124 -265
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +5 -5
- package/out/concepts/NewComposite__.js +75 -76
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +5 -5
- package/out/concepts/NewList__.js +30 -26
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +4 -4
- package/out/concepts/NewMap__.js +39 -35
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +2 -2
- package/out/concepts/New__.js +3 -2
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +2 -2
- package/out/concepts/NullLiteral__.js +2 -2
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.d.ts +2 -2
- package/out/concepts/NumericLiteral__.js +6 -5
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +2 -2
- package/out/concepts/OqlQueryComponent__.js +16 -14
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +8 -11
- package/out/concepts/OverriddenLogic__.js +99 -112
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.d.ts +3 -3
- package/out/concepts/Param__.js +24 -30
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +2 -2
- package/out/concepts/ProcessElement__.js +54 -68
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +2 -1
- package/out/concepts/ProcessOutcome__.js +5 -4
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +2 -1
- package/out/concepts/ProcessOutcomes__.js +6 -5
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +4 -7
- package/out/concepts/Process__.js +35 -52
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.d.ts +2 -2
- package/out/concepts/QueryAggregateExpression__.js +2 -2
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +2 -2
- package/out/concepts/QueryFieldExpression__.js +5 -4
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +2 -2
- package/out/concepts/QueryFromExpression__.js +8 -6
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +2 -1
- package/out/concepts/QueryGroupByExpression__.js +6 -5
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +2 -2
- package/out/concepts/QueryJoinExpression__.js +12 -10
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +2 -2
- package/out/concepts/QueryLimitExpression__.js +6 -5
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +2 -2
- package/out/concepts/QueryOrderByExpression__.js +6 -5
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/Return__.d.ts +3 -3
- package/out/concepts/Return__.js +41 -24
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +4 -7
- package/out/concepts/Role__.js +7 -6
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +2 -2
- package/out/concepts/SelectMembers__.js +3 -2
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +2 -2
- package/out/concepts/SqlQueryComponent__.js +12 -10
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +2 -2
- package/out/concepts/Start__.js +2 -2
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +2 -2
- package/out/concepts/StringInterpolation__.js +7 -5
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +2 -2
- package/out/concepts/StringLiteral__.js +12 -6
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +2 -2
- package/out/concepts/StructureProperty__.js +6 -5
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +4 -7
- package/out/concepts/Structure__.js +15 -15
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +2 -2
- package/out/concepts/SwitchCase__.js +12 -10
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.d.ts +2 -2
- package/out/concepts/SwitchStatement__.js +8 -6
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +4 -7
- package/out/concepts/TriggerLauncher__.js +7 -6
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +2 -2
- package/out/concepts/TypeAnnotation__.js +51 -25
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +2 -2
- package/out/concepts/TypeParam__.js +4 -3
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +2 -2
- package/out/concepts/UnaryExpression__.js +12 -7
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +2 -2
- package/out/concepts/Unparsed__.js +2 -2
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +2 -2
- package/out/concepts/ValidationRule__.js +11 -9
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +5 -8
- package/out/concepts/Variable__.js +49 -32
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +6 -6
- package/out/concepts/ViewElement__.js +110 -137
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +6 -9
- package/out/concepts/View__.js +76 -84
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +2 -2
- package/out/concepts/WhileStatement__.js +9 -7
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/index__.d.ts +1 -1
- package/out/concepts/index__.js +1 -1
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/types__.d.ts +1 -3
- package/out/decorators/index.js +10 -9
- package/out/decorators/index.js.map +1 -1
- package/out/generator/genMetaData.js +0 -7
- package/out/generator/genMetaData.js.map +1 -1
- package/out/manager/diagnostic.d.ts +1 -1
- package/out/manager/diagnostic.js +2 -3
- package/out/manager/diagnostic.js.map +1 -1
- package/out/server/extendBaseNode.js +7 -24
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/getConnector.js +8 -3
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getLogics.js +13 -3
- package/out/server/getLogics.js.map +1 -1
- package/out/server/naslServer.d.ts +44 -46
- package/out/server/naslServer.js +333 -461
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +1 -1
- package/out/server/translator.js.map +1 -1
- package/out/templator/genCreateBlock.js +5 -9
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +12 -18
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +8 -10
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +2 -3
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +9 -12
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.js.map +1 -1
- package/out/translator/types.d.ts +16 -3
- package/out/translator/utils.d.ts +19 -1
- package/out/translator/utils.js +90 -2
- package/out/translator/utils.js.map +1 -1
- package/out/utils/time-slicing/constant.d.ts +35 -0
- package/out/utils/time-slicing/constant.js +40 -0
- package/out/utils/time-slicing/constant.js.map +1 -0
- package/out/utils/time-slicing/controller.d.ts +53 -0
- package/out/utils/time-slicing/controller.js +280 -0
- package/out/utils/time-slicing/controller.js.map +1 -0
- package/out/utils/time-slicing/index.d.ts +5 -0
- package/out/utils/time-slicing/index.js +26 -0
- package/out/utils/time-slicing/index.js.map +1 -0
- package/out/utils/time-slicing/page-state.d.ts +2 -0
- package/out/utils/time-slicing/page-state.js +14 -0
- package/out/utils/time-slicing/page-state.js.map +1 -0
- package/out/utils/time-slicing/performance.d.ts +11 -0
- package/out/utils/time-slicing/performance.js +51 -0
- package/out/utils/time-slicing/performance.js.map +1 -0
- package/out/utils/time-slicing/runner.d.ts +12 -0
- package/out/utils/time-slicing/runner.js +53 -0
- package/out/utils/time-slicing/runner.js.map +1 -0
- package/out/utils/time-slicing/tool.d.ts +24 -0
- package/out/utils/time-slicing/tool.js +47 -0
- package/out/utils/time-slicing/tool.js.map +1 -0
- package/out/utils/time-slicing/utils.d.ts +62 -0
- package/out/utils/time-slicing/utils.js +47 -0
- package/out/utils/time-slicing/utils.js.map +1 -0
- package/out/utils/time-slicing/wrapper.d.ts +18 -0
- package/out/utils/time-slicing/wrapper.js +55 -0
- package/out/utils/time-slicing/wrapper.js.map +1 -0
- package/out/utils/types.d.ts +7 -0
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.core.ts +0 -2
- package/sandbox/stdlib/nasl.util.ts +1 -1
- package/src/bak/translator.js +2 -17
- package/src/common/BaseNode.ts +73 -7
- package/src/common/index.ts +1 -0
- package/src/common/utils.ts +17 -0
- package/src/concepts/Abort__.ts +12 -3
- package/src/concepts/Anchor__.ts +15 -5
- package/src/concepts/AnonymousFunction__.ts +29 -23
- package/src/concepts/Argument__.ts +25 -14
- package/src/concepts/Assignee__.ts +21 -10
- package/src/concepts/AssignmentLine__.ts +13 -3
- package/src/concepts/Assignment__.ts +33 -42
- package/src/concepts/AuthInterface__.ts +3 -3
- package/src/concepts/AuthLogicForCallInterface__.ts +63 -84
- package/src/concepts/BackendVariable__.ts +35 -30
- package/src/concepts/Backend__.ts +24 -7
- package/src/concepts/BatchAssignment__.ts +30 -21
- package/src/concepts/BinaryExpression__.ts +47 -38
- package/src/concepts/BindAttribute__.ts +43 -39
- package/src/concepts/BindDirective__.ts +19 -9
- package/src/concepts/BindEvent__.ts +31 -26
- package/src/concepts/BindStyle__.ts +18 -8
- package/src/concepts/Block__.ts +22 -6
- package/src/concepts/BooleanLiteral__.ts +11 -3
- package/src/concepts/CallAuthInterface__.ts +58 -33
- package/src/concepts/CallConnector__.ts +34 -26
- package/src/concepts/CallFunction__.ts +22 -17
- package/src/concepts/CallInterface__.ts +30 -12
- package/src/concepts/CallLogic__.ts +46 -47
- package/src/concepts/CallQueryComponent__.ts +48 -46
- package/src/concepts/Comment__.ts +13 -3
- package/src/concepts/ConfigProperty__.ts +22 -12
- package/src/concepts/Connection__.ts +22 -6
- package/src/concepts/Connector__.ts +1 -1
- package/src/concepts/Constant__.ts +24 -14
- package/src/concepts/DataSource__.ts +16 -7
- package/src/concepts/DefaultValue__.ts +13 -4
- package/src/concepts/Destination__.ts +39 -33
- package/src/concepts/End__.ts +24 -15
- package/src/concepts/EntityIndex__.ts +13 -4
- package/src/concepts/EntityProperty__.ts +20 -10
- package/src/concepts/Entity__.ts +34 -27
- package/src/concepts/EnumItem__.ts +13 -4
- package/src/concepts/Enum__.ts +21 -10
- package/src/concepts/ExternalDestination__.ts +16 -7
- package/src/concepts/ForEachStatement__.ts +24 -14
- package/src/concepts/Frontend__.ts +18 -7
- package/src/concepts/Function__.ts +30 -21
- package/src/concepts/Identifier__.ts +32 -34
- package/src/concepts/IfStatement__.ts +22 -14
- package/src/concepts/ImportedInterface__.ts +61 -0
- package/src/concepts/InterfaceParam__.ts +19 -16
- package/src/concepts/Interface__.ts +45 -51
- package/src/concepts/JSBlock__.ts +12 -61
- package/src/concepts/JavaLogic__.ts +13 -3
- package/src/concepts/LogicItem__.ts +13 -14
- package/src/concepts/Logic__.ts +147 -172
- package/src/concepts/MatchCase__.ts +33 -27
- package/src/concepts/Match__.ts +34 -26
- package/src/concepts/MemberExpression__.ts +37 -25
- package/src/concepts/MetadataType__.ts +22 -10
- package/src/concepts/Module__.ts +177 -540
- package/src/concepts/NewComposite__.ts +86 -80
- package/src/concepts/NewList__.ts +40 -32
- package/src/concepts/NewMap__.ts +49 -42
- package/src/concepts/New__.ts +13 -3
- package/src/concepts/NullLiteral__.ts +11 -3
- package/src/concepts/NumericLiteral__.ts +15 -6
- package/src/concepts/OqlQueryComponent__.ts +26 -18
- package/src/concepts/OverriddenLogic__.ts +117 -125
- package/src/concepts/Param__.ts +42 -38
- package/src/concepts/ProcessElement__.ts +67 -79
- package/src/concepts/ProcessOutcome__.ts +14 -6
- package/src/concepts/ProcessOutcomes__.ts +15 -7
- package/src/concepts/Process__.ts +50 -61
- package/src/concepts/QueryAggregateExpression__.ts +11 -3
- package/src/concepts/QueryFieldExpression__.ts +14 -5
- package/src/concepts/QueryFromExpression__.ts +18 -7
- package/src/concepts/QueryGroupByExpression__.ts +14 -6
- package/src/concepts/QueryJoinExpression__.ts +22 -11
- package/src/concepts/QueryLimitExpression__.ts +16 -6
- package/src/concepts/QueryOrderByExpression__.ts +17 -6
- package/src/concepts/Return__.ts +27 -25
- package/src/concepts/Role__.ts +17 -8
- package/src/concepts/SelectMembers__.ts +13 -3
- package/src/concepts/SqlQueryComponent__.ts +22 -11
- package/src/concepts/Start__.ts +11 -3
- package/src/concepts/StringInterpolation__.ts +10 -5
- package/src/concepts/StringLiteral__.ts +20 -7
- package/src/concepts/StructureProperty__.ts +16 -6
- package/src/concepts/Structure__.ts +26 -18
- package/src/concepts/SwitchCase__.ts +22 -14
- package/src/concepts/SwitchStatement__.ts +17 -7
- package/src/concepts/TriggerLauncher__.ts +17 -7
- package/src/concepts/TypeAnnotation__.ts +36 -26
- package/src/concepts/TypeParam__.ts +13 -4
- package/src/concepts/UnaryExpression__.ts +22 -9
- package/src/concepts/Unparsed__.ts +11 -3
- package/src/concepts/ValidationRule__.ts +21 -17
- package/src/concepts/Variable__.ts +37 -33
- package/src/concepts/ViewElement__.ts +128 -156
- package/src/concepts/View__.ts +101 -101
- package/src/concepts/WhileStatement__.ts +19 -10
- package/src/concepts/index__.ts +1 -1
- package/src/concepts/types__.ts +1 -5
- package/src/decorators/index.ts +10 -9
- package/src/generator/genMetaData.ts +2 -12
- package/src/manager/diagnostic.ts +3 -4
- package/src/server/extendBaseNode.ts +8 -24
- package/src/server/getConnector.ts +8 -3
- package/src/server/getLogics.ts +15 -3
- package/src/server/naslServer.ts +717 -749
- package/src/server/translator.ts +1 -1
- package/src/templator/genCreateBlock.ts +5 -9
- package/src/templator/genCurdEditMultipleKeyBlock.ts +13 -19
- package/src/templator/genCurdMultipleKeyBlock.ts +11 -14
- package/src/templator/genEditTableBlock.ts +2 -4
- package/src/templator/genUpdateBlock.ts +12 -15
- package/src/templator/utils.ts +7 -8
- package/src/translator/types.ts +20 -5
- package/src/translator/utils.ts +100 -5
- package/src/utils/time-slicing/constant.ts +37 -0
- package/src/utils/time-slicing/controller.ts +342 -0
- package/src/utils/time-slicing/index.ts +6 -0
- package/src/utils/time-slicing/page-state.ts +12 -0
- package/src/utils/time-slicing/performance.ts +56 -0
- package/src/utils/time-slicing/runner.ts +54 -0
- package/src/utils/time-slicing/tool.ts +45 -0
- package/src/utils/time-slicing/utils.ts +90 -0
- package/src/utils/time-slicing/wrapper.ts +58 -0
- package/src/utils/types.ts +9 -0
- package/test/concepts/anonymous-function/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/assignment/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/batch-assignment/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/binary-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +3 -3
- package/test/concepts/binary-expression/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/boolean-literal/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/call-function/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/call-interface/__snapshots__/toJS.spec.ts.snap +3 -3
- package/test/concepts/call-interface/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +5 -5
- package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +2 -1
- package/test/concepts/call-logic/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/data-source/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/data-source/toEmbeddedTSFile.spec.ts +2 -1
- package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +19 -19
- package/test/concepts/entity/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/identifier/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/match/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/match/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/member-expression/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/null-literal/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/numeric-literal/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/numeric-literal/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/string-literal/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +3 -3
- package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +2 -1
- package/test/concepts/validation-rule/validation-rule.spec.ts +2 -1
- package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +3 -3
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +0 -4
- package/test/concepts/view-element/toEmbeddedTS.spec.ts +2 -1
- package/test/time-slicing/runner.spec.ts +28 -0
- package/test/time-slicing/time-slicing-nodejs.spec.ts +27 -0
- package/test/time-slicing/utils.ts +7 -0
- package/test/time-slicing/wrapper.spec.ts +92 -0
- package/ts-worker/lib/tsserver.js +10 -1
- package/ts-worker/package.json +1 -0
- package/ts-worker/src/index.js +13 -12
- package/ts-worker/webpack.config.js +1 -1
- package/out/concepts/InterfaceFromExample__.d.ts +0 -88
- package/out/concepts/InterfaceFromExample__.js +0 -183
- package/out/concepts/InterfaceFromExample__.js.map +0 -1
- package/out/utils/time-slicing.d.ts +0 -41
- package/out/utils/time-slicing.js +0 -82
- package/out/utils/time-slicing.js.map +0 -1
- package/src/concepts/InterfaceFromExample__.ts +0 -205
- package/src/utils/time-slicing.ts +0 -111
package/src/concepts/Module__.ts
CHANGED
|
@@ -7,12 +7,7 @@ const moduleNameSpace = {
|
|
|
7
7
|
type ModuleKeyType = 'dependencies' | 'interfaceDependencies' | 'componentDependencies';
|
|
8
8
|
import type { AuthInterface } from './AuthInterface__';
|
|
9
9
|
import ConfigProperty from './ConfigProperty__';
|
|
10
|
-
import AuthLogic from './AuthLogic__';
|
|
11
|
-
import AuthLogicForCallInterface from './AuthLogicForCallInterface__';
|
|
12
|
-
import TriggerLauncher from './TriggerLauncher__';
|
|
13
|
-
import Connection from './Connection__';
|
|
14
10
|
import Interface from './Interface__';
|
|
15
|
-
import InterfaceFromExample from './InterfaceFromExample__';
|
|
16
11
|
// import AuthLogic from './AuthLogic__';
|
|
17
12
|
//================================================================================
|
|
18
13
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
@@ -28,14 +23,16 @@ import DataSource from './DataSource__';
|
|
|
28
23
|
import Structure from './Structure__';
|
|
29
24
|
import Enum from './Enum__';
|
|
30
25
|
import Logic from './Logic__';
|
|
26
|
+
import AbstractInterface from './AbstractInterface__';
|
|
31
27
|
import View from './View__';
|
|
32
28
|
import Variable from './Variable__';
|
|
33
29
|
import Process from './Process__';
|
|
34
30
|
import FrontendLibrary from './FrontendLibrary__';
|
|
35
31
|
import Configuration from './Configuration__';
|
|
36
|
-
import
|
|
37
|
-
import
|
|
32
|
+
import TriggerLauncher from './TriggerLauncher__';
|
|
33
|
+
import Connection from './Connection__';
|
|
38
34
|
import MetadataType from './MetadataType__';
|
|
35
|
+
import App from './App__';
|
|
39
36
|
|
|
40
37
|
/**
|
|
41
38
|
* 模块
|
|
@@ -111,16 +108,18 @@ export class Module extends BaseNode {
|
|
|
111
108
|
*/
|
|
112
109
|
@property()
|
|
113
110
|
// @ts-ignore
|
|
114
|
-
compilerInfoMap!:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
111
|
+
compilerInfoMap!:
|
|
112
|
+
| {
|
|
113
|
+
java?: Array<{
|
|
114
|
+
packageName: string;
|
|
115
|
+
className: string;
|
|
116
|
+
naslName: string;
|
|
117
|
+
type: string;
|
|
118
|
+
javaTypes: Map<string, string>;
|
|
119
|
+
}>;
|
|
120
|
+
js?: { prefix: string };
|
|
121
|
+
}
|
|
122
|
+
| Map<string, string>;
|
|
124
123
|
|
|
125
124
|
/**
|
|
126
125
|
* 数据源列表
|
|
@@ -221,40 +220,35 @@ export class Module extends BaseNode {
|
|
|
221
220
|
// @ts-ignore
|
|
222
221
|
configuration!: Configuration;
|
|
223
222
|
|
|
224
|
-
/**
|
|
225
|
-
* 暴露接口的接口鉴权
|
|
226
|
-
*/
|
|
227
|
-
@property('AuthLogic')
|
|
228
|
-
authLogics: Array<AuthLogic> = [];
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* 调用接口的鉴权模板
|
|
232
|
-
*/
|
|
233
|
-
@property('AuthLogicForCallInterface')
|
|
234
|
-
authLogicsForCallInterface: Array<AuthLogicForCallInterface> = [];
|
|
235
|
-
|
|
236
223
|
/**
|
|
237
224
|
* 触发器启动器列表
|
|
238
225
|
*/
|
|
239
|
-
@property(
|
|
226
|
+
@property({
|
|
227
|
+
objectRef: 'TriggerLauncher',
|
|
228
|
+
isArray: true,
|
|
229
|
+
defaultValue: [],
|
|
230
|
+
})
|
|
240
231
|
triggerLaunchers: Array<TriggerLauncher> = [];
|
|
241
232
|
|
|
242
233
|
/**
|
|
243
234
|
* 连接列表
|
|
244
235
|
*/
|
|
245
|
-
@property(
|
|
236
|
+
@property({
|
|
237
|
+
objectRef: 'Connection',
|
|
238
|
+
isArray: true,
|
|
239
|
+
defaultValue: [],
|
|
240
|
+
})
|
|
246
241
|
connections: Array<Connection> = [];
|
|
247
242
|
|
|
248
243
|
/**
|
|
249
244
|
* 元数据类型列表
|
|
250
|
-
|
|
245
|
+
*/
|
|
251
246
|
@property({
|
|
252
247
|
objectRef: 'MetadataType',
|
|
253
248
|
isArray: true,
|
|
254
249
|
defaultValue: [],
|
|
255
250
|
})
|
|
256
251
|
metadataTypes: Array<MetadataType> = [];
|
|
257
|
-
|
|
258
252
|
|
|
259
253
|
/**
|
|
260
254
|
* 祖先 App
|
|
@@ -290,7 +284,9 @@ export class Module extends BaseNode {
|
|
|
290
284
|
|
|
291
285
|
getDataSourceExistingNames(excludedList: Array<DataSource> = []) {
|
|
292
286
|
const excludedSet = new Set(excludedList);
|
|
293
|
-
return ((this.dataSources as DataSource[]) || [])
|
|
287
|
+
return ((this.dataSources as DataSource[]) || [])
|
|
288
|
+
.filter((item) => !excludedSet.has(item))
|
|
289
|
+
.map((item) => item?.name);
|
|
294
290
|
}
|
|
295
291
|
getDataSourceUniqueName(name = 'dataSource1') {
|
|
296
292
|
return utils.unique(name, this.getDataSourceExistingNames(), undefined, false);
|
|
@@ -443,7 +439,7 @@ export class Module extends BaseNode {
|
|
|
443
439
|
|
|
444
440
|
getStructureExistingNames(excludedList: Array<Structure> = []) {
|
|
445
441
|
const excludedSet = new Set(excludedList);
|
|
446
|
-
return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
442
|
+
return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
447
443
|
}
|
|
448
444
|
getStructureUniqueName(name = 'Structure1') {
|
|
449
445
|
return utils.unique(name, this.getStructureExistingNames(), undefined, false);
|
|
@@ -596,7 +592,7 @@ export class Module extends BaseNode {
|
|
|
596
592
|
|
|
597
593
|
getEnumExistingNames(excludedList: Array<Enum> = []) {
|
|
598
594
|
const excludedSet = new Set(excludedList);
|
|
599
|
-
return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
595
|
+
return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
600
596
|
}
|
|
601
597
|
getEnumUniqueName(name = 'Enum1') {
|
|
602
598
|
return utils.unique(name, this.getEnumExistingNames(), undefined, false);
|
|
@@ -749,7 +745,7 @@ export class Module extends BaseNode {
|
|
|
749
745
|
|
|
750
746
|
getLogicExistingNames(excludedList: Array<Logic> = []) {
|
|
751
747
|
const excludedSet = new Set(excludedList);
|
|
752
|
-
return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
748
|
+
return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
753
749
|
}
|
|
754
750
|
getLogicUniqueName(name = 'logic1') {
|
|
755
751
|
return utils.unique(name, this.getLogicExistingNames(), undefined, false);
|
|
@@ -904,7 +900,7 @@ export class Module extends BaseNode {
|
|
|
904
900
|
const excludedSet = new Set(excludedList);
|
|
905
901
|
return ((this.interfaces as AbstractInterface[]) || [])
|
|
906
902
|
.filter((item) => !excludedSet.has(item))
|
|
907
|
-
.map((item) => item
|
|
903
|
+
.map((item) => item?.name);
|
|
908
904
|
}
|
|
909
905
|
getAbstractInterfaceUniqueName(name = 'Interface1') {
|
|
910
906
|
return utils.unique(name, this.getAbstractInterfaceExistingNames(), undefined, false);
|
|
@@ -912,7 +908,7 @@ export class Module extends BaseNode {
|
|
|
912
908
|
|
|
913
909
|
getViewExistingNames(excludedList: Array<View> = []) {
|
|
914
910
|
const excludedSet = new Set(excludedList);
|
|
915
|
-
return ((this.views as View[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
911
|
+
return ((this.views as View[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
916
912
|
}
|
|
917
913
|
getViewUniqueName(name = 'view1') {
|
|
918
914
|
return utils.unique(name, this.getViewExistingNames(), undefined, false);
|
|
@@ -1067,7 +1063,7 @@ export class Module extends BaseNode {
|
|
|
1067
1063
|
const excludedSet = new Set(excludedList);
|
|
1068
1064
|
return ((this.frontendVariables as Variable[]) || [])
|
|
1069
1065
|
.filter((item) => !excludedSet.has(item))
|
|
1070
|
-
.map((item) => item
|
|
1066
|
+
.map((item) => item?.name);
|
|
1071
1067
|
}
|
|
1072
1068
|
getVariableUniqueName(name = 'variable1') {
|
|
1073
1069
|
return utils.unique(name, this.getVarExistingNames(), undefined, true);
|
|
@@ -1220,7 +1216,7 @@ export class Module extends BaseNode {
|
|
|
1220
1216
|
|
|
1221
1217
|
getProcessExistingNames(excludedList: Array<Process> = []) {
|
|
1222
1218
|
const excludedSet = new Set(excludedList);
|
|
1223
|
-
return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
1219
|
+
return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
1224
1220
|
}
|
|
1225
1221
|
getProcessUniqueName(name = 'Process1') {
|
|
1226
1222
|
return utils.unique(name, this.getProcessExistingNames(), undefined, false);
|
|
@@ -1375,7 +1371,7 @@ export class Module extends BaseNode {
|
|
|
1375
1371
|
const excludedSet = new Set(excludedList);
|
|
1376
1372
|
return ((this.frontends as FrontendLibrary[]) || [])
|
|
1377
1373
|
.filter((item) => !excludedSet.has(item))
|
|
1378
|
-
.map((item) => item
|
|
1374
|
+
.map((item) => item?.name);
|
|
1379
1375
|
}
|
|
1380
1376
|
getFrontendLibraryUniqueName(name = 'frontendLibrary1') {
|
|
1381
1377
|
return utils.unique(name, this.getFrontendLibraryExistingNames(), undefined, false);
|
|
@@ -1526,168 +1522,11 @@ export class Module extends BaseNode {
|
|
|
1526
1522
|
return node;
|
|
1527
1523
|
}
|
|
1528
1524
|
|
|
1529
|
-
getAuthLogicForCallInterfaceExistingNames(excludedList: Array<AuthLogicForCallInterface> = []) {
|
|
1530
|
-
const excludedSet = new Set(excludedList);
|
|
1531
|
-
return ((this.authLogicsForCallInterface as AuthLogicForCallInterface[]) || [])
|
|
1532
|
-
.filter((item) => !excludedSet.has(item))
|
|
1533
|
-
.map((item) => item.name);
|
|
1534
|
-
}
|
|
1535
|
-
getAuthLogicForCallInterfaceUniqueName(name = 'authLogicForCallInterface1') {
|
|
1536
|
-
return utils.unique(name, this.getAuthLogicForCallInterfaceExistingNames(), undefined, false);
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
/**
|
|
1540
|
-
* 插入调用接口的鉴权逻辑
|
|
1541
|
-
* @internal
|
|
1542
|
-
* @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
1543
|
-
*/
|
|
1544
|
-
_insertAuthLogicForCallInterfaceAt(name: string, index: number): AuthLogicForCallInterface;
|
|
1545
|
-
|
|
1546
|
-
/**
|
|
1547
|
-
* 插入调用接口的鉴权逻辑
|
|
1548
|
-
* @internal
|
|
1549
|
-
* @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
|
|
1550
|
-
*/
|
|
1551
|
-
_insertAuthLogicForCallInterfaceAt(
|
|
1552
|
-
authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
|
|
1553
|
-
index: number,
|
|
1554
|
-
): AuthLogicForCallInterface;
|
|
1555
|
-
|
|
1556
|
-
/**
|
|
1557
|
-
* 插入调用接口的鉴权逻辑
|
|
1558
|
-
* @internal
|
|
1559
|
-
* @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
|
|
1560
|
-
*/
|
|
1561
|
-
_insertAuthLogicForCallInterfaceAt(
|
|
1562
|
-
authLogicForCallInterface: AuthLogicForCallInterface,
|
|
1563
|
-
index: number,
|
|
1564
|
-
): AuthLogicForCallInterface;
|
|
1565
|
-
|
|
1566
|
-
_insertAuthLogicForCallInterfaceAt(
|
|
1567
|
-
options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface,
|
|
1568
|
-
index: number,
|
|
1569
|
-
) {
|
|
1570
|
-
const authLogicForCallInterfaceOptions: any = {};
|
|
1571
|
-
const relationOptions = { parentNode: this, parentKey: 'authLogicsForCallInterface' };
|
|
1572
|
-
let authLogicForCallInterface: AuthLogicForCallInterface;
|
|
1573
|
-
if (!options) {
|
|
1574
|
-
throw Error('请先调用from方法创建AuthLogicForCallInterface实例')
|
|
1575
|
-
} else if (typeof options === 'string') {
|
|
1576
|
-
throw Error('请先调用from方法创建AuthLogicForCallInterface实例')
|
|
1577
|
-
// FIXME : dont change
|
|
1578
|
-
} else if (options.concept === 'AuthLogicForCallInterface') {
|
|
1579
|
-
options.ensureDelete(); // 同一实例不支持多处存在
|
|
1580
|
-
authLogicForCallInterface = options as any;
|
|
1581
|
-
Object.assign(authLogicForCallInterface, relationOptions);
|
|
1582
|
-
} else {
|
|
1583
|
-
throw Error('请先调用from方法创建AuthLogicForCallInterface实例')
|
|
1584
|
-
}
|
|
1585
|
-
this.authLogicsForCallInterface.splice(index, 0, authLogicForCallInterface);
|
|
1586
|
-
return authLogicForCallInterface;
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
/**
|
|
1590
|
-
* 插入调用接口的鉴权逻辑
|
|
1591
|
-
* @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
1592
|
-
*/
|
|
1593
|
-
insertAuthLogicForCallInterfaceAt(name: string, index: number): AuthLogicForCallInterface;
|
|
1594
|
-
|
|
1595
|
-
/**
|
|
1596
|
-
* 插入调用接口的鉴权逻辑
|
|
1597
|
-
* @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
|
|
1598
|
-
*/
|
|
1599
|
-
insertAuthLogicForCallInterfaceAt(
|
|
1600
|
-
authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
|
|
1601
|
-
index: number,
|
|
1602
|
-
): AuthLogicForCallInterface;
|
|
1603
|
-
|
|
1604
|
-
/**
|
|
1605
|
-
* 插入调用接口的鉴权逻辑
|
|
1606
|
-
* @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
|
|
1607
|
-
*/
|
|
1608
|
-
insertAuthLogicForCallInterfaceAt(
|
|
1609
|
-
authLogicForCallInterface: AuthLogicForCallInterface,
|
|
1610
|
-
index: number,
|
|
1611
|
-
): AuthLogicForCallInterface;
|
|
1612
|
-
|
|
1613
|
-
insertAuthLogicForCallInterfaceAt(
|
|
1614
|
-
options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface,
|
|
1615
|
-
index: number,
|
|
1616
|
-
) {
|
|
1617
|
-
const node = this._insertAuthLogicForCallInterfaceAt(options as any, index);
|
|
1618
|
-
node.create({
|
|
1619
|
-
index,
|
|
1620
|
-
parentNode: this,
|
|
1621
|
-
parentKey: 'authLogicsForCallInterface',
|
|
1622
|
-
});
|
|
1623
|
-
return node;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
/**
|
|
1627
|
-
* 添加调用接口的鉴权逻辑
|
|
1628
|
-
* @internal
|
|
1629
|
-
* @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
1630
|
-
*/
|
|
1631
|
-
_addAuthLogicForCallInterface(name?: string): AuthLogicForCallInterface;
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* 添加调用接口的鉴权逻辑
|
|
1635
|
-
* @internal
|
|
1636
|
-
* @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
|
|
1637
|
-
*/
|
|
1638
|
-
_addAuthLogicForCallInterface(
|
|
1639
|
-
authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
|
|
1640
|
-
): AuthLogicForCallInterface;
|
|
1641
|
-
|
|
1642
|
-
/**
|
|
1643
|
-
* 添加调用接口的鉴权逻辑
|
|
1644
|
-
* @internal
|
|
1645
|
-
* @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
|
|
1646
|
-
*/
|
|
1647
|
-
_addAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): AuthLogicForCallInterface;
|
|
1648
|
-
|
|
1649
|
-
_addAuthLogicForCallInterface(options?: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface) {
|
|
1650
|
-
const index = this.authLogicsForCallInterface.length;
|
|
1651
|
-
return this._insertAuthLogicForCallInterfaceAt(options as any, index);
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* 添加调用接口的鉴权逻辑
|
|
1656
|
-
* @internal
|
|
1657
|
-
* @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
|
|
1658
|
-
*/
|
|
1659
|
-
addAuthLogicForCallInterface(name?: string): AuthLogicForCallInterface;
|
|
1660
|
-
|
|
1661
|
-
/**
|
|
1662
|
-
* 添加调用接口的鉴权逻辑
|
|
1663
|
-
* @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
|
|
1664
|
-
*/
|
|
1665
|
-
addAuthLogicForCallInterface(
|
|
1666
|
-
authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
|
|
1667
|
-
): AuthLogicForCallInterface;
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* 添加调用接口的鉴权逻辑
|
|
1671
|
-
* @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
|
|
1672
|
-
*/
|
|
1673
|
-
addAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): AuthLogicForCallInterface;
|
|
1674
|
-
|
|
1675
|
-
addAuthLogicForCallInterface(options?: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface) {
|
|
1676
|
-
const node = this._addAuthLogicForCallInterface(options as any);
|
|
1677
|
-
const index = this.authLogicsForCallInterface.indexOf(node);
|
|
1678
|
-
node.create({
|
|
1679
|
-
index,
|
|
1680
|
-
parentNode: this,
|
|
1681
|
-
parentKey: 'authLogicsForCallInterface',
|
|
1682
|
-
});
|
|
1683
|
-
return node;
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
1525
|
getTriggerLauncherExistingNames(excludedList: Array<TriggerLauncher> = []) {
|
|
1687
1526
|
const excludedSet = new Set(excludedList);
|
|
1688
1527
|
return ((this.triggerLaunchers as TriggerLauncher[]) || [])
|
|
1689
1528
|
.filter((item) => !excludedSet.has(item))
|
|
1690
|
-
.map((item) => item
|
|
1529
|
+
.map((item) => item?.name);
|
|
1691
1530
|
}
|
|
1692
1531
|
getTriggerLauncherUniqueName(name = 'triggerLauncher1') {
|
|
1693
1532
|
return utils.unique(name, this.getTriggerLauncherExistingNames(), undefined, false);
|
|
@@ -1840,7 +1679,9 @@ export class Module extends BaseNode {
|
|
|
1840
1679
|
|
|
1841
1680
|
getConnectionExistingNames(excludedList: Array<Connection> = []) {
|
|
1842
1681
|
const excludedSet = new Set(excludedList);
|
|
1843
|
-
return ((this.connections as Connection[]) || [])
|
|
1682
|
+
return ((this.connections as Connection[]) || [])
|
|
1683
|
+
.filter((item) => !excludedSet.has(item))
|
|
1684
|
+
.map((item) => item?.name);
|
|
1844
1685
|
}
|
|
1845
1686
|
getConnectionUniqueName(name = 'connection1') {
|
|
1846
1687
|
return utils.unique(name, this.getConnectionExistingNames(), undefined, false);
|
|
@@ -1991,12 +1832,11 @@ export class Module extends BaseNode {
|
|
|
1991
1832
|
return node;
|
|
1992
1833
|
}
|
|
1993
1834
|
|
|
1994
|
-
|
|
1995
1835
|
getMetadataTypeExistingNames(excludedList: Array<MetadataType> = []) {
|
|
1996
1836
|
const excludedSet = new Set(excludedList);
|
|
1997
1837
|
return ((this.metadataTypes as MetadataType[]) || [])
|
|
1998
1838
|
.filter((item) => !excludedSet.has(item))
|
|
1999
|
-
.map((item) => item
|
|
1839
|
+
.map((item) => item?.name);
|
|
2000
1840
|
}
|
|
2001
1841
|
getMetadataTypeUniqueName(name = 'MetadataType1') {
|
|
2002
1842
|
return utils.unique(name, this.getMetadataTypeExistingNames(), undefined, true);
|
|
@@ -2146,7 +1986,7 @@ export class Module extends BaseNode {
|
|
|
2146
1986
|
});
|
|
2147
1987
|
return node;
|
|
2148
1988
|
}
|
|
2149
|
-
|
|
1989
|
+
|
|
2150
1990
|
/**
|
|
2151
1991
|
* 删除数据源
|
|
2152
1992
|
* @param name 数据源名称
|
|
@@ -2192,9 +2032,12 @@ export class Module extends BaseNode {
|
|
|
2192
2032
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2193
2033
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2194
2034
|
params.index = index;
|
|
2195
|
-
} else
|
|
2196
|
-
|
|
2197
|
-
(
|
|
2035
|
+
} else {
|
|
2036
|
+
const q = (t as any)[parentKey];
|
|
2037
|
+
if ((q.__v_raw || q) === n) {
|
|
2038
|
+
params.index = 0;
|
|
2039
|
+
(this as any)[parentKey] = undefined;
|
|
2040
|
+
}
|
|
2198
2041
|
}
|
|
2199
2042
|
}
|
|
2200
2043
|
return params;
|
|
@@ -2245,9 +2088,12 @@ export class Module extends BaseNode {
|
|
|
2245
2088
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2246
2089
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2247
2090
|
params.index = index;
|
|
2248
|
-
} else
|
|
2249
|
-
|
|
2250
|
-
(
|
|
2091
|
+
} else {
|
|
2092
|
+
const q = (t as any)[parentKey];
|
|
2093
|
+
if ((q.__v_raw || q) === n) {
|
|
2094
|
+
params.index = 0;
|
|
2095
|
+
(this as any)[parentKey] = undefined;
|
|
2096
|
+
}
|
|
2251
2097
|
}
|
|
2252
2098
|
}
|
|
2253
2099
|
return params;
|
|
@@ -2298,9 +2144,12 @@ export class Module extends BaseNode {
|
|
|
2298
2144
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2299
2145
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2300
2146
|
params.index = index;
|
|
2301
|
-
} else
|
|
2302
|
-
|
|
2303
|
-
(
|
|
2147
|
+
} else {
|
|
2148
|
+
const q = (t as any)[parentKey];
|
|
2149
|
+
if ((q.__v_raw || q) === n) {
|
|
2150
|
+
params.index = 0;
|
|
2151
|
+
(this as any)[parentKey] = undefined;
|
|
2152
|
+
}
|
|
2304
2153
|
}
|
|
2305
2154
|
}
|
|
2306
2155
|
return params;
|
|
@@ -2351,9 +2200,12 @@ export class Module extends BaseNode {
|
|
|
2351
2200
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2352
2201
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2353
2202
|
params.index = index;
|
|
2354
|
-
} else
|
|
2355
|
-
|
|
2356
|
-
(
|
|
2203
|
+
} else {
|
|
2204
|
+
const q = (t as any)[parentKey];
|
|
2205
|
+
if ((q.__v_raw || q) === n) {
|
|
2206
|
+
params.index = 0;
|
|
2207
|
+
(this as any)[parentKey] = undefined;
|
|
2208
|
+
}
|
|
2357
2209
|
}
|
|
2358
2210
|
}
|
|
2359
2211
|
return params;
|
|
@@ -2404,9 +2256,12 @@ export class Module extends BaseNode {
|
|
|
2404
2256
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2405
2257
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2406
2258
|
params.index = index;
|
|
2407
|
-
} else
|
|
2408
|
-
|
|
2409
|
-
(
|
|
2259
|
+
} else {
|
|
2260
|
+
const q = (t as any)[parentKey];
|
|
2261
|
+
if ((q.__v_raw || q) === n) {
|
|
2262
|
+
params.index = 0;
|
|
2263
|
+
(this as any)[parentKey] = undefined;
|
|
2264
|
+
}
|
|
2410
2265
|
}
|
|
2411
2266
|
}
|
|
2412
2267
|
return params;
|
|
@@ -2457,9 +2312,12 @@ export class Module extends BaseNode {
|
|
|
2457
2312
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2458
2313
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2459
2314
|
params.index = index;
|
|
2460
|
-
} else
|
|
2461
|
-
|
|
2462
|
-
(
|
|
2315
|
+
} else {
|
|
2316
|
+
const q = (t as any)[parentKey];
|
|
2317
|
+
if ((q.__v_raw || q) === n) {
|
|
2318
|
+
params.index = 0;
|
|
2319
|
+
(this as any)[parentKey] = undefined;
|
|
2320
|
+
}
|
|
2463
2321
|
}
|
|
2464
2322
|
}
|
|
2465
2323
|
return params;
|
|
@@ -2510,9 +2368,12 @@ export class Module extends BaseNode {
|
|
|
2510
2368
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2511
2369
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2512
2370
|
params.index = index;
|
|
2513
|
-
} else
|
|
2514
|
-
|
|
2515
|
-
(
|
|
2371
|
+
} else {
|
|
2372
|
+
const q = (t as any)[parentKey];
|
|
2373
|
+
if ((q.__v_raw || q) === n) {
|
|
2374
|
+
params.index = 0;
|
|
2375
|
+
(this as any)[parentKey] = undefined;
|
|
2376
|
+
}
|
|
2516
2377
|
}
|
|
2517
2378
|
}
|
|
2518
2379
|
return params;
|
|
@@ -2563,9 +2424,12 @@ export class Module extends BaseNode {
|
|
|
2563
2424
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2564
2425
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2565
2426
|
params.index = index;
|
|
2566
|
-
} else
|
|
2567
|
-
|
|
2568
|
-
(
|
|
2427
|
+
} else {
|
|
2428
|
+
const q = (t as any)[parentKey];
|
|
2429
|
+
if ((q.__v_raw || q) === n) {
|
|
2430
|
+
params.index = 0;
|
|
2431
|
+
(this as any)[parentKey] = undefined;
|
|
2432
|
+
}
|
|
2569
2433
|
}
|
|
2570
2434
|
}
|
|
2571
2435
|
return params;
|
|
@@ -2616,9 +2480,12 @@ export class Module extends BaseNode {
|
|
|
2616
2480
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2617
2481
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2618
2482
|
params.index = index;
|
|
2619
|
-
} else
|
|
2620
|
-
|
|
2621
|
-
(
|
|
2483
|
+
} else {
|
|
2484
|
+
const q = (t as any)[parentKey];
|
|
2485
|
+
if ((q.__v_raw || q) === n) {
|
|
2486
|
+
params.index = 0;
|
|
2487
|
+
(this as any)[parentKey] = undefined;
|
|
2488
|
+
}
|
|
2622
2489
|
}
|
|
2623
2490
|
}
|
|
2624
2491
|
return params;
|
|
@@ -2669,59 +2536,12 @@ export class Module extends BaseNode {
|
|
|
2669
2536
|
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2670
2537
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2671
2538
|
params.index = index;
|
|
2672
|
-
} else
|
|
2673
|
-
|
|
2674
|
-
(
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
}
|
|
2679
|
-
|
|
2680
|
-
/**
|
|
2681
|
-
* 删除调用接口的鉴权逻辑
|
|
2682
|
-
* @param name 调用接口的鉴权逻辑名称
|
|
2683
|
-
*/
|
|
2684
|
-
removeAuthLogicForCallInterface(name: string): void;
|
|
2685
|
-
|
|
2686
|
-
/**
|
|
2687
|
-
* 删除调用接口的鉴权逻辑
|
|
2688
|
-
* @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
|
|
2689
|
-
*/
|
|
2690
|
-
removeAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): void;
|
|
2691
|
-
|
|
2692
|
-
removeAuthLogicForCallInterface(options: string | AuthLogicForCallInterface) {
|
|
2693
|
-
let authLogicForCallInterface: AuthLogicForCallInterface;
|
|
2694
|
-
if (typeof options === 'string') {
|
|
2695
|
-
authLogicForCallInterface = (this.authLogicsForCallInterface as AuthLogicForCallInterface[]).find(
|
|
2696
|
-
(item) => item.name === options,
|
|
2697
|
-
);
|
|
2698
|
-
if (!authLogicForCallInterface) {
|
|
2699
|
-
throw new Error('找不到调用接口的鉴权逻辑 ' + options);
|
|
2700
|
-
}
|
|
2701
|
-
} else {
|
|
2702
|
-
authLogicForCallInterface = options;
|
|
2703
|
-
}
|
|
2704
|
-
return authLogicForCallInterface.delete();
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
__removeAuthLogic(authLogic: AuthLogic) {
|
|
2708
|
-
const parentKey = authLogic.parentKey;
|
|
2709
|
-
const params: Params = {
|
|
2710
|
-
parentNode: this,
|
|
2711
|
-
parentKey,
|
|
2712
|
-
index: -1,
|
|
2713
|
-
object: null,
|
|
2714
|
-
oldObject: authLogic,
|
|
2715
|
-
};
|
|
2716
|
-
if (parentKey) {
|
|
2717
|
-
params.parentKey = parentKey;
|
|
2718
|
-
if (Array.isArray((this as any)[parentKey])) {
|
|
2719
|
-
const index = (this as any)[parentKey].indexOf(authLogic);
|
|
2720
|
-
~index && (this as any)[parentKey].splice(index, 1);
|
|
2721
|
-
params.index = index;
|
|
2722
|
-
} else if ((this as any)[parentKey] === authLogic) {
|
|
2723
|
-
params.index = 0;
|
|
2724
|
-
(this as any)[parentKey] = undefined;
|
|
2539
|
+
} else {
|
|
2540
|
+
const q = (t as any)[parentKey];
|
|
2541
|
+
if ((q.__v_raw || q) === n) {
|
|
2542
|
+
params.index = 0;
|
|
2543
|
+
(this as any)[parentKey] = undefined;
|
|
2544
|
+
}
|
|
2725
2545
|
}
|
|
2726
2546
|
}
|
|
2727
2547
|
return params;
|
|
@@ -2763,13 +2583,21 @@ export class Module extends BaseNode {
|
|
|
2763
2583
|
};
|
|
2764
2584
|
if (parentKey) {
|
|
2765
2585
|
params.parentKey = parentKey;
|
|
2766
|
-
|
|
2767
|
-
|
|
2586
|
+
// @ts-ignore
|
|
2587
|
+
const t = this.__v_raw || this;
|
|
2588
|
+
// @ts-ignore
|
|
2589
|
+
const n = triggerLauncher.__v_raw || triggerLauncher;
|
|
2590
|
+
if (Array.isArray((t as any)[parentKey])) {
|
|
2591
|
+
// @ts-ignore
|
|
2592
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2768
2593
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2769
2594
|
params.index = index;
|
|
2770
|
-
} else
|
|
2771
|
-
|
|
2772
|
-
(
|
|
2595
|
+
} else {
|
|
2596
|
+
const q = (t as any)[parentKey];
|
|
2597
|
+
if ((q.__v_raw || q) === n) {
|
|
2598
|
+
params.index = 0;
|
|
2599
|
+
(this as any)[parentKey] = undefined;
|
|
2600
|
+
}
|
|
2773
2601
|
}
|
|
2774
2602
|
}
|
|
2775
2603
|
return params;
|
|
@@ -2811,70 +2639,81 @@ export class Module extends BaseNode {
|
|
|
2811
2639
|
};
|
|
2812
2640
|
if (parentKey) {
|
|
2813
2641
|
params.parentKey = parentKey;
|
|
2814
|
-
|
|
2815
|
-
|
|
2642
|
+
// @ts-ignore
|
|
2643
|
+
const t = this.__v_raw || this;
|
|
2644
|
+
// @ts-ignore
|
|
2645
|
+
const n = connection.__v_raw || connection;
|
|
2646
|
+
if (Array.isArray((t as any)[parentKey])) {
|
|
2647
|
+
// @ts-ignore
|
|
2648
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2816
2649
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2817
2650
|
params.index = index;
|
|
2818
|
-
} else
|
|
2819
|
-
|
|
2820
|
-
(
|
|
2651
|
+
} else {
|
|
2652
|
+
const q = (t as any)[parentKey];
|
|
2653
|
+
if ((q.__v_raw || q) === n) {
|
|
2654
|
+
params.index = 0;
|
|
2655
|
+
(this as any)[parentKey] = undefined;
|
|
2656
|
+
}
|
|
2821
2657
|
}
|
|
2822
2658
|
}
|
|
2823
2659
|
return params;
|
|
2824
2660
|
}
|
|
2825
2661
|
|
|
2826
|
-
|
|
2827
|
-
/**
|
|
2662
|
+
/**
|
|
2828
2663
|
* 删除元数据类型
|
|
2829
2664
|
* @param name 元数据类型名称
|
|
2830
2665
|
*/
|
|
2831
|
-
removeMetadataType(name: string): void;
|
|
2666
|
+
removeMetadataType(name: string): void;
|
|
2832
2667
|
|
|
2833
|
-
/**
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
removeMetadataType(metadataType: MetadataType): void;
|
|
2838
|
-
|
|
2839
|
-
removeMetadataType(options: string | MetadataType) {
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2668
|
+
/**
|
|
2669
|
+
* 删除元数据类型
|
|
2670
|
+
* @param metadataType 已有的元数据类型实例
|
|
2671
|
+
*/
|
|
2672
|
+
removeMetadataType(metadataType: MetadataType): void;
|
|
2673
|
+
|
|
2674
|
+
removeMetadataType(options: string | MetadataType) {
|
|
2675
|
+
let metadataType: MetadataType;
|
|
2676
|
+
if (typeof options === 'string') {
|
|
2677
|
+
metadataType = (this.metadataTypes as MetadataType[]).find((item) => item.name === options);
|
|
2678
|
+
if (!metadataType) {
|
|
2679
|
+
throw new Error('找不到元数据类型 ' + options);
|
|
2680
|
+
}
|
|
2681
|
+
} else {
|
|
2682
|
+
metadataType = options;
|
|
2845
2683
|
}
|
|
2846
|
-
|
|
2847
|
-
metadataType = options;
|
|
2684
|
+
return metadataType.delete();
|
|
2848
2685
|
}
|
|
2849
|
-
return metadataType.delete();
|
|
2850
|
-
}
|
|
2851
2686
|
|
|
2852
|
-
__removeMetadataType(metadataType: MetadataType) {
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2687
|
+
__removeMetadataType(metadataType: MetadataType) {
|
|
2688
|
+
const parentKey = metadataType.parentKey;
|
|
2689
|
+
const params: Params = {
|
|
2690
|
+
parentNode: this,
|
|
2691
|
+
parentKey,
|
|
2692
|
+
index: -1,
|
|
2693
|
+
object: null,
|
|
2694
|
+
oldObject: metadataType,
|
|
2695
|
+
};
|
|
2696
|
+
if (parentKey) {
|
|
2697
|
+
params.parentKey = parentKey;
|
|
2698
|
+
// @ts-ignore
|
|
2699
|
+
const t = this.__v_raw || this;
|
|
2700
|
+
// @ts-ignore
|
|
2701
|
+
const n = metadataType.__v_raw || metadataType;
|
|
2702
|
+
if (Array.isArray((t as any)[parentKey])) {
|
|
2703
|
+
// @ts-ignore
|
|
2704
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2705
|
+
~index && (this as any)[parentKey].splice(index, 1);
|
|
2706
|
+
params.index = index;
|
|
2707
|
+
} else {
|
|
2708
|
+
const q = (t as any)[parentKey];
|
|
2709
|
+
if ((q.__v_raw || q) === n) {
|
|
2710
|
+
params.index = 0;
|
|
2711
|
+
(this as any)[parentKey] = undefined;
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2874
2714
|
}
|
|
2715
|
+
return params;
|
|
2875
2716
|
}
|
|
2876
|
-
return params;
|
|
2877
|
-
}
|
|
2878
2717
|
|
|
2879
2718
|
//================================================================================
|
|
2880
2719
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
@@ -3022,7 +2861,7 @@ __removeMetadataType(metadataType: MetadataType) {
|
|
|
3022
2861
|
getInterfaceStructureMap(): Map<Structure, Set<Interface>> {
|
|
3023
2862
|
const structureMap: Map<Structure, Set<Interface>> = new Map();
|
|
3024
2863
|
this.interfaces.forEach((itf) => {
|
|
3025
|
-
const stashItf = itf
|
|
2864
|
+
const stashItf = itf as Interface;
|
|
3026
2865
|
const structures = stashItf.getRefStructures(this.structures);
|
|
3027
2866
|
structures.forEach((s) => {
|
|
3028
2867
|
if (structureMap.has(s)) {
|
|
@@ -3199,161 +3038,6 @@ __removeMetadataType(metadataType: MetadataType) {
|
|
|
3199
3038
|
return node;
|
|
3200
3039
|
}
|
|
3201
3040
|
|
|
3202
|
-
getInterfaceFromExampleExistingNames(excludedList: Array<InterfaceFromExample> = []) {
|
|
3203
|
-
const excludedSet = new Set(excludedList);
|
|
3204
|
-
return ((this.interfaces as InterfaceFromExample[]) || [])
|
|
3205
|
-
.filter((item) => !excludedSet.has(item))
|
|
3206
|
-
.map((item) => item.name);
|
|
3207
|
-
}
|
|
3208
|
-
getInterfaceFromExampleUniqueName(name = 'Interface1') {
|
|
3209
|
-
return utils.unique(name, this.getInterfaceFromExampleExistingNames(), undefined, false);
|
|
3210
|
-
}
|
|
3211
|
-
|
|
3212
|
-
/**
|
|
3213
|
-
* 插入由JSON生成接口
|
|
3214
|
-
* @internal
|
|
3215
|
-
* @param name 由JSON生成接口名称,如果不填会自动生成一个唯一名称
|
|
3216
|
-
*/
|
|
3217
|
-
_insertInterfaceFromExampleAt(name: string, index: number): InterfaceFromExample;
|
|
3218
|
-
|
|
3219
|
-
/**
|
|
3220
|
-
* 插入由JSON生成接口
|
|
3221
|
-
* @internal
|
|
3222
|
-
* @param itfaceOptions 由JSON生成接口参数
|
|
3223
|
-
*/
|
|
3224
|
-
_insertInterfaceFromExampleAt(itfaceOptions: Partial<InterfaceFromExample>, index: number): InterfaceFromExample;
|
|
3225
|
-
|
|
3226
|
-
/**
|
|
3227
|
-
* 插入由JSON生成接口
|
|
3228
|
-
* @internal
|
|
3229
|
-
* @param itface 已有的由JSON生成接口实例
|
|
3230
|
-
*/
|
|
3231
|
-
_insertInterfaceFromExampleAt(itface: InterfaceFromExample, index: number): InterfaceFromExample;
|
|
3232
|
-
|
|
3233
|
-
_insertInterfaceFromExampleAt(options: string | Partial<InterfaceFromExample> | InterfaceFromExample, index: number) {
|
|
3234
|
-
const itfaceOptions: any = {};
|
|
3235
|
-
const relationOptions = { parentNode: this, parentKey: 'interfaces' };
|
|
3236
|
-
let itface: InterfaceFromExample;
|
|
3237
|
-
if (!options) {
|
|
3238
|
-
itface = InterfaceFromExample.from(
|
|
3239
|
-
{
|
|
3240
|
-
...itfaceOptions,
|
|
3241
|
-
name: this.getInterfaceFromExampleUniqueName(),
|
|
3242
|
-
},
|
|
3243
|
-
this,
|
|
3244
|
-
'interfaces',
|
|
3245
|
-
);
|
|
3246
|
-
} else if (typeof options === 'string') {
|
|
3247
|
-
itface = InterfaceFromExample.from(
|
|
3248
|
-
{
|
|
3249
|
-
...itfaceOptions,
|
|
3250
|
-
name: options,
|
|
3251
|
-
},
|
|
3252
|
-
this,
|
|
3253
|
-
'interfaces',
|
|
3254
|
-
);
|
|
3255
|
-
} else if (options instanceof InterfaceFromExample) {
|
|
3256
|
-
options.ensureDelete(); // 同一实例不支持多处存在
|
|
3257
|
-
itface = options;
|
|
3258
|
-
Object.assign(itface, relationOptions);
|
|
3259
|
-
} else {
|
|
3260
|
-
itface = InterfaceFromExample.from(
|
|
3261
|
-
{
|
|
3262
|
-
...itfaceOptions,
|
|
3263
|
-
...options,
|
|
3264
|
-
},
|
|
3265
|
-
this,
|
|
3266
|
-
'interfaces',
|
|
3267
|
-
);
|
|
3268
|
-
}
|
|
3269
|
-
this.interfaces.splice(index, 0, itface);
|
|
3270
|
-
return itface;
|
|
3271
|
-
}
|
|
3272
|
-
|
|
3273
|
-
/**
|
|
3274
|
-
* 插入由JSON生成接口
|
|
3275
|
-
* @param name 由JSON生成接口名称,如果不填会自动生成一个唯一名称
|
|
3276
|
-
*/
|
|
3277
|
-
insertInterfaceFromExampleAt(name: string, index: number): InterfaceFromExample;
|
|
3278
|
-
|
|
3279
|
-
/**
|
|
3280
|
-
* 插入由JSON生成接口
|
|
3281
|
-
* @param itfaceOptions 由JSON生成接口参数
|
|
3282
|
-
*/
|
|
3283
|
-
insertInterfaceFromExampleAt(itfaceOptions: Partial<InterfaceFromExample>, index: number): InterfaceFromExample;
|
|
3284
|
-
|
|
3285
|
-
/**
|
|
3286
|
-
* 插入由JSON生成接口
|
|
3287
|
-
* @param itface 已有的由JSON生成接口实例
|
|
3288
|
-
*/
|
|
3289
|
-
insertInterfaceFromExampleAt(itface: InterfaceFromExample, index: number): InterfaceFromExample;
|
|
3290
|
-
|
|
3291
|
-
insertInterfaceFromExampleAt(options: string | Partial<InterfaceFromExample> | InterfaceFromExample, index: number) {
|
|
3292
|
-
const node = this._insertInterfaceFromExampleAt(options as any, index);
|
|
3293
|
-
node.create({
|
|
3294
|
-
index,
|
|
3295
|
-
parentNode: this,
|
|
3296
|
-
parentKey: 'interfaces',
|
|
3297
|
-
});
|
|
3298
|
-
return node;
|
|
3299
|
-
}
|
|
3300
|
-
|
|
3301
|
-
/**
|
|
3302
|
-
* 添加由JSON生成接口
|
|
3303
|
-
* @internal
|
|
3304
|
-
* @param name 由JSON生成接口名称,如果不填会自动生成一个唯一名称
|
|
3305
|
-
*/
|
|
3306
|
-
_addInterfaceFromExample(name?: string): InterfaceFromExample;
|
|
3307
|
-
|
|
3308
|
-
/**
|
|
3309
|
-
* 添加由JSON生成接口
|
|
3310
|
-
* @internal
|
|
3311
|
-
* @param itfaceOptions 由JSON生成接口参数
|
|
3312
|
-
*/
|
|
3313
|
-
_addInterfaceFromExample(itfaceOptions: Partial<InterfaceFromExample>): InterfaceFromExample;
|
|
3314
|
-
|
|
3315
|
-
/**
|
|
3316
|
-
* 添加由JSON生成接口
|
|
3317
|
-
* @internal
|
|
3318
|
-
* @param itface 已有的由JSON生成接口实例
|
|
3319
|
-
*/
|
|
3320
|
-
_addInterfaceFromExample(itface: InterfaceFromExample): InterfaceFromExample;
|
|
3321
|
-
|
|
3322
|
-
_addInterfaceFromExample(options?: string | Partial<InterfaceFromExample> | InterfaceFromExample) {
|
|
3323
|
-
const index = 0;
|
|
3324
|
-
return this._insertInterfaceFromExampleAt(options as any, index);
|
|
3325
|
-
}
|
|
3326
|
-
|
|
3327
|
-
/**
|
|
3328
|
-
* 添加由JSON生成接口
|
|
3329
|
-
* @internal
|
|
3330
|
-
* @param name 由JSON生成接口名称,如果不填会自动生成一个唯一名称
|
|
3331
|
-
*/
|
|
3332
|
-
addInterfaceFromExample(name?: string): InterfaceFromExample;
|
|
3333
|
-
|
|
3334
|
-
/**
|
|
3335
|
-
* 添加由JSON生成接口
|
|
3336
|
-
* @param itfaceOptions 由JSON生成接口参数
|
|
3337
|
-
*/
|
|
3338
|
-
addInterfaceFromExample(itfaceOptions: Partial<InterfaceFromExample>): InterfaceFromExample;
|
|
3339
|
-
|
|
3340
|
-
/**
|
|
3341
|
-
* 添加由JSON生成接口
|
|
3342
|
-
* @param itface 已有的由JSON生成接口实例
|
|
3343
|
-
*/
|
|
3344
|
-
addInterfaceFromExample(itface: InterfaceFromExample): InterfaceFromExample;
|
|
3345
|
-
|
|
3346
|
-
addInterfaceFromExample(options?: string | Partial<InterfaceFromExample> | InterfaceFromExample) {
|
|
3347
|
-
const node = this._addInterfaceFromExample(options as any);
|
|
3348
|
-
const index = this.interfaces.indexOf(node);
|
|
3349
|
-
node.create({
|
|
3350
|
-
index,
|
|
3351
|
-
parentNode: this,
|
|
3352
|
-
parentKey: 'interfaces',
|
|
3353
|
-
});
|
|
3354
|
-
return node;
|
|
3355
|
-
}
|
|
3356
|
-
|
|
3357
3041
|
/**
|
|
3358
3042
|
* 删除接口
|
|
3359
3043
|
* @param name 接口名称
|
|
@@ -3378,53 +3062,6 @@ __removeMetadataType(metadataType: MetadataType) {
|
|
|
3378
3062
|
}
|
|
3379
3063
|
return itface.delete();
|
|
3380
3064
|
}
|
|
3381
|
-
/**
|
|
3382
|
-
* 删除由JSON生成接口
|
|
3383
|
-
* @param name 由JSON生成接口名称
|
|
3384
|
-
*/
|
|
3385
|
-
removeInterfaceFromExample(name: string): void;
|
|
3386
|
-
|
|
3387
|
-
/**
|
|
3388
|
-
* 删除由JSON生成接口
|
|
3389
|
-
* @param itface 已有的由JSON生成接口实例
|
|
3390
|
-
*/
|
|
3391
|
-
removeInterfaceFromExample(itface: InterfaceFromExample): void;
|
|
3392
|
-
|
|
3393
|
-
removeInterfaceFromExample(options: string | InterfaceFromExample) {
|
|
3394
|
-
let itface: InterfaceFromExample;
|
|
3395
|
-
if (typeof options === 'string') {
|
|
3396
|
-
itface = (this.interfaces as InterfaceFromExample[]).find((item) => item.name === options);
|
|
3397
|
-
if (!itface) {
|
|
3398
|
-
throw new Error('找不到由JSON生成接口 ' + options);
|
|
3399
|
-
}
|
|
3400
|
-
} else {
|
|
3401
|
-
itface = options;
|
|
3402
|
-
}
|
|
3403
|
-
return itface.delete();
|
|
3404
|
-
}
|
|
3405
|
-
|
|
3406
|
-
__removeInterfaceFromExample(itface: InterfaceFromExample) {
|
|
3407
|
-
const parentKey = itface.parentKey;
|
|
3408
|
-
const params: Params = {
|
|
3409
|
-
parentNode: this,
|
|
3410
|
-
parentKey,
|
|
3411
|
-
index: -1,
|
|
3412
|
-
object: null,
|
|
3413
|
-
oldObject: itface,
|
|
3414
|
-
};
|
|
3415
|
-
if (parentKey) {
|
|
3416
|
-
params.parentKey = parentKey;
|
|
3417
|
-
if (Array.isArray((this as any)[parentKey])) {
|
|
3418
|
-
const index = (this as any)[parentKey].indexOf(itface);
|
|
3419
|
-
~index && (this as any)[parentKey].splice(index, 1);
|
|
3420
|
-
params.index = index;
|
|
3421
|
-
} else if ((this as any)[parentKey] === itface) {
|
|
3422
|
-
params.index = 0;
|
|
3423
|
-
(this as any)[parentKey] = undefined;
|
|
3424
|
-
}
|
|
3425
|
-
}
|
|
3426
|
-
return params;
|
|
3427
|
-
}
|
|
3428
3065
|
|
|
3429
3066
|
//================================================================================
|
|
3430
3067
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|