@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,1227 @@
|
|
|
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 CallQueryComponent_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.CallQueryComponent = void 0;
|
|
37
|
+
const utils_1 = require("../utils");
|
|
38
|
+
const nasl_translator_1 = require("@lcap/nasl-translator");
|
|
39
|
+
const decorators_1 = require("../decorators");
|
|
40
|
+
const utils = __importStar(require("../utils"));
|
|
41
|
+
const asserts = __importStar(require("./utils/asserts"));
|
|
42
|
+
const LogicItem__1 = __importDefault(require("./LogicItem__"));
|
|
43
|
+
/**
|
|
44
|
+
* 数据查询
|
|
45
|
+
*/
|
|
46
|
+
let CallQueryComponent = class CallQueryComponent extends LogicItem__1.default {
|
|
47
|
+
static { CallQueryComponent_1 = this; }
|
|
48
|
+
/** 类名 */
|
|
49
|
+
static { this.ConceptName = 'CallQueryComponent'; }
|
|
50
|
+
/**
|
|
51
|
+
* 是否为抽象类
|
|
52
|
+
* 抽象类不能产生 concept: string
|
|
53
|
+
*/
|
|
54
|
+
static { this.isAbstract = false; }
|
|
55
|
+
/** 继承链 */
|
|
56
|
+
static { this.inheritanceChain = ['LogicItem', 'BaseNode']; }
|
|
57
|
+
/**
|
|
58
|
+
* @param source 需要合并的部分参数
|
|
59
|
+
*/
|
|
60
|
+
constructor(source) {
|
|
61
|
+
source = Object.assign({}, CallQueryComponent_1.getDefaultOptions(), source);
|
|
62
|
+
super(source);
|
|
63
|
+
/**
|
|
64
|
+
* groupBy
|
|
65
|
+
*/
|
|
66
|
+
this.groupBy = [];
|
|
67
|
+
/**
|
|
68
|
+
* orderBy
|
|
69
|
+
*/
|
|
70
|
+
this.orderBy = [];
|
|
71
|
+
super.subConstructor(source);
|
|
72
|
+
}
|
|
73
|
+
static from(source, parentNode, parentKey) {
|
|
74
|
+
return super.from(source, parentNode, parentKey);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 设置select
|
|
78
|
+
*/
|
|
79
|
+
setSelect(select) {
|
|
80
|
+
select._delete();
|
|
81
|
+
const relationOptions = { parentNode: this, parentKey: 'select' };
|
|
82
|
+
Object.assign(select, relationOptions);
|
|
83
|
+
const object = {
|
|
84
|
+
select,
|
|
85
|
+
};
|
|
86
|
+
this.update({
|
|
87
|
+
...object,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 设置from
|
|
92
|
+
*/
|
|
93
|
+
setFrom(from) {
|
|
94
|
+
from._delete();
|
|
95
|
+
const relationOptions = { parentNode: this, parentKey: 'from' };
|
|
96
|
+
Object.assign(from, relationOptions);
|
|
97
|
+
const object = {
|
|
98
|
+
from,
|
|
99
|
+
};
|
|
100
|
+
this.update({
|
|
101
|
+
...object,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 设置where
|
|
106
|
+
*/
|
|
107
|
+
setWhere(where) {
|
|
108
|
+
where._delete();
|
|
109
|
+
const relationOptions = { parentNode: this, parentKey: 'where' };
|
|
110
|
+
Object.assign(where, relationOptions);
|
|
111
|
+
const object = {
|
|
112
|
+
where,
|
|
113
|
+
};
|
|
114
|
+
this.update({
|
|
115
|
+
...object,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 设置groupBy
|
|
120
|
+
*/
|
|
121
|
+
setGroupBy(groupBy) {
|
|
122
|
+
const object = {
|
|
123
|
+
groupBy,
|
|
124
|
+
};
|
|
125
|
+
this.update({
|
|
126
|
+
...object,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 设置having
|
|
131
|
+
*/
|
|
132
|
+
setHaving(having) {
|
|
133
|
+
having._delete();
|
|
134
|
+
const relationOptions = { parentNode: this, parentKey: 'having' };
|
|
135
|
+
Object.assign(having, relationOptions);
|
|
136
|
+
const object = {
|
|
137
|
+
having,
|
|
138
|
+
};
|
|
139
|
+
this.update({
|
|
140
|
+
...object,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 设置orderBy
|
|
145
|
+
*/
|
|
146
|
+
setOrderBy(orderBy) {
|
|
147
|
+
const object = {
|
|
148
|
+
orderBy,
|
|
149
|
+
};
|
|
150
|
+
this.update({
|
|
151
|
+
...object,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* 设置limit
|
|
156
|
+
*/
|
|
157
|
+
setLimit(limit) {
|
|
158
|
+
limit._delete();
|
|
159
|
+
const relationOptions = { parentNode: this, parentKey: 'limit' };
|
|
160
|
+
Object.assign(limit, relationOptions);
|
|
161
|
+
const object = {
|
|
162
|
+
limit,
|
|
163
|
+
};
|
|
164
|
+
this.update({
|
|
165
|
+
...object,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
_insertItemInWherePlaygroundAt(options, index) {
|
|
169
|
+
const logicItemOptions = {};
|
|
170
|
+
const relationOptions = { parentNode: this, parentKey: 'wherePlayground' };
|
|
171
|
+
const LogicItem = (0, decorators_1.getConceptConstructor)('LogicItem');
|
|
172
|
+
let logicItem;
|
|
173
|
+
if (asserts.isLogicItem(options)) {
|
|
174
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
175
|
+
logicItem = options;
|
|
176
|
+
Object.assign(logicItem, relationOptions);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
logicItem = LogicItem.from({
|
|
180
|
+
...logicItemOptions,
|
|
181
|
+
...options,
|
|
182
|
+
}, this, 'wherePlayground');
|
|
183
|
+
}
|
|
184
|
+
this.wherePlayground.splice(index, 0, logicItem);
|
|
185
|
+
return logicItem;
|
|
186
|
+
}
|
|
187
|
+
insertItemInWherePlaygroundAt(options, index) {
|
|
188
|
+
const node = this._insertItemInWherePlaygroundAt(options, index);
|
|
189
|
+
node.create({
|
|
190
|
+
index,
|
|
191
|
+
parentNode: this,
|
|
192
|
+
parentKey: 'wherePlayground',
|
|
193
|
+
});
|
|
194
|
+
return node;
|
|
195
|
+
}
|
|
196
|
+
_addItemInWherePlayground(options) {
|
|
197
|
+
const index = this.wherePlayground.length;
|
|
198
|
+
return this._insertItemInWherePlaygroundAt(options, index);
|
|
199
|
+
}
|
|
200
|
+
addItemInWherePlayground(options) {
|
|
201
|
+
const node = this._addItemInWherePlayground(options);
|
|
202
|
+
const index = this.wherePlayground.indexOf(node);
|
|
203
|
+
node.create({
|
|
204
|
+
index,
|
|
205
|
+
parentNode: this,
|
|
206
|
+
parentKey: 'wherePlayground',
|
|
207
|
+
});
|
|
208
|
+
return node;
|
|
209
|
+
}
|
|
210
|
+
_insertItemInHavingPlaygroundAt(options, index) {
|
|
211
|
+
const logicItemOptions = {};
|
|
212
|
+
const relationOptions = { parentNode: this, parentKey: 'havingPlayground' };
|
|
213
|
+
const LogicItem = (0, decorators_1.getConceptConstructor)('LogicItem');
|
|
214
|
+
let logicItem;
|
|
215
|
+
if (asserts.isLogicItem(options)) {
|
|
216
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
217
|
+
logicItem = options;
|
|
218
|
+
Object.assign(logicItem, relationOptions);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
logicItem = LogicItem.from({
|
|
222
|
+
...logicItemOptions,
|
|
223
|
+
...options,
|
|
224
|
+
}, this, 'havingPlayground');
|
|
225
|
+
}
|
|
226
|
+
this.havingPlayground.splice(index, 0, logicItem);
|
|
227
|
+
return logicItem;
|
|
228
|
+
}
|
|
229
|
+
insertItemInHavingPlaygroundAt(options, index) {
|
|
230
|
+
const node = this._insertItemInHavingPlaygroundAt(options, index);
|
|
231
|
+
node.create({
|
|
232
|
+
index,
|
|
233
|
+
parentNode: this,
|
|
234
|
+
parentKey: 'havingPlayground',
|
|
235
|
+
});
|
|
236
|
+
return node;
|
|
237
|
+
}
|
|
238
|
+
_addItemInHavingPlayground(options) {
|
|
239
|
+
const index = this.havingPlayground.length;
|
|
240
|
+
return this._insertItemInHavingPlaygroundAt(options, index);
|
|
241
|
+
}
|
|
242
|
+
addItemInHavingPlayground(options) {
|
|
243
|
+
const node = this._addItemInHavingPlayground(options);
|
|
244
|
+
const index = this.havingPlayground.indexOf(node);
|
|
245
|
+
node.create({
|
|
246
|
+
index,
|
|
247
|
+
parentNode: this,
|
|
248
|
+
parentKey: 'havingPlayground',
|
|
249
|
+
});
|
|
250
|
+
return node;
|
|
251
|
+
}
|
|
252
|
+
_insertQueryGroupByExpressionAt(options, index) {
|
|
253
|
+
const queryGroupByExpressionOptions = {};
|
|
254
|
+
const relationOptions = { parentNode: this, parentKey: 'groupBy' };
|
|
255
|
+
const QueryGroupByExpression = (0, decorators_1.getConceptConstructor)('QueryGroupByExpression');
|
|
256
|
+
let queryGroupByExpression;
|
|
257
|
+
if (asserts.isQueryGroupByExpression(options)) {
|
|
258
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
259
|
+
queryGroupByExpression = options;
|
|
260
|
+
Object.assign(queryGroupByExpression, relationOptions);
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
queryGroupByExpression = QueryGroupByExpression.from({
|
|
264
|
+
...queryGroupByExpressionOptions,
|
|
265
|
+
...options,
|
|
266
|
+
}, this, 'groupBy');
|
|
267
|
+
}
|
|
268
|
+
this.groupBy.splice(index, 0, queryGroupByExpression);
|
|
269
|
+
return queryGroupByExpression;
|
|
270
|
+
}
|
|
271
|
+
insertQueryGroupByExpressionAt(options, index) {
|
|
272
|
+
const node = this._insertQueryGroupByExpressionAt(options, index);
|
|
273
|
+
node.create({
|
|
274
|
+
index,
|
|
275
|
+
parentNode: this,
|
|
276
|
+
parentKey: 'groupBy',
|
|
277
|
+
});
|
|
278
|
+
return node;
|
|
279
|
+
}
|
|
280
|
+
_addQueryGroupByExpression(options) {
|
|
281
|
+
const index = this.groupBy.length;
|
|
282
|
+
return this._insertQueryGroupByExpressionAt(options, index);
|
|
283
|
+
}
|
|
284
|
+
addQueryGroupByExpression(options) {
|
|
285
|
+
const node = this._addQueryGroupByExpression(options);
|
|
286
|
+
const index = this.groupBy.indexOf(node);
|
|
287
|
+
node.create({
|
|
288
|
+
index,
|
|
289
|
+
parentNode: this,
|
|
290
|
+
parentKey: 'groupBy',
|
|
291
|
+
});
|
|
292
|
+
return node;
|
|
293
|
+
}
|
|
294
|
+
_insertQueryOrderByExpressionAt(options, index) {
|
|
295
|
+
const queryOrderByExpressionOptions = {};
|
|
296
|
+
const relationOptions = { parentNode: this, parentKey: 'orderBy' };
|
|
297
|
+
const QueryOrderByExpression = (0, decorators_1.getConceptConstructor)('QueryOrderByExpression');
|
|
298
|
+
let queryOrderByExpression;
|
|
299
|
+
if (asserts.isQueryOrderByExpression(options)) {
|
|
300
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
301
|
+
queryOrderByExpression = options;
|
|
302
|
+
Object.assign(queryOrderByExpression, relationOptions);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
queryOrderByExpression = QueryOrderByExpression.from({
|
|
306
|
+
...queryOrderByExpressionOptions,
|
|
307
|
+
...options,
|
|
308
|
+
}, this, 'orderBy');
|
|
309
|
+
}
|
|
310
|
+
this.orderBy.splice(index, 0, queryOrderByExpression);
|
|
311
|
+
return queryOrderByExpression;
|
|
312
|
+
}
|
|
313
|
+
insertQueryOrderByExpressionAt(options, index) {
|
|
314
|
+
const node = this._insertQueryOrderByExpressionAt(options, index);
|
|
315
|
+
node.create({
|
|
316
|
+
index,
|
|
317
|
+
parentNode: this,
|
|
318
|
+
parentKey: 'orderBy',
|
|
319
|
+
});
|
|
320
|
+
return node;
|
|
321
|
+
}
|
|
322
|
+
_addQueryOrderByExpression(options) {
|
|
323
|
+
const index = this.orderBy.length;
|
|
324
|
+
return this._insertQueryOrderByExpressionAt(options, index);
|
|
325
|
+
}
|
|
326
|
+
addQueryOrderByExpression(options) {
|
|
327
|
+
const node = this._addQueryOrderByExpression(options);
|
|
328
|
+
const index = this.orderBy.indexOf(node);
|
|
329
|
+
node.create({
|
|
330
|
+
index,
|
|
331
|
+
parentNode: this,
|
|
332
|
+
parentKey: 'orderBy',
|
|
333
|
+
});
|
|
334
|
+
return node;
|
|
335
|
+
}
|
|
336
|
+
removeItemInWherePlayground(options) {
|
|
337
|
+
let logicItem = options;
|
|
338
|
+
return logicItem.delete();
|
|
339
|
+
}
|
|
340
|
+
removeItemInHavingPlayground(options) {
|
|
341
|
+
let logicItem = options;
|
|
342
|
+
return logicItem.delete();
|
|
343
|
+
}
|
|
344
|
+
removeQueryGroupByExpression(options) {
|
|
345
|
+
let queryGroupByExpression = options;
|
|
346
|
+
return queryGroupByExpression.delete();
|
|
347
|
+
}
|
|
348
|
+
removeQueryOrderByExpression(options) {
|
|
349
|
+
let queryOrderByExpression = options;
|
|
350
|
+
return queryOrderByExpression.delete();
|
|
351
|
+
}
|
|
352
|
+
//================================================================================
|
|
353
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
354
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
355
|
+
//================================================================================
|
|
356
|
+
/**
|
|
357
|
+
* 获取添加时的默认选项
|
|
358
|
+
* @returns
|
|
359
|
+
*/
|
|
360
|
+
static getDefaultOptions() {
|
|
361
|
+
return {
|
|
362
|
+
kind: 'Statement',
|
|
363
|
+
concept: 'CallQueryComponent',
|
|
364
|
+
label: '数据查询',
|
|
365
|
+
select: {
|
|
366
|
+
concept: 'QuerySelectExpression',
|
|
367
|
+
label: '查询组件Select子句',
|
|
368
|
+
distinct: false,
|
|
369
|
+
star: true,
|
|
370
|
+
selectElements: [],
|
|
371
|
+
},
|
|
372
|
+
from: null,
|
|
373
|
+
where: null,
|
|
374
|
+
groupBy: [],
|
|
375
|
+
having: null,
|
|
376
|
+
orderBy: [],
|
|
377
|
+
limit: null,
|
|
378
|
+
// limit: {
|
|
379
|
+
// concept: 'QueryLimitExpression',
|
|
380
|
+
// label: '查询组件Limit子句',
|
|
381
|
+
// pageElement: {
|
|
382
|
+
// concept: 'NumericLiteral',
|
|
383
|
+
// value: 1,
|
|
384
|
+
// },
|
|
385
|
+
// pageSizeElement: {
|
|
386
|
+
// concept: 'NumericLiteral',
|
|
387
|
+
// value: 1000,
|
|
388
|
+
// },
|
|
389
|
+
// },
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
*toEmbeddedTSOfSubPart(key, list, options) {
|
|
393
|
+
let { code, state, multipleErrorType } = options;
|
|
394
|
+
if (list.length === 0)
|
|
395
|
+
return code;
|
|
396
|
+
code += `${(0, nasl_translator_1.indent)((state?.tabSize || 0) + 1)}.${key}(() => `;
|
|
397
|
+
yield* (0, utils_1.wrapForEachToGenerator)(list, function* wrapForEach(item, index) {
|
|
398
|
+
if (index > 0)
|
|
399
|
+
code += `,\n${(0, nasl_translator_1.indent)((state?.tabSize || 0) + 2)}() => `;
|
|
400
|
+
code += yield* item?.toEmbeddedTS?.((0, nasl_translator_1.shiftState)(state, code, { tabSize: 0 })) ?? (0, utils_1.returnOrigin)('');
|
|
401
|
+
});
|
|
402
|
+
if (list.length > 1) {
|
|
403
|
+
if (multipleErrorType)
|
|
404
|
+
code += `,\n${(0, nasl_translator_1.indent)((state?.tabSize || 0) + 2)}() => ${multipleErrorType}`;
|
|
405
|
+
code += `\n${(0, nasl_translator_1.indent)((state?.tabSize || 0) + 1)}`;
|
|
406
|
+
}
|
|
407
|
+
code += ')\n';
|
|
408
|
+
return code;
|
|
409
|
+
}
|
|
410
|
+
entityNames() {
|
|
411
|
+
const entityNames = this.entityInfos.map(({ namespace, name }) => {
|
|
412
|
+
const namespaceArr = namespace?.split('.') || [];
|
|
413
|
+
const keywordDataSourceIndex = utils.findConceptKeyWordIndexFromNamespace(namespace, 'dataSources');
|
|
414
|
+
const dataSourceName = keywordDataSourceIndex !== -1 ? namespaceArr[keywordDataSourceIndex + 1] : '';
|
|
415
|
+
const names = [name];
|
|
416
|
+
if (dataSourceName) {
|
|
417
|
+
names.unshift(dataSourceName);
|
|
418
|
+
}
|
|
419
|
+
return names.join('.');
|
|
420
|
+
});
|
|
421
|
+
const lines = [];
|
|
422
|
+
const fontCount = 60;
|
|
423
|
+
const entityNamesStr = entityNames.join(',') || '-';
|
|
424
|
+
for (let i = 0; i < entityNamesStr.length; i += fontCount) {
|
|
425
|
+
lines.push(entityNamesStr.slice(i, i + fontCount));
|
|
426
|
+
}
|
|
427
|
+
return lines;
|
|
428
|
+
}
|
|
429
|
+
toUI(state, hideDetails) {
|
|
430
|
+
let code = '';
|
|
431
|
+
code += `数据查询(数据源:${this.entityNames()})`;
|
|
432
|
+
return code;
|
|
433
|
+
}
|
|
434
|
+
toJS() {
|
|
435
|
+
return '';
|
|
436
|
+
// const { entityName } = this.from;
|
|
437
|
+
// return `await this.$services["_custom"]["load${entityName}"]({
|
|
438
|
+
// config: {
|
|
439
|
+
// download: false,
|
|
440
|
+
// },
|
|
441
|
+
// path: {},
|
|
442
|
+
// query: {},
|
|
443
|
+
// headers: {},
|
|
444
|
+
// body: {
|
|
445
|
+
// },
|
|
446
|
+
// })`;
|
|
447
|
+
}
|
|
448
|
+
// 2.11版本,自动推断返回类型
|
|
449
|
+
isAutoInfer() {
|
|
450
|
+
return this.ideVersion === '2.11' || this.ideVersion === '2.22';
|
|
451
|
+
}
|
|
452
|
+
// 2.22版本,实体支持列筛选 2.11版本不支持列筛选,需要运维select.selectElements
|
|
453
|
+
get entityPropertySelectable() {
|
|
454
|
+
return this.ideVersion === '2.22';
|
|
455
|
+
}
|
|
456
|
+
*toEmbeddedTS(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
457
|
+
const self = this;
|
|
458
|
+
if (!self.typeAnnotation)
|
|
459
|
+
return `(function () {
|
|
460
|
+
return;
|
|
461
|
+
})()`;
|
|
462
|
+
let code = `(function(): `;
|
|
463
|
+
if (self.isAutoInfer()) {
|
|
464
|
+
code += `${yield* self.typeAnnotation.toEmbeddedTS((0, nasl_translator_1.shiftState)(state, code))} {\n`;
|
|
465
|
+
}
|
|
466
|
+
else {
|
|
467
|
+
code += `{ list: nasl.collection.List<`;
|
|
468
|
+
code += `${yield* self.typeAnnotation.toEmbeddedTS((0, nasl_translator_1.shiftState)(state, code))}>, total: nasl.core.Long } {\n`;
|
|
469
|
+
}
|
|
470
|
+
// 2.11版本后 分组使用别名
|
|
471
|
+
if (self.isAutoInfer()) {
|
|
472
|
+
// 分组别名(列别名)
|
|
473
|
+
yield* (0, utils_1.wrapForEachToGenerator)(self.groupBy, function* warpForEachGenerator(item, index, array) {
|
|
474
|
+
code += (0, nasl_translator_1.indent)(state.tabSize + 1);
|
|
475
|
+
const groupElement = item.groupElement;
|
|
476
|
+
if (groupElement.asName)
|
|
477
|
+
code += `const __${groupElement.asName} = `;
|
|
478
|
+
if (groupElement.propertyName) {
|
|
479
|
+
code += yield* groupElement.toEmbeddedTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: 0 }));
|
|
480
|
+
code += ';\n';
|
|
481
|
+
}
|
|
482
|
+
else
|
|
483
|
+
code += `__EMPTY_GROUP_BY_NAME__;\n`;
|
|
484
|
+
if (index === array.length - 1)
|
|
485
|
+
code += '\n';
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
// 聚合属性别名
|
|
489
|
+
yield* (0, utils_1.wrapForEachToGenerator)(self.select.selectAggregateElements, function* warpForEachGenerator(item, index, array) {
|
|
490
|
+
code += (0, nasl_translator_1.indent)((state?.tabSize || 0) + 1);
|
|
491
|
+
const { asName, aggregateName, aggregateParam } = item;
|
|
492
|
+
if (asName)
|
|
493
|
+
code += `const __${asName} = `;
|
|
494
|
+
if (aggregateName) {
|
|
495
|
+
code += `nasl.langUtil.${aggregateName}(`;
|
|
496
|
+
code += yield* aggregateParam.toEmbeddedTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: 0 }));
|
|
497
|
+
code += ');\n';
|
|
498
|
+
}
|
|
499
|
+
else
|
|
500
|
+
code += `__EMPTY_AGGREGATE_NAME__;\n`;
|
|
501
|
+
if (index === array.length - 1)
|
|
502
|
+
code += '\n';
|
|
503
|
+
});
|
|
504
|
+
if (self.from)
|
|
505
|
+
code += yield* self.from.toEmbeddedTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: (state?.tabSize || 0) + 1 }));
|
|
506
|
+
else
|
|
507
|
+
code += `${(0, nasl_translator_1.indent)((state?.tabSize || 0) + 1)}nasl.langUtil.FROM()\n`;
|
|
508
|
+
// where 子句
|
|
509
|
+
code = yield* self.toEmbeddedTSOfSubPart('WHERE', self.where ? [self.where] : [], {
|
|
510
|
+
code,
|
|
511
|
+
state,
|
|
512
|
+
multipleErrorType: '__WHERE_MULTIPLE_CONDITION__',
|
|
513
|
+
});
|
|
514
|
+
// 聚合属性 & select实体字段
|
|
515
|
+
if (self.select.selectElements.length) {
|
|
516
|
+
code = yield* self.toEmbeddedTSOfSubPart('SELECT', self.select.selectElements, {
|
|
517
|
+
code,
|
|
518
|
+
state,
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
// 分组属性(Group by)
|
|
522
|
+
code = yield* self.toEmbeddedTSOfSubPart('GROUP_BY', self.groupBy, {
|
|
523
|
+
code,
|
|
524
|
+
state,
|
|
525
|
+
});
|
|
526
|
+
// 聚合属性过滤(Having)
|
|
527
|
+
code = yield* self.toEmbeddedTSOfSubPart('HAVING', self.having ? [self.having] : [], {
|
|
528
|
+
code,
|
|
529
|
+
state,
|
|
530
|
+
multipleErrorType: '__HAVING_MULTIPLE_CONDITION__',
|
|
531
|
+
});
|
|
532
|
+
// 排序规则
|
|
533
|
+
code = yield* self.toEmbeddedTSOfSubPart('ORDER_BY', self.orderBy, {
|
|
534
|
+
code,
|
|
535
|
+
state,
|
|
536
|
+
});
|
|
537
|
+
code += '\n';
|
|
538
|
+
code += `${(0, nasl_translator_1.indent)((state?.tabSize || 0) + 1)}return;\n`;
|
|
539
|
+
code += `${(0, nasl_translator_1.indent)(state?.tabSize || 0)}})()`;
|
|
540
|
+
if (self.parentNode.concept !== 'Argument' &&
|
|
541
|
+
self.parentKey !== 'test' &&
|
|
542
|
+
self.parentKey !== 'patterns' &&
|
|
543
|
+
self.parentNode.concept !== 'Assignment' &&
|
|
544
|
+
self.parentNode.concept !== 'ForEachStatement' &&
|
|
545
|
+
self.parentNode.concept !== 'SelectMembers' &&
|
|
546
|
+
self.parentNode.concept !== 'UnaryExpression' &&
|
|
547
|
+
self.parentNode.concept !== 'BinaryExpression' &&
|
|
548
|
+
self.parentNode.concept !== 'StringInterpolation' &&
|
|
549
|
+
self.parentNode.concept !== 'MemberExpression' &&
|
|
550
|
+
['NewMap', 'NewList'].includes(self.parentNode.concept) &&
|
|
551
|
+
self.parentKey !== 'returnExpression') {
|
|
552
|
+
code += ';';
|
|
553
|
+
}
|
|
554
|
+
code += '\n';
|
|
555
|
+
return code;
|
|
556
|
+
}
|
|
557
|
+
genPropertiesFrom(node, properties = []) {
|
|
558
|
+
if (!node)
|
|
559
|
+
return [];
|
|
560
|
+
const { entityName } = node;
|
|
561
|
+
const { entityNamespace } = node;
|
|
562
|
+
const TypeAnnotation = (0, decorators_1.getConceptConstructor)('TypeAnnotation');
|
|
563
|
+
const StructureProperty = (0, decorators_1.getConceptConstructor)('StructureProperty');
|
|
564
|
+
// 生成整个实体类型 { entity1: Entity1 } 在2.11属于默认情况;在2.22勾选实体节点(isDotStar=true)时
|
|
565
|
+
if (!this.entityPropertySelectable ||
|
|
566
|
+
this.select.selectFieldElements.some((item) => item.entityAsName === entityName && item.isDotStar)) {
|
|
567
|
+
properties.push(StructureProperty.from({
|
|
568
|
+
name: utils.firstLowerCase(entityName),
|
|
569
|
+
typeAnnotation: TypeAnnotation.from({
|
|
570
|
+
concept: 'TypeAnnotation',
|
|
571
|
+
typeKind: 'reference',
|
|
572
|
+
typeName: entityName,
|
|
573
|
+
typeNamespace: entityNamespace,
|
|
574
|
+
}),
|
|
575
|
+
}));
|
|
576
|
+
}
|
|
577
|
+
else if (this.select.selectFieldElements.some((item) => item.entityAsName === entityName && item.propertyName)) {
|
|
578
|
+
// 2.22 选择字段时,生成选择字段的匿名数据结构 { entity1: { prop1, prop2 } }
|
|
579
|
+
const entity = this.app.findNodeByCompleteName(`${entityNamespace}.${entityName}`);
|
|
580
|
+
entity &&
|
|
581
|
+
properties.push(StructureProperty.from({
|
|
582
|
+
name: utils.firstLowerCase(entityName),
|
|
583
|
+
typeAnnotation: TypeAnnotation.from({
|
|
584
|
+
concept: 'TypeAnnotation',
|
|
585
|
+
typeKind: 'anonymousStructure',
|
|
586
|
+
properties: this.select.selectFieldElements
|
|
587
|
+
.filter((sel) => sel.entityAsName === entityName && sel.propertyName)
|
|
588
|
+
.map((item) => {
|
|
589
|
+
const property = entity.properties.find((prop) => prop.name === item.propertyName);
|
|
590
|
+
return (property &&
|
|
591
|
+
StructureProperty.from({
|
|
592
|
+
name: item.propertyName,
|
|
593
|
+
typeAnnotation: TypeAnnotation.from(property.typeAnnotation),
|
|
594
|
+
}));
|
|
595
|
+
})
|
|
596
|
+
.filter(Boolean),
|
|
597
|
+
}),
|
|
598
|
+
}));
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
/* 实体或属性都不选择时,不生成数据结构 */
|
|
602
|
+
}
|
|
603
|
+
for (const sub of node.joinParts) {
|
|
604
|
+
this.genPropertiesFrom(sub, properties);
|
|
605
|
+
}
|
|
606
|
+
return properties;
|
|
607
|
+
}
|
|
608
|
+
genPropertyListOfFrom(node, entities = []) {
|
|
609
|
+
if (!node)
|
|
610
|
+
return [];
|
|
611
|
+
const { entityName } = node;
|
|
612
|
+
const { entityNamespace } = node;
|
|
613
|
+
entities.push({
|
|
614
|
+
concept: 'StructureProperty',
|
|
615
|
+
name: utils.firstLowerCase(entityName),
|
|
616
|
+
typeAnnotation: {
|
|
617
|
+
concept: 'TypeAnnotation',
|
|
618
|
+
typeKind: 'reference',
|
|
619
|
+
typeName: entityName,
|
|
620
|
+
typeNamespace: entityNamespace,
|
|
621
|
+
},
|
|
622
|
+
});
|
|
623
|
+
for (const sub of node.joinParts) {
|
|
624
|
+
this.genPropertyListOfFrom(sub, entities);
|
|
625
|
+
}
|
|
626
|
+
return entities;
|
|
627
|
+
}
|
|
628
|
+
genPropertyListOfAggregate(node, entities) {
|
|
629
|
+
return node.select.selectAggregateElements
|
|
630
|
+
.filter((item) => item.aggregateName && item.asName)
|
|
631
|
+
.map((item) => {
|
|
632
|
+
let typeName;
|
|
633
|
+
if (['COUNT', 'COUNTD'].includes(item.aggregateName)) {
|
|
634
|
+
typeName = 'Long';
|
|
635
|
+
}
|
|
636
|
+
else if (['AVG'].includes(item.aggregateName)) {
|
|
637
|
+
typeName = 'Decimal';
|
|
638
|
+
}
|
|
639
|
+
else {
|
|
640
|
+
const { entityAsName, propertyName } = item.aggregateParam;
|
|
641
|
+
const entity = entities.find((e) => e.name === entityAsName);
|
|
642
|
+
const prop = entity?.properties.find((p) => p.name === propertyName);
|
|
643
|
+
typeName = prop?.typeAnnotation?.typeName;
|
|
644
|
+
}
|
|
645
|
+
return {
|
|
646
|
+
concept: 'StructureProperty',
|
|
647
|
+
name: item.asName,
|
|
648
|
+
typeAnnotation: {
|
|
649
|
+
concept: 'TypeAnnotation',
|
|
650
|
+
typeKind: 'primitive',
|
|
651
|
+
typeNamespace: 'nasl.core',
|
|
652
|
+
typeName,
|
|
653
|
+
},
|
|
654
|
+
};
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
genPropertyListOfGroupBy(node, entities) {
|
|
658
|
+
return node.groupBy
|
|
659
|
+
.filter((item) => item.groupElement &&
|
|
660
|
+
item.groupElement.propertyName &&
|
|
661
|
+
item.groupElement.asName)
|
|
662
|
+
.map((item) => {
|
|
663
|
+
const { entityAsName, propertyName, asName } = item.groupElement;
|
|
664
|
+
const entity = entities.find((item) => item.name === entityAsName);
|
|
665
|
+
const property = entity?.properties.find((item) => item.name === propertyName);
|
|
666
|
+
const propertyTypeAnnotation = property?.typeAnnotation;
|
|
667
|
+
return {
|
|
668
|
+
concept: 'StructureProperty',
|
|
669
|
+
name: asName,
|
|
670
|
+
typeAnnotation: {
|
|
671
|
+
concept: propertyTypeAnnotation.concept,
|
|
672
|
+
typeKind: propertyTypeAnnotation.typeKind,
|
|
673
|
+
typeName: propertyTypeAnnotation.typeName,
|
|
674
|
+
typeNamespace: propertyTypeAnnotation.typeNamespace,
|
|
675
|
+
},
|
|
676
|
+
};
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
genStructure(structureName, properties = []) {
|
|
680
|
+
const logic = this.logic || this.AuthLogic || this.AuthLogicForCallInterface;
|
|
681
|
+
const Structure = (0, decorators_1.getConceptConstructor)('Structure');
|
|
682
|
+
return Structure.from({
|
|
683
|
+
concept: 'Structure',
|
|
684
|
+
name: structureName || this.typeAnnotation?.typeName || `${utils.firstUpperCase(logic.name)}Structure`,
|
|
685
|
+
origin: 'CallQueryComponent',
|
|
686
|
+
properties,
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
saveStructure() {
|
|
690
|
+
// 没有数据源时不初始化数据结构
|
|
691
|
+
if (!this.entityInfos.length) {
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
694
|
+
const entityNamespace = this.from?.entityNamespace;
|
|
695
|
+
const entities = this.app.findNodeByCompleteName(entityNamespace);
|
|
696
|
+
if (!this.isAutoInfer()) {
|
|
697
|
+
// 存量应用走之前的逻辑
|
|
698
|
+
return this.saveStructureNoInfer(entities);
|
|
699
|
+
}
|
|
700
|
+
const { groupBy } = this;
|
|
701
|
+
const selectElements = this.select.selectAggregateElements;
|
|
702
|
+
const TypeAnnotation = (0, decorators_1.getConceptConstructor)('TypeAnnotation');
|
|
703
|
+
const StructureProperty = (0, decorators_1.getConceptConstructor)('StructureProperty');
|
|
704
|
+
let structureName;
|
|
705
|
+
let typeAnnotation;
|
|
706
|
+
// remove structure
|
|
707
|
+
if (this.typeAnnotation) {
|
|
708
|
+
const { typeNamespace, typeName, typeArguments } = this.typeAnnotation;
|
|
709
|
+
if (typeNamespace === 'app.structures') {
|
|
710
|
+
structureName = typeName;
|
|
711
|
+
this.removeStructure(structureName);
|
|
712
|
+
}
|
|
713
|
+
else if (typeNamespace === 'nasl.collection' && typeName === 'PageOf') {
|
|
714
|
+
// PageOf<Structures>
|
|
715
|
+
if (typeArguments[0].typeNamespace === 'app.structures') {
|
|
716
|
+
structureName = typeArguments[0].typeName;
|
|
717
|
+
this.removeStructure(structureName);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
const logic = this.logic || this.AuthLogic || this.AuthLogicForCallInterface || this.OverriddenLogic;
|
|
722
|
+
structureName =
|
|
723
|
+
structureName ||
|
|
724
|
+
utils.unique(`${utils.firstUpperCase(logic?.name)}Structure`, this.app.getStructureExistingNames());
|
|
725
|
+
const groupByLength = groupBy.filter((item) => item.groupElement?.propertyName && item.groupElement.asName).length;
|
|
726
|
+
const aggregateLength = selectElements.filter((item) => item.aggregateName && item.asName).length;
|
|
727
|
+
// 1. 有分组
|
|
728
|
+
if (groupByLength) {
|
|
729
|
+
if (!aggregateLength && groupByLength === 1) {
|
|
730
|
+
// 1.1 单分组无聚合:`List<列的类型>`
|
|
731
|
+
const { entityAsName, propertyName } = groupBy[0].groupElement;
|
|
732
|
+
const entity = entities.find((item) => item.name === entityAsName);
|
|
733
|
+
const property = entity?.properties.find((item) => item.name === propertyName);
|
|
734
|
+
const propertyTypeAnnotation = property.typeAnnotation;
|
|
735
|
+
typeAnnotation = TypeAnnotation.from({
|
|
736
|
+
concept: 'TypeAnnotation',
|
|
737
|
+
typeKind: 'generic',
|
|
738
|
+
typeName: 'List',
|
|
739
|
+
typeNamespace: 'nasl.collection',
|
|
740
|
+
typeArguments: [
|
|
741
|
+
TypeAnnotation.from({
|
|
742
|
+
concept: propertyTypeAnnotation.concept,
|
|
743
|
+
typeKind: propertyTypeAnnotation.typeKind,
|
|
744
|
+
typeName: propertyTypeAnnotation.typeName,
|
|
745
|
+
typeNamespace: propertyTypeAnnotation.typeNamespace,
|
|
746
|
+
}),
|
|
747
|
+
],
|
|
748
|
+
}, this, 'typeAnnotation');
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
// 1.2 多分组:`List<anonymousStructure>`
|
|
752
|
+
typeAnnotation = TypeAnnotation.from({
|
|
753
|
+
concept: 'TypeAnnotation',
|
|
754
|
+
typeKind: 'generic',
|
|
755
|
+
typeName: 'List',
|
|
756
|
+
typeNamespace: 'nasl.collection',
|
|
757
|
+
typeArguments: [
|
|
758
|
+
TypeAnnotation.from({
|
|
759
|
+
concept: 'TypeAnnotation',
|
|
760
|
+
typeKind: 'anonymousStructure',
|
|
761
|
+
properties: [
|
|
762
|
+
...this.genPropertyListOfGroupBy(this, entities),
|
|
763
|
+
...this.genPropertyListOfAggregate(this, entities),
|
|
764
|
+
],
|
|
765
|
+
}),
|
|
766
|
+
],
|
|
767
|
+
}, this, 'typeAnnotation');
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
else {
|
|
771
|
+
// 2. 无分组
|
|
772
|
+
if (aggregateLength) {
|
|
773
|
+
if (aggregateLength === 1) {
|
|
774
|
+
// 2.1 单聚合:`基本类型`
|
|
775
|
+
let typeName;
|
|
776
|
+
if (['COUNT', 'COUNTD'].includes(selectElements[0].aggregateName)) {
|
|
777
|
+
// 2.1.1. `COUNT`、`COUNTD` 返回 `Long`
|
|
778
|
+
typeName = 'Long';
|
|
779
|
+
}
|
|
780
|
+
else if (['AVG'].includes(selectElements[0].aggregateName)) {
|
|
781
|
+
typeName = 'Decimal';
|
|
782
|
+
}
|
|
783
|
+
else {
|
|
784
|
+
// 2.1.3. 其他返回列类型,包含:`Long`、`Long`、`Double`
|
|
785
|
+
const { entityAsName, propertyName } = selectElements[0].aggregateParam;
|
|
786
|
+
const entity = entities.find((item) => item.name === entityAsName);
|
|
787
|
+
const property = entity?.properties.find((item) => item.name === propertyName);
|
|
788
|
+
typeName = property?.typeAnnotation?.typeName;
|
|
789
|
+
}
|
|
790
|
+
typeAnnotation = TypeAnnotation.from({
|
|
791
|
+
concept: 'TypeAnnotation',
|
|
792
|
+
typeKind: 'primitive',
|
|
793
|
+
typeName,
|
|
794
|
+
typeNamespace: 'nasl.core',
|
|
795
|
+
}, this, 'typeAnnotation');
|
|
796
|
+
}
|
|
797
|
+
else {
|
|
798
|
+
// 2.2 多聚合:`{ Structure }`
|
|
799
|
+
typeAnnotation = TypeAnnotation.from({
|
|
800
|
+
concept: 'TypeAnnotation',
|
|
801
|
+
typeKind: 'anonymousStructure',
|
|
802
|
+
properties: [...this.genPropertyListOfAggregate(this, entities)],
|
|
803
|
+
}, this, 'typeAnnotation');
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
else {
|
|
807
|
+
// 2.3 无分组&&无聚合 (默认情况):`List<Structure>`
|
|
808
|
+
typeAnnotation = TypeAnnotation.from({
|
|
809
|
+
concept: 'TypeAnnotation',
|
|
810
|
+
typeKind: 'generic',
|
|
811
|
+
typeName: 'List',
|
|
812
|
+
typeNamespace: 'nasl.collection',
|
|
813
|
+
typeArguments: [
|
|
814
|
+
TypeAnnotation.from({
|
|
815
|
+
concept: 'TypeAnnotation',
|
|
816
|
+
typeKind: 'anonymousStructure',
|
|
817
|
+
properties: this.genPropertiesFrom(this.from),
|
|
818
|
+
}),
|
|
819
|
+
],
|
|
820
|
+
}, this, 'typeAnnotation');
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
this.update({ typeAnnotation });
|
|
824
|
+
}
|
|
825
|
+
saveStructureNoInfer(entities = []) {
|
|
826
|
+
const TypeAnnotation = (0, decorators_1.getConceptConstructor)('TypeAnnotation');
|
|
827
|
+
const StructureProperty = (0, decorators_1.getConceptConstructor)('StructureProperty');
|
|
828
|
+
const source = this.genStructure(null, [
|
|
829
|
+
...this.genPropertyListOfFrom(this.from),
|
|
830
|
+
...this.genPropertyListOfAggregate(this, entities),
|
|
831
|
+
]);
|
|
832
|
+
if (this.typeAnnotation) {
|
|
833
|
+
// 老版本没有 ListTotal 结构,支持匿名数据结构
|
|
834
|
+
if (this.typeAnnotation.typeKind === 'anonymousStructure') {
|
|
835
|
+
const typeAnnotation = TypeAnnotation.from({
|
|
836
|
+
concept: 'TypeAnnotation',
|
|
837
|
+
typeKind: 'anonymousStructure',
|
|
838
|
+
properties: source.properties,
|
|
839
|
+
}, this, 'typeAnnotation');
|
|
840
|
+
this.update({ typeAnnotation });
|
|
841
|
+
}
|
|
842
|
+
else {
|
|
843
|
+
const structure = this.app.structures.find((item) => item.name === this.typeAnnotation.typeName);
|
|
844
|
+
if (structure) {
|
|
845
|
+
const properties = source.properties.map((property) => StructureProperty.from(property, structure, 'properties'));
|
|
846
|
+
structure.update({
|
|
847
|
+
properties,
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
else
|
|
851
|
+
this.app.addStructure(source);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
else {
|
|
855
|
+
source.name = utils.unique(source.name, this.app.getStructureExistingNames());
|
|
856
|
+
this.app.addStructure(source);
|
|
857
|
+
const typeAnnotation = TypeAnnotation.from({
|
|
858
|
+
concept: 'TypeAnnotation',
|
|
859
|
+
typeKind: 'reference',
|
|
860
|
+
typeName: source.name,
|
|
861
|
+
typeNamespace: `app.structures`,
|
|
862
|
+
}, this, 'typeAnnotation');
|
|
863
|
+
this.update({
|
|
864
|
+
typeAnnotation,
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
removeStructure(structureName) {
|
|
869
|
+
try {
|
|
870
|
+
if (this.typeAnnotation) {
|
|
871
|
+
const { typeNamespace, typeName, typeArguments } = this.typeAnnotation;
|
|
872
|
+
if (typeNamespace === 'app.structures') {
|
|
873
|
+
// Structures
|
|
874
|
+
structureName = typeName;
|
|
875
|
+
this.app.removeStructure(structureName);
|
|
876
|
+
}
|
|
877
|
+
else if (typeNamespace === 'nasl.collection' && typeName === 'PageOf') {
|
|
878
|
+
// PageOf<Structures>
|
|
879
|
+
if (typeArguments[0].typeNamespace === 'app.structures') {
|
|
880
|
+
structureName = typeArguments[0].typeName;
|
|
881
|
+
this.app.removeStructure(structureName);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
catch { }
|
|
887
|
+
}
|
|
888
|
+
getEntityInfos(node, set = new Set()) {
|
|
889
|
+
if (node?.entityName)
|
|
890
|
+
set.add({
|
|
891
|
+
namespace: node.entityNamespace,
|
|
892
|
+
name: node.entityName,
|
|
893
|
+
});
|
|
894
|
+
node?.joinParts?.forEach((child) => {
|
|
895
|
+
this.getEntityInfos(child, set);
|
|
896
|
+
});
|
|
897
|
+
return Array.from(set);
|
|
898
|
+
}
|
|
899
|
+
get entityInfos() {
|
|
900
|
+
return this.getEntityInfos(this.from);
|
|
901
|
+
}
|
|
902
|
+
getCompletionPropertyOfEntities() {
|
|
903
|
+
const firstEntityInfo = this.entityInfos[0];
|
|
904
|
+
const LogicItem = (0, decorators_1.getConceptConstructor)('LogicItem');
|
|
905
|
+
const CompletionProperty = (0, decorators_1.getConceptConstructor)('CompletionProperty');
|
|
906
|
+
if (firstEntityInfo) {
|
|
907
|
+
const { namespace } = firstEntityInfo;
|
|
908
|
+
const entities = this.app.findNodeByCompleteName(namespace);
|
|
909
|
+
if (Array.isArray(entities)) {
|
|
910
|
+
const children = this.entityInfos
|
|
911
|
+
.map(({ name }) => entities.find((item) => item.name === name))
|
|
912
|
+
.filter((item) => item)
|
|
913
|
+
.map((entity) => ({
|
|
914
|
+
concept: 'Entity',
|
|
915
|
+
name: entity.name,
|
|
916
|
+
children: entity.properties.map((property) => {
|
|
917
|
+
const expression = LogicItem.from({
|
|
918
|
+
concept: 'QueryFieldExpression',
|
|
919
|
+
name: property.name,
|
|
920
|
+
value: `${entity.name}.${property.name}`,
|
|
921
|
+
entityAsName: entity.name,
|
|
922
|
+
propertyName: property.name,
|
|
923
|
+
});
|
|
924
|
+
expression.parentNode = this;
|
|
925
|
+
const completionProperty = new CompletionProperty({
|
|
926
|
+
concept: 'CompletionProperty',
|
|
927
|
+
name: property.name,
|
|
928
|
+
value: `${entity.name}.${property.name}`,
|
|
929
|
+
expression,
|
|
930
|
+
});
|
|
931
|
+
completionProperty.icon = 'property';
|
|
932
|
+
// 标记实体属性是否是符合类型
|
|
933
|
+
Object.assign(completionProperty, { isComplexType: property.typeAnnotation.isComplexType() });
|
|
934
|
+
return completionProperty;
|
|
935
|
+
}),
|
|
936
|
+
}));
|
|
937
|
+
if (children.length) {
|
|
938
|
+
return {
|
|
939
|
+
name: '实体',
|
|
940
|
+
icon: 'category',
|
|
941
|
+
children,
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
getCompletionPropertyOfAggregateAsNames() {
|
|
948
|
+
const LogicItem = (0, decorators_1.getConceptConstructor)('LogicItem');
|
|
949
|
+
const CompletionProperty = (0, decorators_1.getConceptConstructor)('CompletionProperty');
|
|
950
|
+
const children = this.select?.selectElements
|
|
951
|
+
?.filter((item) => item.concept === 'QueryAggregateExpression' && item.asName)
|
|
952
|
+
.map((item) => new CompletionProperty({
|
|
953
|
+
concept: 'CompletionProperty',
|
|
954
|
+
name: item.asName,
|
|
955
|
+
value: `inner.${item.asName}`,
|
|
956
|
+
expression: LogicItem.from({
|
|
957
|
+
concept: 'Identifier',
|
|
958
|
+
name: item.asName,
|
|
959
|
+
namespace: 'inner',
|
|
960
|
+
}),
|
|
961
|
+
}));
|
|
962
|
+
if (!children || children.length === 0)
|
|
963
|
+
return;
|
|
964
|
+
children.forEach((item) => {
|
|
965
|
+
item.icon = 'variable';
|
|
966
|
+
});
|
|
967
|
+
return { name: '聚合属性别名', icon: 'category', children, expanded: true };
|
|
968
|
+
}
|
|
969
|
+
getCompletionPropertyOfGroupByAsNames() {
|
|
970
|
+
const LogicItem = (0, decorators_1.getConceptConstructor)('LogicItem');
|
|
971
|
+
const CompletionProperty = (0, decorators_1.getConceptConstructor)('CompletionProperty');
|
|
972
|
+
const children = this.groupBy
|
|
973
|
+
?.filter((item) => item.concept === 'QueryGroupByExpression' && item.groupElement?.asName)
|
|
974
|
+
.map((item) => new CompletionProperty({
|
|
975
|
+
concept: 'CompletionProperty',
|
|
976
|
+
name: item.groupElement.asName,
|
|
977
|
+
value: `inner.${item.groupElement.asName}`,
|
|
978
|
+
expression: LogicItem.from({
|
|
979
|
+
concept: 'Identifier',
|
|
980
|
+
name: item.groupElement.asName,
|
|
981
|
+
namespace: 'inner',
|
|
982
|
+
}),
|
|
983
|
+
}));
|
|
984
|
+
if (!children || children.length === 0)
|
|
985
|
+
return;
|
|
986
|
+
children.forEach((item) => {
|
|
987
|
+
item.icon = 'variable';
|
|
988
|
+
});
|
|
989
|
+
return { name: '分组属性别名', icon: 'category', children, expanded: true };
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* 获取当前内部使用到的变量
|
|
993
|
+
*/
|
|
994
|
+
getContentVariable() {
|
|
995
|
+
const contentVariables = [];
|
|
996
|
+
utils.traverse(({ node }) => {
|
|
997
|
+
if (node?.parentNode?.concept !== 'MemberExpression') {
|
|
998
|
+
if (node?.concept === 'MemberExpression') {
|
|
999
|
+
contentVariables.push(node);
|
|
1000
|
+
}
|
|
1001
|
+
else if (node?.concept === 'Identifier') {
|
|
1002
|
+
// 因为要是父级是MemberExpression, 就放入了父级,子级就不需要了
|
|
1003
|
+
contentVariables.push(node);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}, { node: this }, {
|
|
1007
|
+
mode: 'anyObject',
|
|
1008
|
+
excludedKeySet: new Set(['parentNode', '_events', 'globalDataMap', 'havingPlayground', 'wherePlayground']),
|
|
1009
|
+
});
|
|
1010
|
+
return contentVariables;
|
|
1011
|
+
}
|
|
1012
|
+
// 临时升级脚本
|
|
1013
|
+
// 将所有from的实体,在selectElements中初始化一个isDotStar=true的QueryFieldExpression
|
|
1014
|
+
initFieldSelectElement(node = this) {
|
|
1015
|
+
const loop = (from) => {
|
|
1016
|
+
node.select.addQueryFieldExpression({
|
|
1017
|
+
entityAsName: from.entityName,
|
|
1018
|
+
isDotStar: true,
|
|
1019
|
+
});
|
|
1020
|
+
from.joinParts?.forEach(loop);
|
|
1021
|
+
};
|
|
1022
|
+
loop(node.from);
|
|
1023
|
+
}
|
|
1024
|
+
// 实体是否在查询数据源中
|
|
1025
|
+
inFromJoinPart(entityName) {
|
|
1026
|
+
const loop = (from) => {
|
|
1027
|
+
if (from.entityName === entityName)
|
|
1028
|
+
return true;
|
|
1029
|
+
return from.joinParts?.some(loop);
|
|
1030
|
+
};
|
|
1031
|
+
return loop(this.from);
|
|
1032
|
+
}
|
|
1033
|
+
toNaturalTS(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
1034
|
+
let code = '';
|
|
1035
|
+
code += this.from ? this.from.toNaturalTS((0, nasl_translator_1.shiftState)(state, code)) : '$';
|
|
1036
|
+
const re = /FROM\(|JOIN\(/g;
|
|
1037
|
+
let count = 0;
|
|
1038
|
+
while (re.exec(code))
|
|
1039
|
+
count++;
|
|
1040
|
+
if (this.where) {
|
|
1041
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}.WHERE(() => `;
|
|
1042
|
+
code += this.where.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1043
|
+
code += ')';
|
|
1044
|
+
}
|
|
1045
|
+
if (this.groupBy.length) {
|
|
1046
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}.GROUP_BY(() => `;
|
|
1047
|
+
this.groupBy.forEach((groupExpression, index) => {
|
|
1048
|
+
code += groupExpression.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1049
|
+
if (index !== this.groupBy.length - 1)
|
|
1050
|
+
code += ', ';
|
|
1051
|
+
});
|
|
1052
|
+
code += ')';
|
|
1053
|
+
}
|
|
1054
|
+
if (this.having) {
|
|
1055
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}.HAVING(() => `;
|
|
1056
|
+
code += this.having.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1057
|
+
code += ')';
|
|
1058
|
+
}
|
|
1059
|
+
if (this.orderBy.length) {
|
|
1060
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}.ORDER_BY(() => `;
|
|
1061
|
+
this.orderBy.forEach((orderExpression, index) => {
|
|
1062
|
+
code += orderExpression.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1063
|
+
if (index !== this.orderBy.length - 1)
|
|
1064
|
+
code += ', ';
|
|
1065
|
+
});
|
|
1066
|
+
code += ')';
|
|
1067
|
+
}
|
|
1068
|
+
code += this.select.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize }));
|
|
1069
|
+
if (this.limit) {
|
|
1070
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}.PAGINATE(() => `;
|
|
1071
|
+
code += this.limit.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1072
|
+
code += `)`;
|
|
1073
|
+
}
|
|
1074
|
+
code += ')'.repeat(count);
|
|
1075
|
+
return code;
|
|
1076
|
+
}
|
|
1077
|
+
toNaturalSQL(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
1078
|
+
let code = '';
|
|
1079
|
+
code += this.select.toNaturalSQL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1080
|
+
if (this.groupBy.length) {
|
|
1081
|
+
this.groupBy.forEach((groupElement, index) => {
|
|
1082
|
+
code += ', ';
|
|
1083
|
+
code += groupElement.groupElement.toNaturalSQL(state);
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
code += ' ';
|
|
1087
|
+
code += this.from.toNaturalSQL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1088
|
+
if (this.where)
|
|
1089
|
+
code += '\nWHERE ' + this.where.toNaturalSQL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1090
|
+
if (this.groupBy.length) {
|
|
1091
|
+
code += '\nGROUP BY ';
|
|
1092
|
+
this.groupBy.forEach((groupExpression, index) => {
|
|
1093
|
+
code += groupExpression.toNaturalSQL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1094
|
+
if (index !== this.groupBy.length - 1)
|
|
1095
|
+
code += ', ';
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
if (this.having)
|
|
1099
|
+
code += '\nHAVING ' + this.having.toNaturalSQL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1100
|
+
if (this.orderBy.length) {
|
|
1101
|
+
code += '\nORDER BY ';
|
|
1102
|
+
this.orderBy.forEach((orderExpression, index) => {
|
|
1103
|
+
code += orderExpression.toNaturalSQL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1104
|
+
if (index !== this.orderBy.length - 1)
|
|
1105
|
+
code += ', ';
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
if (this.limit)
|
|
1109
|
+
code += '\nLIMIT ' + this.limit.toNaturalSQL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1110
|
+
return code;
|
|
1111
|
+
}
|
|
1112
|
+
toTextualNASL(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
1113
|
+
let code = '';
|
|
1114
|
+
code += this.from ? this.from.toTextualNASL((0, nasl_translator_1.shiftState)(state, code)) : '';
|
|
1115
|
+
if (this.where) {
|
|
1116
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}where `;
|
|
1117
|
+
code += this.where.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1118
|
+
}
|
|
1119
|
+
if (this.groupBy.length) {
|
|
1120
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}groupby `;
|
|
1121
|
+
this.groupBy.forEach((groupExpression, index) => {
|
|
1122
|
+
code += groupExpression.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1123
|
+
if (index !== this.groupBy.length - 1)
|
|
1124
|
+
code += ', ';
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
if (this.having) {
|
|
1128
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}having `;
|
|
1129
|
+
code += this.having.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1130
|
+
}
|
|
1131
|
+
if (this.orderBy.length) {
|
|
1132
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}orderby `;
|
|
1133
|
+
this.orderBy.forEach((orderExpression, index) => {
|
|
1134
|
+
code += orderExpression.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1135
|
+
if (index !== this.orderBy.length - 1)
|
|
1136
|
+
code += ', ';
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
code += this.select.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize }));
|
|
1140
|
+
if (this.limit) {
|
|
1141
|
+
code += `\n${(0, nasl_translator_1.indent)(state.tabSize)}` + this.limit.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { inline: true }));
|
|
1142
|
+
}
|
|
1143
|
+
return code;
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
exports.CallQueryComponent = CallQueryComponent;
|
|
1147
|
+
__decorate([
|
|
1148
|
+
(0, decorators_1.property)()
|
|
1149
|
+
// @ts-ignore
|
|
1150
|
+
], CallQueryComponent.prototype, "concept", void 0);
|
|
1151
|
+
__decorate([
|
|
1152
|
+
(0, decorators_1.property)({
|
|
1153
|
+
objectRef: 'QuerySelectExpression',
|
|
1154
|
+
})
|
|
1155
|
+
], CallQueryComponent.prototype, "select", void 0);
|
|
1156
|
+
__decorate([
|
|
1157
|
+
(0, decorators_1.property)({
|
|
1158
|
+
objectRef: 'QueryFromExpression',
|
|
1159
|
+
})
|
|
1160
|
+
], CallQueryComponent.prototype, "from", void 0);
|
|
1161
|
+
__decorate([
|
|
1162
|
+
(0, decorators_1.property)({
|
|
1163
|
+
objectRef: 'LogicItem',
|
|
1164
|
+
})
|
|
1165
|
+
], CallQueryComponent.prototype, "where", void 0);
|
|
1166
|
+
__decorate([
|
|
1167
|
+
(0, decorators_1.property)({
|
|
1168
|
+
objectRef: 'LogicItem',
|
|
1169
|
+
isArray: true,
|
|
1170
|
+
defaultValue: null,
|
|
1171
|
+
})
|
|
1172
|
+
], CallQueryComponent.prototype, "wherePlayground", void 0);
|
|
1173
|
+
__decorate([
|
|
1174
|
+
(0, decorators_1.property)({
|
|
1175
|
+
objectRef: 'QueryGroupByExpression',
|
|
1176
|
+
isArray: true,
|
|
1177
|
+
defaultValue: [],
|
|
1178
|
+
})
|
|
1179
|
+
], CallQueryComponent.prototype, "groupBy", void 0);
|
|
1180
|
+
__decorate([
|
|
1181
|
+
(0, decorators_1.property)({
|
|
1182
|
+
objectRef: 'LogicItem',
|
|
1183
|
+
})
|
|
1184
|
+
], CallQueryComponent.prototype, "having", void 0);
|
|
1185
|
+
__decorate([
|
|
1186
|
+
(0, decorators_1.property)({
|
|
1187
|
+
objectRef: 'LogicItem',
|
|
1188
|
+
isArray: true,
|
|
1189
|
+
defaultValue: null,
|
|
1190
|
+
})
|
|
1191
|
+
], CallQueryComponent.prototype, "havingPlayground", void 0);
|
|
1192
|
+
__decorate([
|
|
1193
|
+
(0, decorators_1.property)({
|
|
1194
|
+
objectRef: 'QueryOrderByExpression',
|
|
1195
|
+
isArray: true,
|
|
1196
|
+
defaultValue: [],
|
|
1197
|
+
})
|
|
1198
|
+
], CallQueryComponent.prototype, "orderBy", void 0);
|
|
1199
|
+
__decorate([
|
|
1200
|
+
(0, decorators_1.property)({
|
|
1201
|
+
objectRef: 'QueryLimitExpression',
|
|
1202
|
+
})
|
|
1203
|
+
], CallQueryComponent.prototype, "limit", void 0);
|
|
1204
|
+
__decorate([
|
|
1205
|
+
(0, decorators_1.property)()
|
|
1206
|
+
], CallQueryComponent.prototype, "ideVersion", void 0);
|
|
1207
|
+
__decorate([
|
|
1208
|
+
nasl_translator_1.withSourceMapGenerator
|
|
1209
|
+
], CallQueryComponent.prototype, "toEmbeddedTS", null);
|
|
1210
|
+
__decorate([
|
|
1211
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
1212
|
+
], CallQueryComponent.prototype, "toNaturalTS", null);
|
|
1213
|
+
__decorate([
|
|
1214
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
1215
|
+
], CallQueryComponent.prototype, "toNaturalSQL", null);
|
|
1216
|
+
__decorate([
|
|
1217
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
1218
|
+
], CallQueryComponent.prototype, "toTextualNASL", null);
|
|
1219
|
+
exports.CallQueryComponent = CallQueryComponent = CallQueryComponent_1 = __decorate([
|
|
1220
|
+
(0, decorators_1.concept)('数据查询')
|
|
1221
|
+
], CallQueryComponent);
|
|
1222
|
+
exports.default = CallQueryComponent;
|
|
1223
|
+
//================================================================================
|
|
1224
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
1225
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
1226
|
+
//================================================================================
|
|
1227
|
+
//# sourceMappingURL=CallQueryComponent__.js.map
|