@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
|
@@ -1088,6 +1088,7 @@ export function initialize() {
|
|
|
1088
1088
|
new Function({
|
|
1089
1089
|
name: 'FormatDate',
|
|
1090
1090
|
description: '返回格式化日期字符串',
|
|
1091
|
+
composedBy: ['Format'],
|
|
1091
1092
|
params: [
|
|
1092
1093
|
new Param({
|
|
1093
1094
|
name: 'date',
|
|
@@ -1103,6 +1104,28 @@ export function initialize() {
|
|
|
1103
1104
|
}),
|
|
1104
1105
|
defaultExpression: new StringLiteral({ value: 'yyyy-MM-dd' }),
|
|
1105
1106
|
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1107
|
+
options: [
|
|
1108
|
+
{
|
|
1109
|
+
text: 'yyyy年MM月dd日',
|
|
1110
|
+
value: 'yyyy年MM月dd日',
|
|
1111
|
+
description: 'yyyy年MM月dd日',
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
text: 'yyyy-MM-dd',
|
|
1115
|
+
value: 'yyyy-MM-dd',
|
|
1116
|
+
description: 'yyyy-MM-dd',
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
text: 'dd/MM/yyyy',
|
|
1120
|
+
value: 'dd/MM/yyyy',
|
|
1121
|
+
description: 'dd/MM/yyyy',
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
text: 'MM/dd/yyyy',
|
|
1125
|
+
value: 'MM/dd/yyyy',
|
|
1126
|
+
description: 'MM/dd/yyyy',
|
|
1127
|
+
},
|
|
1128
|
+
]
|
|
1106
1129
|
})
|
|
1107
1130
|
],
|
|
1108
1131
|
returns: [
|
|
@@ -1114,6 +1137,7 @@ export function initialize() {
|
|
|
1114
1137
|
new Function({
|
|
1115
1138
|
name: 'FormatDateTime',
|
|
1116
1139
|
description: '返回格式化日期时间字符串。当输入为 DateTime 类型时,会把数据转到目标时区的当地时间进行格式化。',
|
|
1140
|
+
composedBy: ['Format'],
|
|
1117
1141
|
params: [
|
|
1118
1142
|
new Param({
|
|
1119
1143
|
name: 'date',
|
|
@@ -1129,6 +1153,154 @@ export function initialize() {
|
|
|
1129
1153
|
concept: 'DefaultValue',
|
|
1130
1154
|
}),
|
|
1131
1155
|
defaultExpression: new StringLiteral({ value: 'yyyy-MM-dd HH:mm:ss' }),
|
|
1156
|
+
options: [
|
|
1157
|
+
{
|
|
1158
|
+
text: 'yyyy年MM月dd日 HH时mm分ss秒',
|
|
1159
|
+
value: 'yyyy年MM月dd日 HH时mm分ss秒',
|
|
1160
|
+
description: 'yyyy年MM月dd日 HH时mm分ss秒',
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
text: 'yyyy-MM-dd HH:mm:ss',
|
|
1164
|
+
value: 'yyyy-MM-dd HH:mm:ss',
|
|
1165
|
+
description: 'yyyy-MM-dd HH:mm:ss',
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
text: 'dd/MM/yyyy HH:mm:ss',
|
|
1169
|
+
value: 'dd/MM/yyyy HH:mm:ss',
|
|
1170
|
+
description: 'dd/MM/yyyy HH:mm:ss',
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
text: 'MM/dd/yyyy HH:mm:ss',
|
|
1174
|
+
value: 'MM/dd/yyyy HH:mm:ss',
|
|
1175
|
+
description: 'MM/dd/yyyy HH:mm:ss',
|
|
1176
|
+
},
|
|
1177
|
+
]
|
|
1178
|
+
}),
|
|
1179
|
+
new Param({
|
|
1180
|
+
name: '时区',
|
|
1181
|
+
description: '以此时区为基准',
|
|
1182
|
+
useComponent: { type: 's-bidirectional-bind-switch' },
|
|
1183
|
+
defaultExpression: new StringLiteral({
|
|
1184
|
+
name: 'FormatDateTimeTimeZoneDefaultExpression',
|
|
1185
|
+
value: 'global'
|
|
1186
|
+
}),
|
|
1187
|
+
options: TIMEZONES,
|
|
1188
|
+
hidden: true,
|
|
1189
|
+
}),
|
|
1190
|
+
],
|
|
1191
|
+
returns: [
|
|
1192
|
+
new Return({
|
|
1193
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1194
|
+
}),
|
|
1195
|
+
],
|
|
1196
|
+
}),
|
|
1197
|
+
new Function({
|
|
1198
|
+
name: 'FormatTime',
|
|
1199
|
+
description: '返回格式化时间字符串',
|
|
1200
|
+
composedBy: ['Format'],
|
|
1201
|
+
params: [
|
|
1202
|
+
new Param({
|
|
1203
|
+
name: 'date',
|
|
1204
|
+
description: '指定需要格式化时间的字段',
|
|
1205
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Time'),
|
|
1206
|
+
}),
|
|
1207
|
+
new Param({
|
|
1208
|
+
name: 'formatter',
|
|
1209
|
+
description: '格式化规则,默认为HH:mm:ss,即时分秒格式',
|
|
1210
|
+
defaultValue: new DefaultValue({
|
|
1211
|
+
expression: new StringLiteral({ value: 'HH:mm:ss' }),
|
|
1212
|
+
concept: 'DefaultValue',
|
|
1213
|
+
}),
|
|
1214
|
+
defaultExpression: new StringLiteral({ value: 'HH:mm:ss' }),
|
|
1215
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1216
|
+
options: [
|
|
1217
|
+
{
|
|
1218
|
+
text: 'HH:mm:ss',
|
|
1219
|
+
value: 'HH:mm:ss',
|
|
1220
|
+
description: 'HH:mm:ss',
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
text: 'HH时mm分ss秒',
|
|
1224
|
+
value: 'HH时mm分ss秒',
|
|
1225
|
+
description: 'HH时mm分ss秒',
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
text: 'HH:mm',
|
|
1229
|
+
value: 'HH:mm',
|
|
1230
|
+
description: 'HH:mm',
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
text: 'HH时mm分',
|
|
1234
|
+
value: 'HH时mm分',
|
|
1235
|
+
description: 'HH时mm分',
|
|
1236
|
+
},
|
|
1237
|
+
]
|
|
1238
|
+
})
|
|
1239
|
+
],
|
|
1240
|
+
returns: [
|
|
1241
|
+
new Return({
|
|
1242
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1243
|
+
}),
|
|
1244
|
+
],
|
|
1245
|
+
}),
|
|
1246
|
+
new Function({
|
|
1247
|
+
name: 'Format',
|
|
1248
|
+
description: '返回格式化字符串,如数值、百分比、日期时间等',
|
|
1249
|
+
composedBy: ['Format'],
|
|
1250
|
+
}),
|
|
1251
|
+
new Function({
|
|
1252
|
+
name: 'FormatPercent',
|
|
1253
|
+
description: '返回格式化字符串,如数值、百分比、日期时间等',
|
|
1254
|
+
composedBy: ['Format'],
|
|
1255
|
+
params: [
|
|
1256
|
+
new Param({
|
|
1257
|
+
name: 'value',
|
|
1258
|
+
description: '指定格式化字段',
|
|
1259
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
|
|
1260
|
+
defaultExpression: new Identifier(),
|
|
1261
|
+
}),
|
|
1262
|
+
new Param({
|
|
1263
|
+
name: 'digits',
|
|
1264
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1265
|
+
description: '保留小数位数',
|
|
1266
|
+
defaultValue: new DefaultValue({
|
|
1267
|
+
expression: new NumericLiteral({ value: '2' }),
|
|
1268
|
+
concept: 'DefaultValue',
|
|
1269
|
+
}),
|
|
1270
|
+
defaultExpression: new NumericLiteral({ value: '2' }),
|
|
1271
|
+
}),
|
|
1272
|
+
new Param({
|
|
1273
|
+
name: 'omit',
|
|
1274
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
1275
|
+
description: '是否隐藏末尾0',
|
|
1276
|
+
useComponent: { type: 's-checkbox' },
|
|
1277
|
+
defaultValue: new DefaultValue({
|
|
1278
|
+
expression: new BooleanLiteral({ value: 'true' }),
|
|
1279
|
+
concept: 'DefaultValue',
|
|
1280
|
+
}),
|
|
1281
|
+
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
1282
|
+
}),
|
|
1283
|
+
new Param({
|
|
1284
|
+
name: 'showGroups',
|
|
1285
|
+
description: '是否显示千分位:true显示,false不显示',
|
|
1286
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
1287
|
+
defaultValue: new DefaultValue({
|
|
1288
|
+
expression: new BooleanLiteral({ value: 'false' }),
|
|
1289
|
+
concept: 'DefaultValue',
|
|
1290
|
+
}),
|
|
1291
|
+
defaultExpression: new BooleanLiteral({ value: 'false' }),
|
|
1292
|
+
options: [
|
|
1293
|
+
{
|
|
1294
|
+
text: 'true',
|
|
1295
|
+
value: 'true',
|
|
1296
|
+
description: '显示千分位',
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
text: 'false',
|
|
1300
|
+
value: 'false',
|
|
1301
|
+
description: '不显示千分位',
|
|
1302
|
+
},
|
|
1303
|
+
],
|
|
1132
1304
|
}),
|
|
1133
1305
|
],
|
|
1134
1306
|
returns: [
|
|
@@ -1140,10 +1312,11 @@ export function initialize() {
|
|
|
1140
1312
|
new Function({
|
|
1141
1313
|
name: 'FormatNumber',
|
|
1142
1314
|
description: '返回格式化的数字字符串',
|
|
1315
|
+
composedBy: ['Format'],
|
|
1143
1316
|
params: [
|
|
1144
1317
|
new Param({
|
|
1145
1318
|
name: 'value',
|
|
1146
|
-
description: '
|
|
1319
|
+
description: '指定格式化字段',
|
|
1147
1320
|
typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
|
|
1148
1321
|
defaultExpression: new Identifier(),
|
|
1149
1322
|
}),
|
|
@@ -1157,6 +1330,17 @@ export function initialize() {
|
|
|
1157
1330
|
}),
|
|
1158
1331
|
defaultExpression: new NumericLiteral({ value: '2' }),
|
|
1159
1332
|
}),
|
|
1333
|
+
new Param({
|
|
1334
|
+
name: 'omit',
|
|
1335
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
1336
|
+
description: '是否隐藏末尾0',
|
|
1337
|
+
useComponent: { type: 's-checkbox' },
|
|
1338
|
+
defaultValue: new DefaultValue({
|
|
1339
|
+
expression: new BooleanLiteral({ value: 'true' }),
|
|
1340
|
+
concept: 'DefaultValue',
|
|
1341
|
+
}),
|
|
1342
|
+
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
1343
|
+
}),
|
|
1160
1344
|
new Param({
|
|
1161
1345
|
name: 'showGroups',
|
|
1162
1346
|
description: '是否显示千分位:true显示,false不显示',
|
|
@@ -1179,6 +1363,38 @@ export function initialize() {
|
|
|
1179
1363
|
},
|
|
1180
1364
|
],
|
|
1181
1365
|
}),
|
|
1366
|
+
new Param({
|
|
1367
|
+
name: 'fix',
|
|
1368
|
+
description: '前缀和后缀',
|
|
1369
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1370
|
+
defaultValue: new DefaultValue({
|
|
1371
|
+
expression: new StringLiteral({ value: 'prefix' }),
|
|
1372
|
+
concept: 'DefaultValue',
|
|
1373
|
+
}),
|
|
1374
|
+
defaultExpression: new StringLiteral({ value: 'prefix' }),
|
|
1375
|
+
options: [
|
|
1376
|
+
{
|
|
1377
|
+
text: '前缀',
|
|
1378
|
+
value: 'prefix',
|
|
1379
|
+
description: '前缀',
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
text: '后缀',
|
|
1383
|
+
value: 'suffix',
|
|
1384
|
+
description: '后缀',
|
|
1385
|
+
},
|
|
1386
|
+
]
|
|
1387
|
+
}),
|
|
1388
|
+
new Param({
|
|
1389
|
+
name: 'unit',
|
|
1390
|
+
description: '表示前缀和后缀的内容',
|
|
1391
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1392
|
+
defaultValue: new DefaultValue({
|
|
1393
|
+
expression: new StringLiteral({ value: '' }),
|
|
1394
|
+
concept: 'DefaultValue',
|
|
1395
|
+
}),
|
|
1396
|
+
defaultExpression: new StringLiteral({ value: '' }),
|
|
1397
|
+
}),
|
|
1182
1398
|
],
|
|
1183
1399
|
returns: [
|
|
1184
1400
|
new Return({
|
package/src/concepts/index__.ts
CHANGED
|
@@ -145,9 +145,12 @@ export * from './AuthInterface__';
|
|
|
145
145
|
export * from './CallAuthInterface__';
|
|
146
146
|
export * from './TriggerEvent__';
|
|
147
147
|
export * from './MsgTriggerEvent__';
|
|
148
|
+
export * from './InterfaceTriggerEvent__';
|
|
148
149
|
export * from './ConnectorTrigger__';
|
|
149
150
|
export * from './TriggerLauncher__';
|
|
151
|
+
export * from './ConnectorTriggerLauncher__';
|
|
150
152
|
export * from './MsgTriggerLauncher__';
|
|
151
153
|
export * from './Connector__';
|
|
152
154
|
export * from './CallConnector__';
|
|
153
155
|
export * from './Connection__';
|
|
156
|
+
export * from './ConnectorLogic__';
|
|
@@ -145,12 +145,15 @@ import type { AuthInterface } from '../AuthInterface__';
|
|
|
145
145
|
import type { CallAuthInterface } from '../CallAuthInterface__';
|
|
146
146
|
import type { TriggerEvent } from '../TriggerEvent__';
|
|
147
147
|
import type { MsgTriggerEvent } from '../MsgTriggerEvent__';
|
|
148
|
+
import type { InterfaceTriggerEvent } from '../InterfaceTriggerEvent__';
|
|
148
149
|
import type { ConnectorTrigger } from '../ConnectorTrigger__';
|
|
149
150
|
import type { TriggerLauncher } from '../TriggerLauncher__';
|
|
151
|
+
import type { ConnectorTriggerLauncher } from '../ConnectorTriggerLauncher__';
|
|
150
152
|
import type { MsgTriggerLauncher } from '../MsgTriggerLauncher__';
|
|
151
153
|
import type { Connector } from '../Connector__';
|
|
152
154
|
import type { CallConnector } from '../CallConnector__';
|
|
153
155
|
import type { Connection } from '../Connection__';
|
|
156
|
+
import type { ConnectorLogic } from '../ConnectorLogic__';
|
|
154
157
|
import type * as types from './types';
|
|
155
158
|
import type { BaseNode } from '../../common';
|
|
156
159
|
import type { FileNode } from '../../utils';
|
|
@@ -2290,33 +2293,33 @@ export function isStrictCallAuthInterface(node: unknown): node is CallAuthInterf
|
|
|
2290
2293
|
}
|
|
2291
2294
|
|
|
2292
2295
|
/**
|
|
2293
|
-
* 严格判断输入为
|
|
2296
|
+
* 严格判断输入为 MsgTriggerEvent 节点
|
|
2294
2297
|
*
|
|
2295
2298
|
* @description 仅判断节点本身,不包含继承类
|
|
2296
2299
|
* @example
|
|
2297
2300
|
* ```ts
|
|
2298
|
-
* if (
|
|
2299
|
-
* // 在这个花括号内,node 的类型为
|
|
2301
|
+
* if (isStrictMsgTriggerEvent(node)) {
|
|
2302
|
+
* // 在这个花括号内,node 的类型为 MsgTriggerEvent
|
|
2300
2303
|
* }
|
|
2301
2304
|
* ```
|
|
2302
2305
|
*/
|
|
2303
|
-
export function
|
|
2304
|
-
return isBaseNode(node) && node.concept === '
|
|
2306
|
+
export function isStrictMsgTriggerEvent(node: unknown): node is MsgTriggerEvent {
|
|
2307
|
+
return isBaseNode(node) && node.concept === 'MsgTriggerEvent';
|
|
2305
2308
|
}
|
|
2306
2309
|
|
|
2307
2310
|
/**
|
|
2308
|
-
* 严格判断输入为
|
|
2311
|
+
* 严格判断输入为 InterfaceTriggerEvent 节点
|
|
2309
2312
|
*
|
|
2310
2313
|
* @description 仅判断节点本身,不包含继承类
|
|
2311
2314
|
* @example
|
|
2312
2315
|
* ```ts
|
|
2313
|
-
* if (
|
|
2314
|
-
* // 在这个花括号内,node 的类型为
|
|
2316
|
+
* if (isStrictInterfaceTriggerEvent(node)) {
|
|
2317
|
+
* // 在这个花括号内,node 的类型为 InterfaceTriggerEvent
|
|
2315
2318
|
* }
|
|
2316
2319
|
* ```
|
|
2317
2320
|
*/
|
|
2318
|
-
export function
|
|
2319
|
-
return isBaseNode(node) && node.concept === '
|
|
2321
|
+
export function isStrictInterfaceTriggerEvent(node: unknown): node is InterfaceTriggerEvent {
|
|
2322
|
+
return isBaseNode(node) && node.concept === 'InterfaceTriggerEvent';
|
|
2320
2323
|
}
|
|
2321
2324
|
|
|
2322
2325
|
/**
|
|
@@ -2349,6 +2352,21 @@ export function isStrictTriggerLauncher(node: unknown): node is TriggerLauncher
|
|
|
2349
2352
|
return isBaseNode(node) && node.concept === 'TriggerLauncher';
|
|
2350
2353
|
}
|
|
2351
2354
|
|
|
2355
|
+
/**
|
|
2356
|
+
* 严格判断输入为 ConnectorTriggerLauncher 节点
|
|
2357
|
+
*
|
|
2358
|
+
* @description 仅判断节点本身,不包含继承类
|
|
2359
|
+
* @example
|
|
2360
|
+
* ```ts
|
|
2361
|
+
* if (isStrictConnectorTriggerLauncher(node)) {
|
|
2362
|
+
* // 在这个花括号内,node 的类型为 ConnectorTriggerLauncher
|
|
2363
|
+
* }
|
|
2364
|
+
* ```
|
|
2365
|
+
*/
|
|
2366
|
+
export function isStrictConnectorTriggerLauncher(node: unknown): node is ConnectorTriggerLauncher {
|
|
2367
|
+
return isBaseNode(node) && node.concept === 'ConnectorTriggerLauncher';
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2352
2370
|
/**
|
|
2353
2371
|
* 严格判断输入为 MsgTriggerLauncher 节点
|
|
2354
2372
|
*
|
|
@@ -2409,6 +2427,21 @@ export function isStrictConnection(node: unknown): node is Connection {
|
|
|
2409
2427
|
return isBaseNode(node) && node.concept === 'Connection';
|
|
2410
2428
|
}
|
|
2411
2429
|
|
|
2430
|
+
/**
|
|
2431
|
+
* 严格判断输入为 ConnectorLogic 节点
|
|
2432
|
+
*
|
|
2433
|
+
* @description 仅判断节点本身,不包含继承类
|
|
2434
|
+
* @example
|
|
2435
|
+
* ```ts
|
|
2436
|
+
* if (isStrictConnectorLogic(node)) {
|
|
2437
|
+
* // 在这个花括号内,node 的类型为 ConnectorLogic
|
|
2438
|
+
* }
|
|
2439
|
+
* ```
|
|
2440
|
+
*/
|
|
2441
|
+
export function isStrictConnectorLogic(node: unknown): node is ConnectorLogic {
|
|
2442
|
+
return isBaseNode(node) && node.concept === 'ConnectorLogic';
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2412
2445
|
|
|
2413
2446
|
|
|
2414
2447
|
//=========== 以下为继承类型判断 ===========
|
|
@@ -3407,7 +3440,8 @@ export function isLogic(node: unknown): node is types.LogicNode {
|
|
|
3407
3440
|
node.concept === 'Logic' ||
|
|
3408
3441
|
node.concept === 'AuthLogic' ||
|
|
3409
3442
|
node.concept === 'AuthLogicForCallInterface' ||
|
|
3410
|
-
node.concept === 'BusinessLogic'
|
|
3443
|
+
node.concept === 'BusinessLogic' ||
|
|
3444
|
+
node.concept === 'ConnectorLogic'
|
|
3411
3445
|
)
|
|
3412
3446
|
);
|
|
3413
3447
|
}
|
|
@@ -5558,7 +5592,8 @@ export function isTriggerEvent(node: unknown): node is types.TriggerEventNode {
|
|
|
5558
5592
|
isBaseNode(node) &&
|
|
5559
5593
|
(
|
|
5560
5594
|
node.concept === 'TriggerEvent' ||
|
|
5561
|
-
node.concept === 'MsgTriggerEvent'
|
|
5595
|
+
node.concept === 'MsgTriggerEvent' ||
|
|
5596
|
+
node.concept === 'InterfaceTriggerEvent'
|
|
5562
5597
|
)
|
|
5563
5598
|
);
|
|
5564
5599
|
}
|
|
@@ -5584,6 +5619,27 @@ export function isMsgTriggerEvent(node: unknown): node is MsgTriggerEvent {
|
|
|
5584
5619
|
);
|
|
5585
5620
|
}
|
|
5586
5621
|
|
|
5622
|
+
/**
|
|
5623
|
+
* 判断输入为 InterfaceTriggerEvent 节点实例
|
|
5624
|
+
*
|
|
5625
|
+
* @description 包含节点类以及节点继承类的判断
|
|
5626
|
+
* @description 等价于`instanceof`运算,InterfaceTriggerEvent 节点没有继承类,此判断等价于`isStrictInterfaceTriggerEvent`
|
|
5627
|
+
* @example
|
|
5628
|
+
* ```ts
|
|
5629
|
+
* if (isInterfaceTriggerEvent(node)) {
|
|
5630
|
+
* // 在这个花括号内,node 的类型是 InterfaceTriggerEvent 或者 InterfaceTriggerEvent 继承类型
|
|
5631
|
+
* }
|
|
5632
|
+
* ```
|
|
5633
|
+
*/
|
|
5634
|
+
export function isInterfaceTriggerEvent(node: unknown): node is InterfaceTriggerEvent {
|
|
5635
|
+
return (
|
|
5636
|
+
isBaseNode(node) &&
|
|
5637
|
+
(
|
|
5638
|
+
node.concept === 'InterfaceTriggerEvent'
|
|
5639
|
+
)
|
|
5640
|
+
);
|
|
5641
|
+
}
|
|
5642
|
+
|
|
5587
5643
|
/**
|
|
5588
5644
|
* 判断输入为 ConnectorTrigger 节点实例
|
|
5589
5645
|
*
|
|
@@ -5622,6 +5678,29 @@ export function isTriggerLauncher(node: unknown): node is types.TriggerLauncherN
|
|
|
5622
5678
|
isBaseNode(node) &&
|
|
5623
5679
|
(
|
|
5624
5680
|
node.concept === 'TriggerLauncher' ||
|
|
5681
|
+
node.concept === 'ConnectorTriggerLauncher' ||
|
|
5682
|
+
node.concept === 'MsgTriggerLauncher'
|
|
5683
|
+
)
|
|
5684
|
+
);
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
/**
|
|
5688
|
+
* 判断输入为 ConnectorTriggerLauncher 节点实例
|
|
5689
|
+
*
|
|
5690
|
+
* @description 包含节点类以及节点继承类的判断
|
|
5691
|
+
* @description 等价于`instanceof`运算
|
|
5692
|
+
* @example
|
|
5693
|
+
* ```ts
|
|
5694
|
+
* if (isConnectorTriggerLauncher(node)) {
|
|
5695
|
+
* // 在这个花括号内,node 的类型是 ConnectorTriggerLauncher 或者 ConnectorTriggerLauncher 继承类型
|
|
5696
|
+
* }
|
|
5697
|
+
* ```
|
|
5698
|
+
*/
|
|
5699
|
+
export function isConnectorTriggerLauncher(node: unknown): node is types.ConnectorTriggerLauncherNode {
|
|
5700
|
+
return (
|
|
5701
|
+
isBaseNode(node) &&
|
|
5702
|
+
(
|
|
5703
|
+
node.concept === 'ConnectorTriggerLauncher' ||
|
|
5625
5704
|
node.concept === 'MsgTriggerLauncher'
|
|
5626
5705
|
)
|
|
5627
5706
|
);
|
|
@@ -5711,6 +5790,27 @@ export function isConnection(node: unknown): node is Connection {
|
|
|
5711
5790
|
);
|
|
5712
5791
|
}
|
|
5713
5792
|
|
|
5793
|
+
/**
|
|
5794
|
+
* 判断输入为 ConnectorLogic 节点实例
|
|
5795
|
+
*
|
|
5796
|
+
* @description 包含节点类以及节点继承类的判断
|
|
5797
|
+
* @description 等价于`instanceof`运算,ConnectorLogic 节点没有继承类,此判断等价于`isStrictConnectorLogic`
|
|
5798
|
+
* @example
|
|
5799
|
+
* ```ts
|
|
5800
|
+
* if (isConnectorLogic(node)) {
|
|
5801
|
+
* // 在这个花括号内,node 的类型是 ConnectorLogic 或者 ConnectorLogic 继承类型
|
|
5802
|
+
* }
|
|
5803
|
+
* ```
|
|
5804
|
+
*/
|
|
5805
|
+
export function isConnectorLogic(node: unknown): node is ConnectorLogic {
|
|
5806
|
+
return (
|
|
5807
|
+
isBaseNode(node) &&
|
|
5808
|
+
(
|
|
5809
|
+
node.concept === 'ConnectorLogic'
|
|
5810
|
+
)
|
|
5811
|
+
);
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5714
5814
|
|
|
5715
5815
|
|
|
5716
5816
|
//=========== 以下为严格类型断言 ===========
|
|
@@ -8096,36 +8196,36 @@ export function assertStrictCallAuthInterface(node: unknown): asserts node is Ca
|
|
|
8096
8196
|
}
|
|
8097
8197
|
|
|
8098
8198
|
/**
|
|
8099
|
-
* 严格断言为
|
|
8199
|
+
* 严格断言为 MsgTriggerEvent 节点
|
|
8100
8200
|
*
|
|
8101
8201
|
* @description 仅断言节点本身,不包含继承类
|
|
8102
8202
|
* @example
|
|
8103
8203
|
* ```ts
|
|
8104
|
-
*
|
|
8105
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8204
|
+
* assertStrictMsgTriggerEvent(node);
|
|
8205
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 MsgTriggerEvent 类型
|
|
8106
8206
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8107
8207
|
* ```
|
|
8108
8208
|
*/
|
|
8109
|
-
export function
|
|
8110
|
-
if (!
|
|
8111
|
-
throw new Error(`
|
|
8209
|
+
export function assertStrictMsgTriggerEvent(node: unknown): asserts node is MsgTriggerEvent {
|
|
8210
|
+
if (!isStrictMsgTriggerEvent(node)) {
|
|
8211
|
+
throw new Error(`MsgTriggerEvent 节点严格断言失败`);
|
|
8112
8212
|
}
|
|
8113
8213
|
}
|
|
8114
8214
|
|
|
8115
8215
|
/**
|
|
8116
|
-
* 严格断言为
|
|
8216
|
+
* 严格断言为 InterfaceTriggerEvent 节点
|
|
8117
8217
|
*
|
|
8118
8218
|
* @description 仅断言节点本身,不包含继承类
|
|
8119
8219
|
* @example
|
|
8120
8220
|
* ```ts
|
|
8121
|
-
*
|
|
8122
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8221
|
+
* assertStrictInterfaceTriggerEvent(node);
|
|
8222
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InterfaceTriggerEvent 类型
|
|
8123
8223
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8124
8224
|
* ```
|
|
8125
8225
|
*/
|
|
8126
|
-
export function
|
|
8127
|
-
if (!
|
|
8128
|
-
throw new Error(`
|
|
8226
|
+
export function assertStrictInterfaceTriggerEvent(node: unknown): asserts node is InterfaceTriggerEvent {
|
|
8227
|
+
if (!isStrictInterfaceTriggerEvent(node)) {
|
|
8228
|
+
throw new Error(`InterfaceTriggerEvent 节点严格断言失败`);
|
|
8129
8229
|
}
|
|
8130
8230
|
}
|
|
8131
8231
|
|
|
@@ -8163,6 +8263,23 @@ export function assertStrictTriggerLauncher(node: unknown): asserts node is Trig
|
|
|
8163
8263
|
}
|
|
8164
8264
|
}
|
|
8165
8265
|
|
|
8266
|
+
/**
|
|
8267
|
+
* 严格断言为 ConnectorTriggerLauncher 节点
|
|
8268
|
+
*
|
|
8269
|
+
* @description 仅断言节点本身,不包含继承类
|
|
8270
|
+
* @example
|
|
8271
|
+
* ```ts
|
|
8272
|
+
* assertStrictConnectorTriggerLauncher(node);
|
|
8273
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ConnectorTriggerLauncher 类型
|
|
8274
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8275
|
+
* ```
|
|
8276
|
+
*/
|
|
8277
|
+
export function assertStrictConnectorTriggerLauncher(node: unknown): asserts node is ConnectorTriggerLauncher {
|
|
8278
|
+
if (!isStrictConnectorTriggerLauncher(node)) {
|
|
8279
|
+
throw new Error(`ConnectorTriggerLauncher 节点严格断言失败`);
|
|
8280
|
+
}
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8166
8283
|
/**
|
|
8167
8284
|
* 严格断言为 MsgTriggerLauncher 节点
|
|
8168
8285
|
*
|
|
@@ -8231,6 +8348,23 @@ export function assertStrictConnection(node: unknown): asserts node is Connectio
|
|
|
8231
8348
|
}
|
|
8232
8349
|
}
|
|
8233
8350
|
|
|
8351
|
+
/**
|
|
8352
|
+
* 严格断言为 ConnectorLogic 节点
|
|
8353
|
+
*
|
|
8354
|
+
* @description 仅断言节点本身,不包含继承类
|
|
8355
|
+
* @example
|
|
8356
|
+
* ```ts
|
|
8357
|
+
* assertStrictConnectorLogic(node);
|
|
8358
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ConnectorLogic 类型
|
|
8359
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8360
|
+
* ```
|
|
8361
|
+
*/
|
|
8362
|
+
export function assertStrictConnectorLogic(node: unknown): asserts node is ConnectorLogic {
|
|
8363
|
+
if (!isStrictConnectorLogic(node)) {
|
|
8364
|
+
throw new Error(`ConnectorLogic 节点严格断言失败`);
|
|
8365
|
+
}
|
|
8366
|
+
}
|
|
8367
|
+
|
|
8234
8368
|
|
|
8235
8369
|
|
|
8236
8370
|
//=========== 以下为继承类型断言 ===========
|
|
@@ -10881,6 +11015,24 @@ export function assertMsgTriggerEvent(node: unknown): asserts node is MsgTrigger
|
|
|
10881
11015
|
}
|
|
10882
11016
|
}
|
|
10883
11017
|
|
|
11018
|
+
/**
|
|
11019
|
+
* 断言为 InterfaceTriggerEvent 节点
|
|
11020
|
+
*
|
|
11021
|
+
* @description 包含节点类以及节点继承类的判断
|
|
11022
|
+
* @description 节点没有继承类时,等价于`assertStrictInterfaceTriggerEvent`方法
|
|
11023
|
+
* @example
|
|
11024
|
+
* ```ts
|
|
11025
|
+
* assertInterfaceTriggerEvent(node);
|
|
11026
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InterfaceTriggerEvent 或者 InterfaceTriggerEvent 继承类型
|
|
11027
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
11028
|
+
* ```
|
|
11029
|
+
*/
|
|
11030
|
+
export function assertInterfaceTriggerEvent(node: unknown): asserts node is InterfaceTriggerEvent {
|
|
11031
|
+
if (!isInterfaceTriggerEvent(node)) {
|
|
11032
|
+
throw new Error(`InterfaceTriggerEvent 节点断言失败`);
|
|
11033
|
+
}
|
|
11034
|
+
}
|
|
11035
|
+
|
|
10884
11036
|
/**
|
|
10885
11037
|
* 断言为 ConnectorTrigger 节点
|
|
10886
11038
|
*
|
|
@@ -10917,6 +11069,24 @@ export function assertTriggerLauncher(node: unknown): asserts node is types.Trig
|
|
|
10917
11069
|
}
|
|
10918
11070
|
}
|
|
10919
11071
|
|
|
11072
|
+
/**
|
|
11073
|
+
* 断言为 ConnectorTriggerLauncher 节点
|
|
11074
|
+
*
|
|
11075
|
+
* @description 包含节点类以及节点继承类的判断
|
|
11076
|
+
* @description 节点没有继承类时,等价于`assertStrictConnectorTriggerLauncher`方法
|
|
11077
|
+
* @example
|
|
11078
|
+
* ```ts
|
|
11079
|
+
* assertConnectorTriggerLauncher(node);
|
|
11080
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ConnectorTriggerLauncher 或者 ConnectorTriggerLauncher 继承类型
|
|
11081
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
11082
|
+
* ```
|
|
11083
|
+
*/
|
|
11084
|
+
export function assertConnectorTriggerLauncher(node: unknown): asserts node is types.ConnectorTriggerLauncherNode {
|
|
11085
|
+
if (!isConnectorTriggerLauncher(node)) {
|
|
11086
|
+
throw new Error(`ConnectorTriggerLauncher 节点断言失败`);
|
|
11087
|
+
}
|
|
11088
|
+
}
|
|
11089
|
+
|
|
10920
11090
|
/**
|
|
10921
11091
|
* 断言为 MsgTriggerLauncher 节点
|
|
10922
11092
|
*
|
|
@@ -10989,3 +11159,21 @@ export function assertConnection(node: unknown): asserts node is Connection {
|
|
|
10989
11159
|
}
|
|
10990
11160
|
}
|
|
10991
11161
|
|
|
11162
|
+
/**
|
|
11163
|
+
* 断言为 ConnectorLogic 节点
|
|
11164
|
+
*
|
|
11165
|
+
* @description 包含节点类以及节点继承类的判断
|
|
11166
|
+
* @description 节点没有继承类时,等价于`assertStrictConnectorLogic`方法
|
|
11167
|
+
* @example
|
|
11168
|
+
* ```ts
|
|
11169
|
+
* assertConnectorLogic(node);
|
|
11170
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ConnectorLogic 或者 ConnectorLogic 继承类型
|
|
11171
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
11172
|
+
* ```
|
|
11173
|
+
*/
|
|
11174
|
+
export function assertConnectorLogic(node: unknown): asserts node is ConnectorLogic {
|
|
11175
|
+
if (!isConnectorLogic(node)) {
|
|
11176
|
+
throw new Error(`ConnectorLogic 节点断言失败`);
|
|
11177
|
+
}
|
|
11178
|
+
}
|
|
11179
|
+
|