@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,289 @@
|
|
|
1
|
+
import { TranslatorState } from '../translator';
|
|
2
|
+
import { ProcessElement, Process } from '..';
|
|
3
|
+
import { Params } from '../common/EventEmitter';
|
|
4
|
+
import LogicItem from './LogicItem__';
|
|
5
|
+
import Logic from './Logic__';
|
|
6
|
+
/**
|
|
7
|
+
* 经办人
|
|
8
|
+
*/
|
|
9
|
+
export declare class Assignee extends LogicItem {
|
|
10
|
+
/** 类名 */
|
|
11
|
+
static readonly ConceptName = "Assignee";
|
|
12
|
+
/**
|
|
13
|
+
* 产品概念
|
|
14
|
+
*/
|
|
15
|
+
readonly concept: 'Assignee';
|
|
16
|
+
/**
|
|
17
|
+
* 绑定用户
|
|
18
|
+
*/
|
|
19
|
+
users: Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* 动态用户
|
|
22
|
+
*/
|
|
23
|
+
dynamicUsers: Array<LogicItem>;
|
|
24
|
+
/**
|
|
25
|
+
* 绑定角色
|
|
26
|
+
*/
|
|
27
|
+
roles: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* 动态角色
|
|
30
|
+
*/
|
|
31
|
+
dynamicRoles: Array<LogicItem>;
|
|
32
|
+
/**
|
|
33
|
+
* 逻辑用户
|
|
34
|
+
*/
|
|
35
|
+
logicUsers: Array<Logic>;
|
|
36
|
+
/**
|
|
37
|
+
* @param source 需要合并的部分参数
|
|
38
|
+
*/
|
|
39
|
+
constructor(source?: Partial<Assignee>);
|
|
40
|
+
static from(source: any, parentNode?: any, parentKey?: string): Assignee;
|
|
41
|
+
getLogicItemExistingNames(excludedList?: Array<LogicItem>): string[];
|
|
42
|
+
getLogicItemUniqueName(name?: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* 插入逻辑项
|
|
45
|
+
* @internal
|
|
46
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
47
|
+
*/
|
|
48
|
+
_insertLogicItemInDynamicUsersAt(name: string, index: number): LogicItem;
|
|
49
|
+
/**
|
|
50
|
+
* 插入逻辑项
|
|
51
|
+
* @internal
|
|
52
|
+
* @param logicItemOptions 逻辑项参数
|
|
53
|
+
*/
|
|
54
|
+
_insertLogicItemInDynamicUsersAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
55
|
+
/**
|
|
56
|
+
* 插入逻辑项
|
|
57
|
+
* @internal
|
|
58
|
+
* @param logicItem 已有的逻辑项实例
|
|
59
|
+
*/
|
|
60
|
+
_insertLogicItemInDynamicUsersAt(logicItem: LogicItem, index: number): LogicItem;
|
|
61
|
+
/**
|
|
62
|
+
* 插入逻辑项
|
|
63
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
64
|
+
*/
|
|
65
|
+
insertLogicItemInDynamicUsersAt(name: string, index: number): LogicItem;
|
|
66
|
+
/**
|
|
67
|
+
* 插入逻辑项
|
|
68
|
+
* @param logicItemOptions 逻辑项参数
|
|
69
|
+
*/
|
|
70
|
+
insertLogicItemInDynamicUsersAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
71
|
+
/**
|
|
72
|
+
* 插入逻辑项
|
|
73
|
+
* @param logicItem 已有的逻辑项实例
|
|
74
|
+
*/
|
|
75
|
+
insertLogicItemInDynamicUsersAt(logicItem: LogicItem, index: number): LogicItem;
|
|
76
|
+
/**
|
|
77
|
+
* 添加逻辑项
|
|
78
|
+
* @internal
|
|
79
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
80
|
+
*/
|
|
81
|
+
_addLogicItemInDynamicUsers(name?: string): LogicItem;
|
|
82
|
+
/**
|
|
83
|
+
* 添加逻辑项
|
|
84
|
+
* @internal
|
|
85
|
+
* @param logicItemOptions 逻辑项参数
|
|
86
|
+
*/
|
|
87
|
+
_addLogicItemInDynamicUsers(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
88
|
+
/**
|
|
89
|
+
* 添加逻辑项
|
|
90
|
+
* @internal
|
|
91
|
+
* @param logicItem 已有的逻辑项实例
|
|
92
|
+
*/
|
|
93
|
+
_addLogicItemInDynamicUsers(logicItem: LogicItem): LogicItem;
|
|
94
|
+
/**
|
|
95
|
+
* 添加逻辑项
|
|
96
|
+
* @internal
|
|
97
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
98
|
+
*/
|
|
99
|
+
addLogicItemInDynamicUsers(name?: string): LogicItem;
|
|
100
|
+
/**
|
|
101
|
+
* 添加逻辑项
|
|
102
|
+
* @param logicItemOptions 逻辑项参数
|
|
103
|
+
*/
|
|
104
|
+
addLogicItemInDynamicUsers(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
105
|
+
/**
|
|
106
|
+
* 添加逻辑项
|
|
107
|
+
* @param logicItem 已有的逻辑项实例
|
|
108
|
+
*/
|
|
109
|
+
addLogicItemInDynamicUsers(logicItem: LogicItem): LogicItem;
|
|
110
|
+
/**
|
|
111
|
+
* 插入逻辑项
|
|
112
|
+
* @internal
|
|
113
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
114
|
+
*/
|
|
115
|
+
_insertLogicItemInDynamicRolesAt(name: string, index: number): LogicItem;
|
|
116
|
+
/**
|
|
117
|
+
* 插入逻辑项
|
|
118
|
+
* @internal
|
|
119
|
+
* @param logicItemOptions 逻辑项参数
|
|
120
|
+
*/
|
|
121
|
+
_insertLogicItemInDynamicRolesAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
122
|
+
/**
|
|
123
|
+
* 插入逻辑项
|
|
124
|
+
* @internal
|
|
125
|
+
* @param logicItem 已有的逻辑项实例
|
|
126
|
+
*/
|
|
127
|
+
_insertLogicItemInDynamicRolesAt(logicItem: LogicItem, index: number): LogicItem;
|
|
128
|
+
/**
|
|
129
|
+
* 插入逻辑项
|
|
130
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
131
|
+
*/
|
|
132
|
+
insertLogicItemInDynamicRolesAt(name: string, index: number): LogicItem;
|
|
133
|
+
/**
|
|
134
|
+
* 插入逻辑项
|
|
135
|
+
* @param logicItemOptions 逻辑项参数
|
|
136
|
+
*/
|
|
137
|
+
insertLogicItemInDynamicRolesAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
138
|
+
/**
|
|
139
|
+
* 插入逻辑项
|
|
140
|
+
* @param logicItem 已有的逻辑项实例
|
|
141
|
+
*/
|
|
142
|
+
insertLogicItemInDynamicRolesAt(logicItem: LogicItem, index: number): LogicItem;
|
|
143
|
+
/**
|
|
144
|
+
* 添加逻辑项
|
|
145
|
+
* @internal
|
|
146
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
147
|
+
*/
|
|
148
|
+
_addLogicItemInDynamicRoles(name?: string): LogicItem;
|
|
149
|
+
/**
|
|
150
|
+
* 添加逻辑项
|
|
151
|
+
* @internal
|
|
152
|
+
* @param logicItemOptions 逻辑项参数
|
|
153
|
+
*/
|
|
154
|
+
_addLogicItemInDynamicRoles(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
155
|
+
/**
|
|
156
|
+
* 添加逻辑项
|
|
157
|
+
* @internal
|
|
158
|
+
* @param logicItem 已有的逻辑项实例
|
|
159
|
+
*/
|
|
160
|
+
_addLogicItemInDynamicRoles(logicItem: LogicItem): LogicItem;
|
|
161
|
+
/**
|
|
162
|
+
* 添加逻辑项
|
|
163
|
+
* @internal
|
|
164
|
+
* @param name 逻辑项名称,如果不填会自动生成一个唯一名称
|
|
165
|
+
*/
|
|
166
|
+
addLogicItemInDynamicRoles(name?: string): LogicItem;
|
|
167
|
+
/**
|
|
168
|
+
* 添加逻辑项
|
|
169
|
+
* @param logicItemOptions 逻辑项参数
|
|
170
|
+
*/
|
|
171
|
+
addLogicItemInDynamicRoles(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
172
|
+
/**
|
|
173
|
+
* 添加逻辑项
|
|
174
|
+
* @param logicItem 已有的逻辑项实例
|
|
175
|
+
*/
|
|
176
|
+
addLogicItemInDynamicRoles(logicItem: LogicItem): LogicItem;
|
|
177
|
+
getLogicExistingNames(excludedList?: Array<Logic>): string[];
|
|
178
|
+
getLogicUniqueName(name?: string): string;
|
|
179
|
+
/**
|
|
180
|
+
* 插入逻辑
|
|
181
|
+
* @internal
|
|
182
|
+
* @param name 逻辑名称,如果不填会自动生成一个唯一名称
|
|
183
|
+
*/
|
|
184
|
+
_insertLogicAt(name: string, index: number): Logic;
|
|
185
|
+
/**
|
|
186
|
+
* 插入逻辑
|
|
187
|
+
* @internal
|
|
188
|
+
* @param logicOptions 逻辑参数
|
|
189
|
+
*/
|
|
190
|
+
_insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
|
|
191
|
+
/**
|
|
192
|
+
* 插入逻辑
|
|
193
|
+
* @internal
|
|
194
|
+
* @param logic 已有的逻辑实例
|
|
195
|
+
*/
|
|
196
|
+
_insertLogicAt(logic: Logic, index: number): Logic;
|
|
197
|
+
/**
|
|
198
|
+
* 插入逻辑
|
|
199
|
+
* @param name 逻辑名称,如果不填会自动生成一个唯一名称
|
|
200
|
+
*/
|
|
201
|
+
insertLogicAt(name: string, index: number): Logic;
|
|
202
|
+
/**
|
|
203
|
+
* 插入逻辑
|
|
204
|
+
* @param logicOptions 逻辑参数
|
|
205
|
+
*/
|
|
206
|
+
insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
|
|
207
|
+
/**
|
|
208
|
+
* 插入逻辑
|
|
209
|
+
* @param logic 已有的逻辑实例
|
|
210
|
+
*/
|
|
211
|
+
insertLogicAt(logic: Logic, index: number): Logic;
|
|
212
|
+
/**
|
|
213
|
+
* 添加逻辑
|
|
214
|
+
* @internal
|
|
215
|
+
* @param name 逻辑名称,如果不填会自动生成一个唯一名称
|
|
216
|
+
*/
|
|
217
|
+
_addLogic(name?: string): Logic;
|
|
218
|
+
/**
|
|
219
|
+
* 添加逻辑
|
|
220
|
+
* @internal
|
|
221
|
+
* @param logicOptions 逻辑参数
|
|
222
|
+
*/
|
|
223
|
+
_addLogic(logicOptions: Partial<Logic>): Logic;
|
|
224
|
+
/**
|
|
225
|
+
* 添加逻辑
|
|
226
|
+
* @internal
|
|
227
|
+
* @param logic 已有的逻辑实例
|
|
228
|
+
*/
|
|
229
|
+
_addLogic(logic: Logic): Logic;
|
|
230
|
+
/**
|
|
231
|
+
* 添加逻辑
|
|
232
|
+
* @internal
|
|
233
|
+
* @param name 逻辑名称,如果不填会自动生成一个唯一名称
|
|
234
|
+
*/
|
|
235
|
+
addLogic(name?: string): Logic;
|
|
236
|
+
/**
|
|
237
|
+
* 添加逻辑
|
|
238
|
+
* @param logicOptions 逻辑参数
|
|
239
|
+
*/
|
|
240
|
+
addLogic(logicOptions: Partial<Logic>): Logic;
|
|
241
|
+
/**
|
|
242
|
+
* 添加逻辑
|
|
243
|
+
* @param logic 已有的逻辑实例
|
|
244
|
+
*/
|
|
245
|
+
addLogic(logic: Logic): Logic;
|
|
246
|
+
/**
|
|
247
|
+
* 删除逻辑项
|
|
248
|
+
* @param name 逻辑项名称
|
|
249
|
+
*/
|
|
250
|
+
removeLogicItemInDynamicUsers(name: string): void;
|
|
251
|
+
/**
|
|
252
|
+
* 删除逻辑项
|
|
253
|
+
* @param logicItem 已有的逻辑项实例
|
|
254
|
+
*/
|
|
255
|
+
removeLogicItemInDynamicUsers(logicItem: LogicItem): void;
|
|
256
|
+
/**
|
|
257
|
+
* 删除逻辑项
|
|
258
|
+
* @param name 逻辑项名称
|
|
259
|
+
*/
|
|
260
|
+
removeLogicItemInDynamicRoles(name: string): void;
|
|
261
|
+
/**
|
|
262
|
+
* 删除逻辑项
|
|
263
|
+
* @param logicItem 已有的逻辑项实例
|
|
264
|
+
*/
|
|
265
|
+
removeLogicItemInDynamicRoles(logicItem: LogicItem): void;
|
|
266
|
+
__removeLogicItem(logicItem: LogicItem): Params;
|
|
267
|
+
/**
|
|
268
|
+
* 删除逻辑
|
|
269
|
+
* @param name 逻辑名称
|
|
270
|
+
*/
|
|
271
|
+
removeLogic(name: string): void;
|
|
272
|
+
/**
|
|
273
|
+
* 删除逻辑
|
|
274
|
+
* @param logic 已有的逻辑实例
|
|
275
|
+
*/
|
|
276
|
+
removeLogic(logic: Logic): void;
|
|
277
|
+
__removeLogic(logic: Logic): Params;
|
|
278
|
+
/**
|
|
279
|
+
* 祖先 ProcessElement
|
|
280
|
+
*/
|
|
281
|
+
get processElement(): ProcessElement;
|
|
282
|
+
/**
|
|
283
|
+
* 祖先 Process
|
|
284
|
+
*/
|
|
285
|
+
get process(): Process;
|
|
286
|
+
getNamespace(ns: string): string;
|
|
287
|
+
toEmbeddedTSInProcess(state: TranslatorState, prevCode: string): string;
|
|
288
|
+
}
|
|
289
|
+
export default Assignee;
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
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;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
|
+
};
|
|
34
|
+
var Assignee_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Assignee = void 0;
|
|
37
|
+
const translator_1 = require("../translator");
|
|
38
|
+
const decorators_1 = require("../decorators");
|
|
39
|
+
const utils = __importStar(require("../utils"));
|
|
40
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
41
|
+
const Logic__1 = __importDefault(require("./Logic__"));
|
|
42
|
+
/**
|
|
43
|
+
* 经办人
|
|
44
|
+
*/
|
|
45
|
+
let Assignee = Assignee_1 =
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
class Assignee extends LogicItem__1.default {
|
|
48
|
+
/** 类名 */
|
|
49
|
+
static ConceptName = 'Assignee';
|
|
50
|
+
/**
|
|
51
|
+
* 产品概念
|
|
52
|
+
*/
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
concept;
|
|
55
|
+
/**
|
|
56
|
+
* 绑定用户
|
|
57
|
+
*/
|
|
58
|
+
users = [];
|
|
59
|
+
/**
|
|
60
|
+
* 动态用户
|
|
61
|
+
*/
|
|
62
|
+
dynamicUsers = [];
|
|
63
|
+
/**
|
|
64
|
+
* 绑定角色
|
|
65
|
+
*/
|
|
66
|
+
roles = [];
|
|
67
|
+
/**
|
|
68
|
+
* 动态角色
|
|
69
|
+
*/
|
|
70
|
+
dynamicRoles = [];
|
|
71
|
+
/**
|
|
72
|
+
* 逻辑用户
|
|
73
|
+
*/
|
|
74
|
+
logicUsers = [];
|
|
75
|
+
/**
|
|
76
|
+
* @param source 需要合并的部分参数
|
|
77
|
+
*/
|
|
78
|
+
constructor(source) {
|
|
79
|
+
source = Object.assign({}, Assignee_1.getDefaultOptions(), source);
|
|
80
|
+
super(source);
|
|
81
|
+
super.subConstructor(source);
|
|
82
|
+
}
|
|
83
|
+
static from(source, parentNode, parentKey) {
|
|
84
|
+
return super.from(source, parentNode, parentKey);
|
|
85
|
+
}
|
|
86
|
+
getLogicItemExistingNames(excludedList = []) {
|
|
87
|
+
const excludedSet = new Set(excludedList);
|
|
88
|
+
return (this.dynamicUsers || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
89
|
+
}
|
|
90
|
+
getLogicItemUniqueName(name = 'logicItem1') {
|
|
91
|
+
return utils.unique(name, this.getLogicItemExistingNames(), undefined, false);
|
|
92
|
+
}
|
|
93
|
+
_insertLogicItemInDynamicUsersAt(options, index) {
|
|
94
|
+
const logicItemOptions = {};
|
|
95
|
+
const relationOptions = { parentNode: this, parentKey: 'dynamicUsers' };
|
|
96
|
+
let logicItem;
|
|
97
|
+
if (!options) {
|
|
98
|
+
logicItem = LogicItem__1.default.from({
|
|
99
|
+
...logicItemOptions,
|
|
100
|
+
name: this.getLogicItemUniqueName(),
|
|
101
|
+
}, this, 'dynamicUsers');
|
|
102
|
+
}
|
|
103
|
+
else if (typeof options === 'string') {
|
|
104
|
+
logicItem = LogicItem__1.default.from({
|
|
105
|
+
...logicItemOptions,
|
|
106
|
+
name: options,
|
|
107
|
+
}, this, 'dynamicUsers');
|
|
108
|
+
}
|
|
109
|
+
else if (options instanceof LogicItem__1.default) {
|
|
110
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
111
|
+
logicItem = options;
|
|
112
|
+
Object.assign(logicItem, relationOptions);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
logicItem = LogicItem__1.default.from({
|
|
116
|
+
...logicItemOptions,
|
|
117
|
+
...options,
|
|
118
|
+
}, this, 'dynamicUsers');
|
|
119
|
+
}
|
|
120
|
+
this.dynamicUsers.splice(index, 0, logicItem);
|
|
121
|
+
return logicItem;
|
|
122
|
+
}
|
|
123
|
+
insertLogicItemInDynamicUsersAt(options, index) {
|
|
124
|
+
const node = this._insertLogicItemInDynamicUsersAt(options, index);
|
|
125
|
+
node.create({
|
|
126
|
+
index,
|
|
127
|
+
parentNode: this,
|
|
128
|
+
parentKey: 'dynamicUsers',
|
|
129
|
+
});
|
|
130
|
+
return node;
|
|
131
|
+
}
|
|
132
|
+
_addLogicItemInDynamicUsers(options) {
|
|
133
|
+
const index = this.dynamicUsers.length;
|
|
134
|
+
return this._insertLogicItemInDynamicUsersAt(options, index);
|
|
135
|
+
}
|
|
136
|
+
addLogicItemInDynamicUsers(options) {
|
|
137
|
+
const node = this._addLogicItemInDynamicUsers(options);
|
|
138
|
+
const index = this.dynamicUsers.indexOf(node);
|
|
139
|
+
node.create({
|
|
140
|
+
index,
|
|
141
|
+
parentNode: this,
|
|
142
|
+
parentKey: 'dynamicUsers',
|
|
143
|
+
});
|
|
144
|
+
return node;
|
|
145
|
+
}
|
|
146
|
+
_insertLogicItemInDynamicRolesAt(options, index) {
|
|
147
|
+
const logicItemOptions = {};
|
|
148
|
+
const relationOptions = { parentNode: this, parentKey: 'dynamicRoles' };
|
|
149
|
+
let logicItem;
|
|
150
|
+
if (!options) {
|
|
151
|
+
logicItem = LogicItem__1.default.from({
|
|
152
|
+
...logicItemOptions,
|
|
153
|
+
name: this.getLogicItemUniqueName(),
|
|
154
|
+
}, this, 'dynamicRoles');
|
|
155
|
+
}
|
|
156
|
+
else if (typeof options === 'string') {
|
|
157
|
+
logicItem = LogicItem__1.default.from({
|
|
158
|
+
...logicItemOptions,
|
|
159
|
+
name: options,
|
|
160
|
+
}, this, 'dynamicRoles');
|
|
161
|
+
}
|
|
162
|
+
else if (options instanceof LogicItem__1.default) {
|
|
163
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
164
|
+
logicItem = options;
|
|
165
|
+
Object.assign(logicItem, relationOptions);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
logicItem = LogicItem__1.default.from({
|
|
169
|
+
...logicItemOptions,
|
|
170
|
+
...options,
|
|
171
|
+
}, this, 'dynamicRoles');
|
|
172
|
+
}
|
|
173
|
+
this.dynamicRoles.splice(index, 0, logicItem);
|
|
174
|
+
return logicItem;
|
|
175
|
+
}
|
|
176
|
+
insertLogicItemInDynamicRolesAt(options, index) {
|
|
177
|
+
const node = this._insertLogicItemInDynamicRolesAt(options, index);
|
|
178
|
+
node.create({
|
|
179
|
+
index,
|
|
180
|
+
parentNode: this,
|
|
181
|
+
parentKey: 'dynamicRoles',
|
|
182
|
+
});
|
|
183
|
+
return node;
|
|
184
|
+
}
|
|
185
|
+
_addLogicItemInDynamicRoles(options) {
|
|
186
|
+
const index = this.dynamicRoles.length;
|
|
187
|
+
return this._insertLogicItemInDynamicRolesAt(options, index);
|
|
188
|
+
}
|
|
189
|
+
addLogicItemInDynamicRoles(options) {
|
|
190
|
+
const node = this._addLogicItemInDynamicRoles(options);
|
|
191
|
+
const index = this.dynamicRoles.indexOf(node);
|
|
192
|
+
node.create({
|
|
193
|
+
index,
|
|
194
|
+
parentNode: this,
|
|
195
|
+
parentKey: 'dynamicRoles',
|
|
196
|
+
});
|
|
197
|
+
return node;
|
|
198
|
+
}
|
|
199
|
+
getLogicExistingNames(excludedList = []) {
|
|
200
|
+
const excludedSet = new Set(excludedList);
|
|
201
|
+
return (this.logicUsers || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
202
|
+
}
|
|
203
|
+
getLogicUniqueName(name = 'logic1') {
|
|
204
|
+
return utils.unique(name, this.getLogicExistingNames(), undefined, false);
|
|
205
|
+
}
|
|
206
|
+
_insertLogicAt(options, index) {
|
|
207
|
+
const logicOptions = {};
|
|
208
|
+
const relationOptions = { parentNode: this, parentKey: 'logicUsers' };
|
|
209
|
+
let logic;
|
|
210
|
+
if (!options) {
|
|
211
|
+
logic = Logic__1.default.from({
|
|
212
|
+
...logicOptions,
|
|
213
|
+
name: this.getLogicUniqueName(),
|
|
214
|
+
}, this, 'logicUsers');
|
|
215
|
+
}
|
|
216
|
+
else if (typeof options === 'string') {
|
|
217
|
+
logic = Logic__1.default.from({
|
|
218
|
+
...logicOptions,
|
|
219
|
+
name: options,
|
|
220
|
+
}, this, 'logicUsers');
|
|
221
|
+
}
|
|
222
|
+
else if (options instanceof Logic__1.default) {
|
|
223
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
224
|
+
logic = options;
|
|
225
|
+
Object.assign(logic, relationOptions);
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
logic = Logic__1.default.from({
|
|
229
|
+
...logicOptions,
|
|
230
|
+
...options,
|
|
231
|
+
}, this, 'logicUsers');
|
|
232
|
+
}
|
|
233
|
+
this.logicUsers.splice(index, 0, logic);
|
|
234
|
+
return logic;
|
|
235
|
+
}
|
|
236
|
+
insertLogicAt(options, index) {
|
|
237
|
+
const node = this._insertLogicAt(options, index);
|
|
238
|
+
node.create({
|
|
239
|
+
index,
|
|
240
|
+
parentNode: this,
|
|
241
|
+
parentKey: 'logicUsers',
|
|
242
|
+
});
|
|
243
|
+
return node;
|
|
244
|
+
}
|
|
245
|
+
_addLogic(options) {
|
|
246
|
+
const index = this.logicUsers.length;
|
|
247
|
+
return this._insertLogicAt(options, index);
|
|
248
|
+
}
|
|
249
|
+
addLogic(options) {
|
|
250
|
+
const node = this._addLogic(options);
|
|
251
|
+
const index = this.logicUsers.indexOf(node);
|
|
252
|
+
node.create({
|
|
253
|
+
index,
|
|
254
|
+
parentNode: this,
|
|
255
|
+
parentKey: 'logicUsers',
|
|
256
|
+
});
|
|
257
|
+
return node;
|
|
258
|
+
}
|
|
259
|
+
removeLogicItemInDynamicUsers(options) {
|
|
260
|
+
let logicItem;
|
|
261
|
+
if (typeof options === 'string') {
|
|
262
|
+
logicItem = this.dynamicUsers.find((item) => item.name === options);
|
|
263
|
+
if (!logicItem) {
|
|
264
|
+
throw new Error('找不到逻辑项 ' + options);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
logicItem = options;
|
|
269
|
+
}
|
|
270
|
+
return logicItem.delete();
|
|
271
|
+
}
|
|
272
|
+
removeLogicItemInDynamicRoles(options) {
|
|
273
|
+
let logicItem;
|
|
274
|
+
if (typeof options === 'string') {
|
|
275
|
+
logicItem = this.dynamicRoles.find((item) => item.name === options);
|
|
276
|
+
if (!logicItem) {
|
|
277
|
+
throw new Error('找不到逻辑项 ' + options);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
logicItem = options;
|
|
282
|
+
}
|
|
283
|
+
return logicItem.delete();
|
|
284
|
+
}
|
|
285
|
+
__removeLogicItem(logicItem) {
|
|
286
|
+
const parentKey = logicItem.parentKey;
|
|
287
|
+
const params = {
|
|
288
|
+
parentNode: this,
|
|
289
|
+
parentKey,
|
|
290
|
+
index: -1,
|
|
291
|
+
object: null,
|
|
292
|
+
oldObject: logicItem,
|
|
293
|
+
};
|
|
294
|
+
if (parentKey) {
|
|
295
|
+
params.parentKey = parentKey;
|
|
296
|
+
if (Array.isArray(this[parentKey])) {
|
|
297
|
+
const index = this[parentKey].indexOf(logicItem);
|
|
298
|
+
~index && this[parentKey].splice(index, 1);
|
|
299
|
+
params.index = index;
|
|
300
|
+
}
|
|
301
|
+
else if (this[parentKey] === logicItem) {
|
|
302
|
+
params.index = 0;
|
|
303
|
+
this[parentKey] = undefined;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return params;
|
|
307
|
+
}
|
|
308
|
+
removeLogic(options) {
|
|
309
|
+
let logic;
|
|
310
|
+
if (typeof options === 'string') {
|
|
311
|
+
logic = this.logicUsers.find((item) => item.name === options);
|
|
312
|
+
if (!logic) {
|
|
313
|
+
throw new Error('找不到逻辑 ' + options);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
logic = options;
|
|
318
|
+
}
|
|
319
|
+
return logic.delete();
|
|
320
|
+
}
|
|
321
|
+
__removeLogic(logic) {
|
|
322
|
+
const parentKey = logic.parentKey;
|
|
323
|
+
const params = {
|
|
324
|
+
parentNode: this,
|
|
325
|
+
parentKey,
|
|
326
|
+
index: -1,
|
|
327
|
+
object: null,
|
|
328
|
+
oldObject: logic,
|
|
329
|
+
};
|
|
330
|
+
if (parentKey) {
|
|
331
|
+
params.parentKey = parentKey;
|
|
332
|
+
if (Array.isArray(this[parentKey])) {
|
|
333
|
+
const index = this[parentKey].indexOf(logic);
|
|
334
|
+
~index && this[parentKey].splice(index, 1);
|
|
335
|
+
params.index = index;
|
|
336
|
+
}
|
|
337
|
+
else if (this[parentKey] === logic) {
|
|
338
|
+
params.index = 0;
|
|
339
|
+
this[parentKey] = undefined;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
return params;
|
|
343
|
+
}
|
|
344
|
+
//================================================================================
|
|
345
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
346
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
347
|
+
//================================================================================
|
|
348
|
+
/**
|
|
349
|
+
* 祖先 ProcessElement
|
|
350
|
+
*/
|
|
351
|
+
get processElement() {
|
|
352
|
+
return this.getAncestor('ProcessElement');
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* 祖先 Process
|
|
356
|
+
*/
|
|
357
|
+
get process() {
|
|
358
|
+
return this.getAncestor('Process');
|
|
359
|
+
}
|
|
360
|
+
getNamespace(ns) {
|
|
361
|
+
if (this.parentNode && this.parentNode.getNamespace) {
|
|
362
|
+
const parentNamespace = this.parentNode.getNamespace();
|
|
363
|
+
const parentName = this.parentNode.name;
|
|
364
|
+
const arr = [parentNamespace];
|
|
365
|
+
if (this.parentNode.concept !== 'App' && parentName) {
|
|
366
|
+
arr.push(parentName);
|
|
367
|
+
}
|
|
368
|
+
return `${arr.join('.')}.${ns || 'assignee'}`;
|
|
369
|
+
}
|
|
370
|
+
else
|
|
371
|
+
throw new Error('无法获取命名空间,请设置 parentNode!');
|
|
372
|
+
}
|
|
373
|
+
toEmbeddedTSInProcess(state, prevCode) {
|
|
374
|
+
const tab = (0, translator_1.indent)((state?.tabSize || 0));
|
|
375
|
+
// const tab = indent(state.tabSize);
|
|
376
|
+
// let code = `const plainuser = [];\n`
|
|
377
|
+
// code += `const dynamicuser = [];\n`
|
|
378
|
+
let code = prevCode;
|
|
379
|
+
if (!this.users.length && !this.dynamicUsers.length && !this.logicUsers.length && !this.roles.length)
|
|
380
|
+
code += tab + '__UsersEmpty__;\n';
|
|
381
|
+
if (Array.isArray(this.logicUsers)) {
|
|
382
|
+
this.logicUsers.forEach((logic) => {
|
|
383
|
+
code += `${logic.toEmbeddedTSInProcess((0, translator_1.shiftState)(state, code, { tabSize: (state?.tabSize || 0) }), prevCode, false, true)}\n`;
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
code += `${tab}nasl.util.concatString(`;
|
|
387
|
+
this.dynamicUsers.forEach((u, index) => {
|
|
388
|
+
code += u.toEmbeddedTS((0, translator_1.shiftState)(state, code));
|
|
389
|
+
if (index + 1 < this.dynamicUsers.length)
|
|
390
|
+
code += ', ';
|
|
391
|
+
});
|
|
392
|
+
code += ')\n';
|
|
393
|
+
// code += `${this.dynamicUsers.map(u => u.toEmbeddedTS(shiftState(state, code))).join(',\n')})\n`;
|
|
394
|
+
return code;
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
__decorate([
|
|
398
|
+
(0, decorators_1.property)()
|
|
399
|
+
], Assignee.prototype, "users", void 0);
|
|
400
|
+
__decorate([
|
|
401
|
+
(0, decorators_1.property)('LogicItem')
|
|
402
|
+
], Assignee.prototype, "dynamicUsers", void 0);
|
|
403
|
+
__decorate([
|
|
404
|
+
(0, decorators_1.property)()
|
|
405
|
+
], Assignee.prototype, "roles", void 0);
|
|
406
|
+
__decorate([
|
|
407
|
+
(0, decorators_1.property)('LogicItem')
|
|
408
|
+
], Assignee.prototype, "dynamicRoles", void 0);
|
|
409
|
+
__decorate([
|
|
410
|
+
(0, decorators_1.property)('Logic')
|
|
411
|
+
], Assignee.prototype, "logicUsers", void 0);
|
|
412
|
+
__decorate([
|
|
413
|
+
(0, translator_1.withSourceMap)()
|
|
414
|
+
], Assignee.prototype, "toEmbeddedTSInProcess", null);
|
|
415
|
+
Assignee = Assignee_1 = __decorate([
|
|
416
|
+
decorators_1.className,
|
|
417
|
+
(0, decorators_1.concept)('经办人')
|
|
418
|
+
// @ts-ignore
|
|
419
|
+
], Assignee);
|
|
420
|
+
exports.Assignee = Assignee;
|
|
421
|
+
exports.default = Assignee;
|
|
422
|
+
//================================================================================
|
|
423
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
424
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
425
|
+
//================================================================================
|
|
426
|
+
//# sourceMappingURL=Assignee__.js.map
|