@lcap/nasl 3.6.4-beta.3 → 3.6.4-beta.4
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/dist/README.md +97 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +397 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +91 -0
- package/dist/src/automate/engine/index.d.ts +4 -0
- package/dist/src/automate/engine/operators.d.ts +26 -0
- package/dist/src/automate/engine/uniqueName.d.ts +12 -0
- package/dist/src/automate/engine/utils.d.ts +25 -0
- package/dist/src/automate/engine/viewCache.d.ts +19 -0
- package/dist/src/automate/template/myProcess.d.ts +10 -0
- package/dist/src/automate/upgrader/2.12.d.ts +7 -0
- package/dist/src/automate/upgrader/2.14-components.d.ts +1115 -0
- package/dist/src/automate/upgrader/2.14.d.ts +10 -0
- package/dist/src/automate/upgrader/2.14.old.d.ts +1 -0
- package/dist/src/automate/upgrader/2.16.d.ts +10 -0
- package/dist/src/automate/upgrader/2.17.d.ts +21 -0
- package/dist/src/automate/upgrader/2.18.d.ts +10 -0
- package/dist/src/automate/upgrader/2.20.d.ts +17 -0
- package/dist/src/bak/translator.d.ts +1 -0
- package/dist/src/breakpoint/generator/AfterStartNode.d.ts +7 -0
- package/dist/src/breakpoint/generator/BeforeEndNode.d.ts +7 -0
- package/dist/src/breakpoint/generator/BreakpointNode.d.ts +20 -0
- package/dist/src/breakpoint/generator/CallbackNode.d.ts +4 -0
- package/dist/src/breakpoint/generator/FragmentNode.d.ts +4 -0
- package/dist/src/breakpoint/generator/index.d.ts +4 -0
- package/dist/src/breakpoint/index.d.ts +3 -0
- package/dist/src/breakpoint/shared/constants.d.ts +37 -0
- package/dist/src/breakpoint/shared/index.d.ts +3 -0
- package/dist/src/breakpoint/shared/operations.d.ts +10 -0
- package/dist/src/breakpoint/shared/socket.d.ts +48 -0
- package/dist/src/breakpoint/shared/utils.d.ts +27 -0
- package/dist/src/breakpoint/store/core.d.ts +80 -0
- package/dist/src/breakpoint/store/dock.d.ts +1 -0
- package/dist/src/breakpoint/store/index.d.ts +2 -0
- package/dist/src/common/BaseNode.d.ts +384 -0
- package/dist/src/common/Command.d.ts +21 -0
- package/dist/src/common/ComponentAPI.d.ts +112 -0
- package/dist/src/common/EventEmitter.d.ts +61 -0
- package/dist/src/common/Messager.d.ts +91 -0
- package/dist/src/common/asyncFuncMap.d.ts +2 -0
- package/dist/src/common/index.d.ts +4 -0
- package/dist/src/common/utils.d.ts +2 -0
- package/dist/src/concepts/Abort__.d.ts +31 -0
- package/dist/src/concepts/AbstractInterface__.d.ts +25 -0
- package/dist/src/concepts/Anchor__.d.ts +42 -0
- package/dist/src/concepts/AnonymousFunction__.d.ts +144 -0
- package/dist/src/concepts/App__.d.ts +1711 -0
- package/dist/src/concepts/Argument__.d.ts +64 -0
- package/dist/src/concepts/Assignee__.d.ts +294 -0
- package/dist/src/concepts/AssignmentLine__.d.ts +43 -0
- package/dist/src/concepts/Assignment__.d.ts +57 -0
- package/dist/src/concepts/Attribute__.d.ts +75 -0
- package/dist/src/concepts/AuthInterface__.d.ts +38 -0
- package/dist/src/concepts/AuthLogicForCallInterface__.d.ts +145 -0
- package/dist/src/concepts/AuthLogic__.d.ts +69 -0
- package/dist/src/concepts/BackendVariable__.d.ts +118 -0
- package/dist/src/concepts/Backend__.d.ts +127 -0
- package/dist/src/concepts/BaseSetter__.d.ts +25 -0
- package/dist/src/concepts/BatchAssignment__.d.ts +244 -0
- package/dist/src/concepts/BinaryExpression__.d.ts +61 -0
- package/dist/src/concepts/BindAttribute__.d.ts +284 -0
- package/dist/src/concepts/BindDirective__.d.ts +156 -0
- package/dist/src/concepts/BindEvent__.d.ts +246 -0
- package/dist/src/concepts/BindStyle__.d.ts +127 -0
- package/dist/src/concepts/Block__.d.ts +88 -0
- package/dist/src/concepts/BooleanLiteral__.d.ts +44 -0
- package/dist/src/concepts/BusinessComponent__.d.ts +640 -0
- package/dist/src/concepts/BusinessLogic__.d.ts +44 -0
- package/dist/src/concepts/CallAuthInterface__.d.ts +132 -0
- package/dist/src/concepts/CallConnector__.d.ts +55 -0
- package/dist/src/concepts/CallEvent__.d.ts +100 -0
- package/dist/src/concepts/CallFunction__.d.ts +171 -0
- package/dist/src/concepts/CallInterface__.d.ts +143 -0
- package/dist/src/concepts/CallLogic__.d.ts +224 -0
- package/dist/src/concepts/CallQueryComponent__.d.ts +383 -0
- package/dist/src/concepts/CapsulesSetter__.d.ts +109 -0
- package/dist/src/concepts/Comment__.d.ts +41 -0
- package/dist/src/concepts/CompletionProperty__.d.ts +87 -0
- package/dist/src/concepts/ConfigGroup__.d.ts +121 -0
- package/dist/src/concepts/ConfigPropertyValue__.d.ts +42 -0
- package/dist/src/concepts/ConfigProperty__.d.ts +147 -0
- package/dist/src/concepts/Configuration__.d.ts +120 -0
- package/dist/src/concepts/Connection__.d.ts +159 -0
- package/dist/src/concepts/ConnectorLogic__.d.ts +33 -0
- package/dist/src/concepts/ConnectorTriggerLauncher__.d.ts +44 -0
- package/dist/src/concepts/ConnectorTrigger__.d.ts +76 -0
- package/dist/src/concepts/Connector__.d.ts +532 -0
- package/dist/src/concepts/Constant__.d.ts +94 -0
- package/dist/src/concepts/CountersignPolicy__.d.ts +29 -0
- package/dist/src/concepts/DataSource__.d.ts +163 -0
- package/dist/src/concepts/DatabaseTypeAnnotation__.d.ts +35 -0
- package/dist/src/concepts/DefaultValue__.d.ts +94 -0
- package/dist/src/concepts/Destination__.d.ts +150 -0
- package/dist/src/concepts/End__.d.ts +30 -0
- package/dist/src/concepts/EntityIndex__.d.ts +93 -0
- package/dist/src/concepts/EntityProperty__.d.ts +255 -0
- package/dist/src/concepts/Entity__.d.ts +332 -0
- package/dist/src/concepts/EnumItem__.d.ts +83 -0
- package/dist/src/concepts/EnumSelectSetter__.d.ts +109 -0
- package/dist/src/concepts/Enum__.d.ts +133 -0
- package/dist/src/concepts/EventDeclaration__.d.ts +41 -0
- package/dist/src/concepts/Event__.d.ts +149 -0
- package/dist/src/concepts/ExternalDestination__.d.ts +63 -0
- package/dist/src/concepts/ForEachStatement__.d.ts +126 -0
- package/dist/src/concepts/FrontendLibrary__.d.ts +208 -0
- package/dist/src/concepts/FrontendType__.d.ts +304 -0
- package/dist/src/concepts/FrontendVariable__.d.ts +41 -0
- package/dist/src/concepts/Frontend__.d.ts +389 -0
- package/dist/src/concepts/Function__.d.ts +399 -0
- package/dist/src/concepts/I18nInfo__.d.ts +47 -0
- package/dist/src/concepts/IconSetter__.d.ts +29 -0
- package/dist/src/concepts/Identifier__.d.ts +66 -0
- package/dist/src/concepts/IfStatement__.d.ts +155 -0
- package/dist/src/concepts/ImageSetter__.d.ts +25 -0
- package/dist/src/concepts/ImportedInterface__.d.ts +29 -0
- package/dist/src/concepts/InputSetter__.d.ts +29 -0
- package/dist/src/concepts/Integration__.d.ts +127 -0
- package/dist/src/concepts/InterfaceParam__.d.ts +119 -0
- package/dist/src/concepts/InterfaceTriggerEvent__.d.ts +34 -0
- package/dist/src/concepts/Interface__.d.ts +323 -0
- package/dist/src/concepts/JSBlock__.d.ts +38 -0
- package/dist/src/concepts/JavaLogic__.d.ts +50 -0
- package/dist/src/concepts/LogicDeclaration__.d.ts +289 -0
- package/dist/src/concepts/LogicItem__.d.ts +171 -0
- package/dist/src/concepts/Logic__.d.ts +632 -0
- package/dist/src/concepts/MatchCase__.d.ts +264 -0
- package/dist/src/concepts/Match__.d.ts +122 -0
- package/dist/src/concepts/MemberExpression__.d.ts +64 -0
- package/dist/src/concepts/MetadataType__.d.ts +220 -0
- package/dist/src/concepts/MicroApp__.d.ts +53 -0
- package/dist/src/concepts/Module__.d.ts +1142 -0
- package/dist/src/concepts/MsgTriggerEvent__.d.ts +138 -0
- package/dist/src/concepts/MsgTriggerLauncher__.d.ts +119 -0
- package/dist/src/concepts/MultiApprovalPolicy__.d.ts +25 -0
- package/dist/src/concepts/Namespace__.d.ts +1060 -0
- package/dist/src/concepts/NewComposite__.d.ts +346 -0
- package/dist/src/concepts/NewList__.d.ts +135 -0
- package/dist/src/concepts/NewMap__.d.ts +226 -0
- package/dist/src/concepts/New__.d.ts +30 -0
- package/dist/src/concepts/NullLiteral__.d.ts +36 -0
- package/dist/src/concepts/NumberInputSetter__.d.ts +45 -0
- package/dist/src/concepts/NumericLiteral__.d.ts +53 -0
- package/dist/src/concepts/OqlQueryComponent__.d.ts +67 -0
- package/dist/src/concepts/OverriddenLogic__.d.ts +615 -0
- package/dist/src/concepts/Paginate__.d.ts +59 -0
- package/dist/src/concepts/ParamWithGroup__.d.ts +44 -0
- package/dist/src/concepts/Param__.d.ts +140 -0
- package/dist/src/concepts/Point__.d.ts +33 -0
- package/dist/src/concepts/ProcessComponent__.d.ts +214 -0
- package/dist/src/concepts/ProcessElement__.d.ts +620 -0
- package/dist/src/concepts/ProcessOutcome__.d.ts +35 -0
- package/dist/src/concepts/ProcessOutcomes__.d.ts +35 -0
- package/dist/src/concepts/Process__.d.ts +605 -0
- package/dist/src/concepts/PropDeclaration__.d.ts +99 -0
- package/dist/src/concepts/PropertySelectSetter__.d.ts +25 -0
- package/dist/src/concepts/QueryAggregateExpression__.d.ts +50 -0
- package/dist/src/concepts/QueryFieldExpression__.d.ts +66 -0
- package/dist/src/concepts/QueryFromExpression__.d.ts +107 -0
- package/dist/src/concepts/QueryGroupByExpression__.d.ts +46 -0
- package/dist/src/concepts/QueryJoinExpression__.d.ts +194 -0
- package/dist/src/concepts/QueryLimitExpression__.d.ts +46 -0
- package/dist/src/concepts/QueryOrderByExpression__.d.ts +57 -0
- package/dist/src/concepts/QuerySelectExpression__.d.ts +213 -0
- package/dist/src/concepts/Rect__.d.ts +41 -0
- package/dist/src/concepts/Return__.d.ts +120 -0
- package/dist/src/concepts/Role__.d.ts +58 -0
- package/dist/src/concepts/SelectMembers__.d.ts +134 -0
- package/dist/src/concepts/SequentialPolicy__.d.ts +25 -0
- package/dist/src/concepts/SetterOption__.d.ts +49 -0
- package/dist/src/concepts/SlotDeclaration__.d.ts +213 -0
- package/dist/src/concepts/Slot__.d.ts +53 -0
- package/dist/src/concepts/SqlQueryComponent__.d.ts +63 -0
- package/dist/src/concepts/Start__.d.ts +30 -0
- package/dist/src/concepts/StaticString__.d.ts +49 -0
- package/dist/src/concepts/StringInterpolation__.d.ts +122 -0
- package/dist/src/concepts/StringLiteral__.d.ts +51 -0
- package/dist/src/concepts/StructureProperty__.d.ts +119 -0
- package/dist/src/concepts/Structure__.d.ts +243 -0
- package/dist/src/concepts/SwitchCase__.d.ts +91 -0
- package/dist/src/concepts/SwitchSetter__.d.ts +25 -0
- package/dist/src/concepts/SwitchStatement__.d.ts +90 -0
- package/dist/src/concepts/ThemeVariable__.d.ts +29 -0
- package/dist/src/concepts/Theme__.d.ts +39 -0
- package/dist/src/concepts/Transactional__.d.ts +85 -0
- package/dist/src/concepts/TriggerEvent__.d.ts +42 -0
- package/dist/src/concepts/TriggerLauncher__.d.ts +76 -0
- package/dist/src/concepts/TypeAnnotation__.d.ts +303 -0
- package/dist/src/concepts/TypeParam__.d.ts +34 -0
- package/dist/src/concepts/UnaryExpression__.d.ts +45 -0
- package/dist/src/concepts/Unparsed__.d.ts +41 -0
- package/dist/src/concepts/UseComponent__.d.ts +33 -0
- package/dist/src/concepts/ValidationRule__.d.ts +133 -0
- package/dist/src/concepts/Variable__.d.ts +137 -0
- package/dist/src/concepts/ViewBlockWithImage__.d.ts +33 -0
- package/dist/src/concepts/ViewBlock__.d.ts +37 -0
- package/dist/src/concepts/ViewComponentDeclaration__.d.ts +721 -0
- package/dist/src/concepts/ViewElement__.d.ts +652 -0
- package/dist/src/concepts/View__.d.ts +728 -0
- package/dist/src/concepts/WhileStatement__.d.ts +94 -0
- package/dist/src/concepts/basics/constants.d.ts +1 -0
- package/dist/src/concepts/basics/stdlib/index.d.ts +16 -0
- package/dist/src/concepts/basics/stdlib/nasl.auth.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.browser.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/nasl.collection.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.configuration.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.core.d.ts +7 -0
- package/dist/src/concepts/basics/stdlib/nasl.event.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/nasl.http.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.interface.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.io.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/nasl.logging.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/nasl.process.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.ui.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.util.d.ts +6 -0
- package/dist/src/concepts/basics/stdlib/nasl.validation.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +4 -0
- package/dist/src/concepts/basics/stdlib/timeZone.d.ts +5 -0
- package/dist/src/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/dist/src/concepts/basics/types/index.d.ts +17 -0
- package/dist/src/concepts/index.d.ts +7 -0
- package/dist/src/concepts/index__.d.ts +156 -0
- package/dist/src/concepts/utils/asserts.d.ts +7825 -0
- package/dist/src/concepts/utils/quick-info.d.ts +13 -0
- package/dist/src/concepts/utils/types.d.ts +510 -0
- package/dist/src/config.d.ts +52 -0
- package/dist/src/decorators/index.d.ts +67 -0
- package/dist/src/decorators/promise.d.ts +7 -0
- package/dist/src/enums/KEYWORDS.d.ts +6 -0
- package/dist/src/enums/LEVEL_NAME_MAP.d.ts +26 -0
- package/dist/src/eventBus.d.ts +3 -0
- package/dist/src/generator/compileComponent.d.ts +11 -0
- package/dist/src/generator/genBundleFiles.d.ts +37 -0
- package/dist/src/generator/genHash.d.ts +7 -0
- package/dist/src/generator/genMetaData.d.ts +31 -0
- package/dist/src/generator/icestark.d.ts +2 -0
- package/dist/src/generator/index.d.ts +7 -0
- package/dist/src/generator/microApp.d.ts +2 -0
- package/dist/src/generator/permission.d.ts +14 -0
- package/dist/src/generator/qiankun.d.ts +2 -0
- package/dist/src/generator/release-body/body.d.ts +42 -0
- package/dist/src/generator/release-body/data.d.ts +45 -0
- package/dist/src/generator/release-body/index.d.ts +2 -0
- package/dist/src/generator/release-body/internal.d.ts +622 -0
- package/dist/src/generator/release-body/types.d.ts +57 -0
- package/dist/src/generator/release-body/utils.d.ts +418 -0
- package/dist/src/generator/release-body/validation.d.ts +3 -0
- package/dist/src/generator/styleReplacer.d.ts +3 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/manager/diagnostic.d.ts +39 -0
- package/dist/src/manager/stepRecorder.d.ts +20 -0
- package/dist/src/natural/componentData.d.ts +31 -0
- package/dist/src/natural/genNaturalTS.d.ts +241 -0
- package/dist/src/natural/index.d.ts +6 -0
- package/dist/src/natural/naslStdlibMap.d.ts +1 -0
- package/dist/src/natural/prompt/analyzeClaims.d.ts +1 -0
- package/dist/src/natural/prompt/analyzeFormatOutput.d.ts +1 -0
- package/dist/src/natural/prompt/analyzeTasks.d.ts +1 -0
- package/dist/src/natural/prompt/executeClaims.d.ts +1 -0
- package/dist/src/natural/transformTSCode.d.ts +7 -0
- package/dist/src/sentry/index.d.ts +34 -0
- package/dist/src/server/createUiTs.d.ts +17 -0
- package/dist/src/server/entity2LogicNamespace.d.ts +10 -0
- package/dist/src/server/event.d.ts +30 -0
- package/dist/src/server/extendBaseNode.d.ts +1 -0
- package/dist/src/server/formatTsUtils.d.ts +36 -0
- package/dist/src/server/getConnector.d.ts +15 -0
- package/dist/src/server/getExtensionModules.d.ts +3 -0
- package/dist/src/server/getFunctions.d.ts +3 -0
- package/dist/src/server/getInterfaces.d.ts +2 -0
- package/dist/src/server/getLogging.d.ts +1 -0
- package/dist/src/server/getLogics.d.ts +5 -0
- package/dist/src/server/getMemberIdentifier.d.ts +17 -0
- package/dist/src/server/getProcessComponents.d.ts +2 -0
- package/dist/src/server/getProcesses.d.ts +33 -0
- package/dist/src/server/getScope.d.ts +13 -0
- package/dist/src/server/getValidates.d.ts +3 -0
- package/dist/src/server/index.d.ts +5 -0
- package/dist/src/server/naslServer.d.ts +391 -0
- package/dist/src/server/naslStdlibMap.d.ts +2 -0
- package/dist/src/server/process2LogicNamespace.d.ts +26 -0
- package/dist/src/server/translator.d.ts +26 -0
- package/dist/src/service/creator/add.configs.d.ts +1 -0
- package/dist/src/service/creator/errHandles.d.ts +18 -0
- package/dist/src/service/creator/index.d.ts +1 -0
- package/dist/src/service/datasource/api.d.ts +12 -0
- package/dist/src/service/datasource/index.d.ts +2 -0
- package/dist/src/service/logic/api.d.ts +9 -0
- package/dist/src/service/logic/checktypeSocket.d.ts +5 -0
- package/dist/src/service/logic/index.d.ts +2 -0
- package/dist/src/service/storage/api.d.ts +54 -0
- package/dist/src/service/storage/index.d.ts +2 -0
- package/dist/src/service/storage/init.d.ts +105 -0
- package/dist/src/service/storage/jsoner.d.ts +36 -0
- package/dist/src/service/storage/map.d.ts +4 -0
- package/dist/src/service/storage/service.d.ts +25 -0
- package/dist/src/service/storage/storagePoint.d.ts +17 -0
- package/dist/src/service/video/BaseService.d.ts +7 -0
- package/dist/src/service/video/MainCallbackService.d.ts +12 -0
- package/dist/src/service/video/VideoTranscribe.d.ts +15 -0
- package/dist/src/service/video/publishService.d.ts +1 -0
- package/dist/src/templator/genCallComponentLogic.d.ts +17 -0
- package/dist/src/templator/genCreateBlock.d.ts +10 -0
- package/dist/src/templator/genCurdEditMultipleKeyBlock.d.ts +8 -0
- package/dist/src/templator/genCurdMultipleKeyBlock.d.ts +61 -0
- package/dist/src/templator/genEditTableBlock.d.ts +51 -0
- package/dist/src/templator/genEnumSelectBlock.d.ts +10 -0
- package/dist/src/templator/genGetBlock.d.ts +6 -0
- package/dist/src/templator/genGridViewBlock.d.ts +55 -0
- package/dist/src/templator/genListViewBlock.d.ts +19 -0
- package/dist/src/templator/genQueryComponent.d.ts +34 -0
- package/dist/src/templator/genSelectBlock.d.ts +45 -0
- package/dist/src/templator/genTableBlock.d.ts +55 -0
- package/dist/src/templator/genUpdateBlock.d.ts +6 -0
- package/dist/src/templator/index.d.ts +19 -0
- package/dist/src/templator/utils.d.ts +683 -0
- package/dist/src/translator/constant.d.ts +6 -0
- package/dist/src/translator/index.d.ts +3 -0
- package/dist/src/translator/types.d.ts +85 -0
- package/dist/src/translator/utils.d.ts +47 -0
- package/dist/src/utils/cookie.d.ts +9 -0
- package/dist/src/utils/create.d.ts +2 -0
- package/dist/src/utils/env.d.ts +2 -0
- package/dist/src/utils/file.d.ts +33 -0
- package/dist/src/utils/i18nInfo.d.ts +5 -0
- package/dist/src/utils/index.d.ts +72 -0
- package/dist/src/utils/logger.d.ts +8 -0
- package/dist/src/utils/sortTsString.d.ts +1 -0
- package/dist/src/utils/string.d.ts +64 -0
- package/dist/src/utils/time-slicing/constant.d.ts +35 -0
- package/dist/src/utils/time-slicing/controller.d.ts +53 -0
- package/dist/src/utils/time-slicing/index.d.ts +5 -0
- package/dist/src/utils/time-slicing/page-state.d.ts +2 -0
- package/dist/src/utils/time-slicing/performance.d.ts +11 -0
- package/dist/src/utils/time-slicing/runner.d.ts +12 -0
- package/dist/src/utils/time-slicing/tool.d.ts +24 -0
- package/dist/src/utils/time-slicing/utils.d.ts +62 -0
- package/dist/src/utils/time-slicing/wrapper.d.ts +18 -0
- package/dist/src/utils/traverse.d.ts +36 -0
- package/dist/src/utils/types.d.ts +13 -0
- package/dist/src/utils/window.d.ts +7 -0
- package/dist/test/concepts/anonymous-function/constant.d.ts +2 -0
- package/dist/test/concepts/anonymous-function/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/anonymous-function/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/anonymous-function/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/assignment/constant.d.ts +2 -0
- package/dist/test/concepts/assignment/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/assignment/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/assignment/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/batch-assignment/constant.d.ts +2 -0
- package/dist/test/concepts/batch-assignment/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/batch-assignment/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/batch-assignment/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/binary-expression/constant.d.ts +2 -0
- package/dist/test/concepts/binary-expression/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/binary-expression/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/binary-expression/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/binary-expression/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/boolean-literal/constant.d.ts +2 -0
- package/dist/test/concepts/boolean-literal/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/boolean-literal/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/boolean-literal/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/call-function/constant.d.ts +2 -0
- package/dist/test/concepts/call-function/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/call-function/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/call-function/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/call-interface/constant.d.ts +2 -0
- package/dist/test/concepts/call-interface/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/call-interface/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/call-interface/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/constant.d.ts +2 -0
- package/dist/test/concepts/call-logic/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toUI.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toVueDesigner.spec.d.ts +1 -0
- package/dist/test/concepts/data-source/constant.d.ts +2 -0
- package/dist/test/concepts/data-source/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/data-source/toEmbeddedTSFile.spec.d.ts +1 -0
- package/dist/test/concepts/entity/constant.d.ts +2 -0
- package/dist/test/concepts/entity/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/entity/toEmbeddedTSFile.spec.d.ts +1 -0
- package/dist/test/concepts/identifier/constant.d.ts +2 -0
- package/dist/test/concepts/identifier/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/identifier/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/identifier/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/match/constant.d.ts +2 -0
- package/dist/test/concepts/match/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/match/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/member-expression/constant.d.ts +2 -0
- package/dist/test/concepts/member-expression/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/member-expression/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/member-expression/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/new-composite/constant.d.ts +2 -0
- package/dist/test/concepts/new-composite/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/new-composite/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/new-composite/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/new-list/constant.d.ts +2 -0
- package/dist/test/concepts/new-list/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/new-list/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/new-list/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/new-map/constant.d.ts +2 -0
- package/dist/test/concepts/new-map/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/new-map/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/new-map/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/null-literal/constant.d.ts +2 -0
- package/dist/test/concepts/null-literal/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/null-literal/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/null-literal/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/numeric-literal/constant.d.ts +2 -0
- package/dist/test/concepts/numeric-literal/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/numeric-literal/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/numeric-literal/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/string-literal/constant.d.ts +2 -0
- package/dist/test/concepts/string-literal/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/string-literal/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/string-literal/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/utils.d.ts +13 -0
- package/dist/test/concepts/validation-rule/constant.d.ts +2 -0
- package/dist/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/validation-rule/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/validation-rule/validation-rule.spec.d.ts +1 -0
- package/dist/test/concepts/view-element/constant.d.ts +2 -0
- package/dist/test/concepts/view-element/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/view-element/toVue.spec.d.ts +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/time-slicing/runner.spec.d.ts +1 -0
- package/dist/test/time-slicing/time-slicing-nodejs.spec.d.ts +1 -0
- package/dist/test/time-slicing/utils.d.ts +1 -0
- package/dist/test/time-slicing/wrapper.spec.d.ts +1 -0
- package/out/generator/release-body/body.js +2 -0
- package/out/generator/release-body/body.js.map +1 -1
- package/out/generator/release-body/data.js +2 -0
- package/out/generator/release-body/data.js.map +1 -1
- package/out/natural/transformTSCode.js +31 -3
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/getLogics.js +1 -1
- package/out/server/getLogics.js.map +1 -1
- package/out/server/naslServer.js +2 -3
- package/out/server/naslServer.js.map +1 -1
- package/package.json +1 -1
- package/sandbox-natural/stdlib/nasl.core.ts +0 -2
- package/src/generator/release-body/body.ts +4 -1
- package/src/generator/release-body/data.ts +2 -0
- package/src/natural/transformTSCode.ts +32 -4
- package/src/server/getLogics.ts +1 -1
- package/src/server/naslServer.ts +3 -3
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import type { EmbeddedTSFileGenerator } from '../utils';
|
|
2
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
3
|
+
import Module from './Module__';
|
|
4
|
+
import * as types from './utils/types';
|
|
5
|
+
import BaseNode from '../common/BaseNode';
|
|
6
|
+
import TypeParam from './TypeParam__';
|
|
7
|
+
import StructureProperty from './StructureProperty__';
|
|
8
|
+
/**
|
|
9
|
+
* 数据结构
|
|
10
|
+
*/
|
|
11
|
+
export declare class Structure extends BaseNode {
|
|
12
|
+
/** 类名 */
|
|
13
|
+
static readonly ConceptName: string;
|
|
14
|
+
/**
|
|
15
|
+
* 是否为抽象类
|
|
16
|
+
* 抽象类不能产生 concept: string
|
|
17
|
+
*/
|
|
18
|
+
static isAbstract: boolean;
|
|
19
|
+
/** 继承链 */
|
|
20
|
+
static readonly inheritanceChain: string[];
|
|
21
|
+
/**
|
|
22
|
+
* 产品概念
|
|
23
|
+
*/
|
|
24
|
+
readonly concept: 'Structure';
|
|
25
|
+
/**
|
|
26
|
+
* 数据结构名称
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* 数据结构描述
|
|
31
|
+
*/
|
|
32
|
+
description: string;
|
|
33
|
+
/**
|
|
34
|
+
* 数据结构来源
|
|
35
|
+
*/
|
|
36
|
+
origin: 'CallQueryComponent';
|
|
37
|
+
/**
|
|
38
|
+
* 类型参数列表
|
|
39
|
+
*/
|
|
40
|
+
typeParams?: Array<TypeParam>;
|
|
41
|
+
/**
|
|
42
|
+
* 数据结构属性列表
|
|
43
|
+
*/
|
|
44
|
+
properties: Array<StructureProperty>;
|
|
45
|
+
/**
|
|
46
|
+
* @param source 需要合并的部分参数
|
|
47
|
+
*/
|
|
48
|
+
constructor(source?: Partial<Structure>);
|
|
49
|
+
static from(source: any, parentNode?: any, parentKey?: string): Structure;
|
|
50
|
+
/**
|
|
51
|
+
* 设置数据结构名称
|
|
52
|
+
*/
|
|
53
|
+
setName(name: string): void;
|
|
54
|
+
/**
|
|
55
|
+
* 设置数据结构描述
|
|
56
|
+
*/
|
|
57
|
+
setDescription(description: string): void;
|
|
58
|
+
getTypeParamExistingNames(excludedList?: Array<TypeParam>): string[];
|
|
59
|
+
getTypeParamUniqueName(name?: string): string;
|
|
60
|
+
/**
|
|
61
|
+
* 插入类型参数
|
|
62
|
+
* @internal
|
|
63
|
+
* @param name 类型参数名称,如果不填会自动生成一个唯一名称
|
|
64
|
+
*/
|
|
65
|
+
_insertTypeParamAt(name: string, index: number): TypeParam;
|
|
66
|
+
/**
|
|
67
|
+
* 插入类型参数
|
|
68
|
+
* @internal
|
|
69
|
+
* @param typeParamOptions 类型参数参数
|
|
70
|
+
*/
|
|
71
|
+
_insertTypeParamAt(typeParamOptions: Partial<TypeParam>, index: number): TypeParam;
|
|
72
|
+
/**
|
|
73
|
+
* 插入类型参数
|
|
74
|
+
* @internal
|
|
75
|
+
* @param typeParam 已有的类型参数实例
|
|
76
|
+
*/
|
|
77
|
+
_insertTypeParamAt(typeParam: TypeParam, index: number): TypeParam;
|
|
78
|
+
/**
|
|
79
|
+
* 插入类型参数
|
|
80
|
+
* @param name 类型参数名称,如果不填会自动生成一个唯一名称
|
|
81
|
+
*/
|
|
82
|
+
insertTypeParamAt(name: string, index: number): TypeParam;
|
|
83
|
+
/**
|
|
84
|
+
* 插入类型参数
|
|
85
|
+
* @param typeParamOptions 类型参数参数
|
|
86
|
+
*/
|
|
87
|
+
insertTypeParamAt(typeParamOptions: Partial<TypeParam>, index: number): TypeParam;
|
|
88
|
+
/**
|
|
89
|
+
* 插入类型参数
|
|
90
|
+
* @param typeParam 已有的类型参数实例
|
|
91
|
+
*/
|
|
92
|
+
insertTypeParamAt(typeParam: TypeParam, index: number): TypeParam;
|
|
93
|
+
/**
|
|
94
|
+
* 添加类型参数
|
|
95
|
+
* @internal
|
|
96
|
+
* @param name 类型参数名称,如果不填会自动生成一个唯一名称
|
|
97
|
+
*/
|
|
98
|
+
_addTypeParam(name?: string): TypeParam;
|
|
99
|
+
/**
|
|
100
|
+
* 添加类型参数
|
|
101
|
+
* @internal
|
|
102
|
+
* @param typeParamOptions 类型参数参数
|
|
103
|
+
*/
|
|
104
|
+
_addTypeParam(typeParamOptions: Partial<TypeParam>): TypeParam;
|
|
105
|
+
/**
|
|
106
|
+
* 添加类型参数
|
|
107
|
+
* @internal
|
|
108
|
+
* @param typeParam 已有的类型参数实例
|
|
109
|
+
*/
|
|
110
|
+
_addTypeParam(typeParam: TypeParam): TypeParam;
|
|
111
|
+
/**
|
|
112
|
+
* 添加类型参数
|
|
113
|
+
* @internal
|
|
114
|
+
* @param name 类型参数名称,如果不填会自动生成一个唯一名称
|
|
115
|
+
*/
|
|
116
|
+
addTypeParam(name?: string): TypeParam;
|
|
117
|
+
/**
|
|
118
|
+
* 添加类型参数
|
|
119
|
+
* @param typeParamOptions 类型参数参数
|
|
120
|
+
*/
|
|
121
|
+
addTypeParam(typeParamOptions: Partial<TypeParam>): TypeParam;
|
|
122
|
+
/**
|
|
123
|
+
* 添加类型参数
|
|
124
|
+
* @param typeParam 已有的类型参数实例
|
|
125
|
+
*/
|
|
126
|
+
addTypeParam(typeParam: TypeParam): TypeParam;
|
|
127
|
+
getPropertyExistingNames(excludedList?: Array<StructureProperty>): string[];
|
|
128
|
+
getPropertyUniqueName(name?: string): string;
|
|
129
|
+
/**
|
|
130
|
+
* 插入数据结构属性
|
|
131
|
+
* @internal
|
|
132
|
+
* @param name 数据结构属性名称,如果不填会自动生成一个唯一名称
|
|
133
|
+
*/
|
|
134
|
+
_insertPropertyAt(name: string, index: number): StructureProperty;
|
|
135
|
+
/**
|
|
136
|
+
* 插入数据结构属性
|
|
137
|
+
* @internal
|
|
138
|
+
* @param propertyOptions 数据结构属性参数
|
|
139
|
+
*/
|
|
140
|
+
_insertPropertyAt(propertyOptions: Partial<StructureProperty>, index: number): StructureProperty;
|
|
141
|
+
/**
|
|
142
|
+
* 插入数据结构属性
|
|
143
|
+
* @internal
|
|
144
|
+
* @param property 已有的数据结构属性实例
|
|
145
|
+
*/
|
|
146
|
+
_insertPropertyAt(property: StructureProperty, index: number): StructureProperty;
|
|
147
|
+
/**
|
|
148
|
+
* 插入数据结构属性
|
|
149
|
+
* @param name 数据结构属性名称,如果不填会自动生成一个唯一名称
|
|
150
|
+
*/
|
|
151
|
+
insertPropertyAt(name: string, index: number): StructureProperty;
|
|
152
|
+
/**
|
|
153
|
+
* 插入数据结构属性
|
|
154
|
+
* @param propertyOptions 数据结构属性参数
|
|
155
|
+
*/
|
|
156
|
+
insertPropertyAt(propertyOptions: Partial<StructureProperty>, index: number): StructureProperty;
|
|
157
|
+
/**
|
|
158
|
+
* 插入数据结构属性
|
|
159
|
+
* @param property 已有的数据结构属性实例
|
|
160
|
+
*/
|
|
161
|
+
insertPropertyAt(property: StructureProperty, index: number): StructureProperty;
|
|
162
|
+
/**
|
|
163
|
+
* 添加数据结构属性
|
|
164
|
+
* @internal
|
|
165
|
+
* @param name 数据结构属性名称,如果不填会自动生成一个唯一名称
|
|
166
|
+
*/
|
|
167
|
+
_addProperty(name?: string): StructureProperty;
|
|
168
|
+
/**
|
|
169
|
+
* 添加数据结构属性
|
|
170
|
+
* @internal
|
|
171
|
+
* @param propertyOptions 数据结构属性参数
|
|
172
|
+
*/
|
|
173
|
+
_addProperty(propertyOptions: Partial<StructureProperty>): StructureProperty;
|
|
174
|
+
/**
|
|
175
|
+
* 添加数据结构属性
|
|
176
|
+
* @internal
|
|
177
|
+
* @param property 已有的数据结构属性实例
|
|
178
|
+
*/
|
|
179
|
+
_addProperty(property: StructureProperty): StructureProperty;
|
|
180
|
+
/**
|
|
181
|
+
* 添加数据结构属性
|
|
182
|
+
* @internal
|
|
183
|
+
* @param name 数据结构属性名称,如果不填会自动生成一个唯一名称
|
|
184
|
+
*/
|
|
185
|
+
addProperty(name?: string): StructureProperty;
|
|
186
|
+
/**
|
|
187
|
+
* 添加数据结构属性
|
|
188
|
+
* @param propertyOptions 数据结构属性参数
|
|
189
|
+
*/
|
|
190
|
+
addProperty(propertyOptions: Partial<StructureProperty>): StructureProperty;
|
|
191
|
+
/**
|
|
192
|
+
* 添加数据结构属性
|
|
193
|
+
* @param property 已有的数据结构属性实例
|
|
194
|
+
*/
|
|
195
|
+
addProperty(property: StructureProperty): StructureProperty;
|
|
196
|
+
/**
|
|
197
|
+
* 删除类型参数
|
|
198
|
+
* @param name 类型参数名称
|
|
199
|
+
*/
|
|
200
|
+
removeTypeParam(name: string): void;
|
|
201
|
+
/**
|
|
202
|
+
* 删除类型参数
|
|
203
|
+
* @param typeParam 已有的类型参数实例
|
|
204
|
+
*/
|
|
205
|
+
removeTypeParam(typeParam: TypeParam): void;
|
|
206
|
+
/**
|
|
207
|
+
* 删除数据结构属性
|
|
208
|
+
* @param name 数据结构属性名称
|
|
209
|
+
*/
|
|
210
|
+
removeProperty(name: string): void;
|
|
211
|
+
/**
|
|
212
|
+
* 删除数据结构属性
|
|
213
|
+
* @param property 已有的数据结构属性实例
|
|
214
|
+
*/
|
|
215
|
+
removeProperty(property: StructureProperty): void;
|
|
216
|
+
/**
|
|
217
|
+
* 祖先 Module
|
|
218
|
+
*/
|
|
219
|
+
get module(): Module;
|
|
220
|
+
get integration(): types.SyntaxNode;
|
|
221
|
+
get tsName(): string;
|
|
222
|
+
/**
|
|
223
|
+
* 是否为连接器,连接器不允许编辑
|
|
224
|
+
*/
|
|
225
|
+
get isConnector(): boolean;
|
|
226
|
+
/**
|
|
227
|
+
* 是否可编辑
|
|
228
|
+
* */
|
|
229
|
+
get readonly(): boolean;
|
|
230
|
+
deleteLogincAndModule(): void;
|
|
231
|
+
toEmbeddedTS(state?: TranslatorState): TranslatorGenerator;
|
|
232
|
+
toNaturalTS(state?: TranslatorState): string;
|
|
233
|
+
toTextualNASL(state?: TranslatorState): string;
|
|
234
|
+
getNamespace(): string;
|
|
235
|
+
getTsNamespace(): string;
|
|
236
|
+
/**
|
|
237
|
+
* 生成宿主语言的文件路径
|
|
238
|
+
* @param name 一般不用传,用于 rename
|
|
239
|
+
*/
|
|
240
|
+
getEmbeddedFilePath(name?: string): string;
|
|
241
|
+
toEmbeddedTSFile(): EmbeddedTSFileGenerator;
|
|
242
|
+
}
|
|
243
|
+
export default Structure;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
2
|
+
import LogicItem from './LogicItem__';
|
|
3
|
+
/**
|
|
4
|
+
* 选择分支情况
|
|
5
|
+
*/
|
|
6
|
+
export declare class SwitchCase extends LogicItem {
|
|
7
|
+
/** 类名 */
|
|
8
|
+
static readonly ConceptName: string;
|
|
9
|
+
/**
|
|
10
|
+
* 是否为抽象类
|
|
11
|
+
* 抽象类不能产生 concept: string
|
|
12
|
+
*/
|
|
13
|
+
static isAbstract: boolean;
|
|
14
|
+
/** 继承链 */
|
|
15
|
+
static readonly inheritanceChain: string[];
|
|
16
|
+
/**
|
|
17
|
+
* 产品概念
|
|
18
|
+
*/
|
|
19
|
+
readonly concept: 'SwitchCase';
|
|
20
|
+
/**
|
|
21
|
+
* 条件表达式
|
|
22
|
+
*/
|
|
23
|
+
test: LogicItem;
|
|
24
|
+
/**
|
|
25
|
+
* then
|
|
26
|
+
*/
|
|
27
|
+
consequent: Array<LogicItem>;
|
|
28
|
+
/**
|
|
29
|
+
* @param source 需要合并的部分参数
|
|
30
|
+
*/
|
|
31
|
+
constructor(source?: Partial<SwitchCase>);
|
|
32
|
+
static from(source: any, parentNode?: any, parentKey?: string): SwitchCase;
|
|
33
|
+
/**
|
|
34
|
+
* 设置条件表达式
|
|
35
|
+
*/
|
|
36
|
+
setTest(test: LogicItem): void;
|
|
37
|
+
/**
|
|
38
|
+
* 插入逻辑项
|
|
39
|
+
* @internal
|
|
40
|
+
* @param logicItemOptions 逻辑项参数
|
|
41
|
+
*/
|
|
42
|
+
_insertItemAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
43
|
+
/**
|
|
44
|
+
* 插入逻辑项
|
|
45
|
+
* @internal
|
|
46
|
+
* @param logicItem 已有的逻辑项实例
|
|
47
|
+
*/
|
|
48
|
+
_insertItemAt(logicItem: LogicItem, index: number): LogicItem;
|
|
49
|
+
/**
|
|
50
|
+
* 插入逻辑项
|
|
51
|
+
* @param logicItemOptions 逻辑项参数
|
|
52
|
+
*/
|
|
53
|
+
insertItemAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
54
|
+
/**
|
|
55
|
+
* 插入逻辑项
|
|
56
|
+
* @param logicItem 已有的逻辑项实例
|
|
57
|
+
*/
|
|
58
|
+
insertItemAt(logicItem: LogicItem, index: number): LogicItem;
|
|
59
|
+
/**
|
|
60
|
+
* 添加逻辑项
|
|
61
|
+
* @internal
|
|
62
|
+
* @param logicItemOptions 逻辑项参数
|
|
63
|
+
*/
|
|
64
|
+
_addItem(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
65
|
+
/**
|
|
66
|
+
* 添加逻辑项
|
|
67
|
+
* @internal
|
|
68
|
+
* @param logicItem 已有的逻辑项实例
|
|
69
|
+
*/
|
|
70
|
+
_addItem(logicItem: LogicItem): LogicItem;
|
|
71
|
+
/**
|
|
72
|
+
* 添加逻辑项
|
|
73
|
+
* @param logicItemOptions 逻辑项参数
|
|
74
|
+
*/
|
|
75
|
+
addItem(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
76
|
+
/**
|
|
77
|
+
* 添加逻辑项
|
|
78
|
+
* @param logicItem 已有的逻辑项实例
|
|
79
|
+
*/
|
|
80
|
+
addItem(logicItem: LogicItem): LogicItem;
|
|
81
|
+
/**
|
|
82
|
+
* 删除逻辑项
|
|
83
|
+
* @param logicItem 已有的逻辑项实例
|
|
84
|
+
*/
|
|
85
|
+
removeItem(logicItem: LogicItem): void;
|
|
86
|
+
toJS(state?: TranslatorState, index?: number, length?: number): string;
|
|
87
|
+
toEmbeddedTS(state?: TranslatorState, isLast?: boolean): TranslatorGenerator;
|
|
88
|
+
toNaturalTS(state?: TranslatorState, isLast?: boolean, isFirst?: boolean): string;
|
|
89
|
+
toTextualNASL(state?: TranslatorState): string;
|
|
90
|
+
}
|
|
91
|
+
export default SwitchCase;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import BaseSetter from './BaseSetter__';
|
|
2
|
+
/**
|
|
3
|
+
* 切换设置器
|
|
4
|
+
*/
|
|
5
|
+
export declare class SwitchSetter extends BaseSetter {
|
|
6
|
+
/** 类名 */
|
|
7
|
+
static readonly ConceptName: string;
|
|
8
|
+
/**
|
|
9
|
+
* 是否为抽象类
|
|
10
|
+
* 抽象类不能产生 concept: string
|
|
11
|
+
*/
|
|
12
|
+
static isAbstract: boolean;
|
|
13
|
+
/** 继承链 */
|
|
14
|
+
static readonly inheritanceChain: string[];
|
|
15
|
+
/**
|
|
16
|
+
* 产品概念
|
|
17
|
+
*/
|
|
18
|
+
readonly concept: 'SwitchSetter';
|
|
19
|
+
/**
|
|
20
|
+
* @param source 需要合并的部分参数
|
|
21
|
+
*/
|
|
22
|
+
constructor(source?: Partial<SwitchSetter>);
|
|
23
|
+
static from(source: any, parentNode?: any, parentKey?: string): SwitchSetter;
|
|
24
|
+
}
|
|
25
|
+
export default SwitchSetter;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
2
|
+
import SwitchCase from './SwitchCase__';
|
|
3
|
+
import LogicItem from './LogicItem__';
|
|
4
|
+
/**
|
|
5
|
+
* 选择分支
|
|
6
|
+
*/
|
|
7
|
+
export declare class SwitchStatement extends LogicItem {
|
|
8
|
+
/** 类名 */
|
|
9
|
+
static readonly ConceptName: string;
|
|
10
|
+
/**
|
|
11
|
+
* 是否为抽象类
|
|
12
|
+
* 抽象类不能产生 concept: string
|
|
13
|
+
*/
|
|
14
|
+
static isAbstract: boolean;
|
|
15
|
+
/** 继承链 */
|
|
16
|
+
static readonly inheritanceChain: string[];
|
|
17
|
+
/**
|
|
18
|
+
* 产品概念
|
|
19
|
+
*/
|
|
20
|
+
readonly concept: 'SwitchStatement';
|
|
21
|
+
/**
|
|
22
|
+
* 选择分支情况列表
|
|
23
|
+
*/
|
|
24
|
+
cases: Array<SwitchCase>;
|
|
25
|
+
/**
|
|
26
|
+
* @param source 需要合并的部分参数
|
|
27
|
+
*/
|
|
28
|
+
constructor(source?: Partial<SwitchStatement>);
|
|
29
|
+
static from(source: any, parentNode?: any, parentKey?: string): SwitchStatement;
|
|
30
|
+
/**
|
|
31
|
+
* 插入选择分支情况
|
|
32
|
+
* @internal
|
|
33
|
+
* @param switchCaseOptions 选择分支情况参数
|
|
34
|
+
*/
|
|
35
|
+
_insertSwitchCaseAt(switchCaseOptions: Partial<SwitchCase>, index: number): SwitchCase;
|
|
36
|
+
/**
|
|
37
|
+
* 插入选择分支情况
|
|
38
|
+
* @internal
|
|
39
|
+
* @param switchCase 已有的选择分支情况实例
|
|
40
|
+
*/
|
|
41
|
+
_insertSwitchCaseAt(switchCase: SwitchCase, index: number): SwitchCase;
|
|
42
|
+
/**
|
|
43
|
+
* 插入选择分支情况
|
|
44
|
+
* @param switchCaseOptions 选择分支情况参数
|
|
45
|
+
*/
|
|
46
|
+
insertSwitchCaseAt(switchCaseOptions: Partial<SwitchCase>, index: number): SwitchCase;
|
|
47
|
+
/**
|
|
48
|
+
* 插入选择分支情况
|
|
49
|
+
* @param switchCase 已有的选择分支情况实例
|
|
50
|
+
*/
|
|
51
|
+
insertSwitchCaseAt(switchCase: SwitchCase, index: number): SwitchCase;
|
|
52
|
+
/**
|
|
53
|
+
* 添加选择分支情况
|
|
54
|
+
* @internal
|
|
55
|
+
* @param switchCaseOptions 选择分支情况参数
|
|
56
|
+
*/
|
|
57
|
+
_addSwitchCase(switchCaseOptions: Partial<SwitchCase>): SwitchCase;
|
|
58
|
+
/**
|
|
59
|
+
* 添加选择分支情况
|
|
60
|
+
* @internal
|
|
61
|
+
* @param switchCase 已有的选择分支情况实例
|
|
62
|
+
*/
|
|
63
|
+
_addSwitchCase(switchCase: SwitchCase): SwitchCase;
|
|
64
|
+
/**
|
|
65
|
+
* 添加选择分支情况
|
|
66
|
+
* @param switchCaseOptions 选择分支情况参数
|
|
67
|
+
*/
|
|
68
|
+
addSwitchCase(switchCaseOptions: Partial<SwitchCase>): SwitchCase;
|
|
69
|
+
/**
|
|
70
|
+
* 添加选择分支情况
|
|
71
|
+
* @param switchCase 已有的选择分支情况实例
|
|
72
|
+
*/
|
|
73
|
+
addSwitchCase(switchCase: SwitchCase): SwitchCase;
|
|
74
|
+
/**
|
|
75
|
+
* 删除选择分支情况
|
|
76
|
+
* @param switchCase 已有的选择分支情况实例
|
|
77
|
+
*/
|
|
78
|
+
removeSwitchCase(switchCase: SwitchCase): void;
|
|
79
|
+
toUI(state?: TranslatorState, hideDetails?: boolean): string;
|
|
80
|
+
toJS(state?: TranslatorState): string;
|
|
81
|
+
static getDefaultOptions(): {
|
|
82
|
+
label: string;
|
|
83
|
+
cases: {
|
|
84
|
+
concept: string;
|
|
85
|
+
}[];
|
|
86
|
+
};
|
|
87
|
+
toEmbeddedTS(state?: TranslatorState): TranslatorGenerator;
|
|
88
|
+
toNaturalTS(state?: TranslatorState): string;
|
|
89
|
+
}
|
|
90
|
+
export default SwitchStatement;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import BaseNode from '../common/BaseNode';
|
|
2
|
+
/**
|
|
3
|
+
* 主题变量
|
|
4
|
+
*/
|
|
5
|
+
export declare class ThemeVariable extends BaseNode {
|
|
6
|
+
/** 类名 */
|
|
7
|
+
static readonly ConceptName: string;
|
|
8
|
+
/**
|
|
9
|
+
* 是否为抽象类
|
|
10
|
+
* 抽象类不能产生 concept: string
|
|
11
|
+
*/
|
|
12
|
+
static isAbstract: boolean;
|
|
13
|
+
/** 继承链 */
|
|
14
|
+
static readonly inheritanceChain: string[];
|
|
15
|
+
/**
|
|
16
|
+
* 产品概念
|
|
17
|
+
*/
|
|
18
|
+
readonly concept: 'ThemeVariable';
|
|
19
|
+
/**
|
|
20
|
+
* 主题变量名称
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* @param source 需要合并的部分参数
|
|
25
|
+
*/
|
|
26
|
+
constructor(source?: Partial<ThemeVariable>);
|
|
27
|
+
static from(source: any, parentNode?: any, parentKey?: string): ThemeVariable;
|
|
28
|
+
}
|
|
29
|
+
export default ThemeVariable;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import BaseNode from '../common/BaseNode';
|
|
2
|
+
/**
|
|
3
|
+
* 主题
|
|
4
|
+
*/
|
|
5
|
+
export declare class Theme extends BaseNode {
|
|
6
|
+
/** 类名 */
|
|
7
|
+
static readonly ConceptName: string;
|
|
8
|
+
/**
|
|
9
|
+
* 是否为抽象类
|
|
10
|
+
* 抽象类不能产生 concept: string
|
|
11
|
+
*/
|
|
12
|
+
static isAbstract: boolean;
|
|
13
|
+
/** 继承链 */
|
|
14
|
+
static readonly inheritanceChain: string[];
|
|
15
|
+
/**
|
|
16
|
+
* 产品概念
|
|
17
|
+
*/
|
|
18
|
+
readonly concept: 'Theme';
|
|
19
|
+
/**
|
|
20
|
+
* 主题标题
|
|
21
|
+
*/
|
|
22
|
+
title: string;
|
|
23
|
+
/**
|
|
24
|
+
* 主题变量 Map
|
|
25
|
+
*/
|
|
26
|
+
variableMap: {
|
|
27
|
+
[name: string]: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @param source 需要合并的部分参数
|
|
31
|
+
*/
|
|
32
|
+
constructor(source?: Partial<Theme>);
|
|
33
|
+
static from(source: any, parentNode?: any, parentKey?: string): Theme;
|
|
34
|
+
/**
|
|
35
|
+
* 设置主题标题
|
|
36
|
+
*/
|
|
37
|
+
setTitle(title: string): void;
|
|
38
|
+
}
|
|
39
|
+
export default Theme;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import Logic from './Logic__';
|
|
2
|
+
import Module from './Module__';
|
|
3
|
+
import Connector from './Connector__';
|
|
4
|
+
import View from './View__';
|
|
5
|
+
import Frontend from './Frontend__';
|
|
6
|
+
import ProcessElement from './ProcessElement__';
|
|
7
|
+
import Process from './Process__';
|
|
8
|
+
import BaseNode from '../common/BaseNode';
|
|
9
|
+
/**
|
|
10
|
+
* 事务
|
|
11
|
+
*/
|
|
12
|
+
export declare class Transactional extends BaseNode {
|
|
13
|
+
/** 类名 */
|
|
14
|
+
static readonly ConceptName: string;
|
|
15
|
+
/**
|
|
16
|
+
* 是否为抽象类
|
|
17
|
+
* 抽象类不能产生 concept: string
|
|
18
|
+
*/
|
|
19
|
+
static isAbstract: boolean;
|
|
20
|
+
/** 继承链 */
|
|
21
|
+
static readonly inheritanceChain: string[];
|
|
22
|
+
/**
|
|
23
|
+
* 产品概念
|
|
24
|
+
*/
|
|
25
|
+
readonly concept: 'Transactional';
|
|
26
|
+
/**
|
|
27
|
+
* 事务是否生效
|
|
28
|
+
*/
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 事务的传播机制
|
|
32
|
+
*/
|
|
33
|
+
propagation: 'REQUIRED' | 'REQUIRES_NEW' | 'SUPPORTS' | 'NOT_SUPPORTED' | 'MANDATORY' | 'NEVER';
|
|
34
|
+
/**
|
|
35
|
+
* 事务的隔离级别
|
|
36
|
+
*/
|
|
37
|
+
isolation: 'DEFAULT' | 'READ_UNCOMMITTED' | 'READ_COMMITTED' | 'REPEATABLE_READ' | 'SERIALIZABLE';
|
|
38
|
+
/**
|
|
39
|
+
* @param source 需要合并的部分参数
|
|
40
|
+
*/
|
|
41
|
+
constructor(source?: Partial<Transactional>);
|
|
42
|
+
static from(source: any, parentNode?: any, parentKey?: string): Transactional;
|
|
43
|
+
/**
|
|
44
|
+
* 设置事务是否生效
|
|
45
|
+
*/
|
|
46
|
+
setEnabled(enabled: boolean): void;
|
|
47
|
+
/**
|
|
48
|
+
* 设置事务的传播机制
|
|
49
|
+
*/
|
|
50
|
+
setPropagation(propagation: 'REQUIRED' | 'REQUIRES_NEW' | 'SUPPORTS' | 'NOT_SUPPORTED' | 'MANDATORY' | 'NEVER'): void;
|
|
51
|
+
/**
|
|
52
|
+
* 设置事务的隔离级别
|
|
53
|
+
*/
|
|
54
|
+
setIsolation(isolation: 'DEFAULT' | 'READ_UNCOMMITTED' | 'READ_COMMITTED' | 'REPEATABLE_READ' | 'SERIALIZABLE'): void;
|
|
55
|
+
toNaturalTS(state?: import("../translator").TranslatorState): string;
|
|
56
|
+
/**
|
|
57
|
+
* 祖先 Logic
|
|
58
|
+
*/
|
|
59
|
+
get logic(): Logic;
|
|
60
|
+
/**
|
|
61
|
+
* 祖先 Module
|
|
62
|
+
*/
|
|
63
|
+
get module(): Module;
|
|
64
|
+
/**
|
|
65
|
+
* 祖先 Connector
|
|
66
|
+
*/
|
|
67
|
+
get connector(): Connector;
|
|
68
|
+
/**
|
|
69
|
+
* 祖先 View
|
|
70
|
+
*/
|
|
71
|
+
get view(): View;
|
|
72
|
+
/**
|
|
73
|
+
* 祖先 Frontend
|
|
74
|
+
*/
|
|
75
|
+
get frontend(): Frontend;
|
|
76
|
+
/**
|
|
77
|
+
* 祖先 ProcessElement
|
|
78
|
+
*/
|
|
79
|
+
get processElement(): ProcessElement;
|
|
80
|
+
/**
|
|
81
|
+
* 祖先 Process
|
|
82
|
+
*/
|
|
83
|
+
get process(): Process;
|
|
84
|
+
}
|
|
85
|
+
export default Transactional;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import BaseNode from '../common/BaseNode';
|
|
2
|
+
import TypeAnnotation from './TypeAnnotation__';
|
|
3
|
+
/**
|
|
4
|
+
* 触发器事件
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class TriggerEvent extends BaseNode {
|
|
7
|
+
/** 类名 */
|
|
8
|
+
static readonly ConceptName: string;
|
|
9
|
+
/**
|
|
10
|
+
* 是否为抽象类
|
|
11
|
+
* 抽象类不能产生 concept: string
|
|
12
|
+
*/
|
|
13
|
+
static isAbstract: boolean;
|
|
14
|
+
/** 继承链 */
|
|
15
|
+
static readonly inheritanceChain: string[];
|
|
16
|
+
/**
|
|
17
|
+
* 产品概念
|
|
18
|
+
*/
|
|
19
|
+
readonly concept: 'MsgTriggerEvent' | 'InterfaceTriggerEvent';
|
|
20
|
+
/**
|
|
21
|
+
* 触发器事件名称
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* 逻辑签名
|
|
26
|
+
*/
|
|
27
|
+
callBackLogic: TypeAnnotation;
|
|
28
|
+
/**
|
|
29
|
+
* @param source 需要合并的部分参数
|
|
30
|
+
*/
|
|
31
|
+
constructor(source?: Partial<TriggerEvent>);
|
|
32
|
+
static from(source: any, parentNode?: any, parentKey?: string): TriggerEvent;
|
|
33
|
+
/**
|
|
34
|
+
* 设置触发器事件名称
|
|
35
|
+
*/
|
|
36
|
+
setName(name: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* 设置逻辑签名
|
|
39
|
+
*/
|
|
40
|
+
setCallBackLogic(callBackLogic: TypeAnnotation): void;
|
|
41
|
+
}
|
|
42
|
+
export default TriggerEvent;
|