@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,882 @@
|
|
|
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 CallInterface_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.CallInterface = void 0;
|
|
37
|
+
const utils_1 = require("../utils");
|
|
38
|
+
const nasl_translator_1 = require("@lcap/nasl-translator");
|
|
39
|
+
const service_1 = require("../service");
|
|
40
|
+
const utils_2 = require("../utils");
|
|
41
|
+
const quick_info_1 = require("./utils/quick-info");
|
|
42
|
+
const decorators_1 = require("../decorators");
|
|
43
|
+
const utils = __importStar(require("../utils"));
|
|
44
|
+
const asserts = __importStar(require("./utils/asserts"));
|
|
45
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
46
|
+
/**
|
|
47
|
+
* 调用接口
|
|
48
|
+
*/
|
|
49
|
+
let CallInterface = class CallInterface extends LogicItem__1.default {
|
|
50
|
+
static { CallInterface_1 = this; }
|
|
51
|
+
/** 类名 */
|
|
52
|
+
static { this.ConceptName = 'CallInterface'; }
|
|
53
|
+
/**
|
|
54
|
+
* 是否为抽象类
|
|
55
|
+
* 抽象类不能产生 concept: string
|
|
56
|
+
*/
|
|
57
|
+
static { this.isAbstract = false; }
|
|
58
|
+
/** 继承链 */
|
|
59
|
+
static { this.inheritanceChain = ['LogicItem', 'BaseNode']; }
|
|
60
|
+
/**
|
|
61
|
+
* @param source 需要合并的部分参数
|
|
62
|
+
*/
|
|
63
|
+
constructor(source) {
|
|
64
|
+
source = Object.assign({}, CallInterface_1.getDefaultOptions(), source);
|
|
65
|
+
super(source);
|
|
66
|
+
/**
|
|
67
|
+
* 实际参数
|
|
68
|
+
*/
|
|
69
|
+
this.arguments = [];
|
|
70
|
+
//================================================================================
|
|
71
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
72
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
73
|
+
//================================================================================
|
|
74
|
+
/**
|
|
75
|
+
* 标识当前删除是否为鉴权方式更新导致的删除。
|
|
76
|
+
* 针对此种删除,删除逻辑已经处理,无需再走 deleteCallNode 逻辑
|
|
77
|
+
*/
|
|
78
|
+
this.__authDelete = false;
|
|
79
|
+
super.subConstructor(source);
|
|
80
|
+
}
|
|
81
|
+
static from(source, parentNode, parentKey) {
|
|
82
|
+
return super.from(source, parentNode, parentKey);
|
|
83
|
+
}
|
|
84
|
+
_insertArgumentAt(options, index) {
|
|
85
|
+
const argumentOptions = {};
|
|
86
|
+
const relationOptions = { parentNode: this, parentKey: 'arguments' };
|
|
87
|
+
const Argument = (0, decorators_1.getConceptConstructor)('Argument');
|
|
88
|
+
let argument;
|
|
89
|
+
if (asserts.isArgument(options)) {
|
|
90
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
91
|
+
argument = options;
|
|
92
|
+
Object.assign(argument, relationOptions);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
argument = Argument.from({
|
|
96
|
+
...argumentOptions,
|
|
97
|
+
...options,
|
|
98
|
+
}, this, 'arguments');
|
|
99
|
+
}
|
|
100
|
+
this.arguments.splice(index, 0, argument);
|
|
101
|
+
return argument;
|
|
102
|
+
}
|
|
103
|
+
insertArgumentAt(options, index) {
|
|
104
|
+
const node = this._insertArgumentAt(options, index);
|
|
105
|
+
node.create({
|
|
106
|
+
index,
|
|
107
|
+
parentNode: this,
|
|
108
|
+
parentKey: 'arguments',
|
|
109
|
+
});
|
|
110
|
+
return node;
|
|
111
|
+
}
|
|
112
|
+
_addArgument(options) {
|
|
113
|
+
const index = this.arguments.length;
|
|
114
|
+
return this._insertArgumentAt(options, index);
|
|
115
|
+
}
|
|
116
|
+
addArgument(options) {
|
|
117
|
+
const node = this._addArgument(options);
|
|
118
|
+
const index = this.arguments.indexOf(node);
|
|
119
|
+
node.create({
|
|
120
|
+
index,
|
|
121
|
+
parentNode: this,
|
|
122
|
+
parentKey: 'arguments',
|
|
123
|
+
});
|
|
124
|
+
return node;
|
|
125
|
+
}
|
|
126
|
+
removeArgument(options) {
|
|
127
|
+
let argument = options;
|
|
128
|
+
return argument.delete();
|
|
129
|
+
}
|
|
130
|
+
// 删除调用接口时且接口无引用,删除接口和数据结构
|
|
131
|
+
async deleteCallNode() {
|
|
132
|
+
// 如果是连接器下面,则不需要自动删除,得用户手动删除
|
|
133
|
+
if (this.connector)
|
|
134
|
+
return;
|
|
135
|
+
if (this.calleeKey !== '__IDENTIFIER__' && !this.__authDelete) {
|
|
136
|
+
this.__deleteCallNodeTimer = setTimeout(async () => {
|
|
137
|
+
clearTimeout(this.__deleteCallNodeTimer);
|
|
138
|
+
// 计算之前选择的接口的引用次数
|
|
139
|
+
const oldItf = this.getCallNode();
|
|
140
|
+
if (oldItf) {
|
|
141
|
+
let refCount = 0;
|
|
142
|
+
const refs = (await oldItf.findUsage());
|
|
143
|
+
const isOnlyUsedByFronted = refs.size === 1 && Array.from(refs.keys()).filter((key) => asserts.isFrontend(key)).length > 0;
|
|
144
|
+
const isAuthInterface = asserts.isAuthInterface(oldItf);
|
|
145
|
+
// 当仅仅只有前端使用,且该接口是鉴权接口时需要将接口还原为普通接口
|
|
146
|
+
if (isOnlyUsedByFronted && isAuthInterface) {
|
|
147
|
+
this.replaceToInterface(oldItf);
|
|
148
|
+
}
|
|
149
|
+
refs.forEach((val) => {
|
|
150
|
+
const loopFindNode = (item) => {
|
|
151
|
+
if (item.children) {
|
|
152
|
+
item.children.forEach((child) => loopFindNode(child));
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
refCount++;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
loopFindNode(val);
|
|
159
|
+
});
|
|
160
|
+
// 无引用则删除
|
|
161
|
+
if (!refCount) {
|
|
162
|
+
// 删除旧的接口、接口的数据结构
|
|
163
|
+
this.app.emit('collect:start', { actionMsg: '删除接口' });
|
|
164
|
+
const parentModule = oldItf.module || oldItf.connector;
|
|
165
|
+
if (oldItf.module) {
|
|
166
|
+
const shouldDeleteStructures = [];
|
|
167
|
+
oldItf.module.getInterfaceStructureMap().forEach((itfs, stru) => {
|
|
168
|
+
if (itfs.size === 1 && itfs.has(oldItf)) {
|
|
169
|
+
shouldDeleteStructures.push(stru);
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
shouldDeleteStructures.forEach((s) => s.delete());
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
const shouldDeleteStructures = oldItf.getRefStructures(parentModule?.structures);
|
|
176
|
+
shouldDeleteStructures.forEach((s) => s.delete());
|
|
177
|
+
}
|
|
178
|
+
oldItf.delete();
|
|
179
|
+
oldItf.afterDelete();
|
|
180
|
+
this.app.emit('collect:end');
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}, 350);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
replaceToInterface(oldItf) {
|
|
187
|
+
this.app.emit('collect:start', { actionMsg: '调用接口恢复为非鉴权' });
|
|
188
|
+
const { name, originLogicName, path, method, description, params, returns, protocol, protocolParams } = oldItf;
|
|
189
|
+
const Interface = (0, decorators_1.getConceptConstructor)('Interface');
|
|
190
|
+
const newInterface = new Interface({
|
|
191
|
+
name,
|
|
192
|
+
originLogicName,
|
|
193
|
+
path,
|
|
194
|
+
method,
|
|
195
|
+
description,
|
|
196
|
+
params,
|
|
197
|
+
returns,
|
|
198
|
+
protocol,
|
|
199
|
+
protocolParams,
|
|
200
|
+
});
|
|
201
|
+
const m = oldItf.parentNode;
|
|
202
|
+
const interfaceIndex = m?.interfaces?.findIndex?.((item) => item.name === oldItf.name);
|
|
203
|
+
oldItf.delete();
|
|
204
|
+
m.insertInterfaceAt(newInterface, interfaceIndex);
|
|
205
|
+
this.app.emit('collect:end');
|
|
206
|
+
}
|
|
207
|
+
get tsCalleeNamespace() {
|
|
208
|
+
if (this.calleeNamespace) {
|
|
209
|
+
let tsCalleeNamespace = this.calleeNamespace;
|
|
210
|
+
tsCalleeNamespace = tsCalleeNamespace.replace(/\.[0-9]/g, (m) => m.replace('.', '.$'));
|
|
211
|
+
tsCalleeNamespace = tsCalleeNamespace.replace(/-/g, '_');
|
|
212
|
+
return tsCalleeNamespace;
|
|
213
|
+
}
|
|
214
|
+
return '';
|
|
215
|
+
}
|
|
216
|
+
toVue(options) {
|
|
217
|
+
let code = this.calleeName;
|
|
218
|
+
code += '(';
|
|
219
|
+
this.arguments?.forEach((arg, index) => {
|
|
220
|
+
code += arg?.toVue(options);
|
|
221
|
+
if (index !== this.arguments?.length - 1)
|
|
222
|
+
code += ', ';
|
|
223
|
+
});
|
|
224
|
+
code += ')';
|
|
225
|
+
return code;
|
|
226
|
+
}
|
|
227
|
+
toUI(state, hideDetails) {
|
|
228
|
+
let code = this.calleeName;
|
|
229
|
+
code += '(';
|
|
230
|
+
if (!hideDetails) {
|
|
231
|
+
this.arguments?.forEach((arg, index) => {
|
|
232
|
+
code += arg?.toUI();
|
|
233
|
+
if (index !== this.arguments?.length - 1)
|
|
234
|
+
code += ', ';
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
code += ')';
|
|
238
|
+
return code;
|
|
239
|
+
}
|
|
240
|
+
toJS(state) {
|
|
241
|
+
const { calleewholeKey, app, completeArguments } = this;
|
|
242
|
+
let [, _name, , _interfaceName] = calleewholeKey.split('.');
|
|
243
|
+
let isAppInterface = calleewholeKey.startsWith('app.interfaces');
|
|
244
|
+
if (!_interfaceName && isAppInterface) {
|
|
245
|
+
// 兼容此两种情况 1 "apis.hsjtest.interfaces.dsfsdf" 2 "app.interfaces.fffffffff"
|
|
246
|
+
_interfaceName = calleewholeKey.split('.')?.[2];
|
|
247
|
+
}
|
|
248
|
+
let _module;
|
|
249
|
+
// 由于自定义连接器的引入,目前在 集成中心下也存在着一部分接口
|
|
250
|
+
// 因此,需要额外判断,如果是自定义连接器需要拿 app.connectorDependencies 中的接口或者 app.integration 中connector下面的接口
|
|
251
|
+
const isCustomConnector = this.getAncestor('Connector');
|
|
252
|
+
const isInIntegration = this.getAncestor('Integration');
|
|
253
|
+
if (isCustomConnector && isInIntegration) {
|
|
254
|
+
_module = app?.integration?.connectors?.find?.((item) => item.name === _name);
|
|
255
|
+
}
|
|
256
|
+
else if (isCustomConnector && !isInIntegration) {
|
|
257
|
+
_module = app?.connectorDependencies?.find?.((item) => item.name === _name);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
// default
|
|
261
|
+
_module = app?.interfaceDependencies?.find?.((item) => item.name === _name);
|
|
262
|
+
}
|
|
263
|
+
if (isAppInterface) {
|
|
264
|
+
_module = app;
|
|
265
|
+
}
|
|
266
|
+
const _interface = _module?.interfaces?.find?.((item) => item.name === _interfaceName);
|
|
267
|
+
if (!_interface) {
|
|
268
|
+
if (!this.calleeNamespace || !this.calleeName)
|
|
269
|
+
throw new Error('调用接口为空');
|
|
270
|
+
throw new Error(`${_name}下的${_interfaceName}接口未找到`);
|
|
271
|
+
}
|
|
272
|
+
let isSimpleBody = false; // 兼容body只有基本类型的
|
|
273
|
+
const _params = _interface.params;
|
|
274
|
+
const _queries = _params.filter((item) => item.in === 'query').map((item) => item.name);
|
|
275
|
+
const _headers = _params.filter((item) => item.in === 'header').map((item) => item.name);
|
|
276
|
+
const _body = _params
|
|
277
|
+
.filter((item) => item.in === 'body')
|
|
278
|
+
.map((item) => {
|
|
279
|
+
if (item.typeAnnotation.typeKind === 'primitive') {
|
|
280
|
+
isSimpleBody = true;
|
|
281
|
+
}
|
|
282
|
+
return item.name;
|
|
283
|
+
});
|
|
284
|
+
const _paths = _params.filter((item) => item.in === 'path').map((item) => item.name);
|
|
285
|
+
/** 填充参数信息 */
|
|
286
|
+
const setArgumentCode = (args, keys, code, useKeyWord, useRest) => {
|
|
287
|
+
const filledArgs = args
|
|
288
|
+
// 维持原样,暂时不过滤没有填入值的参数
|
|
289
|
+
// .filter((arg) => Boolean(arg?.expression))
|
|
290
|
+
.filter((arg) => keys.includes(arg.keyword));
|
|
291
|
+
filledArgs.forEach((arg, index) => {
|
|
292
|
+
if (useRest) {
|
|
293
|
+
code += ` ...${arg?.toJS(state)}`;
|
|
294
|
+
}
|
|
295
|
+
else if (useKeyWord) {
|
|
296
|
+
code += `\n'${arg?.keyword}': ${arg?.toJS(state)}`;
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
code += ` ${arg?.toJS(state)}`;
|
|
300
|
+
}
|
|
301
|
+
if (index !== args.length - 1) {
|
|
302
|
+
code += ', ';
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
if (filledArgs.length === 0 && !useKeyWord && !useRest) {
|
|
306
|
+
code += 'undefined';
|
|
307
|
+
}
|
|
308
|
+
return code;
|
|
309
|
+
};
|
|
310
|
+
let code = `await this.$services['_custom']['${this.calleeNamespace}.${this.calleeName}']`;
|
|
311
|
+
code += `({ config: {\ndownload: false,\n },\nquery: {`;
|
|
312
|
+
code = setArgumentCode(completeArguments, _queries, code, true, false);
|
|
313
|
+
code += `}, path: {`;
|
|
314
|
+
code = setArgumentCode(completeArguments, _paths, code, true, false);
|
|
315
|
+
code += `}, headers: {`;
|
|
316
|
+
code = setArgumentCode(completeArguments, _headers, code, true, false);
|
|
317
|
+
code += `},\n`;
|
|
318
|
+
if (isSimpleBody) {
|
|
319
|
+
code += `body: `;
|
|
320
|
+
code = setArgumentCode(completeArguments, _body, code, false, false);
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
code += `body: {`;
|
|
324
|
+
code = setArgumentCode(completeArguments, _body, code, false, true);
|
|
325
|
+
code += '}';
|
|
326
|
+
}
|
|
327
|
+
code += '\n})';
|
|
328
|
+
const typeAnnotation = this.typeAnnotation || this.__TypeAnnotation;
|
|
329
|
+
const needGenInitFromSchema = typeAnnotation && !['primitive', 'union'].includes(typeAnnotation.typeKind);
|
|
330
|
+
if (needGenInitFromSchema) {
|
|
331
|
+
code = `this.$genInitFromSchema('${typeAnnotation?.sortedTypeKey}', ${code})`;
|
|
332
|
+
}
|
|
333
|
+
return code;
|
|
334
|
+
}
|
|
335
|
+
*toEmbeddedTS(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
336
|
+
const self = this;
|
|
337
|
+
const { completeArguments, parentNode, parentKey, tsCalleeKey } = self;
|
|
338
|
+
let code = `${tsCalleeKey}(`;
|
|
339
|
+
if (completeArguments?.length) {
|
|
340
|
+
code += '{';
|
|
341
|
+
yield* (0, utils_1.wrapForEachToGenerator)(completeArguments, function* warpForEachGenerator(arg, index) {
|
|
342
|
+
code += yield* arg?.toEmbeddedTS((0, nasl_translator_1.shiftState)(state, code), arg.paramRequired, true) ?? (0, utils_1.returnOrigin)('');
|
|
343
|
+
if (index !== self.arguments?.length - 1)
|
|
344
|
+
code += ', ';
|
|
345
|
+
});
|
|
346
|
+
code += '}';
|
|
347
|
+
}
|
|
348
|
+
code += ')';
|
|
349
|
+
if (parentNode.concept !== 'Argument' &&
|
|
350
|
+
parentKey !== 'test' &&
|
|
351
|
+
parentKey !== 'patterns' &&
|
|
352
|
+
parentKey !== 'returnExpression' &&
|
|
353
|
+
parentNode.concept !== 'Assignment' &&
|
|
354
|
+
parentNode.concept !== 'ForEachStatement' &&
|
|
355
|
+
parentNode.concept !== 'SelectMembers' &&
|
|
356
|
+
parentNode.concept !== 'UnaryExpression' &&
|
|
357
|
+
parentNode.concept !== 'BinaryExpression' &&
|
|
358
|
+
parentNode.concept !== 'MemberExpression' &&
|
|
359
|
+
parentNode.concept !== 'StringInterpolation' &&
|
|
360
|
+
!['NewMap', 'NewList'].includes(parentNode.concept)) {
|
|
361
|
+
code += ';';
|
|
362
|
+
}
|
|
363
|
+
code += '\n';
|
|
364
|
+
return code;
|
|
365
|
+
}
|
|
366
|
+
toNaturalTS(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
367
|
+
const { completeArguments, parentNode, parentKey, tsCalleeKey } = this;
|
|
368
|
+
let code = `${tsCalleeKey}(`;
|
|
369
|
+
code += '{\n';
|
|
370
|
+
this.completeArguments?.forEach((arg, index) => {
|
|
371
|
+
if (!arg) {
|
|
372
|
+
code += '__IDENTIFIER__: undefined,\n';
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
code +=
|
|
376
|
+
arg.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 }), arg.paramRequired, true) + ',\n';
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
code += `${(0, nasl_translator_1.indent)(state.tabSize)}})`;
|
|
380
|
+
return code;
|
|
381
|
+
}
|
|
382
|
+
toTextualNASL(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
383
|
+
let code = `${(0, nasl_translator_1.textualNamespace)(this.tsCalleeKey)}(\n`;
|
|
384
|
+
this.completeArguments.forEach((arg, index) => {
|
|
385
|
+
if (!arg) {
|
|
386
|
+
code += '__IDENTIFIER__ = null,\n';
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
code +=
|
|
390
|
+
arg.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 }), arg.paramRequired, true) + ',\n';
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
code += `${(0, nasl_translator_1.indent)(state.tabSize)})`;
|
|
394
|
+
return code;
|
|
395
|
+
}
|
|
396
|
+
toBrief() {
|
|
397
|
+
return this.arguments.map((a) => a.toBrief()).join('<br />');
|
|
398
|
+
}
|
|
399
|
+
get calleeKey() {
|
|
400
|
+
const { tsCalleeNamespace } = this;
|
|
401
|
+
const { calleeName } = this;
|
|
402
|
+
return calleeName ? `${tsCalleeNamespace}.${calleeName}` : '__IDENTIFIER__';
|
|
403
|
+
}
|
|
404
|
+
// 用于logic回填
|
|
405
|
+
get calleewholeKey() {
|
|
406
|
+
return `${this.calleeNamespace}.${this.calleeName}`;
|
|
407
|
+
}
|
|
408
|
+
get tsCalleeName() {
|
|
409
|
+
const excludeds = [
|
|
410
|
+
'abstract',
|
|
411
|
+
'arguments',
|
|
412
|
+
'await',
|
|
413
|
+
'boolean',
|
|
414
|
+
'break',
|
|
415
|
+
'byte',
|
|
416
|
+
'case',
|
|
417
|
+
'catch',
|
|
418
|
+
'char',
|
|
419
|
+
'class',
|
|
420
|
+
'const',
|
|
421
|
+
'continue',
|
|
422
|
+
'debugger',
|
|
423
|
+
'default',
|
|
424
|
+
'delete',
|
|
425
|
+
'do',
|
|
426
|
+
'double',
|
|
427
|
+
'decimal',
|
|
428
|
+
'else',
|
|
429
|
+
'enum',
|
|
430
|
+
'eval',
|
|
431
|
+
'export',
|
|
432
|
+
'extends',
|
|
433
|
+
'false',
|
|
434
|
+
'final',
|
|
435
|
+
'finally',
|
|
436
|
+
'float',
|
|
437
|
+
'for',
|
|
438
|
+
'function',
|
|
439
|
+
'goto',
|
|
440
|
+
'if',
|
|
441
|
+
'implements',
|
|
442
|
+
'import',
|
|
443
|
+
'in',
|
|
444
|
+
'instanceof',
|
|
445
|
+
'int',
|
|
446
|
+
'interface',
|
|
447
|
+
'let',
|
|
448
|
+
'long',
|
|
449
|
+
'native',
|
|
450
|
+
'new',
|
|
451
|
+
'null',
|
|
452
|
+
'package',
|
|
453
|
+
'private',
|
|
454
|
+
'protected',
|
|
455
|
+
'public',
|
|
456
|
+
'return',
|
|
457
|
+
'short',
|
|
458
|
+
'static',
|
|
459
|
+
'super',
|
|
460
|
+
'switch',
|
|
461
|
+
'synchronized',
|
|
462
|
+
'this',
|
|
463
|
+
'throw',
|
|
464
|
+
'throws',
|
|
465
|
+
'transient',
|
|
466
|
+
'true',
|
|
467
|
+
'try',
|
|
468
|
+
'typeof',
|
|
469
|
+
'var',
|
|
470
|
+
'void',
|
|
471
|
+
'volatile',
|
|
472
|
+
'while',
|
|
473
|
+
'with',
|
|
474
|
+
'yield,as',
|
|
475
|
+
'any',
|
|
476
|
+
'number',
|
|
477
|
+
'string',
|
|
478
|
+
'get',
|
|
479
|
+
'type',
|
|
480
|
+
'typeof',
|
|
481
|
+
'instanceof',
|
|
482
|
+
'require',
|
|
483
|
+
];
|
|
484
|
+
if (excludeds.includes(this.calleeName)) {
|
|
485
|
+
return `_${this.calleeName}`;
|
|
486
|
+
}
|
|
487
|
+
// 来自集成中心,且是连接内部的逻辑,则认为是编辑态的,需要加上后缀
|
|
488
|
+
if (this.connector && this.integration) {
|
|
489
|
+
return `${this.calleeName}${utils_2.CUSTOM_CONNECTOR_EDITABLE_SUFFIX}`;
|
|
490
|
+
}
|
|
491
|
+
return this.calleeName;
|
|
492
|
+
}
|
|
493
|
+
get tsCalleeKey() {
|
|
494
|
+
const { tsCalleeNamespace } = this;
|
|
495
|
+
const calleeName = this.tsCalleeName;
|
|
496
|
+
return calleeName ? `${tsCalleeNamespace}.${calleeName}` : '__IDENTIFIER__';
|
|
497
|
+
}
|
|
498
|
+
get calleeDefaultKey() {
|
|
499
|
+
return `${this.calleeNamespace}.${this.calleeName}`;
|
|
500
|
+
}
|
|
501
|
+
_setCallee(_interface) {
|
|
502
|
+
this.arguments = [];
|
|
503
|
+
_interface.params.forEach((param) => {
|
|
504
|
+
this._addArgument({
|
|
505
|
+
keyword: param.name,
|
|
506
|
+
});
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
setCallee(_interface) {
|
|
510
|
+
const calleeNamespace = _interface.getNamespace();
|
|
511
|
+
const Argument = (0, decorators_1.getConceptConstructor)('Argument');
|
|
512
|
+
const calleeName = _interface.name;
|
|
513
|
+
// 保留之前的参数
|
|
514
|
+
const params = _interface.params.map((param) => {
|
|
515
|
+
const oldArgument = this.arguments.find((node) => node.keyword === param.name);
|
|
516
|
+
return Argument.from({
|
|
517
|
+
keyword: param.name,
|
|
518
|
+
expression: oldArgument?.expression,
|
|
519
|
+
}, this, 'arguments');
|
|
520
|
+
});
|
|
521
|
+
if (this.app) {
|
|
522
|
+
this.app.emit('collect:start', {
|
|
523
|
+
actionMsg: `切换调用逻辑`,
|
|
524
|
+
});
|
|
525
|
+
const { parentNode } = this;
|
|
526
|
+
this.update({
|
|
527
|
+
calleeNamespace,
|
|
528
|
+
calleeName,
|
|
529
|
+
arguments: params,
|
|
530
|
+
folded: false,
|
|
531
|
+
});
|
|
532
|
+
if (parentNode.concept === 'MemberExpression') {
|
|
533
|
+
const topNode = parentNode.firstMemberExpressionNode();
|
|
534
|
+
topNode.replaceNode(this);
|
|
535
|
+
}
|
|
536
|
+
this.app.emit('collect:end');
|
|
537
|
+
}
|
|
538
|
+
else {
|
|
539
|
+
this.update({
|
|
540
|
+
calleeNamespace,
|
|
541
|
+
calleeName,
|
|
542
|
+
arguments: params,
|
|
543
|
+
folded: false,
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
// 通过内容过去节点
|
|
548
|
+
getCallNode() {
|
|
549
|
+
let node;
|
|
550
|
+
// 如果是其余app下自定义逻辑
|
|
551
|
+
try {
|
|
552
|
+
// connector 下的需要从当前connector 下获取
|
|
553
|
+
if (this.connector) {
|
|
554
|
+
node = this.connector.interfaces?.find((item) => {
|
|
555
|
+
return this.calleewholeKey.endsWith(item.name);
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
node = (0, service_1.getNodeByNodeCallee)(this.app, this.calleewholeKey, (key, tempPoint) => {
|
|
560
|
+
// 处理 NASL 中未定义的假的节点
|
|
561
|
+
if (key === tempPoint.name) {
|
|
562
|
+
return {
|
|
563
|
+
tempPoint,
|
|
564
|
+
state: 1,
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
const t = tempPoint[key];
|
|
568
|
+
return {
|
|
569
|
+
tempPoint: t,
|
|
570
|
+
state: Array.isArray(t) ? 2 : 1,
|
|
571
|
+
};
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
catch (err) { }
|
|
576
|
+
return node;
|
|
577
|
+
}
|
|
578
|
+
get completeArguments() {
|
|
579
|
+
const node = this.getCallNode();
|
|
580
|
+
let logicParam = [];
|
|
581
|
+
const Arguments = [];
|
|
582
|
+
if (node?.params) {
|
|
583
|
+
logicParam = node.params;
|
|
584
|
+
}
|
|
585
|
+
if (this.arguments?.length) {
|
|
586
|
+
this.arguments.forEach((arg) => {
|
|
587
|
+
if (!arg)
|
|
588
|
+
return;
|
|
589
|
+
const idx = logicParam.findIndex((params) => arg.keyword === params.name);
|
|
590
|
+
const param = logicParam[idx];
|
|
591
|
+
arg.paramRequired = param?.required;
|
|
592
|
+
arg.paramTypeAnnotation = undefined;
|
|
593
|
+
arg.paramDefaultValue = undefined;
|
|
594
|
+
// 取到是不是必填放入参数中
|
|
595
|
+
if (param && !arg.expression) {
|
|
596
|
+
// 非必填时 才会有默认值
|
|
597
|
+
// 因为之前接口这里的必填非必填,一直是有值的,而且不允许修改
|
|
598
|
+
arg.paramTypeAnnotation = param.typeAnnotation;
|
|
599
|
+
arg.paramDefaultValue = param.defaultValue;
|
|
600
|
+
}
|
|
601
|
+
Arguments.push(arg);
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
return Arguments;
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* 反向查找对应 module 和 interface
|
|
608
|
+
*/
|
|
609
|
+
getModuleInterface() {
|
|
610
|
+
if (!this.calleeNamespace || !this.calleeName)
|
|
611
|
+
return {
|
|
612
|
+
_module: null,
|
|
613
|
+
_interface: null,
|
|
614
|
+
};
|
|
615
|
+
const _arr = this.calleewholeKey.split('.');
|
|
616
|
+
const _name = _arr[1];
|
|
617
|
+
const _interfaceName = _arr[3];
|
|
618
|
+
let _module;
|
|
619
|
+
// 由于自定义连接器的引入,目前在 集成中心下也存在着一部分接口
|
|
620
|
+
// 因此,需要额外判断,如果是自定义连接器需要拿 app.connectorDependencies 中的接口或者 app.integration 中connector下面的接口
|
|
621
|
+
const isCustomConnector = this.getAncestor('Connector');
|
|
622
|
+
const isInIntegration = this.getAncestor('Integration');
|
|
623
|
+
if (isCustomConnector && isInIntegration) {
|
|
624
|
+
_module = this.app?.integration?.connectors?.find?.((item) => item.name === _name);
|
|
625
|
+
}
|
|
626
|
+
else if (isCustomConnector && !isInIntegration) {
|
|
627
|
+
_module = this.app?.connectorDependencies?.find?.((item) => item.name === _name);
|
|
628
|
+
}
|
|
629
|
+
else {
|
|
630
|
+
// default
|
|
631
|
+
_module = this.app.interfaceDependencies.find((item) => item.name === _name);
|
|
632
|
+
}
|
|
633
|
+
const _interface = _module?.interfaces.find((item) => item.name === _interfaceName);
|
|
634
|
+
return {
|
|
635
|
+
_module,
|
|
636
|
+
_interface,
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
reNameInterface(itfData, newName, structureNameMap) {
|
|
640
|
+
itfData.name = newName;
|
|
641
|
+
// 全量更新参数引用数据结构名
|
|
642
|
+
// 结构体重命名
|
|
643
|
+
utils.traverse(({ node }) => {
|
|
644
|
+
if (node?.concept === 'TypeAnnotation' && node?.typeKind === 'reference') {
|
|
645
|
+
// typeNamespace 全部统一为当前的连接器
|
|
646
|
+
node.typeNamespace = `connector.${this.connector.name}.structures`;
|
|
647
|
+
node.typeName = structureNameMap.get(node.typeName) || node.typeName;
|
|
648
|
+
}
|
|
649
|
+
}, { node: itfData }, {
|
|
650
|
+
mode: 'anyObject',
|
|
651
|
+
excludedKeySet: new Set(['parentNode', '_events', 'globalDataMap', 'havingPlayground', 'wherePlayground']),
|
|
652
|
+
});
|
|
653
|
+
return itfData;
|
|
654
|
+
}
|
|
655
|
+
// 重新命名数据结构
|
|
656
|
+
reNameStructureAndRetureNamesMap(structuresData, moduleName) {
|
|
657
|
+
const nameMap = new Map();
|
|
658
|
+
structuresData.forEach((structureData) => {
|
|
659
|
+
const { name } = structureData;
|
|
660
|
+
const newName = this.connector.getStructureUniqueName(`${moduleName}__${name}`);
|
|
661
|
+
structureData.name = newName;
|
|
662
|
+
nameMap.set(name, newName);
|
|
663
|
+
});
|
|
664
|
+
structuresData.forEach((structureData) => {
|
|
665
|
+
// 结构体重命名
|
|
666
|
+
utils.traverse(({ node }) => {
|
|
667
|
+
if (node?.concept === 'TypeAnnotation' && node?.typeKind === 'reference') {
|
|
668
|
+
// typeNamespace 全部统一为当前的连接器
|
|
669
|
+
node.typeNamespace = `connector.${this.connector.name}.structures`;
|
|
670
|
+
node.typeName = nameMap.get(node.typeName) || node.typeName;
|
|
671
|
+
}
|
|
672
|
+
}, { node: structureData }, {
|
|
673
|
+
mode: 'anyObject',
|
|
674
|
+
excludedKeySet: new Set(['parentNode', '_events', 'globalDataMap', 'havingPlayground', 'wherePlayground']),
|
|
675
|
+
});
|
|
676
|
+
});
|
|
677
|
+
return nameMap;
|
|
678
|
+
}
|
|
679
|
+
// 导入接口到连接器
|
|
680
|
+
createInterfaceInConnector({ moduleData, selectedModule }) {
|
|
681
|
+
if (!this.connector)
|
|
682
|
+
return;
|
|
683
|
+
const modelName = moduleData.name;
|
|
684
|
+
const itfData = moduleData.interfaces[0];
|
|
685
|
+
const structurseData = moduleData.structures;
|
|
686
|
+
const structureNameMap = this.reNameStructureAndRetureNamesMap(structurseData, modelName);
|
|
687
|
+
const { devDomain } = selectedModule || {};
|
|
688
|
+
if (devDomain) {
|
|
689
|
+
itfData.path = `${devDomain}${itfData.path}`;
|
|
690
|
+
}
|
|
691
|
+
// modelName__itfName
|
|
692
|
+
const targetItfName = this.connector.getInterfaceUniqueName(`${modelName}__${itfData.name}`);
|
|
693
|
+
this.app.emit('collect:start', { actionMsg: '增加接口到连接器' });
|
|
694
|
+
// 不支持 DUBBO 的接口
|
|
695
|
+
const Interface = (0, decorators_1.getConceptConstructor)('Interface');
|
|
696
|
+
const newItf = new Interface(this.reNameInterface(itfData, targetItfName, structureNameMap));
|
|
697
|
+
structurseData.forEach((structureData) => {
|
|
698
|
+
this.connector.addStructure(structureData);
|
|
699
|
+
});
|
|
700
|
+
this.connector.addInterface(newItf);
|
|
701
|
+
this.setCallee(newItf);
|
|
702
|
+
this.app.emit('collect:end');
|
|
703
|
+
}
|
|
704
|
+
// 导入接口
|
|
705
|
+
async createOrUpdateInterface({ moduleData, selectedModule }) {
|
|
706
|
+
const connectorLogic = this.getAncestor('ConnectorLogic');
|
|
707
|
+
// 如果是pipleline逻辑,需要将当前的接口复制一份到连接器下
|
|
708
|
+
// 命名规则为: modelName + interfaceName
|
|
709
|
+
const isInPiple = connectorLogic?.kind === 'pipeline';
|
|
710
|
+
// 鉴权方式,如果是连接器下面的,也需要 进入下面的逻辑
|
|
711
|
+
const isInConnector = this.getAncestor('Connector');
|
|
712
|
+
const isInAuthInterface = this.getAncestor('AuthInterface');
|
|
713
|
+
const isInAuthLogicForCallInterface = this.getAncestor('AuthLogicForCallInterface');
|
|
714
|
+
if (isInPiple || (isInAuthInterface && isInConnector) || (isInAuthLogicForCallInterface && isInConnector)) {
|
|
715
|
+
this.createInterfaceInConnector({ moduleData, selectedModule });
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
const moduleName = moduleData.name;
|
|
719
|
+
const itfData = moduleData.interfaces[0];
|
|
720
|
+
this.app.emit('collect:start', { actionMsg: '调用接口' });
|
|
721
|
+
let module = this.app.interfaceDependencies.find((item) => item.name === moduleName);
|
|
722
|
+
if (!module) {
|
|
723
|
+
module = this.app.addModuleInInterfaceDependencies({
|
|
724
|
+
name: moduleName,
|
|
725
|
+
configuration: moduleData.configuration,
|
|
726
|
+
type: 'interface',
|
|
727
|
+
isAdd: true,
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
// 将依赖库的config添加到APP的config中
|
|
731
|
+
if (selectedModule.appType === 'DUBBO' && moduleData.configuration && moduleData.configuration.groups) {
|
|
732
|
+
const configGroupData = moduleData.configuration.groups[0];
|
|
733
|
+
if (configGroupData) {
|
|
734
|
+
const configGroup = this.app.configuration.getGroup(configGroupData.name);
|
|
735
|
+
if (configGroup) {
|
|
736
|
+
const propertyData = configGroupData.properties[0];
|
|
737
|
+
if (propertyData) {
|
|
738
|
+
const property = configGroup.getProperty(propertyData.name);
|
|
739
|
+
// 已导入的不覆盖
|
|
740
|
+
if (!property) {
|
|
741
|
+
configGroup.addConfigProperty(propertyData);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
let targetItf = module.interfaces.find((item) => item.name === itfData.name);
|
|
748
|
+
// 根据 targetItf 是否是AuthInterface 来确定生成什么类型的接口
|
|
749
|
+
let newItf;
|
|
750
|
+
const AuthInterface = (0, decorators_1.getConceptConstructor)('AuthInterface');
|
|
751
|
+
const Interface = (0, decorators_1.getConceptConstructor)('Interface');
|
|
752
|
+
if (targetItf && targetItf.concept === 'AuthInterface') {
|
|
753
|
+
newItf = new AuthInterface({
|
|
754
|
+
...itfData,
|
|
755
|
+
authLogic: targetItf.authLogic,
|
|
756
|
+
concept: targetItf.concept,
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
else {
|
|
760
|
+
newItf = new Interface(itfData);
|
|
761
|
+
}
|
|
762
|
+
if (targetItf) {
|
|
763
|
+
// 更新已有接口
|
|
764
|
+
targetItf.update(newItf.toJSON());
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
targetItf = newItf;
|
|
768
|
+
module.addInterface(targetItf);
|
|
769
|
+
}
|
|
770
|
+
// 计算之前选择的接口的引用次数
|
|
771
|
+
let oldItf;
|
|
772
|
+
if (this.calleeKey !== '__IDENTIFIER__') {
|
|
773
|
+
oldItf = this.getCallNode();
|
|
774
|
+
if (oldItf) {
|
|
775
|
+
let refCount = 0;
|
|
776
|
+
let isSelfRef = false;
|
|
777
|
+
let isSameItf = false;
|
|
778
|
+
if (selectedModule.appCode === oldItf.parentNode.name && newItf.name === oldItf.name) {
|
|
779
|
+
isSameItf = true;
|
|
780
|
+
}
|
|
781
|
+
const refs = await oldItf.findUsage();
|
|
782
|
+
refs.forEach((val) => {
|
|
783
|
+
const loopFindNode = (item) => {
|
|
784
|
+
if (item.children) {
|
|
785
|
+
item.children.forEach((i) => loopFindNode(i));
|
|
786
|
+
}
|
|
787
|
+
else {
|
|
788
|
+
refCount++;
|
|
789
|
+
if (item.node === this) {
|
|
790
|
+
isSelfRef = true;
|
|
791
|
+
}
|
|
792
|
+
else if (isSameItf) {
|
|
793
|
+
item.node.setCallee?.(targetItf);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
loopFindNode(val);
|
|
798
|
+
});
|
|
799
|
+
// 之前选的接口不存在时则删除
|
|
800
|
+
// if (selectedModule.appCode === oldItf.parentNode.name && selectedModule.apis && !selectedModule.apis.find((api) => api.apiCode === oldItf.name)) {
|
|
801
|
+
// oldItf.delete();
|
|
802
|
+
// } else {
|
|
803
|
+
// 仅被自己引用则删除
|
|
804
|
+
if (!isSameItf && isSelfRef && refCount === 1) {
|
|
805
|
+
// 删除旧的数据结构
|
|
806
|
+
const shouldDeleteStructures = [];
|
|
807
|
+
const structureMap = oldItf.module.getInterfaceStructureMap();
|
|
808
|
+
structureMap.forEach((itfs, stru) => {
|
|
809
|
+
if (itfs.size === 1 && itfs.has(oldItf)) {
|
|
810
|
+
shouldDeleteStructures.push(stru);
|
|
811
|
+
}
|
|
812
|
+
});
|
|
813
|
+
shouldDeleteStructures.forEach((s) => s.delete());
|
|
814
|
+
oldItf.delete();
|
|
815
|
+
oldItf.afterDelete();
|
|
816
|
+
}
|
|
817
|
+
// }
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
this.setCallee(targetItf);
|
|
821
|
+
const Structure = (0, decorators_1.getConceptConstructor)('Structure');
|
|
822
|
+
const oldStructuresSet = targetItf.getRefStructures(targetItf.module.structures);
|
|
823
|
+
// 递归找出 response/request 的 Body/Returns 引用的数据结构
|
|
824
|
+
const newStructuresSet = targetItf.getRefStructures(moduleData.structures);
|
|
825
|
+
// 新导入的数据结构在系统中已存在时 提前进行删除
|
|
826
|
+
newStructuresSet.forEach((stru) => {
|
|
827
|
+
const target = targetItf.module.structures.find((node) => node.name === stru.name);
|
|
828
|
+
if (target) {
|
|
829
|
+
oldStructuresSet.add(target);
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
// 删除旧的数据结构
|
|
833
|
+
oldStructuresSet.forEach((s) => s.delete());
|
|
834
|
+
newStructuresSet.forEach((s) => module.addStructure(Structure.from(s)));
|
|
835
|
+
this.app.emit('collect:end');
|
|
836
|
+
}
|
|
837
|
+
get integration() {
|
|
838
|
+
return this.getAncestor('Integration');
|
|
839
|
+
}
|
|
840
|
+
getQuickInfoOffset(range, getCode) {
|
|
841
|
+
return (0, quick_info_1.getCallExpressionQuickInfo)(range, getCode);
|
|
842
|
+
}
|
|
843
|
+
};
|
|
844
|
+
exports.CallInterface = CallInterface;
|
|
845
|
+
__decorate([
|
|
846
|
+
(0, decorators_1.property)()
|
|
847
|
+
// @ts-ignore
|
|
848
|
+
], CallInterface.prototype, "concept", void 0);
|
|
849
|
+
__decorate([
|
|
850
|
+
(0, decorators_1.property)()
|
|
851
|
+
], CallInterface.prototype, "calleeNamespace", void 0);
|
|
852
|
+
__decorate([
|
|
853
|
+
(0, decorators_1.property)()
|
|
854
|
+
], CallInterface.prototype, "calleeName", void 0);
|
|
855
|
+
__decorate([
|
|
856
|
+
(0, decorators_1.property)()
|
|
857
|
+
], CallInterface.prototype, "shortcut", void 0);
|
|
858
|
+
__decorate([
|
|
859
|
+
(0, decorators_1.property)({
|
|
860
|
+
objectRef: 'Argument',
|
|
861
|
+
isArray: true,
|
|
862
|
+
defaultValue: [],
|
|
863
|
+
})
|
|
864
|
+
], CallInterface.prototype, "arguments", void 0);
|
|
865
|
+
__decorate([
|
|
866
|
+
nasl_translator_1.withSourceMapGenerator
|
|
867
|
+
], CallInterface.prototype, "toEmbeddedTS", null);
|
|
868
|
+
__decorate([
|
|
869
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
870
|
+
], CallInterface.prototype, "toNaturalTS", null);
|
|
871
|
+
__decorate([
|
|
872
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
873
|
+
], CallInterface.prototype, "toTextualNASL", null);
|
|
874
|
+
exports.CallInterface = CallInterface = CallInterface_1 = __decorate([
|
|
875
|
+
(0, decorators_1.concept)('调用接口')
|
|
876
|
+
], CallInterface);
|
|
877
|
+
exports.default = CallInterface;
|
|
878
|
+
//================================================================================
|
|
879
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
880
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
881
|
+
//================================================================================
|
|
882
|
+
//# sourceMappingURL=CallInterface__.js.map
|