@lcap/nasl-concepts 3.9.0-beta.1
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/README.md +3 -0
- package/out/breakpoint/index.d.ts +2 -0
- package/out/breakpoint/index.d.ts.map +1 -0
- package/out/breakpoint/index.js +18 -0
- package/out/breakpoint/index.js.map +1 -0
- package/out/breakpoint/operation.d.ts +11 -0
- package/out/breakpoint/operation.d.ts.map +1 -0
- package/out/breakpoint/operation.js +24 -0
- package/out/breakpoint/operation.js.map +1 -0
- package/out/common/BaseNode.d.ts +427 -0
- package/out/common/BaseNode.d.ts.map +1 -0
- package/out/common/BaseNode.js +1721 -0
- package/out/common/BaseNode.js.map +1 -0
- package/out/common/EventEmitter.d.ts +30 -0
- package/out/common/EventEmitter.d.ts.map +1 -0
- package/out/common/EventEmitter.js +70 -0
- package/out/common/EventEmitter.js.map +1 -0
- package/out/common/index.d.ts +3 -0
- package/out/common/index.d.ts.map +1 -0
- package/out/common/index.js +19 -0
- package/out/common/index.js.map +1 -0
- package/out/common/types.d.ts +5 -0
- package/out/common/types.d.ts.map +1 -0
- package/out/common/types.js +3 -0
- package/out/common/types.js.map +1 -0
- package/out/concepts/Abort__.d.ts +32 -0
- package/out/concepts/Abort__.d.ts.map +1 -0
- package/out/concepts/Abort__.js +94 -0
- package/out/concepts/Abort__.js.map +1 -0
- package/out/concepts/AbstractInterface__.d.ts +29 -0
- package/out/concepts/AbstractInterface__.d.ts.map +1 -0
- package/out/concepts/AbstractInterface__.js +62 -0
- package/out/concepts/AbstractInterface__.js.map +1 -0
- package/out/concepts/Anchor__.d.ts +44 -0
- package/out/concepts/Anchor__.d.ts.map +1 -0
- package/out/concepts/Anchor__.js +179 -0
- package/out/concepts/Anchor__.js.map +1 -0
- package/out/concepts/Annotatable__.d.ts +111 -0
- package/out/concepts/Annotatable__.d.ts.map +1 -0
- package/out/concepts/Annotatable__.js +163 -0
- package/out/concepts/Annotatable__.js.map +1 -0
- package/out/concepts/AnnotationProperty__.d.ts +49 -0
- package/out/concepts/AnnotationProperty__.d.ts.map +1 -0
- package/out/concepts/AnnotationProperty__.js +76 -0
- package/out/concepts/AnnotationProperty__.js.map +1 -0
- package/out/concepts/Annotation__.d.ts +129 -0
- package/out/concepts/Annotation__.d.ts.map +1 -0
- package/out/concepts/Annotation__.js +249 -0
- package/out/concepts/Annotation__.js.map +1 -0
- package/out/concepts/AnonymousFunction__.d.ts +141 -0
- package/out/concepts/AnonymousFunction__.d.ts.map +1 -0
- package/out/concepts/AnonymousFunction__.js +428 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -0
- package/out/concepts/App__.d.ts +1794 -0
- package/out/concepts/App__.d.ts.map +1 -0
- package/out/concepts/App__.js +3475 -0
- package/out/concepts/App__.js.map +1 -0
- package/out/concepts/ApplyAnnotation__.d.ts +88 -0
- package/out/concepts/ApplyAnnotation__.d.ts.map +1 -0
- package/out/concepts/ApplyAnnotation__.js +142 -0
- package/out/concepts/ApplyAnnotation__.js.map +1 -0
- package/out/concepts/ApprovalPolicyV2__.d.ts +27 -0
- package/out/concepts/ApprovalPolicyV2__.d.ts.map +1 -0
- package/out/concepts/ApprovalPolicyV2__.js +55 -0
- package/out/concepts/ApprovalPolicyV2__.js.map +1 -0
- package/out/concepts/Argument__.d.ts +85 -0
- package/out/concepts/Argument__.d.ts.map +1 -0
- package/out/concepts/Argument__.js +390 -0
- package/out/concepts/Argument__.js.map +1 -0
- package/out/concepts/AssigneeV2__.d.ts +380 -0
- package/out/concepts/AssigneeV2__.d.ts.map +1 -0
- package/out/concepts/AssigneeV2__.js +517 -0
- package/out/concepts/AssigneeV2__.js.map +1 -0
- package/out/concepts/Assignee__.d.ts +296 -0
- package/out/concepts/Assignee__.d.ts.map +1 -0
- package/out/concepts/Assignee__.js +404 -0
- package/out/concepts/Assignee__.js.map +1 -0
- package/out/concepts/AssignmentLine__.d.ts +44 -0
- package/out/concepts/AssignmentLine__.d.ts.map +1 -0
- package/out/concepts/AssignmentLine__.js +110 -0
- package/out/concepts/AssignmentLine__.js.map +1 -0
- package/out/concepts/Assignment__.d.ts +59 -0
- package/out/concepts/Assignment__.d.ts.map +1 -0
- package/out/concepts/Assignment__.js +288 -0
- package/out/concepts/Assignment__.js.map +1 -0
- package/out/concepts/Attribute__.d.ts +77 -0
- package/out/concepts/Attribute__.d.ts.map +1 -0
- package/out/concepts/Attribute__.js +103 -0
- package/out/concepts/Attribute__.js.map +1 -0
- package/out/concepts/AuthInterface__.d.ts +39 -0
- package/out/concepts/AuthInterface__.d.ts.map +1 -0
- package/out/concepts/AuthInterface__.js +79 -0
- package/out/concepts/AuthInterface__.js.map +1 -0
- package/out/concepts/AuthLogicForCallInterface__.d.ts +148 -0
- package/out/concepts/AuthLogicForCallInterface__.d.ts.map +1 -0
- package/out/concepts/AuthLogicForCallInterface__.js +597 -0
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -0
- package/out/concepts/AuthLogic__.d.ts +70 -0
- package/out/concepts/AuthLogic__.d.ts.map +1 -0
- package/out/concepts/AuthLogic__.js +211 -0
- package/out/concepts/AuthLogic__.js.map +1 -0
- package/out/concepts/BackendVariable__.d.ts +120 -0
- package/out/concepts/BackendVariable__.d.ts.map +1 -0
- package/out/concepts/BackendVariable__.js +432 -0
- package/out/concepts/BackendVariable__.js.map +1 -0
- package/out/concepts/Backend__.d.ts +128 -0
- package/out/concepts/Backend__.d.ts.map +1 -0
- package/out/concepts/Backend__.js +238 -0
- package/out/concepts/Backend__.js.map +1 -0
- package/out/concepts/BaseSetter__.d.ts +27 -0
- package/out/concepts/BaseSetter__.d.ts.map +1 -0
- package/out/concepts/BaseSetter__.js +55 -0
- package/out/concepts/BaseSetter__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +246 -0
- package/out/concepts/BatchAssignment__.d.ts.map +1 -0
- package/out/concepts/BatchAssignment__.js +831 -0
- package/out/concepts/BatchAssignment__.js.map +1 -0
- package/out/concepts/BinaryExpression__.d.ts +64 -0
- package/out/concepts/BinaryExpression__.d.ts.map +1 -0
- package/out/concepts/BinaryExpression__.js +508 -0
- package/out/concepts/BinaryExpression__.js.map +1 -0
- package/out/concepts/BindAttribute__.d.ts +294 -0
- package/out/concepts/BindAttribute__.d.ts.map +1 -0
- package/out/concepts/BindAttribute__.js +1023 -0
- package/out/concepts/BindAttribute__.js.map +1 -0
- package/out/concepts/BindDirective__.d.ts +157 -0
- package/out/concepts/BindDirective__.d.ts.map +1 -0
- package/out/concepts/BindDirective__.js +492 -0
- package/out/concepts/BindDirective__.js.map +1 -0
- package/out/concepts/BindEvent__.d.ts +247 -0
- package/out/concepts/BindEvent__.d.ts.map +1 -0
- package/out/concepts/BindEvent__.js +833 -0
- package/out/concepts/BindEvent__.js.map +1 -0
- package/out/concepts/BindStyle__.d.ts +128 -0
- package/out/concepts/BindStyle__.d.ts.map +1 -0
- package/out/concepts/BindStyle__.js +412 -0
- package/out/concepts/BindStyle__.js.map +1 -0
- package/out/concepts/Block__.d.ts +90 -0
- package/out/concepts/Block__.d.ts.map +1 -0
- package/out/concepts/Block__.js +204 -0
- package/out/concepts/Block__.js.map +1 -0
- package/out/concepts/BooleanLiteral__.d.ts +46 -0
- package/out/concepts/BooleanLiteral__.d.ts.map +1 -0
- package/out/concepts/BooleanLiteral__.js +119 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -0
- package/out/concepts/BusinessComponent__.d.ts +648 -0
- package/out/concepts/BusinessComponent__.d.ts.map +1 -0
- package/out/concepts/BusinessComponent__.js +1785 -0
- package/out/concepts/BusinessComponent__.js.map +1 -0
- package/out/concepts/BusinessLogic__.d.ts +46 -0
- package/out/concepts/BusinessLogic__.d.ts.map +1 -0
- package/out/concepts/BusinessLogic__.js +485 -0
- package/out/concepts/BusinessLogic__.js.map +1 -0
- package/out/concepts/CallAuthInterface__.d.ts +134 -0
- package/out/concepts/CallAuthInterface__.d.ts.map +1 -0
- package/out/concepts/CallAuthInterface__.js +426 -0
- package/out/concepts/CallAuthInterface__.js.map +1 -0
- package/out/concepts/CallConnector__.d.ts +56 -0
- package/out/concepts/CallConnector__.d.ts.map +1 -0
- package/out/concepts/CallConnector__.js +296 -0
- package/out/concepts/CallConnector__.js.map +1 -0
- package/out/concepts/CallEvent__.d.ts +103 -0
- package/out/concepts/CallEvent__.d.ts.map +1 -0
- package/out/concepts/CallEvent__.js +326 -0
- package/out/concepts/CallEvent__.js.map +1 -0
- package/out/concepts/CallFunction__.d.ts +173 -0
- package/out/concepts/CallFunction__.d.ts.map +1 -0
- package/out/concepts/CallFunction__.js +679 -0
- package/out/concepts/CallFunction__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +145 -0
- package/out/concepts/CallInterface__.d.ts.map +1 -0
- package/out/concepts/CallInterface__.js +882 -0
- package/out/concepts/CallInterface__.js.map +1 -0
- package/out/concepts/CallLogic__.d.ts +247 -0
- package/out/concepts/CallLogic__.d.ts.map +1 -0
- package/out/concepts/CallLogic__.js +1583 -0
- package/out/concepts/CallLogic__.js.map +1 -0
- package/out/concepts/CallQueryComponent__.d.ts +380 -0
- package/out/concepts/CallQueryComponent__.d.ts.map +1 -0
- package/out/concepts/CallQueryComponent__.js +1227 -0
- package/out/concepts/CallQueryComponent__.js.map +1 -0
- package/out/concepts/CapsulesSetter__.d.ts +114 -0
- package/out/concepts/CapsulesSetter__.d.ts.map +1 -0
- package/out/concepts/CapsulesSetter__.js +172 -0
- package/out/concepts/CapsulesSetter__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +42 -0
- package/out/concepts/Comment__.d.ts.map +1 -0
- package/out/concepts/Comment__.js +107 -0
- package/out/concepts/Comment__.js.map +1 -0
- package/out/concepts/CompletionProperty__.d.ts +88 -0
- package/out/concepts/CompletionProperty__.d.ts.map +1 -0
- package/out/concepts/CompletionProperty__.js +175 -0
- package/out/concepts/CompletionProperty__.js.map +1 -0
- package/out/concepts/ConfigGroup__.d.ts +122 -0
- package/out/concepts/ConfigGroup__.d.ts.map +1 -0
- package/out/concepts/ConfigGroup__.js +228 -0
- package/out/concepts/ConfigGroup__.js.map +1 -0
- package/out/concepts/ConfigPropertyValue__.d.ts +42 -0
- package/out/concepts/ConfigPropertyValue__.d.ts.map +1 -0
- package/out/concepts/ConfigPropertyValue__.js +83 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -0
- package/out/concepts/ConfigProperty__.d.ts +148 -0
- package/out/concepts/ConfigProperty__.d.ts.map +1 -0
- package/out/concepts/ConfigProperty__.js +294 -0
- package/out/concepts/ConfigProperty__.js.map +1 -0
- package/out/concepts/Configuration__.d.ts +121 -0
- package/out/concepts/Configuration__.d.ts.map +1 -0
- package/out/concepts/Configuration__.js +202 -0
- package/out/concepts/Configuration__.js.map +1 -0
- package/out/concepts/Connection__.d.ts +165 -0
- package/out/concepts/Connection__.d.ts.map +1 -0
- package/out/concepts/Connection__.js +330 -0
- package/out/concepts/Connection__.js.map +1 -0
- package/out/concepts/ConnectorLogic__.d.ts +34 -0
- package/out/concepts/ConnectorLogic__.d.ts.map +1 -0
- package/out/concepts/ConnectorLogic__.js +69 -0
- package/out/concepts/ConnectorLogic__.js.map +1 -0
- package/out/concepts/ConnectorTriggerLauncher__.d.ts +45 -0
- package/out/concepts/ConnectorTriggerLauncher__.d.ts.map +1 -0
- package/out/concepts/ConnectorTriggerLauncher__.js +98 -0
- package/out/concepts/ConnectorTriggerLauncher__.js.map +1 -0
- package/out/concepts/ConnectorTrigger__.d.ts +94 -0
- package/out/concepts/ConnectorTrigger__.d.ts.map +1 -0
- package/out/concepts/ConnectorTrigger__.js +339 -0
- package/out/concepts/ConnectorTrigger__.js.map +1 -0
- package/out/concepts/Connector__.d.ts +533 -0
- package/out/concepts/Connector__.d.ts.map +1 -0
- package/out/concepts/Connector__.js +670 -0
- package/out/concepts/Connector__.js.map +1 -0
- package/out/concepts/Constant__.d.ts +95 -0
- package/out/concepts/Constant__.d.ts.map +1 -0
- package/out/concepts/Constant__.js +243 -0
- package/out/concepts/Constant__.js.map +1 -0
- package/out/concepts/CountersignPolicyV2__.d.ts +30 -0
- package/out/concepts/CountersignPolicyV2__.d.ts.map +1 -0
- package/out/concepts/CountersignPolicyV2__.js +58 -0
- package/out/concepts/CountersignPolicyV2__.js.map +1 -0
- package/out/concepts/CountersignPolicy__.d.ts +30 -0
- package/out/concepts/CountersignPolicy__.d.ts.map +1 -0
- package/out/concepts/CountersignPolicy__.js +58 -0
- package/out/concepts/CountersignPolicy__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +166 -0
- package/out/concepts/DataSource__.d.ts.map +1 -0
- package/out/concepts/DataSource__.js +516 -0
- package/out/concepts/DataSource__.js.map +1 -0
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +36 -0
- package/out/concepts/DatabaseTypeAnnotation__.d.ts.map +1 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +81 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
- package/out/concepts/DefaultValue__.d.ts +96 -0
- package/out/concepts/DefaultValue__.d.ts.map +1 -0
- package/out/concepts/DefaultValue__.js +212 -0
- package/out/concepts/DefaultValue__.js.map +1 -0
- package/out/concepts/DepartmentManagerV2__.d.ts +30 -0
- package/out/concepts/DepartmentManagerV2__.d.ts.map +1 -0
- package/out/concepts/DepartmentManagerV2__.js +58 -0
- package/out/concepts/DepartmentManagerV2__.js.map +1 -0
- package/out/concepts/DepartmentV2__.d.ts +34 -0
- package/out/concepts/DepartmentV2__.d.ts.map +1 -0
- package/out/concepts/DepartmentV2__.js +65 -0
- package/out/concepts/DepartmentV2__.js.map +1 -0
- package/out/concepts/Destination__.d.ts +151 -0
- package/out/concepts/Destination__.d.ts.map +1 -0
- package/out/concepts/Destination__.js +771 -0
- package/out/concepts/Destination__.js.map +1 -0
- package/out/concepts/DirectManagerV2__.d.ts +26 -0
- package/out/concepts/DirectManagerV2__.d.ts.map +1 -0
- package/out/concepts/DirectManagerV2__.js +55 -0
- package/out/concepts/DirectManagerV2__.js.map +1 -0
- package/out/concepts/End__.d.ts +31 -0
- package/out/concepts/End__.d.ts.map +1 -0
- package/out/concepts/End__.js +150 -0
- package/out/concepts/End__.js.map +1 -0
- package/out/concepts/EntityIndex__.d.ts +94 -0
- package/out/concepts/EntityIndex__.d.ts.map +1 -0
- package/out/concepts/EntityIndex__.js +201 -0
- package/out/concepts/EntityIndex__.js.map +1 -0
- package/out/concepts/EntityProperty__.d.ts +254 -0
- package/out/concepts/EntityProperty__.d.ts.map +1 -0
- package/out/concepts/EntityProperty__.js +715 -0
- package/out/concepts/EntityProperty__.js.map +1 -0
- package/out/concepts/Entity__.d.ts +341 -0
- package/out/concepts/Entity__.d.ts.map +1 -0
- package/out/concepts/Entity__.js +783 -0
- package/out/concepts/Entity__.js.map +1 -0
- package/out/concepts/EnumItem__.d.ts +93 -0
- package/out/concepts/EnumItem__.d.ts.map +1 -0
- package/out/concepts/EnumItem__.js +235 -0
- package/out/concepts/EnumItem__.js.map +1 -0
- package/out/concepts/EnumSelectSetter__.d.ts +114 -0
- package/out/concepts/EnumSelectSetter__.d.ts.map +1 -0
- package/out/concepts/EnumSelectSetter__.js +172 -0
- package/out/concepts/EnumSelectSetter__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +129 -0
- package/out/concepts/Enum__.d.ts.map +1 -0
- package/out/concepts/Enum__.js +342 -0
- package/out/concepts/Enum__.js.map +1 -0
- package/out/concepts/EventDeclaration__.d.ts +43 -0
- package/out/concepts/EventDeclaration__.d.ts.map +1 -0
- package/out/concepts/EventDeclaration__.js +109 -0
- package/out/concepts/EventDeclaration__.js.map +1 -0
- package/out/concepts/Event__.d.ts +156 -0
- package/out/concepts/Event__.d.ts.map +1 -0
- package/out/concepts/Event__.js +291 -0
- package/out/concepts/Event__.js.map +1 -0
- package/out/concepts/ExternalDestination__.d.ts +65 -0
- package/out/concepts/ExternalDestination__.d.ts.map +1 -0
- package/out/concepts/ExternalDestination__.js +285 -0
- package/out/concepts/ExternalDestination__.js.map +1 -0
- package/out/concepts/FieldPermissionV2__.d.ts +40 -0
- package/out/concepts/FieldPermissionV2__.d.ts.map +1 -0
- package/out/concepts/FieldPermissionV2__.js +85 -0
- package/out/concepts/FieldPermissionV2__.js.map +1 -0
- package/out/concepts/FlowConditionItemV2__.d.ts +45 -0
- package/out/concepts/FlowConditionItemV2__.d.ts.map +1 -0
- package/out/concepts/FlowConditionItemV2__.js +107 -0
- package/out/concepts/FlowConditionItemV2__.js.map +1 -0
- package/out/concepts/FlowConditionV2__.d.ts +116 -0
- package/out/concepts/FlowConditionV2__.d.ts.map +1 -0
- package/out/concepts/FlowConditionV2__.js +181 -0
- package/out/concepts/FlowConditionV2__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +128 -0
- package/out/concepts/ForEachStatement__.d.ts.map +1 -0
- package/out/concepts/ForEachStatement__.js +398 -0
- package/out/concepts/ForEachStatement__.js.map +1 -0
- package/out/concepts/FrontendLibrary__.d.ts +213 -0
- package/out/concepts/FrontendLibrary__.d.ts.map +1 -0
- package/out/concepts/FrontendLibrary__.js +303 -0
- package/out/concepts/FrontendLibrary__.js.map +1 -0
- package/out/concepts/FrontendType__.d.ts +312 -0
- package/out/concepts/FrontendType__.d.ts.map +1 -0
- package/out/concepts/FrontendType__.js +550 -0
- package/out/concepts/FrontendType__.js.map +1 -0
- package/out/concepts/FrontendVariable__.d.ts +42 -0
- package/out/concepts/FrontendVariable__.d.ts.map +1 -0
- package/out/concepts/FrontendVariable__.js +81 -0
- package/out/concepts/FrontendVariable__.js.map +1 -0
- package/out/concepts/Frontend__.d.ts +395 -0
- package/out/concepts/Frontend__.d.ts.map +1 -0
- package/out/concepts/Frontend__.js +870 -0
- package/out/concepts/Frontend__.js.map +1 -0
- package/out/concepts/Function__.d.ts +400 -0
- package/out/concepts/Function__.d.ts.map +1 -0
- package/out/concepts/Function__.js +631 -0
- package/out/concepts/Function__.js.map +1 -0
- package/out/concepts/HistoryProcessV2__.d.ts +229 -0
- package/out/concepts/HistoryProcessV2__.d.ts.map +1 -0
- package/out/concepts/HistoryProcessV2__.js +345 -0
- package/out/concepts/HistoryProcessV2__.js.map +1 -0
- package/out/concepts/I18nInfo__.d.ts +48 -0
- package/out/concepts/I18nInfo__.d.ts.map +1 -0
- package/out/concepts/I18nInfo__.js +100 -0
- package/out/concepts/I18nInfo__.js.map +1 -0
- package/out/concepts/IconSetter__.d.ts +30 -0
- package/out/concepts/IconSetter__.d.ts.map +1 -0
- package/out/concepts/IconSetter__.js +58 -0
- package/out/concepts/IconSetter__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +69 -0
- package/out/concepts/Identifier__.d.ts.map +1 -0
- package/out/concepts/Identifier__.js +437 -0
- package/out/concepts/Identifier__.js.map +1 -0
- package/out/concepts/IfStatement__.d.ts +157 -0
- package/out/concepts/IfStatement__.d.ts.map +1 -0
- package/out/concepts/IfStatement__.js +365 -0
- package/out/concepts/IfStatement__.js.map +1 -0
- package/out/concepts/ImageSetter__.d.ts +26 -0
- package/out/concepts/ImageSetter__.d.ts.map +1 -0
- package/out/concepts/ImageSetter__.js +55 -0
- package/out/concepts/ImageSetter__.js.map +1 -0
- package/out/concepts/ImportedInterface__.d.ts +31 -0
- package/out/concepts/ImportedInterface__.d.ts.map +1 -0
- package/out/concepts/ImportedInterface__.js +58 -0
- package/out/concepts/ImportedInterface__.js.map +1 -0
- package/out/concepts/InputSetter__.d.ts +30 -0
- package/out/concepts/InputSetter__.d.ts.map +1 -0
- package/out/concepts/InputSetter__.js +58 -0
- package/out/concepts/InputSetter__.js.map +1 -0
- package/out/concepts/Integration__.d.ts +129 -0
- package/out/concepts/Integration__.d.ts.map +1 -0
- package/out/concepts/Integration__.js +215 -0
- package/out/concepts/Integration__.js.map +1 -0
- package/out/concepts/InterfaceParam__.d.ts +121 -0
- package/out/concepts/InterfaceParam__.d.ts.map +1 -0
- package/out/concepts/InterfaceParam__.js +285 -0
- package/out/concepts/InterfaceParam__.js.map +1 -0
- package/out/concepts/InterfaceTriggerEvent__.d.ts +35 -0
- package/out/concepts/InterfaceTriggerEvent__.d.ts.map +1 -0
- package/out/concepts/InterfaceTriggerEvent__.js +74 -0
- package/out/concepts/InterfaceTriggerEvent__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +406 -0
- package/out/concepts/Interface__.d.ts.map +1 -0
- package/out/concepts/Interface__.js +994 -0
- package/out/concepts/Interface__.js.map +1 -0
- package/out/concepts/JSBlock__.d.ts +40 -0
- package/out/concepts/JSBlock__.d.ts.map +1 -0
- package/out/concepts/JSBlock__.js +110 -0
- package/out/concepts/JSBlock__.js.map +1 -0
- package/out/concepts/JavaLogic__.d.ts +51 -0
- package/out/concepts/JavaLogic__.d.ts.map +1 -0
- package/out/concepts/JavaLogic__.js +116 -0
- package/out/concepts/JavaLogic__.js.map +1 -0
- package/out/concepts/LogicDeclaration__.d.ts +292 -0
- package/out/concepts/LogicDeclaration__.d.ts.map +1 -0
- package/out/concepts/LogicDeclaration__.js +421 -0
- package/out/concepts/LogicDeclaration__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +188 -0
- package/out/concepts/LogicItem__.d.ts.map +1 -0
- package/out/concepts/LogicItem__.js +322 -0
- package/out/concepts/LogicItem__.js.map +1 -0
- package/out/concepts/Logic__.d.ts +657 -0
- package/out/concepts/Logic__.d.ts.map +1 -0
- package/out/concepts/Logic__.js +2280 -0
- package/out/concepts/Logic__.js.map +1 -0
- package/out/concepts/ManagerV2__.d.ts +36 -0
- package/out/concepts/ManagerV2__.d.ts.map +1 -0
- package/out/concepts/ManagerV2__.js +63 -0
- package/out/concepts/ManagerV2__.js.map +1 -0
- package/out/concepts/MatchCase__.d.ts +266 -0
- package/out/concepts/MatchCase__.d.ts.map +1 -0
- package/out/concepts/MatchCase__.js +677 -0
- package/out/concepts/MatchCase__.js.map +1 -0
- package/out/concepts/Match__.d.ts +125 -0
- package/out/concepts/Match__.d.ts.map +1 -0
- package/out/concepts/Match__.js +685 -0
- package/out/concepts/Match__.js.map +1 -0
- package/out/concepts/MemberExpression__.d.ts +66 -0
- package/out/concepts/MemberExpression__.d.ts.map +1 -0
- package/out/concepts/MemberExpression__.js +514 -0
- package/out/concepts/MemberExpression__.js.map +1 -0
- package/out/concepts/MetadataType__.d.ts +222 -0
- package/out/concepts/MetadataType__.d.ts.map +1 -0
- package/out/concepts/MetadataType__.js +422 -0
- package/out/concepts/MetadataType__.js.map +1 -0
- package/out/concepts/MicroApp__.d.ts +54 -0
- package/out/concepts/MicroApp__.d.ts.map +1 -0
- package/out/concepts/MicroApp__.js +80 -0
- package/out/concepts/MicroApp__.js.map +1 -0
- package/out/concepts/Module__.d.ts +1314 -0
- package/out/concepts/Module__.d.ts.map +1 -0
- package/out/concepts/Module__.js +1580 -0
- package/out/concepts/Module__.js.map +1 -0
- package/out/concepts/MsgTriggerEvent__.d.ts +139 -0
- package/out/concepts/MsgTriggerEvent__.d.ts.map +1 -0
- package/out/concepts/MsgTriggerEvent__.js +210 -0
- package/out/concepts/MsgTriggerEvent__.js.map +1 -0
- package/out/concepts/MsgTriggerLauncher__.d.ts +120 -0
- package/out/concepts/MsgTriggerLauncher__.d.ts.map +1 -0
- package/out/concepts/MsgTriggerLauncher__.js +189 -0
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -0
- package/out/concepts/MultiApprovalPolicy__.d.ts +27 -0
- package/out/concepts/MultiApprovalPolicy__.d.ts.map +1 -0
- package/out/concepts/MultiApprovalPolicy__.js +55 -0
- package/out/concepts/MultiApprovalPolicy__.js.map +1 -0
- package/out/concepts/Namespace__.d.ts +1146 -0
- package/out/concepts/Namespace__.d.ts.map +1 -0
- package/out/concepts/Namespace__.js +1256 -0
- package/out/concepts/Namespace__.js.map +1 -0
- package/out/concepts/NewComposite__.d.ts +341 -0
- package/out/concepts/NewComposite__.d.ts.map +1 -0
- package/out/concepts/NewComposite__.js +1225 -0
- package/out/concepts/NewComposite__.js.map +1 -0
- package/out/concepts/NewList__.d.ts +128 -0
- package/out/concepts/NewList__.d.ts.map +1 -0
- package/out/concepts/NewList__.js +408 -0
- package/out/concepts/NewList__.js.map +1 -0
- package/out/concepts/NewMap__.d.ts +219 -0
- package/out/concepts/NewMap__.d.ts.map +1 -0
- package/out/concepts/NewMap__.js +558 -0
- package/out/concepts/NewMap__.js.map +1 -0
- package/out/concepts/New__.d.ts +32 -0
- package/out/concepts/New__.d.ts.map +1 -0
- package/out/concepts/New__.js +80 -0
- package/out/concepts/New__.js.map +1 -0
- package/out/concepts/NullLiteral__.d.ts +37 -0
- package/out/concepts/NullLiteral__.d.ts.map +1 -0
- package/out/concepts/NullLiteral__.js +102 -0
- package/out/concepts/NullLiteral__.js.map +1 -0
- package/out/concepts/NumberInputSetter__.d.ts +46 -0
- package/out/concepts/NumberInputSetter__.d.ts.map +1 -0
- package/out/concepts/NumberInputSetter__.js +70 -0
- package/out/concepts/NumberInputSetter__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +49 -0
- package/out/concepts/NumericLiteral__.d.ts.map +1 -0
- package/out/concepts/NumericLiteral__.js +141 -0
- package/out/concepts/NumericLiteral__.js.map +1 -0
- package/out/concepts/OperatePermissionV2__.d.ts +44 -0
- package/out/concepts/OperatePermissionV2__.d.ts.map +1 -0
- package/out/concepts/OperatePermissionV2__.js +82 -0
- package/out/concepts/OperatePermissionV2__.js.map +1 -0
- package/out/concepts/OqlQueryComponent__.d.ts +63 -0
- package/out/concepts/OqlQueryComponent__.d.ts.map +1 -0
- package/out/concepts/OqlQueryComponent__.js +313 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -0
- package/out/concepts/OrSignPolicyV2__.d.ts +26 -0
- package/out/concepts/OrSignPolicyV2__.d.ts.map +1 -0
- package/out/concepts/OrSignPolicyV2__.js +55 -0
- package/out/concepts/OrSignPolicyV2__.js.map +1 -0
- package/out/concepts/OverriddenLogic__.d.ts +618 -0
- package/out/concepts/OverriddenLogic__.d.ts.map +1 -0
- package/out/concepts/OverriddenLogic__.js +1657 -0
- package/out/concepts/OverriddenLogic__.js.map +1 -0
- package/out/concepts/Paginate__.d.ts +57 -0
- package/out/concepts/Paginate__.d.ts.map +1 -0
- package/out/concepts/Paginate__.js +163 -0
- package/out/concepts/Paginate__.js.map +1 -0
- package/out/concepts/ParamWithGroup__.d.ts +44 -0
- package/out/concepts/ParamWithGroup__.d.ts.map +1 -0
- package/out/concepts/ParamWithGroup__.js +161 -0
- package/out/concepts/ParamWithGroup__.js.map +1 -0
- package/out/concepts/Param__.d.ts +145 -0
- package/out/concepts/Param__.d.ts.map +1 -0
- package/out/concepts/Param__.js +453 -0
- package/out/concepts/Param__.js.map +1 -0
- package/out/concepts/Point__.d.ts +34 -0
- package/out/concepts/Point__.d.ts.map +1 -0
- package/out/concepts/Point__.js +61 -0
- package/out/concepts/Point__.js.map +1 -0
- package/out/concepts/ProcessBindV2__.d.ts +53 -0
- package/out/concepts/ProcessBindV2__.d.ts.map +1 -0
- package/out/concepts/ProcessBindV2__.js +114 -0
- package/out/concepts/ProcessBindV2__.js.map +1 -0
- package/out/concepts/ProcessComponentV2__.d.ts +126 -0
- package/out/concepts/ProcessComponentV2__.d.ts.map +1 -0
- package/out/concepts/ProcessComponentV2__.js +186 -0
- package/out/concepts/ProcessComponentV2__.js.map +1 -0
- package/out/concepts/ProcessComponent__.d.ts +215 -0
- package/out/concepts/ProcessComponent__.d.ts.map +1 -0
- package/out/concepts/ProcessComponent__.js +276 -0
- package/out/concepts/ProcessComponent__.js.map +1 -0
- package/out/concepts/ProcessElementV2__.d.ts +552 -0
- package/out/concepts/ProcessElementV2__.d.ts.map +1 -0
- package/out/concepts/ProcessElementV2__.js +954 -0
- package/out/concepts/ProcessElementV2__.js.map +1 -0
- package/out/concepts/ProcessElement__.d.ts +628 -0
- package/out/concepts/ProcessElement__.d.ts.map +1 -0
- package/out/concepts/ProcessElement__.js +1079 -0
- package/out/concepts/ProcessElement__.js.map +1 -0
- package/out/concepts/ProcessOutcome__.d.ts +36 -0
- package/out/concepts/ProcessOutcome__.d.ts.map +1 -0
- package/out/concepts/ProcessOutcome__.js +97 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -0
- package/out/concepts/ProcessOutcomes__.d.ts +36 -0
- package/out/concepts/ProcessOutcomes__.d.ts.map +1 -0
- package/out/concepts/ProcessOutcomes__.js +104 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -0
- package/out/concepts/ProcessV2__.d.ts +433 -0
- package/out/concepts/ProcessV2__.d.ts.map +1 -0
- package/out/concepts/ProcessV2__.js +732 -0
- package/out/concepts/ProcessV2__.js.map +1 -0
- package/out/concepts/Process__.d.ts +615 -0
- package/out/concepts/Process__.d.ts.map +1 -0
- package/out/concepts/Process__.js +985 -0
- package/out/concepts/Process__.js.map +1 -0
- package/out/concepts/PropDeclaration__.d.ts +109 -0
- package/out/concepts/PropDeclaration__.d.ts.map +1 -0
- package/out/concepts/PropDeclaration__.js +137 -0
- package/out/concepts/PropDeclaration__.js.map +1 -0
- package/out/concepts/PropertySelectSetter__.d.ts +26 -0
- package/out/concepts/PropertySelectSetter__.d.ts.map +1 -0
- package/out/concepts/PropertySelectSetter__.js +55 -0
- package/out/concepts/PropertySelectSetter__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +51 -0
- package/out/concepts/QueryAggregateExpression__.d.ts.map +1 -0
- package/out/concepts/QueryAggregateExpression__.js +126 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/concepts/QueryFieldExpression__.d.ts +67 -0
- package/out/concepts/QueryFieldExpression__.d.ts.map +1 -0
- package/out/concepts/QueryFieldExpression__.js +207 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/concepts/QueryFromExpression__.d.ts +108 -0
- package/out/concepts/QueryFromExpression__.d.ts.map +1 -0
- package/out/concepts/QueryFromExpression__.js +244 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -0
- package/out/concepts/QueryGroupByExpression__.d.ts +48 -0
- package/out/concepts/QueryGroupByExpression__.d.ts.map +1 -0
- package/out/concepts/QueryGroupByExpression__.js +123 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/concepts/QueryJoinExpression__.d.ts +195 -0
- package/out/concepts/QueryJoinExpression__.d.ts.map +1 -0
- package/out/concepts/QueryJoinExpression__.js +357 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/concepts/QueryLimitExpression__.d.ts +48 -0
- package/out/concepts/QueryLimitExpression__.d.ts.map +1 -0
- package/out/concepts/QueryLimitExpression__.js +141 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/concepts/QueryOrderByExpression__.d.ts +59 -0
- package/out/concepts/QueryOrderByExpression__.d.ts.map +1 -0
- package/out/concepts/QueryOrderByExpression__.js +158 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/concepts/QuerySelectExpression__.d.ts +213 -0
- package/out/concepts/QuerySelectExpression__.d.ts.map +1 -0
- package/out/concepts/QuerySelectExpression__.js +346 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/concepts/Rect__.d.ts +42 -0
- package/out/concepts/Rect__.d.ts.map +1 -0
- package/out/concepts/Rect__.js +67 -0
- package/out/concepts/Rect__.js.map +1 -0
- package/out/concepts/Return__.d.ts +122 -0
- package/out/concepts/Return__.d.ts.map +1 -0
- package/out/concepts/Return__.js +359 -0
- package/out/concepts/Return__.js.map +1 -0
- package/out/concepts/Role__.d.ts +60 -0
- package/out/concepts/Role__.d.ts.map +1 -0
- package/out/concepts/Role__.js +188 -0
- package/out/concepts/Role__.js.map +1 -0
- package/out/concepts/SelectMembers__.d.ts +136 -0
- package/out/concepts/SelectMembers__.d.ts.map +1 -0
- package/out/concepts/SelectMembers__.js +259 -0
- package/out/concepts/SelectMembers__.js.map +1 -0
- package/out/concepts/SequentialPolicyV2__.d.ts +26 -0
- package/out/concepts/SequentialPolicyV2__.d.ts.map +1 -0
- package/out/concepts/SequentialPolicyV2__.js +55 -0
- package/out/concepts/SequentialPolicyV2__.js.map +1 -0
- package/out/concepts/SequentialPolicy__.d.ts +26 -0
- package/out/concepts/SequentialPolicy__.d.ts.map +1 -0
- package/out/concepts/SequentialPolicy__.js +55 -0
- package/out/concepts/SequentialPolicy__.js.map +1 -0
- package/out/concepts/SetterOption__.d.ts +50 -0
- package/out/concepts/SetterOption__.d.ts.map +1 -0
- package/out/concepts/SetterOption__.js +73 -0
- package/out/concepts/SetterOption__.js.map +1 -0
- package/out/concepts/SlotDeclaration__.d.ts +215 -0
- package/out/concepts/SlotDeclaration__.d.ts.map +1 -0
- package/out/concepts/SlotDeclaration__.js +285 -0
- package/out/concepts/SlotDeclaration__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +54 -0
- package/out/concepts/Slot__.d.ts.map +1 -0
- package/out/concepts/Slot__.js +95 -0
- package/out/concepts/Slot__.js.map +1 -0
- package/out/concepts/SqlQueryComponent__.d.ts +59 -0
- package/out/concepts/SqlQueryComponent__.d.ts.map +1 -0
- package/out/concepts/SqlQueryComponent__.js +220 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/concepts/Start__.d.ts +31 -0
- package/out/concepts/Start__.d.ts.map +1 -0
- package/out/concepts/Start__.js +75 -0
- package/out/concepts/Start__.js.map +1 -0
- package/out/concepts/StaticString__.d.ts +50 -0
- package/out/concepts/StaticString__.d.ts.map +1 -0
- package/out/concepts/StaticString__.js +114 -0
- package/out/concepts/StaticString__.js.map +1 -0
- package/out/concepts/StringInterpolation__.d.ts +124 -0
- package/out/concepts/StringInterpolation__.d.ts.map +1 -0
- package/out/concepts/StringInterpolation__.js +279 -0
- package/out/concepts/StringInterpolation__.js.map +1 -0
- package/out/concepts/StringLiteral__.d.ts +52 -0
- package/out/concepts/StringLiteral__.d.ts.map +1 -0
- package/out/concepts/StringLiteral__.js +185 -0
- package/out/concepts/StringLiteral__.js.map +1 -0
- package/out/concepts/StructureProperty__.d.ts +134 -0
- package/out/concepts/StructureProperty__.d.ts.map +1 -0
- package/out/concepts/StructureProperty__.js +292 -0
- package/out/concepts/StructureProperty__.js.map +1 -0
- package/out/concepts/Structure__.d.ts +241 -0
- package/out/concepts/Structure__.d.ts.map +1 -0
- package/out/concepts/Structure__.js +485 -0
- package/out/concepts/Structure__.js.map +1 -0
- package/out/concepts/SubLogic__.d.ts +418 -0
- package/out/concepts/SubLogic__.d.ts.map +1 -0
- package/out/concepts/SubLogic__.js +1002 -0
- package/out/concepts/SubLogic__.js.map +1 -0
- package/out/concepts/SwitchCase__.d.ts +93 -0
- package/out/concepts/SwitchCase__.d.ts.map +1 -0
- package/out/concepts/SwitchCase__.js +282 -0
- package/out/concepts/SwitchCase__.js.map +1 -0
- package/out/concepts/SwitchSetter__.d.ts +26 -0
- package/out/concepts/SwitchSetter__.d.ts.map +1 -0
- package/out/concepts/SwitchSetter__.js +55 -0
- package/out/concepts/SwitchSetter__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +92 -0
- package/out/concepts/SwitchStatement__.d.ts.map +1 -0
- package/out/concepts/SwitchStatement__.js +221 -0
- package/out/concepts/SwitchStatement__.js.map +1 -0
- package/out/concepts/ThemeVariable__.d.ts +30 -0
- package/out/concepts/ThemeVariable__.d.ts.map +1 -0
- package/out/concepts/ThemeVariable__.js +58 -0
- package/out/concepts/ThemeVariable__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +44 -0
- package/out/concepts/Theme__.d.ts.map +1 -0
- package/out/concepts/Theme__.js +83 -0
- package/out/concepts/Theme__.js.map +1 -0
- package/out/concepts/Transactional__.d.ts +86 -0
- package/out/concepts/Transactional__.d.ts.map +1 -0
- package/out/concepts/Transactional__.js +150 -0
- package/out/concepts/Transactional__.js.map +1 -0
- package/out/concepts/TriggerEvent__.d.ts +44 -0
- package/out/concepts/TriggerEvent__.d.ts.map +1 -0
- package/out/concepts/TriggerEvent__.js +93 -0
- package/out/concepts/TriggerEvent__.js.map +1 -0
- package/out/concepts/TriggerLauncher__.d.ts +77 -0
- package/out/concepts/TriggerLauncher__.d.ts.map +1 -0
- package/out/concepts/TriggerLauncher__.js +232 -0
- package/out/concepts/TriggerLauncher__.js.map +1 -0
- package/out/concepts/TypeAnnotation__.d.ts +310 -0
- package/out/concepts/TypeAnnotation__.d.ts.map +1 -0
- package/out/concepts/TypeAnnotation__.js +1169 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -0
- package/out/concepts/TypeParam__.d.ts +40 -0
- package/out/concepts/TypeParam__.d.ts.map +1 -0
- package/out/concepts/TypeParam__.js +91 -0
- package/out/concepts/TypeParam__.js.map +1 -0
- package/out/concepts/UnaryExpression__.d.ts +48 -0
- package/out/concepts/UnaryExpression__.d.ts.map +1 -0
- package/out/concepts/UnaryExpression__.js +176 -0
- package/out/concepts/UnaryExpression__.js.map +1 -0
- package/out/concepts/Unparsed__.d.ts +42 -0
- package/out/concepts/Unparsed__.d.ts.map +1 -0
- package/out/concepts/Unparsed__.js +98 -0
- package/out/concepts/Unparsed__.js.map +1 -0
- package/out/concepts/UseComponent__.d.ts +34 -0
- package/out/concepts/UseComponent__.d.ts.map +1 -0
- package/out/concepts/UseComponent__.js +61 -0
- package/out/concepts/UseComponent__.js.map +1 -0
- package/out/concepts/ValidationRule__.d.ts +130 -0
- package/out/concepts/ValidationRule__.d.ts.map +1 -0
- package/out/concepts/ValidationRule__.js +542 -0
- package/out/concepts/ValidationRule__.js.map +1 -0
- package/out/concepts/Variable__.d.ts +140 -0
- package/out/concepts/Variable__.d.ts.map +1 -0
- package/out/concepts/Variable__.js +457 -0
- package/out/concepts/Variable__.js.map +1 -0
- package/out/concepts/ViewBlockWithImage__.d.ts +34 -0
- package/out/concepts/ViewBlockWithImage__.d.ts.map +1 -0
- package/out/concepts/ViewBlockWithImage__.js +61 -0
- package/out/concepts/ViewBlockWithImage__.js.map +1 -0
- package/out/concepts/ViewBlock__.d.ts +38 -0
- package/out/concepts/ViewBlock__.d.ts.map +1 -0
- package/out/concepts/ViewBlock__.js +64 -0
- package/out/concepts/ViewBlock__.js.map +1 -0
- package/out/concepts/ViewComponentDeclaration__.d.ts +727 -0
- package/out/concepts/ViewComponentDeclaration__.d.ts.map +1 -0
- package/out/concepts/ViewComponentDeclaration__.js +833 -0
- package/out/concepts/ViewComponentDeclaration__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +666 -0
- package/out/concepts/ViewElement__.d.ts.map +1 -0
- package/out/concepts/ViewElement__.js +2929 -0
- package/out/concepts/ViewElement__.js.map +1 -0
- package/out/concepts/View__.d.ts +754 -0
- package/out/concepts/View__.d.ts.map +1 -0
- package/out/concepts/View__.js +2907 -0
- package/out/concepts/View__.js.map +1 -0
- package/out/concepts/WhileStatement__.d.ts +96 -0
- package/out/concepts/WhileStatement__.d.ts.map +1 -0
- package/out/concepts/WhileStatement__.js +256 -0
- package/out/concepts/WhileStatement__.js.map +1 -0
- package/out/concepts/basics/index.d.ts +16 -0
- package/out/concepts/basics/index.d.ts.map +1 -0
- package/out/concepts/basics/index.js +54 -0
- package/out/concepts/basics/index.js.map +1 -0
- package/out/concepts/basics/stdlib/index.d.ts +16 -0
- package/out/concepts/basics/stdlib/index.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/index.js +93 -0
- package/out/concepts/basics/stdlib/index.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.auth.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.auth.js +206 -0
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.browser.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.js +200 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.collection.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.collection.js +57 -0
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js +97 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts +8 -0
- package/out/concepts/basics/stdlib/nasl.core.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.core.js +47 -0
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.event.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.event.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.event.js +34 -0
- package/out/concepts/basics/stdlib/nasl.event.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.http.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.http.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.http.js +174 -0
- package/out/concepts/basics/stdlib/nasl.http.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.interface.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.interface.js +49 -0
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.io.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.io.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.io.js +61 -0
- package/out/concepts/basics/stdlib/nasl.io.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.logging.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.logging.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.logging.js +65 -0
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.process.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.process.js +741 -0
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.processV2.d.ts +12 -0
- package/out/concepts/basics/stdlib/nasl.processV2.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.processV2.js +967 -0
- package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +10 -0
- package/out/concepts/basics/stdlib/nasl.ui.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.ui.js +1038 -0
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts +7 -0
- package/out/concepts/basics/stdlib/nasl.util.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.util.js +2501 -0
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +6 -0
- package/out/concepts/basics/stdlib/nasl.validation.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/nasl.validation.js +680 -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.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +47 -0
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/concepts/basics/stdlib/timeZone.d.ts +6 -0
- package/out/concepts/basics/stdlib/timeZone.d.ts.map +1 -0
- package/out/concepts/basics/stdlib/timeZone.js +196 -0
- package/out/concepts/basics/stdlib/timeZone.js.map +1 -0
- package/out/concepts/basics/types/coreTypeList.d.ts +5 -0
- package/out/concepts/basics/types/coreTypeList.d.ts.map +1 -0
- package/out/concepts/basics/types/coreTypeList.js +14 -0
- package/out/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/concepts/basics/types/dataTypes.d.ts +9 -0
- package/out/concepts/basics/types/dataTypes.d.ts.map +1 -0
- package/out/concepts/basics/types/dataTypes.js +18 -0
- package/out/concepts/basics/types/dataTypes.js.map +1 -0
- package/out/concepts/basics/types/index.d.ts +5 -0
- package/out/concepts/basics/types/index.d.ts.map +1 -0
- package/out/concepts/basics/types/index.js +17 -0
- package/out/concepts/basics/types/index.js.map +1 -0
- package/out/concepts/index.d.ts +6 -0
- package/out/concepts/index.d.ts.map +1 -0
- package/out/concepts/index.js +36 -0
- package/out/concepts/index.js.map +1 -0
- package/out/concepts/index__.d.ts +178 -0
- package/out/concepts/index__.d.ts.map +1 -0
- package/out/concepts/index__.js +194 -0
- package/out/concepts/index__.js.map +1 -0
- package/out/concepts/types__.d.ts +2 -0
- package/out/concepts/types__.d.ts.map +1 -0
- package/out/concepts/types__.js +3 -0
- package/out/concepts/types__.js.map +1 -0
- package/out/concepts/utils/asserts.d.ts +8822 -0
- package/out/concepts/utils/asserts.d.ts.map +1 -0
- package/out/concepts/utils/asserts.js +11727 -0
- package/out/concepts/utils/asserts.js.map +1 -0
- package/out/concepts/utils/quick-info.d.ts +21 -0
- package/out/concepts/utils/quick-info.d.ts.map +1 -0
- package/out/concepts/utils/quick-info.js +108 -0
- package/out/concepts/utils/quick-info.js.map +1 -0
- package/out/concepts/utils/types.d.ts +580 -0
- package/out/concepts/utils/types.d.ts.map +1 -0
- package/out/concepts/utils/types.js +3 -0
- package/out/concepts/utils/types.js.map +1 -0
- package/out/decorators/constant.d.ts +12 -0
- package/out/decorators/constant.d.ts.map +1 -0
- package/out/decorators/constant.js +6 -0
- package/out/decorators/constant.js.map +1 -0
- package/out/decorators/index.d.ts +34 -0
- package/out/decorators/index.d.ts.map +1 -0
- package/out/decorators/index.js +123 -0
- package/out/decorators/index.js.map +1 -0
- package/out/decorators/utils.d.ts +22 -0
- package/out/decorators/utils.d.ts.map +1 -0
- package/out/decorators/utils.js +50 -0
- package/out/decorators/utils.js.map +1 -0
- package/out/index.d.ts +13 -0
- package/out/index.d.ts.map +1 -0
- package/out/index.js +49 -0
- package/out/index.js.map +1 -0
- package/out/service/actionable.d.ts +3 -0
- package/out/service/actionable.d.ts.map +1 -0
- package/out/service/actionable.js +9 -0
- package/out/service/actionable.js.map +1 -0
- package/out/service/engine.d.ts +7 -0
- package/out/service/engine.d.ts.map +1 -0
- package/out/service/engine.js +120 -0
- package/out/service/engine.js.map +1 -0
- package/out/service/entity2LogicNamespace.d.ts +11 -0
- package/out/service/entity2LogicNamespace.d.ts.map +1 -0
- package/out/service/entity2LogicNamespace.js +379 -0
- package/out/service/entity2LogicNamespace.js.map +1 -0
- package/out/service/formatTsUtils.d.ts +37 -0
- package/out/service/formatTsUtils.d.ts.map +1 -0
- package/out/service/formatTsUtils.js +876 -0
- package/out/service/formatTsUtils.js.map +1 -0
- package/out/service/getConnector.d.ts +13 -0
- package/out/service/getConnector.d.ts.map +1 -0
- package/out/service/getConnector.js +117 -0
- package/out/service/getConnector.js.map +1 -0
- package/out/service/getExtensionModules.d.ts +4 -0
- package/out/service/getExtensionModules.d.ts.map +1 -0
- package/out/service/getExtensionModules.js +34 -0
- package/out/service/getExtensionModules.js.map +1 -0
- package/out/service/getFunctions.d.ts +4 -0
- package/out/service/getFunctions.d.ts.map +1 -0
- package/out/service/getFunctions.js +20 -0
- package/out/service/getFunctions.js.map +1 -0
- package/out/service/getInterfaces.d.ts +3 -0
- package/out/service/getInterfaces.d.ts.map +1 -0
- package/out/service/getInterfaces.js +48 -0
- package/out/service/getInterfaces.js.map +1 -0
- package/out/service/getLogging.d.ts +2 -0
- package/out/service/getLogging.d.ts.map +1 -0
- package/out/service/getLogging.js +9 -0
- package/out/service/getLogging.js.map +1 -0
- package/out/service/getLogics.d.ts +6 -0
- package/out/service/getLogics.d.ts.map +1 -0
- package/out/service/getLogics.js +509 -0
- package/out/service/getLogics.js.map +1 -0
- package/out/service/getMemberIdentifier.d.ts +18 -0
- package/out/service/getMemberIdentifier.d.ts.map +1 -0
- package/out/service/getMemberIdentifier.js +489 -0
- package/out/service/getMemberIdentifier.js.map +1 -0
- package/out/service/getProcessComponents.d.ts +3 -0
- package/out/service/getProcessComponents.d.ts.map +1 -0
- package/out/service/getProcessComponents.js +13 -0
- package/out/service/getProcessComponents.js.map +1 -0
- package/out/service/getProcesses.d.ts +34 -0
- package/out/service/getProcesses.d.ts.map +1 -0
- package/out/service/getProcesses.js +644 -0
- package/out/service/getProcesses.js.map +1 -0
- package/out/service/getProcessesV2.d.ts +91 -0
- package/out/service/getProcessesV2.d.ts.map +1 -0
- package/out/service/getProcessesV2.js +687 -0
- package/out/service/getProcessesV2.js.map +1 -0
- package/out/service/getValidates.d.ts +4 -0
- package/out/service/getValidates.d.ts.map +1 -0
- package/out/service/getValidates.js +14 -0
- package/out/service/getValidates.js.map +1 -0
- package/out/service/index.d.ts +19 -0
- package/out/service/index.d.ts.map +1 -0
- package/out/service/index.js +48 -0
- package/out/service/index.js.map +1 -0
- package/out/service/modules.d.ts +9 -0
- package/out/service/modules.d.ts.map +1 -0
- package/out/service/modules.js +88 -0
- package/out/service/modules.js.map +1 -0
- package/out/service/process2LogicNamespace.d.ts +27 -0
- package/out/service/process2LogicNamespace.d.ts.map +1 -0
- package/out/service/process2LogicNamespace.js +109 -0
- package/out/service/process2LogicNamespace.js.map +1 -0
- package/out/service/transform.d.ts +9 -0
- package/out/service/transform.d.ts.map +1 -0
- package/out/service/transform.js +36 -0
- package/out/service/transform.js.map +1 -0
- package/out/store/event.d.ts +14 -0
- package/out/store/event.d.ts.map +1 -0
- package/out/store/event.js +19 -0
- package/out/store/event.js.map +1 -0
- package/out/store/index.d.ts +8 -0
- package/out/store/index.d.ts.map +1 -0
- package/out/store/index.js +25 -0
- package/out/store/index.js.map +1 -0
- package/out/store/lib.d.ts +16 -0
- package/out/store/lib.d.ts.map +1 -0
- package/out/store/lib.js +21 -0
- package/out/store/lib.js.map +1 -0
- package/out/store/store.d.ts +16 -0
- package/out/store/store.d.ts.map +1 -0
- package/out/store/store.js +18 -0
- package/out/store/store.js.map +1 -0
- package/out/utils/bak-translator.d.ts +2 -0
- package/out/utils/bak-translator.d.ts.map +1 -0
- package/out/utils/bak-translator.js +334 -0
- package/out/utils/bak-translator.js.map +1 -0
- package/out/utils/constant.d.ts +4 -0
- package/out/utils/constant.d.ts.map +1 -0
- package/out/utils/constant.js +34 -0
- package/out/utils/constant.js.map +1 -0
- package/out/utils/index.d.ts +6 -0
- package/out/utils/index.d.ts.map +1 -0
- package/out/utils/index.js +22 -0
- package/out/utils/index.js.map +1 -0
- package/out/utils/node.d.ts +14 -0
- package/out/utils/node.d.ts.map +1 -0
- package/out/utils/node.js +85 -0
- package/out/utils/node.js.map +1 -0
- package/out/utils/utils.d.ts +13 -0
- package/out/utils/utils.d.ts.map +1 -0
- package/out/utils/utils.js +77 -0
- package/out/utils/utils.js.map +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1,876 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatConfigProperties = exports.formatFrontEndVariables = exports.formatBackendVariables = exports.formatVariableData = exports.nextFindTypeChild = exports.isNoChildType = exports.getPlatformType = exports.displayString2TypeAnnotation = exports.type2TypeAnnotation = void 0;
|
|
4
|
+
const concepts_1 = require("../concepts");
|
|
5
|
+
const decorators_1 = require("../decorators");
|
|
6
|
+
const engine_1 = require("./engine");
|
|
7
|
+
const utils_1 = require("../utils");
|
|
8
|
+
/**
|
|
9
|
+
* 把ts返回的详细信息截取成一个类型字符串
|
|
10
|
+
* @param displayParts ts返回的key value
|
|
11
|
+
* // 0: {text: 'let', kind: 'keyword'}
|
|
12
|
+
// 1: {text: ' ', kind: 'space'}
|
|
13
|
+
// 2: {text: 'bindRoles', kind: 'text'}
|
|
14
|
+
// 3: {text: ':', kind: 'punctuation'}
|
|
15
|
+
// 4: {text: ' ', kind: 'space'}
|
|
16
|
+
// 5: {text: 'roles', kind: 'moduleName'}
|
|
17
|
+
// 6: {text: '.', kind: 'punctuation'}
|
|
18
|
+
// 7: {text: 'DEV_AdminRole', kind: 'enumName'}
|
|
19
|
+
* @returns type roles.DEV_AdminRole
|
|
20
|
+
*/
|
|
21
|
+
function formatTs2TypeString(displayParts) {
|
|
22
|
+
let str = '';
|
|
23
|
+
displayParts?.forEach((item) => {
|
|
24
|
+
str += item.text;
|
|
25
|
+
});
|
|
26
|
+
return str;
|
|
27
|
+
}
|
|
28
|
+
function isValidName(str) {
|
|
29
|
+
const regex = /^[a-zA-Z][a-zA-Z0-9_]*$/;
|
|
30
|
+
return regex.test(str);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 解析 Completion 和 QuickInfo 的 displayString
|
|
34
|
+
* 生成 TypeAnnotation
|
|
35
|
+
* @param displayString
|
|
36
|
+
*/
|
|
37
|
+
function* type2TypeAnnotation(oldType) {
|
|
38
|
+
if (!oldType)
|
|
39
|
+
return null;
|
|
40
|
+
let type = oldType;
|
|
41
|
+
if (Array.isArray(oldType)) {
|
|
42
|
+
type = oldType[0];
|
|
43
|
+
}
|
|
44
|
+
let typeAnnotation;
|
|
45
|
+
try {
|
|
46
|
+
const { typeName, typeNamespace, typeArguments, typeKind, properties } = type;
|
|
47
|
+
if (typeKind === 'anonymousStructure') {
|
|
48
|
+
// 自定义类型
|
|
49
|
+
const newProperties = [];
|
|
50
|
+
if (Array.isArray(properties) && properties.length) {
|
|
51
|
+
for (const item of properties) {
|
|
52
|
+
if (!item?.name?.startsWith('__')) {
|
|
53
|
+
// 如果没有获取到类型,就默认塞一个string
|
|
54
|
+
const itemType = (yield* type2TypeAnnotation(item.typeInfo)) || concepts_1.TypeAnnotation.createPrimitive('String');
|
|
55
|
+
const structureProperty = concepts_1.StructureProperty.from({ name: item.name, typeAnnotation: itemType }, typeAnnotation, 'properties');
|
|
56
|
+
newProperties.push(structureProperty);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
typeAnnotation = concepts_1.TypeAnnotation.createTypeAnonymousStructure(newProperties);
|
|
61
|
+
}
|
|
62
|
+
else if (!typeName || typeName === 'Promise' || typeName === 'nasl' || typeName === '___IDENTIFIER__') {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
else if (typeName === 'String' || typeName === 'Boolean') {
|
|
66
|
+
typeAnnotation = concepts_1.TypeAnnotation.createPrimitive(typeName);
|
|
67
|
+
}
|
|
68
|
+
else if (typeName === 'Union') {
|
|
69
|
+
typeAnnotation = concepts_1.TypeAnnotation.createPrimitive('Union');
|
|
70
|
+
typeAnnotation.typeArguments = [];
|
|
71
|
+
for (const item of typeArguments) {
|
|
72
|
+
const typeItem = yield* type2TypeAnnotation(item);
|
|
73
|
+
if (typeItem) {
|
|
74
|
+
typeAnnotation.typeArgumentsPush(typeItem);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else if (typeNamespace && typeNamespace.startsWith('nasl.core')) {
|
|
79
|
+
typeAnnotation = concepts_1.TypeAnnotation.createPrimitive(typeName);
|
|
80
|
+
}
|
|
81
|
+
else if (typeNamespace && typeArguments?.length) {
|
|
82
|
+
// 泛型类型
|
|
83
|
+
typeAnnotation = concepts_1.TypeAnnotation.createGeneric(typeName, {
|
|
84
|
+
typeNamespace,
|
|
85
|
+
});
|
|
86
|
+
// 如果有泛型处理泛型
|
|
87
|
+
typeAnnotation.typeArguments = [];
|
|
88
|
+
for (const item of typeArguments) {
|
|
89
|
+
const typeItem = yield* type2TypeAnnotation(item);
|
|
90
|
+
if (typeItem) {
|
|
91
|
+
typeAnnotation.typeArgumentsPush(typeItem);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
// 其余的引用类型
|
|
97
|
+
typeAnnotation = concepts_1.TypeAnnotation.createReference(typeName, {
|
|
98
|
+
typeNamespace,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
catch (err) {
|
|
103
|
+
console.log(err, type);
|
|
104
|
+
}
|
|
105
|
+
yield;
|
|
106
|
+
return typeAnnotation;
|
|
107
|
+
}
|
|
108
|
+
exports.type2TypeAnnotation = type2TypeAnnotation;
|
|
109
|
+
/**
|
|
110
|
+
* 解析 Completion 和 QuickInfo 的 displayString
|
|
111
|
+
* 生成 TypeAnnotation
|
|
112
|
+
* @param displayString
|
|
113
|
+
* @returns TypeAnnotation
|
|
114
|
+
*/
|
|
115
|
+
function displayString2TypeAnnotation(typeStr, parentPrefix) {
|
|
116
|
+
let type = '';
|
|
117
|
+
if (typeStr?.includes(': ')) {
|
|
118
|
+
const lastIndexOf = typeStr.lastIndexOf(': ');
|
|
119
|
+
type = typeStr.substring(lastIndexOf + 2, typeStr.length);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
type = typeStr;
|
|
123
|
+
}
|
|
124
|
+
if (!type)
|
|
125
|
+
return;
|
|
126
|
+
type = type.replaceAll(' ', '');
|
|
127
|
+
if (type === 'Promise<void>')
|
|
128
|
+
return null;
|
|
129
|
+
// 把后面结尾里带()的比如
|
|
130
|
+
// 'function nasl.core.add(left: nasl.core.Long, right: nasl.core.Long): nasl.core.Long (+12 overloads)'
|
|
131
|
+
if (type.includes('(') && type.includes(')')) {
|
|
132
|
+
type = type.replace(/\([^)]*\)/g, '');
|
|
133
|
+
}
|
|
134
|
+
let typeAnnotation;
|
|
135
|
+
try {
|
|
136
|
+
if (type.includes('<') && type.includes('>')) {
|
|
137
|
+
// 泛型的处理
|
|
138
|
+
typeAnnotation = createGenericTypeAnnotation(type, parentPrefix);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
typeAnnotation = createType2Annotation(type, parentPrefix);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
catch (err) {
|
|
145
|
+
console.log(err);
|
|
146
|
+
}
|
|
147
|
+
return typeAnnotation;
|
|
148
|
+
}
|
|
149
|
+
exports.displayString2TypeAnnotation = displayString2TypeAnnotation;
|
|
150
|
+
function createGenericTypeAnnotation(type, parentPrefix) {
|
|
151
|
+
// 取出匹配的内容
|
|
152
|
+
const childType = type.substring(0, type.indexOf('<'));
|
|
153
|
+
const typeAnnotation = createType2Annotation(childType);
|
|
154
|
+
// 如果还有匹配到的多层泛型;
|
|
155
|
+
// 取出匹配到的内容
|
|
156
|
+
const types = /<([^()]+)>/g.exec(type);
|
|
157
|
+
if (types === null)
|
|
158
|
+
return types;
|
|
159
|
+
const newtext = types[1];
|
|
160
|
+
// 把匹配的值,的内容在,检索一遍,看是不是泛型套泛型
|
|
161
|
+
const newTypes = /<([^()]+)>/g.exec(newtext);
|
|
162
|
+
// 如果是的话就去递归
|
|
163
|
+
if (newTypes) {
|
|
164
|
+
const argTypeAnnotation = createGenericTypeAnnotation(newtext, parentPrefix);
|
|
165
|
+
typeAnnotation.typeArguments = [argTypeAnnotation];
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
const argTypeAnnotation = createType2Annotation(newtext, parentPrefix);
|
|
169
|
+
// 如果不是就创造内部的真正类型
|
|
170
|
+
if (newtext.includes(',')) {
|
|
171
|
+
typeAnnotation.typeArguments = newtext.split(',').map((item) => createType2Annotation(item));
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
typeAnnotation.typeArguments = [argTypeAnnotation];
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return typeAnnotation;
|
|
178
|
+
}
|
|
179
|
+
function createType2Annotation(type, parentPrefix) {
|
|
180
|
+
let typeAnnotation;
|
|
181
|
+
// 没有泛型类型的
|
|
182
|
+
const types = type.split('.');
|
|
183
|
+
// 长度等于1就说明是
|
|
184
|
+
if (types.length === 1) {
|
|
185
|
+
typeAnnotation = concepts_1.TypeAnnotation.createPrimitive(types[0]);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
const typeName = types.pop();
|
|
189
|
+
const typeNamespace = types.join('.');
|
|
190
|
+
if (type.startsWith('nasl.core')) {
|
|
191
|
+
typeAnnotation = concepts_1.TypeAnnotation.createPrimitive(typeName);
|
|
192
|
+
}
|
|
193
|
+
else if (type.startsWith('nasl.ui')) {
|
|
194
|
+
typeAnnotation = concepts_1.TypeAnnotation.createReference(typeName, {
|
|
195
|
+
typeNamespace,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
else if (type.startsWith('nasl.process')) {
|
|
199
|
+
// nasl的引用类型
|
|
200
|
+
typeAnnotation = concepts_1.TypeAnnotation.createReference(typeName, {
|
|
201
|
+
typeNamespace,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
else if (type.startsWith('nasl.collection')) {
|
|
205
|
+
// nasl的泛型类型
|
|
206
|
+
typeAnnotation = concepts_1.TypeAnnotation.createGeneric(typeName, {
|
|
207
|
+
typeNamespace,
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
else if (type.startsWith('dataSources.') || type.startsWith('structures.') || type.startsWith('enums.')) {
|
|
211
|
+
typeAnnotation = concepts_1.TypeAnnotation.createReference(typeName, {
|
|
212
|
+
typeNamespace: (parentPrefix || 'app.') + typeNamespace,
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
typeAnnotation = concepts_1.TypeAnnotation.createReference(typeName, {
|
|
217
|
+
typeNamespace,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return typeAnnotation;
|
|
222
|
+
}
|
|
223
|
+
function getPlatformType(type, node) {
|
|
224
|
+
let tsType = '';
|
|
225
|
+
if (type?.includes(': ')) {
|
|
226
|
+
const lastIndexOf = type.lastIndexOf(': ');
|
|
227
|
+
tsType = type.substring(lastIndexOf + 2, type.length);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
tsType = type;
|
|
231
|
+
}
|
|
232
|
+
tsType = tsType.replaceAll(' ', '');
|
|
233
|
+
const namespacePrefix = ['app', 'extensions', 'apis', 'components', 'nasl', 'connector'];
|
|
234
|
+
if (tsType === 'String') {
|
|
235
|
+
return 'nasl.core.String';
|
|
236
|
+
}
|
|
237
|
+
else if (tsType === 'Boolean') {
|
|
238
|
+
return 'nasl.core.Boolean';
|
|
239
|
+
}
|
|
240
|
+
const strTypes = tsType.split('.');
|
|
241
|
+
if (strTypes.length) {
|
|
242
|
+
const first = strTypes[0];
|
|
243
|
+
// 如果不是这几个前缀就加一个namespace
|
|
244
|
+
if (!namespacePrefix.includes(first)) {
|
|
245
|
+
if (node && node?.connector) {
|
|
246
|
+
return `${node?.connector?.namespacePrefix || ''}${tsType}`;
|
|
247
|
+
}
|
|
248
|
+
;
|
|
249
|
+
return 'app.' + tsType;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return tsType;
|
|
253
|
+
}
|
|
254
|
+
exports.getPlatformType = getPlatformType;
|
|
255
|
+
function isNoChildType(type) {
|
|
256
|
+
return (type?.startsWith('nasl.core') && !['String', 'Text', 'Email'].includes(type.split('.')[2])) || type?.startsWith('app.enums');
|
|
257
|
+
}
|
|
258
|
+
exports.isNoChildType = isNoChildType;
|
|
259
|
+
function findNode(typeKey, node) {
|
|
260
|
+
let newType;
|
|
261
|
+
if (typeKey?.startsWith('nasl.') && typeKey.includes('<')) {
|
|
262
|
+
const findGenericsIndex = typeKey.indexOf('<');
|
|
263
|
+
typeKey = typeKey.substring(0, findGenericsIndex);
|
|
264
|
+
const typeIndex = typeKey.lastIndexOf('.');
|
|
265
|
+
newType = (0, engine_1.getNaslNodeByNodeCallee)(typeKey.substring(0, typeIndex), typeKey.substring(typeIndex + 1, typeKey.length));
|
|
266
|
+
}
|
|
267
|
+
else if (typeKey?.startsWith('nasl.')) {
|
|
268
|
+
const typeIndex = typeKey.lastIndexOf('.');
|
|
269
|
+
newType = (0, engine_1.getNaslNodeByNodeCallee)(typeKey.substring(0, typeIndex), typeKey.substring(typeIndex + 1, typeKey.length));
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
newType = node?.app?.findNodeByCompleteName(typeKey);
|
|
273
|
+
}
|
|
274
|
+
return newType;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* 获取下一级的节点进行递归
|
|
278
|
+
* @param typeKey 当前节点的类型,主要为了取出内部的 T中的实际类型
|
|
279
|
+
* @param item 当前节点的内容
|
|
280
|
+
* @param node 获取变量框的位置
|
|
281
|
+
*/
|
|
282
|
+
function nextFindTypeChild(typeKey, item, node) {
|
|
283
|
+
const newType = findNode(typeKey, node);
|
|
284
|
+
if (newType?.properties && newType.properties.length) {
|
|
285
|
+
// 处理泛型的内容要取到值
|
|
286
|
+
const StructureJson = newType.toJSON();
|
|
287
|
+
const newStructure = new concepts_1.Structure(StructureJson);
|
|
288
|
+
newStructure.properties.forEach((item) => {
|
|
289
|
+
const itemType = item?.typeAnnotation?.typeKey;
|
|
290
|
+
if (itemType === 'T' && /<([^()]+)>/g.exec(typeKey)) {
|
|
291
|
+
const newTypes = /<([^()]+)>/g.exec(typeKey);
|
|
292
|
+
// 找到当前原来的类型
|
|
293
|
+
const contentType = getPlatformType(newTypes[1]);
|
|
294
|
+
const typeNamespace = contentType.substring(0, contentType.lastIndexOf('.'));
|
|
295
|
+
const typeName = contentType.substring(contentType.lastIndexOf('.') + 1, contentType.length);
|
|
296
|
+
item.typeAnnotation = new concepts_1.TypeAnnotation({
|
|
297
|
+
typeKind: 'reference',
|
|
298
|
+
typeNamespace,
|
|
299
|
+
typeName,
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
item.children = formatVariableData(newStructure.properties, node, item);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
exports.nextFindTypeChild = nextFindTypeChild;
|
|
307
|
+
/**
|
|
308
|
+
* 获取scope下一级的展示
|
|
309
|
+
* @param type 返回的字符串如下展示
|
|
310
|
+
* `nasl.ui.Current<{
|
|
311
|
+
__name: "AStructure_dc8bcbaf";
|
|
312
|
+
entity1: dataSources.defaultDS.entities.Entity1;
|
|
313
|
+
lCAPRolePerMapping: dataSources.defaultDS.entities.LCAPRolePerMapping;
|
|
314
|
+
}>`
|
|
315
|
+
*/
|
|
316
|
+
function getAStructureScopeType(type, parent, node) {
|
|
317
|
+
let newType = type
|
|
318
|
+
.replaceAll(' ', '')
|
|
319
|
+
.replaceAll('\n', '')
|
|
320
|
+
.replace(/__name:"AStructure_\w{8}";/g, '');
|
|
321
|
+
const parentItem = parent;
|
|
322
|
+
// 如果没有父节点就是Identifier
|
|
323
|
+
// value需要拼接生成
|
|
324
|
+
const identifier = new concepts_1.Identifier({ name: parentItem.text });
|
|
325
|
+
parentItem.expression = identifier;
|
|
326
|
+
parentItem.value = parentItem.text;
|
|
327
|
+
parentItem.name = parentItem.text;
|
|
328
|
+
// 处理泛型的内容要取到值
|
|
329
|
+
const newNode = findNode(newType, node);
|
|
330
|
+
const StructureJson = newNode.toJSON();
|
|
331
|
+
const newStructure = new concepts_1.Structure(StructureJson);
|
|
332
|
+
const children = newStructure.properties;
|
|
333
|
+
if (children && children.length) {
|
|
334
|
+
const newChildren = children.map((structureProperty) => {
|
|
335
|
+
const structureItem = structureProperty;
|
|
336
|
+
// 如果没有父节点就是Identifier
|
|
337
|
+
structureItem.value = `${parentItem.value}.${structureItem.name}`;
|
|
338
|
+
const memberExpression = new concepts_1.MemberExpression({
|
|
339
|
+
object: parentItem.expression,
|
|
340
|
+
property: new concepts_1.Identifier({ name: structureItem.name }),
|
|
341
|
+
});
|
|
342
|
+
structureItem.expression = memberExpression;
|
|
343
|
+
const completionProperty = new concepts_1.CompletionProperty(structureItem);
|
|
344
|
+
completionProperty.icon = 'refProperty';
|
|
345
|
+
if (structureItem.name === 'item') {
|
|
346
|
+
const context = /\{([^()]+)\}/.exec(newType);
|
|
347
|
+
newType = context[1];
|
|
348
|
+
let res = [];
|
|
349
|
+
newType.split(';').forEach((item) => {
|
|
350
|
+
if (item) {
|
|
351
|
+
const itemArr = item.split(':');
|
|
352
|
+
const name = itemArr[0];
|
|
353
|
+
let typeKey = itemArr[1];
|
|
354
|
+
if (typeKey && typeKey.startsWith('dataSources')) {
|
|
355
|
+
typeKey = 'app.' + typeKey;
|
|
356
|
+
}
|
|
357
|
+
// 如果ls传过来的名字是不合法的就隐藏
|
|
358
|
+
if (!isValidName(name)) {
|
|
359
|
+
console.warn(item, '获取变量不展示');
|
|
360
|
+
return null;
|
|
361
|
+
}
|
|
362
|
+
res.push({
|
|
363
|
+
name,
|
|
364
|
+
typeKey,
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
res = res.map((item) => {
|
|
369
|
+
const newItem = item;
|
|
370
|
+
// 如果没有父节点就是Identifier
|
|
371
|
+
newItem.value = `${structureItem.value}.${newItem.name}`;
|
|
372
|
+
const memberExpression = new concepts_1.MemberExpression({
|
|
373
|
+
object: structureItem.expression,
|
|
374
|
+
property: new concepts_1.Identifier({ name: newItem.name }),
|
|
375
|
+
});
|
|
376
|
+
newItem.expression = memberExpression;
|
|
377
|
+
// 如果有类型而且类型不是没有子集的类型,就把他当前的类型拿到
|
|
378
|
+
if (item.typeKey && !isNoChildType(item.typeKey)) {
|
|
379
|
+
newItem.children = nextObjectTypeChild(item.typeKey, newItem, node);
|
|
380
|
+
}
|
|
381
|
+
newItem.typeAnnotation = displayString2TypeAnnotation(newItem.typeKey);
|
|
382
|
+
const completionProperty = new concepts_1.CompletionProperty(newItem);
|
|
383
|
+
completionProperty.icon = 'refProperty';
|
|
384
|
+
return completionProperty;
|
|
385
|
+
});
|
|
386
|
+
completionProperty.children = res;
|
|
387
|
+
return completionProperty;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
return completionProperty;
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
parentItem.children = newChildren;
|
|
394
|
+
}
|
|
395
|
+
const completionProperty = new concepts_1.CompletionProperty(parentItem);
|
|
396
|
+
// 变量 param return 在这里添加图标
|
|
397
|
+
completionProperty.icon = getNodeiconFromLogic(completionProperty, node);
|
|
398
|
+
return completionProperty;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* 获取对象类型的下一级展示
|
|
402
|
+
* @param type 返回的字符串如下展示
|
|
403
|
+
* `{
|
|
404
|
+
__name: "AStructure_bf19c4d5";
|
|
405
|
+
list: nasl.collection.List<{
|
|
406
|
+
__name: "AStructure_dc8bcbaf";
|
|
407
|
+
entity1: app.dataSources.defaultDS.entities.Entity1;
|
|
408
|
+
lCAPRolePerMapping: app.dataSources.defaultDS.entities.LCAPRolePerMapping;
|
|
409
|
+
}>;
|
|
410
|
+
total: nasl.core.Long;
|
|
411
|
+
}`
|
|
412
|
+
*/
|
|
413
|
+
function getAStructureObjectStringType(type, parent, node) {
|
|
414
|
+
let newType = type
|
|
415
|
+
.replaceAll(' ', '')
|
|
416
|
+
.replaceAll('\n', '')
|
|
417
|
+
.replace(/__name:"AStructure_\w{8}";/g, '');
|
|
418
|
+
newType = newType.substring(1, newType.length - 1);
|
|
419
|
+
if (/\{([^()]+)\}/.exec(newType)) {
|
|
420
|
+
newType = newType.replace(/\{([^()]+)\}/, '');
|
|
421
|
+
}
|
|
422
|
+
let res = [];
|
|
423
|
+
newType.split(';').forEach((item) => {
|
|
424
|
+
if (item) {
|
|
425
|
+
const itemArr = item.split(':');
|
|
426
|
+
const name = itemArr[0];
|
|
427
|
+
const typeKey = itemArr[1];
|
|
428
|
+
res.push({
|
|
429
|
+
name,
|
|
430
|
+
typeKey,
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
const parentItem = parent;
|
|
435
|
+
// 如果没有父节点就是Identifier
|
|
436
|
+
// value需要拼接生成
|
|
437
|
+
const identifier = new concepts_1.Identifier({ name: parentItem.text });
|
|
438
|
+
parentItem.expression = identifier;
|
|
439
|
+
parentItem.value = parentItem.text;
|
|
440
|
+
parentItem.name = parentItem.text;
|
|
441
|
+
res = res.map((item) => {
|
|
442
|
+
const newItem = item;
|
|
443
|
+
// 如果没有父节点就是Identifier
|
|
444
|
+
newItem.value = `${parentItem.value}.${newItem.name}`;
|
|
445
|
+
const memberExpression = new concepts_1.MemberExpression({
|
|
446
|
+
object: parentItem.expression,
|
|
447
|
+
property: new concepts_1.Identifier({ name: newItem.name }),
|
|
448
|
+
});
|
|
449
|
+
newItem.expression = memberExpression;
|
|
450
|
+
// 如果有类型而且类型不是没有子集的类型,就把他当前的类型拿到
|
|
451
|
+
if (item.typeKey && !isNoChildType(item.typeKey)) {
|
|
452
|
+
newItem.children = nextObjectTypeChild(getPlatformType(item.typeKey), newItem, node);
|
|
453
|
+
}
|
|
454
|
+
newItem.typeAnnotation = displayString2TypeAnnotation(newItem.typeKey);
|
|
455
|
+
const completionProperty = new concepts_1.CompletionProperty(newItem);
|
|
456
|
+
completionProperty.icon = 'refProperty';
|
|
457
|
+
return completionProperty;
|
|
458
|
+
});
|
|
459
|
+
parentItem.children = res;
|
|
460
|
+
const completionProperty = new concepts_1.CompletionProperty(parentItem);
|
|
461
|
+
// 变量 param return 在这里添加图标
|
|
462
|
+
completionProperty.icon = getNodeiconFromLogic(completionProperty, node);
|
|
463
|
+
return completionProperty;
|
|
464
|
+
}
|
|
465
|
+
function nextObjectTypeChild(typeKey, item, node) {
|
|
466
|
+
const newType = findNode(typeKey, node);
|
|
467
|
+
if (newType?.properties && newType.properties.length) {
|
|
468
|
+
// 处理泛型的内容要取到值
|
|
469
|
+
const StructureJson = newType.toJSON();
|
|
470
|
+
const newStructure = new concepts_1.Structure(StructureJson);
|
|
471
|
+
newStructure.properties.forEach((item) => {
|
|
472
|
+
const itemType = item?.typeAnnotation?.typeKey;
|
|
473
|
+
if (itemType === 'T' && /<([^()]+)>/g.exec(typeKey)) {
|
|
474
|
+
const newTypes = /<([^()]+)>/g.exec(typeKey);
|
|
475
|
+
// 找到当前原来的类型
|
|
476
|
+
const contentType = getPlatformType(newTypes[1]);
|
|
477
|
+
const typeNamespace = contentType.substring(0, contentType.lastIndexOf('.'));
|
|
478
|
+
const typeName = contentType.substring(contentType.lastIndexOf('.') + 1, contentType.length);
|
|
479
|
+
item.typeAnnotation = new concepts_1.TypeAnnotation({
|
|
480
|
+
typeKind: 'reference',
|
|
481
|
+
typeNamespace,
|
|
482
|
+
typeName,
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
return formatVariableData(newStructure.properties, node, item);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function getNodeTypeVariableData(nodeType, item, node) {
|
|
490
|
+
item.value = item.text;
|
|
491
|
+
item.name = item.text;
|
|
492
|
+
const parentExpression = new concepts_1.Identifier({ name: item.text });
|
|
493
|
+
item.expression = parentExpression;
|
|
494
|
+
if (nodeType) {
|
|
495
|
+
const typeAnnotation = (0, utils_1.runGeneratorSync)(type2TypeAnnotation(nodeType));
|
|
496
|
+
const typeKeyMap = new Map();
|
|
497
|
+
const app = node.rootNode;
|
|
498
|
+
let structure = {};
|
|
499
|
+
// 有类型在进行下一步运算
|
|
500
|
+
if (typeAnnotation) {
|
|
501
|
+
// 数据查询没有输出参数,特殊处理
|
|
502
|
+
if (typeAnnotation.typeKind === 'anonymousStructure') {
|
|
503
|
+
structure = { properties: typeAnnotation.properties };
|
|
504
|
+
}
|
|
505
|
+
else if (typeAnnotation.typeArguments) {
|
|
506
|
+
structure = { properties: app.getSelectRef(typeAnnotation, true) };
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
structure = app.findNodeByCompleteName(typeAnnotation.typeNamespace + '.' + typeAnnotation.typeName);
|
|
510
|
+
}
|
|
511
|
+
structure?.properties?.forEach((structureProperty) => {
|
|
512
|
+
const { name, typeAnnotation } = structureProperty;
|
|
513
|
+
const expression = new concepts_1.MemberExpression({
|
|
514
|
+
object: parentExpression,
|
|
515
|
+
property: new concepts_1.Identifier({ name }),
|
|
516
|
+
});
|
|
517
|
+
const completionData = new concepts_1.CompletionProperty({
|
|
518
|
+
name,
|
|
519
|
+
value: name,
|
|
520
|
+
expression,
|
|
521
|
+
children: [],
|
|
522
|
+
});
|
|
523
|
+
completionData.icon = 'refProperty';
|
|
524
|
+
item.children.push(completionData);
|
|
525
|
+
recursionProperty(typeAnnotation, completionData, node, typeKeyMap);
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
const completionData = new concepts_1.CompletionProperty(item);
|
|
530
|
+
// 变量 param return 在这里添加图标
|
|
531
|
+
completionData.icon = getNodeiconFromLogic(completionData, node);
|
|
532
|
+
return completionData;
|
|
533
|
+
}
|
|
534
|
+
function recursionProperty(structureTypeAnnotation, parentCompletion, node, typeKeyMap) {
|
|
535
|
+
const app = node.rootNode;
|
|
536
|
+
let structure;
|
|
537
|
+
if (structureTypeAnnotation.typeArguments) {
|
|
538
|
+
structure = { properties: app.getSelectRef(structureTypeAnnotation, true) };
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
if (structureTypeAnnotation.typeKind === 'anonymousStructure') {
|
|
542
|
+
structure = { properties: structureTypeAnnotation.properties };
|
|
543
|
+
}
|
|
544
|
+
else {
|
|
545
|
+
structure = app.findNodeByCompleteName(structureTypeAnnotation.typeNamespace + '.' + structureTypeAnnotation.typeName);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
structure?.properties?.forEach((structureProperty) => {
|
|
549
|
+
const { name, typeAnnotation } = structureProperty;
|
|
550
|
+
const Ctor = (0, decorators_1.getConceptConstructor)(parentCompletion.expression.concept);
|
|
551
|
+
const object = Ctor.from({ ...parentCompletion.expression.toJSON() });
|
|
552
|
+
const expression = new concepts_1.MemberExpression({
|
|
553
|
+
object,
|
|
554
|
+
property: new concepts_1.Identifier({ name }),
|
|
555
|
+
});
|
|
556
|
+
const completionData = new concepts_1.CompletionProperty({
|
|
557
|
+
name,
|
|
558
|
+
value: name,
|
|
559
|
+
expression,
|
|
560
|
+
children: [],
|
|
561
|
+
});
|
|
562
|
+
completionData.icon = 'refProperty';
|
|
563
|
+
parentCompletion.children.push(completionData);
|
|
564
|
+
if (getNextFlag(typeAnnotation.typeKey, typeKeyMap)) {
|
|
565
|
+
recursionProperty(typeAnnotation, completionData, node, typeKeyMap);
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
function getNextFlag(typeKey, typeKeyMap) {
|
|
570
|
+
if (['nasl.core.String', 'nasl.collection.List', 'nasl.collection.Map'].includes(typeKey))
|
|
571
|
+
return true;
|
|
572
|
+
if (typeKeyMap.get(typeKey) === 3) {
|
|
573
|
+
return false;
|
|
574
|
+
}
|
|
575
|
+
else if (typeKeyMap.get(typeKey) > 0) {
|
|
576
|
+
typeKeyMap.set(typeKey, typeKeyMap.get(typeKey) + 1);
|
|
577
|
+
}
|
|
578
|
+
else {
|
|
579
|
+
typeKeyMap.set(typeKey, 1);
|
|
580
|
+
}
|
|
581
|
+
return true;
|
|
582
|
+
}
|
|
583
|
+
// 格式化变量数据
|
|
584
|
+
function formatVariableData(data, node, parent) {
|
|
585
|
+
if (Array.isArray(data)) {
|
|
586
|
+
let result = data.map((item) => {
|
|
587
|
+
item.children = [];
|
|
588
|
+
// 当前的类型如 app.entitys.entity1 nasl.core.String
|
|
589
|
+
let typeKey;
|
|
590
|
+
if (item.completionDetail) {
|
|
591
|
+
if (item.completionDetail?.hasOwnProperty('nodeType') || item.completionDetail?.hasOwnProperty('newNodeType')) {
|
|
592
|
+
const completionProperty = getNodeTypeVariableData(item.completionDetail?.nodeType || item.completionDetail?.newNodeType, item, node);
|
|
593
|
+
return completionProperty;
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
// 当前节点的完整类型,主要是在有T的内容使用 nasl.list<Enum1> 内部匹配内容给里面子集的T赋值类型
|
|
597
|
+
let currentType = formatTs2TypeString(item.completionDetail.displayParts);
|
|
598
|
+
if (currentType) {
|
|
599
|
+
if (currentType?.includes(': ')) {
|
|
600
|
+
const indexOf = currentType.indexOf(': ');
|
|
601
|
+
const newCurrentType = currentType.substring(indexOf + 2, currentType.length);
|
|
602
|
+
// 如果是对象形式的就单独处理
|
|
603
|
+
if (newCurrentType.startsWith('{') && newCurrentType.endsWith('}')) {
|
|
604
|
+
const completionProperty = getAStructureObjectStringType(newCurrentType, item, node);
|
|
605
|
+
return completionProperty;
|
|
606
|
+
}
|
|
607
|
+
else if (newCurrentType.startsWith('nasl.ui.Current<{')) {
|
|
608
|
+
const completionProperty = getAStructureScopeType(newCurrentType, item, node);
|
|
609
|
+
return completionProperty;
|
|
610
|
+
}
|
|
611
|
+
else if (newCurrentType.startsWith('nasl.collection.List<{') && newCurrentType.endsWith('}>')) {
|
|
612
|
+
currentType = 'nasl.collection.List<nasl.core.Any>';
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
typeKey = getPlatformType(currentType, node);
|
|
617
|
+
item.typeAnnotation = displayString2TypeAnnotation(typeKey);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
else if (item instanceof concepts_1.StructureProperty || item instanceof concepts_1.EntityProperty) {
|
|
621
|
+
typeKey = item?.typeAnnotation?.typeKey;
|
|
622
|
+
}
|
|
623
|
+
// 如果没有父节点就是Identifier
|
|
624
|
+
if (!parent) {
|
|
625
|
+
// value需要拼接生成
|
|
626
|
+
item.value = parent ? `${parent.value}.${item.text}` : item.text;
|
|
627
|
+
item.name = item.text;
|
|
628
|
+
const identifier = new concepts_1.Identifier({ name: item.name });
|
|
629
|
+
item.expression = identifier;
|
|
630
|
+
item.typeKey = typeKey;
|
|
631
|
+
}
|
|
632
|
+
else {
|
|
633
|
+
item.value = `${parent.value}.${item.name}`;
|
|
634
|
+
const Ctor = (0, decorators_1.getConceptConstructor)(parent.expression.concept);
|
|
635
|
+
const object = Ctor.from(parent.expression.toJSON());
|
|
636
|
+
const memberExpression = new concepts_1.MemberExpression({
|
|
637
|
+
object,
|
|
638
|
+
property: new concepts_1.Identifier({ name: item.name }),
|
|
639
|
+
});
|
|
640
|
+
item.expression = memberExpression;
|
|
641
|
+
item.variableParent = parent;
|
|
642
|
+
item.typeKey = typeKey;
|
|
643
|
+
// 标记实体属性是否是符合类型
|
|
644
|
+
item.isComplexType = item.typeAnnotation?.isComplexType();
|
|
645
|
+
}
|
|
646
|
+
// 如果有类型而且类型不是没有子集的类型,就把他当前的类型拿到
|
|
647
|
+
if (typeKey && !isNoChildType(typeKey)) {
|
|
648
|
+
let currentParent = item;
|
|
649
|
+
let typeKeyIndex = 0;
|
|
650
|
+
while (currentParent.variableParent) {
|
|
651
|
+
currentParent = currentParent.variableParent;
|
|
652
|
+
if (currentParent.typeKey === typeKey) {
|
|
653
|
+
typeKeyIndex++;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
// 向上找到3次一样的就结束
|
|
657
|
+
if (typeKeyIndex < 3) {
|
|
658
|
+
nextFindTypeChild(typeKey, item, node);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
const completionProperty = new concepts_1.CompletionProperty(item);
|
|
662
|
+
completionProperty.jsonName = item.jsonName;
|
|
663
|
+
// 标记实体属性是否是符合类型
|
|
664
|
+
if (typeof item.isComplexType === 'boolean') {
|
|
665
|
+
Object.assign(completionProperty, { isComplexType: item.isComplexType });
|
|
666
|
+
}
|
|
667
|
+
if (!parent) {
|
|
668
|
+
// 变量 param return 在这里添加图标
|
|
669
|
+
completionProperty.icon = getNodeiconFromLogic(completionProperty, node);
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
completionProperty.icon = 'refProperty';
|
|
673
|
+
}
|
|
674
|
+
return completionProperty;
|
|
675
|
+
});
|
|
676
|
+
/**
|
|
677
|
+
* 排序result
|
|
678
|
+
* 如果没有父级就是第一集就排序一下当前result,用户体验优化
|
|
679
|
+
*/
|
|
680
|
+
if (!parent) {
|
|
681
|
+
result = sortFirstVariableData(result, node);
|
|
682
|
+
}
|
|
683
|
+
return result.filter(Boolean);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
exports.formatVariableData = formatVariableData;
|
|
687
|
+
// 从logic获取节点的icon
|
|
688
|
+
function getNodeiconFromLogic(completionProperty, node) {
|
|
689
|
+
const { name: propName } = completionProperty;
|
|
690
|
+
const likeComponent = node.getAncestor('View') || node.getAncestor('BusinessComponent');
|
|
691
|
+
const logic = node.logic || node.getAncestor('BusinessLogic') || node.OverriddenLogic || node.AuthLogic || node.AuthLogicForCallInterface;
|
|
692
|
+
// 如果节点存在于SubLogic 中,则可能出现 SubLogic 嵌套 SubLogic 的情况
|
|
693
|
+
// 为此需要找全链路上的所有 SubLogic 及其对应的参数
|
|
694
|
+
let parentSubLogicNode = node.getAncestor('SubLogic');
|
|
695
|
+
const isInSubLogic = !!parentSubLogicNode;
|
|
696
|
+
const logicLikeList = [];
|
|
697
|
+
if (isInSubLogic) {
|
|
698
|
+
while (parentSubLogicNode) {
|
|
699
|
+
logicLikeList.push(parentSubLogicNode);
|
|
700
|
+
parentSubLogicNode = parentSubLogicNode.getAncestor('SubLogic');
|
|
701
|
+
}
|
|
702
|
+
logicLikeList.push(logic);
|
|
703
|
+
}
|
|
704
|
+
if (node.concept === 'Identifier' || node.concept === 'BindAttribute' || node.concept === 'MemberExpression') {
|
|
705
|
+
const ancestorParamNames = (0, utils_1.getAncestorExistingParamNames)(node);
|
|
706
|
+
if (ancestorParamNames.has(propName)) {
|
|
707
|
+
return 'param';
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
if (likeComponent) {
|
|
711
|
+
const params = likeComponent.params;
|
|
712
|
+
// 前端逻辑调用
|
|
713
|
+
if (params.find((item) => item.name === propName)) {
|
|
714
|
+
return 'param';
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
if (logic) {
|
|
718
|
+
const { returns } = logic;
|
|
719
|
+
let params = logic.params;
|
|
720
|
+
if (isInSubLogic) {
|
|
721
|
+
// 保证局部作用域的变量优先级高于全局作用域
|
|
722
|
+
params = logicLikeList.reduce((acc, cur) => acc.concat(cur.params), []);
|
|
723
|
+
}
|
|
724
|
+
if (logic instanceof concepts_1.AuthLogicForCallInterface) {
|
|
725
|
+
const { authParams } = logic;
|
|
726
|
+
if (authParams.find((item) => item.name === completionProperty.name))
|
|
727
|
+
return 'api-auth-params';
|
|
728
|
+
if (params.find((item) => item.name === completionProperty.name))
|
|
729
|
+
return 'api-auth-params';
|
|
730
|
+
}
|
|
731
|
+
else if (logic instanceof concepts_1.AuthLogic) {
|
|
732
|
+
if (params.find((item) => item.name === completionProperty.name))
|
|
733
|
+
return 'api-auth-params';
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
736
|
+
if (params.find((item) => item.name === completionProperty.name))
|
|
737
|
+
return 'param';
|
|
738
|
+
}
|
|
739
|
+
if (params.find((item) => item.name === propName)) {
|
|
740
|
+
return 'param';
|
|
741
|
+
}
|
|
742
|
+
else if (returns.find((item) => item.name === propName)) {
|
|
743
|
+
return 'return';
|
|
744
|
+
}
|
|
745
|
+
else {
|
|
746
|
+
return 'variable';
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
const bindAttr = node.getAncestor('BindAttribute');
|
|
750
|
+
if (bindAttr) {
|
|
751
|
+
const interfaceInstance = bindAttr.getAncestor('Interface');
|
|
752
|
+
if (interfaceInstance?.params.find((item) => item.name === propName)) {
|
|
753
|
+
return 'param';
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
return 'variable';
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* 把要返回去的数据做一下排序
|
|
760
|
+
* @param result 要返回数据
|
|
761
|
+
* @param node 当前内容的上下级
|
|
762
|
+
* @returns 返回排序后的数组
|
|
763
|
+
* 因为ts会按照 a-z的顺序进行排序
|
|
764
|
+
* 但是影响用户体验,需要先按照页面排序,其次按照logic进行排序
|
|
765
|
+
* 流程的韬哥自己解决了,所以先解决这两部分
|
|
766
|
+
*/
|
|
767
|
+
function sortFirstVariableData(result, node) {
|
|
768
|
+
const newResult = [];
|
|
769
|
+
const logic = node.logic;
|
|
770
|
+
const view = node.view || node.getAncestor('BusinessComponent');
|
|
771
|
+
if (view) {
|
|
772
|
+
const { params, variables } = view;
|
|
773
|
+
const list = [...params, ...variables];
|
|
774
|
+
list.forEach((item) => {
|
|
775
|
+
const findIndex = result.findIndex((findItem) => findItem.name === item.name);
|
|
776
|
+
if (findIndex !== -1) {
|
|
777
|
+
newResult.push(result[findIndex]);
|
|
778
|
+
result.splice(findIndex, 1);
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
if (logic) {
|
|
783
|
+
const { params, returns, variables } = logic;
|
|
784
|
+
const list = [...params, ...returns, ...variables];
|
|
785
|
+
list.forEach((item) => {
|
|
786
|
+
const findIndex = result.findIndex((findItem) => findItem.name === item.name);
|
|
787
|
+
if (findIndex !== -1) {
|
|
788
|
+
newResult.push(result[findIndex]);
|
|
789
|
+
result.splice(findIndex, 1);
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
newResult.push(...result);
|
|
794
|
+
return newResult;
|
|
795
|
+
}
|
|
796
|
+
function formatBackendVariables(variables) {
|
|
797
|
+
const result = variables.map((itemNode) => {
|
|
798
|
+
const namespace = itemNode.getNamespace();
|
|
799
|
+
const newItem = {
|
|
800
|
+
name: itemNode.name,
|
|
801
|
+
value: itemNode.name,
|
|
802
|
+
expression: new concepts_1.Identifier({
|
|
803
|
+
name: itemNode.name,
|
|
804
|
+
namespace,
|
|
805
|
+
}),
|
|
806
|
+
};
|
|
807
|
+
const noChildType = isNoChildType(itemNode.typeAnnotation?.typeKey);
|
|
808
|
+
if (!noChildType) {
|
|
809
|
+
nextFindTypeChild(itemNode?.typeAnnotation?.typeKey, newItem, itemNode);
|
|
810
|
+
}
|
|
811
|
+
const completionProperty = new concepts_1.CompletionProperty(newItem);
|
|
812
|
+
completionProperty.icon = 'backendVariable';
|
|
813
|
+
return completionProperty;
|
|
814
|
+
});
|
|
815
|
+
return result;
|
|
816
|
+
}
|
|
817
|
+
exports.formatBackendVariables = formatBackendVariables;
|
|
818
|
+
function formatFrontEndVariables(frontEndVariables) {
|
|
819
|
+
const result = frontEndVariables.map((itemNode) => {
|
|
820
|
+
const namespace = itemNode.getNamespace();
|
|
821
|
+
const newItem = {
|
|
822
|
+
name: itemNode.name,
|
|
823
|
+
value: itemNode.name,
|
|
824
|
+
expression: new concepts_1.Identifier({
|
|
825
|
+
name: itemNode.name,
|
|
826
|
+
namespace,
|
|
827
|
+
}),
|
|
828
|
+
};
|
|
829
|
+
const noChildType = isNoChildType(itemNode.typeAnnotation?.typeKey);
|
|
830
|
+
if (!noChildType) {
|
|
831
|
+
nextFindTypeChild(itemNode?.typeAnnotation?.typeKey, newItem, itemNode);
|
|
832
|
+
}
|
|
833
|
+
const completionProperty = new concepts_1.CompletionProperty(newItem);
|
|
834
|
+
completionProperty.icon = 'frontendVariable';
|
|
835
|
+
return completionProperty;
|
|
836
|
+
});
|
|
837
|
+
return result;
|
|
838
|
+
}
|
|
839
|
+
exports.formatFrontEndVariables = formatFrontEndVariables;
|
|
840
|
+
function formatConfigProperties(configProperties, isView) {
|
|
841
|
+
const result = configProperties.reduce((pre, item) => {
|
|
842
|
+
const { isPrivate = false } = item;
|
|
843
|
+
if (!isPrivate || !isView) {
|
|
844
|
+
const namespace = item.getNamespace();
|
|
845
|
+
const newItem = {
|
|
846
|
+
name: item.name,
|
|
847
|
+
value: item.name,
|
|
848
|
+
expression: new concepts_1.Identifier({
|
|
849
|
+
name: item.name,
|
|
850
|
+
namespace,
|
|
851
|
+
}),
|
|
852
|
+
icon: 'configProperty',
|
|
853
|
+
calleewholeKey: item.calleewholeKey,
|
|
854
|
+
};
|
|
855
|
+
pre.push(newItem);
|
|
856
|
+
}
|
|
857
|
+
return pre;
|
|
858
|
+
}, []);
|
|
859
|
+
// const result = configProperties.map((item) => {
|
|
860
|
+
// const namespace = item.getNamespace();
|
|
861
|
+
// const newItem: any = {
|
|
862
|
+
// name: item.name,
|
|
863
|
+
// value: item.name,
|
|
864
|
+
// expression: new Identifier({
|
|
865
|
+
// name: item.name,
|
|
866
|
+
// namespace,
|
|
867
|
+
// }),
|
|
868
|
+
// icon: 'configProperty',
|
|
869
|
+
// calleewholeKey: item.calleewholeKey,
|
|
870
|
+
// };
|
|
871
|
+
// return newItem;
|
|
872
|
+
// });
|
|
873
|
+
return result;
|
|
874
|
+
}
|
|
875
|
+
exports.formatConfigProperties = formatConfigProperties;
|
|
876
|
+
//# sourceMappingURL=formatTsUtils.js.map
|