@lcap/nasl 2.22.2-beta.3 → 2.22.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/automate/engine/index.d.ts +4 -0
- package/out/automate/engine/index.js +443 -0
- package/out/automate/engine/index.js.map +1 -0
- package/out/automate/engine/operators.d.ts +24 -0
- package/out/automate/engine/operators.js +252 -0
- package/out/automate/engine/operators.js.map +1 -0
- package/out/automate/engine/uniqueName.d.ts +12 -0
- package/out/automate/engine/uniqueName.js +112 -0
- package/out/automate/engine/uniqueName.js.map +1 -0
- package/out/automate/engine/utils.d.ts +25 -0
- package/out/automate/engine/utils.js +428 -0
- package/out/automate/engine/utils.js.map +1 -0
- package/out/automate/engine/viewCache.d.ts +19 -0
- package/out/automate/engine/viewCache.js +45 -0
- package/out/automate/engine/viewCache.js.map +1 -0
- package/out/automate/template/myProcess.d.ts +10 -0
- package/out/automate/template/myProcess.js +11498 -0
- package/out/automate/template/myProcess.js.map +1 -0
- package/out/bak/translator.d.ts +1 -0
- package/out/bak/translator.js +130 -0
- package/out/bak/translator.js.map +1 -0
- package/out/common/BaseNode.d.ts +306 -0
- package/out/common/BaseNode.js +1222 -0
- package/out/common/BaseNode.js.map +1 -0
- package/out/common/Command.d.ts +20 -0
- package/out/common/Command.js +66 -0
- package/out/common/Command.js.map +1 -0
- package/out/common/ComponentAPI.d.ts +110 -0
- package/out/common/ComponentAPI.js +3 -0
- package/out/common/ComponentAPI.js.map +1 -0
- package/out/common/EventEmitter.d.ts +59 -0
- package/out/common/EventEmitter.js +69 -0
- package/out/common/EventEmitter.js.map +1 -0
- package/out/common/Messager.d.ts +91 -0
- package/out/common/Messager.js +208 -0
- package/out/common/Messager.js.map +1 -0
- package/out/common/index.d.ts +3 -0
- package/out/common/index.js +20 -0
- package/out/common/index.js.map +1 -0
- package/out/concepts/Abort__.d.ts +26 -0
- package/out/concepts/Abort__.js +79 -0
- package/out/concepts/Abort__.js.map +1 -0
- package/out/concepts/Anchor__.d.ts +45 -0
- package/out/concepts/Anchor__.js +182 -0
- package/out/concepts/Anchor__.js.map +1 -0
- package/out/concepts/AnonymousFunction__.d.ts +173 -0
- package/out/concepts/AnonymousFunction__.js +484 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -0
- package/out/concepts/App__.d.ts +1166 -0
- package/out/concepts/App__.js +1885 -0
- package/out/concepts/App__.js.map +1 -0
- package/out/concepts/Argument__.d.ts +66 -0
- package/out/concepts/Argument__.js +267 -0
- package/out/concepts/Argument__.js.map +1 -0
- package/out/concepts/Assignee__.d.ts +289 -0
- package/out/concepts/Assignee__.js +426 -0
- package/out/concepts/Assignee__.js.map +1 -0
- package/out/concepts/AssignmentLine__.d.ts +42 -0
- package/out/concepts/AssignmentLine__.js +111 -0
- package/out/concepts/AssignmentLine__.js.map +1 -0
- package/out/concepts/Assignment__.d.ts +74 -0
- package/out/concepts/Assignment__.js +287 -0
- package/out/concepts/Assignment__.js.map +1 -0
- package/out/concepts/Attribute__.d.ts +98 -0
- package/out/concepts/Attribute__.js +206 -0
- package/out/concepts/Attribute__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +252 -0
- package/out/concepts/BatchAssignment__.js +806 -0
- package/out/concepts/BatchAssignment__.js.map +1 -0
- package/out/concepts/BinaryExpression__.d.ts +71 -0
- package/out/concepts/BinaryExpression__.js +347 -0
- package/out/concepts/BinaryExpression__.js.map +1 -0
- package/out/concepts/BindAttribute__.d.ts +319 -0
- package/out/concepts/BindAttribute__.js +896 -0
- package/out/concepts/BindAttribute__.js.map +1 -0
- package/out/concepts/BindDirective__.d.ts +162 -0
- package/out/concepts/BindDirective__.js +538 -0
- package/out/concepts/BindDirective__.js.map +1 -0
- package/out/concepts/BindEvent__.d.ts +240 -0
- package/out/concepts/BindEvent__.js +764 -0
- package/out/concepts/BindEvent__.js.map +1 -0
- package/out/concepts/BindStyle__.d.ts +140 -0
- package/out/concepts/BindStyle__.js +433 -0
- package/out/concepts/BindStyle__.js.map +1 -0
- package/out/concepts/BooleanLiteral__.d.ts +35 -0
- package/out/concepts/BooleanLiteral__.js +100 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -0
- package/out/concepts/CallFunction__.d.ts +159 -0
- package/out/concepts/CallFunction__.js +503 -0
- package/out/concepts/CallFunction__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +116 -0
- package/out/concepts/CallInterface__.js +570 -0
- package/out/concepts/CallInterface__.js.map +1 -0
- package/out/concepts/CallLogic__.d.ts +187 -0
- package/out/concepts/CallLogic__.js +1007 -0
- package/out/concepts/CallLogic__.js.map +1 -0
- package/out/concepts/CallQueryComponent__.d.ts +433 -0
- package/out/concepts/CallQueryComponent__.js +1267 -0
- package/out/concepts/CallQueryComponent__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +32 -0
- package/out/concepts/Comment__.js +96 -0
- package/out/concepts/Comment__.js.map +1 -0
- package/out/concepts/CompletionProperty__.d.ts +105 -0
- package/out/concepts/CompletionProperty__.js +262 -0
- package/out/concepts/CompletionProperty__.js.map +1 -0
- package/out/concepts/ConfigGroup__.d.ts +124 -0
- package/out/concepts/ConfigGroup__.js +237 -0
- package/out/concepts/ConfigGroup__.js.map +1 -0
- package/out/concepts/ConfigPropertyValue__.d.ts +45 -0
- package/out/concepts/ConfigPropertyValue__.js +107 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -0
- package/out/concepts/ConfigProperty__.d.ts +154 -0
- package/out/concepts/ConfigProperty__.js +324 -0
- package/out/concepts/ConfigProperty__.js.map +1 -0
- package/out/concepts/Configuration__.d.ts +124 -0
- package/out/concepts/Configuration__.js +228 -0
- package/out/concepts/Configuration__.js.map +1 -0
- package/out/concepts/Constant__.d.ts +106 -0
- package/out/concepts/Constant__.js +249 -0
- package/out/concepts/Constant__.js.map +1 -0
- package/out/concepts/DataElement__.d.ts +47 -0
- package/out/concepts/DataElement__.js +119 -0
- package/out/concepts/DataElement__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +165 -0
- package/out/concepts/DataSource__.js +442 -0
- package/out/concepts/DataSource__.js.map +1 -0
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +32 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +79 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
- package/out/concepts/Destination__.d.ts +157 -0
- package/out/concepts/Destination__.js +740 -0
- package/out/concepts/Destination__.js.map +1 -0
- package/out/concepts/End__.d.ts +25 -0
- package/out/concepts/End__.js +86 -0
- package/out/concepts/End__.js.map +1 -0
- package/out/concepts/EntityIndex__.d.ts +96 -0
- package/out/concepts/EntityIndex__.js +221 -0
- package/out/concepts/EntityIndex__.js.map +1 -0
- package/out/concepts/EntityProperty__.d.ts +274 -0
- package/out/concepts/EntityProperty__.js +824 -0
- package/out/concepts/EntityProperty__.js.map +1 -0
- package/out/concepts/Entity__.d.ts +339 -0
- package/out/concepts/Entity__.js +711 -0
- package/out/concepts/Entity__.js.map +1 -0
- package/out/concepts/EnumItem__.d.ts +64 -0
- package/out/concepts/EnumItem__.js +146 -0
- package/out/concepts/EnumItem__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +138 -0
- package/out/concepts/Enum__.js +322 -0
- package/out/concepts/Enum__.js.map +1 -0
- package/out/concepts/Event__.d.ts +144 -0
- package/out/concepts/Event__.js +249 -0
- package/out/concepts/Event__.js.map +1 -0
- package/out/concepts/ExternalDestination__.d.ts +76 -0
- package/out/concepts/ExternalDestination__.js +286 -0
- package/out/concepts/ExternalDestination__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +189 -0
- package/out/concepts/ForEachStatement__.js +446 -0
- package/out/concepts/ForEachStatement__.js.map +1 -0
- package/out/concepts/FrontendLibrary__.d.ts +214 -0
- package/out/concepts/FrontendLibrary__.js +353 -0
- package/out/concepts/FrontendLibrary__.js.map +1 -0
- package/out/concepts/Frontend__.d.ts +374 -0
- package/out/concepts/Frontend__.js +690 -0
- package/out/concepts/Frontend__.js.map +1 -0
- package/out/concepts/Function__.d.ts +417 -0
- package/out/concepts/Function__.js +717 -0
- package/out/concepts/Function__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +52 -0
- package/out/concepts/Identifier__.js +296 -0
- package/out/concepts/Identifier__.js.map +1 -0
- package/out/concepts/IfStatement__.d.ts +158 -0
- package/out/concepts/IfStatement__.js +305 -0
- package/out/concepts/IfStatement__.js.map +1 -0
- package/out/concepts/Integration__.d.ts +54 -0
- package/out/concepts/Integration__.js +143 -0
- package/out/concepts/Integration__.js.map +1 -0
- package/out/concepts/InterfaceParam__.d.ts +111 -0
- package/out/concepts/InterfaceParam__.js +266 -0
- package/out/concepts/InterfaceParam__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +284 -0
- package/out/concepts/Interface__.js +749 -0
- package/out/concepts/Interface__.js.map +1 -0
- package/out/concepts/JSBlock__.d.ts +34 -0
- package/out/concepts/JSBlock__.js +106 -0
- package/out/concepts/JSBlock__.js.map +1 -0
- package/out/concepts/JavaLogic__.d.ts +43 -0
- package/out/concepts/JavaLogic__.js +124 -0
- package/out/concepts/JavaLogic__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +126 -0
- package/out/concepts/LogicItem__.js +253 -0
- package/out/concepts/LogicItem__.js.map +1 -0
- package/out/concepts/Logic__.d.ts +633 -0
- package/out/concepts/Logic__.js +1568 -0
- package/out/concepts/Logic__.js.map +1 -0
- package/out/concepts/MatchCase__.d.ts +258 -0
- package/out/concepts/MatchCase__.js +591 -0
- package/out/concepts/MatchCase__.js.map +1 -0
- package/out/concepts/Match__.d.ts +124 -0
- package/out/concepts/Match__.js +628 -0
- package/out/concepts/Match__.js.map +1 -0
- package/out/concepts/MemberExpression__.d.ts +73 -0
- package/out/concepts/MemberExpression__.js +319 -0
- package/out/concepts/MemberExpression__.js.map +1 -0
- package/out/concepts/MetadataType__.d.ts +245 -0
- package/out/concepts/MetadataType__.js +473 -0
- package/out/concepts/MetadataType__.js.map +1 -0
- package/out/concepts/MicroApp__.d.ts +52 -0
- package/out/concepts/MicroApp__.js +119 -0
- package/out/concepts/MicroApp__.js.map +1 -0
- package/out/concepts/Module__.d.ts +978 -0
- package/out/concepts/Module__.js +1386 -0
- package/out/concepts/Module__.js.map +1 -0
- package/out/concepts/Namespace__.d.ts +1069 -0
- package/out/concepts/Namespace__.js +1380 -0
- package/out/concepts/Namespace__.js.map +1 -0
- package/out/concepts/NewComposite__.d.ts +346 -0
- package/out/concepts/NewComposite__.js +1086 -0
- package/out/concepts/NewComposite__.js.map +1 -0
- package/out/concepts/NewList__.d.ts +133 -0
- package/out/concepts/NewList__.js +385 -0
- package/out/concepts/NewList__.js.map +1 -0
- package/out/concepts/NewMap__.d.ts +224 -0
- package/out/concepts/NewMap__.js +530 -0
- package/out/concepts/NewMap__.js.map +1 -0
- package/out/concepts/New__.d.ts +21 -0
- package/out/concepts/New__.js +68 -0
- package/out/concepts/New__.js.map +1 -0
- package/out/concepts/NullLiteral__.d.ts +27 -0
- package/out/concepts/NullLiteral__.js +81 -0
- package/out/concepts/NullLiteral__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +56 -0
- package/out/concepts/NumericLiteral__.js +174 -0
- package/out/concepts/NumericLiteral__.js.map +1 -0
- package/out/concepts/OqlQueryComponent__.d.ts +73 -0
- package/out/concepts/OqlQueryComponent__.js +327 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -0
- package/out/concepts/Param__.d.ts +161 -0
- package/out/concepts/Param__.js +431 -0
- package/out/concepts/Param__.js.map +1 -0
- package/out/concepts/Point__.d.ts +32 -0
- package/out/concepts/Point__.js +79 -0
- package/out/concepts/Point__.js.map +1 -0
- package/out/concepts/ProcessComponent__.d.ts +220 -0
- package/out/concepts/ProcessComponent__.js +339 -0
- package/out/concepts/ProcessComponent__.js.map +1 -0
- package/out/concepts/ProcessElement__.d.ts +647 -0
- package/out/concepts/ProcessElement__.js +1220 -0
- package/out/concepts/ProcessElement__.js.map +1 -0
- package/out/concepts/ProcessOutcome__.d.ts +32 -0
- package/out/concepts/ProcessOutcome__.js +90 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -0
- package/out/concepts/ProcessOutcomes__.d.ts +32 -0
- package/out/concepts/ProcessOutcomes__.js +89 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -0
- package/out/concepts/Process__.d.ts +614 -0
- package/out/concepts/Process__.js +1031 -0
- package/out/concepts/Process__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +52 -0
- package/out/concepts/QueryAggregateExpression__.js +149 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/concepts/QueryFieldExpression__.d.ts +54 -0
- package/out/concepts/QueryFieldExpression__.js +160 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/concepts/QueryFromExpression__.d.ts +97 -0
- package/out/concepts/QueryFromExpression__.js +197 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -0
- package/out/concepts/QueryGroupByExpression__.d.ts +47 -0
- package/out/concepts/QueryGroupByExpression__.js +142 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/concepts/QueryJoinExpression__.d.ts +184 -0
- package/out/concepts/QueryJoinExpression__.js +318 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/concepts/QueryLimitExpression__.d.ts +58 -0
- package/out/concepts/QueryLimitExpression__.js +160 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/concepts/QueryOrderByExpression__.d.ts +69 -0
- package/out/concepts/QueryOrderByExpression__.js +173 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/concepts/QuerySelectExpression__.d.ts +204 -0
- package/out/concepts/QuerySelectExpression__.js +295 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/concepts/Rect__.d.ts +40 -0
- package/out/concepts/Rect__.js +95 -0
- package/out/concepts/Rect__.js.map +1 -0
- package/out/concepts/Return__.d.ts +129 -0
- package/out/concepts/Return__.js +345 -0
- package/out/concepts/Return__.js.map +1 -0
- package/out/concepts/Role__.d.ts +63 -0
- package/out/concepts/Role__.js +170 -0
- package/out/concepts/Role__.js.map +1 -0
- package/out/concepts/SelectMembers__.d.ts +143 -0
- package/out/concepts/SelectMembers__.js +293 -0
- package/out/concepts/SelectMembers__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +75 -0
- package/out/concepts/Slot__.js +165 -0
- package/out/concepts/Slot__.js.map +1 -0
- package/out/concepts/SqlQueryComponent__.d.ts +71 -0
- package/out/concepts/SqlQueryComponent__.js +271 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/concepts/Start__.d.ts +25 -0
- package/out/concepts/Start__.js +73 -0
- package/out/concepts/Start__.js.map +1 -0
- package/out/concepts/StringInterpolation__.d.ts +117 -0
- package/out/concepts/StringInterpolation__.js +252 -0
- package/out/concepts/StringInterpolation__.js.map +1 -0
- package/out/concepts/StringLiteral__.d.ts +38 -0
- package/out/concepts/StringLiteral__.js +134 -0
- package/out/concepts/StringLiteral__.js.map +1 -0
- package/out/concepts/StructureProperty__.d.ts +131 -0
- package/out/concepts/StructureProperty__.js +303 -0
- package/out/concepts/StructureProperty__.js.map +1 -0
- package/out/concepts/Structure__.d.ts +252 -0
- package/out/concepts/Structure__.js +447 -0
- package/out/concepts/Structure__.js.map +1 -0
- package/out/concepts/SwitchCase__.d.ts +94 -0
- package/out/concepts/SwitchCase__.js +232 -0
- package/out/concepts/SwitchCase__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +84 -0
- package/out/concepts/SwitchStatement__.js +177 -0
- package/out/concepts/SwitchStatement__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +38 -0
- package/out/concepts/Theme__.js +88 -0
- package/out/concepts/Theme__.js.map +1 -0
- package/out/concepts/Transactional__.d.ts +83 -0
- package/out/concepts/Transactional__.js +162 -0
- package/out/concepts/Transactional__.js.map +1 -0
- package/out/concepts/TypeAnnotation__.d.ts +290 -0
- package/out/concepts/TypeAnnotation__.js +885 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -0
- package/out/concepts/TypeParam__.d.ts +25 -0
- package/out/concepts/TypeParam__.js +73 -0
- package/out/concepts/TypeParam__.js.map +1 -0
- package/out/concepts/UnaryExpression__.d.ts +49 -0
- package/out/concepts/UnaryExpression__.js +176 -0
- package/out/concepts/UnaryExpression__.js.map +1 -0
- package/out/concepts/Unparsed__.d.ts +32 -0
- package/out/concepts/Unparsed__.js +94 -0
- package/out/concepts/Unparsed__.js.map +1 -0
- package/out/concepts/UseComponent__.d.ts +32 -0
- package/out/concepts/UseComponent__.js +79 -0
- package/out/concepts/UseComponent__.js.map +1 -0
- package/out/concepts/ValidationRule__.d.ts +142 -0
- package/out/concepts/ValidationRule__.js +473 -0
- package/out/concepts/ValidationRule__.js.map +1 -0
- package/out/concepts/Variable__.d.ts +139 -0
- package/out/concepts/Variable__.js +386 -0
- package/out/concepts/Variable__.js.map +1 -0
- package/out/concepts/ViewBlock__.d.ts +36 -0
- package/out/concepts/ViewBlock__.js +87 -0
- package/out/concepts/ViewBlock__.js.map +1 -0
- package/out/concepts/ViewComponent__.d.ts +566 -0
- package/out/concepts/ViewComponent__.js +762 -0
- package/out/concepts/ViewComponent__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +597 -0
- package/out/concepts/ViewElement__.js +1777 -0
- package/out/concepts/ViewElement__.js.map +1 -0
- package/out/concepts/View__.d.ts +714 -0
- package/out/concepts/View__.js +1733 -0
- package/out/concepts/View__.js.map +1 -0
- package/out/concepts/WhileStatement__.d.ts +97 -0
- package/out/concepts/WhileStatement__.js +211 -0
- package/out/concepts/WhileStatement__.js.map +1 -0
- package/out/concepts/basics/stdlib/index.d.ts +4 -0
- package/out/concepts/basics/stdlib/index.js +29 -0
- package/out/concepts/basics/stdlib/index.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.auth.js +140 -0
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.browser.js +133 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.collection.js +52 -0
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js +33 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts +5 -0
- package/out/concepts/basics/stdlib/nasl.core.js +49 -0
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.event.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.event.js +25 -0
- package/out/concepts/basics/stdlib/nasl.event.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.interface.js +43 -0
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.io.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.io.js +52 -0
- package/out/concepts/basics/stdlib/nasl.io.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.logging.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.logging.js +56 -0
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.process.js +638 -0
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.ui.js +1043 -0
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.util.js +1798 -0
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +3 -0
- package/out/concepts/basics/stdlib/nasl.validation.js +565 -0
- package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +5 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +26 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/out/concepts/basics/types/coreTypeList.js +15 -0
- package/out/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/concepts/basics/types/index.d.ts +15 -0
- package/out/concepts/basics/types/index.js +32 -0
- package/out/concepts/basics/types/index.js.map +1 -0
- package/out/concepts/index.d.ts +5 -0
- package/out/concepts/index.js +24 -0
- package/out/concepts/index.js.map +1 -0
- package/out/concepts/index__.d.ts +108 -0
- package/out/concepts/index__.js +125 -0
- package/out/concepts/index__.js.map +1 -0
- package/out/config.d.ts +44 -0
- package/out/config.js +73 -0
- package/out/config.js.map +1 -0
- package/out/decorators/index.d.ts +56 -0
- package/out/decorators/index.js +159 -0
- package/out/decorators/index.js.map +1 -0
- package/out/enums/KEYWORDS.d.ts +6 -0
- package/out/enums/KEYWORDS.js +1243 -0
- package/out/enums/KEYWORDS.js.map +1 -0
- package/out/enums/LEVEL_NAME_MAP.d.ts +26 -0
- package/out/enums/LEVEL_NAME_MAP.js +30 -0
- package/out/enums/LEVEL_NAME_MAP.js.map +1 -0
- package/out/eventBus.d.ts +3 -0
- package/out/eventBus.js +7 -0
- package/out/eventBus.js.map +1 -0
- package/out/generator/compileComponent.d.ts +11 -0
- package/out/generator/compileComponent.js +12 -0
- package/out/generator/compileComponent.js.map +1 -0
- package/out/generator/genBundleFiles.d.ts +33 -0
- package/out/generator/genBundleFiles.js +501 -0
- package/out/generator/genBundleFiles.js.map +1 -0
- package/out/generator/genHash.d.ts +7 -0
- package/out/generator/genHash.js +39 -0
- package/out/generator/genHash.js.map +1 -0
- package/out/generator/genMetaData.d.ts +28 -0
- package/out/generator/genMetaData.js +288 -0
- package/out/generator/genMetaData.js.map +1 -0
- package/out/generator/genReleaseBody.d.ts +60 -0
- package/out/generator/genReleaseBody.js +493 -0
- package/out/generator/genReleaseBody.js.map +1 -0
- package/out/generator/icestark.d.ts +2 -0
- package/out/generator/icestark.js +48 -0
- package/out/generator/icestark.js.map +1 -0
- package/out/generator/index.d.ts +7 -0
- package/out/generator/index.js +24 -0
- package/out/generator/index.js.map +1 -0
- package/out/generator/microApp.d.ts +2 -0
- package/out/generator/microApp.js +35 -0
- package/out/generator/microApp.js.map +1 -0
- package/out/generator/permission.d.ts +10 -0
- package/out/generator/permission.js +269 -0
- package/out/generator/permission.js.map +1 -0
- package/out/generator/qiankun.d.ts +2 -0
- package/out/generator/qiankun.js +52 -0
- package/out/generator/qiankun.js.map +1 -0
- package/out/generator/styleReplacer.d.ts +3 -0
- package/out/generator/styleReplacer.js +71 -0
- package/out/generator/styleReplacer.js.map +1 -0
- package/out/index.d.ts +13 -0
- package/out/index.js +64 -0
- package/out/index.js.map +1 -0
- package/out/manager/diagnostic.d.ts +35 -0
- package/out/manager/diagnostic.js +63 -0
- package/out/manager/diagnostic.js.map +1 -0
- package/out/manager/stepRecorder.d.ts +20 -0
- package/out/manager/stepRecorder.js +110 -0
- package/out/manager/stepRecorder.js.map +1 -0
- package/out/sentry/index.d.ts +29 -0
- package/out/sentry/index.js +111 -0
- package/out/sentry/index.js.map +1 -0
- package/out/server/createUiTs.d.ts +16 -0
- package/out/server/createUiTs.js +248 -0
- package/out/server/createUiTs.js.map +1 -0
- package/out/server/entity2LogicNamespace.d.ts +10 -0
- package/out/server/entity2LogicNamespace.js +380 -0
- package/out/server/entity2LogicNamespace.js.map +1 -0
- package/out/server/event.d.ts +30 -0
- package/out/server/event.js +151 -0
- package/out/server/event.js.map +1 -0
- package/out/server/extendBaseNode.d.ts +1 -0
- package/out/server/extendBaseNode.js +475 -0
- package/out/server/extendBaseNode.js.map +1 -0
- package/out/server/formatTsUtils.d.ts +36 -0
- package/out/server/formatTsUtils.js +788 -0
- package/out/server/formatTsUtils.js.map +1 -0
- package/out/server/getExtensionModules.d.ts +3 -0
- package/out/server/getExtensionModules.js +20 -0
- package/out/server/getExtensionModules.js.map +1 -0
- package/out/server/getFunctions.d.ts +3 -0
- package/out/server/getFunctions.js +20 -0
- package/out/server/getFunctions.js.map +1 -0
- package/out/server/getInterfaces.d.ts +2 -0
- package/out/server/getInterfaces.js +48 -0
- package/out/server/getInterfaces.js.map +1 -0
- package/out/server/getLogging.d.ts +1 -0
- package/out/server/getLogging.js +9 -0
- package/out/server/getLogging.js.map +1 -0
- package/out/server/getLogics.d.ts +4 -0
- package/out/server/getLogics.js +352 -0
- package/out/server/getLogics.js.map +1 -0
- package/out/server/getMemberIdentifier.d.ts +15 -0
- package/out/server/getMemberIdentifier.js +290 -0
- package/out/server/getMemberIdentifier.js.map +1 -0
- package/out/server/getProcessComponents.d.ts +2 -0
- package/out/server/getProcessComponents.js +13 -0
- package/out/server/getProcessComponents.js.map +1 -0
- package/out/server/getProcesses.d.ts +33 -0
- package/out/server/getProcesses.js +599 -0
- package/out/server/getProcesses.js.map +1 -0
- package/out/server/getScope.d.ts +13 -0
- package/out/server/getScope.js +61 -0
- package/out/server/getScope.js.map +1 -0
- package/out/server/getValidates.d.ts +3 -0
- package/out/server/getValidates.js +14 -0
- package/out/server/getValidates.js.map +1 -0
- package/out/server/index.d.ts +5 -0
- package/out/server/index.js +38 -0
- package/out/server/index.js.map +1 -0
- package/out/server/naslServer.d.ts +363 -0
- package/out/server/naslServer.js +4382 -0
- package/out/server/naslServer.js.map +1 -0
- package/out/server/naslStdlibMap.d.ts +2 -0
- package/out/server/naslStdlibMap.js +50 -0
- package/out/server/naslStdlibMap.js.map +1 -0
- package/out/server/process2LogicNamespace.d.ts +26 -0
- package/out/server/process2LogicNamespace.js +109 -0
- package/out/server/process2LogicNamespace.js.map +1 -0
- package/out/server/translator.d.ts +26 -0
- package/out/server/translator.js +787 -0
- package/out/server/translator.js.map +1 -0
- package/out/service/creator/add.configs.d.ts +1 -0
- package/out/service/creator/add.configs.js +74 -0
- package/out/service/creator/add.configs.js.map +1 -0
- package/out/service/creator/errHandles.d.ts +18 -0
- package/out/service/creator/errHandles.js +75 -0
- package/out/service/creator/errHandles.js.map +1 -0
- package/out/service/creator/index.d.ts +1 -0
- package/out/service/creator/index.js +74 -0
- package/out/service/creator/index.js.map +1 -0
- package/out/service/datasource/api.d.ts +12 -0
- package/out/service/datasource/api.js +14 -0
- package/out/service/datasource/api.js.map +1 -0
- package/out/service/datasource/index.d.ts +2 -0
- package/out/service/datasource/index.js +10 -0
- package/out/service/datasource/index.js.map +1 -0
- package/out/service/defaultErrorMessage.json +98 -0
- package/out/service/logic/api.d.ts +9 -0
- package/out/service/logic/api.js +11 -0
- package/out/service/logic/api.js.map +1 -0
- package/out/service/logic/index.d.ts +2 -0
- package/out/service/logic/index.js +10 -0
- package/out/service/logic/index.js.map +1 -0
- package/out/service/storage/api.d.ts +45 -0
- package/out/service/storage/api.js +36 -0
- package/out/service/storage/api.js.map +1 -0
- package/out/service/storage/index.d.ts +2 -0
- package/out/service/storage/index.js +10 -0
- package/out/service/storage/index.js.map +1 -0
- package/out/service/storage/init.d.ts +65 -0
- package/out/service/storage/init.js +797 -0
- package/out/service/storage/init.js.map +1 -0
- package/out/service/storage/jsoner.d.ts +36 -0
- package/out/service/storage/jsoner.js +131 -0
- package/out/service/storage/jsoner.js.map +1 -0
- package/out/service/storage/map.d.ts +4 -0
- package/out/service/storage/map.js +54 -0
- package/out/service/storage/map.js.map +1 -0
- package/out/service/storage/service.d.ts +22 -0
- package/out/service/storage/service.js +70 -0
- package/out/service/storage/service.js.map +1 -0
- package/out/service/storage/storagePoint.d.ts +17 -0
- package/out/service/storage/storagePoint.js +76 -0
- package/out/service/storage/storagePoint.js.map +1 -0
- package/out/templator/genCallComponentLogic.d.ts +17 -0
- package/out/templator/genCallComponentLogic.js +30 -0
- package/out/templator/genCallComponentLogic.js.map +1 -0
- package/out/templator/genCreateBlock.d.ts +10 -0
- package/out/templator/genCreateBlock.js +338 -0
- package/out/templator/genCreateBlock.js.map +1 -0
- package/out/templator/genCurdEditMultipleKeyBlock.d.ts +8 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js +516 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
- package/out/templator/genCurdMultipleKeyBlock.d.ts +34 -0
- package/out/templator/genCurdMultipleKeyBlock.js +709 -0
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -0
- package/out/templator/genEditTableBlock.d.ts +51 -0
- package/out/templator/genEditTableBlock.js +299 -0
- package/out/templator/genEditTableBlock.js.map +1 -0
- package/out/templator/genEnumSelectBlock.d.ts +10 -0
- package/out/templator/genEnumSelectBlock.js +26 -0
- package/out/templator/genEnumSelectBlock.js.map +1 -0
- package/out/templator/genGetBlock.d.ts +6 -0
- package/out/templator/genGetBlock.js +138 -0
- package/out/templator/genGetBlock.js.map +1 -0
- package/out/templator/genGridViewBlock.d.ts +55 -0
- package/out/templator/genGridViewBlock.js +350 -0
- package/out/templator/genGridViewBlock.js.map +1 -0
- package/out/templator/genListViewBlock.d.ts +19 -0
- package/out/templator/genListViewBlock.js +143 -0
- package/out/templator/genListViewBlock.js.map +1 -0
- package/out/templator/genQueryComponent.d.ts +34 -0
- package/out/templator/genQueryComponent.js +342 -0
- package/out/templator/genQueryComponent.js.map +1 -0
- package/out/templator/genSelectBlock.d.ts +45 -0
- package/out/templator/genSelectBlock.js +406 -0
- package/out/templator/genSelectBlock.js.map +1 -0
- package/out/templator/genTableBlock.d.ts +53 -0
- package/out/templator/genTableBlock.js +280 -0
- package/out/templator/genTableBlock.js.map +1 -0
- package/out/templator/genUpdateBlock.d.ts +6 -0
- package/out/templator/genUpdateBlock.js +380 -0
- package/out/templator/genUpdateBlock.js.map +1 -0
- package/out/templator/index.d.ts +18 -0
- package/out/templator/index.js +34 -0
- package/out/templator/index.js.map +1 -0
- package/out/templator/utils.d.ts +676 -0
- package/out/templator/utils.js +469 -0
- package/out/templator/utils.js.map +1 -0
- package/out/translator/constant.d.ts +6 -0
- package/out/translator/constant.js +10 -0
- package/out/translator/constant.js.map +1 -0
- package/out/translator/index.d.ts +3 -0
- package/out/translator/index.js +20 -0
- package/out/translator/index.js.map +1 -0
- package/out/translator/types.d.ts +32 -0
- package/out/translator/types.js +3 -0
- package/out/translator/types.js.map +1 -0
- package/out/translator/utils.d.ts +25 -0
- package/out/translator/utils.js +120 -0
- package/out/translator/utils.js.map +1 -0
- package/out/utils/index.d.ts +42 -0
- package/out/utils/index.js +213 -0
- package/out/utils/index.js.map +1 -0
- package/out/utils/logger.d.ts +7 -0
- package/out/utils/logger.js +23 -0
- package/out/utils/logger.js.map +1 -0
- package/out/utils/sortTsString.d.ts +1 -0
- package/out/utils/sortTsString.js +36 -0
- package/out/utils/sortTsString.js.map +1 -0
- package/out/utils/string.d.ts +51 -0
- package/out/utils/string.js +110 -0
- package/out/utils/string.js.map +1 -0
- package/out/utils/time.d.ts +1 -0
- package/out/utils/time.js +6 -0
- package/out/utils/time.js.map +1 -0
- package/out/utils/traverse.d.ts +36 -0
- package/out/utils/traverse.js +145 -0
- package/out/utils/traverse.js.map +1 -0
- package/out/utils/types.d.ts +1 -0
- package/out/utils/types.js +3 -0
- package/out/utils/types.js.map +1 -0
- package/out/utils/window.d.ts +7 -0
- package/out/utils/window.js +14 -0
- package/out/utils/window.js.map +1 -0
- package/package.json +1 -1
- package/src/concepts/BindEvent__.ts +5 -6
- package/src/concepts/Module__.ts +2 -2
- package/src/concepts/View__.ts +2 -2
- package/src/server/naslServer.ts +4 -4
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
var InterfaceParam_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.InterfaceParam = void 0;
|
|
14
|
+
const types_1 = require("./basics/types");
|
|
15
|
+
const translator_1 = require("../translator");
|
|
16
|
+
const decorators_1 = require("../decorators");
|
|
17
|
+
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
18
|
+
/**
|
|
19
|
+
* 接口参数
|
|
20
|
+
*/
|
|
21
|
+
let InterfaceParam = InterfaceParam_1 =
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
class InterfaceParam extends BaseNode_1.default {
|
|
24
|
+
/** 类名 */
|
|
25
|
+
static ConceptName = 'InterfaceParam';
|
|
26
|
+
/**
|
|
27
|
+
* 产品概念
|
|
28
|
+
*/
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
concept;
|
|
31
|
+
/**
|
|
32
|
+
* 接口参数名称
|
|
33
|
+
*/
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
name;
|
|
36
|
+
/**
|
|
37
|
+
* 接口参数描述
|
|
38
|
+
*/
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
description;
|
|
41
|
+
/**
|
|
42
|
+
* 类型
|
|
43
|
+
*/
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
typeAnnotation;
|
|
46
|
+
/**
|
|
47
|
+
* in
|
|
48
|
+
*/
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
in;
|
|
51
|
+
/**
|
|
52
|
+
* 是否必填
|
|
53
|
+
*/
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
required;
|
|
56
|
+
/**
|
|
57
|
+
* 默认值
|
|
58
|
+
*/
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
defaultValue;
|
|
61
|
+
/**
|
|
62
|
+
* 祖先 Interface
|
|
63
|
+
*/
|
|
64
|
+
get interface() {
|
|
65
|
+
return this.getAncestor('Interface');
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* 祖先 Module
|
|
69
|
+
*/
|
|
70
|
+
get module() {
|
|
71
|
+
return this.getAncestor('Module');
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* 祖先 App
|
|
75
|
+
*/
|
|
76
|
+
get app() {
|
|
77
|
+
return this.getAncestor('App');
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @param source 需要合并的部分参数
|
|
81
|
+
*/
|
|
82
|
+
constructor(source) {
|
|
83
|
+
source = Object.assign({}, InterfaceParam_1.getDefaultOptions(), source);
|
|
84
|
+
super(source);
|
|
85
|
+
super.subConstructor(source);
|
|
86
|
+
}
|
|
87
|
+
static from(source, parentNode, parentKey) {
|
|
88
|
+
return super.from(source, parentNode, parentKey);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 从父级删除该节点
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
_delete() {
|
|
95
|
+
let params = null;
|
|
96
|
+
if (this.parentNode) {
|
|
97
|
+
params = this.parentNode?.__removeInterfaceParam?.(this);
|
|
98
|
+
}
|
|
99
|
+
return params;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 设置接口参数名称
|
|
103
|
+
*/
|
|
104
|
+
setName(name) {
|
|
105
|
+
const object = {
|
|
106
|
+
name,
|
|
107
|
+
};
|
|
108
|
+
this.update({
|
|
109
|
+
...object,
|
|
110
|
+
field: 'name',
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* 设置接口参数描述
|
|
115
|
+
*/
|
|
116
|
+
setDescription(description) {
|
|
117
|
+
const object = {
|
|
118
|
+
description,
|
|
119
|
+
};
|
|
120
|
+
this.update({
|
|
121
|
+
...object,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* 设置in
|
|
126
|
+
*/
|
|
127
|
+
setIn(inWhich) {
|
|
128
|
+
const object = {
|
|
129
|
+
in: inWhich,
|
|
130
|
+
};
|
|
131
|
+
this.update({
|
|
132
|
+
...object,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* 设置是否必填
|
|
137
|
+
*/
|
|
138
|
+
setRequired(required) {
|
|
139
|
+
const object = {
|
|
140
|
+
required,
|
|
141
|
+
};
|
|
142
|
+
this.update({
|
|
143
|
+
...object,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* 设置默认值
|
|
148
|
+
*/
|
|
149
|
+
setDefaultValue(defaultValue) {
|
|
150
|
+
const object = {
|
|
151
|
+
defaultValue,
|
|
152
|
+
};
|
|
153
|
+
this.update({
|
|
154
|
+
...object,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
removeTypeAnnotation(options) {
|
|
158
|
+
let typeAnnotation;
|
|
159
|
+
if (typeof options === 'string') {
|
|
160
|
+
typeAnnotation = this.typeAnnotation;
|
|
161
|
+
if (!typeAnnotation) {
|
|
162
|
+
throw new Error('找不到类型标注 ' + options);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
typeAnnotation = options;
|
|
167
|
+
}
|
|
168
|
+
return typeAnnotation.delete();
|
|
169
|
+
}
|
|
170
|
+
__removeTypeAnnotation(typeAnnotation) {
|
|
171
|
+
const parentKey = typeAnnotation.parentKey;
|
|
172
|
+
const params = {
|
|
173
|
+
parentNode: this,
|
|
174
|
+
parentKey,
|
|
175
|
+
index: -1,
|
|
176
|
+
object: null,
|
|
177
|
+
oldObject: typeAnnotation,
|
|
178
|
+
};
|
|
179
|
+
if (parentKey) {
|
|
180
|
+
params.parentKey = parentKey;
|
|
181
|
+
if (Array.isArray(this[parentKey])) {
|
|
182
|
+
const index = this[parentKey].indexOf(typeAnnotation);
|
|
183
|
+
~index && this[parentKey].splice(index, 1);
|
|
184
|
+
params.index = index;
|
|
185
|
+
}
|
|
186
|
+
else if (this[parentKey] === typeAnnotation) {
|
|
187
|
+
params.index = 0;
|
|
188
|
+
this[parentKey] = undefined;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return params;
|
|
192
|
+
}
|
|
193
|
+
setDataType(typeAnnotation) {
|
|
194
|
+
if (typeof typeAnnotation === 'string') {
|
|
195
|
+
typeAnnotation = types_1.dataTypesMap[typeAnnotation];
|
|
196
|
+
if (!typeAnnotation)
|
|
197
|
+
// eslint-disable-next-line prefer-rest-params
|
|
198
|
+
throw new Error('找不到类型:' + arguments[0]);
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
typeAnnotation._delete?.();
|
|
202
|
+
const relationOptions = { parentId: this.id, parentConcept: this.concept, parentNode: this };
|
|
203
|
+
Object.assign(typeAnnotation, relationOptions);
|
|
204
|
+
}
|
|
205
|
+
const object = {
|
|
206
|
+
typeAnnotation,
|
|
207
|
+
};
|
|
208
|
+
return this.update({
|
|
209
|
+
...object,
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* 是否可编辑
|
|
214
|
+
* */
|
|
215
|
+
get nodeReadonly() {
|
|
216
|
+
return !!this.module;
|
|
217
|
+
}
|
|
218
|
+
toEmbeddedTS(state, isOptionalParameter) {
|
|
219
|
+
let code = this.tsName;
|
|
220
|
+
if (isOptionalParameter) {
|
|
221
|
+
code += '?';
|
|
222
|
+
}
|
|
223
|
+
if (this.typeAnnotation) {
|
|
224
|
+
code += ': ';
|
|
225
|
+
code += this.typeAnnotation.toEmbeddedTS((0, translator_1.shiftState)(state, code));
|
|
226
|
+
}
|
|
227
|
+
// toTS暂时不需要默认值
|
|
228
|
+
// if (this.defaultValue) {
|
|
229
|
+
// code += ` = ${this.defaultValue}`;
|
|
230
|
+
// }
|
|
231
|
+
return code;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
__decorate([
|
|
235
|
+
(0, decorators_1.property)()
|
|
236
|
+
], InterfaceParam.prototype, "name", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, decorators_1.property)()
|
|
239
|
+
], InterfaceParam.prototype, "description", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, decorators_1.property)('TypeAnnotation')
|
|
242
|
+
], InterfaceParam.prototype, "typeAnnotation", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, decorators_1.property)()
|
|
245
|
+
], InterfaceParam.prototype, "in", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
(0, decorators_1.property)()
|
|
248
|
+
], InterfaceParam.prototype, "required", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
(0, decorators_1.property)()
|
|
251
|
+
], InterfaceParam.prototype, "defaultValue", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, translator_1.withSourceMap)()
|
|
254
|
+
], InterfaceParam.prototype, "toEmbeddedTS", null);
|
|
255
|
+
InterfaceParam = InterfaceParam_1 = __decorate([
|
|
256
|
+
decorators_1.className,
|
|
257
|
+
(0, decorators_1.concept)('接口参数')
|
|
258
|
+
// @ts-ignore
|
|
259
|
+
], InterfaceParam);
|
|
260
|
+
exports.InterfaceParam = InterfaceParam;
|
|
261
|
+
exports.default = InterfaceParam;
|
|
262
|
+
//================================================================================
|
|
263
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
264
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
265
|
+
//================================================================================
|
|
266
|
+
//# sourceMappingURL=InterfaceParam__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InterfaceParam__.js","sourceRoot":"","sources":["../../src/concepts/InterfaceParam__.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0CAA8C;AAC9C,8CAA2E;AAU3E,8CAA6E;AAI7E,kEAA0C;AAM1C;;GAEG;AAIH,IAAa,cAAc;AAD3B,aAAa;AACb,MAAa,cAAe,SAAQ,kBAAQ;IACxC,SAAS;IACT,MAAM,CAAU,WAAW,GAAG,gBAAgB,CAAC;IAE/C;;OAEG;IACH,aAAa;IACJ,OAAO,CAAoB;IAEpC;;OAEG;IAGH,AADA,aAAa;IACb,IAAI,CAAU;IAEd;;OAEG;IAGH,AADA,aAAa;IACb,WAAW,CAAU;IAErB;;OAEG;IAGH,AADA,aAAa;IACb,cAAc,CAAkB;IAEhC;;OAEG;IAGH,AADA,aAAa;IACb,EAAE,CAAmD;IAErD;;OAEG;IAGH,AADA,aAAa;IACb,QAAQ,CAAW;IAEnB;;OAEG;IAGH,AADA,aAAa;IACb,YAAY,CAAU;IAEtB;;OAEG;IACH,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAc,CAAC;IACtD,CAAC;IACD;;OAEG;IACH,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAW,CAAC;IAChD,CAAC;IACD;;OAEG;IACH,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAQ,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,YAAY,MAAgC;QACxC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,gBAAc,CAAC,iBAAiB,EAAE,EAAE,MAAM,CAAC,CAAC;QACvE,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,MAAW,EAAE,UAAgB,EAAE,SAAkB;QACzD,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAmB,CAAC;IACvE,CAAC;IAED;;;OAGG;IACH,OAAO;QACH,IAAI,MAAM,GAAW,IAAI,CAAC;QAC1B,IAAI,IAAI,CAAC,UAAU,EAAE;YACjB,MAAM,GAAI,IAAI,CAAC,UAAkB,EAAE,sBAAsB,EAAE,CAAC,IAAI,CAAC,CAAC;SACrE;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IACD;;OAEG;IACH,OAAO,CAAC,IAAY;QAChB,MAAM,MAAM,GAAG;YACX,IAAI;SACP,CAAC;QACF,IAAI,CAAC,MAAM,CAAC;YACR,GAAG,MAAM;YACT,KAAK,EAAE,MAAM;SAChB,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,WAAmB;QAC9B,MAAM,MAAM,GAAG;YACX,WAAW;SACd,CAAC;QACF,IAAI,CAAC,MAAM,CAAC;YACR,GAAG,MAAM;SACZ,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAwD;QAC1D,MAAM,MAAM,GAAG;YACX,EAAE,EAAE,OAAO;SACd,CAAC;QACF,IAAI,CAAC,MAAM,CAAC;YACR,GAAG,MAAM;SACZ,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,QAAiB;QACzB,MAAM,MAAM,GAAG;YACX,QAAQ;SACX,CAAC;QACF,IAAI,CAAC,MAAM,CAAC;YACR,GAAG,MAAM;SACZ,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,YAAoB;QAChC,MAAM,MAAM,GAAG;YACX,YAAY;SACf,CAAC;QACF,IAAI,CAAC,MAAM,CAAC;YACR,GAAG,MAAM;SACZ,CAAC,CAAC;IACP,CAAC;IAkBD,oBAAoB,CAAC,OAAgC;QACjD,IAAI,cAA8B,CAAC;QACnC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC7B,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;YACrC,IAAI,CAAC,cAAc,EAAE;gBACjB,MAAM,IAAI,KAAK,CAAC,UAAU,GAAG,OAAO,CAAC,CAAC;aACzC;SACJ;aAAM;YACH,cAAc,GAAG,OAAO,CAAC;SAC5B;QACD,OAAO,cAAc,CAAC,MAAM,EAAE,CAAC;IACnC,CAAC;IAED,sBAAsB,CAAC,cAA8B;QACjD,MAAM,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC;QAC3C,MAAM,MAAM,GAAW;YACnB,UAAU,EAAE,IAAI;YAChB,SAAS;YACT,KAAK,EAAE,CAAC,CAAC;YACT,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,cAAc;SAC5B,CAAC;QACF,IAAI,SAAS,EAAE;YACX,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;YAC7B,IAAI,KAAK,CAAC,OAAO,CAAE,IAAY,CAAC,SAAS,CAAC,CAAC,EAAE;gBACzC,MAAM,KAAK,GAAI,IAAY,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;gBAC/D,CAAC,KAAK,IAAK,IAAY,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACpD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;aACxB;iBAAM,IAAK,IAAY,CAAC,SAAS,CAAC,KAAK,cAAc,EAAE;gBACpD,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;gBAChB,IAAY,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;aACxC;SACJ;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAgBD,WAAW,CAAC,cAAuC;QAC/C,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;YACpC,cAAc,GAAG,oBAAY,CAAC,cAAc,CAAC,CAAC;YAC9C,IAAI,CAAC,cAAc;gBACf,8CAA8C;gBAC9C,MAAM,IAAI,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;SAChD;aAAM;YACH,cAAc,CAAC,OAAO,EAAE,EAAE,CAAC;YAC3B,MAAM,eAAe,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC7F,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;SAClD;QACD,MAAM,MAAM,GAAG;YACX,cAAc;SACjB,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,GAAG,MAAM;SACZ,CAAC,CAAC;IACP,CAAC;IAED;;SAEK;IACL,IAAI,YAAY;QACZ,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;IACzB,CAAC;IAGD,YAAY,CAAC,KAAuB,EAAE,mBAA6B;QAC/D,IAAI,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACvB,IAAI,mBAAmB,EAAE;YACrB,IAAI,IAAI,GAAG,CAAC;SACf;QACD,IAAI,IAAI,CAAC,cAAc,EAAE;YACrB,IAAI,IAAI,IAAI,CAAC;YACb,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAA,uBAAU,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;SACrE;QACD,eAAe;QACf,2BAA2B;QAC3B,yCAAyC;QACzC,IAAI;QACJ,OAAO,IAAI,CAAC;IAChB,CAAC;CAMJ,CAAA;AA9PG;IAFC,IAAA,qBAAQ,GAAE;4CAEG;AAOd;IAFC,IAAA,qBAAQ,GAAE;mDAEU;AAOrB;IAFC,IAAA,qBAAQ,EAAC,gBAAgB,CAAC;sDAEK;AAOhC;IAFC,IAAA,qBAAQ,GAAE;0CAE0C;AAOrD;IAFC,IAAA,qBAAQ,GAAE;gDAEQ;AAOnB;IAFC,IAAA,qBAAQ,GAAE;oDAEW;AAuMtB;IADC,IAAA,0BAAa,GAAE;kDAef;AAvQQ,cAAc;IAH1B,sBAAS;IACT,IAAA,oBAAO,EAAC,MAAM,CAAC;IAChB,aAAa;GACA,cAAc,CA6Q1B;AA7QY,wCAAc;AA+Q3B,kBAAe,cAAc,CAAC;AAC9B,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { TranslatorState } from '../translator';
|
|
2
|
+
import Structure from './Structure__';
|
|
3
|
+
import Param from './Param__';
|
|
4
|
+
import { Params } from '../common/EventEmitter';
|
|
5
|
+
import BaseNode from '../common/BaseNode';
|
|
6
|
+
import InterfaceParam from './InterfaceParam__';
|
|
7
|
+
import Return from './Return__';
|
|
8
|
+
import Module from './Module__';
|
|
9
|
+
import App from './App__';
|
|
10
|
+
/**
|
|
11
|
+
* 接口
|
|
12
|
+
*/
|
|
13
|
+
export declare class Interface extends BaseNode {
|
|
14
|
+
/** 类名 */
|
|
15
|
+
static readonly ConceptName = "Interface";
|
|
16
|
+
/**
|
|
17
|
+
* 产品概念
|
|
18
|
+
*/
|
|
19
|
+
readonly concept: 'Interface';
|
|
20
|
+
/**
|
|
21
|
+
* 接口名称
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* originLogicName
|
|
26
|
+
*/
|
|
27
|
+
originLogicName: string;
|
|
28
|
+
/**
|
|
29
|
+
* path
|
|
30
|
+
*/
|
|
31
|
+
path: string;
|
|
32
|
+
/**
|
|
33
|
+
* method
|
|
34
|
+
*/
|
|
35
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
36
|
+
/**
|
|
37
|
+
* 接口描述
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
/**
|
|
41
|
+
* 接口参数列表
|
|
42
|
+
*/
|
|
43
|
+
params: Array<InterfaceParam>;
|
|
44
|
+
/**
|
|
45
|
+
* 输出参数列表
|
|
46
|
+
*/
|
|
47
|
+
returns: Array<Return>;
|
|
48
|
+
/**
|
|
49
|
+
* 祖先 Module
|
|
50
|
+
*/
|
|
51
|
+
get module(): Module;
|
|
52
|
+
/**
|
|
53
|
+
* 祖先 App
|
|
54
|
+
*/
|
|
55
|
+
get app(): App;
|
|
56
|
+
/**
|
|
57
|
+
* @param source 需要合并的部分参数
|
|
58
|
+
*/
|
|
59
|
+
constructor(source?: Partial<Interface>);
|
|
60
|
+
static from(source: any, parentNode?: any, parentKey?: string): Interface;
|
|
61
|
+
/**
|
|
62
|
+
* 从父级删除该节点
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
_delete(): Params;
|
|
66
|
+
/**
|
|
67
|
+
* 设置接口名称
|
|
68
|
+
*/
|
|
69
|
+
setName(name: string): void;
|
|
70
|
+
/**
|
|
71
|
+
* 设置接口描述
|
|
72
|
+
*/
|
|
73
|
+
setDescription(description: string): void;
|
|
74
|
+
getInterfaceParamUniqueName(name?: string): string;
|
|
75
|
+
/**
|
|
76
|
+
* 插入接口参数
|
|
77
|
+
* @internal
|
|
78
|
+
* @param name 接口参数名称,如果不填会自动生成一个唯一名称
|
|
79
|
+
*/
|
|
80
|
+
_insertInterfaceParamAt(name: string, index: number): InterfaceParam;
|
|
81
|
+
/**
|
|
82
|
+
* 插入接口参数
|
|
83
|
+
* @internal
|
|
84
|
+
* @param interfaceParamOptions 接口参数参数
|
|
85
|
+
*/
|
|
86
|
+
_insertInterfaceParamAt(interfaceParamOptions: Partial<InterfaceParam>, index: number): InterfaceParam;
|
|
87
|
+
/**
|
|
88
|
+
* 插入接口参数
|
|
89
|
+
* @internal
|
|
90
|
+
* @param interfaceParam 已有的接口参数实例
|
|
91
|
+
*/
|
|
92
|
+
_insertInterfaceParamAt(interfaceParam: InterfaceParam, index: number): InterfaceParam;
|
|
93
|
+
/**
|
|
94
|
+
* 插入接口参数
|
|
95
|
+
* @param name 接口参数名称,如果不填会自动生成一个唯一名称
|
|
96
|
+
*/
|
|
97
|
+
insertInterfaceParamAt(name: string, index: number): InterfaceParam;
|
|
98
|
+
/**
|
|
99
|
+
* 插入接口参数
|
|
100
|
+
* @param interfaceParamOptions 接口参数参数
|
|
101
|
+
*/
|
|
102
|
+
insertInterfaceParamAt(interfaceParamOptions: Partial<InterfaceParam>, index: number): InterfaceParam;
|
|
103
|
+
/**
|
|
104
|
+
* 插入接口参数
|
|
105
|
+
* @param interfaceParam 已有的接口参数实例
|
|
106
|
+
*/
|
|
107
|
+
insertInterfaceParamAt(interfaceParam: InterfaceParam, index: number): InterfaceParam;
|
|
108
|
+
/**
|
|
109
|
+
* 添加接口参数
|
|
110
|
+
* @internal
|
|
111
|
+
* @param name 接口参数名称,如果不填会自动生成一个唯一名称
|
|
112
|
+
*/
|
|
113
|
+
_addInterfaceParam(name?: string): InterfaceParam;
|
|
114
|
+
/**
|
|
115
|
+
* 添加接口参数
|
|
116
|
+
* @internal
|
|
117
|
+
* @param interfaceParamOptions 接口参数参数
|
|
118
|
+
*/
|
|
119
|
+
_addInterfaceParam(interfaceParamOptions: Partial<InterfaceParam>): InterfaceParam;
|
|
120
|
+
/**
|
|
121
|
+
* 添加接口参数
|
|
122
|
+
* @internal
|
|
123
|
+
* @param interfaceParam 已有的接口参数实例
|
|
124
|
+
*/
|
|
125
|
+
_addInterfaceParam(interfaceParam: InterfaceParam): InterfaceParam;
|
|
126
|
+
/**
|
|
127
|
+
* 添加接口参数
|
|
128
|
+
* @internal
|
|
129
|
+
* @param name 接口参数名称,如果不填会自动生成一个唯一名称
|
|
130
|
+
*/
|
|
131
|
+
addInterfaceParam(name?: string): InterfaceParam;
|
|
132
|
+
/**
|
|
133
|
+
* 添加接口参数
|
|
134
|
+
* @param interfaceParamOptions 接口参数参数
|
|
135
|
+
*/
|
|
136
|
+
addInterfaceParam(interfaceParamOptions: Partial<InterfaceParam>): InterfaceParam;
|
|
137
|
+
/**
|
|
138
|
+
* 添加接口参数
|
|
139
|
+
* @param interfaceParam 已有的接口参数实例
|
|
140
|
+
*/
|
|
141
|
+
addInterfaceParam(interfaceParam: InterfaceParam): InterfaceParam;
|
|
142
|
+
getReturnUniqueName(name?: string): string;
|
|
143
|
+
/**
|
|
144
|
+
* 插入输出参数
|
|
145
|
+
* @internal
|
|
146
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
147
|
+
*/
|
|
148
|
+
_insertReturnAt(name: string, index: number): Return;
|
|
149
|
+
/**
|
|
150
|
+
* 插入输出参数
|
|
151
|
+
* @internal
|
|
152
|
+
* @param retOptions 输出参数参数
|
|
153
|
+
*/
|
|
154
|
+
_insertReturnAt(retOptions: Partial<Return>, index: number): Return;
|
|
155
|
+
/**
|
|
156
|
+
* 插入输出参数
|
|
157
|
+
* @internal
|
|
158
|
+
* @param ret 已有的输出参数实例
|
|
159
|
+
*/
|
|
160
|
+
_insertReturnAt(ret: Return, index: number): Return;
|
|
161
|
+
/**
|
|
162
|
+
* 插入输出参数
|
|
163
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
164
|
+
*/
|
|
165
|
+
insertReturnAt(name: string, index: number): Return;
|
|
166
|
+
/**
|
|
167
|
+
* 插入输出参数
|
|
168
|
+
* @param retOptions 输出参数参数
|
|
169
|
+
*/
|
|
170
|
+
insertReturnAt(retOptions: Partial<Return>, index: number): Return;
|
|
171
|
+
/**
|
|
172
|
+
* 插入输出参数
|
|
173
|
+
* @param ret 已有的输出参数实例
|
|
174
|
+
*/
|
|
175
|
+
insertReturnAt(ret: Return, index: number): Return;
|
|
176
|
+
/**
|
|
177
|
+
* 添加输出参数
|
|
178
|
+
* @internal
|
|
179
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
180
|
+
*/
|
|
181
|
+
_addReturn(name?: string): Return;
|
|
182
|
+
/**
|
|
183
|
+
* 添加输出参数
|
|
184
|
+
* @internal
|
|
185
|
+
* @param retOptions 输出参数参数
|
|
186
|
+
*/
|
|
187
|
+
_addReturn(retOptions: Partial<Return>): Return;
|
|
188
|
+
/**
|
|
189
|
+
* 添加输出参数
|
|
190
|
+
* @internal
|
|
191
|
+
* @param ret 已有的输出参数实例
|
|
192
|
+
*/
|
|
193
|
+
_addReturn(ret: Return): Return;
|
|
194
|
+
/**
|
|
195
|
+
* 添加输出参数
|
|
196
|
+
* @internal
|
|
197
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
198
|
+
*/
|
|
199
|
+
addReturn(name?: string): Return;
|
|
200
|
+
/**
|
|
201
|
+
* 添加输出参数
|
|
202
|
+
* @param retOptions 输出参数参数
|
|
203
|
+
*/
|
|
204
|
+
addReturn(retOptions: Partial<Return>): Return;
|
|
205
|
+
/**
|
|
206
|
+
* 添加输出参数
|
|
207
|
+
* @param ret 已有的输出参数实例
|
|
208
|
+
*/
|
|
209
|
+
addReturn(ret: Return): Return;
|
|
210
|
+
/**
|
|
211
|
+
* 删除接口参数
|
|
212
|
+
* @param name 接口参数名称
|
|
213
|
+
*/
|
|
214
|
+
removeInterfaceParam(name: string): void;
|
|
215
|
+
/**
|
|
216
|
+
* 删除接口参数
|
|
217
|
+
* @param interfaceParam 已有的接口参数实例
|
|
218
|
+
*/
|
|
219
|
+
removeInterfaceParam(interfaceParam: InterfaceParam): void;
|
|
220
|
+
__removeInterfaceParam(interfaceParam: InterfaceParam): Params;
|
|
221
|
+
/**
|
|
222
|
+
* 删除输出参数
|
|
223
|
+
* @param name 输出参数名称
|
|
224
|
+
*/
|
|
225
|
+
removeReturn(name: string): void;
|
|
226
|
+
/**
|
|
227
|
+
* 删除输出参数
|
|
228
|
+
* @param ret 已有的输出参数实例
|
|
229
|
+
*/
|
|
230
|
+
removeReturn(ret: Return): void;
|
|
231
|
+
__removeReturn(ret: Return): Params;
|
|
232
|
+
/**
|
|
233
|
+
* 协议
|
|
234
|
+
*/
|
|
235
|
+
protocol: string;
|
|
236
|
+
/**
|
|
237
|
+
* 协议参数列表
|
|
238
|
+
*/
|
|
239
|
+
protocolParams: Array<Param>;
|
|
240
|
+
/**
|
|
241
|
+
* 是否可编辑
|
|
242
|
+
* */
|
|
243
|
+
get readonly(): boolean;
|
|
244
|
+
afterDelete(): void;
|
|
245
|
+
toService(): {
|
|
246
|
+
config: {
|
|
247
|
+
serviceType: string;
|
|
248
|
+
};
|
|
249
|
+
url: {
|
|
250
|
+
method: "POST" | "GET" | "DELETE" | "PUT";
|
|
251
|
+
path: string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* 设置接口描述
|
|
256
|
+
*/
|
|
257
|
+
updateOption(source: Partial<Interface>): void;
|
|
258
|
+
updateAllRefCallInterface(): Promise<void>;
|
|
259
|
+
deleteLogincAndModule(): void;
|
|
260
|
+
deleteStructures(): void;
|
|
261
|
+
/**
|
|
262
|
+
* 设置逻辑名称
|
|
263
|
+
*/
|
|
264
|
+
setOriginLogicName(originLogicName: string): void;
|
|
265
|
+
toEmbeddedTSFile(): {
|
|
266
|
+
code: string;
|
|
267
|
+
filePath: string;
|
|
268
|
+
sourceMap: import("../translator").SourceMap;
|
|
269
|
+
};
|
|
270
|
+
get calleeKey(): string;
|
|
271
|
+
get calleewholeKey(): string;
|
|
272
|
+
/**
|
|
273
|
+
* 生成宿主语言的文件路径
|
|
274
|
+
* @param name 一般不用传,用于 rename
|
|
275
|
+
*/
|
|
276
|
+
getEmbeddedFilePath(name?: string): string;
|
|
277
|
+
get tsName(): string;
|
|
278
|
+
toEmbeddedTS(state?: TranslatorState): string;
|
|
279
|
+
getNamespace(): string;
|
|
280
|
+
getTsNamespace(): string;
|
|
281
|
+
getVarExistingNames(excludedList?: Array<InterfaceParam | Return>): string[];
|
|
282
|
+
getRefStructures(structures?: Structure[]): Set<Structure>;
|
|
283
|
+
}
|
|
284
|
+
export default Interface;
|