@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,3475 @@
|
|
|
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 App_1;
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.App = void 0;
|
|
37
|
+
const nasl_utils_1 = require("@lcap/nasl-utils");
|
|
38
|
+
const nasl_translator_1 = require("@lcap/nasl-translator");
|
|
39
|
+
const service_1 = require("../service");
|
|
40
|
+
const utils_1 = require("../utils");
|
|
41
|
+
const decorators_1 = require("../decorators");
|
|
42
|
+
const utils = __importStar(require("../utils"));
|
|
43
|
+
const asserts = __importStar(require("./utils/asserts"));
|
|
44
|
+
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
45
|
+
/**
|
|
46
|
+
* 应用
|
|
47
|
+
*/
|
|
48
|
+
let App = class App extends BaseNode_1.default {
|
|
49
|
+
static { App_1 = this; }
|
|
50
|
+
/** 类名 */
|
|
51
|
+
static { this.ConceptName = 'App'; }
|
|
52
|
+
/**
|
|
53
|
+
* 是否为抽象类
|
|
54
|
+
* 抽象类不能产生 concept: string
|
|
55
|
+
*/
|
|
56
|
+
static { this.isAbstract = false; }
|
|
57
|
+
/** 继承链 */
|
|
58
|
+
static { this.inheritanceChain = ['BaseNode']; }
|
|
59
|
+
/**
|
|
60
|
+
* @param source 需要合并的部分参数
|
|
61
|
+
*/
|
|
62
|
+
constructor(source) {
|
|
63
|
+
source = Object.assign({}, App_1.getDefaultOptions(), source);
|
|
64
|
+
super(source);
|
|
65
|
+
/**
|
|
66
|
+
* 应用 Id
|
|
67
|
+
*/
|
|
68
|
+
this.id = '';
|
|
69
|
+
/**
|
|
70
|
+
* 应用标识
|
|
71
|
+
*/
|
|
72
|
+
this.name = '';
|
|
73
|
+
/**
|
|
74
|
+
* 数据源列表
|
|
75
|
+
*/
|
|
76
|
+
this.dataSources = [];
|
|
77
|
+
/**
|
|
78
|
+
* 数据结构列表
|
|
79
|
+
*/
|
|
80
|
+
this.structures = [];
|
|
81
|
+
/**
|
|
82
|
+
* 枚举列表
|
|
83
|
+
*/
|
|
84
|
+
this.enums = [];
|
|
85
|
+
/**
|
|
86
|
+
* 逻辑列表
|
|
87
|
+
*/
|
|
88
|
+
this.logics = [];
|
|
89
|
+
/**
|
|
90
|
+
* 覆写逻辑列表
|
|
91
|
+
*/
|
|
92
|
+
this.overriddenLogics = [];
|
|
93
|
+
/**
|
|
94
|
+
* 接口列表
|
|
95
|
+
*/
|
|
96
|
+
this.interfaces = [];
|
|
97
|
+
/**
|
|
98
|
+
* 端类型列表
|
|
99
|
+
*/
|
|
100
|
+
this.frontendTypes = [];
|
|
101
|
+
/**
|
|
102
|
+
* 流程列表
|
|
103
|
+
*/
|
|
104
|
+
this.processes = [];
|
|
105
|
+
/**
|
|
106
|
+
* 流程列表
|
|
107
|
+
*/
|
|
108
|
+
this.processV2s = [];
|
|
109
|
+
/**
|
|
110
|
+
* 角色列表
|
|
111
|
+
*/
|
|
112
|
+
this.roles = [];
|
|
113
|
+
/**
|
|
114
|
+
* 连接器列表
|
|
115
|
+
*/
|
|
116
|
+
this.connectorDependencies = [];
|
|
117
|
+
/**
|
|
118
|
+
* 接口应用列表(兼容老版)
|
|
119
|
+
*/
|
|
120
|
+
this.interfaceDependencies = [];
|
|
121
|
+
/**
|
|
122
|
+
* 扩展模块列表
|
|
123
|
+
*/
|
|
124
|
+
this.dependencies = [];
|
|
125
|
+
/**
|
|
126
|
+
* 暴露接口的接口鉴权
|
|
127
|
+
*/
|
|
128
|
+
this.authLogics = [];
|
|
129
|
+
/**
|
|
130
|
+
* 调用接口的鉴权模板
|
|
131
|
+
*/
|
|
132
|
+
this.authLogicsForCallInterface = [];
|
|
133
|
+
/**
|
|
134
|
+
* 连接
|
|
135
|
+
*/
|
|
136
|
+
this.connections = [];
|
|
137
|
+
/**
|
|
138
|
+
* 触发器启动器
|
|
139
|
+
*/
|
|
140
|
+
this.triggerLaunchers = [];
|
|
141
|
+
/**
|
|
142
|
+
* 元数据类型列表
|
|
143
|
+
*/
|
|
144
|
+
this.metadataTypes = [];
|
|
145
|
+
/**
|
|
146
|
+
* 是否为官方应用
|
|
147
|
+
*/
|
|
148
|
+
this.officialType = undefined;
|
|
149
|
+
/**
|
|
150
|
+
* 轻舟项目 Id
|
|
151
|
+
*/
|
|
152
|
+
this.projectId = undefined;
|
|
153
|
+
/**
|
|
154
|
+
* 租户 Id
|
|
155
|
+
*/
|
|
156
|
+
this.tenantId = undefined;
|
|
157
|
+
/**
|
|
158
|
+
* 租户 Id
|
|
159
|
+
*/
|
|
160
|
+
this.userGroupId = undefined;
|
|
161
|
+
/**
|
|
162
|
+
* 多环境
|
|
163
|
+
*/
|
|
164
|
+
this.envs = undefined;
|
|
165
|
+
/**
|
|
166
|
+
* 多环境
|
|
167
|
+
*/
|
|
168
|
+
this.envList = ['dev', 'online'];
|
|
169
|
+
/**
|
|
170
|
+
* 发布状态
|
|
171
|
+
*/
|
|
172
|
+
this.deploying = undefined;
|
|
173
|
+
/**
|
|
174
|
+
* 发布 Id
|
|
175
|
+
*/
|
|
176
|
+
this.deploymentId = undefined;
|
|
177
|
+
/**
|
|
178
|
+
* 从模板创建的模板 Id
|
|
179
|
+
*/
|
|
180
|
+
this.templateId = undefined;
|
|
181
|
+
/**
|
|
182
|
+
* 组合节点缓存
|
|
183
|
+
*/
|
|
184
|
+
this.composeCache = {};
|
|
185
|
+
/**
|
|
186
|
+
* 语言服务
|
|
187
|
+
*/
|
|
188
|
+
this.naslServer = undefined;
|
|
189
|
+
/**
|
|
190
|
+
* 是否启动新版流程
|
|
191
|
+
*/
|
|
192
|
+
this.newProcessVersion = false;
|
|
193
|
+
// loadPackageInfo(scope: string) {
|
|
194
|
+
// const materialConfig = (window as any).globalData.materialConfig || {};
|
|
195
|
+
// const { framework, ui } = materialConfig;
|
|
196
|
+
// const packageInfo = {
|
|
197
|
+
// template: [],{ name: '', version: '', scope },
|
|
198
|
+
// ui: [],{ name: '', version: '', scope },
|
|
199
|
+
// scope,
|
|
200
|
+
// };
|
|
201
|
+
// packageInfo.template.name = scope === 'h5' ? framework.h5 : framework.pc;
|
|
202
|
+
// packageInfo.template.version = framework.version;
|
|
203
|
+
// packageInfo.ui.name = scope === 'h5' ? ui.h5.name : ui.pc.name;
|
|
204
|
+
// packageInfo.ui.version = scope === 'h5' ? ui.h5.version : ui.pc.version;
|
|
205
|
+
// return packageInfo;
|
|
206
|
+
// }
|
|
207
|
+
this.packageInfos = [];
|
|
208
|
+
/**
|
|
209
|
+
* 当前正在发布的环境,临时状态
|
|
210
|
+
*/
|
|
211
|
+
this.curDeployEnv = 'dev';
|
|
212
|
+
this.__databaseTypeMap = {};
|
|
213
|
+
super.subConstructor(source);
|
|
214
|
+
}
|
|
215
|
+
static from(source, parentNode, parentKey) {
|
|
216
|
+
return super.from(source, parentNode, parentKey);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* 设置集成
|
|
220
|
+
*/
|
|
221
|
+
setIntegration(integration) {
|
|
222
|
+
integration._delete();
|
|
223
|
+
const relationOptions = { parentNode: this, parentKey: 'integration' };
|
|
224
|
+
Object.assign(integration, relationOptions);
|
|
225
|
+
const object = {
|
|
226
|
+
integration,
|
|
227
|
+
};
|
|
228
|
+
this.update({
|
|
229
|
+
...object,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
getDataSourceUniqueName(name = 'dataSource1') {
|
|
233
|
+
return utils.unique(name, this.getDataSourceExistingNames(), undefined, true);
|
|
234
|
+
}
|
|
235
|
+
_insertDataSourceAt(options, index) {
|
|
236
|
+
const dataSourceOptions = {};
|
|
237
|
+
const relationOptions = { parentNode: this, parentKey: 'dataSources' };
|
|
238
|
+
const DataSource = (0, decorators_1.getConceptConstructor)('DataSource');
|
|
239
|
+
let dataSource;
|
|
240
|
+
if (!options) {
|
|
241
|
+
dataSource = DataSource.from({
|
|
242
|
+
...dataSourceOptions,
|
|
243
|
+
name: this.getDataSourceUniqueName(),
|
|
244
|
+
}, this, 'dataSources');
|
|
245
|
+
}
|
|
246
|
+
else if (typeof options === 'string') {
|
|
247
|
+
dataSource = DataSource.from({
|
|
248
|
+
...dataSourceOptions,
|
|
249
|
+
name: options,
|
|
250
|
+
}, this, 'dataSources');
|
|
251
|
+
}
|
|
252
|
+
else if (asserts.isDataSource(options)) {
|
|
253
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
254
|
+
dataSource = options;
|
|
255
|
+
Object.assign(dataSource, relationOptions);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
dataSource = DataSource.from({
|
|
259
|
+
...dataSourceOptions,
|
|
260
|
+
...options,
|
|
261
|
+
}, this, 'dataSources');
|
|
262
|
+
}
|
|
263
|
+
this.dataSources.splice(index, 0, dataSource);
|
|
264
|
+
return dataSource;
|
|
265
|
+
}
|
|
266
|
+
insertDataSourceAt(options, index) {
|
|
267
|
+
const node = this._insertDataSourceAt(options, index);
|
|
268
|
+
node.create({
|
|
269
|
+
index,
|
|
270
|
+
parentNode: this,
|
|
271
|
+
parentKey: 'dataSources',
|
|
272
|
+
});
|
|
273
|
+
return node;
|
|
274
|
+
}
|
|
275
|
+
_addDataSource(options) {
|
|
276
|
+
const index = this.dataSources.length;
|
|
277
|
+
return this._insertDataSourceAt(options, index);
|
|
278
|
+
}
|
|
279
|
+
addDataSource(options) {
|
|
280
|
+
const node = this._addDataSource(options);
|
|
281
|
+
const index = this.dataSources.indexOf(node);
|
|
282
|
+
node.create({
|
|
283
|
+
index,
|
|
284
|
+
parentNode: this,
|
|
285
|
+
parentKey: 'dataSources',
|
|
286
|
+
});
|
|
287
|
+
return node;
|
|
288
|
+
}
|
|
289
|
+
getStructureExistingNames(excludedList = []) {
|
|
290
|
+
const excludedSet = new Set(excludedList);
|
|
291
|
+
return (this.structures || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
292
|
+
}
|
|
293
|
+
getStructureUniqueName(name = 'Structure1') {
|
|
294
|
+
return utils.unique(name, this.getStructureExistingNames(), undefined, true);
|
|
295
|
+
}
|
|
296
|
+
_insertStructureAt(options, index) {
|
|
297
|
+
const structureOptions = {};
|
|
298
|
+
const relationOptions = { parentNode: this, parentKey: 'structures' };
|
|
299
|
+
const Structure = (0, decorators_1.getConceptConstructor)('Structure');
|
|
300
|
+
let structure;
|
|
301
|
+
if (!options) {
|
|
302
|
+
structure = Structure.from({
|
|
303
|
+
...structureOptions,
|
|
304
|
+
name: this.getStructureUniqueName(),
|
|
305
|
+
}, this, 'structures');
|
|
306
|
+
}
|
|
307
|
+
else if (typeof options === 'string') {
|
|
308
|
+
structure = Structure.from({
|
|
309
|
+
...structureOptions,
|
|
310
|
+
name: options,
|
|
311
|
+
}, this, 'structures');
|
|
312
|
+
}
|
|
313
|
+
else if (asserts.isStructure(options)) {
|
|
314
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
315
|
+
structure = options;
|
|
316
|
+
Object.assign(structure, relationOptions);
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
structure = Structure.from({
|
|
320
|
+
...structureOptions,
|
|
321
|
+
...options,
|
|
322
|
+
}, this, 'structures');
|
|
323
|
+
}
|
|
324
|
+
this.structures.splice(index, 0, structure);
|
|
325
|
+
return structure;
|
|
326
|
+
}
|
|
327
|
+
insertStructureAt(options, index) {
|
|
328
|
+
const node = this._insertStructureAt(options, index);
|
|
329
|
+
node.create({
|
|
330
|
+
index,
|
|
331
|
+
parentNode: this,
|
|
332
|
+
parentKey: 'structures',
|
|
333
|
+
});
|
|
334
|
+
return node;
|
|
335
|
+
}
|
|
336
|
+
_addStructure(options) {
|
|
337
|
+
const index = 0;
|
|
338
|
+
return this._insertStructureAt(options, index);
|
|
339
|
+
}
|
|
340
|
+
addStructure(options) {
|
|
341
|
+
const node = this._addStructure(options);
|
|
342
|
+
const index = this.structures.indexOf(node);
|
|
343
|
+
node.create({
|
|
344
|
+
index,
|
|
345
|
+
parentNode: this,
|
|
346
|
+
parentKey: 'structures',
|
|
347
|
+
});
|
|
348
|
+
return node;
|
|
349
|
+
}
|
|
350
|
+
getEnumExistingNames(excludedList = []) {
|
|
351
|
+
const excludedSet = new Set(excludedList);
|
|
352
|
+
return (this.enums || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
353
|
+
}
|
|
354
|
+
getEnumUniqueName(name = 'Enum1') {
|
|
355
|
+
return utils.unique(name, this.getEnumExistingNames(), undefined, true);
|
|
356
|
+
}
|
|
357
|
+
_insertEnumAt(options, index) {
|
|
358
|
+
const enumerationOptions = {};
|
|
359
|
+
const relationOptions = { parentNode: this, parentKey: 'enums' };
|
|
360
|
+
const Enum = (0, decorators_1.getConceptConstructor)('Enum');
|
|
361
|
+
let enumeration;
|
|
362
|
+
if (!options) {
|
|
363
|
+
enumeration = Enum.from({
|
|
364
|
+
...enumerationOptions,
|
|
365
|
+
name: this.getEnumUniqueName(),
|
|
366
|
+
}, this, 'enums');
|
|
367
|
+
}
|
|
368
|
+
else if (typeof options === 'string') {
|
|
369
|
+
enumeration = Enum.from({
|
|
370
|
+
...enumerationOptions,
|
|
371
|
+
name: options,
|
|
372
|
+
}, this, 'enums');
|
|
373
|
+
}
|
|
374
|
+
else if (asserts.isEnum(options)) {
|
|
375
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
376
|
+
enumeration = options;
|
|
377
|
+
Object.assign(enumeration, relationOptions);
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
enumeration = Enum.from({
|
|
381
|
+
...enumerationOptions,
|
|
382
|
+
...options,
|
|
383
|
+
}, this, 'enums');
|
|
384
|
+
}
|
|
385
|
+
this.enums.splice(index, 0, enumeration);
|
|
386
|
+
return enumeration;
|
|
387
|
+
}
|
|
388
|
+
insertEnumAt(options, index) {
|
|
389
|
+
const node = this._insertEnumAt(options, index);
|
|
390
|
+
node.create({
|
|
391
|
+
index,
|
|
392
|
+
parentNode: this,
|
|
393
|
+
parentKey: 'enums',
|
|
394
|
+
});
|
|
395
|
+
return node;
|
|
396
|
+
}
|
|
397
|
+
_addEnum(options) {
|
|
398
|
+
const index = 0;
|
|
399
|
+
return this._insertEnumAt(options, index);
|
|
400
|
+
}
|
|
401
|
+
addEnum(options) {
|
|
402
|
+
const node = this._addEnum(options);
|
|
403
|
+
const index = this.enums.indexOf(node);
|
|
404
|
+
node.create({
|
|
405
|
+
index,
|
|
406
|
+
parentNode: this,
|
|
407
|
+
parentKey: 'enums',
|
|
408
|
+
});
|
|
409
|
+
return node;
|
|
410
|
+
}
|
|
411
|
+
getLogicExistingNames(excludedList = []) {
|
|
412
|
+
const excludedSet = new Set(excludedList);
|
|
413
|
+
return (this.logics || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
414
|
+
}
|
|
415
|
+
getLogicUniqueName(name = 'logic1') {
|
|
416
|
+
return utils.unique(name, this.getLogicExistingNames(), undefined, true);
|
|
417
|
+
}
|
|
418
|
+
_insertLogicAt(options, index) {
|
|
419
|
+
const logicOptions = {};
|
|
420
|
+
const relationOptions = { parentNode: this, parentKey: 'logics' };
|
|
421
|
+
const Logic = (0, decorators_1.getConceptConstructor)('Logic');
|
|
422
|
+
let logic;
|
|
423
|
+
if (!options) {
|
|
424
|
+
logic = Logic.from({
|
|
425
|
+
...logicOptions,
|
|
426
|
+
name: this.getLogicUniqueName(),
|
|
427
|
+
}, this, 'logics');
|
|
428
|
+
}
|
|
429
|
+
else if (typeof options === 'string') {
|
|
430
|
+
logic = Logic.from({
|
|
431
|
+
...logicOptions,
|
|
432
|
+
name: options,
|
|
433
|
+
}, this, 'logics');
|
|
434
|
+
}
|
|
435
|
+
else if (asserts.isLogic(options)) {
|
|
436
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
437
|
+
logic = options;
|
|
438
|
+
Object.assign(logic, relationOptions);
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
logic = Logic.from({
|
|
442
|
+
...logicOptions,
|
|
443
|
+
...options,
|
|
444
|
+
}, this, 'logics');
|
|
445
|
+
}
|
|
446
|
+
this.logics.splice(index, 0, logic);
|
|
447
|
+
return logic;
|
|
448
|
+
}
|
|
449
|
+
insertLogicAt(options, index) {
|
|
450
|
+
const node = this._insertLogicAt(options, index);
|
|
451
|
+
node.create({
|
|
452
|
+
index,
|
|
453
|
+
parentNode: this,
|
|
454
|
+
parentKey: 'logics',
|
|
455
|
+
});
|
|
456
|
+
return node;
|
|
457
|
+
}
|
|
458
|
+
_addLogic(options) {
|
|
459
|
+
const index = 0;
|
|
460
|
+
return this._insertLogicAt(options, index);
|
|
461
|
+
}
|
|
462
|
+
addLogic(options) {
|
|
463
|
+
const node = this._addLogic(options);
|
|
464
|
+
const index = this.logics.indexOf(node);
|
|
465
|
+
node.create({
|
|
466
|
+
index,
|
|
467
|
+
parentNode: this,
|
|
468
|
+
parentKey: 'logics',
|
|
469
|
+
});
|
|
470
|
+
return node;
|
|
471
|
+
}
|
|
472
|
+
getOverriddenLogicExistingNames(excludedList = []) {
|
|
473
|
+
const excludedSet = new Set(excludedList);
|
|
474
|
+
return (this.overriddenLogics || [])
|
|
475
|
+
.filter((item) => !excludedSet.has(item))
|
|
476
|
+
.map((item) => item.name);
|
|
477
|
+
}
|
|
478
|
+
getOverriddenLogicUniqueName(name = 'overriddenLogic1') {
|
|
479
|
+
return utils.unique(name, this.getOverriddenLogicExistingNames(), undefined, true);
|
|
480
|
+
}
|
|
481
|
+
_insertOverriddenLogicAt(options, index) {
|
|
482
|
+
const overriddenLogicOptions = {};
|
|
483
|
+
const relationOptions = { parentNode: this, parentKey: 'overriddenLogics' };
|
|
484
|
+
const OverriddenLogic = (0, decorators_1.getConceptConstructor)('OverriddenLogic');
|
|
485
|
+
let overriddenLogic;
|
|
486
|
+
if (!options) {
|
|
487
|
+
overriddenLogic = OverriddenLogic.from({
|
|
488
|
+
...overriddenLogicOptions,
|
|
489
|
+
name: this.getOverriddenLogicUniqueName(),
|
|
490
|
+
}, this, 'overriddenLogics');
|
|
491
|
+
}
|
|
492
|
+
else if (typeof options === 'string') {
|
|
493
|
+
overriddenLogic = OverriddenLogic.from({
|
|
494
|
+
...overriddenLogicOptions,
|
|
495
|
+
name: options,
|
|
496
|
+
}, this, 'overriddenLogics');
|
|
497
|
+
}
|
|
498
|
+
else if (asserts.isOverriddenLogic(options)) {
|
|
499
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
500
|
+
overriddenLogic = options;
|
|
501
|
+
Object.assign(overriddenLogic, relationOptions);
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
overriddenLogic = OverriddenLogic.from({
|
|
505
|
+
...overriddenLogicOptions,
|
|
506
|
+
...options,
|
|
507
|
+
}, this, 'overriddenLogics');
|
|
508
|
+
}
|
|
509
|
+
this.overriddenLogics.splice(index, 0, overriddenLogic);
|
|
510
|
+
return overriddenLogic;
|
|
511
|
+
}
|
|
512
|
+
insertOverriddenLogicAt(options, index) {
|
|
513
|
+
const node = this._insertOverriddenLogicAt(options, index);
|
|
514
|
+
node.create({
|
|
515
|
+
index,
|
|
516
|
+
parentNode: this,
|
|
517
|
+
parentKey: 'overriddenLogics',
|
|
518
|
+
});
|
|
519
|
+
return node;
|
|
520
|
+
}
|
|
521
|
+
_addOverriddenLogic(options) {
|
|
522
|
+
const index = 0;
|
|
523
|
+
return this._insertOverriddenLogicAt(options, index);
|
|
524
|
+
}
|
|
525
|
+
addOverriddenLogic(options) {
|
|
526
|
+
const node = this._addOverriddenLogic(options);
|
|
527
|
+
const index = this.overriddenLogics.indexOf(node);
|
|
528
|
+
node.create({
|
|
529
|
+
index,
|
|
530
|
+
parentNode: this,
|
|
531
|
+
parentKey: 'overriddenLogics',
|
|
532
|
+
});
|
|
533
|
+
return node;
|
|
534
|
+
}
|
|
535
|
+
getInterfaceExistingNames(excludedList = []) {
|
|
536
|
+
const excludedSet = new Set(excludedList);
|
|
537
|
+
return (this.interfaces || [])
|
|
538
|
+
.filter((item) => !excludedSet.has(item))
|
|
539
|
+
.map((item) => item.name);
|
|
540
|
+
}
|
|
541
|
+
getInterfaceUniqueName(name = 'Interface1') {
|
|
542
|
+
return utils.unique(name, this.getInterfaceExistingNames(), undefined, true);
|
|
543
|
+
}
|
|
544
|
+
_insertInterfaceAt(options, index) {
|
|
545
|
+
const itfaceOptions = {};
|
|
546
|
+
const relationOptions = { parentNode: this, parentKey: 'interfaces' };
|
|
547
|
+
const AbstractInterface = (0, decorators_1.getConceptConstructor)('AbstractInterface');
|
|
548
|
+
let itface;
|
|
549
|
+
if (!options) {
|
|
550
|
+
itface = AbstractInterface.from({
|
|
551
|
+
...itfaceOptions,
|
|
552
|
+
name: this.getInterfaceUniqueName(),
|
|
553
|
+
}, this, 'interfaces');
|
|
554
|
+
}
|
|
555
|
+
else if (typeof options === 'string') {
|
|
556
|
+
itface = AbstractInterface.from({
|
|
557
|
+
...itfaceOptions,
|
|
558
|
+
name: options,
|
|
559
|
+
}, this, 'interfaces');
|
|
560
|
+
}
|
|
561
|
+
else if (asserts.isAbstractInterface(options)) {
|
|
562
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
563
|
+
itface = options;
|
|
564
|
+
Object.assign(itface, relationOptions);
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
567
|
+
itface = AbstractInterface.from({
|
|
568
|
+
...itfaceOptions,
|
|
569
|
+
...options,
|
|
570
|
+
}, this, 'interfaces');
|
|
571
|
+
}
|
|
572
|
+
this.interfaces.splice(index, 0, itface);
|
|
573
|
+
return itface;
|
|
574
|
+
}
|
|
575
|
+
insertInterfaceAt(options, index) {
|
|
576
|
+
const node = this._insertInterfaceAt(options, index);
|
|
577
|
+
node.create({
|
|
578
|
+
index,
|
|
579
|
+
parentNode: this,
|
|
580
|
+
parentKey: 'interfaces',
|
|
581
|
+
});
|
|
582
|
+
return node;
|
|
583
|
+
}
|
|
584
|
+
_addInterface(options) {
|
|
585
|
+
const index = 0;
|
|
586
|
+
return this._insertInterfaceAt(options, index);
|
|
587
|
+
}
|
|
588
|
+
addInterface(options) {
|
|
589
|
+
const node = this._addInterface(options);
|
|
590
|
+
const index = this.interfaces.indexOf(node);
|
|
591
|
+
node.create({
|
|
592
|
+
index,
|
|
593
|
+
parentNode: this,
|
|
594
|
+
parentKey: 'interfaces',
|
|
595
|
+
});
|
|
596
|
+
return node;
|
|
597
|
+
}
|
|
598
|
+
getFrontendTypeExistingNames(excludedList = []) {
|
|
599
|
+
const excludedSet = new Set(excludedList);
|
|
600
|
+
return (this.frontendTypes || [])
|
|
601
|
+
.filter((item) => !excludedSet.has(item))
|
|
602
|
+
.map((item) => item.name);
|
|
603
|
+
}
|
|
604
|
+
getFrontendTypeUniqueName(name = 'frontendType1') {
|
|
605
|
+
return utils.unique(name, this.getFrontendTypeExistingNames(), undefined, true);
|
|
606
|
+
}
|
|
607
|
+
_insertFrontendTypeAt(options, index) {
|
|
608
|
+
const frontendTypeOptions = {};
|
|
609
|
+
const relationOptions = { parentNode: this, parentKey: 'frontendTypes' };
|
|
610
|
+
const FrontendType = (0, decorators_1.getConceptConstructor)('FrontendType');
|
|
611
|
+
let frontendType;
|
|
612
|
+
if (!options) {
|
|
613
|
+
frontendType = FrontendType.from({
|
|
614
|
+
...frontendTypeOptions,
|
|
615
|
+
name: this.getFrontendTypeUniqueName(),
|
|
616
|
+
}, this, 'frontendTypes');
|
|
617
|
+
}
|
|
618
|
+
else if (typeof options === 'string') {
|
|
619
|
+
frontendType = FrontendType.from({
|
|
620
|
+
...frontendTypeOptions,
|
|
621
|
+
name: options,
|
|
622
|
+
}, this, 'frontendTypes');
|
|
623
|
+
}
|
|
624
|
+
else if (asserts.isFrontendType(options)) {
|
|
625
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
626
|
+
frontendType = options;
|
|
627
|
+
Object.assign(frontendType, relationOptions);
|
|
628
|
+
}
|
|
629
|
+
else {
|
|
630
|
+
frontendType = FrontendType.from({
|
|
631
|
+
...frontendTypeOptions,
|
|
632
|
+
...options,
|
|
633
|
+
}, this, 'frontendTypes');
|
|
634
|
+
}
|
|
635
|
+
this.frontendTypes.splice(index, 0, frontendType);
|
|
636
|
+
return frontendType;
|
|
637
|
+
}
|
|
638
|
+
insertFrontendTypeAt(options, index) {
|
|
639
|
+
const node = this._insertFrontendTypeAt(options, index);
|
|
640
|
+
node.create({
|
|
641
|
+
index,
|
|
642
|
+
parentNode: this,
|
|
643
|
+
parentKey: 'frontendTypes',
|
|
644
|
+
});
|
|
645
|
+
return node;
|
|
646
|
+
}
|
|
647
|
+
_addFrontendType(options) {
|
|
648
|
+
const index = this.frontendTypes.length;
|
|
649
|
+
return this._insertFrontendTypeAt(options, index);
|
|
650
|
+
}
|
|
651
|
+
addFrontendType(options) {
|
|
652
|
+
const node = this._addFrontendType(options);
|
|
653
|
+
const index = this.frontendTypes.indexOf(node);
|
|
654
|
+
node.create({
|
|
655
|
+
index,
|
|
656
|
+
parentNode: this,
|
|
657
|
+
parentKey: 'frontendTypes',
|
|
658
|
+
});
|
|
659
|
+
return node;
|
|
660
|
+
}
|
|
661
|
+
getProcessExistingNames(excludedList = []) {
|
|
662
|
+
const excludedSet = new Set(excludedList);
|
|
663
|
+
return (this.processes || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
664
|
+
}
|
|
665
|
+
getProcessUniqueName(name = 'Process1') {
|
|
666
|
+
return utils.unique(name, this.getProcessExistingNames(), undefined, true);
|
|
667
|
+
}
|
|
668
|
+
_insertProcessAt(options, index) {
|
|
669
|
+
const processOptions = {};
|
|
670
|
+
const relationOptions = { parentNode: this, parentKey: 'processes' };
|
|
671
|
+
const Process = (0, decorators_1.getConceptConstructor)('Process');
|
|
672
|
+
let process;
|
|
673
|
+
if (!options) {
|
|
674
|
+
process = Process.from({
|
|
675
|
+
...processOptions,
|
|
676
|
+
name: this.getProcessUniqueName(),
|
|
677
|
+
}, this, 'processes');
|
|
678
|
+
}
|
|
679
|
+
else if (typeof options === 'string') {
|
|
680
|
+
process = Process.from({
|
|
681
|
+
...processOptions,
|
|
682
|
+
name: options,
|
|
683
|
+
}, this, 'processes');
|
|
684
|
+
}
|
|
685
|
+
else if (asserts.isProcess(options)) {
|
|
686
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
687
|
+
process = options;
|
|
688
|
+
Object.assign(process, relationOptions);
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
process = Process.from({
|
|
692
|
+
...processOptions,
|
|
693
|
+
...options,
|
|
694
|
+
}, this, 'processes');
|
|
695
|
+
}
|
|
696
|
+
this.processes.splice(index, 0, process);
|
|
697
|
+
return process;
|
|
698
|
+
}
|
|
699
|
+
insertProcessAt(options, index) {
|
|
700
|
+
const node = this._insertProcessAt(options, index);
|
|
701
|
+
node.create({
|
|
702
|
+
index,
|
|
703
|
+
parentNode: this,
|
|
704
|
+
parentKey: 'processes',
|
|
705
|
+
});
|
|
706
|
+
return node;
|
|
707
|
+
}
|
|
708
|
+
_addProcess(options) {
|
|
709
|
+
const index = 0;
|
|
710
|
+
return this._insertProcessAt(options, index);
|
|
711
|
+
}
|
|
712
|
+
addProcess(options) {
|
|
713
|
+
const node = this._addProcess(options);
|
|
714
|
+
const index = this.processes.indexOf(node);
|
|
715
|
+
node.create({
|
|
716
|
+
index,
|
|
717
|
+
parentNode: this,
|
|
718
|
+
parentKey: 'processes',
|
|
719
|
+
});
|
|
720
|
+
return node;
|
|
721
|
+
}
|
|
722
|
+
getProcessV2ExistingNames(excludedList = []) {
|
|
723
|
+
const excludedSet = new Set(excludedList);
|
|
724
|
+
return (this.processV2s || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
725
|
+
}
|
|
726
|
+
getProcessV2UniqueName(name = 'Process1') {
|
|
727
|
+
return utils.unique(name, this.getProcessV2ExistingNames(), undefined, true);
|
|
728
|
+
}
|
|
729
|
+
_insertProcessV2At(options, index) {
|
|
730
|
+
const processV2Options = {};
|
|
731
|
+
const relationOptions = { parentNode: this, parentKey: 'processV2s' };
|
|
732
|
+
const ProcessV2 = (0, decorators_1.getConceptConstructor)('ProcessV2');
|
|
733
|
+
let processV2;
|
|
734
|
+
if (!options) {
|
|
735
|
+
processV2 = ProcessV2.from({
|
|
736
|
+
...processV2Options,
|
|
737
|
+
name: this.getProcessV2UniqueName(),
|
|
738
|
+
}, this, 'processV2s');
|
|
739
|
+
}
|
|
740
|
+
else if (typeof options === 'string') {
|
|
741
|
+
processV2 = ProcessV2.from({
|
|
742
|
+
...processV2Options,
|
|
743
|
+
name: options,
|
|
744
|
+
}, this, 'processV2s');
|
|
745
|
+
}
|
|
746
|
+
else if (asserts.isProcessV2(options)) {
|
|
747
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
748
|
+
processV2 = options;
|
|
749
|
+
Object.assign(processV2, relationOptions);
|
|
750
|
+
}
|
|
751
|
+
else {
|
|
752
|
+
processV2 = ProcessV2.from({
|
|
753
|
+
...processV2Options,
|
|
754
|
+
...options,
|
|
755
|
+
}, this, 'processV2s');
|
|
756
|
+
}
|
|
757
|
+
this.processV2s.splice(index, 0, processV2);
|
|
758
|
+
return processV2;
|
|
759
|
+
}
|
|
760
|
+
insertProcessV2At(options, index) {
|
|
761
|
+
const node = this._insertProcessV2At(options, index);
|
|
762
|
+
node.create({
|
|
763
|
+
index,
|
|
764
|
+
parentNode: this,
|
|
765
|
+
parentKey: 'processV2s',
|
|
766
|
+
});
|
|
767
|
+
return node;
|
|
768
|
+
}
|
|
769
|
+
_addProcessV2(options) {
|
|
770
|
+
const index = 0;
|
|
771
|
+
return this._insertProcessV2At(options, index);
|
|
772
|
+
}
|
|
773
|
+
addProcessV2(options) {
|
|
774
|
+
const node = this._addProcessV2(options);
|
|
775
|
+
const index = this.processV2s.indexOf(node);
|
|
776
|
+
node.create({
|
|
777
|
+
index,
|
|
778
|
+
parentNode: this,
|
|
779
|
+
parentKey: 'processV2s',
|
|
780
|
+
});
|
|
781
|
+
return node;
|
|
782
|
+
}
|
|
783
|
+
getRoleExistingNames(excludedList = []) {
|
|
784
|
+
const excludedSet = new Set(excludedList);
|
|
785
|
+
return (this.roles || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
786
|
+
}
|
|
787
|
+
getRoleUniqueName(name = 'role1') {
|
|
788
|
+
return utils.unique(name, this.getRoleExistingNames(), undefined, true);
|
|
789
|
+
}
|
|
790
|
+
_insertRoleAt(options, index) {
|
|
791
|
+
const roleOptions = {};
|
|
792
|
+
const relationOptions = { parentNode: this, parentKey: 'roles' };
|
|
793
|
+
const Role = (0, decorators_1.getConceptConstructor)('Role');
|
|
794
|
+
let role;
|
|
795
|
+
if (!options) {
|
|
796
|
+
role = Role.from({
|
|
797
|
+
...roleOptions,
|
|
798
|
+
name: this.getRoleUniqueName(),
|
|
799
|
+
}, this, 'roles');
|
|
800
|
+
}
|
|
801
|
+
else if (typeof options === 'string') {
|
|
802
|
+
role = Role.from({
|
|
803
|
+
...roleOptions,
|
|
804
|
+
name: options,
|
|
805
|
+
}, this, 'roles');
|
|
806
|
+
}
|
|
807
|
+
else if (asserts.isRole(options)) {
|
|
808
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
809
|
+
role = options;
|
|
810
|
+
Object.assign(role, relationOptions);
|
|
811
|
+
}
|
|
812
|
+
else {
|
|
813
|
+
role = Role.from({
|
|
814
|
+
...roleOptions,
|
|
815
|
+
...options,
|
|
816
|
+
}, this, 'roles');
|
|
817
|
+
}
|
|
818
|
+
this.roles.splice(index, 0, role);
|
|
819
|
+
return role;
|
|
820
|
+
}
|
|
821
|
+
insertRoleAt(options, index) {
|
|
822
|
+
const node = this._insertRoleAt(options, index);
|
|
823
|
+
node.create({
|
|
824
|
+
index,
|
|
825
|
+
parentNode: this,
|
|
826
|
+
parentKey: 'roles',
|
|
827
|
+
});
|
|
828
|
+
return node;
|
|
829
|
+
}
|
|
830
|
+
_addRole(options) {
|
|
831
|
+
const index = this.roles.length;
|
|
832
|
+
return this._insertRoleAt(options, index);
|
|
833
|
+
}
|
|
834
|
+
addRole(options) {
|
|
835
|
+
const node = this._addRole(options);
|
|
836
|
+
const index = this.roles.indexOf(node);
|
|
837
|
+
node.create({
|
|
838
|
+
index,
|
|
839
|
+
parentNode: this,
|
|
840
|
+
parentKey: 'roles',
|
|
841
|
+
});
|
|
842
|
+
return node;
|
|
843
|
+
}
|
|
844
|
+
getConnectorExistingNames(excludedList = []) {
|
|
845
|
+
const excludedSet = new Set(excludedList);
|
|
846
|
+
return (this.connectorDependencies || [])
|
|
847
|
+
.filter((item) => !excludedSet.has(item))
|
|
848
|
+
.map((item) => item.name);
|
|
849
|
+
}
|
|
850
|
+
getConnectorUniqueName(name = 'connector1') {
|
|
851
|
+
return utils.unique(name, this.getConnectorExistingNames(), undefined, false);
|
|
852
|
+
}
|
|
853
|
+
_insertConnectorAt(options, index) {
|
|
854
|
+
const connectorOptions = {};
|
|
855
|
+
const relationOptions = { parentNode: this, parentKey: 'connectorDependencies' };
|
|
856
|
+
const Connector = (0, decorators_1.getConceptConstructor)('Connector');
|
|
857
|
+
let connector;
|
|
858
|
+
if (!options) {
|
|
859
|
+
connector = Connector.from({
|
|
860
|
+
...connectorOptions,
|
|
861
|
+
name: this.getConnectorUniqueName(),
|
|
862
|
+
}, this, 'connectorDependencies');
|
|
863
|
+
}
|
|
864
|
+
else if (typeof options === 'string') {
|
|
865
|
+
connector = Connector.from({
|
|
866
|
+
...connectorOptions,
|
|
867
|
+
name: options,
|
|
868
|
+
}, this, 'connectorDependencies');
|
|
869
|
+
}
|
|
870
|
+
else if (asserts.isConnector(options)) {
|
|
871
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
872
|
+
connector = options;
|
|
873
|
+
Object.assign(connector, relationOptions);
|
|
874
|
+
}
|
|
875
|
+
else {
|
|
876
|
+
connector = Connector.from({
|
|
877
|
+
...connectorOptions,
|
|
878
|
+
...options,
|
|
879
|
+
}, this, 'connectorDependencies');
|
|
880
|
+
}
|
|
881
|
+
this.connectorDependencies.splice(index, 0, connector);
|
|
882
|
+
return connector;
|
|
883
|
+
}
|
|
884
|
+
insertConnectorAt(options, index) {
|
|
885
|
+
const node = this._insertConnectorAt(options, index);
|
|
886
|
+
node.create({
|
|
887
|
+
index,
|
|
888
|
+
parentNode: this,
|
|
889
|
+
parentKey: 'connectorDependencies',
|
|
890
|
+
});
|
|
891
|
+
return node;
|
|
892
|
+
}
|
|
893
|
+
_addConnector(options) {
|
|
894
|
+
const index = this.connectorDependencies.length;
|
|
895
|
+
return this._insertConnectorAt(options, index);
|
|
896
|
+
}
|
|
897
|
+
addConnector(options) {
|
|
898
|
+
const node = this._addConnector(options);
|
|
899
|
+
const index = this.connectorDependencies.indexOf(node);
|
|
900
|
+
node.create({
|
|
901
|
+
index,
|
|
902
|
+
parentNode: this,
|
|
903
|
+
parentKey: 'connectorDependencies',
|
|
904
|
+
});
|
|
905
|
+
return node;
|
|
906
|
+
}
|
|
907
|
+
getModuleExistingNames(excludedList = []) {
|
|
908
|
+
const excludedSet = new Set(excludedList);
|
|
909
|
+
return (this.interfaceDependencies || [])
|
|
910
|
+
.filter((item) => !excludedSet.has(item))
|
|
911
|
+
.map((item) => item.name);
|
|
912
|
+
}
|
|
913
|
+
getModuleUniqueName(name = 'module1') {
|
|
914
|
+
return utils.unique(name, this.getModuleExistingNames(), undefined, false);
|
|
915
|
+
}
|
|
916
|
+
_insertModuleInInterfaceDependenciesAt(options, index) {
|
|
917
|
+
const moduleOptions = {};
|
|
918
|
+
const relationOptions = { parentNode: this, parentKey: 'interfaceDependencies' };
|
|
919
|
+
const Module = (0, decorators_1.getConceptConstructor)('Module');
|
|
920
|
+
let module;
|
|
921
|
+
if (!options) {
|
|
922
|
+
module = Module.from({
|
|
923
|
+
...moduleOptions,
|
|
924
|
+
name: this.getModuleUniqueName(),
|
|
925
|
+
}, this, 'interfaceDependencies');
|
|
926
|
+
}
|
|
927
|
+
else if (typeof options === 'string') {
|
|
928
|
+
module = Module.from({
|
|
929
|
+
...moduleOptions,
|
|
930
|
+
name: options,
|
|
931
|
+
}, this, 'interfaceDependencies');
|
|
932
|
+
}
|
|
933
|
+
else if (asserts.isModule(options)) {
|
|
934
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
935
|
+
module = options;
|
|
936
|
+
Object.assign(module, relationOptions);
|
|
937
|
+
}
|
|
938
|
+
else {
|
|
939
|
+
module = Module.from({
|
|
940
|
+
...moduleOptions,
|
|
941
|
+
...options,
|
|
942
|
+
}, this, 'interfaceDependencies');
|
|
943
|
+
}
|
|
944
|
+
this.interfaceDependencies.splice(index, 0, module);
|
|
945
|
+
return module;
|
|
946
|
+
}
|
|
947
|
+
insertModuleInInterfaceDependenciesAt(options, index) {
|
|
948
|
+
const node = this._insertModuleInInterfaceDependenciesAt(options, index);
|
|
949
|
+
node.create({
|
|
950
|
+
index,
|
|
951
|
+
parentNode: this,
|
|
952
|
+
parentKey: 'interfaceDependencies',
|
|
953
|
+
});
|
|
954
|
+
return node;
|
|
955
|
+
}
|
|
956
|
+
_addModuleInInterfaceDependencies(options) {
|
|
957
|
+
const index = this.interfaceDependencies.length;
|
|
958
|
+
return this._insertModuleInInterfaceDependenciesAt(options, index);
|
|
959
|
+
}
|
|
960
|
+
addModuleInInterfaceDependencies(options) {
|
|
961
|
+
const node = this._addModuleInInterfaceDependencies(options);
|
|
962
|
+
const index = this.interfaceDependencies.indexOf(node);
|
|
963
|
+
node.create({
|
|
964
|
+
index,
|
|
965
|
+
parentNode: this,
|
|
966
|
+
parentKey: 'interfaceDependencies',
|
|
967
|
+
});
|
|
968
|
+
return node;
|
|
969
|
+
}
|
|
970
|
+
_insertModuleInDependenciesAt(options, index) {
|
|
971
|
+
const moduleOptions = {};
|
|
972
|
+
const relationOptions = { parentNode: this, parentKey: 'dependencies' };
|
|
973
|
+
const Module = (0, decorators_1.getConceptConstructor)('Module');
|
|
974
|
+
let module;
|
|
975
|
+
if (!options) {
|
|
976
|
+
module = Module.from({
|
|
977
|
+
...moduleOptions,
|
|
978
|
+
name: this.getModuleUniqueName(),
|
|
979
|
+
}, this, 'dependencies');
|
|
980
|
+
}
|
|
981
|
+
else if (typeof options === 'string') {
|
|
982
|
+
module = Module.from({
|
|
983
|
+
...moduleOptions,
|
|
984
|
+
name: options,
|
|
985
|
+
}, this, 'dependencies');
|
|
986
|
+
}
|
|
987
|
+
else if (asserts.isModule(options)) {
|
|
988
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
989
|
+
module = options;
|
|
990
|
+
Object.assign(module, relationOptions);
|
|
991
|
+
}
|
|
992
|
+
else {
|
|
993
|
+
module = Module.from({
|
|
994
|
+
...moduleOptions,
|
|
995
|
+
...options,
|
|
996
|
+
}, this, 'dependencies');
|
|
997
|
+
}
|
|
998
|
+
this.dependencies.splice(index, 0, module);
|
|
999
|
+
return module;
|
|
1000
|
+
}
|
|
1001
|
+
insertModuleInDependenciesAt(options, index) {
|
|
1002
|
+
const node = this._insertModuleInDependenciesAt(options, index);
|
|
1003
|
+
node.create({
|
|
1004
|
+
index,
|
|
1005
|
+
parentNode: this,
|
|
1006
|
+
parentKey: 'dependencies',
|
|
1007
|
+
});
|
|
1008
|
+
return node;
|
|
1009
|
+
}
|
|
1010
|
+
_addModuleInDependencies(options) {
|
|
1011
|
+
const index = this.dependencies.length;
|
|
1012
|
+
return this._insertModuleInDependenciesAt(options, index);
|
|
1013
|
+
}
|
|
1014
|
+
addModuleInDependencies(options) {
|
|
1015
|
+
const node = this._addModuleInDependencies(options);
|
|
1016
|
+
const index = this.dependencies.indexOf(node);
|
|
1017
|
+
node.create({
|
|
1018
|
+
index,
|
|
1019
|
+
parentNode: this,
|
|
1020
|
+
parentKey: 'dependencies',
|
|
1021
|
+
});
|
|
1022
|
+
return node;
|
|
1023
|
+
}
|
|
1024
|
+
getAuthLogicExistingNames(excludedList = []) {
|
|
1025
|
+
const excludedSet = new Set(excludedList);
|
|
1026
|
+
return (this.authLogics || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
1027
|
+
}
|
|
1028
|
+
getAuthLogicUniqueName(name = 'authentication1') {
|
|
1029
|
+
return utils.unique(name, this.getAuthLogicExistingNames(), undefined, false);
|
|
1030
|
+
}
|
|
1031
|
+
_insertAuthLogicAt(options, index) {
|
|
1032
|
+
const authLogicOptions = {};
|
|
1033
|
+
const relationOptions = { parentNode: this, parentKey: 'authLogics' };
|
|
1034
|
+
const AuthLogic = (0, decorators_1.getConceptConstructor)('AuthLogic');
|
|
1035
|
+
let authLogic;
|
|
1036
|
+
if (!options) {
|
|
1037
|
+
authLogic = AuthLogic.from({
|
|
1038
|
+
...authLogicOptions,
|
|
1039
|
+
name: this.getAuthLogicUniqueName(),
|
|
1040
|
+
}, this, 'authLogics');
|
|
1041
|
+
}
|
|
1042
|
+
else if (typeof options === 'string') {
|
|
1043
|
+
authLogic = AuthLogic.from({
|
|
1044
|
+
...authLogicOptions,
|
|
1045
|
+
name: options,
|
|
1046
|
+
}, this, 'authLogics');
|
|
1047
|
+
}
|
|
1048
|
+
else if (asserts.isAuthLogic(options)) {
|
|
1049
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
1050
|
+
authLogic = options;
|
|
1051
|
+
Object.assign(authLogic, relationOptions);
|
|
1052
|
+
}
|
|
1053
|
+
else {
|
|
1054
|
+
authLogic = AuthLogic.from({
|
|
1055
|
+
...authLogicOptions,
|
|
1056
|
+
...options,
|
|
1057
|
+
}, this, 'authLogics');
|
|
1058
|
+
}
|
|
1059
|
+
this.authLogics.splice(index, 0, authLogic);
|
|
1060
|
+
return authLogic;
|
|
1061
|
+
}
|
|
1062
|
+
insertAuthLogicAt(options, index) {
|
|
1063
|
+
const node = this._insertAuthLogicAt(options, index);
|
|
1064
|
+
node.create({
|
|
1065
|
+
index,
|
|
1066
|
+
parentNode: this,
|
|
1067
|
+
parentKey: 'authLogics',
|
|
1068
|
+
});
|
|
1069
|
+
return node;
|
|
1070
|
+
}
|
|
1071
|
+
_addAuthLogic(options) {
|
|
1072
|
+
const index = this.authLogics.length;
|
|
1073
|
+
return this._insertAuthLogicAt(options, index);
|
|
1074
|
+
}
|
|
1075
|
+
addAuthLogic(options) {
|
|
1076
|
+
const node = this._addAuthLogic(options);
|
|
1077
|
+
const index = this.authLogics.indexOf(node);
|
|
1078
|
+
node.create({
|
|
1079
|
+
index,
|
|
1080
|
+
parentNode: this,
|
|
1081
|
+
parentKey: 'authLogics',
|
|
1082
|
+
});
|
|
1083
|
+
return node;
|
|
1084
|
+
}
|
|
1085
|
+
getAuthLogicForCallInterfaceExistingNames(excludedList = []) {
|
|
1086
|
+
const excludedSet = new Set(excludedList);
|
|
1087
|
+
return (this.authLogicsForCallInterface || [])
|
|
1088
|
+
.filter((item) => !excludedSet.has(item))
|
|
1089
|
+
.map((item) => item.name);
|
|
1090
|
+
}
|
|
1091
|
+
getAuthLogicForCallInterfaceUniqueName(name = 'authLogicForCallInterface1') {
|
|
1092
|
+
return utils.unique(name, this.getAuthLogicForCallInterfaceExistingNames(), undefined, false);
|
|
1093
|
+
}
|
|
1094
|
+
_insertAuthLogicForCallInterfaceAt(options, index) {
|
|
1095
|
+
const authLogicForCallInterfaceOptions = {};
|
|
1096
|
+
const relationOptions = { parentNode: this, parentKey: 'authLogicsForCallInterface' };
|
|
1097
|
+
const AuthLogicForCallInterface = (0, decorators_1.getConceptConstructor)('AuthLogicForCallInterface');
|
|
1098
|
+
let authLogicForCallInterface;
|
|
1099
|
+
if (!options) {
|
|
1100
|
+
authLogicForCallInterface = AuthLogicForCallInterface.from({
|
|
1101
|
+
...authLogicForCallInterfaceOptions,
|
|
1102
|
+
name: this.getAuthLogicForCallInterfaceUniqueName(),
|
|
1103
|
+
}, this, 'authLogicsForCallInterface');
|
|
1104
|
+
}
|
|
1105
|
+
else if (typeof options === 'string') {
|
|
1106
|
+
authLogicForCallInterface = AuthLogicForCallInterface.from({
|
|
1107
|
+
...authLogicForCallInterfaceOptions,
|
|
1108
|
+
name: options,
|
|
1109
|
+
}, this, 'authLogicsForCallInterface');
|
|
1110
|
+
}
|
|
1111
|
+
else if (asserts.isAuthLogicForCallInterface(options)) {
|
|
1112
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
1113
|
+
authLogicForCallInterface = options;
|
|
1114
|
+
Object.assign(authLogicForCallInterface, relationOptions);
|
|
1115
|
+
}
|
|
1116
|
+
else {
|
|
1117
|
+
authLogicForCallInterface = AuthLogicForCallInterface.from({
|
|
1118
|
+
...authLogicForCallInterfaceOptions,
|
|
1119
|
+
...options,
|
|
1120
|
+
}, this, 'authLogicsForCallInterface');
|
|
1121
|
+
}
|
|
1122
|
+
this.authLogicsForCallInterface.splice(index, 0, authLogicForCallInterface);
|
|
1123
|
+
return authLogicForCallInterface;
|
|
1124
|
+
}
|
|
1125
|
+
insertAuthLogicForCallInterfaceAt(options, index) {
|
|
1126
|
+
const node = this._insertAuthLogicForCallInterfaceAt(options, index);
|
|
1127
|
+
node.create({
|
|
1128
|
+
index,
|
|
1129
|
+
parentNode: this,
|
|
1130
|
+
parentKey: 'authLogicsForCallInterface',
|
|
1131
|
+
});
|
|
1132
|
+
return node;
|
|
1133
|
+
}
|
|
1134
|
+
_addAuthLogicForCallInterface(options) {
|
|
1135
|
+
const index = this.authLogicsForCallInterface.length;
|
|
1136
|
+
return this._insertAuthLogicForCallInterfaceAt(options, index);
|
|
1137
|
+
}
|
|
1138
|
+
addAuthLogicForCallInterface(options) {
|
|
1139
|
+
const node = this._addAuthLogicForCallInterface(options);
|
|
1140
|
+
const index = this.authLogicsForCallInterface.indexOf(node);
|
|
1141
|
+
node.create({
|
|
1142
|
+
index,
|
|
1143
|
+
parentNode: this,
|
|
1144
|
+
parentKey: 'authLogicsForCallInterface',
|
|
1145
|
+
});
|
|
1146
|
+
return node;
|
|
1147
|
+
}
|
|
1148
|
+
getConnectionExistingNames(excludedList = []) {
|
|
1149
|
+
const excludedSet = new Set(excludedList);
|
|
1150
|
+
return (this.connections || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
1151
|
+
}
|
|
1152
|
+
getConnectionUniqueName(name = 'connection1') {
|
|
1153
|
+
return utils.unique(name, this.getConnectionExistingNames(), undefined, false);
|
|
1154
|
+
}
|
|
1155
|
+
_insertConnectionAt(options, index) {
|
|
1156
|
+
const connectionOptions = {};
|
|
1157
|
+
const relationOptions = { parentNode: this, parentKey: 'connections' };
|
|
1158
|
+
const Connection = (0, decorators_1.getConceptConstructor)('Connection');
|
|
1159
|
+
let connection;
|
|
1160
|
+
if (!options) {
|
|
1161
|
+
connection = Connection.from({
|
|
1162
|
+
...connectionOptions,
|
|
1163
|
+
name: this.getConnectionUniqueName(),
|
|
1164
|
+
}, this, 'connections');
|
|
1165
|
+
}
|
|
1166
|
+
else if (typeof options === 'string') {
|
|
1167
|
+
connection = Connection.from({
|
|
1168
|
+
...connectionOptions,
|
|
1169
|
+
name: options,
|
|
1170
|
+
}, this, 'connections');
|
|
1171
|
+
}
|
|
1172
|
+
else if (asserts.isConnection(options)) {
|
|
1173
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
1174
|
+
connection = options;
|
|
1175
|
+
Object.assign(connection, relationOptions);
|
|
1176
|
+
}
|
|
1177
|
+
else {
|
|
1178
|
+
connection = Connection.from({
|
|
1179
|
+
...connectionOptions,
|
|
1180
|
+
...options,
|
|
1181
|
+
}, this, 'connections');
|
|
1182
|
+
}
|
|
1183
|
+
this.connections.splice(index, 0, connection);
|
|
1184
|
+
return connection;
|
|
1185
|
+
}
|
|
1186
|
+
insertConnectionAt(options, index) {
|
|
1187
|
+
const node = this._insertConnectionAt(options, index);
|
|
1188
|
+
node.create({
|
|
1189
|
+
index,
|
|
1190
|
+
parentNode: this,
|
|
1191
|
+
parentKey: 'connections',
|
|
1192
|
+
});
|
|
1193
|
+
return node;
|
|
1194
|
+
}
|
|
1195
|
+
_addConnection(options) {
|
|
1196
|
+
const index = this.connections.length;
|
|
1197
|
+
return this._insertConnectionAt(options, index);
|
|
1198
|
+
}
|
|
1199
|
+
addConnection(options) {
|
|
1200
|
+
const node = this._addConnection(options);
|
|
1201
|
+
const index = this.connections.indexOf(node);
|
|
1202
|
+
node.create({
|
|
1203
|
+
index,
|
|
1204
|
+
parentNode: this,
|
|
1205
|
+
parentKey: 'connections',
|
|
1206
|
+
});
|
|
1207
|
+
return node;
|
|
1208
|
+
}
|
|
1209
|
+
getTriggerLauncherExistingNames(excludedList = []) {
|
|
1210
|
+
const excludedSet = new Set(excludedList);
|
|
1211
|
+
return (this.triggerLaunchers || [])
|
|
1212
|
+
.filter((item) => !excludedSet.has(item))
|
|
1213
|
+
.map((item) => item.name);
|
|
1214
|
+
}
|
|
1215
|
+
getTriggerLauncherUniqueName(name = 'triggerLauncher1') {
|
|
1216
|
+
return utils.unique(name, this.getTriggerLauncherExistingNames(), undefined, false);
|
|
1217
|
+
}
|
|
1218
|
+
_insertTriggerLauncherAt(options, index) {
|
|
1219
|
+
const triggerLauncherOptions = {};
|
|
1220
|
+
const relationOptions = { parentNode: this, parentKey: 'triggerLaunchers' };
|
|
1221
|
+
const TriggerLauncher = (0, decorators_1.getConceptConstructor)('TriggerLauncher');
|
|
1222
|
+
let triggerLauncher;
|
|
1223
|
+
if (!options) {
|
|
1224
|
+
triggerLauncher = TriggerLauncher.from({
|
|
1225
|
+
...triggerLauncherOptions,
|
|
1226
|
+
name: this.getTriggerLauncherUniqueName(),
|
|
1227
|
+
}, this, 'triggerLaunchers');
|
|
1228
|
+
}
|
|
1229
|
+
else if (typeof options === 'string') {
|
|
1230
|
+
triggerLauncher = TriggerLauncher.from({
|
|
1231
|
+
...triggerLauncherOptions,
|
|
1232
|
+
name: options,
|
|
1233
|
+
}, this, 'triggerLaunchers');
|
|
1234
|
+
}
|
|
1235
|
+
else if (asserts.isTriggerLauncher(options)) {
|
|
1236
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
1237
|
+
triggerLauncher = options;
|
|
1238
|
+
Object.assign(triggerLauncher, relationOptions);
|
|
1239
|
+
}
|
|
1240
|
+
else {
|
|
1241
|
+
triggerLauncher = TriggerLauncher.from({
|
|
1242
|
+
...triggerLauncherOptions,
|
|
1243
|
+
...options,
|
|
1244
|
+
}, this, 'triggerLaunchers');
|
|
1245
|
+
}
|
|
1246
|
+
this.triggerLaunchers.splice(index, 0, triggerLauncher);
|
|
1247
|
+
return triggerLauncher;
|
|
1248
|
+
}
|
|
1249
|
+
insertTriggerLauncherAt(options, index) {
|
|
1250
|
+
const node = this._insertTriggerLauncherAt(options, index);
|
|
1251
|
+
node.create({
|
|
1252
|
+
index,
|
|
1253
|
+
parentNode: this,
|
|
1254
|
+
parentKey: 'triggerLaunchers',
|
|
1255
|
+
});
|
|
1256
|
+
return node;
|
|
1257
|
+
}
|
|
1258
|
+
_addTriggerLauncher(options) {
|
|
1259
|
+
const index = this.triggerLaunchers.length;
|
|
1260
|
+
return this._insertTriggerLauncherAt(options, index);
|
|
1261
|
+
}
|
|
1262
|
+
addTriggerLauncher(options) {
|
|
1263
|
+
const node = this._addTriggerLauncher(options);
|
|
1264
|
+
const index = this.triggerLaunchers.indexOf(node);
|
|
1265
|
+
node.create({
|
|
1266
|
+
index,
|
|
1267
|
+
parentNode: this,
|
|
1268
|
+
parentKey: 'triggerLaunchers',
|
|
1269
|
+
});
|
|
1270
|
+
return node;
|
|
1271
|
+
}
|
|
1272
|
+
getMetadataTypeExistingNames(excludedList = []) {
|
|
1273
|
+
const excludedSet = new Set(excludedList);
|
|
1274
|
+
return (this.metadataTypes || [])
|
|
1275
|
+
.filter((item) => !excludedSet.has(item))
|
|
1276
|
+
.map((item) => item.name);
|
|
1277
|
+
}
|
|
1278
|
+
getMetadataTypeUniqueName(name = 'MetadataType1') {
|
|
1279
|
+
return utils.unique(name, this.getMetadataTypeExistingNames(), undefined, true);
|
|
1280
|
+
}
|
|
1281
|
+
_insertMetadataTypeAt(options, index) {
|
|
1282
|
+
const metadataTypeOptions = {};
|
|
1283
|
+
const relationOptions = { parentNode: this, parentKey: 'metadataTypes' };
|
|
1284
|
+
const MetadataType = (0, decorators_1.getConceptConstructor)('MetadataType');
|
|
1285
|
+
let metadataType;
|
|
1286
|
+
if (!options) {
|
|
1287
|
+
metadataType = MetadataType.from({
|
|
1288
|
+
...metadataTypeOptions,
|
|
1289
|
+
name: this.getMetadataTypeUniqueName(),
|
|
1290
|
+
}, this, 'metadataTypes');
|
|
1291
|
+
}
|
|
1292
|
+
else if (typeof options === 'string') {
|
|
1293
|
+
metadataType = MetadataType.from({
|
|
1294
|
+
...metadataTypeOptions,
|
|
1295
|
+
name: options,
|
|
1296
|
+
}, this, 'metadataTypes');
|
|
1297
|
+
}
|
|
1298
|
+
else if (asserts.isMetadataType(options)) {
|
|
1299
|
+
options.ensureDelete(); // 同一实例不支持多处存在
|
|
1300
|
+
metadataType = options;
|
|
1301
|
+
Object.assign(metadataType, relationOptions);
|
|
1302
|
+
}
|
|
1303
|
+
else {
|
|
1304
|
+
metadataType = MetadataType.from({
|
|
1305
|
+
...metadataTypeOptions,
|
|
1306
|
+
...options,
|
|
1307
|
+
}, this, 'metadataTypes');
|
|
1308
|
+
}
|
|
1309
|
+
this.metadataTypes.splice(index, 0, metadataType);
|
|
1310
|
+
return metadataType;
|
|
1311
|
+
}
|
|
1312
|
+
insertMetadataTypeAt(options, index) {
|
|
1313
|
+
const node = this._insertMetadataTypeAt(options, index);
|
|
1314
|
+
node.create({
|
|
1315
|
+
index,
|
|
1316
|
+
parentNode: this,
|
|
1317
|
+
parentKey: 'metadataTypes',
|
|
1318
|
+
});
|
|
1319
|
+
return node;
|
|
1320
|
+
}
|
|
1321
|
+
_addMetadataType(options) {
|
|
1322
|
+
const index = 0;
|
|
1323
|
+
return this._insertMetadataTypeAt(options, index);
|
|
1324
|
+
}
|
|
1325
|
+
addMetadataType(options) {
|
|
1326
|
+
const node = this._addMetadataType(options);
|
|
1327
|
+
const index = this.metadataTypes.indexOf(node);
|
|
1328
|
+
node.create({
|
|
1329
|
+
index,
|
|
1330
|
+
parentNode: this,
|
|
1331
|
+
parentKey: 'metadataTypes',
|
|
1332
|
+
});
|
|
1333
|
+
return node;
|
|
1334
|
+
}
|
|
1335
|
+
removeDataSource(options) {
|
|
1336
|
+
let dataSource;
|
|
1337
|
+
if (typeof options === 'string') {
|
|
1338
|
+
dataSource = this.dataSources.find((item) => item.name === options);
|
|
1339
|
+
if (!dataSource) {
|
|
1340
|
+
throw new Error('找不到数据源 ' + options);
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
else {
|
|
1344
|
+
dataSource = options;
|
|
1345
|
+
}
|
|
1346
|
+
return dataSource.delete();
|
|
1347
|
+
}
|
|
1348
|
+
removeStructure(options) {
|
|
1349
|
+
let structure;
|
|
1350
|
+
if (typeof options === 'string') {
|
|
1351
|
+
structure = this.structures.find((item) => item.name === options);
|
|
1352
|
+
if (!structure) {
|
|
1353
|
+
throw new Error('找不到数据结构 ' + options);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
else {
|
|
1357
|
+
structure = options;
|
|
1358
|
+
}
|
|
1359
|
+
return structure.delete();
|
|
1360
|
+
}
|
|
1361
|
+
removeEnum(options) {
|
|
1362
|
+
let enumeration;
|
|
1363
|
+
if (typeof options === 'string') {
|
|
1364
|
+
enumeration = this.enums.find((item) => item.name === options);
|
|
1365
|
+
if (!enumeration) {
|
|
1366
|
+
throw new Error('找不到枚举 ' + options);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
else {
|
|
1370
|
+
enumeration = options;
|
|
1371
|
+
}
|
|
1372
|
+
return enumeration.delete();
|
|
1373
|
+
}
|
|
1374
|
+
removeLogic(options) {
|
|
1375
|
+
let logic;
|
|
1376
|
+
if (typeof options === 'string') {
|
|
1377
|
+
logic = this.logics.find((item) => item.name === options);
|
|
1378
|
+
if (!logic) {
|
|
1379
|
+
throw new Error('找不到逻辑 ' + options);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
else {
|
|
1383
|
+
logic = options;
|
|
1384
|
+
}
|
|
1385
|
+
return logic.delete();
|
|
1386
|
+
}
|
|
1387
|
+
removeOverriddenLogic(options) {
|
|
1388
|
+
let overriddenLogic;
|
|
1389
|
+
if (typeof options === 'string') {
|
|
1390
|
+
overriddenLogic = this.overriddenLogics.find((item) => item.name === options);
|
|
1391
|
+
if (!overriddenLogic) {
|
|
1392
|
+
throw new Error('找不到覆写逻辑 ' + options);
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
else {
|
|
1396
|
+
overriddenLogic = options;
|
|
1397
|
+
}
|
|
1398
|
+
return overriddenLogic.delete();
|
|
1399
|
+
}
|
|
1400
|
+
removeInterface(options) {
|
|
1401
|
+
let itface;
|
|
1402
|
+
if (typeof options === 'string') {
|
|
1403
|
+
itface = this.interfaces.find((item) => item.name === options);
|
|
1404
|
+
if (!itface) {
|
|
1405
|
+
throw new Error('找不到接口 ' + options);
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
else {
|
|
1409
|
+
itface = options;
|
|
1410
|
+
}
|
|
1411
|
+
return itface.delete();
|
|
1412
|
+
}
|
|
1413
|
+
removeFrontendType(options) {
|
|
1414
|
+
let frontendType;
|
|
1415
|
+
if (typeof options === 'string') {
|
|
1416
|
+
frontendType = this.frontendTypes.find((item) => item.name === options);
|
|
1417
|
+
if (!frontendType) {
|
|
1418
|
+
throw new Error('找不到端类型 ' + options);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
else {
|
|
1422
|
+
frontendType = options;
|
|
1423
|
+
}
|
|
1424
|
+
return frontendType.delete();
|
|
1425
|
+
}
|
|
1426
|
+
removeProcess(options) {
|
|
1427
|
+
let process;
|
|
1428
|
+
if (typeof options === 'string') {
|
|
1429
|
+
process = this.processes.find((item) => item.name === options);
|
|
1430
|
+
if (!process) {
|
|
1431
|
+
throw new Error('找不到流程 ' + options);
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
else {
|
|
1435
|
+
process = options;
|
|
1436
|
+
}
|
|
1437
|
+
return process.delete();
|
|
1438
|
+
}
|
|
1439
|
+
removeProcessV2(options) {
|
|
1440
|
+
let processV2;
|
|
1441
|
+
if (typeof options === 'string') {
|
|
1442
|
+
processV2 = this.processV2s.find((item) => item.name === options);
|
|
1443
|
+
if (!processV2) {
|
|
1444
|
+
throw new Error('找不到流程 ' + options);
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
else {
|
|
1448
|
+
processV2 = options;
|
|
1449
|
+
}
|
|
1450
|
+
return processV2.delete();
|
|
1451
|
+
}
|
|
1452
|
+
removeRole(options) {
|
|
1453
|
+
let role;
|
|
1454
|
+
if (typeof options === 'string') {
|
|
1455
|
+
role = this.roles.find((item) => item.name === options);
|
|
1456
|
+
if (!role) {
|
|
1457
|
+
throw new Error('找不到角色 ' + options);
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
else {
|
|
1461
|
+
role = options;
|
|
1462
|
+
}
|
|
1463
|
+
return role.delete();
|
|
1464
|
+
}
|
|
1465
|
+
removeConnector(options) {
|
|
1466
|
+
let connector;
|
|
1467
|
+
if (typeof options === 'string') {
|
|
1468
|
+
connector = this.connectorDependencies.find((item) => item.name === options);
|
|
1469
|
+
if (!connector) {
|
|
1470
|
+
throw new Error('找不到连接器 ' + options);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
else {
|
|
1474
|
+
connector = options;
|
|
1475
|
+
}
|
|
1476
|
+
return connector.delete();
|
|
1477
|
+
}
|
|
1478
|
+
removeModuleInInterfaceDependencies(options) {
|
|
1479
|
+
let module;
|
|
1480
|
+
if (typeof options === 'string') {
|
|
1481
|
+
module = this.interfaceDependencies.find((item) => item.name === options);
|
|
1482
|
+
if (!module) {
|
|
1483
|
+
throw new Error('找不到模块 ' + options);
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
else {
|
|
1487
|
+
module = options;
|
|
1488
|
+
}
|
|
1489
|
+
return module.delete();
|
|
1490
|
+
}
|
|
1491
|
+
removeModuleInDependencies(options) {
|
|
1492
|
+
let module;
|
|
1493
|
+
if (typeof options === 'string') {
|
|
1494
|
+
module = this.dependencies.find((item) => item.name === options);
|
|
1495
|
+
if (!module) {
|
|
1496
|
+
throw new Error('找不到模块 ' + options);
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
else {
|
|
1500
|
+
module = options;
|
|
1501
|
+
}
|
|
1502
|
+
return module.delete();
|
|
1503
|
+
}
|
|
1504
|
+
removeAuthLogic(options) {
|
|
1505
|
+
let authLogic;
|
|
1506
|
+
if (typeof options === 'string') {
|
|
1507
|
+
authLogic = this.authLogics.find((item) => item.name === options);
|
|
1508
|
+
if (!authLogic) {
|
|
1509
|
+
throw new Error('找不到鉴权逻辑 ' + options);
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
else {
|
|
1513
|
+
authLogic = options;
|
|
1514
|
+
}
|
|
1515
|
+
return authLogic.delete();
|
|
1516
|
+
}
|
|
1517
|
+
removeAuthLogicForCallInterface(options) {
|
|
1518
|
+
let authLogicForCallInterface;
|
|
1519
|
+
if (typeof options === 'string') {
|
|
1520
|
+
authLogicForCallInterface = this.authLogicsForCallInterface.find((item) => item.name === options);
|
|
1521
|
+
if (!authLogicForCallInterface) {
|
|
1522
|
+
throw new Error('找不到调用接口的鉴权逻辑 ' + options);
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
else {
|
|
1526
|
+
authLogicForCallInterface = options;
|
|
1527
|
+
}
|
|
1528
|
+
return authLogicForCallInterface.delete();
|
|
1529
|
+
}
|
|
1530
|
+
removeConnection(options) {
|
|
1531
|
+
let connection;
|
|
1532
|
+
if (typeof options === 'string') {
|
|
1533
|
+
connection = this.connections.find((item) => item.name === options);
|
|
1534
|
+
if (!connection) {
|
|
1535
|
+
throw new Error('找不到连接 ' + options);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
else {
|
|
1539
|
+
connection = options;
|
|
1540
|
+
}
|
|
1541
|
+
return connection.delete();
|
|
1542
|
+
}
|
|
1543
|
+
removeTriggerLauncher(options) {
|
|
1544
|
+
let triggerLauncher;
|
|
1545
|
+
if (typeof options === 'string') {
|
|
1546
|
+
triggerLauncher = this.triggerLaunchers.find((item) => item.name === options);
|
|
1547
|
+
if (!triggerLauncher) {
|
|
1548
|
+
throw new Error('找不到触发器启动器 ' + options);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
triggerLauncher = options;
|
|
1553
|
+
}
|
|
1554
|
+
return triggerLauncher.delete();
|
|
1555
|
+
}
|
|
1556
|
+
removeMetadataType(options) {
|
|
1557
|
+
let metadataType;
|
|
1558
|
+
if (typeof options === 'string') {
|
|
1559
|
+
metadataType = this.metadataTypes.find((item) => item.name === options);
|
|
1560
|
+
if (!metadataType) {
|
|
1561
|
+
throw new Error('找不到元数据类型 ' + options);
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
else {
|
|
1565
|
+
metadataType = options;
|
|
1566
|
+
}
|
|
1567
|
+
return metadataType.delete();
|
|
1568
|
+
}
|
|
1569
|
+
//================================================================================
|
|
1570
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
1571
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
1572
|
+
//================================================================================
|
|
1573
|
+
getDefaultOnAnno() {
|
|
1574
|
+
let result = {
|
|
1575
|
+
Entity: [],
|
|
1576
|
+
Logic: [],
|
|
1577
|
+
ViewElement: [],
|
|
1578
|
+
};
|
|
1579
|
+
this?.dependencies?.forEach((dep) => {
|
|
1580
|
+
if (dep?.annotations?.length > 0) {
|
|
1581
|
+
dep.annotations.forEach((anno) => {
|
|
1582
|
+
let useAnno = anno?.properties?.find((p) => p?.name === 'useAnno');
|
|
1583
|
+
if (useAnno && ['true', true].includes(useAnno.defaultValue?.expression?.value)) {
|
|
1584
|
+
anno.applyTo.map((concept) => {
|
|
1585
|
+
result[concept].push(anno);
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
});
|
|
1591
|
+
return result;
|
|
1592
|
+
}
|
|
1593
|
+
findDataSourceByName(name) {
|
|
1594
|
+
return this.dataSources.find((dataSourceItem) => dataSourceItem.name === name);
|
|
1595
|
+
}
|
|
1596
|
+
get defaultDS() {
|
|
1597
|
+
return this.dataSources?.find((dataSource) => dataSource.name === 'defaultDS');
|
|
1598
|
+
}
|
|
1599
|
+
findEnumByName(name) {
|
|
1600
|
+
return this.enums.find((enumItem) => enumItem.name === name);
|
|
1601
|
+
}
|
|
1602
|
+
findStructureByName(name) {
|
|
1603
|
+
return this.structures.find((item) => item.name === name);
|
|
1604
|
+
}
|
|
1605
|
+
findLogicByName(name) {
|
|
1606
|
+
return this.logics.find((logic) => logic.name === name);
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* 判断缓存是否为空
|
|
1612
|
+
*/
|
|
1613
|
+
isComposeCacheEmpty() {
|
|
1614
|
+
const isEmpty = (composeCache) => {
|
|
1615
|
+
let result = true;
|
|
1616
|
+
for (const key in composeCache) {
|
|
1617
|
+
if (key !== 'nodes') {
|
|
1618
|
+
result = result && isEmpty(composeCache[key]);
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
return result && !composeCache?.nodes?.length;
|
|
1622
|
+
};
|
|
1623
|
+
return isEmpty(this.composeCache);
|
|
1624
|
+
}
|
|
1625
|
+
/**
|
|
1626
|
+
* 获取组合节点
|
|
1627
|
+
*/
|
|
1628
|
+
getCompose(path) {
|
|
1629
|
+
let compose = this.composeCache;
|
|
1630
|
+
path.forEach((key) => {
|
|
1631
|
+
compose = compose?.[key];
|
|
1632
|
+
});
|
|
1633
|
+
return compose || null;
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* 获取组合节点
|
|
1637
|
+
*/
|
|
1638
|
+
getComposeNodes(path) {
|
|
1639
|
+
let compose = this.composeCache;
|
|
1640
|
+
path.forEach((key) => {
|
|
1641
|
+
compose = compose?.[key];
|
|
1642
|
+
});
|
|
1643
|
+
return compose?.nodes || [];
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* 往组合内添加节点
|
|
1647
|
+
*/
|
|
1648
|
+
addComposeNodes(path, node) {
|
|
1649
|
+
let compose = this.composeCache;
|
|
1650
|
+
path.forEach((key, index) => {
|
|
1651
|
+
if (index === path.length - 1) {
|
|
1652
|
+
if (compose?.[key]?.nodes) {
|
|
1653
|
+
// 需要判断下nodes里面是否已经存在
|
|
1654
|
+
if (Array.isArray(node)) {
|
|
1655
|
+
node.forEach((item) => {
|
|
1656
|
+
if (!compose[key].nodes.find((it) => it === item)) {
|
|
1657
|
+
compose[key].nodes.push(item);
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
}
|
|
1661
|
+
else {
|
|
1662
|
+
if (!compose[key].nodes.find((it) => it === node)) {
|
|
1663
|
+
compose[key].nodes.push(node);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
// 去重
|
|
1667
|
+
compose[key].nodes = Array.from(new Set(compose[key].nodes));
|
|
1668
|
+
}
|
|
1669
|
+
else {
|
|
1670
|
+
if (!compose?.[key]) {
|
|
1671
|
+
compose[key] = {};
|
|
1672
|
+
}
|
|
1673
|
+
compose[key].nodes = Array.isArray(node) ? node : [node];
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
else {
|
|
1677
|
+
if (!compose?.[key]) {
|
|
1678
|
+
compose[key] = {};
|
|
1679
|
+
}
|
|
1680
|
+
compose = compose[key];
|
|
1681
|
+
}
|
|
1682
|
+
});
|
|
1683
|
+
}
|
|
1684
|
+
/**
|
|
1685
|
+
* 删除分组, 包括子集
|
|
1686
|
+
*/
|
|
1687
|
+
deleteCompose(path) {
|
|
1688
|
+
if (!Array.isArray(path))
|
|
1689
|
+
return;
|
|
1690
|
+
let compose = this.composeCache;
|
|
1691
|
+
const delNodes = (_compose) => {
|
|
1692
|
+
if (_compose?.nodes) {
|
|
1693
|
+
for (const key in _compose) {
|
|
1694
|
+
if (key !== 'nodes') {
|
|
1695
|
+
delNodes(_compose[key]);
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
const arr = [..._compose.nodes] || [];
|
|
1699
|
+
const triggerNode = []; // 触点放在最后删
|
|
1700
|
+
arr.forEach((node) => {
|
|
1701
|
+
if (node.name === path?.[0]) {
|
|
1702
|
+
triggerNode.push(node);
|
|
1703
|
+
}
|
|
1704
|
+
else {
|
|
1705
|
+
node && node.delete();
|
|
1706
|
+
}
|
|
1707
|
+
});
|
|
1708
|
+
triggerNode.forEach((node) => {
|
|
1709
|
+
node && node.delete();
|
|
1710
|
+
});
|
|
1711
|
+
_compose.nodes = [];
|
|
1712
|
+
}
|
|
1713
|
+
};
|
|
1714
|
+
this.emit('collect:start', {
|
|
1715
|
+
actionMsg: '删除同一分组节点',
|
|
1716
|
+
});
|
|
1717
|
+
path.forEach((key, index) => {
|
|
1718
|
+
if (index === path.length - 1) {
|
|
1719
|
+
delNodes(compose?.[key]);
|
|
1720
|
+
}
|
|
1721
|
+
else {
|
|
1722
|
+
compose = compose[key];
|
|
1723
|
+
}
|
|
1724
|
+
});
|
|
1725
|
+
this.emit('collect:end');
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* 释放分组内所有节点, 包括子分组
|
|
1729
|
+
*/
|
|
1730
|
+
releaseComposeNode(path) {
|
|
1731
|
+
if (!Array.isArray(path))
|
|
1732
|
+
return;
|
|
1733
|
+
let compose = this.composeCache;
|
|
1734
|
+
const releaseNodes = (_compose) => {
|
|
1735
|
+
if (_compose?.nodes) {
|
|
1736
|
+
for (const key in _compose) {
|
|
1737
|
+
if (key !== 'nodes') {
|
|
1738
|
+
releaseNodes(_compose[key]);
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
_compose.nodes.forEach((node) => {
|
|
1742
|
+
node.update({
|
|
1743
|
+
composedBy: undefined,
|
|
1744
|
+
});
|
|
1745
|
+
// 临时兼容性代码,后续抽离成插件化
|
|
1746
|
+
if (node.tag === 'u-linear-layout') {
|
|
1747
|
+
const attr = node.bindAttrs.find((it) => it.name === 'TableDesignerLocked');
|
|
1748
|
+
if (attr) {
|
|
1749
|
+
attr.delete();
|
|
1750
|
+
// 数据管理页释放节点时,需要主动调整弹窗的位置
|
|
1751
|
+
const filterList = [];
|
|
1752
|
+
node.children.forEach((item) => {
|
|
1753
|
+
if (item?.tag === 'u-modal') {
|
|
1754
|
+
filterList.push(item);
|
|
1755
|
+
}
|
|
1756
|
+
});
|
|
1757
|
+
if (filterList.length > 0) {
|
|
1758
|
+
const sourceNode = node.parentNode;
|
|
1759
|
+
filterList.forEach((item) => {
|
|
1760
|
+
item.moveNode({
|
|
1761
|
+
sourceNode,
|
|
1762
|
+
position: 'append',
|
|
1763
|
+
});
|
|
1764
|
+
});
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
_compose.nodes = [];
|
|
1770
|
+
}
|
|
1771
|
+
};
|
|
1772
|
+
this.emit('collect:start', {
|
|
1773
|
+
actionMsg: '释放节点',
|
|
1774
|
+
});
|
|
1775
|
+
path.forEach((key, index) => {
|
|
1776
|
+
if (index === path.length - 1) {
|
|
1777
|
+
releaseNodes(compose?.[key]);
|
|
1778
|
+
}
|
|
1779
|
+
else {
|
|
1780
|
+
compose = compose[key];
|
|
1781
|
+
}
|
|
1782
|
+
});
|
|
1783
|
+
this.emit('collect:end');
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* 删除分组内的某一个
|
|
1787
|
+
*/
|
|
1788
|
+
deleteComposeNode(path, node) {
|
|
1789
|
+
if (!node)
|
|
1790
|
+
return;
|
|
1791
|
+
let compose = this.composeCache;
|
|
1792
|
+
path.forEach((key, index) => {
|
|
1793
|
+
if (index === path.length - 1) {
|
|
1794
|
+
if (compose?.[key]?.nodes) {
|
|
1795
|
+
const index = compose[key].nodes.findIndex((it) => it === node);
|
|
1796
|
+
if (index > -1) {
|
|
1797
|
+
compose[key].nodes.splice(index, 1);
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
else {
|
|
1802
|
+
compose = compose[key];
|
|
1803
|
+
}
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
/**
|
|
1807
|
+
* 清空某一分组
|
|
1808
|
+
*/
|
|
1809
|
+
clearComposeNodes(path) {
|
|
1810
|
+
let compose = this.composeCache;
|
|
1811
|
+
path.forEach((key, index) => {
|
|
1812
|
+
if (index === path.length - 1) {
|
|
1813
|
+
if (compose?.[key]) {
|
|
1814
|
+
delete compose[key];
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
else {
|
|
1818
|
+
compose = compose[key];
|
|
1819
|
+
}
|
|
1820
|
+
});
|
|
1821
|
+
}
|
|
1822
|
+
/**
|
|
1823
|
+
* 获取命名空间
|
|
1824
|
+
*/
|
|
1825
|
+
getNamespace() {
|
|
1826
|
+
return 'app';
|
|
1827
|
+
}
|
|
1828
|
+
getTsNamespace() {
|
|
1829
|
+
return `app`;
|
|
1830
|
+
}
|
|
1831
|
+
findNodeByPath(nodePath) {
|
|
1832
|
+
return (0, nasl_utils_1.queryNodeByPath)(this, nodePath);
|
|
1833
|
+
}
|
|
1834
|
+
findNodeByCompleteName(originCompleteName) {
|
|
1835
|
+
let completeName = originCompleteName;
|
|
1836
|
+
// 是否是来自编辑态的自定义连接器
|
|
1837
|
+
const isFromEditableConnector = completeName?.endsWith(utils_1.CUSTOM_CONNECTOR_EDITABLE_SUFFIX);
|
|
1838
|
+
// 如果是自定义连接器,需要去掉后缀才能查找到符合预期的节点
|
|
1839
|
+
if (isFromEditableConnector) {
|
|
1840
|
+
completeName = originCompleteName.replace(utils_1.CUSTOM_CONNECTOR_EDITABLE_SUFFIX, '');
|
|
1841
|
+
}
|
|
1842
|
+
const nameArr = completeName?.split('.') || [];
|
|
1843
|
+
let node = this;
|
|
1844
|
+
// 先处理平台的
|
|
1845
|
+
if (completeName?.startsWith('nasl')) {
|
|
1846
|
+
node = (0, service_1.getNaslNodeByNodeCallee)(nameArr.splice(0, nameArr.length - 1).join('.'), nameArr[nameArr.length - 1]);
|
|
1847
|
+
return node;
|
|
1848
|
+
}
|
|
1849
|
+
const start = nameArr.shift();
|
|
1850
|
+
const mod = 0;
|
|
1851
|
+
const modulesMap = {
|
|
1852
|
+
// v3.3 版本引入自定义连接器,在配置自定义连接器时需要同步支持内部数据结构使用,所以这里做扩展
|
|
1853
|
+
extensions: [...(node?.dependencies || []), ...(node?.integration?.connectors || [])],
|
|
1854
|
+
apis: node.interfaceDependencies,
|
|
1855
|
+
components: node.componentDependencies,
|
|
1856
|
+
// v3.6 版本引入自定义连接器,前缀统一更新为 conenctor
|
|
1857
|
+
// 在配置自定义连接器时需要同步支持内部数据结构使用,所以这里做扩展
|
|
1858
|
+
connector: [...node.connectorDependencies, ...(node?.integration?.connectors || [])],
|
|
1859
|
+
};
|
|
1860
|
+
const modules = modulesMap[start];
|
|
1861
|
+
if (Array.isArray(modules)) {
|
|
1862
|
+
const moduleName = nameArr.shift();
|
|
1863
|
+
if (isFromEditableConnector) {
|
|
1864
|
+
node = modules.find((moduleItem) => moduleItem.name === moduleName && moduleItem?.parentNode?.concept === 'Integration');
|
|
1865
|
+
}
|
|
1866
|
+
else {
|
|
1867
|
+
node = modules.find((moduleItem) => moduleItem.name === moduleName);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
for (let index = 0; index < nameArr.length; index++) {
|
|
1871
|
+
if (!node) {
|
|
1872
|
+
return null;
|
|
1873
|
+
}
|
|
1874
|
+
const nameItem = nameArr[index];
|
|
1875
|
+
// const isKeyword = index % 2 === mod;
|
|
1876
|
+
// if (!isKeyword && Array.isArray(node)) {
|
|
1877
|
+
// node = node.find(({ name }) => name === nameItem);
|
|
1878
|
+
// } else {
|
|
1879
|
+
// node = node[nameItem];
|
|
1880
|
+
// }
|
|
1881
|
+
if (Array.isArray(node)) {
|
|
1882
|
+
node = node.find(({ name }) => name === nameItem);
|
|
1883
|
+
}
|
|
1884
|
+
else {
|
|
1885
|
+
node = node[nameItem];
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
return node;
|
|
1889
|
+
}
|
|
1890
|
+
loadEnvList() {
|
|
1891
|
+
this.envList = ['dev', 'online'];
|
|
1892
|
+
}
|
|
1893
|
+
loadPackageInfos(inputMaterialConfig) {
|
|
1894
|
+
this.packageInfos = [];
|
|
1895
|
+
const materialConfig = inputMaterialConfig ?? (window.globalData.materialConfig || {});
|
|
1896
|
+
const { framework, ui } = materialConfig;
|
|
1897
|
+
const scopes = ['pc', 'h5'];
|
|
1898
|
+
scopes.forEach((scope) => {
|
|
1899
|
+
if (ui[scope]) {
|
|
1900
|
+
this.packageInfos.push({
|
|
1901
|
+
ui: ui[scope],
|
|
1902
|
+
template: framework[scope],
|
|
1903
|
+
scope,
|
|
1904
|
+
});
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
1907
|
+
return this.packageInfos;
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* 根据 packageInfo 的信息生成用于 load 的 assetsInfo
|
|
1911
|
+
* 在环境中需要 basic 和 custom 分开 load,否则容易报错
|
|
1912
|
+
* @param prefix
|
|
1913
|
+
*/
|
|
1914
|
+
genAllAssetsInfo(prefix, scope, frameworkKind) {
|
|
1915
|
+
// const packageInfo = this.packageInfo;
|
|
1916
|
+
const packageInfo = this.packageInfos.find((info) => info.scope === scope);
|
|
1917
|
+
const ui = packageInfo?.ui.find((info) => info.frameworkKind === frameworkKind);
|
|
1918
|
+
const template = packageInfo?.template.find((info) => info.frameworkKind === frameworkKind);
|
|
1919
|
+
const result = {
|
|
1920
|
+
basic: {
|
|
1921
|
+
js: [
|
|
1922
|
+
`${prefix}/packages/vue@2/dist/vue.min.js`,
|
|
1923
|
+
// `${prefix}/packages/vue-router@3/dist/vue-router.min.js`,
|
|
1924
|
+
`${prefix}/packages/${ui?.name}@${ui?.version}/dist-theme/index.js`,
|
|
1925
|
+
`${prefix}/packages/${template?.name}@${template?.version}/cloudAdminDesigner.umd.min.js`,
|
|
1926
|
+
],
|
|
1927
|
+
css: [
|
|
1928
|
+
`${prefix}/packages/${ui?.name}@${ui?.version}/dist-theme/index.css`,
|
|
1929
|
+
`${prefix}/packages/${template?.name}@${template?.version}/cloudAdminDesigner.css`,
|
|
1930
|
+
],
|
|
1931
|
+
},
|
|
1932
|
+
custom: {
|
|
1933
|
+
js: [],
|
|
1934
|
+
css: [],
|
|
1935
|
+
names: [],
|
|
1936
|
+
},
|
|
1937
|
+
};
|
|
1938
|
+
const frontendTypes = this.frontendTypes.filter((frontendType) => frontendType.kind === scope);
|
|
1939
|
+
const existingSet = new Set();
|
|
1940
|
+
frontendTypes.forEach((frontendType) => {
|
|
1941
|
+
frontendType.componentDependencies.forEach((dep) => {
|
|
1942
|
+
const { name, version } = dep;
|
|
1943
|
+
const jsName = `${prefix}/packages/${name}@${version}/dist-theme/index.js`;
|
|
1944
|
+
if (!existingSet.has(jsName)) {
|
|
1945
|
+
existingSet.add(jsName);
|
|
1946
|
+
result.custom.js.push(jsName);
|
|
1947
|
+
if (utils.shouldLoadCss(name, version)) {
|
|
1948
|
+
result.custom.css.push(`${prefix}/packages/${name}@${version}/dist-theme/index.css`);
|
|
1949
|
+
}
|
|
1950
|
+
result.custom.names.push(name);
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
});
|
|
1954
|
+
this.dependencies.forEach((dep) => {
|
|
1955
|
+
const { name, version, compilerInfoMap, frontends } = dep;
|
|
1956
|
+
const prefixPath = compilerInfoMap?.js?.prefix;
|
|
1957
|
+
if (name) {
|
|
1958
|
+
(frontends || []).forEach((frontend) => {
|
|
1959
|
+
if (frontend.type === scope) {
|
|
1960
|
+
const cssFileName = 'dist-theme/index.css';
|
|
1961
|
+
const jsName = `${prefix}/packages/${prefixPath ? `${prefixPath}/` : ''}${name}@${version}/dist-theme/index.js`;
|
|
1962
|
+
const cssName = `${prefix}/packages/${prefixPath ? `${prefixPath}/` : ''}${name}@${version}/${cssFileName}`;
|
|
1963
|
+
if (!existingSet.has(jsName)) {
|
|
1964
|
+
existingSet.add(jsName);
|
|
1965
|
+
result.custom.js.push(jsName);
|
|
1966
|
+
if (dep.checkFileInManifest(cssFileName)) {
|
|
1967
|
+
result.custom.css.push(cssName);
|
|
1968
|
+
}
|
|
1969
|
+
result.custom.names.push(dep.name);
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
});
|
|
1975
|
+
return result;
|
|
1976
|
+
}
|
|
1977
|
+
onChange($event) {
|
|
1978
|
+
this.emit('change', $event);
|
|
1979
|
+
}
|
|
1980
|
+
addModuleInDependenciesWithDataSource(options) {
|
|
1981
|
+
this.emit('collect:start', {
|
|
1982
|
+
actionMsg: '导入依赖库',
|
|
1983
|
+
});
|
|
1984
|
+
const existSameNameNode = this.dependencies.find((l) => l.name === options.name);
|
|
1985
|
+
// 同名同版本的依赖库会替换 同名不同版本的依赖库会保留并设置为禁用
|
|
1986
|
+
// (options as Module).enable = true;
|
|
1987
|
+
if (existSameNameNode) {
|
|
1988
|
+
// const hasSameVersion = existSameNameNode.version === (options as Module).version;
|
|
1989
|
+
// if (hasSameVersion) {
|
|
1990
|
+
existSameNameNode.delete();
|
|
1991
|
+
// }
|
|
1992
|
+
// 同名的依赖库 只启用第一个
|
|
1993
|
+
// (options as Module).enable = hasSameVersion;
|
|
1994
|
+
}
|
|
1995
|
+
// 导入依赖库的时候如果有logic 且logic 可以被覆写 需要在app overideLogic 新增一个
|
|
1996
|
+
// 但是导入局部模板的时候已经手动新增了 这里就不需要了
|
|
1997
|
+
// 当依赖库被删除 的时候同样要删除 overideLogic
|
|
1998
|
+
// 支持局部模板导出导入overideLogic
|
|
1999
|
+
// 只复制 depLogic 输入输出参数
|
|
2000
|
+
const node = this.addModuleInDependencies(options);
|
|
2001
|
+
if (node?.logics && node?.logics.length > 0) {
|
|
2002
|
+
node.logics.forEach((logic) => {
|
|
2003
|
+
if (logic?.overridable) {
|
|
2004
|
+
const existing = this.overriddenLogics.find((ol) => ol.name === logic.name);
|
|
2005
|
+
!existing &&
|
|
2006
|
+
this.addOverriddenLogic({
|
|
2007
|
+
name: logic.name,
|
|
2008
|
+
description: logic.description,
|
|
2009
|
+
overriddenModule: node.name,
|
|
2010
|
+
returns: logic.returns.map((r) => r.toJSON()),
|
|
2011
|
+
params: logic.params.map((r) => r.toJSON()),
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
});
|
|
2015
|
+
}
|
|
2016
|
+
// 启用的依赖库才创建数据源
|
|
2017
|
+
// if (node.enable && node.dataSources) {
|
|
2018
|
+
if (node.dataSources) {
|
|
2019
|
+
const dataSourceGroup = this.configuration?.getGroup('dataSource');
|
|
2020
|
+
const ConfigProperty = (0, decorators_1.getConceptConstructor)('ConfigProperty');
|
|
2021
|
+
if (dataSourceGroup) {
|
|
2022
|
+
node.dataSources.forEach((datasource) => {
|
|
2023
|
+
const body = ConfigProperty.from({
|
|
2024
|
+
name: datasource.name,
|
|
2025
|
+
description: '',
|
|
2026
|
+
isPrivate: false,
|
|
2027
|
+
values: [
|
|
2028
|
+
{ env: 'dev', value: '', concept: 'ConfigPropertyValue' },
|
|
2029
|
+
{ env: 'online', value: '', concept: 'ConfigPropertyValue' },
|
|
2030
|
+
],
|
|
2031
|
+
});
|
|
2032
|
+
dataSourceGroup.addConfigProperty(body);
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
this.emit('collect:end');
|
|
2037
|
+
}
|
|
2038
|
+
statistics() {
|
|
2039
|
+
const sum = (list) => list.reduce((curr, prev) => prev + curr, 0);
|
|
2040
|
+
const countView = (list) => list.length + sum(list.map((view) => countView(view.children)));
|
|
2041
|
+
return {
|
|
2042
|
+
entityCount: sum(this.dataSources.map((dataSource) => dataSource.entities.length)),
|
|
2043
|
+
structureCount: this.structures.length,
|
|
2044
|
+
enumCount: this.enums.length,
|
|
2045
|
+
logicCount: this.logics.length,
|
|
2046
|
+
viewCount: sum(this.frontendTypes.map((frontendType) => sum(frontendType.frontends.map((frontend) => countView(frontend.views))))),
|
|
2047
|
+
processCount: this.processes.length,
|
|
2048
|
+
};
|
|
2049
|
+
}
|
|
2050
|
+
/**
|
|
2051
|
+
* 需要包含依赖库里的dataSources,不自动生成
|
|
2052
|
+
*/
|
|
2053
|
+
getDataSourceExistingNames(excludedList = []) {
|
|
2054
|
+
const excludedSet = new Set(excludedList);
|
|
2055
|
+
const dependDatasources = [];
|
|
2056
|
+
const modules = [...this.dependencies];
|
|
2057
|
+
modules.forEach((module) => {
|
|
2058
|
+
if (Array.isArray(module.dataSources)) {
|
|
2059
|
+
dependDatasources.push(...module.dataSources);
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
const dataSources = this.dataSources.concat(dependDatasources);
|
|
2063
|
+
return (dataSources || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* 更新全局设置 preferenceMap
|
|
2067
|
+
*/
|
|
2068
|
+
updatePreferenceMap(preferences = {}) {
|
|
2069
|
+
this.emit('collect:start', { actionMsg: '修改实体表名列名' });
|
|
2070
|
+
const oldPreferenceMap = { ...this.preferenceMap };
|
|
2071
|
+
Object.assign(this.preferenceMap, preferences);
|
|
2072
|
+
// 更新实体表名和列名
|
|
2073
|
+
this.dataSources.forEach((ds) => {
|
|
2074
|
+
ds.entities.forEach((e) => {
|
|
2075
|
+
if (oldPreferenceMap['namingConvention.tableName'] !== preferences['namingConvention.tableName']) {
|
|
2076
|
+
e.formatTableName();
|
|
2077
|
+
}
|
|
2078
|
+
if (oldPreferenceMap['namingConvention.columnName'] !== preferences['namingConvention.columnName']) {
|
|
2079
|
+
e.formatPropertyColumnName();
|
|
2080
|
+
}
|
|
2081
|
+
});
|
|
2082
|
+
});
|
|
2083
|
+
// 使撤销生效
|
|
2084
|
+
Object.assign(this.preferenceMap, oldPreferenceMap);
|
|
2085
|
+
this.update({
|
|
2086
|
+
preferenceMap: preferences,
|
|
2087
|
+
});
|
|
2088
|
+
this.emit('collect:end');
|
|
2089
|
+
}
|
|
2090
|
+
/* 判断接口是否有误,需要重新导出 */
|
|
2091
|
+
getQualifiedInterface(interfaces = this.interfaces) {
|
|
2092
|
+
// getConceptConstructor
|
|
2093
|
+
const TypeAnnotationClass = (0, decorators_1.getConceptConstructor)('TypeAnnotation');
|
|
2094
|
+
const errorList = [];
|
|
2095
|
+
interfaces.forEach((item) => {
|
|
2096
|
+
const logic = this.logics.find((logic) => logic.name === item.originLogicName);
|
|
2097
|
+
const logicParamMap = {};
|
|
2098
|
+
if (!logic) {
|
|
2099
|
+
return;
|
|
2100
|
+
}
|
|
2101
|
+
logic.params.forEach((param) => {
|
|
2102
|
+
logicParamMap[param.name] = param.typeAnnotation;
|
|
2103
|
+
});
|
|
2104
|
+
item.params.forEach((param) => {
|
|
2105
|
+
const logicTypeAnnotation = TypeAnnotationClass.from(logicParamMap[param.name]?.toJSON());
|
|
2106
|
+
delete logicParamMap[param.name];
|
|
2107
|
+
if (!logicTypeAnnotation) {
|
|
2108
|
+
return errorList.push({
|
|
2109
|
+
logicName: logic.name,
|
|
2110
|
+
interfaceName: item.name,
|
|
2111
|
+
param: param.name,
|
|
2112
|
+
type: 1,
|
|
2113
|
+
message: `参数“${param.name}”已被删除,请确定请求类型无误后点击“重新导出”`,
|
|
2114
|
+
});
|
|
2115
|
+
}
|
|
2116
|
+
const interfaceTypeAnnotation = TypeAnnotationClass.from(param.typeAnnotation.toJSON());
|
|
2117
|
+
let isSame = false;
|
|
2118
|
+
if (logicTypeAnnotation?.typeNamespace === 'app.enums') {
|
|
2119
|
+
if (interfaceTypeAnnotation.typeNamespace === 'nasl.core' && interfaceTypeAnnotation.typeName === 'String') {
|
|
2120
|
+
isSame = true;
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
if (logicTypeAnnotation.isSame(interfaceTypeAnnotation)) {
|
|
2124
|
+
isSame = true;
|
|
2125
|
+
}
|
|
2126
|
+
if (!isSame) {
|
|
2127
|
+
errorList.push({
|
|
2128
|
+
logicName: logic.name,
|
|
2129
|
+
interfaceName: item.name,
|
|
2130
|
+
param: param.name,
|
|
2131
|
+
type: 2,
|
|
2132
|
+
message: `参数“${param.name}”数据类型变更,请确定请求类型无误后点击“重新导出”`,
|
|
2133
|
+
});
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
const logicReturns = logic.returns;
|
|
2137
|
+
const interfaceReturns = item.returns;
|
|
2138
|
+
if (logicReturns?.length > interfaceReturns?.length) {
|
|
2139
|
+
if (!logicReturns[0].typeAnnotation) {
|
|
2140
|
+
errorList.push({
|
|
2141
|
+
logicName: logic.name,
|
|
2142
|
+
interfaceName: item.name,
|
|
2143
|
+
resultName: logicReturns[0].name,
|
|
2144
|
+
type: 4,
|
|
2145
|
+
message: `输出参数发生变更,请点击“重新导出”`,
|
|
2146
|
+
});
|
|
2147
|
+
}
|
|
2148
|
+
else {
|
|
2149
|
+
errorList.push({
|
|
2150
|
+
logicName: logic.name,
|
|
2151
|
+
interfaceName: item.name,
|
|
2152
|
+
resultName: logicReturns[0].name,
|
|
2153
|
+
type: 4,
|
|
2154
|
+
message: `输出参数发生变更,请点击“重新导出”`,
|
|
2155
|
+
});
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
else if (logicReturns?.length < interfaceReturns?.length) {
|
|
2159
|
+
errorList.push({
|
|
2160
|
+
logicName: logic.name,
|
|
2161
|
+
interfaceName: item.name,
|
|
2162
|
+
resultName: interfaceReturns[0].name,
|
|
2163
|
+
type: 4,
|
|
2164
|
+
message: `输出参数发生变更,请点击“重新导出”`,
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
else if (logicReturns?.length === interfaceReturns?.length) {
|
|
2168
|
+
if (logicReturns.length !== 0) {
|
|
2169
|
+
if (logicReturns[0].name !== interfaceReturns[0].name) {
|
|
2170
|
+
errorList.push({
|
|
2171
|
+
logicName: logic.name,
|
|
2172
|
+
interfaceName: item.name,
|
|
2173
|
+
resultName: logicReturns[0].name,
|
|
2174
|
+
type: 4,
|
|
2175
|
+
message: `输出参数发生变更,请点击“重新导出”`,
|
|
2176
|
+
});
|
|
2177
|
+
}
|
|
2178
|
+
else if (!logicReturns[0].typeAnnotation) {
|
|
2179
|
+
if (!logicReturns[0]?.__TypeAnnotation) {
|
|
2180
|
+
errorList.push({
|
|
2181
|
+
logicName: logic.name,
|
|
2182
|
+
interfaceName: item.name,
|
|
2183
|
+
resultName: logicReturns[0].name,
|
|
2184
|
+
type: 7,
|
|
2185
|
+
message: `输出参数“${logicReturns[0].name}”没有数据类型,无法导出`,
|
|
2186
|
+
});
|
|
2187
|
+
}
|
|
2188
|
+
else if (!logicReturns[0]?.__TypeAnnotation.isSame(interfaceReturns[0]?.typeAnnotation)) {
|
|
2189
|
+
errorList.push({
|
|
2190
|
+
logicName: logic.name,
|
|
2191
|
+
interfaceName: item.name,
|
|
2192
|
+
resultName: logicReturns[0].name,
|
|
2193
|
+
type: 4,
|
|
2194
|
+
message: `输出参数发生变更,请点击“重新导出”`,
|
|
2195
|
+
});
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
else if (!logicReturns[0]?.typeAnnotation.isSame(interfaceReturns[0]?.typeAnnotation)) {
|
|
2199
|
+
errorList.push({
|
|
2200
|
+
logicName: logic.name,
|
|
2201
|
+
interfaceName: item.name,
|
|
2202
|
+
resultName: logicReturns[0].name,
|
|
2203
|
+
type: 4,
|
|
2204
|
+
message: `输出参数发生变更,请点击“重新导出”`,
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
for (const i in logicParamMap) {
|
|
2210
|
+
errorList.push({
|
|
2211
|
+
logicName: logic.name,
|
|
2212
|
+
param: i,
|
|
2213
|
+
message: `新增参数“${i}”,请确定请求类型无误后点击“重新导出”`,
|
|
2214
|
+
type: 3,
|
|
2215
|
+
});
|
|
2216
|
+
}
|
|
2217
|
+
});
|
|
2218
|
+
return errorList;
|
|
2219
|
+
}
|
|
2220
|
+
getFrontendExistingTitles(excludedList = []) {
|
|
2221
|
+
const excludedSet = new Set(excludedList);
|
|
2222
|
+
return (this.frontendTypes || [])
|
|
2223
|
+
.map((frontendType) => frontendType.frontends?.filter((item) => !excludedSet.has(item)).map((item) => item.title))
|
|
2224
|
+
.flat(2);
|
|
2225
|
+
}
|
|
2226
|
+
getExtensionsCallbackLogics() {
|
|
2227
|
+
const resultLogics = new Set();
|
|
2228
|
+
this.frontendTypes.forEach((frontendType) => {
|
|
2229
|
+
frontendType?.frontends?.forEach((frontend) => {
|
|
2230
|
+
frontend.getExtensionsCallbackLogics().forEach((logic) => {
|
|
2231
|
+
resultLogics.add(logic);
|
|
2232
|
+
});
|
|
2233
|
+
});
|
|
2234
|
+
frontendType?.businessComponents?.forEach((businessComponent) => {
|
|
2235
|
+
(businessComponent?.getViewCallLogics?.() || []).forEach((logic) => {
|
|
2236
|
+
resultLogics.add(logic);
|
|
2237
|
+
});
|
|
2238
|
+
});
|
|
2239
|
+
});
|
|
2240
|
+
return Array.from(resultLogics);
|
|
2241
|
+
}
|
|
2242
|
+
getJavaLogicUniqueName(name = 'javalogic1') {
|
|
2243
|
+
return utils.unique(name, this.getLogicExistingNames(), undefined, true);
|
|
2244
|
+
}
|
|
2245
|
+
getJavaLogicClassUniqueName(name = 'Javalogic1') {
|
|
2246
|
+
return `${utils.unique(name, this.getLogicExistingNames(), undefined, true)}Service`;
|
|
2247
|
+
}
|
|
2248
|
+
genAllCustomComponents() {
|
|
2249
|
+
const compMap = {
|
|
2250
|
+
pc: [],
|
|
2251
|
+
h5: [],
|
|
2252
|
+
};
|
|
2253
|
+
const existingSet = new Set();
|
|
2254
|
+
this.frontendTypes.forEach((frontendType) => {
|
|
2255
|
+
if (frontendType.componentDependencies) {
|
|
2256
|
+
frontendType.componentDependencies.forEach((dep) => {
|
|
2257
|
+
const { name } = dep;
|
|
2258
|
+
if (!existingSet.has(name)) {
|
|
2259
|
+
compMap[frontendType.kind].push(dep);
|
|
2260
|
+
}
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
});
|
|
2264
|
+
return compMap;
|
|
2265
|
+
}
|
|
2266
|
+
/**
|
|
2267
|
+
* 获取 “系统统一路径前缀”
|
|
2268
|
+
* @returns
|
|
2269
|
+
*/
|
|
2270
|
+
get sysPrefixPath() {
|
|
2271
|
+
const uniformPathPrefix = this.configuration?.groups
|
|
2272
|
+
?.find((item) => item.name === 'system')
|
|
2273
|
+
?.properties?.find((item) => item.name === 'uniformPathPrefix')
|
|
2274
|
+
?.values.find((item) => item.env === this.curDeployEnv)?.value;
|
|
2275
|
+
const sysPrefixPath = uniformPathPrefix && uniformPathPrefix !== '/' ? uniformPathPrefix : '';
|
|
2276
|
+
return sysPrefixPath;
|
|
2277
|
+
}
|
|
2278
|
+
getAuthInterfaceUniqueName(name = 'authInterface1') {
|
|
2279
|
+
// never used
|
|
2280
|
+
}
|
|
2281
|
+
get appTimeZone() {
|
|
2282
|
+
return this.configuration?.groups
|
|
2283
|
+
?.find((item) => item.name === 'system')
|
|
2284
|
+
?.properties?.find((item) => item.name === 'appTimeZone')
|
|
2285
|
+
?.values.find((item) => item.env === this.curDeployEnv)?.value;
|
|
2286
|
+
}
|
|
2287
|
+
/** 根据名称获取 triggerLauncher */
|
|
2288
|
+
getTriggerLauncherByName(name) {
|
|
2289
|
+
return this.triggerLaunchers.find((item) => item.name === name);
|
|
2290
|
+
}
|
|
2291
|
+
/** 根据名称获取 Logic */
|
|
2292
|
+
getLogicByName(name) {
|
|
2293
|
+
return this.logics.find((item) => item.name === name);
|
|
2294
|
+
}
|
|
2295
|
+
/** 获取已经存在的Module title */
|
|
2296
|
+
getConnectorExistingTitles(excludedList = []) {
|
|
2297
|
+
const excludedSet = new Set(excludedList);
|
|
2298
|
+
return (this.connectorDependencies || [])
|
|
2299
|
+
.filter((item) => !excludedSet.has(item))
|
|
2300
|
+
.map((item) => item.title);
|
|
2301
|
+
}
|
|
2302
|
+
/** hank */
|
|
2303
|
+
// setConnector() {
|
|
2304
|
+
// const [a, b, c, d] = this.dependencies;
|
|
2305
|
+
// const Module = getConceptConstructor('Module');
|
|
2306
|
+
// const module = Module.from({
|
|
2307
|
+
// "concept": "Module",
|
|
2308
|
+
// "type": "extension",
|
|
2309
|
+
// "version": "1.0.1",
|
|
2310
|
+
// "name": "cw_cryptojs_library",
|
|
2311
|
+
// "title": "前端加密依赖库",
|
|
2312
|
+
// "description": "",
|
|
2313
|
+
// "provider": "资产中心-租户",
|
|
2314
|
+
// "compilerInfoMap": {
|
|
2315
|
+
// "js": {
|
|
2316
|
+
// "prefix": "extension"
|
|
2317
|
+
// }
|
|
2318
|
+
// },
|
|
2319
|
+
// "dataSources": [],
|
|
2320
|
+
// "structures": [],
|
|
2321
|
+
// "enums": [],
|
|
2322
|
+
// "logics": [],
|
|
2323
|
+
// "interfaces": [],
|
|
2324
|
+
// "views": [],
|
|
2325
|
+
// "frontendVariables": [],
|
|
2326
|
+
// "processes": [],
|
|
2327
|
+
// "processV2s": [],
|
|
2328
|
+
// "frontends": [
|
|
2329
|
+
// {
|
|
2330
|
+
// "concept": "FrontendLibrary",
|
|
2331
|
+
// "name": "pc",
|
|
2332
|
+
// "type": "pc",
|
|
2333
|
+
// "logics": [
|
|
2334
|
+
// {
|
|
2335
|
+
// "concept": "Logic",
|
|
2336
|
+
// "name": "decryptDataWithSalt",
|
|
2337
|
+
// "description": "加盐解密算法",
|
|
2338
|
+
// "typeParams": null,
|
|
2339
|
+
// "params": [
|
|
2340
|
+
// {
|
|
2341
|
+
// "concept": "Param",
|
|
2342
|
+
// "name": "encryptedData",
|
|
2343
|
+
// "description": "加密数据",
|
|
2344
|
+
// "typeAnnotation": {
|
|
2345
|
+
// "concept": "TypeAnnotation",
|
|
2346
|
+
// "typeKind": "primitive",
|
|
2347
|
+
// "typeNamespace": "nasl.core",
|
|
2348
|
+
// "typeName": "String",
|
|
2349
|
+
// "typeArguments": null,
|
|
2350
|
+
// "returnType": null,
|
|
2351
|
+
// "properties": null,
|
|
2352
|
+
// "name": ""
|
|
2353
|
+
// },
|
|
2354
|
+
// "defaultValue": null,
|
|
2355
|
+
// "cascader": false
|
|
2356
|
+
// },
|
|
2357
|
+
// {
|
|
2358
|
+
// "concept": "Param",
|
|
2359
|
+
// "name": "secretKey",
|
|
2360
|
+
// "description": "密钥",
|
|
2361
|
+
// "typeAnnotation": {
|
|
2362
|
+
// "concept": "TypeAnnotation",
|
|
2363
|
+
// "typeKind": "primitive",
|
|
2364
|
+
// "typeNamespace": "nasl.core",
|
|
2365
|
+
// "typeName": "String",
|
|
2366
|
+
// "typeArguments": null,
|
|
2367
|
+
// "returnType": null,
|
|
2368
|
+
// "properties": null,
|
|
2369
|
+
// "name": ""
|
|
2370
|
+
// },
|
|
2371
|
+
// "defaultValue": null,
|
|
2372
|
+
// "cascader": false
|
|
2373
|
+
// }
|
|
2374
|
+
// ],
|
|
2375
|
+
// "returns": [
|
|
2376
|
+
// {
|
|
2377
|
+
// "concept": "Return",
|
|
2378
|
+
// "name": "result",
|
|
2379
|
+
// "typeAnnotation": {
|
|
2380
|
+
// "concept": "TypeAnnotation",
|
|
2381
|
+
// "typeKind": "primitive",
|
|
2382
|
+
// "typeNamespace": "nasl.core",
|
|
2383
|
+
// "typeName": "String",
|
|
2384
|
+
// "typeArguments": null,
|
|
2385
|
+
// "returnType": null,
|
|
2386
|
+
// "properties": null,
|
|
2387
|
+
// "name": ""
|
|
2388
|
+
// },
|
|
2389
|
+
// "defaultValue": null
|
|
2390
|
+
// }
|
|
2391
|
+
// ],
|
|
2392
|
+
// "variables": [],
|
|
2393
|
+
// "body": [
|
|
2394
|
+
// {
|
|
2395
|
+
// "concept": "Start",
|
|
2396
|
+
// "label": "开始",
|
|
2397
|
+
// "description": null,
|
|
2398
|
+
// "folded": false,
|
|
2399
|
+
// "offsetX": null,
|
|
2400
|
+
// "offsetY": null,
|
|
2401
|
+
// "name": ""
|
|
2402
|
+
// },
|
|
2403
|
+
// {
|
|
2404
|
+
// "concept": "End",
|
|
2405
|
+
// "label": "结束",
|
|
2406
|
+
// "description": null,
|
|
2407
|
+
// "folded": false,
|
|
2408
|
+
// "offsetX": null,
|
|
2409
|
+
// "offsetY": null,
|
|
2410
|
+
// "name": ""
|
|
2411
|
+
// }
|
|
2412
|
+
// ],
|
|
2413
|
+
// "playground": []
|
|
2414
|
+
// },
|
|
2415
|
+
// {
|
|
2416
|
+
// "concept": "Logic",
|
|
2417
|
+
// "name": "encryptByDes",
|
|
2418
|
+
// "description": "Des加密",
|
|
2419
|
+
// "typeParams": null,
|
|
2420
|
+
// "params": [
|
|
2421
|
+
// {
|
|
2422
|
+
// "concept": "Param",
|
|
2423
|
+
// "name": "data",
|
|
2424
|
+
// "description": "需要加密的内容",
|
|
2425
|
+
// "typeAnnotation": {
|
|
2426
|
+
// "concept": "TypeAnnotation",
|
|
2427
|
+
// "typeKind": "primitive",
|
|
2428
|
+
// "typeNamespace": "nasl.core",
|
|
2429
|
+
// "typeName": "String",
|
|
2430
|
+
// "typeArguments": null,
|
|
2431
|
+
// "returnType": null,
|
|
2432
|
+
// "properties": null,
|
|
2433
|
+
// "name": ""
|
|
2434
|
+
// },
|
|
2435
|
+
// "defaultValue": null,
|
|
2436
|
+
// "cascader": false
|
|
2437
|
+
// },
|
|
2438
|
+
// {
|
|
2439
|
+
// "concept": "Param",
|
|
2440
|
+
// "name": "key",
|
|
2441
|
+
// "description": "加密的key",
|
|
2442
|
+
// "typeAnnotation": {
|
|
2443
|
+
// "concept": "TypeAnnotation",
|
|
2444
|
+
// "typeKind": "primitive",
|
|
2445
|
+
// "typeNamespace": "nasl.core",
|
|
2446
|
+
// "typeName": "String",
|
|
2447
|
+
// "typeArguments": null,
|
|
2448
|
+
// "returnType": null,
|
|
2449
|
+
// "properties": null,
|
|
2450
|
+
// "name": ""
|
|
2451
|
+
// },
|
|
2452
|
+
// "defaultValue": null,
|
|
2453
|
+
// "cascader": false
|
|
2454
|
+
// },
|
|
2455
|
+
// {
|
|
2456
|
+
// "concept": "Param",
|
|
2457
|
+
// "name": "iv",
|
|
2458
|
+
// "description": "加密的iv",
|
|
2459
|
+
// "typeAnnotation": {
|
|
2460
|
+
// "concept": "TypeAnnotation",
|
|
2461
|
+
// "typeKind": "primitive",
|
|
2462
|
+
// "typeNamespace": "nasl.core",
|
|
2463
|
+
// "typeName": "String",
|
|
2464
|
+
// "typeArguments": null,
|
|
2465
|
+
// "returnType": null,
|
|
2466
|
+
// "properties": null,
|
|
2467
|
+
// "name": ""
|
|
2468
|
+
// },
|
|
2469
|
+
// "defaultValue": null,
|
|
2470
|
+
// "cascader": false
|
|
2471
|
+
// }
|
|
2472
|
+
// ],
|
|
2473
|
+
// "returns": [
|
|
2474
|
+
// {
|
|
2475
|
+
// "concept": "Return",
|
|
2476
|
+
// "name": "result",
|
|
2477
|
+
// "typeAnnotation": {
|
|
2478
|
+
// "concept": "TypeAnnotation",
|
|
2479
|
+
// "typeKind": "primitive",
|
|
2480
|
+
// "typeNamespace": "nasl.core",
|
|
2481
|
+
// "typeName": "String",
|
|
2482
|
+
// "typeArguments": null,
|
|
2483
|
+
// "returnType": null,
|
|
2484
|
+
// "properties": null,
|
|
2485
|
+
// "name": ""
|
|
2486
|
+
// },
|
|
2487
|
+
// "defaultValue": null
|
|
2488
|
+
// }
|
|
2489
|
+
// ],
|
|
2490
|
+
// "variables": [],
|
|
2491
|
+
// "body": [
|
|
2492
|
+
// {
|
|
2493
|
+
// "concept": "Start",
|
|
2494
|
+
// "label": "开始",
|
|
2495
|
+
// "description": null,
|
|
2496
|
+
// "folded": false,
|
|
2497
|
+
// "offsetX": null,
|
|
2498
|
+
// "offsetY": null,
|
|
2499
|
+
// "name": ""
|
|
2500
|
+
// },
|
|
2501
|
+
// {
|
|
2502
|
+
// "concept": "End",
|
|
2503
|
+
// "label": "结束",
|
|
2504
|
+
// "description": null,
|
|
2505
|
+
// "folded": false,
|
|
2506
|
+
// "offsetX": null,
|
|
2507
|
+
// "offsetY": null,
|
|
2508
|
+
// "name": ""
|
|
2509
|
+
// }
|
|
2510
|
+
// ],
|
|
2511
|
+
// "playground": []
|
|
2512
|
+
// },
|
|
2513
|
+
// {
|
|
2514
|
+
// "concept": "Logic",
|
|
2515
|
+
// "name": "encryptDataWithSalt",
|
|
2516
|
+
// "description": "加盐加密算法",
|
|
2517
|
+
// "typeParams": null,
|
|
2518
|
+
// "params": [
|
|
2519
|
+
// {
|
|
2520
|
+
// "concept": "Param",
|
|
2521
|
+
// "name": "data",
|
|
2522
|
+
// "description": "待加密数据",
|
|
2523
|
+
// "typeAnnotation": {
|
|
2524
|
+
// "concept": "TypeAnnotation",
|
|
2525
|
+
// "typeKind": "primitive",
|
|
2526
|
+
// "typeNamespace": "nasl.core",
|
|
2527
|
+
// "typeName": "String",
|
|
2528
|
+
// "typeArguments": null,
|
|
2529
|
+
// "returnType": null,
|
|
2530
|
+
// "properties": null,
|
|
2531
|
+
// "name": ""
|
|
2532
|
+
// },
|
|
2533
|
+
// "defaultValue": null,
|
|
2534
|
+
// "cascader": false
|
|
2535
|
+
// },
|
|
2536
|
+
// {
|
|
2537
|
+
// "concept": "Param",
|
|
2538
|
+
// "name": "secretKey",
|
|
2539
|
+
// "description": "密钥",
|
|
2540
|
+
// "typeAnnotation": {
|
|
2541
|
+
// "concept": "TypeAnnotation",
|
|
2542
|
+
// "typeKind": "primitive",
|
|
2543
|
+
// "typeNamespace": "nasl.core",
|
|
2544
|
+
// "typeName": "String",
|
|
2545
|
+
// "typeArguments": null,
|
|
2546
|
+
// "returnType": null,
|
|
2547
|
+
// "properties": null,
|
|
2548
|
+
// "name": ""
|
|
2549
|
+
// },
|
|
2550
|
+
// "defaultValue": null,
|
|
2551
|
+
// "cascader": false
|
|
2552
|
+
// }
|
|
2553
|
+
// ],
|
|
2554
|
+
// "returns": [
|
|
2555
|
+
// {
|
|
2556
|
+
// "concept": "Return",
|
|
2557
|
+
// "name": "result",
|
|
2558
|
+
// "typeAnnotation": {
|
|
2559
|
+
// "concept": "TypeAnnotation",
|
|
2560
|
+
// "typeKind": "primitive",
|
|
2561
|
+
// "typeNamespace": "nasl.core",
|
|
2562
|
+
// "typeName": "String",
|
|
2563
|
+
// "typeArguments": null,
|
|
2564
|
+
// "returnType": null,
|
|
2565
|
+
// "properties": null,
|
|
2566
|
+
// "name": ""
|
|
2567
|
+
// },
|
|
2568
|
+
// "defaultValue": null
|
|
2569
|
+
// }
|
|
2570
|
+
// ],
|
|
2571
|
+
// "variables": [],
|
|
2572
|
+
// "body": [
|
|
2573
|
+
// {
|
|
2574
|
+
// "concept": "Start",
|
|
2575
|
+
// "label": "开始",
|
|
2576
|
+
// "description": null,
|
|
2577
|
+
// "folded": false,
|
|
2578
|
+
// "offsetX": null,
|
|
2579
|
+
// "offsetY": null,
|
|
2580
|
+
// "name": ""
|
|
2581
|
+
// },
|
|
2582
|
+
// {
|
|
2583
|
+
// "concept": "End",
|
|
2584
|
+
// "label": "结束",
|
|
2585
|
+
// "description": null,
|
|
2586
|
+
// "folded": false,
|
|
2587
|
+
// "offsetX": null,
|
|
2588
|
+
// "offsetY": null,
|
|
2589
|
+
// "name": ""
|
|
2590
|
+
// }
|
|
2591
|
+
// ],
|
|
2592
|
+
// "playground": []
|
|
2593
|
+
// },
|
|
2594
|
+
// {
|
|
2595
|
+
// "concept": "Logic",
|
|
2596
|
+
// "name": "encryptSha256",
|
|
2597
|
+
// "description": "RSA-SHA256加密",
|
|
2598
|
+
// "typeParams": null,
|
|
2599
|
+
// "params": [
|
|
2600
|
+
// {
|
|
2601
|
+
// "concept": "Param",
|
|
2602
|
+
// "name": "rsa",
|
|
2603
|
+
// "description": "加密私钥",
|
|
2604
|
+
// "typeAnnotation": {
|
|
2605
|
+
// "concept": "TypeAnnotation",
|
|
2606
|
+
// "typeKind": "primitive",
|
|
2607
|
+
// "typeNamespace": "nasl.core",
|
|
2608
|
+
// "typeName": "String",
|
|
2609
|
+
// "typeArguments": null,
|
|
2610
|
+
// "returnType": null,
|
|
2611
|
+
// "properties": null,
|
|
2612
|
+
// "name": ""
|
|
2613
|
+
// },
|
|
2614
|
+
// "defaultValue": null,
|
|
2615
|
+
// "cascader": false
|
|
2616
|
+
// }
|
|
2617
|
+
// ],
|
|
2618
|
+
// "returns": [
|
|
2619
|
+
// {
|
|
2620
|
+
// "concept": "Return",
|
|
2621
|
+
// "name": "result",
|
|
2622
|
+
// "typeAnnotation": {
|
|
2623
|
+
// "concept": "TypeAnnotation",
|
|
2624
|
+
// "typeKind": "primitive",
|
|
2625
|
+
// "typeNamespace": "nasl.core",
|
|
2626
|
+
// "typeName": "String",
|
|
2627
|
+
// "typeArguments": null,
|
|
2628
|
+
// "returnType": null,
|
|
2629
|
+
// "properties": null,
|
|
2630
|
+
// "name": ""
|
|
2631
|
+
// },
|
|
2632
|
+
// "defaultValue": null
|
|
2633
|
+
// }
|
|
2634
|
+
// ],
|
|
2635
|
+
// "variables": [],
|
|
2636
|
+
// "body": [
|
|
2637
|
+
// {
|
|
2638
|
+
// "concept": "Start",
|
|
2639
|
+
// "label": "开始",
|
|
2640
|
+
// "description": null,
|
|
2641
|
+
// "folded": false,
|
|
2642
|
+
// "offsetX": null,
|
|
2643
|
+
// "offsetY": null,
|
|
2644
|
+
// "name": ""
|
|
2645
|
+
// },
|
|
2646
|
+
// {
|
|
2647
|
+
// "concept": "End",
|
|
2648
|
+
// "label": "结束",
|
|
2649
|
+
// "description": null,
|
|
2650
|
+
// "folded": false,
|
|
2651
|
+
// "offsetX": null,
|
|
2652
|
+
// "offsetY": null,
|
|
2653
|
+
// "name": ""
|
|
2654
|
+
// }
|
|
2655
|
+
// ],
|
|
2656
|
+
// "playground": []
|
|
2657
|
+
// },
|
|
2658
|
+
// {
|
|
2659
|
+
// "concept": "Logic",
|
|
2660
|
+
// "name": "addWaterImgMarkAsync",
|
|
2661
|
+
// "description": "",
|
|
2662
|
+
// "typeParams": null,
|
|
2663
|
+
// "params": [
|
|
2664
|
+
// {
|
|
2665
|
+
// "concept": "Param",
|
|
2666
|
+
// "name": "taskId",
|
|
2667
|
+
// "description": "",
|
|
2668
|
+
// "typeAnnotation": {
|
|
2669
|
+
// "concept": "TypeAnnotation",
|
|
2670
|
+
// "typeKind": "primitive",
|
|
2671
|
+
// "typeNamespace": "nasl.core",
|
|
2672
|
+
// "typeName": "String",
|
|
2673
|
+
// "typeArguments": null,
|
|
2674
|
+
// "returnType": null,
|
|
2675
|
+
// "properties": null
|
|
2676
|
+
// },
|
|
2677
|
+
// "defaultValue": null,
|
|
2678
|
+
// "cascader": false
|
|
2679
|
+
// },
|
|
2680
|
+
// {
|
|
2681
|
+
// "concept": "Param",
|
|
2682
|
+
// "name": "srcFile",
|
|
2683
|
+
// "description": "",
|
|
2684
|
+
// "typeAnnotation": {
|
|
2685
|
+
// "concept": "TypeAnnotation",
|
|
2686
|
+
// "typeKind": "primitive",
|
|
2687
|
+
// "typeNamespace": "nasl.core",
|
|
2688
|
+
// "typeName": "String",
|
|
2689
|
+
// "typeArguments": null,
|
|
2690
|
+
// "returnType": null,
|
|
2691
|
+
// "properties": null
|
|
2692
|
+
// },
|
|
2693
|
+
// "defaultValue": null,
|
|
2694
|
+
// "cascader": false
|
|
2695
|
+
// },
|
|
2696
|
+
// {
|
|
2697
|
+
// "concept": "Param",
|
|
2698
|
+
// "name": "imgPath",
|
|
2699
|
+
// "description": "",
|
|
2700
|
+
// "typeAnnotation": {
|
|
2701
|
+
// "concept": "TypeAnnotation",
|
|
2702
|
+
// "typeKind": "primitive",
|
|
2703
|
+
// "typeNamespace": "nasl.core",
|
|
2704
|
+
// "typeName": "String",
|
|
2705
|
+
// "typeArguments": null,
|
|
2706
|
+
// "returnType": null,
|
|
2707
|
+
// "properties": null
|
|
2708
|
+
// },
|
|
2709
|
+
// "defaultValue": null,
|
|
2710
|
+
// "cascader": false
|
|
2711
|
+
// },
|
|
2712
|
+
// {
|
|
2713
|
+
// "concept": "Param",
|
|
2714
|
+
// "name": "textFont",
|
|
2715
|
+
// "description": "",
|
|
2716
|
+
// "typeAnnotation": {
|
|
2717
|
+
// "concept": "TypeAnnotation",
|
|
2718
|
+
// "typeKind": "primitive",
|
|
2719
|
+
// "typeNamespace": "nasl.core",
|
|
2720
|
+
// "typeName": "String",
|
|
2721
|
+
// "typeArguments": null,
|
|
2722
|
+
// "returnType": null,
|
|
2723
|
+
// "properties": null
|
|
2724
|
+
// },
|
|
2725
|
+
// "defaultValue": null,
|
|
2726
|
+
// "cascader": false
|
|
2727
|
+
// },
|
|
2728
|
+
// {
|
|
2729
|
+
// "concept": "Param",
|
|
2730
|
+
// "name": "func",
|
|
2731
|
+
// "description": "",
|
|
2732
|
+
// "typeAnnotation": {
|
|
2733
|
+
// "concept": "TypeAnnotation",
|
|
2734
|
+
// "typeKind": "function",
|
|
2735
|
+
// "typeNamespace": "nasl.core",
|
|
2736
|
+
// "typeName": "",
|
|
2737
|
+
// "typeArguments": [
|
|
2738
|
+
// {
|
|
2739
|
+
// "concept": "TypeAnnotation",
|
|
2740
|
+
// "typeKind": "generic",
|
|
2741
|
+
// "typeNamespace": "nasl.collection",
|
|
2742
|
+
// "typeName": "Map",
|
|
2743
|
+
// "typeArguments": [
|
|
2744
|
+
// {
|
|
2745
|
+
// "concept": "TypeAnnotation",
|
|
2746
|
+
// "typeKind": "primitive",
|
|
2747
|
+
// "typeNamespace": "nasl.core",
|
|
2748
|
+
// "typeName": "String",
|
|
2749
|
+
// "typeArguments": null,
|
|
2750
|
+
// "returnType": null,
|
|
2751
|
+
// "properties": null
|
|
2752
|
+
// },
|
|
2753
|
+
// {
|
|
2754
|
+
// "concept": "TypeAnnotation",
|
|
2755
|
+
// "typeKind": "primitive",
|
|
2756
|
+
// "typeNamespace": "nasl.core",
|
|
2757
|
+
// "typeName": "String",
|
|
2758
|
+
// "typeArguments": null,
|
|
2759
|
+
// "returnType": null,
|
|
2760
|
+
// "properties": null
|
|
2761
|
+
// }
|
|
2762
|
+
// ],
|
|
2763
|
+
// "returnType": null,
|
|
2764
|
+
// "properties": null
|
|
2765
|
+
// }
|
|
2766
|
+
// ],
|
|
2767
|
+
// "returnType": [
|
|
2768
|
+
// {
|
|
2769
|
+
// "concept": "TypeAnnotation",
|
|
2770
|
+
// "typeKind": "primitive",
|
|
2771
|
+
// "typeNamespace": "nasl.core",
|
|
2772
|
+
// "typeName": "String",
|
|
2773
|
+
// "typeArguments": null,
|
|
2774
|
+
// "returnType": null,
|
|
2775
|
+
// "properties": null
|
|
2776
|
+
// }
|
|
2777
|
+
// ],
|
|
2778
|
+
// "properties": null
|
|
2779
|
+
// },
|
|
2780
|
+
// "defaultValue": null,
|
|
2781
|
+
// "cascader": false,
|
|
2782
|
+
// "changedTime": 1711351957157,
|
|
2783
|
+
// "spread": true
|
|
2784
|
+
// }
|
|
2785
|
+
// ],
|
|
2786
|
+
// "returns": [
|
|
2787
|
+
// {
|
|
2788
|
+
// "concept": "Return",
|
|
2789
|
+
// "name": "result",
|
|
2790
|
+
// "description": "",
|
|
2791
|
+
// "typeAnnotation": {
|
|
2792
|
+
// "concept": "TypeAnnotation",
|
|
2793
|
+
// "typeKind": "primitive",
|
|
2794
|
+
// "typeNamespace": "nasl.core",
|
|
2795
|
+
// "typeName": "String",
|
|
2796
|
+
// "typeArguments": null,
|
|
2797
|
+
// "returnType": null,
|
|
2798
|
+
// "properties": null
|
|
2799
|
+
// },
|
|
2800
|
+
// "defaultValue": null
|
|
2801
|
+
// }
|
|
2802
|
+
// ],
|
|
2803
|
+
// "variables": [],
|
|
2804
|
+
// "body": [
|
|
2805
|
+
// {
|
|
2806
|
+
// "concept": "Start",
|
|
2807
|
+
// "label": "开始",
|
|
2808
|
+
// "description": null,
|
|
2809
|
+
// "folded": false,
|
|
2810
|
+
// "offsetX": null,
|
|
2811
|
+
// "offsetY": null
|
|
2812
|
+
// },
|
|
2813
|
+
// {
|
|
2814
|
+
// "concept": "End",
|
|
2815
|
+
// "label": "结束",
|
|
2816
|
+
// "description": null,
|
|
2817
|
+
// "folded": false,
|
|
2818
|
+
// "offsetX": null,
|
|
2819
|
+
// "offsetY": null
|
|
2820
|
+
// }
|
|
2821
|
+
// ],
|
|
2822
|
+
// "playground": [],
|
|
2823
|
+
// "changedTime": 1711009353914
|
|
2824
|
+
// }
|
|
2825
|
+
// ],
|
|
2826
|
+
// "viewComponents": []
|
|
2827
|
+
// },
|
|
2828
|
+
// {
|
|
2829
|
+
// "concept": "FrontendLibrary",
|
|
2830
|
+
// "name": "h5",
|
|
2831
|
+
// "type": "h5",
|
|
2832
|
+
// "logics": [
|
|
2833
|
+
// {
|
|
2834
|
+
// "concept": "Logic",
|
|
2835
|
+
// "name": "decryptDataWithSalt",
|
|
2836
|
+
// "description": "加盐解密算法",
|
|
2837
|
+
// "typeParams": null,
|
|
2838
|
+
// "params": [
|
|
2839
|
+
// {
|
|
2840
|
+
// "concept": "Param",
|
|
2841
|
+
// "name": "encryptedData",
|
|
2842
|
+
// "description": "加密数据",
|
|
2843
|
+
// "typeAnnotation": {
|
|
2844
|
+
// "concept": "TypeAnnotation",
|
|
2845
|
+
// "typeKind": "primitive",
|
|
2846
|
+
// "typeNamespace": "nasl.core",
|
|
2847
|
+
// "typeName": "String",
|
|
2848
|
+
// "typeArguments": null,
|
|
2849
|
+
// "returnType": null,
|
|
2850
|
+
// "properties": null,
|
|
2851
|
+
// "name": ""
|
|
2852
|
+
// },
|
|
2853
|
+
// "defaultValue": null,
|
|
2854
|
+
// "cascader": false
|
|
2855
|
+
// },
|
|
2856
|
+
// {
|
|
2857
|
+
// "concept": "Param",
|
|
2858
|
+
// "name": "secretKey",
|
|
2859
|
+
// "description": "密钥",
|
|
2860
|
+
// "typeAnnotation": {
|
|
2861
|
+
// "concept": "TypeAnnotation",
|
|
2862
|
+
// "typeKind": "primitive",
|
|
2863
|
+
// "typeNamespace": "nasl.core",
|
|
2864
|
+
// "typeName": "String",
|
|
2865
|
+
// "typeArguments": null,
|
|
2866
|
+
// "returnType": null,
|
|
2867
|
+
// "properties": null,
|
|
2868
|
+
// "name": ""
|
|
2869
|
+
// },
|
|
2870
|
+
// "defaultValue": null,
|
|
2871
|
+
// "cascader": false
|
|
2872
|
+
// }
|
|
2873
|
+
// ],
|
|
2874
|
+
// "returns": [
|
|
2875
|
+
// {
|
|
2876
|
+
// "concept": "Return",
|
|
2877
|
+
// "name": "result",
|
|
2878
|
+
// "typeAnnotation": {
|
|
2879
|
+
// "concept": "TypeAnnotation",
|
|
2880
|
+
// "typeKind": "primitive",
|
|
2881
|
+
// "typeNamespace": "nasl.core",
|
|
2882
|
+
// "typeName": "String",
|
|
2883
|
+
// "typeArguments": null,
|
|
2884
|
+
// "returnType": null,
|
|
2885
|
+
// "properties": null,
|
|
2886
|
+
// "name": ""
|
|
2887
|
+
// },
|
|
2888
|
+
// "defaultValue": null
|
|
2889
|
+
// }
|
|
2890
|
+
// ],
|
|
2891
|
+
// "variables": [],
|
|
2892
|
+
// "body": [
|
|
2893
|
+
// {
|
|
2894
|
+
// "concept": "Start",
|
|
2895
|
+
// "label": "开始",
|
|
2896
|
+
// "description": null,
|
|
2897
|
+
// "folded": false,
|
|
2898
|
+
// "offsetX": null,
|
|
2899
|
+
// "offsetY": null,
|
|
2900
|
+
// "name": ""
|
|
2901
|
+
// },
|
|
2902
|
+
// {
|
|
2903
|
+
// "concept": "End",
|
|
2904
|
+
// "label": "结束",
|
|
2905
|
+
// "description": null,
|
|
2906
|
+
// "folded": false,
|
|
2907
|
+
// "offsetX": null,
|
|
2908
|
+
// "offsetY": null,
|
|
2909
|
+
// "name": ""
|
|
2910
|
+
// }
|
|
2911
|
+
// ],
|
|
2912
|
+
// "playground": []
|
|
2913
|
+
// },
|
|
2914
|
+
// {
|
|
2915
|
+
// "concept": "Logic",
|
|
2916
|
+
// "name": "encryptByDes",
|
|
2917
|
+
// "description": "Des加密",
|
|
2918
|
+
// "typeParams": null,
|
|
2919
|
+
// "params": [
|
|
2920
|
+
// {
|
|
2921
|
+
// "concept": "Param",
|
|
2922
|
+
// "name": "data",
|
|
2923
|
+
// "description": "需要加密的内容",
|
|
2924
|
+
// "typeAnnotation": {
|
|
2925
|
+
// "concept": "TypeAnnotation",
|
|
2926
|
+
// "typeKind": "primitive",
|
|
2927
|
+
// "typeNamespace": "nasl.core",
|
|
2928
|
+
// "typeName": "String",
|
|
2929
|
+
// "typeArguments": null,
|
|
2930
|
+
// "returnType": null,
|
|
2931
|
+
// "properties": null,
|
|
2932
|
+
// "name": ""
|
|
2933
|
+
// },
|
|
2934
|
+
// "defaultValue": null,
|
|
2935
|
+
// "cascader": false
|
|
2936
|
+
// },
|
|
2937
|
+
// {
|
|
2938
|
+
// "concept": "Param",
|
|
2939
|
+
// "name": "key",
|
|
2940
|
+
// "description": "加密的key",
|
|
2941
|
+
// "typeAnnotation": {
|
|
2942
|
+
// "concept": "TypeAnnotation",
|
|
2943
|
+
// "typeKind": "primitive",
|
|
2944
|
+
// "typeNamespace": "nasl.core",
|
|
2945
|
+
// "typeName": "String",
|
|
2946
|
+
// "typeArguments": null,
|
|
2947
|
+
// "returnType": null,
|
|
2948
|
+
// "properties": null,
|
|
2949
|
+
// "name": ""
|
|
2950
|
+
// },
|
|
2951
|
+
// "defaultValue": null,
|
|
2952
|
+
// "cascader": false
|
|
2953
|
+
// },
|
|
2954
|
+
// {
|
|
2955
|
+
// "concept": "Param",
|
|
2956
|
+
// "name": "iv",
|
|
2957
|
+
// "description": "加密的iv",
|
|
2958
|
+
// "typeAnnotation": {
|
|
2959
|
+
// "concept": "TypeAnnotation",
|
|
2960
|
+
// "typeKind": "primitive",
|
|
2961
|
+
// "typeNamespace": "nasl.core",
|
|
2962
|
+
// "typeName": "String",
|
|
2963
|
+
// "typeArguments": null,
|
|
2964
|
+
// "returnType": null,
|
|
2965
|
+
// "properties": null,
|
|
2966
|
+
// "name": ""
|
|
2967
|
+
// },
|
|
2968
|
+
// "defaultValue": null,
|
|
2969
|
+
// "cascader": false
|
|
2970
|
+
// }
|
|
2971
|
+
// ],
|
|
2972
|
+
// "returns": [
|
|
2973
|
+
// {
|
|
2974
|
+
// "concept": "Return",
|
|
2975
|
+
// "name": "result",
|
|
2976
|
+
// "typeAnnotation": {
|
|
2977
|
+
// "concept": "TypeAnnotation",
|
|
2978
|
+
// "typeKind": "primitive",
|
|
2979
|
+
// "typeNamespace": "nasl.core",
|
|
2980
|
+
// "typeName": "String",
|
|
2981
|
+
// "typeArguments": null,
|
|
2982
|
+
// "returnType": null,
|
|
2983
|
+
// "properties": null,
|
|
2984
|
+
// "name": ""
|
|
2985
|
+
// },
|
|
2986
|
+
// "defaultValue": null
|
|
2987
|
+
// }
|
|
2988
|
+
// ],
|
|
2989
|
+
// "variables": [],
|
|
2990
|
+
// "body": [
|
|
2991
|
+
// {
|
|
2992
|
+
// "concept": "Start",
|
|
2993
|
+
// "label": "开始",
|
|
2994
|
+
// "description": null,
|
|
2995
|
+
// "folded": false,
|
|
2996
|
+
// "offsetX": null,
|
|
2997
|
+
// "offsetY": null,
|
|
2998
|
+
// "name": ""
|
|
2999
|
+
// },
|
|
3000
|
+
// {
|
|
3001
|
+
// "concept": "End",
|
|
3002
|
+
// "label": "结束",
|
|
3003
|
+
// "description": null,
|
|
3004
|
+
// "folded": false,
|
|
3005
|
+
// "offsetX": null,
|
|
3006
|
+
// "offsetY": null,
|
|
3007
|
+
// "name": ""
|
|
3008
|
+
// }
|
|
3009
|
+
// ],
|
|
3010
|
+
// "playground": []
|
|
3011
|
+
// },
|
|
3012
|
+
// {
|
|
3013
|
+
// "concept": "Logic",
|
|
3014
|
+
// "name": "encryptDataWithSalt",
|
|
3015
|
+
// "description": "加盐加密算法",
|
|
3016
|
+
// "typeParams": null,
|
|
3017
|
+
// "params": [
|
|
3018
|
+
// {
|
|
3019
|
+
// "concept": "Param",
|
|
3020
|
+
// "name": "data",
|
|
3021
|
+
// "description": "待加密数据",
|
|
3022
|
+
// "typeAnnotation": {
|
|
3023
|
+
// "concept": "TypeAnnotation",
|
|
3024
|
+
// "typeKind": "primitive",
|
|
3025
|
+
// "typeNamespace": "nasl.core",
|
|
3026
|
+
// "typeName": "String",
|
|
3027
|
+
// "typeArguments": null,
|
|
3028
|
+
// "returnType": null,
|
|
3029
|
+
// "properties": null,
|
|
3030
|
+
// "name": ""
|
|
3031
|
+
// },
|
|
3032
|
+
// "defaultValue": null,
|
|
3033
|
+
// "cascader": false
|
|
3034
|
+
// },
|
|
3035
|
+
// {
|
|
3036
|
+
// "concept": "Param",
|
|
3037
|
+
// "name": "secretKey",
|
|
3038
|
+
// "description": "密钥",
|
|
3039
|
+
// "typeAnnotation": {
|
|
3040
|
+
// "concept": "TypeAnnotation",
|
|
3041
|
+
// "typeKind": "primitive",
|
|
3042
|
+
// "typeNamespace": "nasl.core",
|
|
3043
|
+
// "typeName": "String",
|
|
3044
|
+
// "typeArguments": null,
|
|
3045
|
+
// "returnType": null,
|
|
3046
|
+
// "properties": null,
|
|
3047
|
+
// "name": ""
|
|
3048
|
+
// },
|
|
3049
|
+
// "defaultValue": null,
|
|
3050
|
+
// "cascader": false
|
|
3051
|
+
// }
|
|
3052
|
+
// ],
|
|
3053
|
+
// "returns": [
|
|
3054
|
+
// {
|
|
3055
|
+
// "concept": "Return",
|
|
3056
|
+
// "name": "result",
|
|
3057
|
+
// "typeAnnotation": {
|
|
3058
|
+
// "concept": "TypeAnnotation",
|
|
3059
|
+
// "typeKind": "primitive",
|
|
3060
|
+
// "typeNamespace": "nasl.core",
|
|
3061
|
+
// "typeName": "String",
|
|
3062
|
+
// "typeArguments": null,
|
|
3063
|
+
// "returnType": null,
|
|
3064
|
+
// "properties": null,
|
|
3065
|
+
// "name": ""
|
|
3066
|
+
// },
|
|
3067
|
+
// "defaultValue": null
|
|
3068
|
+
// }
|
|
3069
|
+
// ],
|
|
3070
|
+
// "variables": [],
|
|
3071
|
+
// "body": [
|
|
3072
|
+
// {
|
|
3073
|
+
// "concept": "Start",
|
|
3074
|
+
// "label": "开始",
|
|
3075
|
+
// "description": null,
|
|
3076
|
+
// "folded": false,
|
|
3077
|
+
// "offsetX": null,
|
|
3078
|
+
// "offsetY": null,
|
|
3079
|
+
// "name": ""
|
|
3080
|
+
// },
|
|
3081
|
+
// {
|
|
3082
|
+
// "concept": "End",
|
|
3083
|
+
// "label": "结束",
|
|
3084
|
+
// "description": null,
|
|
3085
|
+
// "folded": false,
|
|
3086
|
+
// "offsetX": null,
|
|
3087
|
+
// "offsetY": null,
|
|
3088
|
+
// "name": ""
|
|
3089
|
+
// }
|
|
3090
|
+
// ],
|
|
3091
|
+
// "playground": []
|
|
3092
|
+
// },
|
|
3093
|
+
// {
|
|
3094
|
+
// "concept": "Logic",
|
|
3095
|
+
// "name": "encryptSha256",
|
|
3096
|
+
// "description": "RSA-SHA256加密",
|
|
3097
|
+
// "typeParams": null,
|
|
3098
|
+
// "params": [
|
|
3099
|
+
// {
|
|
3100
|
+
// "concept": "Param",
|
|
3101
|
+
// "name": "rsa",
|
|
3102
|
+
// "description": "加密私钥",
|
|
3103
|
+
// "typeAnnotation": {
|
|
3104
|
+
// "concept": "TypeAnnotation",
|
|
3105
|
+
// "typeKind": "primitive",
|
|
3106
|
+
// "typeNamespace": "nasl.core",
|
|
3107
|
+
// "typeName": "String",
|
|
3108
|
+
// "typeArguments": null,
|
|
3109
|
+
// "returnType": null,
|
|
3110
|
+
// "properties": null,
|
|
3111
|
+
// "name": ""
|
|
3112
|
+
// },
|
|
3113
|
+
// "defaultValue": null,
|
|
3114
|
+
// "cascader": false
|
|
3115
|
+
// }
|
|
3116
|
+
// ],
|
|
3117
|
+
// "returns": [
|
|
3118
|
+
// {
|
|
3119
|
+
// "concept": "Return",
|
|
3120
|
+
// "name": "result",
|
|
3121
|
+
// "typeAnnotation": {
|
|
3122
|
+
// "concept": "TypeAnnotation",
|
|
3123
|
+
// "typeKind": "primitive",
|
|
3124
|
+
// "typeNamespace": "nasl.core",
|
|
3125
|
+
// "typeName": "String",
|
|
3126
|
+
// "typeArguments": null,
|
|
3127
|
+
// "returnType": null,
|
|
3128
|
+
// "properties": null,
|
|
3129
|
+
// "name": ""
|
|
3130
|
+
// },
|
|
3131
|
+
// "defaultValue": null
|
|
3132
|
+
// }
|
|
3133
|
+
// ],
|
|
3134
|
+
// "variables": [],
|
|
3135
|
+
// "body": [
|
|
3136
|
+
// {
|
|
3137
|
+
// "concept": "Start",
|
|
3138
|
+
// "label": "开始",
|
|
3139
|
+
// "description": null,
|
|
3140
|
+
// "folded": false,
|
|
3141
|
+
// "offsetX": null,
|
|
3142
|
+
// "offsetY": null,
|
|
3143
|
+
// "name": ""
|
|
3144
|
+
// },
|
|
3145
|
+
// {
|
|
3146
|
+
// "concept": "End",
|
|
3147
|
+
// "label": "结束",
|
|
3148
|
+
// "description": null,
|
|
3149
|
+
// "folded": false,
|
|
3150
|
+
// "offsetX": null,
|
|
3151
|
+
// "offsetY": null,
|
|
3152
|
+
// "name": ""
|
|
3153
|
+
// }
|
|
3154
|
+
// ],
|
|
3155
|
+
// "playground": []
|
|
3156
|
+
// }
|
|
3157
|
+
// ],
|
|
3158
|
+
// "viewComponents": []
|
|
3159
|
+
// }
|
|
3160
|
+
// ],
|
|
3161
|
+
// "triggerLaunchers": [],
|
|
3162
|
+
// "connections": [],
|
|
3163
|
+
// "metadataTypes": [],
|
|
3164
|
+
// "dependencies": [],
|
|
3165
|
+
// "changedTime": 1711359928093
|
|
3166
|
+
// })
|
|
3167
|
+
// this.update({
|
|
3168
|
+
// dependencies: [a, b, c, module],
|
|
3169
|
+
// });
|
|
3170
|
+
// }
|
|
3171
|
+
toNaturalTS(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
3172
|
+
let code = '';
|
|
3173
|
+
this.dependencies?.forEach((dep) => {
|
|
3174
|
+
code += dep.toNaturalTS(state) + '\n\n';
|
|
3175
|
+
});
|
|
3176
|
+
this.interfaceDependencies?.forEach((dep) => {
|
|
3177
|
+
code += dep.toNaturalTS(state) + '\n\n';
|
|
3178
|
+
});
|
|
3179
|
+
this.dataSources?.forEach((dataSource) => {
|
|
3180
|
+
code += dataSource.toNaturalTS(state) + '\n';
|
|
3181
|
+
});
|
|
3182
|
+
this.structures?.forEach((structure) => {
|
|
3183
|
+
code += structure.toNaturalTS(state) + '\n';
|
|
3184
|
+
});
|
|
3185
|
+
this.enums?.forEach((enumeration) => {
|
|
3186
|
+
code += enumeration.toNaturalTS(state) + '\n';
|
|
3187
|
+
});
|
|
3188
|
+
this.metadataTypes?.forEach((metadataType) => {
|
|
3189
|
+
code += metadataType.toNaturalTS(state) + '\n';
|
|
3190
|
+
});
|
|
3191
|
+
if (this.metadataTypes.length)
|
|
3192
|
+
code += '\n';
|
|
3193
|
+
this.logics?.forEach((logic) => {
|
|
3194
|
+
code += logic.toNaturalTS(state) + '\n\n';
|
|
3195
|
+
});
|
|
3196
|
+
this.overriddenLogics?.forEach((logic) => {
|
|
3197
|
+
code += logic.toNaturalTS(state) + '\n\n';
|
|
3198
|
+
});
|
|
3199
|
+
this.interfaces?.forEach((inter) => {
|
|
3200
|
+
code += inter.toNaturalTS(state) + '\n';
|
|
3201
|
+
});
|
|
3202
|
+
this.roles?.forEach((role) => {
|
|
3203
|
+
code += role.toNaturalTS(state) + '\n';
|
|
3204
|
+
});
|
|
3205
|
+
this.frontendTypes?.forEach((frontendType, index) => {
|
|
3206
|
+
code += frontendType.toNaturalTS(state);
|
|
3207
|
+
if (index !== this.frontendTypes.length - 1)
|
|
3208
|
+
code += '\n';
|
|
3209
|
+
});
|
|
3210
|
+
return code;
|
|
3211
|
+
}
|
|
3212
|
+
toTextualNASL(state = (0, nasl_translator_1.createCompilerState)()) {
|
|
3213
|
+
let code = '';
|
|
3214
|
+
this.dependencies?.forEach((dep) => {
|
|
3215
|
+
code += dep.toTextualNASL(state) + '\n';
|
|
3216
|
+
});
|
|
3217
|
+
this.interfaceDependencies?.forEach((dep) => {
|
|
3218
|
+
code += dep.toTextualNASL(state) + '\n';
|
|
3219
|
+
});
|
|
3220
|
+
this.dataSources?.forEach((dataSource) => {
|
|
3221
|
+
code += dataSource.toTextualNASL(state) + '\n';
|
|
3222
|
+
});
|
|
3223
|
+
this.structures?.forEach((structure) => {
|
|
3224
|
+
code += structure.toTextualNASL(state) + '\n';
|
|
3225
|
+
});
|
|
3226
|
+
this.enums?.forEach((enumeration) => {
|
|
3227
|
+
code += enumeration.toTextualNASL(state) + '\n';
|
|
3228
|
+
});
|
|
3229
|
+
this.metadataTypes?.forEach((metadataType) => {
|
|
3230
|
+
code += metadataType.toTextualNASL(state) + '\n';
|
|
3231
|
+
});
|
|
3232
|
+
this.logics?.forEach((logic) => {
|
|
3233
|
+
code += logic.toTextualNASL(state) + '\n\n';
|
|
3234
|
+
});
|
|
3235
|
+
this.overriddenLogics?.forEach((logic) => {
|
|
3236
|
+
code += logic.toTextualNASL(state) + '\n\n';
|
|
3237
|
+
});
|
|
3238
|
+
this.interfaces?.forEach((inter) => {
|
|
3239
|
+
code += inter.toTextualNASL(state) + '\n';
|
|
3240
|
+
});
|
|
3241
|
+
this.roles?.forEach((role) => {
|
|
3242
|
+
code += role.toTextualNASL(state) + '\n';
|
|
3243
|
+
});
|
|
3244
|
+
this.frontendTypes?.forEach((frontendType, index) => {
|
|
3245
|
+
code += frontendType.toTextualNASL(state);
|
|
3246
|
+
if (index !== this.frontendTypes.length - 1)
|
|
3247
|
+
code += '\n';
|
|
3248
|
+
});
|
|
3249
|
+
return code;
|
|
3250
|
+
}
|
|
3251
|
+
};
|
|
3252
|
+
exports.App = App;
|
|
3253
|
+
__decorate([
|
|
3254
|
+
(0, decorators_1.property)()
|
|
3255
|
+
// @ts-ignore
|
|
3256
|
+
], App.prototype, "concept", void 0);
|
|
3257
|
+
__decorate([
|
|
3258
|
+
(0, decorators_1.property)()
|
|
3259
|
+
], App.prototype, "id", void 0);
|
|
3260
|
+
__decorate([
|
|
3261
|
+
(0, decorators_1.property)()
|
|
3262
|
+
], App.prototype, "ideVersion", void 0);
|
|
3263
|
+
__decorate([
|
|
3264
|
+
(0, decorators_1.property)()
|
|
3265
|
+
], App.prototype, "name", void 0);
|
|
3266
|
+
__decorate([
|
|
3267
|
+
(0, decorators_1.property)()
|
|
3268
|
+
], App.prototype, "title", void 0);
|
|
3269
|
+
__decorate([
|
|
3270
|
+
(0, decorators_1.property)()
|
|
3271
|
+
], App.prototype, "icon", void 0);
|
|
3272
|
+
__decorate([
|
|
3273
|
+
(0, decorators_1.property)()
|
|
3274
|
+
], App.prototype, "desc", void 0);
|
|
3275
|
+
__decorate([
|
|
3276
|
+
(0, decorators_1.property)()
|
|
3277
|
+
], App.prototype, "dnsAddr", void 0);
|
|
3278
|
+
__decorate([
|
|
3279
|
+
(0, decorators_1.property)()
|
|
3280
|
+
], App.prototype, "hasUserCenter", void 0);
|
|
3281
|
+
__decorate([
|
|
3282
|
+
(0, decorators_1.property)()
|
|
3283
|
+
], App.prototype, "hasAuth", void 0);
|
|
3284
|
+
__decorate([
|
|
3285
|
+
(0, decorators_1.property)({
|
|
3286
|
+
objectRef: 'DataSource',
|
|
3287
|
+
isArray: true,
|
|
3288
|
+
defaultValue: [],
|
|
3289
|
+
})
|
|
3290
|
+
], App.prototype, "dataSources", void 0);
|
|
3291
|
+
__decorate([
|
|
3292
|
+
(0, decorators_1.property)({
|
|
3293
|
+
objectRef: 'Structure',
|
|
3294
|
+
isArray: true,
|
|
3295
|
+
defaultValue: [],
|
|
3296
|
+
})
|
|
3297
|
+
], App.prototype, "structures", void 0);
|
|
3298
|
+
__decorate([
|
|
3299
|
+
(0, decorators_1.property)({
|
|
3300
|
+
objectRef: 'Enum',
|
|
3301
|
+
isArray: true,
|
|
3302
|
+
defaultValue: [],
|
|
3303
|
+
})
|
|
3304
|
+
], App.prototype, "enums", void 0);
|
|
3305
|
+
__decorate([
|
|
3306
|
+
(0, decorators_1.property)({
|
|
3307
|
+
objectRef: 'Logic',
|
|
3308
|
+
isArray: true,
|
|
3309
|
+
defaultValue: [],
|
|
3310
|
+
})
|
|
3311
|
+
], App.prototype, "logics", void 0);
|
|
3312
|
+
__decorate([
|
|
3313
|
+
(0, decorators_1.property)({
|
|
3314
|
+
objectRef: 'OverriddenLogic',
|
|
3315
|
+
isArray: true,
|
|
3316
|
+
defaultValue: [],
|
|
3317
|
+
})
|
|
3318
|
+
], App.prototype, "overriddenLogics", void 0);
|
|
3319
|
+
__decorate([
|
|
3320
|
+
(0, decorators_1.property)({
|
|
3321
|
+
objectRef: 'AbstractInterface',
|
|
3322
|
+
isArray: true,
|
|
3323
|
+
defaultValue: [],
|
|
3324
|
+
})
|
|
3325
|
+
], App.prototype, "interfaces", void 0);
|
|
3326
|
+
__decorate([
|
|
3327
|
+
(0, decorators_1.property)({
|
|
3328
|
+
objectRef: 'FrontendType',
|
|
3329
|
+
isArray: true,
|
|
3330
|
+
defaultValue: [],
|
|
3331
|
+
})
|
|
3332
|
+
], App.prototype, "frontendTypes", void 0);
|
|
3333
|
+
__decorate([
|
|
3334
|
+
(0, decorators_1.property)({
|
|
3335
|
+
objectRef: 'Backend',
|
|
3336
|
+
})
|
|
3337
|
+
], App.prototype, "backend", void 0);
|
|
3338
|
+
__decorate([
|
|
3339
|
+
(0, decorators_1.property)({
|
|
3340
|
+
objectRef: 'Process',
|
|
3341
|
+
isArray: true,
|
|
3342
|
+
defaultValue: [],
|
|
3343
|
+
})
|
|
3344
|
+
], App.prototype, "processes", void 0);
|
|
3345
|
+
__decorate([
|
|
3346
|
+
(0, decorators_1.property)({
|
|
3347
|
+
objectRef: 'ProcessV2',
|
|
3348
|
+
isArray: true,
|
|
3349
|
+
defaultValue: [],
|
|
3350
|
+
})
|
|
3351
|
+
], App.prototype, "processV2s", void 0);
|
|
3352
|
+
__decorate([
|
|
3353
|
+
(0, decorators_1.property)({
|
|
3354
|
+
objectRef: 'Role',
|
|
3355
|
+
isArray: true,
|
|
3356
|
+
defaultValue: [],
|
|
3357
|
+
})
|
|
3358
|
+
], App.prototype, "roles", void 0);
|
|
3359
|
+
__decorate([
|
|
3360
|
+
(0, decorators_1.property)({
|
|
3361
|
+
objectRef: 'Configuration',
|
|
3362
|
+
})
|
|
3363
|
+
], App.prototype, "configuration", void 0);
|
|
3364
|
+
__decorate([
|
|
3365
|
+
(0, decorators_1.property)({
|
|
3366
|
+
objectRef: 'Connector',
|
|
3367
|
+
isArray: true,
|
|
3368
|
+
defaultValue: [],
|
|
3369
|
+
})
|
|
3370
|
+
], App.prototype, "connectorDependencies", void 0);
|
|
3371
|
+
__decorate([
|
|
3372
|
+
(0, decorators_1.property)({
|
|
3373
|
+
objectRef: 'Module',
|
|
3374
|
+
isArray: true,
|
|
3375
|
+
defaultValue: [],
|
|
3376
|
+
})
|
|
3377
|
+
], App.prototype, "interfaceDependencies", void 0);
|
|
3378
|
+
__decorate([
|
|
3379
|
+
(0, decorators_1.property)({
|
|
3380
|
+
objectRef: 'Module',
|
|
3381
|
+
isArray: true,
|
|
3382
|
+
defaultValue: [],
|
|
3383
|
+
})
|
|
3384
|
+
], App.prototype, "dependencies", void 0);
|
|
3385
|
+
__decorate([
|
|
3386
|
+
(0, decorators_1.property)({
|
|
3387
|
+
objectRef: 'Integration',
|
|
3388
|
+
})
|
|
3389
|
+
], App.prototype, "integration", void 0);
|
|
3390
|
+
__decorate([
|
|
3391
|
+
(0, decorators_1.property)({
|
|
3392
|
+
objectRef: 'AuthLogic',
|
|
3393
|
+
isArray: true,
|
|
3394
|
+
defaultValue: [],
|
|
3395
|
+
})
|
|
3396
|
+
], App.prototype, "authLogics", void 0);
|
|
3397
|
+
__decorate([
|
|
3398
|
+
(0, decorators_1.property)({
|
|
3399
|
+
objectRef: 'AuthLogicForCallInterface',
|
|
3400
|
+
isArray: true,
|
|
3401
|
+
defaultValue: [],
|
|
3402
|
+
})
|
|
3403
|
+
], App.prototype, "authLogicsForCallInterface", void 0);
|
|
3404
|
+
__decorate([
|
|
3405
|
+
(0, decorators_1.property)({
|
|
3406
|
+
objectRef: 'Connection',
|
|
3407
|
+
isArray: true,
|
|
3408
|
+
defaultValue: [],
|
|
3409
|
+
})
|
|
3410
|
+
], App.prototype, "connections", void 0);
|
|
3411
|
+
__decorate([
|
|
3412
|
+
(0, decorators_1.property)({
|
|
3413
|
+
objectRef: 'TriggerLauncher',
|
|
3414
|
+
isArray: true,
|
|
3415
|
+
defaultValue: [],
|
|
3416
|
+
})
|
|
3417
|
+
], App.prototype, "triggerLaunchers", void 0);
|
|
3418
|
+
__decorate([
|
|
3419
|
+
(0, decorators_1.property)({
|
|
3420
|
+
objectRef: 'MetadataType',
|
|
3421
|
+
isArray: true,
|
|
3422
|
+
defaultValue: [],
|
|
3423
|
+
})
|
|
3424
|
+
], App.prototype, "metadataTypes", void 0);
|
|
3425
|
+
__decorate([
|
|
3426
|
+
(0, decorators_1.property)()
|
|
3427
|
+
], App.prototype, "preferenceMap", void 0);
|
|
3428
|
+
__decorate([
|
|
3429
|
+
(0, decorators_1.excludedInJSON)()
|
|
3430
|
+
], App.prototype, "officialType", void 0);
|
|
3431
|
+
__decorate([
|
|
3432
|
+
(0, decorators_1.excludedInJSON)()
|
|
3433
|
+
], App.prototype, "projectId", void 0);
|
|
3434
|
+
__decorate([
|
|
3435
|
+
(0, decorators_1.excludedInJSON)()
|
|
3436
|
+
], App.prototype, "tenantId", void 0);
|
|
3437
|
+
__decorate([
|
|
3438
|
+
(0, decorators_1.excludedInJSON)()
|
|
3439
|
+
], App.prototype, "userGroupId", void 0);
|
|
3440
|
+
__decorate([
|
|
3441
|
+
(0, decorators_1.excludedInJSON)()
|
|
3442
|
+
], App.prototype, "envs", void 0);
|
|
3443
|
+
__decorate([
|
|
3444
|
+
(0, decorators_1.excludedInJSON)()
|
|
3445
|
+
], App.prototype, "envList", void 0);
|
|
3446
|
+
__decorate([
|
|
3447
|
+
(0, decorators_1.excludedInJSON)()
|
|
3448
|
+
], App.prototype, "deploying", void 0);
|
|
3449
|
+
__decorate([
|
|
3450
|
+
(0, decorators_1.excludedInJSON)()
|
|
3451
|
+
], App.prototype, "deploymentId", void 0);
|
|
3452
|
+
__decorate([
|
|
3453
|
+
(0, decorators_1.excludedInJSON)()
|
|
3454
|
+
], App.prototype, "templateId", void 0);
|
|
3455
|
+
__decorate([
|
|
3456
|
+
(0, decorators_1.excludedInJSON)()
|
|
3457
|
+
], App.prototype, "naslServer", void 0);
|
|
3458
|
+
__decorate([
|
|
3459
|
+
(0, decorators_1.excludedInJSON)()
|
|
3460
|
+
], App.prototype, "newProcessVersion", void 0);
|
|
3461
|
+
__decorate([
|
|
3462
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
3463
|
+
], App.prototype, "toNaturalTS", null);
|
|
3464
|
+
__decorate([
|
|
3465
|
+
(0, nasl_translator_1.withSourceMap)()
|
|
3466
|
+
], App.prototype, "toTextualNASL", null);
|
|
3467
|
+
exports.App = App = App_1 = __decorate([
|
|
3468
|
+
(0, decorators_1.concept)('应用')
|
|
3469
|
+
], App);
|
|
3470
|
+
exports.default = App;
|
|
3471
|
+
//================================================================================
|
|
3472
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
3473
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
3474
|
+
//================================================================================
|
|
3475
|
+
//# sourceMappingURL=App__.js.map
|