@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,13 @@
|
|
|
1
|
+
import type { Range } from '../../translator';
|
|
2
|
+
export type { Range } from '../../translator';
|
|
3
|
+
/** 获取当前代码 */
|
|
4
|
+
export declare type GetCode = () => string;
|
|
5
|
+
export interface QuickInfoData {
|
|
6
|
+
/** 行 */
|
|
7
|
+
line: number;
|
|
8
|
+
/** 列 */
|
|
9
|
+
offset: number;
|
|
10
|
+
}
|
|
11
|
+
export declare type GetQuickInfoOffset = (range: Range, getCode: GetCode) => QuickInfoData;
|
|
12
|
+
export declare function getCallExpressionQuickInfo(range: Range, getCode: GetCode): QuickInfoData;
|
|
13
|
+
export declare function getNewCompositeQuickInfo(concept: 'NewComposite' | 'NewList' | 'NewMap', range: Range, getCode: GetCode): QuickInfoData;
|
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import type { App } from '../App__';
|
|
2
|
+
import type { Module } from '../Module__';
|
|
3
|
+
import type { Namespace } from '../Namespace__';
|
|
4
|
+
import type { FrontendType } from '../FrontendType__';
|
|
5
|
+
import type { Frontend } from '../Frontend__';
|
|
6
|
+
import type { Backend } from '../Backend__';
|
|
7
|
+
import type { Integration } from '../Integration__';
|
|
8
|
+
import type { MicroApp } from '../MicroApp__';
|
|
9
|
+
import type { TypeAnnotation } from '../TypeAnnotation__';
|
|
10
|
+
import type { DatabaseTypeAnnotation } from '../DatabaseTypeAnnotation__';
|
|
11
|
+
import type { TypeParam } from '../TypeParam__';
|
|
12
|
+
import type { Structure } from '../Structure__';
|
|
13
|
+
import type { StructureProperty } from '../StructureProperty__';
|
|
14
|
+
import type { Enum } from '../Enum__';
|
|
15
|
+
import type { EnumItem } from '../EnumItem__';
|
|
16
|
+
import type { DataSource } from '../DataSource__';
|
|
17
|
+
import type { Entity } from '../Entity__';
|
|
18
|
+
import type { EntityProperty } from '../EntityProperty__';
|
|
19
|
+
import type { EntityIndex } from '../EntityIndex__';
|
|
20
|
+
import type { MetadataType } from '../MetadataType__';
|
|
21
|
+
import type { View } from '../View__';
|
|
22
|
+
import type { ViewElement } from '../ViewElement__';
|
|
23
|
+
import type { BindAttribute } from '../BindAttribute__';
|
|
24
|
+
import type { BindDirective } from '../BindDirective__';
|
|
25
|
+
import type { BindEvent } from '../BindEvent__';
|
|
26
|
+
import type { BindStyle } from '../BindStyle__';
|
|
27
|
+
import type { ThemeVariable } from '../ThemeVariable__';
|
|
28
|
+
import type { BaseSetter } from '../BaseSetter__';
|
|
29
|
+
import type { InputSetter } from '../InputSetter__';
|
|
30
|
+
import type { SwitchSetter } from '../SwitchSetter__';
|
|
31
|
+
import type { SetterOption } from '../SetterOption__';
|
|
32
|
+
import type { EnumSelectSetter } from '../EnumSelectSetter__';
|
|
33
|
+
import type { CapsulesSetter } from '../CapsulesSetter__';
|
|
34
|
+
import type { NumberInputSetter } from '../NumberInputSetter__';
|
|
35
|
+
import type { IconSetter } from '../IconSetter__';
|
|
36
|
+
import type { ImageSetter } from '../ImageSetter__';
|
|
37
|
+
import type { PropertySelectSetter } from '../PropertySelectSetter__';
|
|
38
|
+
import type { ViewComponentDeclaration } from '../ViewComponentDeclaration__';
|
|
39
|
+
import type { BusinessComponent } from '../BusinessComponent__';
|
|
40
|
+
import type { Attribute } from '../Attribute__';
|
|
41
|
+
import type { Event } from '../Event__';
|
|
42
|
+
import type { PropDeclaration } from '../PropDeclaration__';
|
|
43
|
+
import type { EventDeclaration } from '../EventDeclaration__';
|
|
44
|
+
import type { SlotDeclaration } from '../SlotDeclaration__';
|
|
45
|
+
import type { LogicDeclaration } from '../LogicDeclaration__';
|
|
46
|
+
import type { Theme } from '../Theme__';
|
|
47
|
+
import type { Logic } from '../Logic__';
|
|
48
|
+
import type { AuthLogic } from '../AuthLogic__';
|
|
49
|
+
import type { AuthLogicForCallInterface } from '../AuthLogicForCallInterface__';
|
|
50
|
+
import type { OverriddenLogic } from '../OverriddenLogic__';
|
|
51
|
+
import type { BusinessLogic } from '../BusinessLogic__';
|
|
52
|
+
import type { AbstractInterface } from '../AbstractInterface__';
|
|
53
|
+
import type { Param } from '../Param__';
|
|
54
|
+
import type { ParamWithGroup } from '../ParamWithGroup__';
|
|
55
|
+
import type { Return } from '../Return__';
|
|
56
|
+
import type { Variable } from '../Variable__';
|
|
57
|
+
import type { BackendVariable } from '../BackendVariable__';
|
|
58
|
+
import type { FrontendVariable } from '../FrontendVariable__';
|
|
59
|
+
import type { Constant } from '../Constant__';
|
|
60
|
+
import type { LogicItem } from '../LogicItem__';
|
|
61
|
+
import type { Function } from '../Function__';
|
|
62
|
+
import type { AnonymousFunction } from '../AnonymousFunction__';
|
|
63
|
+
import type { ImportedInterface } from '../ImportedInterface__';
|
|
64
|
+
import type { Interface } from '../Interface__';
|
|
65
|
+
import type { InterfaceParam } from '../InterfaceParam__';
|
|
66
|
+
import type { Transactional } from '../Transactional__';
|
|
67
|
+
import type { DefaultValue } from '../DefaultValue__';
|
|
68
|
+
import type { Abort } from '../Abort__';
|
|
69
|
+
import type { Start } from '../Start__';
|
|
70
|
+
import type { End } from '../End__';
|
|
71
|
+
import type { IfStatement } from '../IfStatement__';
|
|
72
|
+
import type { SwitchStatement } from '../SwitchStatement__';
|
|
73
|
+
import type { SwitchCase } from '../SwitchCase__';
|
|
74
|
+
import type { ForEachStatement } from '../ForEachStatement__';
|
|
75
|
+
import type { WhileStatement } from '../WhileStatement__';
|
|
76
|
+
import type { Assignment } from '../Assignment__';
|
|
77
|
+
import type { BatchAssignment } from '../BatchAssignment__';
|
|
78
|
+
import type { Comment } from '../Comment__';
|
|
79
|
+
import type { CallLogic } from '../CallLogic__';
|
|
80
|
+
import type { CallEvent } from '../CallEvent__';
|
|
81
|
+
import type { CallFunction } from '../CallFunction__';
|
|
82
|
+
import type { CallInterface } from '../CallInterface__';
|
|
83
|
+
import type { Destination } from '../Destination__';
|
|
84
|
+
import type { ExternalDestination } from '../ExternalDestination__';
|
|
85
|
+
import type { ValidationRule } from '../ValidationRule__';
|
|
86
|
+
import type { Argument } from '../Argument__';
|
|
87
|
+
import type { Anchor } from '../Anchor__';
|
|
88
|
+
import type { JSBlock } from '../JSBlock__';
|
|
89
|
+
import type { JavaLogic } from '../JavaLogic__';
|
|
90
|
+
import type { Block } from '../Block__';
|
|
91
|
+
import type { Identifier } from '../Identifier__';
|
|
92
|
+
import type { NullLiteral } from '../NullLiteral__';
|
|
93
|
+
import type { BooleanLiteral } from '../BooleanLiteral__';
|
|
94
|
+
import type { StringLiteral } from '../StringLiteral__';
|
|
95
|
+
import type { StringInterpolation } from '../StringInterpolation__';
|
|
96
|
+
import type { StaticString } from '../StaticString__';
|
|
97
|
+
import type { NumericLiteral } from '../NumericLiteral__';
|
|
98
|
+
import type { BinaryExpression } from '../BinaryExpression__';
|
|
99
|
+
import type { MatchCase } from '../MatchCase__';
|
|
100
|
+
import type { Match } from '../Match__';
|
|
101
|
+
import type { UnaryExpression } from '../UnaryExpression__';
|
|
102
|
+
import type { MemberExpression } from '../MemberExpression__';
|
|
103
|
+
import type { Unparsed } from '../Unparsed__';
|
|
104
|
+
import type { New } from '../New__';
|
|
105
|
+
import type { NewComposite } from '../NewComposite__';
|
|
106
|
+
import type { NewList } from '../NewList__';
|
|
107
|
+
import type { NewMap } from '../NewMap__';
|
|
108
|
+
import type { Paginate } from '../Paginate__';
|
|
109
|
+
import type { CallQueryComponent } from '../CallQueryComponent__';
|
|
110
|
+
import type { QueryFromExpression } from '../QueryFromExpression__';
|
|
111
|
+
import type { QueryJoinExpression } from '../QueryJoinExpression__';
|
|
112
|
+
import type { QueryFieldExpression } from '../QueryFieldExpression__';
|
|
113
|
+
import type { QueryAggregateExpression } from '../QueryAggregateExpression__';
|
|
114
|
+
import type { QueryOrderByExpression } from '../QueryOrderByExpression__';
|
|
115
|
+
import type { QueryGroupByExpression } from '../QueryGroupByExpression__';
|
|
116
|
+
import type { QuerySelectExpression } from '../QuerySelectExpression__';
|
|
117
|
+
import type { QueryLimitExpression } from '../QueryLimitExpression__';
|
|
118
|
+
import type { SqlQueryComponent } from '../SqlQueryComponent__';
|
|
119
|
+
import type { OqlQueryComponent } from '../OqlQueryComponent__';
|
|
120
|
+
import type { Process } from '../Process__';
|
|
121
|
+
import type { ProcessElement } from '../ProcessElement__';
|
|
122
|
+
import type { ProcessComponent } from '../ProcessComponent__';
|
|
123
|
+
import type { MultiApprovalPolicy } from '../MultiApprovalPolicy__';
|
|
124
|
+
import type { SequentialPolicy } from '../SequentialPolicy__';
|
|
125
|
+
import type { CountersignPolicy } from '../CountersignPolicy__';
|
|
126
|
+
import type { ProcessOutcome } from '../ProcessOutcome__';
|
|
127
|
+
import type { Assignee } from '../Assignee__';
|
|
128
|
+
import type { ProcessOutcomes } from '../ProcessOutcomes__';
|
|
129
|
+
import type { Role } from '../Role__';
|
|
130
|
+
import type { Configuration } from '../Configuration__';
|
|
131
|
+
import type { ConfigGroup } from '../ConfigGroup__';
|
|
132
|
+
import type { ConfigProperty } from '../ConfigProperty__';
|
|
133
|
+
import type { ConfigPropertyValue } from '../ConfigPropertyValue__';
|
|
134
|
+
import type { I18nInfo } from '../I18nInfo__';
|
|
135
|
+
import type { CompletionProperty } from '../CompletionProperty__';
|
|
136
|
+
import type { UseComponent } from '../UseComponent__';
|
|
137
|
+
import type { Point } from '../Point__';
|
|
138
|
+
import type { Rect } from '../Rect__';
|
|
139
|
+
import type { SelectMembers } from '../SelectMembers__';
|
|
140
|
+
import type { AssignmentLine } from '../AssignmentLine__';
|
|
141
|
+
import type { FrontendLibrary } from '../FrontendLibrary__';
|
|
142
|
+
import type { ViewBlock } from '../ViewBlock__';
|
|
143
|
+
import type { ViewBlockWithImage } from '../ViewBlockWithImage__';
|
|
144
|
+
import type { AuthInterface } from '../AuthInterface__';
|
|
145
|
+
import type { CallAuthInterface } from '../CallAuthInterface__';
|
|
146
|
+
import type { TriggerEvent } from '../TriggerEvent__';
|
|
147
|
+
import type { MsgTriggerEvent } from '../MsgTriggerEvent__';
|
|
148
|
+
import type { InterfaceTriggerEvent } from '../InterfaceTriggerEvent__';
|
|
149
|
+
import type { ConnectorTrigger } from '../ConnectorTrigger__';
|
|
150
|
+
import type { TriggerLauncher } from '../TriggerLauncher__';
|
|
151
|
+
import type { ConnectorTriggerLauncher } from '../ConnectorTriggerLauncher__';
|
|
152
|
+
import type { MsgTriggerLauncher } from '../MsgTriggerLauncher__';
|
|
153
|
+
import type { Connector } from '../Connector__';
|
|
154
|
+
import type { CallConnector } from '../CallConnector__';
|
|
155
|
+
import type { Connection } from '../Connection__';
|
|
156
|
+
import type { ConnectorLogic } from '../ConnectorLogic__';
|
|
157
|
+
/** concept 与类类型映射表 */
|
|
158
|
+
export interface ConceptTypeofClassMap {
|
|
159
|
+
App: typeof App;
|
|
160
|
+
Module: typeof Module;
|
|
161
|
+
Namespace: typeof Namespace;
|
|
162
|
+
FrontendType: typeof FrontendType;
|
|
163
|
+
Frontend: typeof Frontend;
|
|
164
|
+
Backend: typeof Backend;
|
|
165
|
+
Integration: typeof Integration;
|
|
166
|
+
MicroApp: typeof MicroApp;
|
|
167
|
+
TypeAnnotation: typeof TypeAnnotation;
|
|
168
|
+
DatabaseTypeAnnotation: typeof DatabaseTypeAnnotation;
|
|
169
|
+
TypeParam: typeof TypeParam;
|
|
170
|
+
Structure: typeof Structure;
|
|
171
|
+
StructureProperty: typeof StructureProperty;
|
|
172
|
+
Enum: typeof Enum;
|
|
173
|
+
EnumItem: typeof EnumItem;
|
|
174
|
+
DataSource: typeof DataSource;
|
|
175
|
+
Entity: typeof Entity;
|
|
176
|
+
EntityProperty: typeof EntityProperty;
|
|
177
|
+
EntityIndex: typeof EntityIndex;
|
|
178
|
+
MetadataType: typeof MetadataType;
|
|
179
|
+
View: typeof View;
|
|
180
|
+
ViewElement: typeof ViewElement;
|
|
181
|
+
BindAttribute: typeof BindAttribute;
|
|
182
|
+
BindDirective: typeof BindDirective;
|
|
183
|
+
BindEvent: typeof BindEvent;
|
|
184
|
+
BindStyle: typeof BindStyle;
|
|
185
|
+
ThemeVariable: typeof ThemeVariable;
|
|
186
|
+
BaseSetter: typeof BaseSetter;
|
|
187
|
+
InputSetter: typeof InputSetter;
|
|
188
|
+
SwitchSetter: typeof SwitchSetter;
|
|
189
|
+
SetterOption: typeof SetterOption;
|
|
190
|
+
EnumSelectSetter: typeof EnumSelectSetter;
|
|
191
|
+
CapsulesSetter: typeof CapsulesSetter;
|
|
192
|
+
NumberInputSetter: typeof NumberInputSetter;
|
|
193
|
+
IconSetter: typeof IconSetter;
|
|
194
|
+
ImageSetter: typeof ImageSetter;
|
|
195
|
+
PropertySelectSetter: typeof PropertySelectSetter;
|
|
196
|
+
ViewComponentDeclaration: typeof ViewComponentDeclaration;
|
|
197
|
+
BusinessComponent: typeof BusinessComponent;
|
|
198
|
+
Attribute: typeof Attribute;
|
|
199
|
+
Event: typeof Event;
|
|
200
|
+
PropDeclaration: typeof PropDeclaration;
|
|
201
|
+
EventDeclaration: typeof EventDeclaration;
|
|
202
|
+
SlotDeclaration: typeof SlotDeclaration;
|
|
203
|
+
LogicDeclaration: typeof LogicDeclaration;
|
|
204
|
+
Theme: typeof Theme;
|
|
205
|
+
Logic: typeof Logic;
|
|
206
|
+
AuthLogic: typeof AuthLogic;
|
|
207
|
+
AuthLogicForCallInterface: typeof AuthLogicForCallInterface;
|
|
208
|
+
OverriddenLogic: typeof OverriddenLogic;
|
|
209
|
+
BusinessLogic: typeof BusinessLogic;
|
|
210
|
+
AbstractInterface: typeof AbstractInterface;
|
|
211
|
+
Param: typeof Param;
|
|
212
|
+
ParamWithGroup: typeof ParamWithGroup;
|
|
213
|
+
Return: typeof Return;
|
|
214
|
+
Variable: typeof Variable;
|
|
215
|
+
BackendVariable: typeof BackendVariable;
|
|
216
|
+
FrontendVariable: typeof FrontendVariable;
|
|
217
|
+
Constant: typeof Constant;
|
|
218
|
+
LogicItem: typeof LogicItem;
|
|
219
|
+
Function: typeof Function;
|
|
220
|
+
AnonymousFunction: typeof AnonymousFunction;
|
|
221
|
+
ImportedInterface: typeof ImportedInterface;
|
|
222
|
+
Interface: typeof Interface;
|
|
223
|
+
InterfaceParam: typeof InterfaceParam;
|
|
224
|
+
Transactional: typeof Transactional;
|
|
225
|
+
DefaultValue: typeof DefaultValue;
|
|
226
|
+
Abort: typeof Abort;
|
|
227
|
+
Start: typeof Start;
|
|
228
|
+
End: typeof End;
|
|
229
|
+
IfStatement: typeof IfStatement;
|
|
230
|
+
SwitchStatement: typeof SwitchStatement;
|
|
231
|
+
SwitchCase: typeof SwitchCase;
|
|
232
|
+
ForEachStatement: typeof ForEachStatement;
|
|
233
|
+
WhileStatement: typeof WhileStatement;
|
|
234
|
+
Assignment: typeof Assignment;
|
|
235
|
+
BatchAssignment: typeof BatchAssignment;
|
|
236
|
+
Comment: typeof Comment;
|
|
237
|
+
CallLogic: typeof CallLogic;
|
|
238
|
+
CallEvent: typeof CallEvent;
|
|
239
|
+
CallFunction: typeof CallFunction;
|
|
240
|
+
CallInterface: typeof CallInterface;
|
|
241
|
+
Destination: typeof Destination;
|
|
242
|
+
ExternalDestination: typeof ExternalDestination;
|
|
243
|
+
ValidationRule: typeof ValidationRule;
|
|
244
|
+
Argument: typeof Argument;
|
|
245
|
+
Anchor: typeof Anchor;
|
|
246
|
+
JSBlock: typeof JSBlock;
|
|
247
|
+
JavaLogic: typeof JavaLogic;
|
|
248
|
+
Block: typeof Block;
|
|
249
|
+
Identifier: typeof Identifier;
|
|
250
|
+
NullLiteral: typeof NullLiteral;
|
|
251
|
+
BooleanLiteral: typeof BooleanLiteral;
|
|
252
|
+
StringLiteral: typeof StringLiteral;
|
|
253
|
+
StringInterpolation: typeof StringInterpolation;
|
|
254
|
+
StaticString: typeof StaticString;
|
|
255
|
+
NumericLiteral: typeof NumericLiteral;
|
|
256
|
+
BinaryExpression: typeof BinaryExpression;
|
|
257
|
+
MatchCase: typeof MatchCase;
|
|
258
|
+
Match: typeof Match;
|
|
259
|
+
UnaryExpression: typeof UnaryExpression;
|
|
260
|
+
MemberExpression: typeof MemberExpression;
|
|
261
|
+
Unparsed: typeof Unparsed;
|
|
262
|
+
New: typeof New;
|
|
263
|
+
NewComposite: typeof NewComposite;
|
|
264
|
+
NewList: typeof NewList;
|
|
265
|
+
NewMap: typeof NewMap;
|
|
266
|
+
Paginate: typeof Paginate;
|
|
267
|
+
CallQueryComponent: typeof CallQueryComponent;
|
|
268
|
+
QueryFromExpression: typeof QueryFromExpression;
|
|
269
|
+
QueryJoinExpression: typeof QueryJoinExpression;
|
|
270
|
+
QueryFieldExpression: typeof QueryFieldExpression;
|
|
271
|
+
QueryAggregateExpression: typeof QueryAggregateExpression;
|
|
272
|
+
QueryOrderByExpression: typeof QueryOrderByExpression;
|
|
273
|
+
QueryGroupByExpression: typeof QueryGroupByExpression;
|
|
274
|
+
QuerySelectExpression: typeof QuerySelectExpression;
|
|
275
|
+
QueryLimitExpression: typeof QueryLimitExpression;
|
|
276
|
+
SqlQueryComponent: typeof SqlQueryComponent;
|
|
277
|
+
OqlQueryComponent: typeof OqlQueryComponent;
|
|
278
|
+
Process: typeof Process;
|
|
279
|
+
ProcessElement: typeof ProcessElement;
|
|
280
|
+
ProcessComponent: typeof ProcessComponent;
|
|
281
|
+
MultiApprovalPolicy: typeof MultiApprovalPolicy;
|
|
282
|
+
SequentialPolicy: typeof SequentialPolicy;
|
|
283
|
+
CountersignPolicy: typeof CountersignPolicy;
|
|
284
|
+
ProcessOutcome: typeof ProcessOutcome;
|
|
285
|
+
Assignee: typeof Assignee;
|
|
286
|
+
ProcessOutcomes: typeof ProcessOutcomes;
|
|
287
|
+
Role: typeof Role;
|
|
288
|
+
Configuration: typeof Configuration;
|
|
289
|
+
ConfigGroup: typeof ConfigGroup;
|
|
290
|
+
ConfigProperty: typeof ConfigProperty;
|
|
291
|
+
ConfigPropertyValue: typeof ConfigPropertyValue;
|
|
292
|
+
I18nInfo: typeof I18nInfo;
|
|
293
|
+
CompletionProperty: typeof CompletionProperty;
|
|
294
|
+
UseComponent: typeof UseComponent;
|
|
295
|
+
Point: typeof Point;
|
|
296
|
+
Rect: typeof Rect;
|
|
297
|
+
SelectMembers: typeof SelectMembers;
|
|
298
|
+
AssignmentLine: typeof AssignmentLine;
|
|
299
|
+
FrontendLibrary: typeof FrontendLibrary;
|
|
300
|
+
ViewBlock: typeof ViewBlock;
|
|
301
|
+
ViewBlockWithImage: typeof ViewBlockWithImage;
|
|
302
|
+
AuthInterface: typeof AuthInterface;
|
|
303
|
+
CallAuthInterface: typeof CallAuthInterface;
|
|
304
|
+
TriggerEvent: typeof TriggerEvent;
|
|
305
|
+
MsgTriggerEvent: typeof MsgTriggerEvent;
|
|
306
|
+
InterfaceTriggerEvent: typeof InterfaceTriggerEvent;
|
|
307
|
+
ConnectorTrigger: typeof ConnectorTrigger;
|
|
308
|
+
TriggerLauncher: typeof TriggerLauncher;
|
|
309
|
+
ConnectorTriggerLauncher: typeof ConnectorTriggerLauncher;
|
|
310
|
+
MsgTriggerLauncher: typeof MsgTriggerLauncher;
|
|
311
|
+
Connector: typeof Connector;
|
|
312
|
+
CallConnector: typeof CallConnector;
|
|
313
|
+
Connection: typeof Connection;
|
|
314
|
+
ConnectorLogic: typeof ConnectorLogic;
|
|
315
|
+
}
|
|
316
|
+
/** concept 与类实例类型映射表 */
|
|
317
|
+
export interface ConceptClassMap {
|
|
318
|
+
App: App;
|
|
319
|
+
Module: Module;
|
|
320
|
+
Namespace: Namespace;
|
|
321
|
+
FrontendType: FrontendType;
|
|
322
|
+
Frontend: Frontend;
|
|
323
|
+
Backend: Backend;
|
|
324
|
+
Integration: Integration;
|
|
325
|
+
MicroApp: MicroApp;
|
|
326
|
+
TypeAnnotation: TypeAnnotation;
|
|
327
|
+
DatabaseTypeAnnotation: DatabaseTypeAnnotation;
|
|
328
|
+
TypeParam: TypeParam;
|
|
329
|
+
Structure: Structure;
|
|
330
|
+
StructureProperty: StructureProperty;
|
|
331
|
+
Enum: Enum;
|
|
332
|
+
EnumItem: EnumItem;
|
|
333
|
+
DataSource: DataSource;
|
|
334
|
+
Entity: Entity;
|
|
335
|
+
EntityProperty: EntityProperty;
|
|
336
|
+
EntityIndex: EntityIndex;
|
|
337
|
+
MetadataType: MetadataType;
|
|
338
|
+
View: View;
|
|
339
|
+
ViewElement: ViewElement;
|
|
340
|
+
BindAttribute: BindAttribute;
|
|
341
|
+
BindDirective: BindDirective;
|
|
342
|
+
BindEvent: BindEvent;
|
|
343
|
+
BindStyle: BindStyle;
|
|
344
|
+
ThemeVariable: ThemeVariable;
|
|
345
|
+
BaseSetter: BaseSetter;
|
|
346
|
+
InputSetter: InputSetter;
|
|
347
|
+
SwitchSetter: SwitchSetter;
|
|
348
|
+
SetterOption: SetterOption;
|
|
349
|
+
EnumSelectSetter: EnumSelectSetter;
|
|
350
|
+
CapsulesSetter: CapsulesSetter;
|
|
351
|
+
NumberInputSetter: NumberInputSetter;
|
|
352
|
+
IconSetter: IconSetter;
|
|
353
|
+
ImageSetter: ImageSetter;
|
|
354
|
+
PropertySelectSetter: PropertySelectSetter;
|
|
355
|
+
ViewComponentDeclaration: ViewComponentDeclaration;
|
|
356
|
+
BusinessComponent: BusinessComponent;
|
|
357
|
+
Attribute: Attribute;
|
|
358
|
+
Event: Event;
|
|
359
|
+
PropDeclaration: PropDeclaration;
|
|
360
|
+
EventDeclaration: EventDeclaration;
|
|
361
|
+
SlotDeclaration: SlotDeclaration;
|
|
362
|
+
LogicDeclaration: LogicDeclaration;
|
|
363
|
+
Theme: Theme;
|
|
364
|
+
Logic: Logic;
|
|
365
|
+
AuthLogic: AuthLogic;
|
|
366
|
+
AuthLogicForCallInterface: AuthLogicForCallInterface;
|
|
367
|
+
OverriddenLogic: OverriddenLogic;
|
|
368
|
+
BusinessLogic: BusinessLogic;
|
|
369
|
+
AbstractInterface: AbstractInterface;
|
|
370
|
+
Param: Param;
|
|
371
|
+
ParamWithGroup: ParamWithGroup;
|
|
372
|
+
Return: Return;
|
|
373
|
+
Variable: Variable;
|
|
374
|
+
BackendVariable: BackendVariable;
|
|
375
|
+
FrontendVariable: FrontendVariable;
|
|
376
|
+
Constant: Constant;
|
|
377
|
+
LogicItem: LogicItem;
|
|
378
|
+
Function: Function;
|
|
379
|
+
AnonymousFunction: AnonymousFunction;
|
|
380
|
+
ImportedInterface: ImportedInterface;
|
|
381
|
+
Interface: Interface;
|
|
382
|
+
InterfaceParam: InterfaceParam;
|
|
383
|
+
Transactional: Transactional;
|
|
384
|
+
DefaultValue: DefaultValue;
|
|
385
|
+
Abort: Abort;
|
|
386
|
+
Start: Start;
|
|
387
|
+
End: End;
|
|
388
|
+
IfStatement: IfStatement;
|
|
389
|
+
SwitchStatement: SwitchStatement;
|
|
390
|
+
SwitchCase: SwitchCase;
|
|
391
|
+
ForEachStatement: ForEachStatement;
|
|
392
|
+
WhileStatement: WhileStatement;
|
|
393
|
+
Assignment: Assignment;
|
|
394
|
+
BatchAssignment: BatchAssignment;
|
|
395
|
+
Comment: Comment;
|
|
396
|
+
CallLogic: CallLogic;
|
|
397
|
+
CallEvent: CallEvent;
|
|
398
|
+
CallFunction: CallFunction;
|
|
399
|
+
CallInterface: CallInterface;
|
|
400
|
+
Destination: Destination;
|
|
401
|
+
ExternalDestination: ExternalDestination;
|
|
402
|
+
ValidationRule: ValidationRule;
|
|
403
|
+
Argument: Argument;
|
|
404
|
+
Anchor: Anchor;
|
|
405
|
+
JSBlock: JSBlock;
|
|
406
|
+
JavaLogic: JavaLogic;
|
|
407
|
+
Block: Block;
|
|
408
|
+
Identifier: Identifier;
|
|
409
|
+
NullLiteral: NullLiteral;
|
|
410
|
+
BooleanLiteral: BooleanLiteral;
|
|
411
|
+
StringLiteral: StringLiteral;
|
|
412
|
+
StringInterpolation: StringInterpolation;
|
|
413
|
+
StaticString: StaticString;
|
|
414
|
+
NumericLiteral: NumericLiteral;
|
|
415
|
+
BinaryExpression: BinaryExpression;
|
|
416
|
+
MatchCase: MatchCase;
|
|
417
|
+
Match: Match;
|
|
418
|
+
UnaryExpression: UnaryExpression;
|
|
419
|
+
MemberExpression: MemberExpression;
|
|
420
|
+
Unparsed: Unparsed;
|
|
421
|
+
New: New;
|
|
422
|
+
NewComposite: NewComposite;
|
|
423
|
+
NewList: NewList;
|
|
424
|
+
NewMap: NewMap;
|
|
425
|
+
Paginate: Paginate;
|
|
426
|
+
CallQueryComponent: CallQueryComponent;
|
|
427
|
+
QueryFromExpression: QueryFromExpression;
|
|
428
|
+
QueryJoinExpression: QueryJoinExpression;
|
|
429
|
+
QueryFieldExpression: QueryFieldExpression;
|
|
430
|
+
QueryAggregateExpression: QueryAggregateExpression;
|
|
431
|
+
QueryOrderByExpression: QueryOrderByExpression;
|
|
432
|
+
QueryGroupByExpression: QueryGroupByExpression;
|
|
433
|
+
QuerySelectExpression: QuerySelectExpression;
|
|
434
|
+
QueryLimitExpression: QueryLimitExpression;
|
|
435
|
+
SqlQueryComponent: SqlQueryComponent;
|
|
436
|
+
OqlQueryComponent: OqlQueryComponent;
|
|
437
|
+
Process: Process;
|
|
438
|
+
ProcessElement: ProcessElement;
|
|
439
|
+
ProcessComponent: ProcessComponent;
|
|
440
|
+
MultiApprovalPolicy: MultiApprovalPolicy;
|
|
441
|
+
SequentialPolicy: SequentialPolicy;
|
|
442
|
+
CountersignPolicy: CountersignPolicy;
|
|
443
|
+
ProcessOutcome: ProcessOutcome;
|
|
444
|
+
Assignee: Assignee;
|
|
445
|
+
ProcessOutcomes: ProcessOutcomes;
|
|
446
|
+
Role: Role;
|
|
447
|
+
Configuration: Configuration;
|
|
448
|
+
ConfigGroup: ConfigGroup;
|
|
449
|
+
ConfigProperty: ConfigProperty;
|
|
450
|
+
ConfigPropertyValue: ConfigPropertyValue;
|
|
451
|
+
I18nInfo: I18nInfo;
|
|
452
|
+
CompletionProperty: CompletionProperty;
|
|
453
|
+
UseComponent: UseComponent;
|
|
454
|
+
Point: Point;
|
|
455
|
+
Rect: Rect;
|
|
456
|
+
SelectMembers: SelectMembers;
|
|
457
|
+
AssignmentLine: AssignmentLine;
|
|
458
|
+
FrontendLibrary: FrontendLibrary;
|
|
459
|
+
ViewBlock: ViewBlock;
|
|
460
|
+
ViewBlockWithImage: ViewBlockWithImage;
|
|
461
|
+
AuthInterface: AuthInterface;
|
|
462
|
+
CallAuthInterface: CallAuthInterface;
|
|
463
|
+
TriggerEvent: TriggerEvent;
|
|
464
|
+
MsgTriggerEvent: MsgTriggerEvent;
|
|
465
|
+
InterfaceTriggerEvent: InterfaceTriggerEvent;
|
|
466
|
+
ConnectorTrigger: ConnectorTrigger;
|
|
467
|
+
TriggerLauncher: TriggerLauncher;
|
|
468
|
+
ConnectorTriggerLauncher: ConnectorTriggerLauncher;
|
|
469
|
+
MsgTriggerLauncher: MsgTriggerLauncher;
|
|
470
|
+
Connector: Connector;
|
|
471
|
+
CallConnector: CallConnector;
|
|
472
|
+
Connection: Connection;
|
|
473
|
+
ConnectorLogic: ConnectorLogic;
|
|
474
|
+
}
|
|
475
|
+
export declare type SyntaxNode = App | Module | Namespace | FrontendType | Frontend | Backend | Integration | MicroApp | TypeAnnotation | DatabaseTypeAnnotation | TypeParam | Structure | StructureProperty | Enum | EnumItem | DataSource | Entity | EntityProperty | EntityIndex | MetadataType | View | ViewElement | BindAttribute | BindDirective | BindEvent | BindStyle | ThemeVariable | InputSetter | SwitchSetter | SetterOption | EnumSelectSetter | CapsulesSetter | NumberInputSetter | IconSetter | ImageSetter | PropertySelectSetter | ViewComponentDeclaration | BusinessComponent | Attribute | Event | PropDeclaration | EventDeclaration | SlotDeclaration | LogicDeclaration | Theme | Logic | AuthLogic | AuthLogicForCallInterface | OverriddenLogic | BusinessLogic | Param | ParamWithGroup | Return | Variable | BackendVariable | FrontendVariable | Constant | Function | AnonymousFunction | Interface | InterfaceParam | Transactional | DefaultValue | Abort | Start | End | IfStatement | SwitchStatement | SwitchCase | ForEachStatement | WhileStatement | Assignment | BatchAssignment | Comment | CallLogic | CallEvent | CallFunction | CallInterface | Destination | ExternalDestination | ValidationRule | Argument | Anchor | JSBlock | JavaLogic | Block | Identifier | NullLiteral | BooleanLiteral | StringLiteral | StringInterpolation | StaticString | NumericLiteral | BinaryExpression | MatchCase | Match | UnaryExpression | MemberExpression | Unparsed | New | NewComposite | NewList | NewMap | Paginate | CallQueryComponent | QueryFromExpression | QueryJoinExpression | QueryFieldExpression | QueryAggregateExpression | QueryOrderByExpression | QueryGroupByExpression | QuerySelectExpression | QueryLimitExpression | SqlQueryComponent | OqlQueryComponent | Process | ProcessElement | ProcessComponent | SequentialPolicy | CountersignPolicy | ProcessOutcome | Assignee | ProcessOutcomes | Role | Configuration | ConfigGroup | ConfigProperty | ConfigPropertyValue | I18nInfo | CompletionProperty | UseComponent | Point | Rect | SelectMembers | AssignmentLine | FrontendLibrary | ViewBlock | ViewBlockWithImage | AuthInterface | CallAuthInterface | MsgTriggerEvent | InterfaceTriggerEvent | ConnectorTrigger | TriggerLauncher | ConnectorTriggerLauncher | MsgTriggerLauncher | Connector | CallConnector | Connection | ConnectorLogic;
|
|
476
|
+
export declare type SyntaxNodeConcept = SyntaxNode['concept'];
|
|
477
|
+
export declare type ModuleNode = Module | Connector;
|
|
478
|
+
export declare type ModuleNodeConcept = ModuleNode['concept'];
|
|
479
|
+
export declare type BaseSetterNode = InputSetter | SwitchSetter | EnumSelectSetter | CapsulesSetter | NumberInputSetter | IconSetter | ImageSetter | PropertySelectSetter;
|
|
480
|
+
export declare type BaseSetterNodeConcept = BaseSetterNode['concept'];
|
|
481
|
+
export declare type LogicNode = Logic | AuthLogic | AuthLogicForCallInterface | BusinessLogic | ConnectorLogic;
|
|
482
|
+
export declare type LogicNodeConcept = LogicNode['concept'];
|
|
483
|
+
export declare type AuthLogicNode = AuthLogic | AuthLogicForCallInterface;
|
|
484
|
+
export declare type AuthLogicNodeConcept = AuthLogicNode['concept'];
|
|
485
|
+
export declare type AbstractInterfaceNode = Interface | AuthInterface;
|
|
486
|
+
export declare type AbstractInterfaceNodeConcept = AbstractInterfaceNode['concept'];
|
|
487
|
+
export declare type ParamNode = Param | ParamWithGroup;
|
|
488
|
+
export declare type ParamNodeConcept = ParamNode['concept'];
|
|
489
|
+
export declare type VariableNode = Variable | FrontendVariable;
|
|
490
|
+
export declare type VariableNodeConcept = VariableNode['concept'];
|
|
491
|
+
export declare type LogicItemNode = AnonymousFunction | Abort | Start | End | IfStatement | SwitchStatement | SwitchCase | ForEachStatement | WhileStatement | Assignment | BatchAssignment | Comment | CallLogic | CallConnector | CallEvent | CallFunction | CallInterface | CallAuthInterface | Destination | ExternalDestination | ValidationRule | Argument | Anchor | JSBlock | JavaLogic | Block | Identifier | NullLiteral | BooleanLiteral | StringLiteral | StringInterpolation | NumericLiteral | BinaryExpression | MatchCase | Match | UnaryExpression | MemberExpression | Unparsed | New | NewComposite | NewList | NewMap | Paginate | CallQueryComponent | QueryFromExpression | QueryJoinExpression | QueryFieldExpression | QueryAggregateExpression | QueryOrderByExpression | QueryGroupByExpression | QuerySelectExpression | QueryLimitExpression | SqlQueryComponent | OqlQueryComponent | ProcessOutcome | Assignee | ProcessOutcomes;
|
|
492
|
+
export declare type LogicItemNodeConcept = LogicItemNode['concept'];
|
|
493
|
+
export declare type ImportedInterfaceNode = Interface | AuthInterface;
|
|
494
|
+
export declare type ImportedInterfaceNodeConcept = ImportedInterfaceNode['concept'];
|
|
495
|
+
export declare type InterfaceNode = Interface | AuthInterface;
|
|
496
|
+
export declare type InterfaceNodeConcept = InterfaceNode['concept'];
|
|
497
|
+
export declare type CallLogicNode = CallLogic | CallConnector;
|
|
498
|
+
export declare type CallLogicNodeConcept = CallLogicNode['concept'];
|
|
499
|
+
export declare type CallInterfaceNode = CallInterface | CallAuthInterface;
|
|
500
|
+
export declare type CallInterfaceNodeConcept = CallInterfaceNode['concept'];
|
|
501
|
+
export declare type MultiApprovalPolicyNode = SequentialPolicy | CountersignPolicy;
|
|
502
|
+
export declare type MultiApprovalPolicyNodeConcept = MultiApprovalPolicyNode['concept'];
|
|
503
|
+
export declare type ViewBlockNode = ViewBlock | ViewBlockWithImage;
|
|
504
|
+
export declare type ViewBlockNodeConcept = ViewBlockNode['concept'];
|
|
505
|
+
export declare type TriggerEventNode = MsgTriggerEvent | InterfaceTriggerEvent;
|
|
506
|
+
export declare type TriggerEventNodeConcept = TriggerEventNode['concept'];
|
|
507
|
+
export declare type TriggerLauncherNode = TriggerLauncher | ConnectorTriggerLauncher | MsgTriggerLauncher;
|
|
508
|
+
export declare type TriggerLauncherNodeConcept = TriggerLauncherNode['concept'];
|
|
509
|
+
export declare type ConnectorTriggerLauncherNode = ConnectorTriggerLauncher | MsgTriggerLauncher;
|
|
510
|
+
export declare type ConnectorTriggerLauncherNodeConcept = ConnectorTriggerLauncherNode['concept'];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import ComponentAPI from './common/ComponentAPI';
|
|
2
|
+
export declare type Protocol = 'http' | 'file' | 'mock';
|
|
3
|
+
export declare const config: {
|
|
4
|
+
mock: string;
|
|
5
|
+
storage: {
|
|
6
|
+
protocol: Protocol;
|
|
7
|
+
/**
|
|
8
|
+
* 基本远程路径或 fs 路径
|
|
9
|
+
*/
|
|
10
|
+
basePath: string;
|
|
11
|
+
cookie: string;
|
|
12
|
+
};
|
|
13
|
+
baseURL: string;
|
|
14
|
+
staticURL: string;
|
|
15
|
+
scope: "pc" | "h5";
|
|
16
|
+
cookie: string;
|
|
17
|
+
debug: boolean;
|
|
18
|
+
debugRequest: boolean;
|
|
19
|
+
reloadAlways: boolean;
|
|
20
|
+
advancedFeatures: boolean;
|
|
21
|
+
showTSError: boolean;
|
|
22
|
+
throttleWait: number;
|
|
23
|
+
allNodesAPI: {
|
|
24
|
+
[name: string]: ComponentAPI;
|
|
25
|
+
};
|
|
26
|
+
closeViews: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 前端制品client.js依赖资源
|
|
29
|
+
* 使用场景:导出源码
|
|
30
|
+
*/
|
|
31
|
+
frontendPackagesResource: {
|
|
32
|
+
path: string;
|
|
33
|
+
isDir: boolean;
|
|
34
|
+
url: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 连接存储层
|
|
39
|
+
* 可以是远程服务,也可以是本地文件
|
|
40
|
+
* @param protocol 'http'表示远程服务,'file'表示本地文件
|
|
41
|
+
* @param basePath 基础路径。协议为'http'的示例如:'/proxy/file-storage'、'http://dogfood.lcap.163yun.com';协议为'file'的示例如:'./demo-app.json'、'/root/some/path/app123.json'
|
|
42
|
+
*/
|
|
43
|
+
export declare function connect(protocol: Protocol, basePath: string): Promise<void>;
|
|
44
|
+
export declare function connect(protocol: Protocol, basePath: string, cookie: string): Promise<void>;
|
|
45
|
+
export declare function connect(protocol: Protocol, basePath: string, username: string, password: string): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* 便捷登录,只支持普通登录
|
|
48
|
+
* @required 需要先配置好 config.baseURL
|
|
49
|
+
* @param username 用户名
|
|
50
|
+
* @param password 密码
|
|
51
|
+
*/
|
|
52
|
+
export declare function login(username: string, password: string): Promise<string>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type BaseNode from '../common/BaseNode';
|
|
2
|
+
import type { SyntaxNode, SyntaxNodeConcept, ConceptTypeofClassMap } from '../concepts/utils/types';
|
|
3
|
+
export * from './promise';
|
|
4
|
+
/**
|
|
5
|
+
* 不可修改装饰器,非强制。
|
|
6
|
+
*
|
|
7
|
+
* 赋值时会修改值,但如果所在对象 _mutable 为 false 的话,会提示错误。
|
|
8
|
+
*
|
|
9
|
+
* *名称与 JS 和 TS 的 readonly, writable 作了区分,看起来清爽,避免混淆*。
|
|
10
|
+
*/
|
|
11
|
+
export declare function immutable(): (target: any, key: string | number | symbol) => void;
|
|
12
|
+
declare type ConceptMeta<T extends string = string> = {
|
|
13
|
+
constructor: T extends keyof ConceptTypeofClassMap ? ConceptTypeofClassMap[T] : {
|
|
14
|
+
new (...args: any[]): any;
|
|
15
|
+
};
|
|
16
|
+
propertyMap: Map<string, any>;
|
|
17
|
+
};
|
|
18
|
+
declare type InterfaceMeta = {
|
|
19
|
+
implements?: string[];
|
|
20
|
+
extends?: string[];
|
|
21
|
+
};
|
|
22
|
+
export declare const classMap: Map<string, new (...args: any[]) => any>;
|
|
23
|
+
export declare function getInterfaceMeta(concept: string): InterfaceMeta;
|
|
24
|
+
export declare function getConceptMeta(concept: string): ConceptMeta;
|
|
25
|
+
/**
|
|
26
|
+
* 获取Constructor
|
|
27
|
+
* @param concept
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
export declare function getConceptConstructor<T extends keyof ConceptTypeofClassMap>(concept: T): ConceptTypeofClassMap[T];
|
|
31
|
+
/**
|
|
32
|
+
* 获取属性map
|
|
33
|
+
* @param concept
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
export declare function getConceptPropertyMap(concept: string): Map<string, any>;
|
|
37
|
+
export declare function concept(nodeTitle: string): (target: any) => void;
|
|
38
|
+
export declare function imps(interfaces: string[]): (target: any) => void;
|
|
39
|
+
export declare function interfaceExtends(interfaceName: string, extendsBy: string): void;
|
|
40
|
+
export declare function setIterfaceInheritance(interfaceName: string, { implementsBy, extendsBy, }: {
|
|
41
|
+
implementsBy?: string;
|
|
42
|
+
extendsBy?: string;
|
|
43
|
+
}): void;
|
|
44
|
+
export declare function property(params?: any): (target: SyntaxNode | BaseNode, key: string) => void;
|
|
45
|
+
export declare function ancestor(concept: SyntaxNodeConcept): (target: any, key: string, descriptor: PropertyDescriptor) => void;
|
|
46
|
+
/**
|
|
47
|
+
* 只计算一次,就缓存下来结果
|
|
48
|
+
* 作为引入 Vue computed 之前的缓存方案
|
|
49
|
+
*/
|
|
50
|
+
export declare function computedOnce(): (target: any, key: string, descriptor: PropertyDescriptor) => void;
|
|
51
|
+
/**
|
|
52
|
+
* 表示上级对象,处理循环问题
|
|
53
|
+
*/
|
|
54
|
+
export declare function circular(): (target: any, key: string | number | symbol) => void;
|
|
55
|
+
/**
|
|
56
|
+
* 该属性排除于 JSON 中
|
|
57
|
+
*/
|
|
58
|
+
export declare function excludedInJSON(keys?: Array<string>): (target: any, key: string | number | symbol) => void;
|
|
59
|
+
/**
|
|
60
|
+
* 表示该方法对应一个用户行为
|
|
61
|
+
*/
|
|
62
|
+
export declare function action(name: string): (target: any, key: string | number | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
63
|
+
/**
|
|
64
|
+
* 表示该方法对应一个用户行为
|
|
65
|
+
* @TODO: 目前暂时跟以前的统一不起来
|
|
66
|
+
*/
|
|
67
|
+
export declare function operation(name: string): (target: any, key: string | number | symbol) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const KEYWORDS: string[];
|
|
2
|
+
export declare const ENTITY_KEYWORDS: string[];
|
|
3
|
+
export declare const ENTITY_PROPERTY_KEYWORDS: string[];
|
|
4
|
+
export declare const USER_CUSTOM_KEYWORDS: string[];
|
|
5
|
+
export declare const USER_CUSTOM_KEYWORDS_PAGENAME: string[];
|
|
6
|
+
export declare const FRONTEND_PATH_KEYWORDS: string[];
|