@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,224 @@
|
|
|
1
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
2
|
+
import type Logic from './Logic__';
|
|
3
|
+
import { GetCode, Range } from './utils/quick-info';
|
|
4
|
+
import type { ElementToVueOptions } from './ViewElement__';
|
|
5
|
+
import TypeAnnotation from './TypeAnnotation__';
|
|
6
|
+
import Argument from './Argument__';
|
|
7
|
+
import BindAttribute from './BindAttribute__';
|
|
8
|
+
import LogicItem from './LogicItem__';
|
|
9
|
+
/**
|
|
10
|
+
* 调用逻辑
|
|
11
|
+
*/
|
|
12
|
+
export declare class CallLogic extends LogicItem {
|
|
13
|
+
/** 类名 */
|
|
14
|
+
static readonly ConceptName: string;
|
|
15
|
+
/**
|
|
16
|
+
* 是否为抽象类
|
|
17
|
+
* 抽象类不能产生 concept: string
|
|
18
|
+
*/
|
|
19
|
+
static isAbstract: boolean;
|
|
20
|
+
/** 继承链 */
|
|
21
|
+
static readonly inheritanceChain: string[];
|
|
22
|
+
/**
|
|
23
|
+
* 产品概念
|
|
24
|
+
*/
|
|
25
|
+
readonly concept: 'CallLogic' | 'CallConnector';
|
|
26
|
+
/**
|
|
27
|
+
* 唯一标识
|
|
28
|
+
*/
|
|
29
|
+
uuid: string;
|
|
30
|
+
/**
|
|
31
|
+
* calleeNamespace
|
|
32
|
+
*/
|
|
33
|
+
calleeNamespace: string;
|
|
34
|
+
/**
|
|
35
|
+
* calleeName
|
|
36
|
+
*/
|
|
37
|
+
calleeName: string;
|
|
38
|
+
/**
|
|
39
|
+
* shortcut
|
|
40
|
+
*/
|
|
41
|
+
shortcut: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* handleError
|
|
44
|
+
*/
|
|
45
|
+
handleError: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* 类型参数
|
|
48
|
+
*/
|
|
49
|
+
typeArguments?: Array<TypeAnnotation>;
|
|
50
|
+
/**
|
|
51
|
+
* 实际参数
|
|
52
|
+
*/
|
|
53
|
+
arguments: Array<Argument>;
|
|
54
|
+
/**
|
|
55
|
+
* 验证规则
|
|
56
|
+
*/
|
|
57
|
+
validation: BindAttribute;
|
|
58
|
+
/**
|
|
59
|
+
* 是否被折叠
|
|
60
|
+
*/
|
|
61
|
+
isAdvancedSettingFolded: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @param source 需要合并的部分参数
|
|
64
|
+
*/
|
|
65
|
+
constructor(source?: Partial<CallLogic>);
|
|
66
|
+
static from(source: any, parentNode?: any, parentKey?: string): CallLogic;
|
|
67
|
+
/**
|
|
68
|
+
* 设置验证规则
|
|
69
|
+
*/
|
|
70
|
+
setValidation(validation: BindAttribute): void;
|
|
71
|
+
/**
|
|
72
|
+
* 设置是否被折叠
|
|
73
|
+
*/
|
|
74
|
+
setIsAdvancedSettingFolded(isAdvancedSettingFolded: boolean): void;
|
|
75
|
+
/**
|
|
76
|
+
* 插入类型标注
|
|
77
|
+
* @internal
|
|
78
|
+
* @param typeAnnotationOptions 类型标注参数
|
|
79
|
+
*/
|
|
80
|
+
_insertTypeAnnotationAt(typeAnnotationOptions: Partial<TypeAnnotation>, index: number): TypeAnnotation;
|
|
81
|
+
/**
|
|
82
|
+
* 插入类型标注
|
|
83
|
+
* @internal
|
|
84
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
85
|
+
*/
|
|
86
|
+
_insertTypeAnnotationAt(typeAnnotation: TypeAnnotation, index: number): TypeAnnotation;
|
|
87
|
+
/**
|
|
88
|
+
* 插入类型标注
|
|
89
|
+
* @param typeAnnotationOptions 类型标注参数
|
|
90
|
+
*/
|
|
91
|
+
insertTypeAnnotationAt(typeAnnotationOptions: Partial<TypeAnnotation>, index: number): TypeAnnotation;
|
|
92
|
+
/**
|
|
93
|
+
* 插入类型标注
|
|
94
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
95
|
+
*/
|
|
96
|
+
insertTypeAnnotationAt(typeAnnotation: TypeAnnotation, index: number): TypeAnnotation;
|
|
97
|
+
/**
|
|
98
|
+
* 添加类型标注
|
|
99
|
+
* @internal
|
|
100
|
+
* @param typeAnnotationOptions 类型标注参数
|
|
101
|
+
*/
|
|
102
|
+
_addTypeAnnotation(typeAnnotationOptions: Partial<TypeAnnotation>): TypeAnnotation;
|
|
103
|
+
/**
|
|
104
|
+
* 添加类型标注
|
|
105
|
+
* @internal
|
|
106
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
107
|
+
*/
|
|
108
|
+
_addTypeAnnotation(typeAnnotation: TypeAnnotation): TypeAnnotation;
|
|
109
|
+
/**
|
|
110
|
+
* 添加类型标注
|
|
111
|
+
* @param typeAnnotationOptions 类型标注参数
|
|
112
|
+
*/
|
|
113
|
+
addTypeAnnotation(typeAnnotationOptions: Partial<TypeAnnotation>): TypeAnnotation;
|
|
114
|
+
/**
|
|
115
|
+
* 添加类型标注
|
|
116
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
117
|
+
*/
|
|
118
|
+
addTypeAnnotation(typeAnnotation: TypeAnnotation): TypeAnnotation;
|
|
119
|
+
/**
|
|
120
|
+
* 插入实际参数
|
|
121
|
+
* @internal
|
|
122
|
+
* @param argumentOptions 实际参数参数
|
|
123
|
+
*/
|
|
124
|
+
_insertArgumentAt(argumentOptions: Partial<Argument>, index: number): Argument;
|
|
125
|
+
/**
|
|
126
|
+
* 插入实际参数
|
|
127
|
+
* @internal
|
|
128
|
+
* @param argument 已有的实际参数实例
|
|
129
|
+
*/
|
|
130
|
+
_insertArgumentAt(argument: Argument, index: number): Argument;
|
|
131
|
+
/**
|
|
132
|
+
* 插入实际参数
|
|
133
|
+
* @param argumentOptions 实际参数参数
|
|
134
|
+
*/
|
|
135
|
+
insertArgumentAt(argumentOptions: Partial<Argument>, index: number): Argument;
|
|
136
|
+
/**
|
|
137
|
+
* 插入实际参数
|
|
138
|
+
* @param argument 已有的实际参数实例
|
|
139
|
+
*/
|
|
140
|
+
insertArgumentAt(argument: Argument, index: number): Argument;
|
|
141
|
+
/**
|
|
142
|
+
* 添加实际参数
|
|
143
|
+
* @internal
|
|
144
|
+
* @param argumentOptions 实际参数参数
|
|
145
|
+
*/
|
|
146
|
+
_addArgument(argumentOptions: Partial<Argument>): Argument;
|
|
147
|
+
/**
|
|
148
|
+
* 添加实际参数
|
|
149
|
+
* @internal
|
|
150
|
+
* @param argument 已有的实际参数实例
|
|
151
|
+
*/
|
|
152
|
+
_addArgument(argument: Argument): Argument;
|
|
153
|
+
/**
|
|
154
|
+
* 添加实际参数
|
|
155
|
+
* @param argumentOptions 实际参数参数
|
|
156
|
+
*/
|
|
157
|
+
addArgument(argumentOptions: Partial<Argument>): Argument;
|
|
158
|
+
/**
|
|
159
|
+
* 添加实际参数
|
|
160
|
+
* @param argument 已有的实际参数实例
|
|
161
|
+
*/
|
|
162
|
+
addArgument(argument: Argument): Argument;
|
|
163
|
+
/**
|
|
164
|
+
* 删除类型标注
|
|
165
|
+
* @param typeAnnotation 已有的类型标注实例
|
|
166
|
+
*/
|
|
167
|
+
removeTypeAnnotation(typeAnnotation: TypeAnnotation): void;
|
|
168
|
+
/**
|
|
169
|
+
* 删除实际参数
|
|
170
|
+
* @param argument 已有的实际参数实例
|
|
171
|
+
*/
|
|
172
|
+
removeArgument(argument: Argument): void;
|
|
173
|
+
get tsCalleeNamespace(): string;
|
|
174
|
+
get calleewholeKey(): string;
|
|
175
|
+
get calleeKey(): string;
|
|
176
|
+
/**
|
|
177
|
+
* 设置argment 触发别的地方的更新
|
|
178
|
+
*/
|
|
179
|
+
setArgumentName({ argument }: {
|
|
180
|
+
argument: Argument[];
|
|
181
|
+
}): void;
|
|
182
|
+
/**
|
|
183
|
+
* 设置setCalleeName
|
|
184
|
+
*/
|
|
185
|
+
setCalleeName(calleeName: string): void;
|
|
186
|
+
/**
|
|
187
|
+
* 设置calleeNamespace
|
|
188
|
+
*/
|
|
189
|
+
setCalleeNamespace(calleeNamespace: string): void;
|
|
190
|
+
/**
|
|
191
|
+
* 设置 handleError
|
|
192
|
+
*/
|
|
193
|
+
setHandleError(handleError: boolean): void;
|
|
194
|
+
_setCallee(logic: Logic): void;
|
|
195
|
+
setCallee(logic: Logic, argument?: Argument): void;
|
|
196
|
+
addCalleeArg(logic: Logic): void;
|
|
197
|
+
deleteCalleeArg(argIndex: number): void;
|
|
198
|
+
toVue(options?: ElementToVueOptions): string;
|
|
199
|
+
toUI(state?: TranslatorState, hideDetails?: boolean): string;
|
|
200
|
+
get isViewLogic(): boolean;
|
|
201
|
+
get isComponentLogic(): boolean;
|
|
202
|
+
toJS(state?: TranslatorState): string;
|
|
203
|
+
toBrief(): string;
|
|
204
|
+
get useValidation(): boolean;
|
|
205
|
+
get useIife(): boolean;
|
|
206
|
+
toEmbeddedTS(state?: TranslatorState): TranslatorGenerator;
|
|
207
|
+
toNaturalTS(state?: TranslatorState): string;
|
|
208
|
+
toTextualNASL(state?: TranslatorState): string;
|
|
209
|
+
getCallNode(): Logic | undefined;
|
|
210
|
+
/** 获取类型标注时的偏移量 */
|
|
211
|
+
getQuickInfoOffset(range: Range, getCode: GetCode): {
|
|
212
|
+
line: number;
|
|
213
|
+
offset: number;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* 是否允许验证规则
|
|
217
|
+
* - 当前元素在前端,但是调用的函数在后端
|
|
218
|
+
*/
|
|
219
|
+
enableValidation(): boolean;
|
|
220
|
+
get completeArguments(): Argument[];
|
|
221
|
+
static isSystem(node: CallLogic): boolean;
|
|
222
|
+
static getDefaultOptions(): {};
|
|
223
|
+
}
|
|
224
|
+
export default CallLogic;
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
2
|
+
import type QueryJoinExpression from './QueryJoinExpression__';
|
|
3
|
+
import type Entity from './Entity__';
|
|
4
|
+
import type Structure from './Structure__';
|
|
5
|
+
import type StructureProperty from './StructureProperty__';
|
|
6
|
+
import type CompletionProperty from './CompletionProperty__';
|
|
7
|
+
import type Identifier from './Identifier__';
|
|
8
|
+
import type MemberExpression from './MemberExpression__';
|
|
9
|
+
import TypeAnnotation from './TypeAnnotation__';
|
|
10
|
+
import QuerySelectExpression from './QuerySelectExpression__';
|
|
11
|
+
import QueryFromExpression from './QueryFromExpression__';
|
|
12
|
+
import LogicItem from './LogicItem__';
|
|
13
|
+
import QueryGroupByExpression from './QueryGroupByExpression__';
|
|
14
|
+
import QueryOrderByExpression from './QueryOrderByExpression__';
|
|
15
|
+
import QueryLimitExpression from './QueryLimitExpression__';
|
|
16
|
+
/**
|
|
17
|
+
* 数据查询
|
|
18
|
+
*/
|
|
19
|
+
export declare class CallQueryComponent extends LogicItem {
|
|
20
|
+
/** 类名 */
|
|
21
|
+
static readonly ConceptName: string;
|
|
22
|
+
/**
|
|
23
|
+
* 是否为抽象类
|
|
24
|
+
* 抽象类不能产生 concept: string
|
|
25
|
+
*/
|
|
26
|
+
static isAbstract: boolean;
|
|
27
|
+
/** 继承链 */
|
|
28
|
+
static readonly inheritanceChain: string[];
|
|
29
|
+
/**
|
|
30
|
+
* 产品概念
|
|
31
|
+
*/
|
|
32
|
+
readonly concept: 'CallQueryComponent';
|
|
33
|
+
/**
|
|
34
|
+
* 类型
|
|
35
|
+
*/
|
|
36
|
+
typeAnnotation: TypeAnnotation;
|
|
37
|
+
/**
|
|
38
|
+
* select
|
|
39
|
+
*/
|
|
40
|
+
select: QuerySelectExpression;
|
|
41
|
+
/**
|
|
42
|
+
* from
|
|
43
|
+
*/
|
|
44
|
+
from: QueryFromExpression;
|
|
45
|
+
/**
|
|
46
|
+
* where
|
|
47
|
+
*/
|
|
48
|
+
where: LogicItem;
|
|
49
|
+
/**
|
|
50
|
+
* where 草稿态
|
|
51
|
+
*/
|
|
52
|
+
wherePlayground: Array<LogicItem>;
|
|
53
|
+
/**
|
|
54
|
+
* groupBy
|
|
55
|
+
*/
|
|
56
|
+
groupBy: Array<QueryGroupByExpression>;
|
|
57
|
+
/**
|
|
58
|
+
* having
|
|
59
|
+
*/
|
|
60
|
+
having: LogicItem;
|
|
61
|
+
/**
|
|
62
|
+
* having 草稿态
|
|
63
|
+
*/
|
|
64
|
+
havingPlayground: Array<LogicItem>;
|
|
65
|
+
/**
|
|
66
|
+
* orderBy
|
|
67
|
+
*/
|
|
68
|
+
orderBy: Array<QueryOrderByExpression>;
|
|
69
|
+
/**
|
|
70
|
+
* limit
|
|
71
|
+
*/
|
|
72
|
+
limit: QueryLimitExpression;
|
|
73
|
+
/**
|
|
74
|
+
* 查询组件的局部版本
|
|
75
|
+
*/
|
|
76
|
+
ideVersion: string;
|
|
77
|
+
/**
|
|
78
|
+
* @param source 需要合并的部分参数
|
|
79
|
+
*/
|
|
80
|
+
constructor(source?: Partial<CallQueryComponent>);
|
|
81
|
+
static from(source: any, parentNode?: any, parentKey?: string): CallQueryComponent;
|
|
82
|
+
/**
|
|
83
|
+
* 设置select
|
|
84
|
+
*/
|
|
85
|
+
setSelect(select: QuerySelectExpression): void;
|
|
86
|
+
/**
|
|
87
|
+
* 设置from
|
|
88
|
+
*/
|
|
89
|
+
setFrom(from: QueryFromExpression): void;
|
|
90
|
+
/**
|
|
91
|
+
* 设置where
|
|
92
|
+
*/
|
|
93
|
+
setWhere(where: LogicItem): void;
|
|
94
|
+
/**
|
|
95
|
+
* 设置groupBy
|
|
96
|
+
*/
|
|
97
|
+
setGroupBy(groupBy: Array<QueryGroupByExpression>): void;
|
|
98
|
+
/**
|
|
99
|
+
* 设置having
|
|
100
|
+
*/
|
|
101
|
+
setHaving(having: LogicItem): void;
|
|
102
|
+
/**
|
|
103
|
+
* 设置orderBy
|
|
104
|
+
*/
|
|
105
|
+
setOrderBy(orderBy: Array<QueryOrderByExpression>): void;
|
|
106
|
+
/**
|
|
107
|
+
* 设置limit
|
|
108
|
+
*/
|
|
109
|
+
setLimit(limit: QueryLimitExpression): void;
|
|
110
|
+
/**
|
|
111
|
+
* 插入逻辑项
|
|
112
|
+
* @internal
|
|
113
|
+
* @param logicItemOptions 逻辑项参数
|
|
114
|
+
*/
|
|
115
|
+
_insertItemInWherePlaygroundAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
116
|
+
/**
|
|
117
|
+
* 插入逻辑项
|
|
118
|
+
* @internal
|
|
119
|
+
* @param logicItem 已有的逻辑项实例
|
|
120
|
+
*/
|
|
121
|
+
_insertItemInWherePlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
|
|
122
|
+
/**
|
|
123
|
+
* 插入逻辑项
|
|
124
|
+
* @param logicItemOptions 逻辑项参数
|
|
125
|
+
*/
|
|
126
|
+
insertItemInWherePlaygroundAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
127
|
+
/**
|
|
128
|
+
* 插入逻辑项
|
|
129
|
+
* @param logicItem 已有的逻辑项实例
|
|
130
|
+
*/
|
|
131
|
+
insertItemInWherePlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
|
|
132
|
+
/**
|
|
133
|
+
* 添加逻辑项
|
|
134
|
+
* @internal
|
|
135
|
+
* @param logicItemOptions 逻辑项参数
|
|
136
|
+
*/
|
|
137
|
+
_addItemInWherePlayground(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
138
|
+
/**
|
|
139
|
+
* 添加逻辑项
|
|
140
|
+
* @internal
|
|
141
|
+
* @param logicItem 已有的逻辑项实例
|
|
142
|
+
*/
|
|
143
|
+
_addItemInWherePlayground(logicItem: LogicItem): LogicItem;
|
|
144
|
+
/**
|
|
145
|
+
* 添加逻辑项
|
|
146
|
+
* @param logicItemOptions 逻辑项参数
|
|
147
|
+
*/
|
|
148
|
+
addItemInWherePlayground(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
149
|
+
/**
|
|
150
|
+
* 添加逻辑项
|
|
151
|
+
* @param logicItem 已有的逻辑项实例
|
|
152
|
+
*/
|
|
153
|
+
addItemInWherePlayground(logicItem: LogicItem): LogicItem;
|
|
154
|
+
/**
|
|
155
|
+
* 插入逻辑项
|
|
156
|
+
* @internal
|
|
157
|
+
* @param logicItemOptions 逻辑项参数
|
|
158
|
+
*/
|
|
159
|
+
_insertItemInHavingPlaygroundAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
160
|
+
/**
|
|
161
|
+
* 插入逻辑项
|
|
162
|
+
* @internal
|
|
163
|
+
* @param logicItem 已有的逻辑项实例
|
|
164
|
+
*/
|
|
165
|
+
_insertItemInHavingPlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
|
|
166
|
+
/**
|
|
167
|
+
* 插入逻辑项
|
|
168
|
+
* @param logicItemOptions 逻辑项参数
|
|
169
|
+
*/
|
|
170
|
+
insertItemInHavingPlaygroundAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
171
|
+
/**
|
|
172
|
+
* 插入逻辑项
|
|
173
|
+
* @param logicItem 已有的逻辑项实例
|
|
174
|
+
*/
|
|
175
|
+
insertItemInHavingPlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
|
|
176
|
+
/**
|
|
177
|
+
* 添加逻辑项
|
|
178
|
+
* @internal
|
|
179
|
+
* @param logicItemOptions 逻辑项参数
|
|
180
|
+
*/
|
|
181
|
+
_addItemInHavingPlayground(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
182
|
+
/**
|
|
183
|
+
* 添加逻辑项
|
|
184
|
+
* @internal
|
|
185
|
+
* @param logicItem 已有的逻辑项实例
|
|
186
|
+
*/
|
|
187
|
+
_addItemInHavingPlayground(logicItem: LogicItem): LogicItem;
|
|
188
|
+
/**
|
|
189
|
+
* 添加逻辑项
|
|
190
|
+
* @param logicItemOptions 逻辑项参数
|
|
191
|
+
*/
|
|
192
|
+
addItemInHavingPlayground(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
193
|
+
/**
|
|
194
|
+
* 添加逻辑项
|
|
195
|
+
* @param logicItem 已有的逻辑项实例
|
|
196
|
+
*/
|
|
197
|
+
addItemInHavingPlayground(logicItem: LogicItem): LogicItem;
|
|
198
|
+
/**
|
|
199
|
+
* 插入查询分组
|
|
200
|
+
* @internal
|
|
201
|
+
* @param queryGroupByExpressionOptions 查询分组参数
|
|
202
|
+
*/
|
|
203
|
+
_insertQueryGroupByExpressionAt(queryGroupByExpressionOptions: Partial<QueryGroupByExpression>, index: number): QueryGroupByExpression;
|
|
204
|
+
/**
|
|
205
|
+
* 插入查询分组
|
|
206
|
+
* @internal
|
|
207
|
+
* @param queryGroupByExpression 已有的查询分组实例
|
|
208
|
+
*/
|
|
209
|
+
_insertQueryGroupByExpressionAt(queryGroupByExpression: QueryGroupByExpression, index: number): QueryGroupByExpression;
|
|
210
|
+
/**
|
|
211
|
+
* 插入查询分组
|
|
212
|
+
* @param queryGroupByExpressionOptions 查询分组参数
|
|
213
|
+
*/
|
|
214
|
+
insertQueryGroupByExpressionAt(queryGroupByExpressionOptions: Partial<QueryGroupByExpression>, index: number): QueryGroupByExpression;
|
|
215
|
+
/**
|
|
216
|
+
* 插入查询分组
|
|
217
|
+
* @param queryGroupByExpression 已有的查询分组实例
|
|
218
|
+
*/
|
|
219
|
+
insertQueryGroupByExpressionAt(queryGroupByExpression: QueryGroupByExpression, index: number): QueryGroupByExpression;
|
|
220
|
+
/**
|
|
221
|
+
* 添加查询分组
|
|
222
|
+
* @internal
|
|
223
|
+
* @param queryGroupByExpressionOptions 查询分组参数
|
|
224
|
+
*/
|
|
225
|
+
_addQueryGroupByExpression(queryGroupByExpressionOptions: Partial<QueryGroupByExpression>): QueryGroupByExpression;
|
|
226
|
+
/**
|
|
227
|
+
* 添加查询分组
|
|
228
|
+
* @internal
|
|
229
|
+
* @param queryGroupByExpression 已有的查询分组实例
|
|
230
|
+
*/
|
|
231
|
+
_addQueryGroupByExpression(queryGroupByExpression: QueryGroupByExpression): QueryGroupByExpression;
|
|
232
|
+
/**
|
|
233
|
+
* 添加查询分组
|
|
234
|
+
* @param queryGroupByExpressionOptions 查询分组参数
|
|
235
|
+
*/
|
|
236
|
+
addQueryGroupByExpression(queryGroupByExpressionOptions: Partial<QueryGroupByExpression>): QueryGroupByExpression;
|
|
237
|
+
/**
|
|
238
|
+
* 添加查询分组
|
|
239
|
+
* @param queryGroupByExpression 已有的查询分组实例
|
|
240
|
+
*/
|
|
241
|
+
addQueryGroupByExpression(queryGroupByExpression: QueryGroupByExpression): QueryGroupByExpression;
|
|
242
|
+
/**
|
|
243
|
+
* 插入查询排序子句
|
|
244
|
+
* @internal
|
|
245
|
+
* @param queryOrderByExpressionOptions 查询排序子句参数
|
|
246
|
+
*/
|
|
247
|
+
_insertQueryOrderByExpressionAt(queryOrderByExpressionOptions: Partial<QueryOrderByExpression>, index: number): QueryOrderByExpression;
|
|
248
|
+
/**
|
|
249
|
+
* 插入查询排序子句
|
|
250
|
+
* @internal
|
|
251
|
+
* @param queryOrderByExpression 已有的查询排序子句实例
|
|
252
|
+
*/
|
|
253
|
+
_insertQueryOrderByExpressionAt(queryOrderByExpression: QueryOrderByExpression, index: number): QueryOrderByExpression;
|
|
254
|
+
/**
|
|
255
|
+
* 插入查询排序子句
|
|
256
|
+
* @param queryOrderByExpressionOptions 查询排序子句参数
|
|
257
|
+
*/
|
|
258
|
+
insertQueryOrderByExpressionAt(queryOrderByExpressionOptions: Partial<QueryOrderByExpression>, index: number): QueryOrderByExpression;
|
|
259
|
+
/**
|
|
260
|
+
* 插入查询排序子句
|
|
261
|
+
* @param queryOrderByExpression 已有的查询排序子句实例
|
|
262
|
+
*/
|
|
263
|
+
insertQueryOrderByExpressionAt(queryOrderByExpression: QueryOrderByExpression, index: number): QueryOrderByExpression;
|
|
264
|
+
/**
|
|
265
|
+
* 添加查询排序子句
|
|
266
|
+
* @internal
|
|
267
|
+
* @param queryOrderByExpressionOptions 查询排序子句参数
|
|
268
|
+
*/
|
|
269
|
+
_addQueryOrderByExpression(queryOrderByExpressionOptions: Partial<QueryOrderByExpression>): QueryOrderByExpression;
|
|
270
|
+
/**
|
|
271
|
+
* 添加查询排序子句
|
|
272
|
+
* @internal
|
|
273
|
+
* @param queryOrderByExpression 已有的查询排序子句实例
|
|
274
|
+
*/
|
|
275
|
+
_addQueryOrderByExpression(queryOrderByExpression: QueryOrderByExpression): QueryOrderByExpression;
|
|
276
|
+
/**
|
|
277
|
+
* 添加查询排序子句
|
|
278
|
+
* @param queryOrderByExpressionOptions 查询排序子句参数
|
|
279
|
+
*/
|
|
280
|
+
addQueryOrderByExpression(queryOrderByExpressionOptions: Partial<QueryOrderByExpression>): QueryOrderByExpression;
|
|
281
|
+
/**
|
|
282
|
+
* 添加查询排序子句
|
|
283
|
+
* @param queryOrderByExpression 已有的查询排序子句实例
|
|
284
|
+
*/
|
|
285
|
+
addQueryOrderByExpression(queryOrderByExpression: QueryOrderByExpression): QueryOrderByExpression;
|
|
286
|
+
/**
|
|
287
|
+
* 删除逻辑项
|
|
288
|
+
* @param logicItem 已有的逻辑项实例
|
|
289
|
+
*/
|
|
290
|
+
removeItemInWherePlayground(logicItem: LogicItem): void;
|
|
291
|
+
/**
|
|
292
|
+
* 删除逻辑项
|
|
293
|
+
* @param logicItem 已有的逻辑项实例
|
|
294
|
+
*/
|
|
295
|
+
removeItemInHavingPlayground(logicItem: LogicItem): void;
|
|
296
|
+
/**
|
|
297
|
+
* 删除查询分组
|
|
298
|
+
* @param queryGroupByExpression 已有的查询分组实例
|
|
299
|
+
*/
|
|
300
|
+
removeQueryGroupByExpression(queryGroupByExpression: QueryGroupByExpression): void;
|
|
301
|
+
/**
|
|
302
|
+
* 删除查询排序子句
|
|
303
|
+
* @param queryOrderByExpression 已有的查询排序子句实例
|
|
304
|
+
*/
|
|
305
|
+
removeQueryOrderByExpression(queryOrderByExpression: QueryOrderByExpression): void;
|
|
306
|
+
/**
|
|
307
|
+
* 获取添加时的默认选项
|
|
308
|
+
* @returns
|
|
309
|
+
*/
|
|
310
|
+
static getDefaultOptions(): any;
|
|
311
|
+
toEmbeddedTSOfSubPart<T extends {
|
|
312
|
+
toEmbeddedTS: (state?: TranslatorState) => TranslatorGenerator;
|
|
313
|
+
}>(key: string, list: Array<T>, options: {
|
|
314
|
+
code: string;
|
|
315
|
+
state: TranslatorState;
|
|
316
|
+
multipleErrorType?: '__WHERE_MULTIPLE_CONDITION__' | '__HAVING_MULTIPLE_CONDITION__';
|
|
317
|
+
}): Generator<any, string, any>;
|
|
318
|
+
entityNames(): string[];
|
|
319
|
+
toUI(state?: TranslatorState, hideDetails?: boolean): string;
|
|
320
|
+
toJS(): string;
|
|
321
|
+
isAutoInfer(): boolean;
|
|
322
|
+
get entityPropertySelectable(): boolean;
|
|
323
|
+
toEmbeddedTS(state?: TranslatorState): TranslatorGenerator;
|
|
324
|
+
genPropertiesFrom(node: QueryFromExpression | QueryJoinExpression, properties?: StructureProperty[]): StructureProperty[];
|
|
325
|
+
genPropertyListOfFrom(node: QueryFromExpression | QueryJoinExpression, entities?: any[]): any[];
|
|
326
|
+
genPropertyListOfAggregate(node: CallQueryComponent, entities: Entity[]): {
|
|
327
|
+
concept: string;
|
|
328
|
+
name: string;
|
|
329
|
+
typeAnnotation: {
|
|
330
|
+
concept: string;
|
|
331
|
+
typeKind: string;
|
|
332
|
+
typeNamespace: string;
|
|
333
|
+
typeName: string;
|
|
334
|
+
};
|
|
335
|
+
}[];
|
|
336
|
+
genPropertyListOfGroupBy(node: CallQueryComponent, entities: Entity[]): {
|
|
337
|
+
concept: string;
|
|
338
|
+
name: string;
|
|
339
|
+
typeAnnotation: {
|
|
340
|
+
concept: "TypeAnnotation";
|
|
341
|
+
typeKind: "function" | "primitive" | "reference" | "generic" | "typeParam" | "union" | "anonymousStructure";
|
|
342
|
+
typeName: string;
|
|
343
|
+
typeNamespace: string;
|
|
344
|
+
};
|
|
345
|
+
}[];
|
|
346
|
+
genStructure(structureName?: string, properties?: any[]): Structure;
|
|
347
|
+
saveStructure(): void;
|
|
348
|
+
saveStructureNoInfer(entities?: any[]): void;
|
|
349
|
+
removeStructure(structureName?: string): void;
|
|
350
|
+
getEntityInfos(node: QueryFromExpression | QueryJoinExpression, set?: Set<unknown>): unknown[];
|
|
351
|
+
get entityInfos(): unknown[];
|
|
352
|
+
getCompletionPropertyOfEntities(): {
|
|
353
|
+
name: string;
|
|
354
|
+
icon: string;
|
|
355
|
+
children: {
|
|
356
|
+
concept: string;
|
|
357
|
+
name: string;
|
|
358
|
+
children: CompletionProperty[];
|
|
359
|
+
}[];
|
|
360
|
+
};
|
|
361
|
+
getCompletionPropertyOfAggregateAsNames(): {
|
|
362
|
+
name: string;
|
|
363
|
+
icon: string;
|
|
364
|
+
children: CompletionProperty[];
|
|
365
|
+
expanded: boolean;
|
|
366
|
+
};
|
|
367
|
+
getCompletionPropertyOfGroupByAsNames(): {
|
|
368
|
+
name: string;
|
|
369
|
+
icon: string;
|
|
370
|
+
children: CompletionProperty[];
|
|
371
|
+
expanded: boolean;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* 获取当前内部使用到的变量
|
|
375
|
+
*/
|
|
376
|
+
getContentVariable(): (Identifier | MemberExpression)[];
|
|
377
|
+
initFieldSelectElement(node?: CallQueryComponent): void;
|
|
378
|
+
inFromJoinPart(entityName: string): boolean;
|
|
379
|
+
toNaturalTS(state?: TranslatorState): string;
|
|
380
|
+
toNaturalSQL(state?: TranslatorState): string;
|
|
381
|
+
toTextualNASL(state?: TranslatorState): string;
|
|
382
|
+
}
|
|
383
|
+
export default CallQueryComponent;
|