@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,1580 @@
|
|
|
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 Module_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Module = void 0;
|
|
37
|
+
const nasl_translator_1 = require("@lcap/nasl-translator");
|
|
38
|
+
const moduleNameSpace = {
|
|
39
|
+
dependencies: 'extensions',
|
|
40
|
+
interfaceDependencies: 'apis',
|
|
41
|
+
componentDependencies: 'components',
|
|
42
|
+
connectorDependencies: 'connector',
|
|
43
|
+
};
|
|
44
|
+
const typeNameSpace = {
|
|
45
|
+
extension: 'extensions',
|
|
46
|
+
interface: 'apis',
|
|
47
|
+
component: 'components',
|
|
48
|
+
connector: 'connector',
|
|
49
|
+
customInterface: 'apis',
|
|
50
|
+
};
|
|
51
|
+
const decorators_1 = require("../decorators");
|
|
52
|
+
const utils = __importStar(require("../utils"));
|
|
53
|
+
const asserts = __importStar(require("./utils/asserts"));
|
|
54
|
+
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
55
|
+
/**
|
|
56
|
+
* 模块
|
|
57
|
+
*/
|
|
58
|
+
let Module = class Module extends BaseNode_1.default {
|
|
59
|
+
static { Module_1 = this; }
|
|
60
|
+
/** 类名 */
|
|
61
|
+
static { this.ConceptName = 'Module'; }
|
|
62
|
+
/**
|
|
63
|
+
* 是否为抽象类
|
|
64
|
+
* 抽象类不能产生 concept: string
|
|
65
|
+
*/
|
|
66
|
+
static { this.isAbstract = false; }
|
|
67
|
+
/** 继承链 */
|
|
68
|
+
static { this.inheritanceChain = ['BaseNode']; }
|
|
69
|
+
/**
|
|
70
|
+
* @param source 需要合并的部分参数
|
|
71
|
+
*/
|
|
72
|
+
constructor(source) {
|
|
73
|
+
source = Object.assign({}, Module_1.getDefaultOptions(), source);
|
|
74
|
+
super(source);
|
|
75
|
+
/**
|
|
76
|
+
* 模块名称
|
|
77
|
+
*/
|
|
78
|
+
this.name = '';
|
|
79
|
+
/**
|
|
80
|
+
* 数据源列表
|
|
81
|
+
*/
|
|
82
|
+
this.dataSources = [];
|
|
83
|
+
/**
|
|
84
|
+
* 数据结构列表
|
|
85
|
+
*/
|
|
86
|
+
this.structures = [];
|
|
87
|
+
/**
|
|
88
|
+
* 枚举列表
|
|
89
|
+
*/
|
|
90
|
+
this.enums = [];
|
|
91
|
+
/**
|
|
92
|
+
* 逻辑列表
|
|
93
|
+
*/
|
|
94
|
+
this.logics = [];
|
|
95
|
+
/**
|
|
96
|
+
* 接口列表
|
|
97
|
+
*/
|
|
98
|
+
this.interfaces = [];
|
|
99
|
+
/**
|
|
100
|
+
* 页面列表
|
|
101
|
+
*/
|
|
102
|
+
this.views = [];
|
|
103
|
+
/**
|
|
104
|
+
* 流程列表
|
|
105
|
+
*/
|
|
106
|
+
this.processes = [];
|
|
107
|
+
/**
|
|
108
|
+
* 流程列表
|
|
109
|
+
*/
|
|
110
|
+
this.processV2s = [];
|
|
111
|
+
/**
|
|
112
|
+
* 前端库列表
|
|
113
|
+
*/
|
|
114
|
+
this.frontends = [];
|
|
115
|
+
/**
|
|
116
|
+
* 注解列表
|
|
117
|
+
*/
|
|
118
|
+
this.annotations = [];
|
|
119
|
+
this.dependencies = [];
|
|
120
|
+
super.subConstructor(source);
|
|
121
|
+
}
|
|
122
|
+
static from(source, parentNode, parentKey) {
|
|
123
|
+
return super.from(source, parentNode, parentKey);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 设置模块名称
|
|
127
|
+
*/
|
|
128
|
+
setName(name) {
|
|
129
|
+
const object = {
|
|
130
|
+
name,
|
|
131
|
+
};
|
|
132
|
+
this.update({
|
|
133
|
+
...object,
|
|
134
|
+
field: 'name',
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* 设置模块标题
|
|
139
|
+
*/
|
|
140
|
+
setTitle(title) {
|
|
141
|
+
const object = {
|
|
142
|
+
title,
|
|
143
|
+
};
|
|
144
|
+
this.update({
|
|
145
|
+
...object,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 设置模块描述
|
|
150
|
+
*/
|
|
151
|
+
setDescription(description) {
|
|
152
|
+
const object = {
|
|
153
|
+
description,
|
|
154
|
+
};
|
|
155
|
+
this.update({
|
|
156
|
+
...object,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
getDataSourceExistingNames(excludedList = []) {
|
|
160
|
+
const excludedSet = new Set(excludedList);
|
|
161
|
+
return (this.dataSources || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
162
|
+
}
|
|
163
|
+
getDataSourceUniqueName(name = 'dataSource1') {
|
|
164
|
+
return utils.unique(name, this.getDataSourceExistingNames(), undefined, false);
|
|
165
|
+
}
|
|
166
|
+
_insertDataSourceAt(options, index) {
|
|
167
|
+
const dataSourceOptions = {};
|
|
168
|
+
const relationOptions = { parentNode: this, parentKey: 'dataSources' };
|
|
169
|
+
const DataSource = (0, decorators_1.getConceptConstructor)('DataSource');
|
|
170
|
+
let dataSource;
|
|
171
|
+
if (!options) {
|
|
172
|
+
dataSource = DataSource.from({
|
|
173
|
+
...dataSourceOptions,
|
|
174
|
+
name: this.getDataSourceUniqueName(),
|
|
175
|
+
}, this, 'dataSources');
|
|
176
|
+
}
|
|
177
|
+
else if (typeof options === 'string') {
|
|
178
|
+
dataSource = DataSource.from({
|
|
179
|
+
...dataSourceOptions,
|
|
180
|
+
name: options,
|
|
181
|
+
}, this, 'dataSources');
|
|
182
|
+
}
|
|
183
|
+
else if (asserts.isDataSource(options)) {
|
|
184
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
185
|
+
dataSource = options;
|
|
186
|
+
Object.assign(dataSource, relationOptions);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
dataSource = DataSource.from({
|
|
190
|
+
...dataSourceOptions,
|
|
191
|
+
...options,
|
|
192
|
+
}, this, 'dataSources');
|
|
193
|
+
}
|
|
194
|
+
this.dataSources.splice(index, 0, dataSource);
|
|
195
|
+
return dataSource;
|
|
196
|
+
}
|
|
197
|
+
insertDataSourceAt(options, index) {
|
|
198
|
+
const node = this._insertDataSourceAt(options, index);
|
|
199
|
+
node.create({
|
|
200
|
+
index,
|
|
201
|
+
parentNode: this,
|
|
202
|
+
parentKey: 'dataSources',
|
|
203
|
+
});
|
|
204
|
+
return node;
|
|
205
|
+
}
|
|
206
|
+
_addDataSource(options) {
|
|
207
|
+
const index = 0;
|
|
208
|
+
return this._insertDataSourceAt(options, index);
|
|
209
|
+
}
|
|
210
|
+
addDataSource(options) {
|
|
211
|
+
const node = this._addDataSource(options);
|
|
212
|
+
const index = this.dataSources.indexOf(node);
|
|
213
|
+
node.create({
|
|
214
|
+
index,
|
|
215
|
+
parentNode: this,
|
|
216
|
+
parentKey: 'dataSources',
|
|
217
|
+
});
|
|
218
|
+
return node;
|
|
219
|
+
}
|
|
220
|
+
getStructureExistingNames(excludedList = []) {
|
|
221
|
+
const excludedSet = new Set(excludedList);
|
|
222
|
+
return (this.structures || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
223
|
+
}
|
|
224
|
+
getStructureUniqueName(name = 'Structure1') {
|
|
225
|
+
return utils.unique(name, this.getStructureExistingNames(), undefined, false);
|
|
226
|
+
}
|
|
227
|
+
_insertStructureAt(options, index) {
|
|
228
|
+
const structureOptions = {};
|
|
229
|
+
const relationOptions = { parentNode: this, parentKey: 'structures' };
|
|
230
|
+
const Structure = (0, decorators_1.getConceptConstructor)('Structure');
|
|
231
|
+
let structure;
|
|
232
|
+
if (!options) {
|
|
233
|
+
structure = Structure.from({
|
|
234
|
+
...structureOptions,
|
|
235
|
+
name: this.getStructureUniqueName(),
|
|
236
|
+
}, this, 'structures');
|
|
237
|
+
}
|
|
238
|
+
else if (typeof options === 'string') {
|
|
239
|
+
structure = Structure.from({
|
|
240
|
+
...structureOptions,
|
|
241
|
+
name: options,
|
|
242
|
+
}, this, 'structures');
|
|
243
|
+
}
|
|
244
|
+
else if (asserts.isStructure(options)) {
|
|
245
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
246
|
+
structure = options;
|
|
247
|
+
Object.assign(structure, relationOptions);
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
structure = Structure.from({
|
|
251
|
+
...structureOptions,
|
|
252
|
+
...options,
|
|
253
|
+
}, this, 'structures');
|
|
254
|
+
}
|
|
255
|
+
this.structures.splice(index, 0, structure);
|
|
256
|
+
return structure;
|
|
257
|
+
}
|
|
258
|
+
insertStructureAt(options, index) {
|
|
259
|
+
const node = this._insertStructureAt(options, index);
|
|
260
|
+
node.create({
|
|
261
|
+
index,
|
|
262
|
+
parentNode: this,
|
|
263
|
+
parentKey: 'structures',
|
|
264
|
+
});
|
|
265
|
+
return node;
|
|
266
|
+
}
|
|
267
|
+
_addStructure(options) {
|
|
268
|
+
const index = 0;
|
|
269
|
+
return this._insertStructureAt(options, index);
|
|
270
|
+
}
|
|
271
|
+
addStructure(options) {
|
|
272
|
+
const node = this._addStructure(options);
|
|
273
|
+
const index = this.structures.indexOf(node);
|
|
274
|
+
node.create({
|
|
275
|
+
index,
|
|
276
|
+
parentNode: this,
|
|
277
|
+
parentKey: 'structures',
|
|
278
|
+
});
|
|
279
|
+
return node;
|
|
280
|
+
}
|
|
281
|
+
getEnumExistingNames(excludedList = []) {
|
|
282
|
+
const excludedSet = new Set(excludedList);
|
|
283
|
+
return (this.enums || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
284
|
+
}
|
|
285
|
+
getEnumUniqueName(name = 'Enum1') {
|
|
286
|
+
return utils.unique(name, this.getEnumExistingNames(), undefined, false);
|
|
287
|
+
}
|
|
288
|
+
_insertEnumAt(options, index) {
|
|
289
|
+
const enumerationOptions = {};
|
|
290
|
+
const relationOptions = { parentNode: this, parentKey: 'enums' };
|
|
291
|
+
const Enum = (0, decorators_1.getConceptConstructor)('Enum');
|
|
292
|
+
let enumeration;
|
|
293
|
+
if (!options) {
|
|
294
|
+
enumeration = Enum.from({
|
|
295
|
+
...enumerationOptions,
|
|
296
|
+
name: this.getEnumUniqueName(),
|
|
297
|
+
}, this, 'enums');
|
|
298
|
+
}
|
|
299
|
+
else if (typeof options === 'string') {
|
|
300
|
+
enumeration = Enum.from({
|
|
301
|
+
...enumerationOptions,
|
|
302
|
+
name: options,
|
|
303
|
+
}, this, 'enums');
|
|
304
|
+
}
|
|
305
|
+
else if (asserts.isEnum(options)) {
|
|
306
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
307
|
+
enumeration = options;
|
|
308
|
+
Object.assign(enumeration, relationOptions);
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
enumeration = Enum.from({
|
|
312
|
+
...enumerationOptions,
|
|
313
|
+
...options,
|
|
314
|
+
}, this, 'enums');
|
|
315
|
+
}
|
|
316
|
+
this.enums.splice(index, 0, enumeration);
|
|
317
|
+
return enumeration;
|
|
318
|
+
}
|
|
319
|
+
insertEnumAt(options, index) {
|
|
320
|
+
const node = this._insertEnumAt(options, index);
|
|
321
|
+
node.create({
|
|
322
|
+
index,
|
|
323
|
+
parentNode: this,
|
|
324
|
+
parentKey: 'enums',
|
|
325
|
+
});
|
|
326
|
+
return node;
|
|
327
|
+
}
|
|
328
|
+
_addEnum(options) {
|
|
329
|
+
const index = 0;
|
|
330
|
+
return this._insertEnumAt(options, index);
|
|
331
|
+
}
|
|
332
|
+
addEnum(options) {
|
|
333
|
+
const node = this._addEnum(options);
|
|
334
|
+
const index = this.enums.indexOf(node);
|
|
335
|
+
node.create({
|
|
336
|
+
index,
|
|
337
|
+
parentNode: this,
|
|
338
|
+
parentKey: 'enums',
|
|
339
|
+
});
|
|
340
|
+
return node;
|
|
341
|
+
}
|
|
342
|
+
getLogicExistingNames(excludedList = []) {
|
|
343
|
+
const excludedSet = new Set(excludedList);
|
|
344
|
+
return (this.logics || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
345
|
+
}
|
|
346
|
+
getLogicUniqueName(name = 'logic1') {
|
|
347
|
+
return utils.unique(name, this.getLogicExistingNames(), undefined, false);
|
|
348
|
+
}
|
|
349
|
+
_insertLogicAt(options, index) {
|
|
350
|
+
const logicOptions = {};
|
|
351
|
+
const relationOptions = { parentNode: this, parentKey: 'logics' };
|
|
352
|
+
const Logic = (0, decorators_1.getConceptConstructor)('Logic');
|
|
353
|
+
let logic;
|
|
354
|
+
if (!options) {
|
|
355
|
+
logic = Logic.from({
|
|
356
|
+
...logicOptions,
|
|
357
|
+
name: this.getLogicUniqueName(),
|
|
358
|
+
}, this, 'logics');
|
|
359
|
+
}
|
|
360
|
+
else if (typeof options === 'string') {
|
|
361
|
+
logic = Logic.from({
|
|
362
|
+
...logicOptions,
|
|
363
|
+
name: options,
|
|
364
|
+
}, this, 'logics');
|
|
365
|
+
}
|
|
366
|
+
else if (asserts.isLogic(options)) {
|
|
367
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
368
|
+
logic = options;
|
|
369
|
+
Object.assign(logic, relationOptions);
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
logic = Logic.from({
|
|
373
|
+
...logicOptions,
|
|
374
|
+
...options,
|
|
375
|
+
}, this, 'logics');
|
|
376
|
+
}
|
|
377
|
+
this.logics.splice(index, 0, logic);
|
|
378
|
+
return logic;
|
|
379
|
+
}
|
|
380
|
+
insertLogicAt(options, index) {
|
|
381
|
+
const node = this._insertLogicAt(options, index);
|
|
382
|
+
node.create({
|
|
383
|
+
index,
|
|
384
|
+
parentNode: this,
|
|
385
|
+
parentKey: 'logics',
|
|
386
|
+
});
|
|
387
|
+
return node;
|
|
388
|
+
}
|
|
389
|
+
_addLogic(options) {
|
|
390
|
+
const index = 0;
|
|
391
|
+
return this._insertLogicAt(options, index);
|
|
392
|
+
}
|
|
393
|
+
addLogic(options) {
|
|
394
|
+
const node = this._addLogic(options);
|
|
395
|
+
const index = this.logics.indexOf(node);
|
|
396
|
+
node.create({
|
|
397
|
+
index,
|
|
398
|
+
parentNode: this,
|
|
399
|
+
parentKey: 'logics',
|
|
400
|
+
});
|
|
401
|
+
return node;
|
|
402
|
+
}
|
|
403
|
+
getInterfaceExistingNames(excludedList = []) {
|
|
404
|
+
const excludedSet = new Set(excludedList);
|
|
405
|
+
return (this.interfaces || [])
|
|
406
|
+
.filter((item) => !excludedSet.has(item))
|
|
407
|
+
.map((item) => item.name);
|
|
408
|
+
}
|
|
409
|
+
getInterfaceUniqueName(name = 'Interface1') {
|
|
410
|
+
return utils.unique(name, this.getInterfaceExistingNames(), undefined, false);
|
|
411
|
+
}
|
|
412
|
+
_insertInterfaceAt(options, index) {
|
|
413
|
+
const itfaceOptions = {};
|
|
414
|
+
const relationOptions = { parentNode: this, parentKey: 'interfaces' };
|
|
415
|
+
const AbstractInterface = (0, decorators_1.getConceptConstructor)('AbstractInterface');
|
|
416
|
+
let itface;
|
|
417
|
+
if (!options) {
|
|
418
|
+
itface = AbstractInterface.from({
|
|
419
|
+
...itfaceOptions,
|
|
420
|
+
name: this.getInterfaceUniqueName(),
|
|
421
|
+
}, this, 'interfaces');
|
|
422
|
+
}
|
|
423
|
+
else if (typeof options === 'string') {
|
|
424
|
+
itface = AbstractInterface.from({
|
|
425
|
+
...itfaceOptions,
|
|
426
|
+
name: options,
|
|
427
|
+
}, this, 'interfaces');
|
|
428
|
+
}
|
|
429
|
+
else if (asserts.isAbstractInterface(options)) {
|
|
430
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
431
|
+
itface = options;
|
|
432
|
+
Object.assign(itface, relationOptions);
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
itface = AbstractInterface.from({
|
|
436
|
+
...itfaceOptions,
|
|
437
|
+
...options,
|
|
438
|
+
}, this, 'interfaces');
|
|
439
|
+
}
|
|
440
|
+
this.interfaces.splice(index, 0, itface);
|
|
441
|
+
return itface;
|
|
442
|
+
}
|
|
443
|
+
insertInterfaceAt(options, index) {
|
|
444
|
+
const node = this._insertInterfaceAt(options, index);
|
|
445
|
+
node.create({
|
|
446
|
+
index,
|
|
447
|
+
parentNode: this,
|
|
448
|
+
parentKey: 'interfaces',
|
|
449
|
+
});
|
|
450
|
+
return node;
|
|
451
|
+
}
|
|
452
|
+
_addInterface(options) {
|
|
453
|
+
const index = 0;
|
|
454
|
+
return this._insertInterfaceAt(options, index);
|
|
455
|
+
}
|
|
456
|
+
addInterface(options) {
|
|
457
|
+
const node = this._addInterface(options);
|
|
458
|
+
const index = this.interfaces.indexOf(node);
|
|
459
|
+
node.create({
|
|
460
|
+
index,
|
|
461
|
+
parentNode: this,
|
|
462
|
+
parentKey: 'interfaces',
|
|
463
|
+
});
|
|
464
|
+
return node;
|
|
465
|
+
}
|
|
466
|
+
getViewExistingNames(excludedList = []) {
|
|
467
|
+
const excludedSet = new Set(excludedList);
|
|
468
|
+
return (this.views || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
469
|
+
}
|
|
470
|
+
getViewUniqueName(name = 'view1') {
|
|
471
|
+
return utils.unique(name, this.getViewExistingNames(), undefined, false);
|
|
472
|
+
}
|
|
473
|
+
_insertViewAt(options, index) {
|
|
474
|
+
const viewOptions = {};
|
|
475
|
+
const relationOptions = { parentNode: this, parentKey: 'views' };
|
|
476
|
+
const View = (0, decorators_1.getConceptConstructor)('View');
|
|
477
|
+
let view;
|
|
478
|
+
if (!options) {
|
|
479
|
+
view = View.from({
|
|
480
|
+
...viewOptions,
|
|
481
|
+
name: this.getViewUniqueName(),
|
|
482
|
+
}, this, 'views');
|
|
483
|
+
}
|
|
484
|
+
else if (typeof options === 'string') {
|
|
485
|
+
view = View.from({
|
|
486
|
+
...viewOptions,
|
|
487
|
+
name: options,
|
|
488
|
+
}, this, 'views');
|
|
489
|
+
}
|
|
490
|
+
else if (asserts.isView(options)) {
|
|
491
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
492
|
+
view = options;
|
|
493
|
+
Object.assign(view, relationOptions);
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
view = View.from({
|
|
497
|
+
...viewOptions,
|
|
498
|
+
...options,
|
|
499
|
+
}, this, 'views');
|
|
500
|
+
}
|
|
501
|
+
this.views.splice(index, 0, view);
|
|
502
|
+
return view;
|
|
503
|
+
}
|
|
504
|
+
insertViewAt(options, index) {
|
|
505
|
+
const node = this._insertViewAt(options, index);
|
|
506
|
+
node.create({
|
|
507
|
+
index,
|
|
508
|
+
parentNode: this,
|
|
509
|
+
parentKey: 'views',
|
|
510
|
+
});
|
|
511
|
+
return node;
|
|
512
|
+
}
|
|
513
|
+
_addView(options) {
|
|
514
|
+
const index = this.views.length;
|
|
515
|
+
return this._insertViewAt(options, index);
|
|
516
|
+
}
|
|
517
|
+
addView(options) {
|
|
518
|
+
const node = this._addView(options);
|
|
519
|
+
const index = this.views.indexOf(node);
|
|
520
|
+
node.create({
|
|
521
|
+
index,
|
|
522
|
+
parentNode: this,
|
|
523
|
+
parentKey: 'views',
|
|
524
|
+
});
|
|
525
|
+
return node;
|
|
526
|
+
}
|
|
527
|
+
getVarExistingNames(excludedList = []) {
|
|
528
|
+
const excludedSet = new Set(excludedList);
|
|
529
|
+
return (this.frontendVariables || [])
|
|
530
|
+
.filter((item) => !excludedSet.has(item))
|
|
531
|
+
.map((item) => item.name);
|
|
532
|
+
}
|
|
533
|
+
getVariableUniqueName(name = 'variable1') {
|
|
534
|
+
return utils.unique(name, this.getVarExistingNames(), undefined, true);
|
|
535
|
+
}
|
|
536
|
+
_insertVariableAt(options, index) {
|
|
537
|
+
const variableOptions = {};
|
|
538
|
+
const relationOptions = { parentNode: this, parentKey: 'frontendVariables' };
|
|
539
|
+
const Variable = (0, decorators_1.getConceptConstructor)('Variable');
|
|
540
|
+
let variable;
|
|
541
|
+
if (!options) {
|
|
542
|
+
variable = Variable.from({
|
|
543
|
+
...variableOptions,
|
|
544
|
+
name: this.getVariableUniqueName(),
|
|
545
|
+
}, this, 'frontendVariables');
|
|
546
|
+
}
|
|
547
|
+
else if (typeof options === 'string') {
|
|
548
|
+
variable = Variable.from({
|
|
549
|
+
...variableOptions,
|
|
550
|
+
name: options,
|
|
551
|
+
}, this, 'frontendVariables');
|
|
552
|
+
}
|
|
553
|
+
else if (asserts.isVariable(options)) {
|
|
554
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
555
|
+
variable = options;
|
|
556
|
+
Object.assign(variable, relationOptions);
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
variable = Variable.from({
|
|
560
|
+
...variableOptions,
|
|
561
|
+
...options,
|
|
562
|
+
}, this, 'frontendVariables');
|
|
563
|
+
}
|
|
564
|
+
this.frontendVariables.splice(index, 0, variable);
|
|
565
|
+
return variable;
|
|
566
|
+
}
|
|
567
|
+
insertVariableAt(options, index) {
|
|
568
|
+
const node = this._insertVariableAt(options, index);
|
|
569
|
+
node.create({
|
|
570
|
+
index,
|
|
571
|
+
parentNode: this,
|
|
572
|
+
parentKey: 'frontendVariables',
|
|
573
|
+
});
|
|
574
|
+
return node;
|
|
575
|
+
}
|
|
576
|
+
_addVariable(options) {
|
|
577
|
+
const index = this.frontendVariables.length;
|
|
578
|
+
return this._insertVariableAt(options, index);
|
|
579
|
+
}
|
|
580
|
+
addVariable(options) {
|
|
581
|
+
const node = this._addVariable(options);
|
|
582
|
+
const index = this.frontendVariables.indexOf(node);
|
|
583
|
+
node.create({
|
|
584
|
+
index,
|
|
585
|
+
parentNode: this,
|
|
586
|
+
parentKey: 'frontendVariables',
|
|
587
|
+
});
|
|
588
|
+
return node;
|
|
589
|
+
}
|
|
590
|
+
getProcessExistingNames(excludedList = []) {
|
|
591
|
+
const excludedSet = new Set(excludedList);
|
|
592
|
+
return (this.processes || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
593
|
+
}
|
|
594
|
+
getProcessUniqueName(name = 'Process1') {
|
|
595
|
+
return utils.unique(name, this.getProcessExistingNames(), undefined, false);
|
|
596
|
+
}
|
|
597
|
+
_insertProcessAt(options, index) {
|
|
598
|
+
const processOptions = {};
|
|
599
|
+
const relationOptions = { parentNode: this, parentKey: 'processes' };
|
|
600
|
+
const Process = (0, decorators_1.getConceptConstructor)('Process');
|
|
601
|
+
let process;
|
|
602
|
+
if (!options) {
|
|
603
|
+
process = Process.from({
|
|
604
|
+
...processOptions,
|
|
605
|
+
name: this.getProcessUniqueName(),
|
|
606
|
+
}, this, 'processes');
|
|
607
|
+
}
|
|
608
|
+
else if (typeof options === 'string') {
|
|
609
|
+
process = Process.from({
|
|
610
|
+
...processOptions,
|
|
611
|
+
name: options,
|
|
612
|
+
}, this, 'processes');
|
|
613
|
+
}
|
|
614
|
+
else if (asserts.isProcess(options)) {
|
|
615
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
616
|
+
process = options;
|
|
617
|
+
Object.assign(process, relationOptions);
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
process = Process.from({
|
|
621
|
+
...processOptions,
|
|
622
|
+
...options,
|
|
623
|
+
}, this, 'processes');
|
|
624
|
+
}
|
|
625
|
+
this.processes.splice(index, 0, process);
|
|
626
|
+
return process;
|
|
627
|
+
}
|
|
628
|
+
insertProcessAt(options, index) {
|
|
629
|
+
const node = this._insertProcessAt(options, index);
|
|
630
|
+
node.create({
|
|
631
|
+
index,
|
|
632
|
+
parentNode: this,
|
|
633
|
+
parentKey: 'processes',
|
|
634
|
+
});
|
|
635
|
+
return node;
|
|
636
|
+
}
|
|
637
|
+
_addProcess(options) {
|
|
638
|
+
const index = 0;
|
|
639
|
+
return this._insertProcessAt(options, index);
|
|
640
|
+
}
|
|
641
|
+
addProcess(options) {
|
|
642
|
+
const node = this._addProcess(options);
|
|
643
|
+
const index = this.processes.indexOf(node);
|
|
644
|
+
node.create({
|
|
645
|
+
index,
|
|
646
|
+
parentNode: this,
|
|
647
|
+
parentKey: 'processes',
|
|
648
|
+
});
|
|
649
|
+
return node;
|
|
650
|
+
}
|
|
651
|
+
getProcessV2ExistingNames(excludedList = []) {
|
|
652
|
+
const excludedSet = new Set(excludedList);
|
|
653
|
+
return (this.processV2s || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
654
|
+
}
|
|
655
|
+
getProcessV2UniqueName(name = 'Process1') {
|
|
656
|
+
return utils.unique(name, this.getProcessV2ExistingNames(), undefined, false);
|
|
657
|
+
}
|
|
658
|
+
_insertProcessV2At(options, index) {
|
|
659
|
+
const processV2Options = {};
|
|
660
|
+
const relationOptions = { parentNode: this, parentKey: 'processV2s' };
|
|
661
|
+
const ProcessV2 = (0, decorators_1.getConceptConstructor)('ProcessV2');
|
|
662
|
+
let processV2;
|
|
663
|
+
if (!options) {
|
|
664
|
+
processV2 = ProcessV2.from({
|
|
665
|
+
...processV2Options,
|
|
666
|
+
name: this.getProcessV2UniqueName(),
|
|
667
|
+
}, this, 'processV2s');
|
|
668
|
+
}
|
|
669
|
+
else if (typeof options === 'string') {
|
|
670
|
+
processV2 = ProcessV2.from({
|
|
671
|
+
...processV2Options,
|
|
672
|
+
name: options,
|
|
673
|
+
}, this, 'processV2s');
|
|
674
|
+
}
|
|
675
|
+
else if (asserts.isProcessV2(options)) {
|
|
676
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
677
|
+
processV2 = options;
|
|
678
|
+
Object.assign(processV2, relationOptions);
|
|
679
|
+
}
|
|
680
|
+
else {
|
|
681
|
+
processV2 = ProcessV2.from({
|
|
682
|
+
...processV2Options,
|
|
683
|
+
...options,
|
|
684
|
+
}, this, 'processV2s');
|
|
685
|
+
}
|
|
686
|
+
this.processV2s.splice(index, 0, processV2);
|
|
687
|
+
return processV2;
|
|
688
|
+
}
|
|
689
|
+
insertProcessV2At(options, index) {
|
|
690
|
+
const node = this._insertProcessV2At(options, index);
|
|
691
|
+
node.create({
|
|
692
|
+
index,
|
|
693
|
+
parentNode: this,
|
|
694
|
+
parentKey: 'processV2s',
|
|
695
|
+
});
|
|
696
|
+
return node;
|
|
697
|
+
}
|
|
698
|
+
_addProcessV2(options) {
|
|
699
|
+
const index = 0;
|
|
700
|
+
return this._insertProcessV2At(options, index);
|
|
701
|
+
}
|
|
702
|
+
addProcessV2(options) {
|
|
703
|
+
const node = this._addProcessV2(options);
|
|
704
|
+
const index = this.processV2s.indexOf(node);
|
|
705
|
+
node.create({
|
|
706
|
+
index,
|
|
707
|
+
parentNode: this,
|
|
708
|
+
parentKey: 'processV2s',
|
|
709
|
+
});
|
|
710
|
+
return node;
|
|
711
|
+
}
|
|
712
|
+
getFrontendLibraryExistingNames(excludedList = []) {
|
|
713
|
+
const excludedSet = new Set(excludedList);
|
|
714
|
+
return (this.frontends || [])
|
|
715
|
+
.filter((item) => !excludedSet.has(item))
|
|
716
|
+
.map((item) => item.name);
|
|
717
|
+
}
|
|
718
|
+
getFrontendLibraryUniqueName(name = 'frontendLibrary1') {
|
|
719
|
+
return utils.unique(name, this.getFrontendLibraryExistingNames(), undefined, false);
|
|
720
|
+
}
|
|
721
|
+
_insertFrontendLibraryAt(options, index) {
|
|
722
|
+
const frontendLibraryOptions = {};
|
|
723
|
+
const relationOptions = { parentNode: this, parentKey: 'frontends' };
|
|
724
|
+
const FrontendLibrary = (0, decorators_1.getConceptConstructor)('FrontendLibrary');
|
|
725
|
+
let frontendLibrary;
|
|
726
|
+
if (!options) {
|
|
727
|
+
frontendLibrary = FrontendLibrary.from({
|
|
728
|
+
...frontendLibraryOptions,
|
|
729
|
+
name: this.getFrontendLibraryUniqueName(),
|
|
730
|
+
}, this, 'frontends');
|
|
731
|
+
}
|
|
732
|
+
else if (typeof options === 'string') {
|
|
733
|
+
frontendLibrary = FrontendLibrary.from({
|
|
734
|
+
...frontendLibraryOptions,
|
|
735
|
+
name: options,
|
|
736
|
+
}, this, 'frontends');
|
|
737
|
+
}
|
|
738
|
+
else if (asserts.isFrontendLibrary(options)) {
|
|
739
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
740
|
+
frontendLibrary = options;
|
|
741
|
+
Object.assign(frontendLibrary, relationOptions);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
frontendLibrary = FrontendLibrary.from({
|
|
745
|
+
...frontendLibraryOptions,
|
|
746
|
+
...options,
|
|
747
|
+
}, this, 'frontends');
|
|
748
|
+
}
|
|
749
|
+
this.frontends.splice(index, 0, frontendLibrary);
|
|
750
|
+
return frontendLibrary;
|
|
751
|
+
}
|
|
752
|
+
insertFrontendLibraryAt(options, index) {
|
|
753
|
+
const node = this._insertFrontendLibraryAt(options, index);
|
|
754
|
+
node.create({
|
|
755
|
+
index,
|
|
756
|
+
parentNode: this,
|
|
757
|
+
parentKey: 'frontends',
|
|
758
|
+
});
|
|
759
|
+
return node;
|
|
760
|
+
}
|
|
761
|
+
_addFrontendLibrary(options) {
|
|
762
|
+
const index = this.frontends.length;
|
|
763
|
+
return this._insertFrontendLibraryAt(options, index);
|
|
764
|
+
}
|
|
765
|
+
addFrontendLibrary(options) {
|
|
766
|
+
const node = this._addFrontendLibrary(options);
|
|
767
|
+
const index = this.frontends.indexOf(node);
|
|
768
|
+
node.create({
|
|
769
|
+
index,
|
|
770
|
+
parentNode: this,
|
|
771
|
+
parentKey: 'frontends',
|
|
772
|
+
});
|
|
773
|
+
return node;
|
|
774
|
+
}
|
|
775
|
+
getTriggerLauncherExistingNames(excludedList = []) {
|
|
776
|
+
const excludedSet = new Set(excludedList);
|
|
777
|
+
return (this.triggerLaunchers || [])
|
|
778
|
+
.filter((item) => !excludedSet.has(item))
|
|
779
|
+
.map((item) => item.name);
|
|
780
|
+
}
|
|
781
|
+
getTriggerLauncherUniqueName(name = 'triggerLauncher1') {
|
|
782
|
+
return utils.unique(name, this.getTriggerLauncherExistingNames(), undefined, false);
|
|
783
|
+
}
|
|
784
|
+
_insertTriggerLauncherAt(options, index) {
|
|
785
|
+
const triggerLauncherOptions = {};
|
|
786
|
+
const relationOptions = { parentNode: this, parentKey: 'triggerLaunchers' };
|
|
787
|
+
const TriggerLauncher = (0, decorators_1.getConceptConstructor)('TriggerLauncher');
|
|
788
|
+
let triggerLauncher;
|
|
789
|
+
if (!options) {
|
|
790
|
+
triggerLauncher = TriggerLauncher.from({
|
|
791
|
+
...triggerLauncherOptions,
|
|
792
|
+
name: this.getTriggerLauncherUniqueName(),
|
|
793
|
+
}, this, 'triggerLaunchers');
|
|
794
|
+
}
|
|
795
|
+
else if (typeof options === 'string') {
|
|
796
|
+
triggerLauncher = TriggerLauncher.from({
|
|
797
|
+
...triggerLauncherOptions,
|
|
798
|
+
name: options,
|
|
799
|
+
}, this, 'triggerLaunchers');
|
|
800
|
+
}
|
|
801
|
+
else if (asserts.isTriggerLauncher(options)) {
|
|
802
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
803
|
+
triggerLauncher = options;
|
|
804
|
+
Object.assign(triggerLauncher, relationOptions);
|
|
805
|
+
}
|
|
806
|
+
else {
|
|
807
|
+
triggerLauncher = TriggerLauncher.from({
|
|
808
|
+
...triggerLauncherOptions,
|
|
809
|
+
...options,
|
|
810
|
+
}, this, 'triggerLaunchers');
|
|
811
|
+
}
|
|
812
|
+
this.triggerLaunchers.splice(index, 0, triggerLauncher);
|
|
813
|
+
return triggerLauncher;
|
|
814
|
+
}
|
|
815
|
+
insertTriggerLauncherAt(options, index) {
|
|
816
|
+
const node = this._insertTriggerLauncherAt(options, index);
|
|
817
|
+
node.create({
|
|
818
|
+
index,
|
|
819
|
+
parentNode: this,
|
|
820
|
+
parentKey: 'triggerLaunchers',
|
|
821
|
+
});
|
|
822
|
+
return node;
|
|
823
|
+
}
|
|
824
|
+
_addTriggerLauncher(options) {
|
|
825
|
+
const index = 0;
|
|
826
|
+
return this._insertTriggerLauncherAt(options, index);
|
|
827
|
+
}
|
|
828
|
+
addTriggerLauncher(options) {
|
|
829
|
+
const node = this._addTriggerLauncher(options);
|
|
830
|
+
const index = this.triggerLaunchers.indexOf(node);
|
|
831
|
+
node.create({
|
|
832
|
+
index,
|
|
833
|
+
parentNode: this,
|
|
834
|
+
parentKey: 'triggerLaunchers',
|
|
835
|
+
});
|
|
836
|
+
return node;
|
|
837
|
+
}
|
|
838
|
+
getConnectionExistingNames(excludedList = []) {
|
|
839
|
+
const excludedSet = new Set(excludedList);
|
|
840
|
+
return (this.connections || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
841
|
+
}
|
|
842
|
+
getConnectionUniqueName(name = 'connection1') {
|
|
843
|
+
return utils.unique(name, this.getConnectionExistingNames(), undefined, false);
|
|
844
|
+
}
|
|
845
|
+
_insertConnectionAt(options, index) {
|
|
846
|
+
const connectionOptions = {};
|
|
847
|
+
const relationOptions = { parentNode: this, parentKey: 'connections' };
|
|
848
|
+
const Connection = (0, decorators_1.getConceptConstructor)('Connection');
|
|
849
|
+
let connection;
|
|
850
|
+
if (!options) {
|
|
851
|
+
connection = Connection.from({
|
|
852
|
+
...connectionOptions,
|
|
853
|
+
name: this.getConnectionUniqueName(),
|
|
854
|
+
}, this, 'connections');
|
|
855
|
+
}
|
|
856
|
+
else if (typeof options === 'string') {
|
|
857
|
+
connection = Connection.from({
|
|
858
|
+
...connectionOptions,
|
|
859
|
+
name: options,
|
|
860
|
+
}, this, 'connections');
|
|
861
|
+
}
|
|
862
|
+
else if (asserts.isConnection(options)) {
|
|
863
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
864
|
+
connection = options;
|
|
865
|
+
Object.assign(connection, relationOptions);
|
|
866
|
+
}
|
|
867
|
+
else {
|
|
868
|
+
connection = Connection.from({
|
|
869
|
+
...connectionOptions,
|
|
870
|
+
...options,
|
|
871
|
+
}, this, 'connections');
|
|
872
|
+
}
|
|
873
|
+
this.connections.splice(index, 0, connection);
|
|
874
|
+
return connection;
|
|
875
|
+
}
|
|
876
|
+
insertConnectionAt(options, index) {
|
|
877
|
+
const node = this._insertConnectionAt(options, index);
|
|
878
|
+
node.create({
|
|
879
|
+
index,
|
|
880
|
+
parentNode: this,
|
|
881
|
+
parentKey: 'connections',
|
|
882
|
+
});
|
|
883
|
+
return node;
|
|
884
|
+
}
|
|
885
|
+
_addConnection(options) {
|
|
886
|
+
const index = 0;
|
|
887
|
+
return this._insertConnectionAt(options, index);
|
|
888
|
+
}
|
|
889
|
+
addConnection(options) {
|
|
890
|
+
const node = this._addConnection(options);
|
|
891
|
+
const index = this.connections.indexOf(node);
|
|
892
|
+
node.create({
|
|
893
|
+
index,
|
|
894
|
+
parentNode: this,
|
|
895
|
+
parentKey: 'connections',
|
|
896
|
+
});
|
|
897
|
+
return node;
|
|
898
|
+
}
|
|
899
|
+
getMetadataTypeExistingNames(excludedList = []) {
|
|
900
|
+
const excludedSet = new Set(excludedList);
|
|
901
|
+
return (this.metadataTypes || [])
|
|
902
|
+
.filter((item) => !excludedSet.has(item))
|
|
903
|
+
.map((item) => item.name);
|
|
904
|
+
}
|
|
905
|
+
getMetadataTypeUniqueName(name = 'MetadataType1') {
|
|
906
|
+
return utils.unique(name, this.getMetadataTypeExistingNames(), undefined, true);
|
|
907
|
+
}
|
|
908
|
+
_insertMetadataTypeAt(options, index) {
|
|
909
|
+
const metadataTypeOptions = {};
|
|
910
|
+
const relationOptions = { parentNode: this, parentKey: 'metadataTypes' };
|
|
911
|
+
const MetadataType = (0, decorators_1.getConceptConstructor)('MetadataType');
|
|
912
|
+
let metadataType;
|
|
913
|
+
if (!options) {
|
|
914
|
+
metadataType = MetadataType.from({
|
|
915
|
+
...metadataTypeOptions,
|
|
916
|
+
name: this.getMetadataTypeUniqueName(),
|
|
917
|
+
}, this, 'metadataTypes');
|
|
918
|
+
}
|
|
919
|
+
else if (typeof options === 'string') {
|
|
920
|
+
metadataType = MetadataType.from({
|
|
921
|
+
...metadataTypeOptions,
|
|
922
|
+
name: options,
|
|
923
|
+
}, this, 'metadataTypes');
|
|
924
|
+
}
|
|
925
|
+
else if (asserts.isMetadataType(options)) {
|
|
926
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
927
|
+
metadataType = options;
|
|
928
|
+
Object.assign(metadataType, relationOptions);
|
|
929
|
+
}
|
|
930
|
+
else {
|
|
931
|
+
metadataType = MetadataType.from({
|
|
932
|
+
...metadataTypeOptions,
|
|
933
|
+
...options,
|
|
934
|
+
}, this, 'metadataTypes');
|
|
935
|
+
}
|
|
936
|
+
this.metadataTypes.splice(index, 0, metadataType);
|
|
937
|
+
return metadataType;
|
|
938
|
+
}
|
|
939
|
+
insertMetadataTypeAt(options, index) {
|
|
940
|
+
const node = this._insertMetadataTypeAt(options, index);
|
|
941
|
+
node.create({
|
|
942
|
+
index,
|
|
943
|
+
parentNode: this,
|
|
944
|
+
parentKey: 'metadataTypes',
|
|
945
|
+
});
|
|
946
|
+
return node;
|
|
947
|
+
}
|
|
948
|
+
_addMetadataType(options) {
|
|
949
|
+
const index = 0;
|
|
950
|
+
return this._insertMetadataTypeAt(options, index);
|
|
951
|
+
}
|
|
952
|
+
addMetadataType(options) {
|
|
953
|
+
const node = this._addMetadataType(options);
|
|
954
|
+
const index = this.metadataTypes.indexOf(node);
|
|
955
|
+
node.create({
|
|
956
|
+
index,
|
|
957
|
+
parentNode: this,
|
|
958
|
+
parentKey: 'metadataTypes',
|
|
959
|
+
});
|
|
960
|
+
return node;
|
|
961
|
+
}
|
|
962
|
+
getAnnotationExistingNames(excludedList = []) {
|
|
963
|
+
const excludedSet = new Set(excludedList);
|
|
964
|
+
return (this.annotations || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
965
|
+
}
|
|
966
|
+
getAnnotationUniqueName(name = 'annotation1') {
|
|
967
|
+
return utils.unique(name, this.getAnnotationExistingNames(), undefined, false);
|
|
968
|
+
}
|
|
969
|
+
_insertAnnotationAt(options, index) {
|
|
970
|
+
const annotationOptions = {};
|
|
971
|
+
const relationOptions = { parentNode: this, parentKey: 'annotations' };
|
|
972
|
+
const Annotation = (0, decorators_1.getConceptConstructor)('Annotation');
|
|
973
|
+
let annotation;
|
|
974
|
+
if (!options) {
|
|
975
|
+
annotation = Annotation.from({
|
|
976
|
+
...annotationOptions,
|
|
977
|
+
name: this.getAnnotationUniqueName(),
|
|
978
|
+
}, this, 'annotations');
|
|
979
|
+
}
|
|
980
|
+
else if (typeof options === 'string') {
|
|
981
|
+
annotation = Annotation.from({
|
|
982
|
+
...annotationOptions,
|
|
983
|
+
name: options,
|
|
984
|
+
}, this, 'annotations');
|
|
985
|
+
}
|
|
986
|
+
else if (asserts.isAnnotation(options)) {
|
|
987
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
988
|
+
annotation = options;
|
|
989
|
+
Object.assign(annotation, relationOptions);
|
|
990
|
+
}
|
|
991
|
+
else {
|
|
992
|
+
annotation = Annotation.from({
|
|
993
|
+
...annotationOptions,
|
|
994
|
+
...options,
|
|
995
|
+
}, this, 'annotations');
|
|
996
|
+
}
|
|
997
|
+
this.annotations.splice(index, 0, annotation);
|
|
998
|
+
return annotation;
|
|
999
|
+
}
|
|
1000
|
+
insertAnnotationAt(options, index) {
|
|
1001
|
+
const node = this._insertAnnotationAt(options, index);
|
|
1002
|
+
node.create({
|
|
1003
|
+
index,
|
|
1004
|
+
parentNode: this,
|
|
1005
|
+
parentKey: 'annotations',
|
|
1006
|
+
});
|
|
1007
|
+
return node;
|
|
1008
|
+
}
|
|
1009
|
+
_addAnnotation(options) {
|
|
1010
|
+
const index = this.annotations.length;
|
|
1011
|
+
return this._insertAnnotationAt(options, index);
|
|
1012
|
+
}
|
|
1013
|
+
addAnnotation(options) {
|
|
1014
|
+
const node = this._addAnnotation(options);
|
|
1015
|
+
const index = this.annotations.indexOf(node);
|
|
1016
|
+
node.create({
|
|
1017
|
+
index,
|
|
1018
|
+
parentNode: this,
|
|
1019
|
+
parentKey: 'annotations',
|
|
1020
|
+
});
|
|
1021
|
+
return node;
|
|
1022
|
+
}
|
|
1023
|
+
removeDataSource(options) {
|
|
1024
|
+
let dataSource;
|
|
1025
|
+
if (typeof options === 'string') {
|
|
1026
|
+
dataSource = this.dataSources.find((item) => item.name === options);
|
|
1027
|
+
if (!dataSource) {
|
|
1028
|
+
throw new Error('找不到数据源 ' + options);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
else {
|
|
1032
|
+
dataSource = options;
|
|
1033
|
+
}
|
|
1034
|
+
return dataSource.delete();
|
|
1035
|
+
}
|
|
1036
|
+
removeStructure(options) {
|
|
1037
|
+
let structure;
|
|
1038
|
+
if (typeof options === 'string') {
|
|
1039
|
+
structure = this.structures.find((item) => item.name === options);
|
|
1040
|
+
if (!structure) {
|
|
1041
|
+
throw new Error('找不到数据结构 ' + options);
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
else {
|
|
1045
|
+
structure = options;
|
|
1046
|
+
}
|
|
1047
|
+
return structure.delete();
|
|
1048
|
+
}
|
|
1049
|
+
removeEnum(options) {
|
|
1050
|
+
let enumeration;
|
|
1051
|
+
if (typeof options === 'string') {
|
|
1052
|
+
enumeration = this.enums.find((item) => item.name === options);
|
|
1053
|
+
if (!enumeration) {
|
|
1054
|
+
throw new Error('找不到枚举 ' + options);
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
else {
|
|
1058
|
+
enumeration = options;
|
|
1059
|
+
}
|
|
1060
|
+
return enumeration.delete();
|
|
1061
|
+
}
|
|
1062
|
+
removeLogic(options) {
|
|
1063
|
+
let logic;
|
|
1064
|
+
if (typeof options === 'string') {
|
|
1065
|
+
logic = this.logics.find((item) => item.name === options);
|
|
1066
|
+
if (!logic) {
|
|
1067
|
+
throw new Error('找不到逻辑 ' + options);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
else {
|
|
1071
|
+
logic = options;
|
|
1072
|
+
}
|
|
1073
|
+
return logic.delete();
|
|
1074
|
+
}
|
|
1075
|
+
removeInterface(options) {
|
|
1076
|
+
let itface;
|
|
1077
|
+
if (typeof options === 'string') {
|
|
1078
|
+
itface = this.interfaces.find((item) => item.name === options);
|
|
1079
|
+
if (!itface) {
|
|
1080
|
+
throw new Error('找不到接口 ' + options);
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
else {
|
|
1084
|
+
itface = options;
|
|
1085
|
+
}
|
|
1086
|
+
return itface.delete();
|
|
1087
|
+
}
|
|
1088
|
+
removeView(options) {
|
|
1089
|
+
let view;
|
|
1090
|
+
if (typeof options === 'string') {
|
|
1091
|
+
view = this.views.find((item) => item.name === options);
|
|
1092
|
+
if (!view) {
|
|
1093
|
+
throw new Error('找不到页面 ' + options);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
else {
|
|
1097
|
+
view = options;
|
|
1098
|
+
}
|
|
1099
|
+
return view.delete();
|
|
1100
|
+
}
|
|
1101
|
+
removeVariable(options) {
|
|
1102
|
+
let variable;
|
|
1103
|
+
if (typeof options === 'string') {
|
|
1104
|
+
variable = this.frontendVariables.find((item) => item.name === options);
|
|
1105
|
+
if (!variable) {
|
|
1106
|
+
throw new Error('找不到变量 ' + options);
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
else {
|
|
1110
|
+
variable = options;
|
|
1111
|
+
}
|
|
1112
|
+
return variable.delete();
|
|
1113
|
+
}
|
|
1114
|
+
removeProcess(options) {
|
|
1115
|
+
let process;
|
|
1116
|
+
if (typeof options === 'string') {
|
|
1117
|
+
process = this.processes.find((item) => item.name === options);
|
|
1118
|
+
if (!process) {
|
|
1119
|
+
throw new Error('找不到流程 ' + options);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
else {
|
|
1123
|
+
process = options;
|
|
1124
|
+
}
|
|
1125
|
+
return process.delete();
|
|
1126
|
+
}
|
|
1127
|
+
removeProcessV2(options) {
|
|
1128
|
+
let processV2;
|
|
1129
|
+
if (typeof options === 'string') {
|
|
1130
|
+
processV2 = this.processV2s.find((item) => item.name === options);
|
|
1131
|
+
if (!processV2) {
|
|
1132
|
+
throw new Error('找不到流程 ' + options);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
else {
|
|
1136
|
+
processV2 = options;
|
|
1137
|
+
}
|
|
1138
|
+
return processV2.delete();
|
|
1139
|
+
}
|
|
1140
|
+
removeFrontendLibrary(options) {
|
|
1141
|
+
let frontendLibrary;
|
|
1142
|
+
if (typeof options === 'string') {
|
|
1143
|
+
frontendLibrary = this.frontends.find((item) => item.name === options);
|
|
1144
|
+
if (!frontendLibrary) {
|
|
1145
|
+
throw new Error('找不到前端库 ' + options);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
else {
|
|
1149
|
+
frontendLibrary = options;
|
|
1150
|
+
}
|
|
1151
|
+
return frontendLibrary.delete();
|
|
1152
|
+
}
|
|
1153
|
+
removeTriggerLauncher(options) {
|
|
1154
|
+
let triggerLauncher;
|
|
1155
|
+
if (typeof options === 'string') {
|
|
1156
|
+
triggerLauncher = this.triggerLaunchers.find((item) => item.name === options);
|
|
1157
|
+
if (!triggerLauncher) {
|
|
1158
|
+
throw new Error('找不到触发器启动器 ' + options);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
else {
|
|
1162
|
+
triggerLauncher = options;
|
|
1163
|
+
}
|
|
1164
|
+
return triggerLauncher.delete();
|
|
1165
|
+
}
|
|
1166
|
+
removeConnection(options) {
|
|
1167
|
+
let connection;
|
|
1168
|
+
if (typeof options === 'string') {
|
|
1169
|
+
connection = this.connections.find((item) => item.name === options);
|
|
1170
|
+
if (!connection) {
|
|
1171
|
+
throw new Error('找不到连接 ' + options);
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
else {
|
|
1175
|
+
connection = options;
|
|
1176
|
+
}
|
|
1177
|
+
return connection.delete();
|
|
1178
|
+
}
|
|
1179
|
+
removeMetadataType(options) {
|
|
1180
|
+
let metadataType;
|
|
1181
|
+
if (typeof options === 'string') {
|
|
1182
|
+
metadataType = this.metadataTypes.find((item) => item.name === options);
|
|
1183
|
+
if (!metadataType) {
|
|
1184
|
+
throw new Error('找不到元数据类型 ' + options);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
else {
|
|
1188
|
+
metadataType = options;
|
|
1189
|
+
}
|
|
1190
|
+
return metadataType.delete();
|
|
1191
|
+
}
|
|
1192
|
+
removeAnnotation(options) {
|
|
1193
|
+
let annotation;
|
|
1194
|
+
if (typeof options === 'string') {
|
|
1195
|
+
annotation = this.annotations.find((item) => item.name === options);
|
|
1196
|
+
if (!annotation) {
|
|
1197
|
+
throw new Error('找不到注解 ' + options);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
else {
|
|
1201
|
+
annotation = options;
|
|
1202
|
+
}
|
|
1203
|
+
return annotation.delete();
|
|
1204
|
+
}
|
|
1205
|
+
setIsAdd(isAdd) {
|
|
1206
|
+
const object = {
|
|
1207
|
+
isAdd,
|
|
1208
|
+
};
|
|
1209
|
+
this.update({
|
|
1210
|
+
...object,
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* 生成宿主语言的文件路径
|
|
1215
|
+
* @param name 一般不用传,用于 rename
|
|
1216
|
+
*/
|
|
1217
|
+
getEmbeddedFilePath(name = this.name) {
|
|
1218
|
+
return `/embedded/${this.app.name}/${this.parentKey}/${this.name}`;
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* 获取命名空间和
|
|
1222
|
+
* 暂时不考虑 Module 嵌套的情况
|
|
1223
|
+
*/
|
|
1224
|
+
getNamespace() {
|
|
1225
|
+
// connector namespace 为 connector + connectorName
|
|
1226
|
+
if (this.type === 'connector') {
|
|
1227
|
+
return `connector.${this.name}`;
|
|
1228
|
+
}
|
|
1229
|
+
return `${moduleNameSpace[this.parentKey]}`;
|
|
1230
|
+
}
|
|
1231
|
+
getTsNamespace() {
|
|
1232
|
+
if (this.type === 'connector') {
|
|
1233
|
+
return 'connector';
|
|
1234
|
+
}
|
|
1235
|
+
return `${moduleNameSpace[this.parentKey]}`;
|
|
1236
|
+
}
|
|
1237
|
+
getTsNamespaceAndName() {
|
|
1238
|
+
if (this.type === 'connector') {
|
|
1239
|
+
return 'connector';
|
|
1240
|
+
}
|
|
1241
|
+
return `${moduleNameSpace[this.parentKey]}.${this.name}`;
|
|
1242
|
+
}
|
|
1243
|
+
findEnumByName(name) {
|
|
1244
|
+
return this.enums.find((enumItem) => enumItem.name === name);
|
|
1245
|
+
}
|
|
1246
|
+
getFEManifest() {
|
|
1247
|
+
if (!this.compilerInfoMap || !this.compilerInfoMap.manifest) {
|
|
1248
|
+
return null;
|
|
1249
|
+
}
|
|
1250
|
+
try {
|
|
1251
|
+
return JSON.parse(this.compilerInfoMap.manifest);
|
|
1252
|
+
}
|
|
1253
|
+
catch (e) {
|
|
1254
|
+
return null;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
checkFileInManifest(fileName) {
|
|
1258
|
+
const manifest = this.getFEManifest();
|
|
1259
|
+
if (!manifest) {
|
|
1260
|
+
return false;
|
|
1261
|
+
}
|
|
1262
|
+
const manifestFiles = [];
|
|
1263
|
+
Object.keys(manifest).forEach((k) => {
|
|
1264
|
+
if (!k || !manifest[k]) {
|
|
1265
|
+
return;
|
|
1266
|
+
}
|
|
1267
|
+
const fileList = Array.isArray(manifest[k]) ? manifest[k] : [manifest[k]];
|
|
1268
|
+
if (fileList.length > 0) {
|
|
1269
|
+
manifestFiles.push(...fileList);
|
|
1270
|
+
}
|
|
1271
|
+
});
|
|
1272
|
+
return manifestFiles.includes(fileName);
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* 获取属性节点是否存在
|
|
1276
|
+
*/
|
|
1277
|
+
findProperty(name, propertyType) {
|
|
1278
|
+
return this[propertyType].find((item) => item.name === name);
|
|
1279
|
+
}
|
|
1280
|
+
delete() {
|
|
1281
|
+
this.parentNode?.emit('collect:start', {
|
|
1282
|
+
actionMsg: '移除依赖库',
|
|
1283
|
+
});
|
|
1284
|
+
super.delete();
|
|
1285
|
+
this._delete();
|
|
1286
|
+
// if (this.dependencies) {
|
|
1287
|
+
// // 删除依赖链中的依赖
|
|
1288
|
+
// this.dependencies.forEach((tag) => {
|
|
1289
|
+
// const [name, version] = tag.split('-');
|
|
1290
|
+
// const existNode = this.app.dependencies.find((m) => m.name === name && m.version === version);
|
|
1291
|
+
// existNode?.delete();
|
|
1292
|
+
// });
|
|
1293
|
+
// }
|
|
1294
|
+
// 处理同名依赖 重新生成文件
|
|
1295
|
+
// if (this.enable) {
|
|
1296
|
+
// 删[数据源]
|
|
1297
|
+
const dataSourceGroup = this.parentNode?.configuration?.getGroup('dataSource');
|
|
1298
|
+
if (this.dataSources && dataSourceGroup) {
|
|
1299
|
+
this.dataSources.forEach((datasource) => {
|
|
1300
|
+
this.parentNode?.emit('clear:datasourceError', datasource);
|
|
1301
|
+
try {
|
|
1302
|
+
dataSourceGroup.removeConfigProperty(datasource.name);
|
|
1303
|
+
}
|
|
1304
|
+
catch (e) { }
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
// // 已启用的依赖库被删除时,将后续被禁用的同名依赖库 切换为启用
|
|
1308
|
+
// const index = this.app.dependencies.findIndex((m) => m.enable === false && m.name === this.name);
|
|
1309
|
+
// if (index >= 0) {
|
|
1310
|
+
// const nextMainModule = this.app.dependencies[index];
|
|
1311
|
+
// // 更新[禁用的依赖]enable:true
|
|
1312
|
+
// nextMainModule.update({ enable: true });
|
|
1313
|
+
// nextMainModule.softDelete({ index });
|
|
1314
|
+
// }
|
|
1315
|
+
// }
|
|
1316
|
+
this.parentNode?.emit('collect:end');
|
|
1317
|
+
}
|
|
1318
|
+
// 删除再添加 触发文件生成
|
|
1319
|
+
softDelete(options) {
|
|
1320
|
+
// 删[禁用的依赖]
|
|
1321
|
+
super.delete();
|
|
1322
|
+
// 创建[禁用的依赖]
|
|
1323
|
+
this.app.insertModuleInDependenciesAt(this, options.index);
|
|
1324
|
+
// 创建[禁用的依赖]的数据源
|
|
1325
|
+
const dataSourceGroup = this.parentNode?.configuration?.getGroup('dataSource');
|
|
1326
|
+
const ConfigProperty = (0, decorators_1.getConceptConstructor)('ConfigProperty');
|
|
1327
|
+
if (this.dataSources && dataSourceGroup) {
|
|
1328
|
+
this.dataSources.forEach((datasource) => {
|
|
1329
|
+
const body = ConfigProperty.from({
|
|
1330
|
+
name: datasource.name,
|
|
1331
|
+
description: '',
|
|
1332
|
+
isPrivate: false,
|
|
1333
|
+
values: [
|
|
1334
|
+
{ env: 'dev', value: '', concept: 'ConfigPropertyValue' },
|
|
1335
|
+
{ env: 'online', value: '', concept: 'ConfigPropertyValue' },
|
|
1336
|
+
],
|
|
1337
|
+
});
|
|
1338
|
+
dataSourceGroup.addConfigProperty(body);
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
setInterfaces(interfaces) {
|
|
1343
|
+
this.update({
|
|
1344
|
+
interfaces,
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
// 获取数据结构被接口的引用关系
|
|
1348
|
+
getInterfaceStructureMap() {
|
|
1349
|
+
const structureMap = new Map();
|
|
1350
|
+
this.interfaces.forEach((itf) => {
|
|
1351
|
+
const stashItf = itf;
|
|
1352
|
+
const structures = stashItf.getRefStructures(this.structures);
|
|
1353
|
+
structures.forEach((s) => {
|
|
1354
|
+
if (structureMap.has(s)) {
|
|
1355
|
+
structureMap.get(s).add(stashItf);
|
|
1356
|
+
}
|
|
1357
|
+
else {
|
|
1358
|
+
structureMap.set(s, new Set([stashItf]));
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
});
|
|
1362
|
+
return structureMap;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* 设置版本号
|
|
1366
|
+
*/
|
|
1367
|
+
setVersion(version) {
|
|
1368
|
+
this.update({
|
|
1369
|
+
version,
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
toNaturalTS(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
1373
|
+
let code = '';
|
|
1374
|
+
code += `namespace ${typeNameSpace[this.type]}.${this.name} {\n`;
|
|
1375
|
+
this.dataSources?.forEach((dataSource) => {
|
|
1376
|
+
code += dataSource.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1377
|
+
});
|
|
1378
|
+
this.structures?.forEach((structure) => {
|
|
1379
|
+
code += structure.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1380
|
+
});
|
|
1381
|
+
this.enums?.forEach((enumeration) => {
|
|
1382
|
+
code += enumeration.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1383
|
+
});
|
|
1384
|
+
this.metadataTypes?.forEach((metadataType) => {
|
|
1385
|
+
code += metadataType.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1386
|
+
});
|
|
1387
|
+
if (this.metadataTypes.length)
|
|
1388
|
+
code += '\n';
|
|
1389
|
+
this.logics?.forEach((logic) => {
|
|
1390
|
+
code += logic.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1, declaration: true })) + '\n\n';
|
|
1391
|
+
});
|
|
1392
|
+
this.interfaces?.forEach((inter) => {
|
|
1393
|
+
code += inter.toNaturalTS((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1394
|
+
});
|
|
1395
|
+
return code;
|
|
1396
|
+
}
|
|
1397
|
+
toTextualNASL(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
1398
|
+
let code = '';
|
|
1399
|
+
code += (0, nasl_translator_1.createDecoratorCode)(state, this, [
|
|
1400
|
+
'type',
|
|
1401
|
+
'version',
|
|
1402
|
+
'title',
|
|
1403
|
+
'description',
|
|
1404
|
+
'provider',
|
|
1405
|
+
'externalDependencyMap',
|
|
1406
|
+
'compilerInfoMap',
|
|
1407
|
+
]);
|
|
1408
|
+
code += `module ${this.name} {\n`;
|
|
1409
|
+
this.dataSources?.forEach((dataSource) => {
|
|
1410
|
+
code += dataSource.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1411
|
+
});
|
|
1412
|
+
this.structures?.forEach((structure) => {
|
|
1413
|
+
code += structure.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1414
|
+
});
|
|
1415
|
+
this.enums?.forEach((enumeration) => {
|
|
1416
|
+
code += enumeration.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1417
|
+
});
|
|
1418
|
+
this.metadataTypes?.forEach((metadataType) => {
|
|
1419
|
+
code += metadataType.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1420
|
+
});
|
|
1421
|
+
this.logics?.forEach((logic) => {
|
|
1422
|
+
code += logic.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1, declaration: true })) + '\n\n';
|
|
1423
|
+
});
|
|
1424
|
+
this.interfaces?.forEach((inter) => {
|
|
1425
|
+
code += inter.toTextualNASL((0, nasl_translator_1.shiftState)(state, code, { tabSize: state.tabSize + 1 })) + '\n';
|
|
1426
|
+
});
|
|
1427
|
+
code += `${(0, nasl_translator_1.indent)(state.tabSize)}}`;
|
|
1428
|
+
return code;
|
|
1429
|
+
}
|
|
1430
|
+
};
|
|
1431
|
+
exports.Module = Module;
|
|
1432
|
+
__decorate([
|
|
1433
|
+
(0, decorators_1.property)()
|
|
1434
|
+
// @ts-ignore
|
|
1435
|
+
], Module.prototype, "concept", void 0);
|
|
1436
|
+
__decorate([
|
|
1437
|
+
(0, decorators_1.property)()
|
|
1438
|
+
], Module.prototype, "type", void 0);
|
|
1439
|
+
__decorate([
|
|
1440
|
+
(0, decorators_1.property)()
|
|
1441
|
+
], Module.prototype, "version", void 0);
|
|
1442
|
+
__decorate([
|
|
1443
|
+
(0, decorators_1.property)()
|
|
1444
|
+
], Module.prototype, "name", void 0);
|
|
1445
|
+
__decorate([
|
|
1446
|
+
(0, decorators_1.property)()
|
|
1447
|
+
], Module.prototype, "title", void 0);
|
|
1448
|
+
__decorate([
|
|
1449
|
+
(0, decorators_1.property)()
|
|
1450
|
+
], Module.prototype, "description", void 0);
|
|
1451
|
+
__decorate([
|
|
1452
|
+
(0, decorators_1.property)()
|
|
1453
|
+
], Module.prototype, "provider", void 0);
|
|
1454
|
+
__decorate([
|
|
1455
|
+
(0, decorators_1.property)()
|
|
1456
|
+
], Module.prototype, "externalDependencyMap", void 0);
|
|
1457
|
+
__decorate([
|
|
1458
|
+
(0, decorators_1.property)()
|
|
1459
|
+
], Module.prototype, "compilerInfoMap", void 0);
|
|
1460
|
+
__decorate([
|
|
1461
|
+
(0, decorators_1.property)({
|
|
1462
|
+
objectRef: 'DataSource',
|
|
1463
|
+
isArray: true,
|
|
1464
|
+
defaultValue: [],
|
|
1465
|
+
})
|
|
1466
|
+
], Module.prototype, "dataSources", void 0);
|
|
1467
|
+
__decorate([
|
|
1468
|
+
(0, decorators_1.property)({
|
|
1469
|
+
objectRef: 'Structure',
|
|
1470
|
+
isArray: true,
|
|
1471
|
+
defaultValue: [],
|
|
1472
|
+
})
|
|
1473
|
+
], Module.prototype, "structures", void 0);
|
|
1474
|
+
__decorate([
|
|
1475
|
+
(0, decorators_1.property)({
|
|
1476
|
+
objectRef: 'Enum',
|
|
1477
|
+
isArray: true,
|
|
1478
|
+
defaultValue: [],
|
|
1479
|
+
})
|
|
1480
|
+
], Module.prototype, "enums", void 0);
|
|
1481
|
+
__decorate([
|
|
1482
|
+
(0, decorators_1.property)({
|
|
1483
|
+
objectRef: 'Logic',
|
|
1484
|
+
isArray: true,
|
|
1485
|
+
defaultValue: [],
|
|
1486
|
+
})
|
|
1487
|
+
], Module.prototype, "logics", void 0);
|
|
1488
|
+
__decorate([
|
|
1489
|
+
(0, decorators_1.property)({
|
|
1490
|
+
objectRef: 'AbstractInterface',
|
|
1491
|
+
isArray: true,
|
|
1492
|
+
defaultValue: [],
|
|
1493
|
+
})
|
|
1494
|
+
], Module.prototype, "interfaces", void 0);
|
|
1495
|
+
__decorate([
|
|
1496
|
+
(0, decorators_1.property)({
|
|
1497
|
+
objectRef: 'View',
|
|
1498
|
+
isArray: true,
|
|
1499
|
+
defaultValue: [],
|
|
1500
|
+
})
|
|
1501
|
+
], Module.prototype, "views", void 0);
|
|
1502
|
+
__decorate([
|
|
1503
|
+
(0, decorators_1.property)({
|
|
1504
|
+
objectRef: 'Variable',
|
|
1505
|
+
isArray: true,
|
|
1506
|
+
defaultValue: null,
|
|
1507
|
+
})
|
|
1508
|
+
], Module.prototype, "frontendVariables", void 0);
|
|
1509
|
+
__decorate([
|
|
1510
|
+
(0, decorators_1.property)({
|
|
1511
|
+
objectRef: 'Process',
|
|
1512
|
+
isArray: true,
|
|
1513
|
+
defaultValue: [],
|
|
1514
|
+
})
|
|
1515
|
+
], Module.prototype, "processes", void 0);
|
|
1516
|
+
__decorate([
|
|
1517
|
+
(0, decorators_1.property)({
|
|
1518
|
+
objectRef: 'ProcessV2',
|
|
1519
|
+
isArray: true,
|
|
1520
|
+
defaultValue: [],
|
|
1521
|
+
})
|
|
1522
|
+
], Module.prototype, "processV2s", void 0);
|
|
1523
|
+
__decorate([
|
|
1524
|
+
(0, decorators_1.property)({
|
|
1525
|
+
objectRef: 'FrontendLibrary',
|
|
1526
|
+
isArray: true,
|
|
1527
|
+
defaultValue: [],
|
|
1528
|
+
})
|
|
1529
|
+
], Module.prototype, "frontends", void 0);
|
|
1530
|
+
__decorate([
|
|
1531
|
+
(0, decorators_1.property)({
|
|
1532
|
+
objectRef: 'Configuration',
|
|
1533
|
+
})
|
|
1534
|
+
], Module.prototype, "configuration", void 0);
|
|
1535
|
+
__decorate([
|
|
1536
|
+
(0, decorators_1.property)({
|
|
1537
|
+
objectRef: 'TriggerLauncher',
|
|
1538
|
+
isArray: true,
|
|
1539
|
+
defaultValue: null,
|
|
1540
|
+
})
|
|
1541
|
+
], Module.prototype, "triggerLaunchers", void 0);
|
|
1542
|
+
__decorate([
|
|
1543
|
+
(0, decorators_1.property)({
|
|
1544
|
+
objectRef: 'Connection',
|
|
1545
|
+
isArray: true,
|
|
1546
|
+
defaultValue: null,
|
|
1547
|
+
})
|
|
1548
|
+
], Module.prototype, "connections", void 0);
|
|
1549
|
+
__decorate([
|
|
1550
|
+
(0, decorators_1.property)({
|
|
1551
|
+
objectRef: 'MetadataType',
|
|
1552
|
+
isArray: true,
|
|
1553
|
+
defaultValue: null,
|
|
1554
|
+
})
|
|
1555
|
+
], Module.prototype, "metadataTypes", void 0);
|
|
1556
|
+
__decorate([
|
|
1557
|
+
(0, decorators_1.property)({
|
|
1558
|
+
objectRef: 'Annotation',
|
|
1559
|
+
isArray: true,
|
|
1560
|
+
defaultValue: [],
|
|
1561
|
+
})
|
|
1562
|
+
], Module.prototype, "annotations", void 0);
|
|
1563
|
+
__decorate([
|
|
1564
|
+
(0, decorators_1.property)()
|
|
1565
|
+
], Module.prototype, "isAdd", void 0);
|
|
1566
|
+
__decorate([
|
|
1567
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
1568
|
+
], Module.prototype, "toNaturalTS", null);
|
|
1569
|
+
__decorate([
|
|
1570
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
1571
|
+
], Module.prototype, "toTextualNASL", null);
|
|
1572
|
+
exports.Module = Module = Module_1 = __decorate([
|
|
1573
|
+
(0, decorators_1.concept)('模块')
|
|
1574
|
+
], Module);
|
|
1575
|
+
exports.default = Module;
|
|
1576
|
+
//================================================================================
|
|
1577
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
1578
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
1579
|
+
//================================================================================
|
|
1580
|
+
//# sourceMappingURL=Module__.js.map
|