@lcap/nasl 3.7.0-beta.3 → 3.7.0-beta.5
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/automate/engine/utils.js +1 -1
- package/out/automate/engine/utils.js.map +1 -1
- package/out/breakpoint/store/core.js +1 -7
- package/out/breakpoint/store/core.js.map +1 -1
- package/out/common/BaseNode.js +1 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/App__.d.ts +5 -1
- package/out/concepts/App__.js +30 -14
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +5 -0
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +1 -0
- package/out/concepts/AuthLogicForCallInterface__.js +15 -4
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +1 -1
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +1 -1
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.js +5 -1
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +9 -1
- package/out/concepts/CallInterface__.js +105 -16
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +2 -1
- package/out/concepts/ConnectorLogic__.d.ts +33 -0
- package/out/concepts/ConnectorLogic__.js +69 -0
- package/out/concepts/ConnectorLogic__.js.map +1 -0
- package/out/concepts/ConnectorTriggerLauncher__.d.ts +44 -0
- package/out/concepts/ConnectorTriggerLauncher__.js +99 -0
- package/out/concepts/ConnectorTriggerLauncher__.js.map +1 -0
- package/out/concepts/ConnectorTrigger__.d.ts +5 -4
- package/out/concepts/ConnectorTrigger__.js +39 -4
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.d.ts +1 -0
- package/out/concepts/Connector__.js +5 -0
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/End__.js +1 -0
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EnumItem__.js +1 -1
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/InterfaceTriggerEvent__.d.ts +34 -0
- package/out/concepts/InterfaceTriggerEvent__.js +72 -0
- package/out/concepts/InterfaceTriggerEvent__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +3 -3
- package/out/concepts/Interface__.js +7 -6
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +5 -0
- package/out/concepts/LogicItem__.js +6 -0
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +1 -1
- package/out/concepts/Logic__.js +5 -1
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Module__.js +1 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +3 -10
- package/out/concepts/MsgTriggerLauncher__.js +6 -19
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +2 -1
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.d.ts +1 -1
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Structure__.js +4 -4
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +2 -2
- package/out/concepts/TriggerEvent__.js +1 -1
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +1 -1
- package/out/concepts/TriggerLauncher__.js +18 -1
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +1 -0
- package/out/concepts/ViewElement__.js +7 -0
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.browser.js +42 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.configuration.js +8 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +217 -1
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/index__.d.ts +3 -0
- package/out/concepts/index__.js +3 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +145 -17
- package/out/concepts/utils/asserts.js +212 -39
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +15 -4
- package/out/generator/genBundleFiles.js +15 -2
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.js +1 -0
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/permission.js +1 -0
- package/out/generator/permission.js.map +1 -1
- package/out/generator/release-body/body.d.ts +1 -0
- package/out/generator/release-body/body.js +7 -4
- package/out/generator/release-body/body.js.map +1 -1
- package/out/generator/release-body/data.d.ts +1 -0
- package/out/generator/release-body/data.js +10 -7
- package/out/generator/release-body/data.js.map +1 -1
- package/out/generator/release-body/internal.d.ts +1 -0
- package/out/generator/release-body/internal.js.map +1 -1
- package/out/generator/release-body/types.d.ts +2 -0
- package/out/manager/diagnostic.d.ts +6 -2
- package/out/manager/diagnostic.js +28 -23
- package/out/manager/diagnostic.js.map +1 -1
- package/out/natural/prompt/analyzeClaims.js +2 -0
- package/out/natural/prompt/analyzeClaims.js.map +1 -1
- package/out/natural/prompt/analyzeFormatOutput.js +1 -0
- package/out/natural/prompt/analyzeFormatOutput.js.map +1 -1
- package/out/natural/prompt/analyzeTasks.js +3 -1
- package/out/natural/prompt/analyzeTasks.js.map +1 -1
- package/out/natural/prompt/executeClaims.js +4 -0
- package/out/natural/prompt/executeClaims.js.map +1 -1
- package/out/natural/transformTSCode.js +32 -4
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/extendBaseNode.js +36 -3
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +1 -1
- package/out/server/formatTsUtils.js +7 -3
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getConnector.d.ts +4 -4
- package/out/server/getConnector.js +3 -3
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getExtensionModules.d.ts +1 -1
- package/out/server/getLogics.js +20 -6
- package/out/server/getLogics.js.map +1 -1
- package/out/server/naslServer.d.ts +5 -4
- package/out/server/naslServer.js +133 -59
- package/out/server/naslServer.js.map +1 -1
- package/out/service/storage/init.js +2 -2
- package/out/service/storage/init.js.map +1 -1
- package/out/utils/index.d.ts +5 -0
- package/out/utils/index.js +36 -1
- package/out/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.browser.ts +5 -0
- package/sandbox/stdlib/nasl.util.ts +3 -1
- package/src/automate/engine/utils.js +1 -1
- package/src/breakpoint/store/core.ts +2 -7
- package/src/common/BaseNode.ts +1 -1
- package/src/concepts/App__.ts +32 -16
- package/src/concepts/Argument__.ts +6 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +15 -4
- package/src/concepts/BindAttribute__.ts +1 -1
- package/src/concepts/BindDirective__.ts +1 -1
- package/src/concepts/CallAuthInterface__.ts +8 -1
- package/src/concepts/CallInterface__.ts +121 -16
- package/src/concepts/Connection__.ts +1 -1
- package/src/concepts/ConnectorLogic__.ts +84 -0
- package/src/concepts/ConnectorTriggerLauncher__.ts +117 -0
- package/src/concepts/ConnectorTrigger__.ts +38 -5
- package/src/concepts/Connector__.ts +6 -0
- package/src/concepts/End__.ts +1 -0
- package/src/concepts/EnumItem__.ts +1 -1
- package/src/concepts/InterfaceTriggerEvent__.ts +88 -0
- package/src/concepts/Interface__.ts +9 -8
- package/src/concepts/LogicItem__.ts +7 -0
- package/src/concepts/Logic__.ts +7 -2
- package/src/concepts/MatchCase__.ts +1 -0
- package/src/concepts/Module__.ts +2 -1
- package/src/concepts/MsgTriggerLauncher__.ts +7 -23
- package/src/concepts/OqlQueryComponent__.ts +18 -17
- package/src/concepts/Param__.ts +2 -1
- package/src/concepts/Structure__.ts +4 -4
- package/src/concepts/TriggerEvent__.ts +3 -3
- package/src/concepts/TriggerLauncher__.ts +19 -2
- package/src/concepts/ViewElement__.ts +11 -1
- package/src/concepts/basics/stdlib/nasl.browser.ts +42 -0
- package/src/concepts/basics/stdlib/nasl.configuration.ts +8 -0
- package/src/concepts/basics/stdlib/nasl.util.ts +217 -1
- package/src/concepts/index__.ts +3 -0
- package/src/concepts/utils/asserts.ts +212 -24
- package/src/concepts/utils/types.ts +25 -6
- package/src/generator/genBundleFiles.ts +14 -4
- package/src/generator/genMetaData.ts +1 -0
- package/src/generator/permission.ts +1 -0
- package/src/generator/release-body/body.ts +9 -5
- package/src/generator/release-body/data.ts +10 -7
- package/src/generator/release-body/internal.ts +1 -0
- package/src/generator/release-body/types.ts +2 -0
- package/src/manager/diagnostic.ts +35 -31
- package/src/natural/prompt/analyzeClaims.ts +2 -0
- package/src/natural/prompt/analyzeFormatOutput.ts +1 -0
- package/src/natural/prompt/analyzeTasks.ts +3 -1
- package/src/natural/prompt/executeClaims.ts +4 -0
- package/src/natural/transformTSCode.ts +33 -5
- package/src/server/extendBaseNode.ts +35 -4
- package/src/server/formatTsUtils.ts +6 -3
- package/src/server/getConnector.ts +7 -7
- package/src/server/getLogics.ts +21 -6
- package/src/server/naslServer.ts +144 -63
- package/src/service/storage/init.ts +2 -2
- package/src/utils/index.ts +36 -1
- package/ts-worker/src/index.js +4 -3
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { App, View, Logic, BaseNode, Frontend } from '../concepts';
|
|
2
|
+
export declare function genNaturalTS(app: App, currentNode?: BaseNode, focusedNodePath?: string): string;
|
|
3
|
+
export declare const genTsBlock: (code: string) => string;
|
|
4
|
+
export declare const getLogicStructures: (logic: Logic, type: string, desc: {
|
|
5
|
+
description: string;
|
|
6
|
+
codeStr: string;
|
|
7
|
+
}, namespace: string) => string;
|
|
8
|
+
export declare const getNaslCore: (logicType: string) => {
|
|
9
|
+
code: string;
|
|
10
|
+
naslCore: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const getNaslUtil: () => {
|
|
13
|
+
code: string;
|
|
14
|
+
naslUtil: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const getNaslUi: () => {
|
|
17
|
+
code: string;
|
|
18
|
+
naslUI: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const getNaslOql: () => {
|
|
21
|
+
code: string;
|
|
22
|
+
naslOql: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const getEnums: (app: App, state: any, moduleIndexList?: string[]) => {
|
|
25
|
+
code: string;
|
|
26
|
+
namespace: string;
|
|
27
|
+
enums: {
|
|
28
|
+
namespace: string;
|
|
29
|
+
data: {
|
|
30
|
+
description: string;
|
|
31
|
+
code: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const getEntities: (app: App, state: any, moduleIndexList?: string[]) => {
|
|
36
|
+
code: string;
|
|
37
|
+
entities: {
|
|
38
|
+
namespace: string;
|
|
39
|
+
data: {
|
|
40
|
+
description: string;
|
|
41
|
+
code: string;
|
|
42
|
+
}[];
|
|
43
|
+
}[];
|
|
44
|
+
};
|
|
45
|
+
export declare const getStructures: (app: App, state: any, moduleIndexList?: string[]) => {
|
|
46
|
+
code: string;
|
|
47
|
+
structures: {
|
|
48
|
+
namespace: string;
|
|
49
|
+
data: {
|
|
50
|
+
description: string;
|
|
51
|
+
code: string;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const getLogics: (app: App, currentNode: BaseNode, moduleIndexList?: string[]) => {
|
|
56
|
+
code: string;
|
|
57
|
+
appLogics: {
|
|
58
|
+
namespace: string;
|
|
59
|
+
data: {
|
|
60
|
+
description: string;
|
|
61
|
+
code: string;
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export declare const getModuleInterfaces: (app: App, state: any, moduleIndexList?: string[]) => {
|
|
66
|
+
code: string;
|
|
67
|
+
interfaceDependencies: {
|
|
68
|
+
name: string;
|
|
69
|
+
structures: {
|
|
70
|
+
namespace: string;
|
|
71
|
+
data: {
|
|
72
|
+
description: string;
|
|
73
|
+
code: string;
|
|
74
|
+
}[];
|
|
75
|
+
};
|
|
76
|
+
logics: {
|
|
77
|
+
namespace: string;
|
|
78
|
+
data: {
|
|
79
|
+
description: string;
|
|
80
|
+
code: string;
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
export declare const getConnectors: (app: App, state: any, moduleIndexList?: string[]) => {
|
|
86
|
+
code: string;
|
|
87
|
+
connections: {
|
|
88
|
+
name: string;
|
|
89
|
+
structures: {
|
|
90
|
+
namespace: string;
|
|
91
|
+
data: {
|
|
92
|
+
description: string;
|
|
93
|
+
code: string;
|
|
94
|
+
}[];
|
|
95
|
+
};
|
|
96
|
+
logics: {
|
|
97
|
+
namespace: string;
|
|
98
|
+
data: {
|
|
99
|
+
description: string;
|
|
100
|
+
code: string;
|
|
101
|
+
}[];
|
|
102
|
+
};
|
|
103
|
+
}[];
|
|
104
|
+
};
|
|
105
|
+
export declare const getDependencies: (app: App, state: any, moduleIndexList?: string[]) => {
|
|
106
|
+
code: string;
|
|
107
|
+
dependencies: {
|
|
108
|
+
name: string;
|
|
109
|
+
structures: {
|
|
110
|
+
namespace: string;
|
|
111
|
+
data: {
|
|
112
|
+
description: string;
|
|
113
|
+
code: string;
|
|
114
|
+
}[];
|
|
115
|
+
};
|
|
116
|
+
logics: {
|
|
117
|
+
namespace: string;
|
|
118
|
+
data: {
|
|
119
|
+
description: string;
|
|
120
|
+
code: string;
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
123
|
+
}[];
|
|
124
|
+
};
|
|
125
|
+
export declare const getFrontendVariables: (frontend: Frontend, state: any) => {
|
|
126
|
+
code: string;
|
|
127
|
+
frontendVar: string;
|
|
128
|
+
};
|
|
129
|
+
export declare const getChildrenViews: (view: View, currentNode: BaseNode, convertChildren: boolean, prefix: string) => {
|
|
130
|
+
description: string;
|
|
131
|
+
code: string;
|
|
132
|
+
}[];
|
|
133
|
+
export declare const getFrontendViews: (frontend: Frontend, state: any, currentNode: BaseNode, convertChildren: boolean) => {
|
|
134
|
+
code: string;
|
|
135
|
+
views: {
|
|
136
|
+
namespace: string;
|
|
137
|
+
data: {
|
|
138
|
+
description: string;
|
|
139
|
+
code: string;
|
|
140
|
+
}[];
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
export declare const getCurrentNodeContext: (currentNode: BaseNode, focusedNodePath?: string) => {
|
|
144
|
+
code: string;
|
|
145
|
+
currentLogic: string;
|
|
146
|
+
};
|
|
147
|
+
export declare function genNaturalTSContext(app: App, currentNode?: BaseNode, focusedNodePath?: string, moduleIndexList?: string[]): string;
|
|
148
|
+
export declare const genNaturalTsContextJson: (app: App, currentNode?: BaseNode, focusedNodePath?: string) => {
|
|
149
|
+
naslCore: string;
|
|
150
|
+
naslUtil: string;
|
|
151
|
+
naslUI: string;
|
|
152
|
+
naslOql: string;
|
|
153
|
+
enums: {
|
|
154
|
+
namespace: string;
|
|
155
|
+
data: {
|
|
156
|
+
description: string;
|
|
157
|
+
code: string;
|
|
158
|
+
}[];
|
|
159
|
+
};
|
|
160
|
+
entities: {
|
|
161
|
+
namespace: string;
|
|
162
|
+
data: {
|
|
163
|
+
description: string;
|
|
164
|
+
code: string;
|
|
165
|
+
}[];
|
|
166
|
+
}[];
|
|
167
|
+
structures: {
|
|
168
|
+
namespace: string;
|
|
169
|
+
data: {
|
|
170
|
+
description: string;
|
|
171
|
+
code: string;
|
|
172
|
+
}[];
|
|
173
|
+
};
|
|
174
|
+
appLogics: {
|
|
175
|
+
namespace: string;
|
|
176
|
+
data: {
|
|
177
|
+
description: string;
|
|
178
|
+
code: string;
|
|
179
|
+
}[];
|
|
180
|
+
};
|
|
181
|
+
interfaceDependencies: {
|
|
182
|
+
name: string;
|
|
183
|
+
structures: {
|
|
184
|
+
namespace: string;
|
|
185
|
+
data: {
|
|
186
|
+
description: string;
|
|
187
|
+
code: string;
|
|
188
|
+
}[];
|
|
189
|
+
};
|
|
190
|
+
logics: {
|
|
191
|
+
namespace: string;
|
|
192
|
+
data: {
|
|
193
|
+
description: string;
|
|
194
|
+
code: string;
|
|
195
|
+
}[];
|
|
196
|
+
};
|
|
197
|
+
}[];
|
|
198
|
+
connections: {
|
|
199
|
+
name: string;
|
|
200
|
+
structures: {
|
|
201
|
+
namespace: string;
|
|
202
|
+
data: {
|
|
203
|
+
description: string;
|
|
204
|
+
code: string;
|
|
205
|
+
}[];
|
|
206
|
+
};
|
|
207
|
+
logics: {
|
|
208
|
+
namespace: string;
|
|
209
|
+
data: {
|
|
210
|
+
description: string;
|
|
211
|
+
code: string;
|
|
212
|
+
}[];
|
|
213
|
+
};
|
|
214
|
+
}[];
|
|
215
|
+
dependencies: {
|
|
216
|
+
name: string;
|
|
217
|
+
structures: {
|
|
218
|
+
namespace: string;
|
|
219
|
+
data: {
|
|
220
|
+
description: string;
|
|
221
|
+
code: string;
|
|
222
|
+
}[];
|
|
223
|
+
};
|
|
224
|
+
logics: {
|
|
225
|
+
namespace: string;
|
|
226
|
+
data: {
|
|
227
|
+
description: string;
|
|
228
|
+
code: string;
|
|
229
|
+
}[];
|
|
230
|
+
};
|
|
231
|
+
}[];
|
|
232
|
+
frontendVar: string;
|
|
233
|
+
views: {
|
|
234
|
+
namespace: string;
|
|
235
|
+
data: {
|
|
236
|
+
description: string;
|
|
237
|
+
code: string;
|
|
238
|
+
}[];
|
|
239
|
+
};
|
|
240
|
+
currentLogic: string;
|
|
241
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getNaslStbMap: (key?: string) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const analyzeClaims: (params: any) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const analyzeFormatOutput: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const analyzeTasks: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const executeClaims: (params: any) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as babel from '@babel/core';
|
|
2
|
+
import * as naslTypes from '../concepts';
|
|
3
|
+
export declare function tryParseTS(tsCode: string): babel.types.File;
|
|
4
|
+
export declare function transformTSCode(tsCode: string, contextLogicName: string, type?: string): naslTypes.Logic;
|
|
5
|
+
export declare function tryTransformTSCode(tsCode: string, contextLogicName: string, type?: string): naslTypes.Logic;
|
|
6
|
+
export declare function transformTSCodeEx(answer: any, activeLogic: any, context: any): void;
|
|
7
|
+
export declare function transformTSCodeToExpression(answer: any, context: any): naslTypes.LogicItem[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const CONSTRUCTOR_HOOK = "constructor";
|
|
2
|
+
export declare const BEFORE_HOOK = "before";
|
|
3
|
+
export declare const AFTER_HOOK = "after";
|
|
4
|
+
export declare const NASL_NODE = "nasl-node";
|
|
5
|
+
export declare const NASL_SERVER = "nasl-server";
|
|
6
|
+
export declare const TS_WORKER_MESSAGER = "ts-worker-messager";
|
|
7
|
+
export declare const getAxios: () => import("axios").AxiosStatic;
|
|
8
|
+
declare type ClassType = {
|
|
9
|
+
new (...args: any[]): any;
|
|
10
|
+
};
|
|
11
|
+
declare type FunctionType = (...args: any[]) => any;
|
|
12
|
+
declare type Source = {
|
|
13
|
+
instance: any;
|
|
14
|
+
hook: string;
|
|
15
|
+
name: string;
|
|
16
|
+
params: any[];
|
|
17
|
+
result?: any;
|
|
18
|
+
};
|
|
19
|
+
declare type Listener = (source: Source) => FunctionType | void;
|
|
20
|
+
declare type Monitor = (key: string) => <T extends ClassType>(SourceClass: T) => T;
|
|
21
|
+
export declare const removeListener: (key: string) => (listener: Listener) => void;
|
|
22
|
+
export declare const addListener: (key: string) => (listener: Listener, capture?: boolean) => () => void;
|
|
23
|
+
export declare const sentryMonitor: Monitor;
|
|
24
|
+
export declare const extendSentryMonitor: Monitor;
|
|
25
|
+
export declare const addListenerToNaslNode: (listener: Listener, capture?: boolean) => () => void;
|
|
26
|
+
export declare const addListenerToNaslServer: (listener: Listener, capture?: boolean) => () => void;
|
|
27
|
+
export declare const addListenerToTSWorkerMessager: (listener: Listener, capture?: boolean) => () => void;
|
|
28
|
+
export declare const sentryMonitorNaslNode: <T extends ClassType>(SourceClass: T) => T;
|
|
29
|
+
export declare const sentryMonitorNaslServer: <T extends ClassType>(SourceClass: T) => T;
|
|
30
|
+
export declare const sentryMonitorTSWorkerMessager: <T extends ClassType>(SourceClass: T) => T;
|
|
31
|
+
export declare const extendSentryMonitorNaslNode: <T extends ClassType>(SourceClass: T) => T;
|
|
32
|
+
export declare const extendSentryMonitorNaslServer: <T extends ClassType>(SourceClass: T) => T;
|
|
33
|
+
export declare const extendSentryMonitorTSWorkerMessager: <T extends ClassType>(SourceClass: T) => T;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Logic } from '..';
|
|
2
|
+
export declare const elementsEventsMap: {
|
|
3
|
+
[componentTagEventName: string]: any;
|
|
4
|
+
};
|
|
5
|
+
export declare function getAllComponentEventMap(allComponent: any): {
|
|
6
|
+
[componentTagEventName: string]: any;
|
|
7
|
+
};
|
|
8
|
+
export default function formatUiTs(allComponent: any): {
|
|
9
|
+
code: string;
|
|
10
|
+
elementsLogic: {
|
|
11
|
+
[componentName: string]: Logic[];
|
|
12
|
+
};
|
|
13
|
+
elementsEventsMap: {
|
|
14
|
+
[componentTagEventName: string]: any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function createEleLogins(components: Record<string, any>): Record<string, any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Namespace, Entity, Logic } from '..';
|
|
2
|
+
export declare function entity2LogicNamespace(entity: Entity): Namespace;
|
|
3
|
+
interface entityTreeFragment {
|
|
4
|
+
logics: Array<Logic>;
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
concept: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function entityToTreeFragment(entity: Entity): entityTreeFragment;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const trigger: ({
|
|
2
|
+
name: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
params: {
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
description: string;
|
|
9
|
+
schema: {
|
|
10
|
+
$ref: string;
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
13
|
+
} | {
|
|
14
|
+
name: string;
|
|
15
|
+
title: string;
|
|
16
|
+
params: {
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
description: string;
|
|
20
|
+
schema: {
|
|
21
|
+
$ref: string;
|
|
22
|
+
};
|
|
23
|
+
}[];
|
|
24
|
+
description?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
name: string;
|
|
27
|
+
title: string;
|
|
28
|
+
description?: undefined;
|
|
29
|
+
params?: undefined;
|
|
30
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Identifier, TypeAnnotation, MemberExpression, CompletionProperty, Variable, ConfigProperty, types, BackendVariable } from '..';
|
|
2
|
+
interface variableItem {
|
|
3
|
+
text: string;
|
|
4
|
+
completionDetail: any;
|
|
5
|
+
children?: variableItem[] | any;
|
|
6
|
+
name?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
expression: MemberExpression | Identifier;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 解析 Completion 和 QuickInfo 的 displayString
|
|
12
|
+
* 生成 TypeAnnotation
|
|
13
|
+
* @param displayString
|
|
14
|
+
*/
|
|
15
|
+
export declare function type2TypeAnnotation(oldType: Array<any> | {}): Generator<any, TypeAnnotation, any>;
|
|
16
|
+
/**
|
|
17
|
+
* 解析 Completion 和 QuickInfo 的 displayString
|
|
18
|
+
* 生成 TypeAnnotation
|
|
19
|
+
* @param displayString
|
|
20
|
+
* @returns TypeAnnotation
|
|
21
|
+
*/
|
|
22
|
+
export declare function displayString2TypeAnnotation(typeStr: string, parentPrefix?: string): TypeAnnotation;
|
|
23
|
+
export declare function getPlatformType(type: string, node?: types.SyntaxNode): string;
|
|
24
|
+
export declare function isNoChildType(type: String): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 获取下一级的节点进行递归
|
|
27
|
+
* @param typeKey 当前节点的类型,主要为了取出内部的 T中的实际类型
|
|
28
|
+
* @param item 当前节点的内容
|
|
29
|
+
* @param node 获取变量框的位置
|
|
30
|
+
*/
|
|
31
|
+
export declare function nextFindTypeChild(typeKey: string, item: any, node: types.SyntaxNode): void;
|
|
32
|
+
export declare function formatVariableData(data: unknown | variableItem[], node: types.SyntaxNode, parent?: any): CompletionProperty[];
|
|
33
|
+
export declare function formatBackendVariables(variables: Array<BackendVariable>): CompletionProperty[];
|
|
34
|
+
export declare function formatFrontEndVariables(frontEndVariables: Array<Variable>): CompletionProperty[];
|
|
35
|
+
export declare function formatConfigProperties(configProperties: Array<ConfigProperty>, isView: Boolean): any;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type CallConnector from '../concepts/CallConnector__';
|
|
2
|
+
import type { App } from '..';
|
|
3
|
+
import type Connector from '../concepts/Connector__';
|
|
4
|
+
import type Connection from '../concepts/Connection__';
|
|
5
|
+
export declare function getConnections(node: CallConnector): Connection[];
|
|
6
|
+
export declare function getConnectorTree(node: CallConnector, filterText: string): {
|
|
7
|
+
name: string;
|
|
8
|
+
title: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
expanded: boolean;
|
|
11
|
+
unselectable: boolean;
|
|
12
|
+
isCustom: boolean;
|
|
13
|
+
children: Connection[];
|
|
14
|
+
}[];
|
|
15
|
+
export declare function publishConnector(app: App, connector: Connector): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getLogging(): import("..").Namespace;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Identifier } from '../concepts/Identifier__';
|
|
2
|
+
import { CallLogic, BindEvent, Namespace, Logic } from '..';
|
|
3
|
+
export declare function getLogics(node: CallLogic | BindEvent | Identifier | Logic, needAllLogic?: boolean): Promise<Namespace[]>;
|
|
4
|
+
export declare function getLogicsSync(node: CallLogic | BindEvent | Identifier | Logic, needAllLogic?: boolean): Namespace[];
|
|
5
|
+
export declare function iteratorTree(treeList: {}[], filterText?: string): {}[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseNode, CompletionProperty, Identifier, Enum, types } from '..';
|
|
2
|
+
export declare function formatEnums(enums: Array<Enum>): CompletionProperty[];
|
|
3
|
+
export declare function getMemberIdentifier(node: types.SyntaxNode): Promise<{
|
|
4
|
+
name: string;
|
|
5
|
+
children: CompletionProperty[];
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
icon: string;
|
|
8
|
+
}[]>;
|
|
9
|
+
export declare function getFrontEndVariablesIdentifier(node: BaseNode): CompletionProperty[];
|
|
10
|
+
export declare function getLiteralsIdentifier(): CompletionProperty[];
|
|
11
|
+
export declare function getEnumsIdentifier(node: BaseNode): CompletionProperty[];
|
|
12
|
+
export declare function getBackendVariablesIdentifier(node: BaseNode): CompletionProperty[];
|
|
13
|
+
export declare function getVariableIdentifier(node: types.SyntaxNode): Promise<CompletionProperty[]>;
|
|
14
|
+
export declare function getGlobalVariableIdentifier(node: BaseNode): Promise<CompletionProperty[]>;
|
|
15
|
+
export declare function getSelectNextCompletionData(node: Identifier, completionProperty?: CompletionProperty): Promise<CompletionProperty[]>;
|
|
16
|
+
export declare function getConfigsIdentifier(node: BaseNode): CompletionProperty[];
|
|
17
|
+
export declare function getPageComponentsIdentifier(node: types.SyntaxNode): CompletionProperty[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import Constant from '../concepts/Constant__';
|
|
2
|
+
import { CompletionProperty, Process, ProcessElement, Namespace, Logic, Return, Variable, StructureProperty, Param, MemberExpression, LogicItem, EntityProperty } from '..';
|
|
3
|
+
export declare function genLaunchProcess(process: Process): Logic;
|
|
4
|
+
export declare function process2LogicNamespace(process: Process): Namespace;
|
|
5
|
+
export declare function returnToParam(r: Return): Param;
|
|
6
|
+
export declare function constantToParam(v: Constant): Param;
|
|
7
|
+
export declare function genUserTaskLogic(userTask: ProcessElement): Logic[];
|
|
8
|
+
export declare function userTask2LogicNamespace(userTask: ProcessElement): Namespace;
|
|
9
|
+
declare type CompletionData = {
|
|
10
|
+
name: string;
|
|
11
|
+
concept: string;
|
|
12
|
+
value: string;
|
|
13
|
+
selectable?: boolean;
|
|
14
|
+
children: Array<CompletionData>;
|
|
15
|
+
};
|
|
16
|
+
declare type Suggestion = {
|
|
17
|
+
name: string;
|
|
18
|
+
children: Array<CompletionProperty | CompletionData>;
|
|
19
|
+
};
|
|
20
|
+
declare type VariableSuggestion = Array<Suggestion>;
|
|
21
|
+
export declare function travelDown(node: any, callback: (node: any) => void): void;
|
|
22
|
+
export declare function syncMemberExpression(elem: ProcessElement | Process, callback: (node: MemberExpression) => void): void;
|
|
23
|
+
export declare function genMemberExpression(path: string): MemberExpression;
|
|
24
|
+
export declare function genCompletionProperty(prefix?: string[]): (v: Variable | Param | Return | Constant | EntityProperty | StructureProperty) => CompletionProperty;
|
|
25
|
+
export declare function getPreviousTask(node: ProcessElement, nodePorcess?: Process): ProcessElement[];
|
|
26
|
+
export declare function getProcessVariableSuggestions(node: LogicItem, abandonConstant?: boolean): CompletionProperty;
|
|
27
|
+
export declare function getProcessVaraibleSelections(node: Logic, list: VariableSuggestion): void;
|
|
28
|
+
export declare function getProcessVariableSuggestionsAll(node: ProcessElement, exitConstantId?: Boolean): CompletionProperty;
|
|
29
|
+
export declare function getFlowAfterElements(el: ProcessElement): ProcessElement[];
|
|
30
|
+
export declare function getFlowBeforeElements(el: ProcessElement): ProcessElement[];
|
|
31
|
+
export declare function isFromStartNode(el: ProcessElement): boolean;
|
|
32
|
+
export declare function findNodeAfterNodeInFlow(el: ProcessElement): unknown[];
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Logic, View, Process } from '..';
|
|
2
|
+
declare type wordScope = {
|
|
3
|
+
Param?: string[];
|
|
4
|
+
Return?: string[];
|
|
5
|
+
Variable?: string[];
|
|
6
|
+
Constant?: string[];
|
|
7
|
+
Logic?: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare function getLogicScopeWords(logic: Logic): wordScope;
|
|
10
|
+
export declare function getViewScopeWords(view: View): wordScope;
|
|
11
|
+
export declare function getProcessScopeWords(process: Process): wordScope;
|
|
12
|
+
export declare function combineScope(a: wordScope, b: wordScope): wordScope;
|
|
13
|
+
export {};
|