@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,145 @@
|
|
|
1
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
2
|
+
import Param from './Param__';
|
|
3
|
+
import AuthLogic from './AuthLogic__';
|
|
4
|
+
/**
|
|
5
|
+
* 调用接口的鉴权逻辑
|
|
6
|
+
*/
|
|
7
|
+
export declare class AuthLogicForCallInterface extends AuthLogic {
|
|
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: 'AuthLogicForCallInterface';
|
|
21
|
+
/**
|
|
22
|
+
* 鉴权配置参数, 调用接口鉴权独有
|
|
23
|
+
*/
|
|
24
|
+
authParams: Array<Param>;
|
|
25
|
+
/**
|
|
26
|
+
* @param source 需要合并的部分参数
|
|
27
|
+
*/
|
|
28
|
+
constructor(source?: Partial<AuthLogicForCallInterface>);
|
|
29
|
+
static from(source: any, parentNode?: any, parentKey?: string): AuthLogicForCallInterface;
|
|
30
|
+
getParamExistingNames(excludedList?: Array<Param>): string[];
|
|
31
|
+
getParamUniqueName(name?: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* 插入输入参数
|
|
34
|
+
* @internal
|
|
35
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
36
|
+
*/
|
|
37
|
+
_insertParamAt(name: string, index: number): Param;
|
|
38
|
+
/**
|
|
39
|
+
* 插入输入参数
|
|
40
|
+
* @internal
|
|
41
|
+
* @param paramOptions 输入参数参数
|
|
42
|
+
*/
|
|
43
|
+
_insertParamAt(paramOptions: Partial<Param>, index: number): Param;
|
|
44
|
+
/**
|
|
45
|
+
* 插入输入参数
|
|
46
|
+
* @internal
|
|
47
|
+
* @param param 已有的输入参数实例
|
|
48
|
+
*/
|
|
49
|
+
_insertParamAt(param: Param, index: number): Param;
|
|
50
|
+
/**
|
|
51
|
+
* 插入输入参数
|
|
52
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
53
|
+
*/
|
|
54
|
+
insertParamAt(name: string, index: number): Param;
|
|
55
|
+
/**
|
|
56
|
+
* 插入输入参数
|
|
57
|
+
* @param paramOptions 输入参数参数
|
|
58
|
+
*/
|
|
59
|
+
insertParamAt(paramOptions: Partial<Param>, index: number): Param;
|
|
60
|
+
/**
|
|
61
|
+
* 插入输入参数
|
|
62
|
+
* @param param 已有的输入参数实例
|
|
63
|
+
*/
|
|
64
|
+
insertParamAt(param: Param, index: number): Param;
|
|
65
|
+
/**
|
|
66
|
+
* 添加输入参数
|
|
67
|
+
* @internal
|
|
68
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
69
|
+
*/
|
|
70
|
+
_addParam(name?: string): Param;
|
|
71
|
+
/**
|
|
72
|
+
* 添加输入参数
|
|
73
|
+
* @internal
|
|
74
|
+
* @param paramOptions 输入参数参数
|
|
75
|
+
*/
|
|
76
|
+
_addParam(paramOptions: Partial<Param>): Param;
|
|
77
|
+
/**
|
|
78
|
+
* 添加输入参数
|
|
79
|
+
* @internal
|
|
80
|
+
* @param param 已有的输入参数实例
|
|
81
|
+
*/
|
|
82
|
+
_addParam(param: Param): Param;
|
|
83
|
+
/**
|
|
84
|
+
* 添加输入参数
|
|
85
|
+
* @internal
|
|
86
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
87
|
+
*/
|
|
88
|
+
addParam(name?: string): Param;
|
|
89
|
+
/**
|
|
90
|
+
* 添加输入参数
|
|
91
|
+
* @param paramOptions 输入参数参数
|
|
92
|
+
*/
|
|
93
|
+
addParam(paramOptions: Partial<Param>): Param;
|
|
94
|
+
/**
|
|
95
|
+
* 添加输入参数
|
|
96
|
+
* @param param 已有的输入参数实例
|
|
97
|
+
*/
|
|
98
|
+
addParam(param: Param): Param;
|
|
99
|
+
/**
|
|
100
|
+
* 删除输入参数
|
|
101
|
+
* @param name 输入参数名称
|
|
102
|
+
*/
|
|
103
|
+
removeParam(name: string): void;
|
|
104
|
+
/**
|
|
105
|
+
* 删除输入参数
|
|
106
|
+
* @param param 已有的输入参数实例
|
|
107
|
+
*/
|
|
108
|
+
removeParam(param: Param): void;
|
|
109
|
+
get tsName(): string;
|
|
110
|
+
toEmbeddedTS(state?: TranslatorState, prefix?: string): TranslatorGenerator;
|
|
111
|
+
static getDefaultOptions(): {
|
|
112
|
+
body: {
|
|
113
|
+
concept: string;
|
|
114
|
+
label: string;
|
|
115
|
+
kind: string;
|
|
116
|
+
type: string;
|
|
117
|
+
}[];
|
|
118
|
+
params: {
|
|
119
|
+
concept: string;
|
|
120
|
+
name: string;
|
|
121
|
+
description: string;
|
|
122
|
+
typeAnnotation: {
|
|
123
|
+
concept: string;
|
|
124
|
+
typeKind: string;
|
|
125
|
+
typeNamespace: string;
|
|
126
|
+
typeName: string;
|
|
127
|
+
typeArguments: {
|
|
128
|
+
concept: string;
|
|
129
|
+
typeKind: string;
|
|
130
|
+
typeNamespace: string;
|
|
131
|
+
typeName: string;
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
required: boolean;
|
|
135
|
+
}[];
|
|
136
|
+
returns: any[];
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* 生成宿主语言的文件路径
|
|
140
|
+
* @param name 一般不用传,用于 rename
|
|
141
|
+
*/
|
|
142
|
+
getEmbeddedFilePath(name?: string): string;
|
|
143
|
+
getTsNamespace(): string;
|
|
144
|
+
}
|
|
145
|
+
export default AuthLogicForCallInterface;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import Module from './Module__';
|
|
2
|
+
import View from './View__';
|
|
3
|
+
import Frontend from './Frontend__';
|
|
4
|
+
import ProcessElement from './ProcessElement__';
|
|
5
|
+
import Process from './Process__';
|
|
6
|
+
import Logic from './Logic__';
|
|
7
|
+
/**
|
|
8
|
+
* 鉴权逻辑
|
|
9
|
+
*/
|
|
10
|
+
export declare class AuthLogic extends Logic {
|
|
11
|
+
/** 类名 */
|
|
12
|
+
static readonly ConceptName: string;
|
|
13
|
+
/**
|
|
14
|
+
* 是否为抽象类
|
|
15
|
+
* 抽象类不能产生 concept: string
|
|
16
|
+
*/
|
|
17
|
+
static isAbstract: boolean;
|
|
18
|
+
/** 继承链 */
|
|
19
|
+
static readonly inheritanceChain: string[];
|
|
20
|
+
/**
|
|
21
|
+
* 产品概念
|
|
22
|
+
*/
|
|
23
|
+
readonly concept: 'AuthLogic' | 'AuthLogicForCallInterface';
|
|
24
|
+
/**
|
|
25
|
+
* 是否为默认鉴权逻辑
|
|
26
|
+
*/
|
|
27
|
+
isDefault: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @param source 需要合并的部分参数
|
|
30
|
+
*/
|
|
31
|
+
constructor(source?: Partial<AuthLogic>);
|
|
32
|
+
static from(source: any, parentNode?: any, parentKey?: string): AuthLogic;
|
|
33
|
+
/**
|
|
34
|
+
* 设置是否为默认鉴权逻辑
|
|
35
|
+
*/
|
|
36
|
+
setIsDefault(isDefault: boolean): void;
|
|
37
|
+
/**
|
|
38
|
+
* 祖先 Module
|
|
39
|
+
*/
|
|
40
|
+
get module(): Module;
|
|
41
|
+
/**
|
|
42
|
+
* 祖先 View
|
|
43
|
+
*/
|
|
44
|
+
get view(): View;
|
|
45
|
+
/**
|
|
46
|
+
* 祖先 Frontend
|
|
47
|
+
*/
|
|
48
|
+
get frontend(): Frontend;
|
|
49
|
+
/**
|
|
50
|
+
* 祖先 ProcessElement
|
|
51
|
+
*/
|
|
52
|
+
get processElement(): ProcessElement;
|
|
53
|
+
/**
|
|
54
|
+
* 祖先 Process
|
|
55
|
+
*/
|
|
56
|
+
get process(): Process;
|
|
57
|
+
static getDefaultOptions(): Partial<{
|
|
58
|
+
body: Array<any>;
|
|
59
|
+
params: Array<any>;
|
|
60
|
+
returns: Array<any>;
|
|
61
|
+
}>;
|
|
62
|
+
/**
|
|
63
|
+
* 生成宿主语言的文件路径
|
|
64
|
+
* @param name 一般不用传,用于 rename
|
|
65
|
+
*/
|
|
66
|
+
getEmbeddedFilePath(name?: string): string;
|
|
67
|
+
getTsNamespace(): string;
|
|
68
|
+
}
|
|
69
|
+
export default AuthLogic;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { EmbeddedTSFileGenerator } from '../utils';
|
|
2
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
3
|
+
import { ElementToVueOptions } from './ViewElement__';
|
|
4
|
+
import type EntityProperty from './EntityProperty__';
|
|
5
|
+
import type StructureProperty from './StructureProperty__';
|
|
6
|
+
import Backend from './Backend__';
|
|
7
|
+
import View from './View__';
|
|
8
|
+
import Module from './Module__';
|
|
9
|
+
import Frontend from './Frontend__';
|
|
10
|
+
import BaseNode from '../common/BaseNode';
|
|
11
|
+
import TypeAnnotation from './TypeAnnotation__';
|
|
12
|
+
import DefaultValue from './DefaultValue__';
|
|
13
|
+
/**
|
|
14
|
+
* 后端全局变量
|
|
15
|
+
*/
|
|
16
|
+
export declare class BackendVariable extends BaseNode {
|
|
17
|
+
/** 类名 */
|
|
18
|
+
static readonly ConceptName: string;
|
|
19
|
+
/**
|
|
20
|
+
* 是否为抽象类
|
|
21
|
+
* 抽象类不能产生 concept: string
|
|
22
|
+
*/
|
|
23
|
+
static isAbstract: boolean;
|
|
24
|
+
/** 继承链 */
|
|
25
|
+
static readonly inheritanceChain: string[];
|
|
26
|
+
/**
|
|
27
|
+
* 产品概念
|
|
28
|
+
*/
|
|
29
|
+
readonly concept: 'BackendVariable';
|
|
30
|
+
/**
|
|
31
|
+
* 后端全局变量名称
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* 后端全局变量描述
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
* 类型
|
|
40
|
+
*/
|
|
41
|
+
typeAnnotation: TypeAnnotation;
|
|
42
|
+
/**
|
|
43
|
+
* 默认值
|
|
44
|
+
*/
|
|
45
|
+
defaultValue: DefaultValue;
|
|
46
|
+
/**
|
|
47
|
+
* 作用域
|
|
48
|
+
*/
|
|
49
|
+
scope: 'request' | 'applicaion';
|
|
50
|
+
/**
|
|
51
|
+
* @param source 需要合并的部分参数
|
|
52
|
+
*/
|
|
53
|
+
constructor(source?: Partial<BackendVariable>);
|
|
54
|
+
static from(source: any, parentNode?: any, parentKey?: string): BackendVariable;
|
|
55
|
+
/**
|
|
56
|
+
* 设置后端全局变量名称
|
|
57
|
+
*/
|
|
58
|
+
setName(name: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* 设置后端全局变量描述
|
|
61
|
+
*/
|
|
62
|
+
setDescription(description: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* 设置作用域
|
|
65
|
+
*/
|
|
66
|
+
setScope(scope: 'request' | 'applicaion'): void;
|
|
67
|
+
/**
|
|
68
|
+
* 祖先 Backend
|
|
69
|
+
*/
|
|
70
|
+
get Backend(): Backend;
|
|
71
|
+
/**
|
|
72
|
+
* 祖先 View
|
|
73
|
+
*/
|
|
74
|
+
get view(): View;
|
|
75
|
+
/**
|
|
76
|
+
* 祖先 Module
|
|
77
|
+
*/
|
|
78
|
+
get module(): Module;
|
|
79
|
+
/**
|
|
80
|
+
* 祖先 Frontend
|
|
81
|
+
*/
|
|
82
|
+
get frontend(): Frontend;
|
|
83
|
+
/**
|
|
84
|
+
* 自动补全的属性列表
|
|
85
|
+
*/
|
|
86
|
+
completionChildren: Array<EntityProperty | StructureProperty>;
|
|
87
|
+
toVue(options?: ElementToVueOptions): string;
|
|
88
|
+
toUI(state?: TranslatorState, hideDetails?: boolean): string;
|
|
89
|
+
toJS(state?: TranslatorState): string;
|
|
90
|
+
toEmbeddedTS(state?: TranslatorState): TranslatorGenerator;
|
|
91
|
+
isEnum(): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* 生成宿主语言的文件路径
|
|
94
|
+
* @param name 一般不用传,用于 rename
|
|
95
|
+
*/
|
|
96
|
+
getEmbeddedFilePath(name?: string): string;
|
|
97
|
+
getNamespace(): string;
|
|
98
|
+
toEmbeddedTSFile(): EmbeddedTSFileGenerator;
|
|
99
|
+
toEmbeddedTSInProcess(state?: TranslatorState): TranslatorGenerator;
|
|
100
|
+
/**
|
|
101
|
+
* 设置数据类型
|
|
102
|
+
* @param typeAnnotation 类型标注对象
|
|
103
|
+
*/
|
|
104
|
+
setDataType(typeAnnotation: TypeAnnotation): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* 设置数据类型
|
|
107
|
+
* @param typeAnnotation 类型唯一标识
|
|
108
|
+
*/
|
|
109
|
+
setDataType(typeKey: string): Promise<void>;
|
|
110
|
+
_setDataType(typeAnnotation: TypeAnnotation | string): Promise<void>;
|
|
111
|
+
static getDefaultOptions(): {};
|
|
112
|
+
/**
|
|
113
|
+
* 是否可编辑
|
|
114
|
+
* */
|
|
115
|
+
get readonly(): boolean;
|
|
116
|
+
toNaturalTS(state?: TranslatorState): string;
|
|
117
|
+
}
|
|
118
|
+
export default BackendVariable;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { EmbeddedTSFileGenerator } from '../utils';
|
|
2
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
3
|
+
import BaseNode from '../common/BaseNode';
|
|
4
|
+
import BackendVariable from './BackendVariable__';
|
|
5
|
+
/**
|
|
6
|
+
* 后端
|
|
7
|
+
*/
|
|
8
|
+
export declare class Backend extends BaseNode {
|
|
9
|
+
/** 类名 */
|
|
10
|
+
static readonly ConceptName: string;
|
|
11
|
+
/**
|
|
12
|
+
* 是否为抽象类
|
|
13
|
+
* 抽象类不能产生 concept: string
|
|
14
|
+
*/
|
|
15
|
+
static isAbstract: boolean;
|
|
16
|
+
/** 继承链 */
|
|
17
|
+
static readonly inheritanceChain: string[];
|
|
18
|
+
/**
|
|
19
|
+
* 产品概念
|
|
20
|
+
*/
|
|
21
|
+
readonly concept: 'Backend';
|
|
22
|
+
/**
|
|
23
|
+
* 后端标识
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* 后端全局变量列表
|
|
28
|
+
*/
|
|
29
|
+
variables: Array<BackendVariable>;
|
|
30
|
+
/**
|
|
31
|
+
* @param source 需要合并的部分参数
|
|
32
|
+
*/
|
|
33
|
+
constructor(source?: Partial<Backend>);
|
|
34
|
+
static from(source: any, parentNode?: any, parentKey?: string): Backend;
|
|
35
|
+
/**
|
|
36
|
+
* 设置后端标识
|
|
37
|
+
*/
|
|
38
|
+
setName(name: string): void;
|
|
39
|
+
getVarExistingNames(excludedList?: Array<BackendVariable>): string[];
|
|
40
|
+
getBackendVariableUniqueName(name?: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* 插入后端全局变量
|
|
43
|
+
* @internal
|
|
44
|
+
* @param name 后端全局变量名称,如果不填会自动生成一个唯一名称
|
|
45
|
+
*/
|
|
46
|
+
_insertBackendVariableAt(name: string, index: number): BackendVariable;
|
|
47
|
+
/**
|
|
48
|
+
* 插入后端全局变量
|
|
49
|
+
* @internal
|
|
50
|
+
* @param backendVariableOptions 后端全局变量参数
|
|
51
|
+
*/
|
|
52
|
+
_insertBackendVariableAt(backendVariableOptions: Partial<BackendVariable>, index: number): BackendVariable;
|
|
53
|
+
/**
|
|
54
|
+
* 插入后端全局变量
|
|
55
|
+
* @internal
|
|
56
|
+
* @param backendVariable 已有的后端全局变量实例
|
|
57
|
+
*/
|
|
58
|
+
_insertBackendVariableAt(backendVariable: BackendVariable, index: number): BackendVariable;
|
|
59
|
+
/**
|
|
60
|
+
* 插入后端全局变量
|
|
61
|
+
* @param name 后端全局变量名称,如果不填会自动生成一个唯一名称
|
|
62
|
+
*/
|
|
63
|
+
insertBackendVariableAt(name: string, index: number): BackendVariable;
|
|
64
|
+
/**
|
|
65
|
+
* 插入后端全局变量
|
|
66
|
+
* @param backendVariableOptions 后端全局变量参数
|
|
67
|
+
*/
|
|
68
|
+
insertBackendVariableAt(backendVariableOptions: Partial<BackendVariable>, index: number): BackendVariable;
|
|
69
|
+
/**
|
|
70
|
+
* 插入后端全局变量
|
|
71
|
+
* @param backendVariable 已有的后端全局变量实例
|
|
72
|
+
*/
|
|
73
|
+
insertBackendVariableAt(backendVariable: BackendVariable, index: number): BackendVariable;
|
|
74
|
+
/**
|
|
75
|
+
* 添加后端全局变量
|
|
76
|
+
* @internal
|
|
77
|
+
* @param name 后端全局变量名称,如果不填会自动生成一个唯一名称
|
|
78
|
+
*/
|
|
79
|
+
_addBackendVariable(name?: string): BackendVariable;
|
|
80
|
+
/**
|
|
81
|
+
* 添加后端全局变量
|
|
82
|
+
* @internal
|
|
83
|
+
* @param backendVariableOptions 后端全局变量参数
|
|
84
|
+
*/
|
|
85
|
+
_addBackendVariable(backendVariableOptions: Partial<BackendVariable>): BackendVariable;
|
|
86
|
+
/**
|
|
87
|
+
* 添加后端全局变量
|
|
88
|
+
* @internal
|
|
89
|
+
* @param backendVariable 已有的后端全局变量实例
|
|
90
|
+
*/
|
|
91
|
+
_addBackendVariable(backendVariable: BackendVariable): BackendVariable;
|
|
92
|
+
/**
|
|
93
|
+
* 添加后端全局变量
|
|
94
|
+
* @internal
|
|
95
|
+
* @param name 后端全局变量名称,如果不填会自动生成一个唯一名称
|
|
96
|
+
*/
|
|
97
|
+
addBackendVariable(name?: string): BackendVariable;
|
|
98
|
+
/**
|
|
99
|
+
* 添加后端全局变量
|
|
100
|
+
* @param backendVariableOptions 后端全局变量参数
|
|
101
|
+
*/
|
|
102
|
+
addBackendVariable(backendVariableOptions: Partial<BackendVariable>): BackendVariable;
|
|
103
|
+
/**
|
|
104
|
+
* 添加后端全局变量
|
|
105
|
+
* @param backendVariable 已有的后端全局变量实例
|
|
106
|
+
*/
|
|
107
|
+
addBackendVariable(backendVariable: BackendVariable): BackendVariable;
|
|
108
|
+
/**
|
|
109
|
+
* 删除后端全局变量
|
|
110
|
+
* @param name 后端全局变量名称
|
|
111
|
+
*/
|
|
112
|
+
removeBackendVariable(name: string): void;
|
|
113
|
+
/**
|
|
114
|
+
* 删除后端全局变量
|
|
115
|
+
* @param backendVariable 已有的后端全局变量实例
|
|
116
|
+
*/
|
|
117
|
+
removeBackendVariable(backendVariable: BackendVariable): void;
|
|
118
|
+
getNamespace(): string;
|
|
119
|
+
/**
|
|
120
|
+
* 生成宿主语言的文件路径
|
|
121
|
+
* @param name 一般不用传,用于 rename
|
|
122
|
+
*/
|
|
123
|
+
getEmbeddedFilePath(name?: string): string;
|
|
124
|
+
toEmbeddedTS(state?: TranslatorState): TranslatorGenerator;
|
|
125
|
+
toEmbeddedTSFile(): EmbeddedTSFileGenerator;
|
|
126
|
+
}
|
|
127
|
+
export default Backend;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import BaseNode from '../common/BaseNode';
|
|
2
|
+
/**
|
|
3
|
+
* 设置器基类
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class BaseSetter 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: 'InputSetter' | 'SwitchSetter' | 'EnumSelectSetter' | 'CapsulesSetter' | 'NumberInputSetter' | 'IconSetter' | 'ImageSetter' | 'PropertySelectSetter';
|
|
19
|
+
/**
|
|
20
|
+
* @param source 需要合并的部分参数
|
|
21
|
+
*/
|
|
22
|
+
constructor(source?: Partial<BaseSetter>);
|
|
23
|
+
static from(source: any, parentNode?: any, parentKey?: string): BaseSetter;
|
|
24
|
+
}
|
|
25
|
+
export default BaseSetter;
|