@lcap/nasl 0.3.15-beta → 1.0.0-alpha
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/DEVELOPMENT.md +39 -55
- package/README.md +78 -5
- package/bak/basicTypes.ts +76 -0
- package/bak/dataTypeUtils.ts +429 -0
- package/bak/dataTypes.ts +51 -0
- package/bak/entityUtils.ts +660 -0
- package/bak/genericTypes.ts +131 -0
- package/bak/systemTypes.ts +1590 -0
- package/bak/tools.js +174 -0
- package/bak/translator.js +129 -0
- package/bak/translator_backup.js +601 -0
- package/bin/naslc +3 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +3 -0
- package/docs/assets/highlight.css +78 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1414 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/App.html +509 -0
- package/docs/classes/Argument.html +191 -0
- package/docs/classes/Assignment.html +195 -0
- package/docs/classes/Attribute.html +169 -0
- package/docs/classes/BaseNode.html +128 -0
- package/docs/classes/BinaryExpression.html +199 -0
- package/docs/classes/BindAttribute.html +209 -0
- package/docs/classes/BindDirective.html +161 -0
- package/docs/classes/BindEvent.html +173 -0
- package/docs/classes/BooleanLiteral.html +177 -0
- package/docs/classes/CallFunction.html +201 -0
- package/docs/classes/CallInterface.html +201 -0
- package/docs/classes/CallLogic.html +207 -0
- package/docs/classes/CallQueryComponent.html +301 -0
- package/docs/classes/Comment.html +175 -0
- package/docs/classes/CompletionProperty.html +165 -0
- package/docs/classes/Constant.html +161 -0
- package/docs/classes/DataElement.html +143 -0
- package/docs/classes/Destination.html +205 -0
- package/docs/classes/End.html +173 -0
- package/docs/classes/Entity.html +205 -0
- package/docs/classes/EntityIndex.html +153 -0
- package/docs/classes/EntityProperty.html +211 -0
- package/docs/classes/Enum.html +171 -0
- package/docs/classes/EnumItem.html +143 -0
- package/docs/classes/Event.html +173 -0
- package/docs/classes/ForEachStatement.html +253 -0
- package/docs/classes/Function.html +259 -0
- package/docs/classes/Identifier.html +181 -0
- package/docs/classes/IfStatement.html +229 -0
- package/docs/classes/Interface.html +211 -0
- package/docs/classes/InterfaceParam.html +171 -0
- package/docs/classes/JSBlock.html +179 -0
- package/docs/classes/Logic.html +327 -0
- package/docs/classes/LogicItem.html +175 -0
- package/docs/classes/MemberExpression.html +196 -0
- package/docs/classes/Module.html +386 -0
- package/docs/classes/Namespace.html +497 -0
- package/docs/classes/NullLiteral.html +175 -0
- package/docs/classes/NumericLiteral.html +187 -0
- package/docs/classes/Param.html +173 -0
- package/docs/classes/Point.html +131 -0
- package/docs/classes/Process.html +261 -0
- package/docs/classes/ProcessComponent.html +199 -0
- package/docs/classes/ProcessElement.html +333 -0
- package/docs/classes/ProcessOutcome.html +179 -0
- package/docs/classes/QueryAggregateExpression.html +185 -0
- package/docs/classes/QueryFieldExpression.html +185 -0
- package/docs/classes/QueryFromExpression.html +205 -0
- package/docs/classes/QueryGroupByExpression.html +187 -0
- package/docs/classes/QueryJoinExpression.html +237 -0
- package/docs/classes/QueryLimitExpression.html +199 -0
- package/docs/classes/QueryOrderByExpression.html +197 -0
- package/docs/classes/QuerySelectExpression.html +213 -0
- package/docs/classes/Rect.html +135 -0
- package/docs/classes/Return.html +169 -0
- package/docs/classes/Role.html +139 -0
- package/docs/classes/Slot.html +143 -0
- package/docs/classes/SqlQueryComponent.html +191 -0
- package/docs/classes/Start.html +173 -0
- package/docs/classes/StringLiteral.html +177 -0
- package/docs/classes/Structure.html +203 -0
- package/docs/classes/StructureProperty.html +171 -0
- package/docs/classes/SwitchCase.html +207 -0
- package/docs/classes/SwitchStatement.html +193 -0
- package/docs/classes/Theme.html +133 -0
- package/docs/classes/Transactional.html +151 -0
- package/docs/classes/TypeAnnotation.html +163 -0
- package/docs/classes/TypeParam.html +129 -0
- package/docs/classes/UnaryExpression.html +187 -0
- package/docs/classes/Unparsed.html +177 -0
- package/docs/classes/UseComponent.html +131 -0
- package/docs/classes/ValidationRule.html +201 -0
- package/docs/classes/Variable.html +167 -0
- package/docs/classes/View.html +366 -0
- package/docs/classes/ViewComponent.html +289 -0
- package/docs/classes/ViewElement.html +296 -0
- package/docs/classes/WhileStatement.html +207 -0
- package/docs/index.html +69 -313
- package/docs/modules.html +31 -377
- package/docs-theme/LICENSE +21 -0
- package/docs-theme/README.md +9 -0
- package/docs-theme/package.json +81 -0
- package/docs-theme/src/assets/common.js +2 -0
- package/docs-theme/src/assets/common.js.LICENSE.txt +61 -0
- package/docs-theme/src/assets/css/main.css +1 -0
- package/docs-theme/src/assets/images/icons.png +0 -0
- package/docs-theme/src/assets/images/icons@2x.png +0 -0
- package/docs-theme/src/config.json +25 -0
- package/docs-theme/src/index.js +45 -0
- package/docs-theme/src/layouts/default.js +88 -0
- package/docs-theme/src/partials/analytics.js +22 -0
- package/docs-theme/src/partials/breadcrumb.js +9 -0
- package/docs-theme/src/partials/footer.js +96 -0
- package/docs-theme/src/partials/header.js +25 -0
- package/docs-theme/src/partials/infrafoot.js +113 -0
- package/docs-theme/src/partials/infranav.js +187 -0
- package/docs-theme/src/partials/navigation.js +39 -0
- package/docs-theme/src/templates/index.js +7 -0
- package/docs-theme/src/templates/reflection.js +41 -0
- package/docs-theme/src/utils/lib.js +109 -0
- package/out/bak/translator.d.ts +1 -0
- package/out/bak/translator.js +117 -0
- package/out/bak/translator.js.map +1 -0
- package/out/baseService/index.d.ts +2 -0
- package/out/baseService/index.js +12 -0
- package/out/baseService/index.js.map +1 -0
- package/out/baseTypes/App__.d.ts +169 -0
- package/out/baseTypes/App__.js +344 -0
- package/out/baseTypes/App__.js.map +1 -0
- package/out/baseTypes/AssignmentExpression__.d.ts +42 -0
- package/out/baseTypes/AssignmentExpression__.js +112 -0
- package/out/baseTypes/AssignmentExpression__.js.map +1 -0
- package/out/baseTypes/Attr__.d.ts +96 -0
- package/out/baseTypes/Attr__.js +191 -0
- package/out/baseTypes/Attr__.js.map +1 -0
- package/out/baseTypes/BinaryExpression__.d.ts +40 -0
- package/out/baseTypes/BinaryExpression__.js +92 -0
- package/out/baseTypes/BinaryExpression__.js.map +1 -0
- package/out/baseTypes/BooleanLiteral__.d.ts +25 -0
- package/out/baseTypes/BooleanLiteral__.js +64 -0
- package/out/baseTypes/BooleanLiteral__.js.map +1 -0
- package/out/baseTypes/Comment__.d.ts +27 -0
- package/out/baseTypes/Comment__.js +60 -0
- package/out/baseTypes/Comment__.js.map +1 -0
- package/out/baseTypes/Directive__.d.ts +100 -0
- package/out/baseTypes/Directive__.js +198 -0
- package/out/baseTypes/Directive__.js.map +1 -0
- package/out/baseTypes/Element__.d.ts +303 -0
- package/out/baseTypes/Element__.js +555 -0
- package/out/baseTypes/Element__.js.map +1 -0
- package/out/baseTypes/End__.d.ts +24 -0
- package/out/baseTypes/End__.js +61 -0
- package/out/baseTypes/End__.js.map +1 -0
- package/out/baseTypes/EntityProperty__.d.ts +116 -0
- package/out/baseTypes/EntityProperty__.js +230 -0
- package/out/baseTypes/EntityProperty__.js.map +1 -0
- package/out/baseTypes/Entity__.d.ts +106 -0
- package/out/baseTypes/Entity__.js +222 -0
- package/out/baseTypes/Entity__.js.map +1 -0
- package/out/baseTypes/EnumItem__.d.ts +56 -0
- package/out/baseTypes/EnumItem__.js +125 -0
- package/out/baseTypes/EnumItem__.js.map +1 -0
- package/out/baseTypes/Enum__.d.ts +98 -0
- package/out/baseTypes/Enum__.js +211 -0
- package/out/baseTypes/Enum__.js.map +1 -0
- package/out/baseTypes/Event__.d.ts +93 -0
- package/out/baseTypes/Event__.js +181 -0
- package/out/baseTypes/Event__.js.map +1 -0
- package/out/baseTypes/ForEachStatement__.d.ts +89 -0
- package/out/baseTypes/ForEachStatement__.js +169 -0
- package/out/baseTypes/ForEachStatement__.js.map +1 -0
- package/out/baseTypes/Identifier__.d.ts +24 -0
- package/out/baseTypes/Identifier__.js +60 -0
- package/out/baseTypes/Identifier__.js.map +1 -0
- package/out/baseTypes/IfStatement__.d.ts +60 -0
- package/out/baseTypes/IfStatement__.js +109 -0
- package/out/baseTypes/IfStatement__.js.map +1 -0
- package/out/baseTypes/Lifecycle__.d.ts +89 -0
- package/out/baseTypes/Lifecycle__.js +175 -0
- package/out/baseTypes/Lifecycle__.js.map +1 -0
- package/out/baseTypes/LogicItem__.d.ts +103 -0
- package/out/baseTypes/LogicItem__.js +211 -0
- package/out/baseTypes/LogicItem__.js.map +1 -0
- package/out/baseTypes/Logic__.d.ts +280 -0
- package/out/baseTypes/Logic__.js +598 -0
- package/out/baseTypes/Logic__.js.map +1 -0
- package/out/baseTypes/Module__.d.ts +278 -0
- package/out/baseTypes/Module__.js +511 -0
- package/out/baseTypes/Module__.js.map +1 -0
- package/out/baseTypes/NullLiteral__.d.ts +20 -0
- package/out/baseTypes/NullLiteral__.js +53 -0
- package/out/baseTypes/NullLiteral__.js.map +1 -0
- package/out/baseTypes/Page__.d.ts +85 -0
- package/out/baseTypes/Page__.js +166 -0
- package/out/baseTypes/Page__.js.map +1 -0
- package/out/baseTypes/Param__.d.ts +88 -0
- package/out/baseTypes/Param__.js +194 -0
- package/out/baseTypes/Param__.js.map +1 -0
- package/out/baseTypes/ProcessComponent__.d.ts +67 -0
- package/out/baseTypes/ProcessComponent__.js +142 -0
- package/out/baseTypes/ProcessComponent__.js.map +1 -0
- package/out/baseTypes/Process__.d.ts +134 -0
- package/out/baseTypes/Process__.js +255 -0
- package/out/baseTypes/Process__.js.map +1 -0
- package/out/baseTypes/Return__.d.ts +88 -0
- package/out/baseTypes/Return__.js +194 -0
- package/out/baseTypes/Return__.js.map +1 -0
- package/out/baseTypes/Start__.d.ts +24 -0
- package/out/baseTypes/Start__.js +60 -0
- package/out/baseTypes/Start__.js.map +1 -0
- package/out/baseTypes/StringLiteral__.d.ts +25 -0
- package/out/baseTypes/StringLiteral__.js +73 -0
- package/out/baseTypes/StringLiteral__.js.map +1 -0
- package/out/baseTypes/StructureProperty__.d.ts +107 -0
- package/out/baseTypes/StructureProperty__.js +206 -0
- package/out/baseTypes/StructureProperty__.js.map +1 -0
- package/out/baseTypes/Structure__.d.ts +129 -0
- package/out/baseTypes/Structure__.js +296 -0
- package/out/baseTypes/Structure__.js.map +1 -0
- package/out/baseTypes/SwitchCase__.d.ts +56 -0
- package/out/baseTypes/SwitchCase__.js +105 -0
- package/out/baseTypes/SwitchCase__.js.map +1 -0
- package/out/baseTypes/SwitchStatement__.d.ts +49 -0
- package/out/baseTypes/SwitchStatement__.js +90 -0
- package/out/baseTypes/SwitchStatement__.js.map +1 -0
- package/out/baseTypes/TypeAnnotation__.d.ts +62 -0
- package/out/baseTypes/TypeAnnotation__.js +156 -0
- package/out/baseTypes/TypeAnnotation__.js.map +1 -0
- package/out/baseTypes/UnaryExpression__.d.ts +32 -0
- package/out/baseTypes/UnaryExpression__.js +76 -0
- package/out/baseTypes/UnaryExpression__.js.map +1 -0
- package/out/baseTypes/Variable__.d.ts +88 -0
- package/out/baseTypes/Variable__.js +194 -0
- package/out/baseTypes/Variable__.js.map +1 -0
- package/out/baseTypes/View__.d.ts +359 -0
- package/out/baseTypes/View__.js +644 -0
- package/out/baseTypes/View__.js.map +1 -0
- package/out/baseTypes/WhileStatement__.d.ts +56 -0
- package/out/baseTypes/WhileStatement__.js +105 -0
- package/out/baseTypes/WhileStatement__.js.map +1 -0
- package/out/baseTypes/basics/types/index.d.ts +8 -0
- package/out/baseTypes/basics/types/index.js +14 -0
- package/out/baseTypes/basics/types/index.js.map +1 -0
- package/out/baseTypes/basics/types/primitiveTypes.d.ts +2 -0
- package/out/baseTypes/basics/types/primitiveTypes.js +17 -0
- package/out/baseTypes/basics/types/primitiveTypes.js.map +1 -0
- package/out/baseTypes/basics/types/systemTypes.d.ts +2 -0
- package/out/baseTypes/basics/types/systemTypes.js +30 -0
- package/out/baseTypes/basics/types/systemTypes.js.map +1 -0
- package/out/baseTypes/index.d.ts +6 -0
- package/out/baseTypes/index.js +21 -0
- package/out/baseTypes/index.js.map +1 -0
- package/out/baseTypes/index__.d.ts +38 -0
- package/out/baseTypes/index__.js +51 -0
- package/out/baseTypes/index__.js.map +1 -0
- package/out/generator/debugInFileStorage.d.ts +3 -0
- package/out/generator/debugInFileStorage.js +15 -0
- package/out/generator/debugInFileStorage.js.map +1 -0
- package/out/generator/genAllEmbeddedTS.d.ts +7 -0
- package/out/generator/genAllEmbeddedTS.js +20 -0
- package/out/generator/genAllEmbeddedTS.js.map +1 -0
- package/out/generator/index.d.ts +2 -0
- package/out/generator/index.js +15 -0
- package/out/generator/index.js.map +1 -0
- package/out/index.d.ts +3 -0
- package/out/index.js +16 -0
- package/out/index.js.map +1 -0
- package/out/manager/diagnostic.d.ts +30 -0
- package/out/manager/diagnostic.js +82 -0
- package/out/manager/diagnostic.js.map +1 -0
- package/{analysis/mergeBlock/raw1.json → out/manager/history.d.ts} +0 -0
- package/out/manager/history.js +1 -0
- package/out/manager/history.js.map +1 -0
- package/out/manager/problem.d.ts +0 -0
- package/out/manager/problem.js +1 -0
- package/out/manager/problem.js.map +1 -0
- package/out/service/app/api.d.ts +1 -15
- package/out/service/app/api.js +1 -11
- package/out/service/app/api.js.map +1 -1
- package/out/service/create/index.js +2 -2
- package/out/service/create/index.js.map +1 -1
- package/out/service/debugger/debugger.d.ts +3 -0
- package/out/service/debugger/debugger.js +95 -0
- package/out/service/debugger/debugger.js.map +1 -0
- package/out/service/logic/index.d.ts +0 -3
- package/out/service/logic/index.js +1 -4
- package/out/service/logic/index.js.map +1 -1
- package/out/service/logic/logic.d.ts +0 -9
- package/out/service/logic/logic.js +0 -7
- package/out/service/logic/logic.js.map +1 -1
- package/out/service/page/api.d.ts +1 -1
- package/out/service/page/api.js +0 -15
- package/out/service/page/api.js.map +1 -1
- package/out/service/page/view.d.ts +1 -1
- package/out/service/page/view.js +0 -15
- package/out/service/page/view.js.map +1 -1
- package/out/src/bak/basicTypes.d.ts +25 -0
- package/out/src/bak/basicTypes.js +77 -0
- package/out/src/bak/basicTypes.js.map +1 -0
- package/out/src/bak/dataTypeUtils.d.ts +94 -0
- package/out/src/bak/dataTypeUtils.js +449 -0
- package/out/src/bak/dataTypeUtils.js.map +1 -0
- package/out/src/bak/dataTypes.d.ts +20 -0
- package/out/src/bak/dataTypes.js +47 -0
- package/out/src/bak/dataTypes.js.map +1 -0
- package/out/src/bak/entityUtils.d.ts +164 -0
- package/out/src/bak/entityUtils.js +621 -0
- package/out/src/bak/entityUtils.js.map +1 -0
- package/out/src/bak/genericTypes.d.ts +40 -0
- package/out/src/bak/genericTypes.js +134 -0
- package/out/src/bak/genericTypes.js.map +1 -0
- package/out/src/bak/systemTypes.d.ts +9 -0
- package/out/src/bak/systemTypes.js +1563 -0
- package/out/src/bak/systemTypes.js.map +1 -0
- package/out/src/baseService/index.d.ts +2 -0
- package/out/src/baseService/index.js +10 -0
- package/out/src/baseService/index.js.map +1 -0
- package/out/src/baseTypes/App__.d.ts +181 -0
- package/out/src/baseTypes/App__.js +381 -0
- package/out/src/baseTypes/App__.js.map +1 -0
- package/out/src/baseTypes/Argument__.d.ts +40 -0
- package/out/src/baseTypes/Argument__.js +147 -0
- package/out/src/baseTypes/Argument__.js.map +1 -0
- package/out/src/baseTypes/AssignmentExpression__.d.ts +45 -0
- package/out/src/baseTypes/AssignmentExpression__.js +172 -0
- package/out/src/baseTypes/AssignmentExpression__.js.map +1 -0
- package/out/src/baseTypes/Attr__.d.ts +79 -0
- package/out/src/baseTypes/Attr__.js +210 -0
- package/out/src/baseTypes/Attr__.js.map +1 -0
- package/out/src/baseTypes/BinaryExpression__.d.ts +43 -0
- package/out/src/baseTypes/BinaryExpression__.js +152 -0
- package/out/src/baseTypes/BinaryExpression__.js.map +1 -0
- package/out/src/baseTypes/BooleanLiteral__.d.ts +28 -0
- package/out/src/baseTypes/BooleanLiteral__.js +118 -0
- package/out/src/baseTypes/BooleanLiteral__.js.map +1 -0
- package/out/src/baseTypes/CallLogic__.d.ts +45 -0
- package/out/src/baseTypes/CallLogic__.js +162 -0
- package/out/src/baseTypes/CallLogic__.js.map +1 -0
- package/out/src/baseTypes/CallQueryComponent__.d.ts +83 -0
- package/out/src/baseTypes/CallQueryComponent__.js +235 -0
- package/out/src/baseTypes/CallQueryComponent__.js.map +1 -0
- package/out/src/baseTypes/Comment__.d.ts +30 -0
- package/out/src/baseTypes/Comment__.js +114 -0
- package/out/src/baseTypes/Comment__.js.map +1 -0
- package/out/src/baseTypes/Directive__.d.ts +83 -0
- package/out/src/baseTypes/Directive__.js +218 -0
- package/out/src/baseTypes/Directive__.js.map +1 -0
- package/out/src/baseTypes/Element__.d.ts +389 -0
- package/out/src/baseTypes/Element__.js +589 -0
- package/out/src/baseTypes/Element__.js.map +1 -0
- package/out/src/baseTypes/End__.d.ts +27 -0
- package/out/src/baseTypes/End__.js +115 -0
- package/out/src/baseTypes/End__.js.map +1 -0
- package/out/src/baseTypes/EntityProperty__.d.ts +99 -0
- package/out/src/baseTypes/EntityProperty__.js +254 -0
- package/out/src/baseTypes/EntityProperty__.js.map +1 -0
- package/out/src/baseTypes/Entity__.d.ts +121 -0
- package/out/src/baseTypes/Entity__.js +250 -0
- package/out/src/baseTypes/Entity__.js.map +1 -0
- package/out/src/baseTypes/EnumItem__.d.ts +131 -0
- package/out/src/baseTypes/EnumItem__.js +271 -0
- package/out/src/baseTypes/EnumItem__.js.map +1 -0
- package/out/src/baseTypes/Enum__.d.ts +114 -0
- package/out/src/baseTypes/Enum__.js +226 -0
- package/out/src/baseTypes/Enum__.js.map +1 -0
- package/out/src/baseTypes/Event__.d.ts +76 -0
- package/out/src/baseTypes/Event__.js +205 -0
- package/out/src/baseTypes/Event__.js.map +1 -0
- package/out/src/baseTypes/ForEachStatement__.d.ts +116 -0
- package/out/src/baseTypes/ForEachStatement__.js +242 -0
- package/out/src/baseTypes/ForEachStatement__.js.map +1 -0
- package/out/src/baseTypes/Identifier__.d.ts +29 -0
- package/out/src/baseTypes/Identifier__.js +121 -0
- package/out/src/baseTypes/Identifier__.js.map +1 -0
- package/out/src/baseTypes/IfStatement__.d.ts +87 -0
- package/out/src/baseTypes/IfStatement__.js +175 -0
- package/out/src/baseTypes/IfStatement__.js.map +1 -0
- package/out/src/baseTypes/Lifecycle__.d.ts +71 -0
- package/out/src/baseTypes/Lifecycle__.js +196 -0
- package/out/src/baseTypes/Lifecycle__.js.map +1 -0
- package/out/src/baseTypes/LogicItem__.d.ts +100 -0
- package/out/src/baseTypes/LogicItem__.js +265 -0
- package/out/src/baseTypes/LogicItem__.js.map +1 -0
- package/out/src/baseTypes/Logic__.d.ts +382 -0
- package/out/src/baseTypes/Logic__.js +622 -0
- package/out/src/baseTypes/Logic__.js.map +1 -0
- package/out/src/baseTypes/Module__.d.ts +521 -0
- package/out/src/baseTypes/Module__.js +728 -0
- package/out/src/baseTypes/Module__.js.map +1 -0
- package/out/src/baseTypes/NullLiteral__.d.ts +23 -0
- package/out/src/baseTypes/NullLiteral__.js +106 -0
- package/out/src/baseTypes/NullLiteral__.js.map +1 -0
- package/out/src/baseTypes/Page__.d.ts +65 -0
- package/out/src/baseTypes/Page__.js +186 -0
- package/out/src/baseTypes/Page__.js.map +1 -0
- package/out/src/baseTypes/Param__.d.ts +107 -0
- package/out/src/baseTypes/Param__.js +278 -0
- package/out/src/baseTypes/Param__.js.map +1 -0
- package/out/src/baseTypes/ProcessComponent__.d.ts +50 -0
- package/out/src/baseTypes/ProcessComponent__.js +153 -0
- package/out/src/baseTypes/ProcessComponent__.js.map +1 -0
- package/out/src/baseTypes/Process__.d.ts +285 -0
- package/out/src/baseTypes/Process__.js +450 -0
- package/out/src/baseTypes/Process__.js.map +1 -0
- package/out/src/baseTypes/QuerSelectExpression__.d.ts +39 -0
- package/out/src/baseTypes/QuerSelectExpression__.js +133 -0
- package/out/src/baseTypes/QuerSelectExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryAggregateExpression__.d.ts +35 -0
- package/out/src/baseTypes/QueryAggregateExpression__.js +126 -0
- package/out/src/baseTypes/QueryAggregateExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryFieldExpression__.d.ts +38 -0
- package/out/src/baseTypes/QueryFieldExpression__.js +131 -0
- package/out/src/baseTypes/QueryFieldExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryFromExpression__.d.ts +40 -0
- package/out/src/baseTypes/QueryFromExpression__.js +136 -0
- package/out/src/baseTypes/QueryFromExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryGroupByExpression__.d.ts +30 -0
- package/out/src/baseTypes/QueryGroupByExpression__.js +118 -0
- package/out/src/baseTypes/QueryGroupByExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryJoinExpression__.d.ts +48 -0
- package/out/src/baseTypes/QueryJoinExpression__.js +155 -0
- package/out/src/baseTypes/QueryJoinExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryLimitExpression__.d.ts +38 -0
- package/out/src/baseTypes/QueryLimitExpression__.js +137 -0
- package/out/src/baseTypes/QueryLimitExpression__.js.map +1 -0
- package/out/src/baseTypes/QueryOrderByExpression__.d.ts +38 -0
- package/out/src/baseTypes/QueryOrderByExpression__.js +137 -0
- package/out/src/baseTypes/QueryOrderByExpression__.js.map +1 -0
- package/out/src/baseTypes/Return__.d.ts +107 -0
- package/out/src/baseTypes/Return__.js +274 -0
- package/out/src/baseTypes/Return__.js.map +1 -0
- package/out/src/baseTypes/Start__.d.ts +27 -0
- package/out/src/baseTypes/Start__.js +114 -0
- package/out/src/baseTypes/Start__.js.map +1 -0
- package/out/src/baseTypes/StringLiteral__.d.ts +28 -0
- package/out/src/baseTypes/StringLiteral__.js +127 -0
- package/out/src/baseTypes/StringLiteral__.js.map +1 -0
- package/out/src/baseTypes/StructureProperty__.d.ts +97 -0
- package/out/src/baseTypes/StructureProperty__.js +253 -0
- package/out/src/baseTypes/StructureProperty__.js.map +1 -0
- package/out/src/baseTypes/Structure__.d.ts +153 -0
- package/out/src/baseTypes/Structure__.js +329 -0
- package/out/src/baseTypes/Structure__.js.map +1 -0
- package/out/src/baseTypes/SwitchCase__.d.ts +83 -0
- package/out/src/baseTypes/SwitchCase__.js +165 -0
- package/out/src/baseTypes/SwitchCase__.js.map +1 -0
- package/out/src/baseTypes/SwitchStatement__.d.ts +76 -0
- package/out/src/baseTypes/SwitchStatement__.js +147 -0
- package/out/src/baseTypes/SwitchStatement__.js.map +1 -0
- package/out/src/baseTypes/TypeAnnotation__.d.ts +60 -0
- package/out/src/baseTypes/TypeAnnotation__.js +201 -0
- package/out/src/baseTypes/TypeAnnotation__.js.map +1 -0
- package/out/src/baseTypes/UnaryExpression__.d.ts +35 -0
- package/out/src/baseTypes/UnaryExpression__.js +133 -0
- package/out/src/baseTypes/UnaryExpression__.js.map +1 -0
- package/out/src/baseTypes/Variable__.d.ts +107 -0
- package/out/src/baseTypes/Variable__.js +278 -0
- package/out/src/baseTypes/Variable__.js.map +1 -0
- package/out/src/baseTypes/View__.d.ts +472 -0
- package/out/src/baseTypes/View__.js +692 -0
- package/out/src/baseTypes/View__.js.map +1 -0
- package/out/src/baseTypes/WhileStatement__.d.ts +83 -0
- package/out/src/baseTypes/WhileStatement__.js +165 -0
- package/out/src/baseTypes/WhileStatement__.js.map +1 -0
- package/out/src/baseTypes/basics/types/collectionTypeList.d.ts +2 -0
- package/out/src/baseTypes/basics/types/collectionTypeList.js +30 -0
- package/out/src/baseTypes/basics/types/collectionTypeList.js.map +1 -0
- package/out/src/baseTypes/basics/types/coreTypes.d.ts +2 -0
- package/out/src/baseTypes/basics/types/coreTypes.js +17 -0
- package/out/src/baseTypes/basics/types/coreTypes.js.map +1 -0
- package/out/src/baseTypes/basics/types/index.d.ts +8 -0
- package/out/src/baseTypes/basics/types/index.js +14 -0
- package/out/src/baseTypes/basics/types/index.js.map +1 -0
- package/out/src/baseTypes/basics/types/stdlibModule.d.ts +7 -0
- package/out/src/baseTypes/basics/types/stdlibModule.js +48 -0
- package/out/src/baseTypes/basics/types/stdlibModule.js.map +1 -0
- package/out/src/baseTypes/index.d.ts +6 -0
- package/out/src/baseTypes/index.js +21 -0
- package/out/src/baseTypes/index.js.map +1 -0
- package/out/src/baseTypes/index__.d.ts +49 -0
- package/out/src/baseTypes/index__.js +62 -0
- package/out/src/baseTypes/index__.js.map +1 -0
- package/out/src/common/BaseNode.d.ts +231 -0
- package/out/src/common/BaseNode.js +683 -0
- package/out/src/common/BaseNode.js.map +1 -0
- package/out/src/common/Command.d.ts +8 -0
- package/out/src/common/Command.js +32 -0
- package/out/src/common/Command.js.map +1 -0
- package/out/src/common/ComponentAPI.d.ts +110 -0
- package/out/src/common/ComponentAPI.js +3 -0
- package/out/src/common/ComponentAPI.js.map +1 -0
- package/out/src/common/EventEmitter.d.ts +54 -0
- package/out/src/common/EventEmitter.js +68 -0
- package/out/src/common/EventEmitter.js.map +1 -0
- package/out/src/common/Messager.d.ts +86 -0
- package/out/src/common/Messager.js +187 -0
- package/out/src/common/Messager.js.map +1 -0
- package/out/src/common/classMap.d.ts +4 -0
- package/out/src/common/classMap.js +5 -0
- package/out/src/common/classMap.js.map +1 -0
- package/out/src/common/index.d.ts +4 -0
- package/out/src/common/index.js +21 -0
- package/out/src/common/index.js.map +1 -0
- package/out/src/concepts/App__.d.ts +1077 -0
- package/out/src/concepts/App__.js +1453 -0
- package/out/src/concepts/App__.js.map +1 -0
- package/out/src/concepts/Argument__.d.ts +56 -0
- package/out/src/concepts/Argument__.js +177 -0
- package/out/src/concepts/Argument__.js.map +1 -0
- package/out/src/concepts/Assignment__.d.ts +72 -0
- package/out/src/concepts/Assignment__.js +200 -0
- package/out/src/concepts/Assignment__.js.map +1 -0
- package/out/src/concepts/Attribute__.d.ts +101 -0
- package/out/src/concepts/Attribute__.js +221 -0
- package/out/src/concepts/Attribute__.js.map +1 -0
- package/out/src/concepts/BinaryExpression__.d.ts +66 -0
- package/out/src/concepts/BinaryExpression__.js +237 -0
- package/out/src/concepts/BinaryExpression__.js.map +1 -0
- package/out/src/concepts/BindAttribute__.d.ts +211 -0
- package/out/src/concepts/BindAttribute__.js +395 -0
- package/out/src/concepts/BindAttribute__.js.map +1 -0
- package/out/src/concepts/BindDirective__.d.ts +92 -0
- package/out/src/concepts/BindDirective__.js +221 -0
- package/out/src/concepts/BindDirective__.js.map +1 -0
- package/out/src/concepts/BindEvent__.d.ts +133 -0
- package/out/src/concepts/BindEvent__.js +258 -0
- package/out/src/concepts/BindEvent__.js.map +1 -0
- package/out/src/concepts/BooleanLiteral__.d.ts +27 -0
- package/out/src/concepts/BooleanLiteral__.js +74 -0
- package/out/src/concepts/BooleanLiteral__.js.map +1 -0
- package/out/src/concepts/CallFunction__.d.ts +100 -0
- package/out/src/concepts/CallFunction__.js +231 -0
- package/out/src/concepts/CallFunction__.js.map +1 -0
- package/out/src/concepts/CallInterface__.d.ts +100 -0
- package/out/src/concepts/CallInterface__.js +220 -0
- package/out/src/concepts/CallInterface__.js.map +1 -0
- package/out/src/concepts/CallLogic__.d.ts +116 -0
- package/out/src/concepts/CallLogic__.js +305 -0
- package/out/src/concepts/CallLogic__.js.map +1 -0
- package/out/src/concepts/CallQueryComponent__.d.ts +312 -0
- package/out/src/concepts/CallQueryComponent__.js +738 -0
- package/out/src/concepts/CallQueryComponent__.js.map +1 -0
- package/out/src/concepts/Comment__.d.ts +35 -0
- package/out/src/concepts/Comment__.js +99 -0
- package/out/src/concepts/Comment__.js.map +1 -0
- package/out/src/concepts/CompletionProperty__.d.ts +95 -0
- package/out/src/concepts/CompletionProperty__.js +231 -0
- package/out/src/concepts/CompletionProperty__.js.map +1 -0
- package/out/src/concepts/Constant__.d.ts +96 -0
- package/out/src/concepts/Constant__.js +220 -0
- package/out/src/concepts/Constant__.js.map +1 -0
- package/out/src/concepts/DataElement__.d.ts +45 -0
- package/out/src/concepts/DataElement__.js +114 -0
- package/out/src/concepts/DataElement__.js.map +1 -0
- package/out/src/concepts/Destination__.d.ts +106 -0
- package/out/src/concepts/Destination__.js +263 -0
- package/out/src/concepts/Destination__.js.map +1 -0
- package/out/src/concepts/End__.d.ts +28 -0
- package/out/src/concepts/End__.js +102 -0
- package/out/src/concepts/End__.js.map +1 -0
- package/out/src/concepts/EntityIndex__.d.ts +81 -0
- package/out/src/concepts/EntityIndex__.js +189 -0
- package/out/src/concepts/EntityIndex__.js.map +1 -0
- package/out/src/concepts/EntityProperty__.d.ts +207 -0
- package/out/src/concepts/EntityProperty__.js +472 -0
- package/out/src/concepts/EntityProperty__.js.map +1 -0
- package/out/src/concepts/Entity__.d.ts +282 -0
- package/out/src/concepts/Entity__.js +520 -0
- package/out/src/concepts/Entity__.js.map +1 -0
- package/out/src/concepts/EnumItem__.d.ts +60 -0
- package/out/src/concepts/EnumItem__.js +136 -0
- package/out/src/concepts/EnumItem__.js.map +1 -0
- package/out/src/concepts/Enum__.d.ts +130 -0
- package/out/src/concepts/Enum__.js +259 -0
- package/out/src/concepts/Enum__.js.map +1 -0
- package/out/src/concepts/Event__.d.ts +142 -0
- package/out/src/concepts/Event__.js +242 -0
- package/out/src/concepts/Event__.js.map +1 -0
- package/out/src/concepts/ForEachStatement__.d.ts +194 -0
- package/out/src/concepts/ForEachStatement__.js +410 -0
- package/out/src/concepts/ForEachStatement__.js.map +1 -0
- package/out/src/concepts/Function__.d.ts +387 -0
- package/out/src/concepts/Function__.js +557 -0
- package/out/src/concepts/Function__.js.map +1 -0
- package/out/src/concepts/Identifier__.d.ts +44 -0
- package/out/src/concepts/Identifier__.js +159 -0
- package/out/src/concepts/Identifier__.js.map +1 -0
- package/out/src/concepts/IfStatement__.d.ts +150 -0
- package/out/src/concepts/IfStatement__.js +310 -0
- package/out/src/concepts/IfStatement__.js.map +1 -0
- package/out/src/concepts/InterfaceParam__.d.ts +110 -0
- package/out/src/concepts/InterfaceParam__.js +273 -0
- package/out/src/concepts/InterfaceParam__.js.map +1 -0
- package/out/src/concepts/Interface__.d.ts +247 -0
- package/out/src/concepts/Interface__.js +441 -0
- package/out/src/concepts/Interface__.js.map +1 -0
- package/out/src/concepts/JSBlock__.d.ts +35 -0
- package/out/src/concepts/JSBlock__.js +106 -0
- package/out/src/concepts/JSBlock__.js.map +1 -0
- package/out/src/concepts/LogicItem__.d.ts +114 -0
- package/out/src/concepts/LogicItem__.js +216 -0
- package/out/src/concepts/LogicItem__.js.map +1 -0
- package/out/src/concepts/Logic__.d.ts +571 -0
- package/out/src/concepts/Logic__.js +951 -0
- package/out/src/concepts/Logic__.js.map +1 -0
- package/out/src/concepts/MemberExpression__.d.ts +69 -0
- package/out/src/concepts/MemberExpression__.js +204 -0
- package/out/src/concepts/MemberExpression__.js.map +1 -0
- package/out/src/concepts/Module__.d.ts +747 -0
- package/out/src/concepts/Module__.js +982 -0
- package/out/src/concepts/Module__.js.map +1 -0
- package/out/src/concepts/Namespace__.d.ts +1068 -0
- package/out/src/concepts/Namespace__.js +1397 -0
- package/out/src/concepts/Namespace__.js.map +1 -0
- package/out/src/concepts/NullLiteral__.d.ts +23 -0
- package/out/src/concepts/NullLiteral__.js +67 -0
- package/out/src/concepts/NullLiteral__.js.map +1 -0
- package/out/src/concepts/NumericLiteral__.d.ts +55 -0
- package/out/src/concepts/NumericLiteral__.js +164 -0
- package/out/src/concepts/NumericLiteral__.js.map +1 -0
- package/out/src/concepts/Param__.d.ts +143 -0
- package/out/src/concepts/Param__.js +327 -0
- package/out/src/concepts/Param__.js.map +1 -0
- package/out/src/concepts/Point__.d.ts +30 -0
- package/out/src/concepts/Point__.js +75 -0
- package/out/src/concepts/Point__.js.map +1 -0
- package/out/src/concepts/ProcessComponent__.d.ts +218 -0
- package/out/src/concepts/ProcessComponent__.js +333 -0
- package/out/src/concepts/ProcessComponent__.js.map +1 -0
- package/out/src/concepts/ProcessElement__.d.ts +557 -0
- package/out/src/concepts/ProcessElement__.js +889 -0
- package/out/src/concepts/ProcessElement__.js.map +1 -0
- package/out/src/concepts/ProcessOutcome__.d.ts +34 -0
- package/out/src/concepts/ProcessOutcome__.js +94 -0
- package/out/src/concepts/ProcessOutcome__.js.map +1 -0
- package/out/src/concepts/Process__.d.ts +425 -0
- package/out/src/concepts/Process__.js +736 -0
- package/out/src/concepts/Process__.js.map +1 -0
- package/out/src/concepts/QueryAggregateExpression__.d.ts +56 -0
- package/out/src/concepts/QueryAggregateExpression__.js +177 -0
- package/out/src/concepts/QueryAggregateExpression__.js.map +1 -0
- package/out/src/concepts/QueryFieldExpression__.d.ts +51 -0
- package/out/src/concepts/QueryFieldExpression__.js +129 -0
- package/out/src/concepts/QueryFieldExpression__.js.map +1 -0
- package/out/src/concepts/QueryFromExpression__.d.ts +95 -0
- package/out/src/concepts/QueryFromExpression__.js +188 -0
- package/out/src/concepts/QueryFromExpression__.js.map +1 -0
- package/out/src/concepts/QueryGroupByExpression__.d.ts +46 -0
- package/out/src/concepts/QueryGroupByExpression__.js +126 -0
- package/out/src/concepts/QueryGroupByExpression__.js.map +1 -0
- package/out/src/concepts/QueryJoinExpression__.d.ts +182 -0
- package/out/src/concepts/QueryJoinExpression__.js +308 -0
- package/out/src/concepts/QueryJoinExpression__.js.map +1 -0
- package/out/src/concepts/QueryLimitExpression__.d.ts +60 -0
- package/out/src/concepts/QueryLimitExpression__.js +163 -0
- package/out/src/concepts/QueryLimitExpression__.js.map +1 -0
- package/out/src/concepts/QueryOrderByExpression__.d.ts +71 -0
- package/out/src/concepts/QueryOrderByExpression__.js +176 -0
- package/out/src/concepts/QueryOrderByExpression__.js.map +1 -0
- package/out/src/concepts/QuerySelectExpression__.d.ts +118 -0
- package/out/src/concepts/QuerySelectExpression__.js +210 -0
- package/out/src/concepts/QuerySelectExpression__.js.map +1 -0
- package/out/src/concepts/Rect__.d.ts +38 -0
- package/out/src/concepts/Rect__.js +89 -0
- package/out/src/concepts/Rect__.js.map +1 -0
- package/out/src/concepts/Return__.d.ts +129 -0
- package/out/src/concepts/Return__.js +291 -0
- package/out/src/concepts/Return__.js.map +1 -0
- package/out/src/concepts/Role__.d.ts +52 -0
- package/out/src/concepts/Role__.js +131 -0
- package/out/src/concepts/Role__.js.map +1 -0
- package/out/src/concepts/Slot__.d.ts +57 -0
- package/out/src/concepts/Slot__.js +114 -0
- package/out/src/concepts/Slot__.js.map +1 -0
- package/out/src/concepts/SqlQueryComponent__.d.ts +49 -0
- package/out/src/concepts/SqlQueryComponent__.js +125 -0
- package/out/src/concepts/SqlQueryComponent__.js.map +1 -0
- package/out/src/concepts/Start__.d.ts +28 -0
- package/out/src/concepts/Start__.js +81 -0
- package/out/src/concepts/Start__.js.map +1 -0
- package/out/src/concepts/StringLiteral__.d.ts +37 -0
- package/out/src/concepts/StringLiteral__.js +135 -0
- package/out/src/concepts/StringLiteral__.js.map +1 -0
- package/out/src/concepts/StructureProperty__.d.ts +123 -0
- package/out/src/concepts/StructureProperty__.js +294 -0
- package/out/src/concepts/StructureProperty__.js.map +1 -0
- package/out/src/concepts/Structure__.d.ts +231 -0
- package/out/src/concepts/Structure__.js +386 -0
- package/out/src/concepts/Structure__.js.map +1 -0
- package/out/src/concepts/SwitchCase__.d.ts +97 -0
- package/out/src/concepts/SwitchCase__.js +270 -0
- package/out/src/concepts/SwitchCase__.js.map +1 -0
- package/out/src/concepts/SwitchStatement__.d.ts +86 -0
- package/out/src/concepts/SwitchStatement__.js +187 -0
- package/out/src/concepts/SwitchStatement__.js.map +1 -0
- package/out/src/concepts/Theme__.d.ts +36 -0
- package/out/src/concepts/Theme__.js +86 -0
- package/out/src/concepts/Theme__.js.map +1 -0
- package/out/src/concepts/Transactional__.d.ts +76 -0
- package/out/src/concepts/Transactional__.js +151 -0
- package/out/src/concepts/Transactional__.js.map +1 -0
- package/out/src/concepts/TypeAnnotation__.d.ts +125 -0
- package/out/src/concepts/TypeAnnotation__.js +305 -0
- package/out/src/concepts/TypeAnnotation__.js.map +1 -0
- package/out/src/concepts/TypeParam__.d.ts +20 -0
- package/out/src/concepts/TypeParam__.js +57 -0
- package/out/src/concepts/TypeParam__.js.map +1 -0
- package/out/src/concepts/UnaryExpression__.d.ts +48 -0
- package/out/src/concepts/UnaryExpression__.js +163 -0
- package/out/src/concepts/UnaryExpression__.js.map +1 -0
- package/out/src/concepts/Unparsed__.d.ts +32 -0
- package/out/src/concepts/Unparsed__.js +92 -0
- package/out/src/concepts/Unparsed__.js.map +1 -0
- package/out/src/concepts/UseComponent__.d.ts +30 -0
- package/out/src/concepts/UseComponent__.js +75 -0
- package/out/src/concepts/UseComponent__.js.map +1 -0
- package/out/src/concepts/ValidationRule__.d.ts +95 -0
- package/out/src/concepts/ValidationRule__.js +212 -0
- package/out/src/concepts/ValidationRule__.js.map +1 -0
- package/out/src/concepts/Variable__.d.ts +119 -0
- package/out/src/concepts/Variable__.js +277 -0
- package/out/src/concepts/Variable__.js.map +1 -0
- package/out/src/concepts/ViewComponent__.d.ts +472 -0
- package/out/src/concepts/ViewComponent__.js +644 -0
- package/out/src/concepts/ViewComponent__.js.map +1 -0
- package/out/src/concepts/ViewElement__.d.ts +483 -0
- package/out/src/concepts/ViewElement__.js +1167 -0
- package/out/src/concepts/ViewElement__.js.map +1 -0
- package/out/src/concepts/View__.d.ts +676 -0
- package/out/src/concepts/View__.js +1268 -0
- package/out/src/concepts/View__.js.map +1 -0
- package/out/src/concepts/WhileStatement__.d.ts +97 -0
- package/out/src/concepts/WhileStatement__.js +228 -0
- package/out/src/concepts/WhileStatement__.js.map +1 -0
- package/out/src/concepts/basics/stdlib/index.d.ts +4 -0
- package/out/src/concepts/basics/stdlib/index.js +23 -0
- package/out/src/concepts/basics/stdlib/index.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.collection.d.ts +5 -0
- package/out/src/concepts/basics/stdlib/nasl.collection.js +54 -0
- package/out/src/concepts/basics/stdlib/nasl.collection.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.core.d.ts +3 -0
- package/out/src/concepts/basics/stdlib/nasl.core.js +15 -0
- package/out/src/concepts/basics/stdlib/nasl.core.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.interface.d.ts +5 -0
- package/out/src/concepts/basics/stdlib/nasl.interface.js +43 -0
- package/out/src/concepts/basics/stdlib/nasl.interface.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.process.d.ts +3 -0
- package/out/src/concepts/basics/stdlib/nasl.process.js +43 -0
- package/out/src/concepts/basics/stdlib/nasl.process.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.ui.d.ts +5 -0
- package/out/src/concepts/basics/stdlib/nasl.ui.js +85 -0
- package/out/src/concepts/basics/stdlib/nasl.ui.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.util.d.ts +3 -0
- package/out/src/concepts/basics/stdlib/nasl.util.js +587 -0
- package/out/src/concepts/basics/stdlib/nasl.util.js.map +1 -0
- package/out/src/concepts/basics/stdlib/nasl.validate.d.ts +3 -0
- package/out/src/concepts/basics/stdlib/nasl.validate.js +527 -0
- package/out/src/concepts/basics/stdlib/nasl.validate.js.map +1 -0
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +5 -0
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.js +26 -0
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
- package/out/src/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/out/src/concepts/basics/types/coreTypeList.js +17 -0
- package/out/src/concepts/basics/types/coreTypeList.js.map +1 -0
- package/out/src/concepts/basics/types/index.d.ts +11 -0
- package/out/src/concepts/basics/types/index.js +20 -0
- package/out/src/concepts/basics/types/index.js.map +1 -0
- package/out/src/concepts/index.d.ts +5 -0
- package/out/src/concepts/index.js +24 -0
- package/out/src/concepts/index.js.map +1 -0
- package/out/src/concepts/index__.d.ts +77 -0
- package/out/src/concepts/index__.js +94 -0
- package/out/src/concepts/index__.js.map +1 -0
- package/out/src/config.d.ts +43 -0
- package/out/src/config.js +72 -0
- package/out/src/config.js.map +1 -0
- package/out/src/decorators/index.d.ts +54 -0
- package/out/src/decorators/index.js +146 -0
- package/out/src/decorators/index.js.map +1 -0
- package/out/src/generator/compileComponent.d.ts +11 -0
- package/out/src/generator/compileComponent.js +12 -0
- package/out/src/generator/compileComponent.js.map +1 -0
- package/out/src/generator/debugInFileStorage.d.ts +3 -0
- package/out/src/generator/debugInFileStorage.js +15 -0
- package/out/src/generator/debugInFileStorage.js.map +1 -0
- package/out/src/generator/genAllEmbeddedTS.d.ts +7 -0
- package/out/src/generator/genAllEmbeddedTS.js +20 -0
- package/out/src/generator/genAllEmbeddedTS.js.map +1 -0
- package/out/src/generator/genBundleFiles.d.ts +38 -0
- package/out/src/generator/genBundleFiles.js +219 -0
- package/out/src/generator/genBundleFiles.js.map +1 -0
- package/out/src/generator/genHash.d.ts +7 -0
- package/out/src/generator/genHash.js +39 -0
- package/out/src/generator/genHash.js.map +1 -0
- package/out/src/generator/index.d.ts +4 -0
- package/out/src/generator/index.js +21 -0
- package/out/src/generator/index.js.map +1 -0
- package/out/src/generator/styleReplacer.d.ts +3 -0
- package/out/src/generator/styleReplacer.js +71 -0
- package/out/src/generator/styleReplacer.js.map +1 -0
- package/out/src/index.d.ts +9 -0
- package/out/src/index.js +48 -0
- package/out/src/index.js.map +1 -0
- package/out/src/init.d.ts +1 -0
- package/out/src/init.js +140 -0
- package/out/src/init.js.map +1 -0
- package/out/src/manager/diagnostic.d.ts +38 -0
- package/out/src/manager/diagnostic.js +84 -0
- package/out/src/manager/diagnostic.js.map +1 -0
- package/out/src/manager/history.d.ts +0 -0
- package/out/src/manager/history.js +1 -0
- package/out/src/manager/history.js.map +1 -0
- package/out/src/manager/problem.d.ts +0 -0
- package/out/src/manager/problem.js +1 -0
- package/out/src/manager/problem.js.map +1 -0
- package/out/src/map.d.ts +4 -0
- package/out/src/map.js +62 -0
- package/out/src/map.js.map +1 -0
- package/out/src/naslServer/index.d.ts +55 -0
- package/out/src/naslServer/index.js +296 -0
- package/out/src/naslServer/index.js.map +1 -0
- package/out/src/naslServer/translator.d.ts +3 -0
- package/out/src/naslServer/translator.js +78 -0
- package/out/src/naslServer/translator.js.map +1 -0
- package/out/src/server/entity2LogicNamespace.d.ts +2 -0
- package/out/src/server/entity2LogicNamespace.js +192 -0
- package/out/src/server/entity2LogicNamespace.js.map +1 -0
- package/out/src/server/getFunctions.d.ts +2 -0
- package/out/src/server/getFunctions.js +14 -0
- package/out/src/server/getFunctions.js.map +1 -0
- package/out/src/server/getInterfaces.d.ts +2 -0
- package/out/src/server/getInterfaces.js +48 -0
- package/out/src/server/getInterfaces.js.map +1 -0
- package/out/src/server/getLogics.d.ts +2 -0
- package/out/src/server/getLogics.js +83 -0
- package/out/src/server/getLogics.js.map +1 -0
- package/out/src/server/getMemberIdentifier.d.ts +5 -0
- package/out/src/server/getMemberIdentifier.js +102 -0
- package/out/src/server/getMemberIdentifier.js.map +1 -0
- package/out/src/server/getProcessComponents.d.ts +2 -0
- package/out/src/server/getProcessComponents.js +13 -0
- package/out/src/server/getProcessComponents.js.map +1 -0
- package/out/src/server/getProcesses.d.ts +19 -0
- package/out/src/server/getProcesses.js +106 -0
- package/out/src/server/getProcesses.js.map +1 -0
- package/out/src/server/getValidates.d.ts +3 -0
- package/out/src/server/getValidates.js +14 -0
- package/out/src/server/getValidates.js.map +1 -0
- package/out/src/server/index.d.ts +2 -0
- package/out/src/server/index.js +26 -0
- package/out/src/server/index.js.map +1 -0
- package/out/src/server/naslServer.d.ts +139 -0
- package/out/src/server/naslServer.js +1120 -0
- package/out/src/server/naslServer.js.map +1 -0
- package/out/src/server/process2LogicNamespace.d.ts +2 -0
- package/out/src/server/process2LogicNamespace.js +24 -0
- package/out/src/server/process2LogicNamespace.js.map +1 -0
- package/out/src/server/translator.d.ts +5 -0
- package/out/src/server/translator.js +150 -0
- package/out/src/server/translator.js.map +1 -0
- package/out/src/service/app/api.d.ts +61 -0
- package/out/src/service/app/api.js +77 -0
- package/out/src/service/app/api.js.map +1 -0
- package/out/src/service/app/index.d.ts +2 -0
- package/out/src/service/app/index.js +10 -0
- package/out/src/service/app/index.js.map +1 -0
- package/out/src/service/assets/asset.d.ts +104 -0
- package/out/src/service/assets/asset.js +78 -0
- package/out/src/service/assets/asset.js.map +1 -0
- package/out/src/service/assets/block.d.ts +9 -0
- package/out/src/service/assets/block.js +11 -0
- package/out/src/service/assets/block.js.map +1 -0
- package/out/src/service/assets/index.d.ts +2 -0
- package/out/src/service/assets/index.js +12 -0
- package/out/src/service/assets/index.js.map +1 -0
- package/out/src/service/common/findUsage.d.ts +9 -0
- package/out/src/service/common/findUsage.js +11 -0
- package/out/src/service/common/findUsage.js.map +1 -0
- package/out/src/service/common/index.d.ts +2 -0
- package/out/src/service/common/index.js +12 -0
- package/out/src/service/common/index.js.map +1 -0
- package/out/src/service/common/preprocess.d.ts +14 -0
- package/out/src/service/common/preprocess.js +75 -0
- package/out/src/service/common/preprocess.js.map +1 -0
- package/out/src/service/common/schema.d.ts +9 -0
- package/out/src/service/common/schema.js +12 -0
- package/out/src/service/common/schema.js.map +1 -0
- package/out/src/service/create/add.configs.d.ts +1 -0
- package/out/src/service/create/add.configs.js +68 -0
- package/out/src/service/create/add.configs.js.map +1 -0
- package/out/src/service/create/errHandles.d.ts +18 -0
- package/out/src/service/create/errHandles.js +57 -0
- package/out/src/service/create/errHandles.js.map +1 -0
- package/out/src/service/create/index.d.ts +1 -0
- package/out/src/service/create/index.js +77 -0
- package/out/src/service/create/index.js.map +1 -0
- package/out/src/service/data/api.d.ts +36 -0
- package/out/src/service/data/api.js +36 -0
- package/out/src/service/data/api.js.map +1 -0
- package/out/src/service/data/entity.d.ts +135 -0
- package/out/src/service/data/entity.js +103 -0
- package/out/src/service/data/entity.js.map +1 -0
- package/out/src/service/data/enum.d.ts +63 -0
- package/out/src/service/data/enum.js +55 -0
- package/out/src/service/data/enum.js.map +1 -0
- package/out/src/service/data/enumProperty.d.ts +28 -0
- package/out/src/service/data/enumProperty.js +23 -0
- package/out/src/service/data/enumProperty.js.map +1 -0
- package/out/src/service/data/generic.d.ts +9 -0
- package/out/src/service/data/generic.js +11 -0
- package/out/src/service/data/generic.js.map +1 -0
- package/out/src/service/data/index.d.ts +8 -0
- package/out/src/service/data/index.js +23 -0
- package/out/src/service/data/index.js.map +1 -0
- package/out/src/service/data/interface.d.ts +67 -0
- package/out/src/service/data/interface.js +58 -0
- package/out/src/service/data/interface.js.map +1 -0
- package/out/src/service/data/structure.d.ts +92 -0
- package/out/src/service/data/structure.js +77 -0
- package/out/src/service/data/structure.js.map +1 -0
- package/out/src/service/logic/index.d.ts +2 -0
- package/out/src/service/logic/index.js +14 -0
- package/out/src/service/logic/index.js.map +1 -0
- package/out/src/service/logic/logic.d.ts +157 -0
- package/out/src/service/logic/logic.js +116 -0
- package/out/src/service/logic/logic.js.map +1 -0
- package/out/src/service/logic/param.d.ts +37 -0
- package/out/src/service/logic/param.js +29 -0
- package/out/src/service/logic/param.js.map +1 -0
- package/out/src/service/nuims/api.d.ts +264 -0
- package/out/src/service/nuims/api.js +194 -0
- package/out/src/service/nuims/api.js.map +1 -0
- package/out/src/service/nuims/index.d.ts +2 -0
- package/out/src/service/nuims/index.js +17 -0
- package/out/src/service/nuims/index.js.map +1 -0
- package/out/src/service/page/api.d.ts +186 -0
- package/out/src/service/page/api.js +1361 -0
- package/out/src/service/page/api.js.map +1 -0
- package/out/src/service/page/attribute.d.ts +28 -0
- package/out/src/service/page/attribute.js +23 -0
- package/out/src/service/page/attribute.js.map +1 -0
- package/out/src/service/page/directive.d.ts +28 -0
- package/out/src/service/page/directive.js +23 -0
- package/out/src/service/page/directive.js.map +1 -0
- package/out/src/service/page/element.d.ts +45 -0
- package/out/src/service/page/element.js +42 -0
- package/out/src/service/page/element.js.map +1 -0
- package/out/src/service/page/event.d.ts +28 -0
- package/out/src/service/page/event.js +23 -0
- package/out/src/service/page/event.js.map +1 -0
- package/out/src/service/page/index.d.ts +8 -0
- package/out/src/service/page/index.js +23 -0
- package/out/src/service/page/index.js.map +1 -0
- package/out/src/service/page/lifecycle.d.ts +28 -0
- package/out/src/service/page/lifecycle.js +23 -0
- package/out/src/service/page/lifecycle.js.map +1 -0
- package/out/src/service/page/templates.d.ts +14 -0
- package/out/src/service/page/templates.js +70 -0
- package/out/src/service/page/templates.js.map +1 -0
- package/out/src/service/page/view.d.ts +130 -0
- package/out/src/service/page/view.js +101 -0
- package/out/src/service/page/view.js.map +1 -0
- package/out/src/service/permission/api.d.ts +57 -0
- package/out/src/service/permission/api.js +41 -0
- package/out/src/service/permission/api.js.map +1 -0
- package/out/src/service/permission/index.d.ts +2 -0
- package/out/src/service/permission/index.js +17 -0
- package/out/src/service/permission/index.js.map +1 -0
- package/out/src/service/process/api.d.ts +136 -0
- package/out/src/service/process/api.js +95 -0
- package/out/src/service/process/api.js.map +1 -0
- package/out/src/service/process/index.d.ts +2 -0
- package/out/src/service/process/index.js +10 -0
- package/out/src/service/process/index.js.map +1 -0
- package/out/src/service/storage/index.d.ts +2 -0
- package/out/src/service/storage/index.js +10 -0
- package/out/src/service/storage/index.js.map +1 -0
- package/out/src/service/storage/init.d.ts +7 -0
- package/out/src/service/storage/init.js +187 -0
- package/out/src/service/storage/init.js.map +1 -0
- package/out/src/service/storage/jsoner.d.ts +29 -0
- package/out/src/service/storage/jsoner.js +130 -0
- package/out/src/service/storage/jsoner.js.map +1 -0
- package/out/src/service/storage/map.d.ts +4 -0
- package/out/src/service/storage/map.js +54 -0
- package/out/src/service/storage/map.js.map +1 -0
- package/out/src/service/storage/storagePoint.d.ts +30 -0
- package/out/src/service/storage/storagePoint.js +76 -0
- package/out/src/service/storage/storagePoint.js.map +1 -0
- package/out/src/service/undoredo/api.d.ts +36 -0
- package/out/src/service/undoredo/api.js +29 -0
- package/out/src/service/undoredo/api.js.map +1 -0
- package/out/src/service/undoredo/index.d.ts +2 -0
- package/out/src/service/undoredo/index.js +10 -0
- package/out/src/service/undoredo/index.js.map +1 -0
- package/out/src/service/webFile/api.d.ts +45 -0
- package/out/src/service/webFile/api.js +35 -0
- package/out/src/service/webFile/api.js.map +1 -0
- package/out/src/service/webFile/index.d.ts +3 -0
- package/out/src/service/webFile/index.js +32 -0
- package/out/src/service/webFile/index.js.map +1 -0
- package/out/src/service/webFile/loadCache.d.ts +18 -0
- package/out/src/service/webFile/loadCache.js +17 -0
- package/out/src/service/webFile/loadCache.js.map +1 -0
- package/out/src/storagePoint.d.ts +16 -0
- package/out/src/storagePoint.js +49 -0
- package/out/src/storagePoint.js.map +1 -0
- package/out/src/templator/genCallComponentLogic.d.ts +17 -0
- package/out/src/templator/genCallComponentLogic.js +30 -0
- package/out/src/templator/genCallComponentLogic.js.map +1 -0
- package/out/src/templator/genCallInterface.d.ts +12 -0
- package/out/src/templator/genCallInterface.js +20 -0
- package/out/src/templator/genCallInterface.js.map +1 -0
- package/out/src/templator/genCallLogic.d.ts +12 -0
- package/out/src/templator/genCallLogic.js +26 -0
- package/out/src/templator/genCallLogic.js.map +1 -0
- package/out/src/templator/genCreateBlock.d.ts +10 -0
- package/out/src/templator/genCreateBlock.js +304 -0
- package/out/src/templator/genCreateBlock.js.map +1 -0
- package/out/src/templator/genCurdEditMultipleKeyBlock.d.ts +2 -0
- package/out/src/templator/genCurdEditMultipleKeyBlock.js +453 -0
- package/out/src/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
- package/out/src/templator/genCurdMultipleKeyBlock.d.ts +3 -0
- package/out/src/templator/genCurdMultipleKeyBlock.js +640 -0
- package/out/src/templator/genCurdMultipleKeyBlock.js.map +1 -0
- package/out/src/templator/genEditTableBlock.d.ts +51 -0
- package/out/src/templator/genEditTableBlock.js +301 -0
- package/out/src/templator/genEditTableBlock.js.map +1 -0
- package/out/src/templator/genEnumSelectBlock.d.ts +10 -0
- package/out/src/templator/genEnumSelectBlock.js +23 -0
- package/out/src/templator/genEnumSelectBlock.js.map +1 -0
- package/out/src/templator/genGetBlock.d.ts +6 -0
- package/out/src/templator/genGetBlock.js +133 -0
- package/out/src/templator/genGetBlock.js.map +1 -0
- package/out/src/templator/genGridViewBlock.d.ts +53 -0
- package/out/src/templator/genGridViewBlock.js +308 -0
- package/out/src/templator/genGridViewBlock.js.map +1 -0
- package/out/src/templator/genListViewBlock.d.ts +19 -0
- package/out/src/templator/genListViewBlock.js +137 -0
- package/out/src/templator/genListViewBlock.js.map +1 -0
- package/out/src/templator/genQueryComponent.d.ts +32 -0
- package/out/src/templator/genQueryComponent.js +307 -0
- package/out/src/templator/genQueryComponent.js.map +1 -0
- package/out/src/templator/genSelectBlock.d.ts +34 -0
- package/out/src/templator/genSelectBlock.js +142 -0
- package/out/src/templator/genSelectBlock.js.map +1 -0
- package/out/src/templator/genTableBlock.d.ts +53 -0
- package/out/src/templator/genTableBlock.js +295 -0
- package/out/src/templator/genTableBlock.js.map +1 -0
- package/out/src/templator/genUpdateBlock.d.ts +6 -0
- package/out/src/templator/genUpdateBlock.js +347 -0
- package/out/src/templator/genUpdateBlock.js.map +1 -0
- package/out/src/templator/index.d.ts +15 -0
- package/out/src/templator/index.js +33 -0
- package/out/src/templator/index.js.map +1 -0
- package/out/src/templator/utils.d.ts +634 -0
- package/out/src/templator/utils.js +412 -0
- package/out/src/templator/utils.js.map +1 -0
- package/out/src/terms/LEVEL_NAME_MAP.d.ts +26 -0
- package/out/src/terms/LEVEL_NAME_MAP.js +30 -0
- package/out/src/terms/LEVEL_NAME_MAP.js.map +1 -0
- package/out/src/test/fixtures/env.d.ts +5 -0
- package/out/src/test/fixtures/env.js +21 -0
- package/out/src/test/fixtures/env.js.map +1 -0
- package/out/src/test/integration/connect-file.d.ts +1 -0
- package/out/src/test/integration/connect-file.js +49 -0
- package/out/src/test/integration/connect-file.js.map +1 -0
- package/out/src/test/units/app/App.spec.d.ts +1 -0
- package/out/src/test/units/app/App.spec.js +17 -0
- package/out/src/test/units/app/App.spec.js.map +1 -0
- package/out/src/test/units/app/Service.spec.d.ts +1 -0
- package/out/src/test/units/app/Service.spec.js +24 -0
- package/out/src/test/units/app/Service.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/Assignment.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/Assignment.spec.js +43 -0
- package/out/src/test/units/baseTypes/Assignment.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/AssignmentExpression.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/AssignmentExpression.spec.js +39 -0
- package/out/src/test/units/baseTypes/AssignmentExpression.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/CallLogic.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/CallLogic.spec.js +44 -0
- package/out/src/test/units/baseTypes/CallLogic.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/StringLiteral.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/StringLiteral.spec.js +75 -0
- package/out/src/test/units/baseTypes/StringLiteral.spec.js.map +1 -0
- package/out/src/test/units/baseTypes/new.spec.d.ts +1 -0
- package/out/src/test/units/baseTypes/new.spec.js +37 -0
- package/out/src/test/units/baseTypes/new.spec.js.map +1 -0
- package/out/src/test/units/common/Vertex.spec.d.ts +1 -0
- package/out/src/test/units/common/Vertex.spec.js +22 -0
- package/out/src/test/units/common/Vertex.spec.js.map +1 -0
- package/out/src/test/units/data/Entity.spec.d.ts +1 -0
- package/out/src/test/units/data/Entity.spec.js +12 -0
- package/out/src/test/units/data/Entity.spec.js.map +1 -0
- package/out/src/test/units/login.spec.d.ts +1 -0
- package/out/src/test/units/login.spec.js +12 -0
- package/out/src/test/units/login.spec.js.map +1 -0
- package/out/src/test/units/page/Block.spec.d.ts +0 -0
- package/out/src/test/units/page/Block.spec.js +13 -0
- package/out/src/test/units/page/Block.spec.js.map +1 -0
- package/out/src/test/units/page/Element.spec.d.ts +1 -0
- package/out/src/test/units/page/Element.spec.js +44 -0
- package/out/src/test/units/page/Element.spec.js.map +1 -0
- package/out/src/test/units/temp/temp.spec.d.ts +1 -0
- package/out/src/test/units/temp/temp.spec.js +68 -0
- package/out/src/test/units/temp/temp.spec.js.map +1 -0
- package/out/src/translator/index.d.ts +47 -0
- package/out/src/translator/index.js +108 -0
- package/out/src/translator/index.js.map +1 -0
- package/out/src/translator/lsp.d.ts +45 -0
- package/out/src/translator/lsp.js +6 -0
- package/out/src/translator/lsp.js.map +1 -0
- package/out/src/translator/tsp.d.ts +12 -0
- package/out/src/translator/tsp.js +3 -0
- package/out/src/translator/tsp.js.map +1 -0
- package/out/src/types/app/App.d.ts +148 -0
- package/out/src/types/app/App.js +358 -0
- package/out/src/types/app/App.js.map +1 -0
- package/out/src/types/app/History.d.ts +36 -0
- package/out/src/types/app/History.js +366 -0
- package/out/src/types/app/History.js.map +1 -0
- package/out/src/types/app/Service.d.ts +220 -0
- package/out/src/types/app/Service.js +831 -0
- package/out/src/types/app/Service.js.map +1 -0
- package/out/src/types/cache.d.ts +6 -0
- package/out/src/types/cache.js +54 -0
- package/out/src/types/cache.js.map +1 -0
- package/out/src/types/cacheData.d.ts +4 -0
- package/out/src/types/cacheData.js +34 -0
- package/out/src/types/cacheData.js.map +1 -0
- package/out/src/types/classMap.d.ts +4 -0
- package/out/src/types/classMap.js +5 -0
- package/out/src/types/classMap.js.map +1 -0
- package/out/src/types/common/ComponentAPI.d.ts +110 -0
- package/out/src/types/common/ComponentAPI.js +3 -0
- package/out/src/types/common/ComponentAPI.js.map +1 -0
- package/out/src/types/common/EventEmitter.d.ts +37 -0
- package/out/src/types/common/EventEmitter.js +70 -0
- package/out/src/types/common/EventEmitter.js.map +1 -0
- package/out/src/types/common/PackageJSON.d.ts +32 -0
- package/out/src/types/common/PackageJSON.js +3 -0
- package/out/src/types/common/PackageJSON.js.map +1 -0
- package/out/src/types/common/Vertex.d.ts +205 -0
- package/out/src/types/common/Vertex.js +591 -0
- package/out/src/types/common/Vertex.js.map +1 -0
- package/out/src/types/config.d.ts +32 -0
- package/out/src/types/config.js +30 -0
- package/out/src/types/config.js.map +1 -0
- package/out/src/types/data/DataNode.d.ts +24 -0
- package/out/src/types/data/DataNode.js +52 -0
- package/out/src/types/data/DataNode.js.map +1 -0
- package/out/src/types/data/Entity.d.ts +124 -0
- package/out/src/types/data/Entity.js +537 -0
- package/out/src/types/data/Entity.js.map +1 -0
- package/out/src/types/data/EntityIndex.d.ts +87 -0
- package/out/src/types/data/EntityIndex.js +262 -0
- package/out/src/types/data/EntityIndex.js.map +1 -0
- package/out/src/types/data/EntityProperty.d.ts +196 -0
- package/out/src/types/data/EntityProperty.js +584 -0
- package/out/src/types/data/EntityProperty.js.map +1 -0
- package/out/src/types/data/Enum.d.ts +97 -0
- package/out/src/types/data/Enum.js +267 -0
- package/out/src/types/data/Enum.js.map +1 -0
- package/out/src/types/data/EnumItem.d.ts +57 -0
- package/out/src/types/data/EnumItem.js +170 -0
- package/out/src/types/data/EnumItem.js.map +1 -0
- package/out/src/types/data/GlobalLogicNode.d.ts +44 -0
- package/out/src/types/data/GlobalLogicNode.js +201 -0
- package/out/src/types/data/GlobalLogicNode.js.map +1 -0
- package/out/src/types/data/Interface.d.ts +153 -0
- package/out/src/types/data/Interface.js +482 -0
- package/out/src/types/data/Interface.js.map +1 -0
- package/out/src/types/data/Schema.d.ts +121 -0
- package/out/src/types/data/Schema.js +3 -0
- package/out/src/types/data/Schema.js.map +1 -0
- package/out/src/types/data/Structure.d.ts +104 -0
- package/out/src/types/data/Structure.js +319 -0
- package/out/src/types/data/Structure.js.map +1 -0
- package/out/src/types/data/StructureProperty.d.ts +134 -0
- package/out/src/types/data/StructureProperty.js +380 -0
- package/out/src/types/data/StructureProperty.js.map +1 -0
- package/out/src/types/data/basicTypes.d.ts +25 -0
- package/out/src/types/data/basicTypes.js +77 -0
- package/out/src/types/data/basicTypes.js.map +1 -0
- package/out/src/types/data/dataTypeUtils.d.ts +94 -0
- package/out/src/types/data/dataTypeUtils.js +441 -0
- package/out/src/types/data/dataTypeUtils.js.map +1 -0
- package/out/src/types/data/dataTypes.d.ts +20 -0
- package/out/src/types/data/dataTypes.js +47 -0
- package/out/src/types/data/dataTypes.js.map +1 -0
- package/out/src/types/data/entityUtils.d.ts +164 -0
- package/out/src/types/data/entityUtils.js +632 -0
- package/out/src/types/data/entityUtils.js.map +1 -0
- package/out/src/types/data/genBlock/builtInFunctions.json +545 -0
- package/out/src/types/data/genBlock/genCallComponentLogic.d.ts +20 -0
- package/out/src/types/data/genBlock/genCallComponentLogic.js +32 -0
- package/out/src/types/data/genBlock/genCallComponentLogic.js.map +1 -0
- package/out/src/types/data/genBlock/genCallInterface.d.ts +41 -0
- package/out/src/types/data/genBlock/genCallInterface.js +86 -0
- package/out/src/types/data/genBlock/genCallInterface.js.map +1 -0
- package/out/src/types/data/genBlock/genCreateBlock.d.ts +10 -0
- package/out/src/types/data/genBlock/genCreateBlock.js +313 -0
- package/out/src/types/data/genBlock/genCreateBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genCurdBlock.d.ts +4 -0
- package/out/src/types/data/genBlock/genCurdBlock.js +648 -0
- package/out/src/types/data/genBlock/genCurdBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genCurdEditTableBlock.d.ts +3 -0
- package/out/src/types/data/genBlock/genCurdEditTableBlock.js +578 -0
- package/out/src/types/data/genBlock/genCurdEditTableBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genEditTableBlock.d.ts +234 -0
- package/out/src/types/data/genBlock/genEditTableBlock.js +419 -0
- package/out/src/types/data/genBlock/genEditTableBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genEnumSelectBlock.d.ts +10 -0
- package/out/src/types/data/genBlock/genEnumSelectBlock.js +23 -0
- package/out/src/types/data/genBlock/genEnumSelectBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genGetBlock.d.ts +6 -0
- package/out/src/types/data/genBlock/genGetBlock.js +151 -0
- package/out/src/types/data/genBlock/genGetBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genGridViewBlock.d.ts +136 -0
- package/out/src/types/data/genBlock/genGridViewBlock.js +274 -0
- package/out/src/types/data/genBlock/genGridViewBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genListViewBlock.d.ts +63 -0
- package/out/src/types/data/genBlock/genListViewBlock.js +110 -0
- package/out/src/types/data/genBlock/genListViewBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genQueryComponent.d.ts +336 -0
- package/out/src/types/data/genBlock/genQueryComponent.js +526 -0
- package/out/src/types/data/genBlock/genQueryComponent.js.map +1 -0
- package/out/src/types/data/genBlock/genSelectBlock.d.ts +63 -0
- package/out/src/types/data/genBlock/genSelectBlock.js +106 -0
- package/out/src/types/data/genBlock/genSelectBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genTableBlock.d.ts +136 -0
- package/out/src/types/data/genBlock/genTableBlock.js +270 -0
- package/out/src/types/data/genBlock/genTableBlock.js.map +1 -0
- package/out/src/types/data/genBlock/genUpdateBlock.d.ts +6 -0
- package/out/src/types/data/genBlock/genUpdateBlock.js +384 -0
- package/out/src/types/data/genBlock/genUpdateBlock.js.map +1 -0
- package/out/src/types/data/genBlock/index.d.ts +17 -0
- package/out/src/types/data/genBlock/index.js +31 -0
- package/out/src/types/data/genBlock/index.js.map +1 -0
- package/out/src/types/data/genBlock/utils.d.ts +99 -0
- package/out/src/types/data/genBlock/utils.js +224 -0
- package/out/src/types/data/genBlock/utils.js.map +1 -0
- package/out/src/types/data/genericTypes.d.ts +40 -0
- package/out/src/types/data/genericTypes.js +145 -0
- package/out/src/types/data/genericTypes.js.map +1 -0
- package/out/src/types/data/systemTypes.d.ts +9 -0
- package/out/src/types/data/systemTypes.js +1563 -0
- package/out/src/types/data/systemTypes.js.map +1 -0
- package/out/src/types/decorators/index.d.ts +31 -0
- package/out/src/types/decorators/index.js +121 -0
- package/out/src/types/decorators/index.js.map +1 -0
- package/out/src/types/enum.d.ts +6 -0
- package/out/src/types/enum.js +11 -0
- package/out/src/types/enum.js.map +1 -0
- package/out/src/types/index.d.ts +145 -0
- package/out/src/types/index.js +226 -0
- package/out/src/types/index.js.map +1 -0
- package/out/src/types/logic/BaseVariable.d.ts +75 -0
- package/out/src/types/logic/BaseVariable.js +159 -0
- package/out/src/types/logic/BaseVariable.js.map +1 -0
- package/out/src/types/logic/Logic.d.ts +180 -0
- package/out/src/types/logic/Logic.js +591 -0
- package/out/src/types/logic/Logic.js.map +1 -0
- package/out/src/types/logic/LogicItem.d.ts +320 -0
- package/out/src/types/logic/LogicItem.js +1295 -0
- package/out/src/types/logic/LogicItem.js.map +1 -0
- package/out/src/types/logic/Param.d.ts +86 -0
- package/out/src/types/logic/Param.js +367 -0
- package/out/src/types/logic/Param.js.map +1 -0
- package/out/src/types/logic/Return.d.ts +73 -0
- package/out/src/types/logic/Return.js +313 -0
- package/out/src/types/logic/Return.js.map +1 -0
- package/out/src/types/logic/Variable.d.ts +72 -0
- package/out/src/types/logic/Variable.js +309 -0
- package/out/src/types/logic/Variable.js.map +1 -0
- package/out/src/types/logic/expressions/MemberExpression.d.ts +23 -0
- package/out/src/types/logic/expressions/MemberExpression.js +52 -0
- package/out/src/types/logic/expressions/MemberExpression.js.map +1 -0
- package/out/src/types/logic/expressions/NumericLiteral.d.ts +19 -0
- package/out/src/types/logic/expressions/NumericLiteral.js +42 -0
- package/out/src/types/logic/expressions/NumericLiteral.js.map +1 -0
- package/out/src/types/logic/expressions/Unparsed.d.ts +19 -0
- package/out/src/types/logic/expressions/Unparsed.js +42 -0
- package/out/src/types/logic/expressions/Unparsed.js.map +1 -0
- package/out/src/types/logic/nodes/BuiltInFuncParam.d.ts +27 -0
- package/out/src/types/logic/nodes/BuiltInFuncParam.js +56 -0
- package/out/src/types/logic/nodes/BuiltInFuncParam.js.map +1 -0
- package/out/src/types/logic/nodes/BuiltInFunction.d.ts +24 -0
- package/out/src/types/logic/nodes/BuiltInFunction.js +55 -0
- package/out/src/types/logic/nodes/BuiltInFunction.js.map +1 -0
- package/out/src/types/logic/nodes/CallConsoleLog.d.ts +19 -0
- package/out/src/types/logic/nodes/CallConsoleLog.js +42 -0
- package/out/src/types/logic/nodes/CallConsoleLog.js.map +1 -0
- package/out/src/types/logic/nodes/CallInterParam.d.ts +23 -0
- package/out/src/types/logic/nodes/CallInterParam.js +49 -0
- package/out/src/types/logic/nodes/CallInterParam.js.map +1 -0
- package/out/src/types/logic/nodes/CallInterface.d.ts +24 -0
- package/out/src/types/logic/nodes/CallInterface.js +49 -0
- package/out/src/types/logic/nodes/CallInterface.js.map +1 -0
- package/out/src/types/logic/nodes/CallLogic.d.ts +24 -0
- package/out/src/types/logic/nodes/CallLogic.js +55 -0
- package/out/src/types/logic/nodes/CallLogic.js.map +1 -0
- package/out/src/types/logic/nodes/CallMessageShow.d.ts +27 -0
- package/out/src/types/logic/nodes/CallMessageShow.js +56 -0
- package/out/src/types/logic/nodes/CallMessageShow.js.map +1 -0
- package/out/src/types/logic/nodes/Destination.d.ts +32 -0
- package/out/src/types/logic/nodes/Destination.js +73 -0
- package/out/src/types/logic/nodes/Destination.js.map +1 -0
- package/out/src/types/logic/nodes/DestinationParam.d.ts +24 -0
- package/out/src/types/logic/nodes/DestinationParam.js +49 -0
- package/out/src/types/logic/nodes/DestinationParam.js.map +1 -0
- package/out/src/types/logic/nodes/JSBlock.d.ts +19 -0
- package/out/src/types/logic/nodes/JSBlock.js +46 -0
- package/out/src/types/logic/nodes/JSBlock.js.map +1 -0
- package/out/src/types/logic/nodes/JSONDeserialize.d.ts +19 -0
- package/out/src/types/logic/nodes/JSONDeserialize.js +42 -0
- package/out/src/types/logic/nodes/JSONDeserialize.js.map +1 -0
- package/out/src/types/logic/nodes/JSONSerialize.d.ts +19 -0
- package/out/src/types/logic/nodes/JSONSerialize.js +42 -0
- package/out/src/types/logic/nodes/JSONSerialize.js.map +1 -0
- package/out/src/types/logic/nodes/ProcessOutcome.d.ts +27 -0
- package/out/src/types/logic/nodes/ProcessOutcome.js +56 -0
- package/out/src/types/logic/nodes/ProcessOutcome.js.map +1 -0
- package/out/src/types/logic/tools.d.ts +15 -0
- package/out/src/types/logic/tools.js +164 -0
- package/out/src/types/logic/tools.js.map +1 -0
- package/out/src/types/logic/translator.d.ts +1 -0
- package/out/src/types/logic/translator.js +624 -0
- package/out/src/types/logic/translator.js.map +1 -0
- package/out/src/types/login.d.ts +7 -0
- package/out/src/types/login.js +39 -0
- package/out/src/types/login.js.map +1 -0
- package/out/src/types/nuims/Nuims.d.ts +128 -0
- package/out/src/types/nuims/Nuims.js +446 -0
- package/out/src/types/nuims/Nuims.js.map +1 -0
- package/out/src/types/page/Attr.d.ts +79 -0
- package/out/src/types/page/Attr.js +217 -0
- package/out/src/types/page/Attr.js.map +1 -0
- package/out/src/types/page/Block.d.ts +65 -0
- package/out/src/types/page/Block.js +82 -0
- package/out/src/types/page/Block.js.map +1 -0
- package/out/src/types/page/Directive.d.ts +78 -0
- package/out/src/types/page/Directive.js +202 -0
- package/out/src/types/page/Directive.js.map +1 -0
- package/out/src/types/page/Element.d.ts +266 -0
- package/out/src/types/page/Element.js +1418 -0
- package/out/src/types/page/Element.js.map +1 -0
- package/out/src/types/page/Event.d.ts +63 -0
- package/out/src/types/page/Event.js +212 -0
- package/out/src/types/page/Event.js.map +1 -0
- package/out/src/types/page/Lifecycle.d.ts +58 -0
- package/out/src/types/page/Lifecycle.js +192 -0
- package/out/src/types/page/Lifecycle.js.map +1 -0
- package/out/src/types/page/Page.d.ts +95 -0
- package/out/src/types/page/Page.js +394 -0
- package/out/src/types/page/Page.js.map +1 -0
- package/out/src/types/page/View.d.ts +253 -0
- package/out/src/types/page/View.js +1178 -0
- package/out/src/types/page/View.js.map +1 -0
- package/out/src/types/page/ViewParam.d.ts +73 -0
- package/out/src/types/page/ViewParam.js +296 -0
- package/out/src/types/page/ViewParam.js.map +1 -0
- package/out/src/types/page/ViewVariable.d.ts +73 -0
- package/out/src/types/page/ViewVariable.js +276 -0
- package/out/src/types/page/ViewVariable.js.map +1 -0
- package/out/src/types/permission/Permission.d.ts +41 -0
- package/out/src/types/permission/Permission.js +122 -0
- package/out/src/types/permission/Permission.js.map +1 -0
- package/out/src/types/process/Process.d.ts +118 -0
- package/out/src/types/process/Process.js +357 -0
- package/out/src/types/process/Process.js.map +1 -0
- package/out/src/types/process/ProcessComponent.d.ts +133 -0
- package/out/src/types/process/ProcessComponent.js +339 -0
- package/out/src/types/process/ProcessComponent.js.map +1 -0
- package/out/src/types/process/ProcessComponentAttribute.d.ts +63 -0
- package/out/src/types/process/ProcessComponentAttribute.js +163 -0
- package/out/src/types/process/ProcessComponentAttribute.js.map +1 -0
- package/out/src/types/process/ProcessComponentProperty.d.ts +37 -0
- package/out/src/types/process/ProcessComponentProperty.js +81 -0
- package/out/src/types/process/ProcessComponentProperty.js.map +1 -0
- package/out/src/types/process/ProcessComponentReturn.d.ts +77 -0
- package/out/src/types/process/ProcessComponentReturn.js +260 -0
- package/out/src/types/process/ProcessComponentReturn.js.map +1 -0
- package/out/src/types/process/ProcessComponentVariable.d.ts +78 -0
- package/out/src/types/process/ProcessComponentVariable.js +252 -0
- package/out/src/types/process/ProcessComponentVariable.js.map +1 -0
- package/out/src/types/process/ProcessInterface.d.ts +112 -0
- package/out/src/types/process/ProcessInterface.js +227 -0
- package/out/src/types/process/ProcessInterface.js.map +1 -0
- package/out/src/types/process/ProcessParam.d.ts +77 -0
- package/out/src/types/process/ProcessParam.js +261 -0
- package/out/src/types/process/ProcessParam.js.map +1 -0
- package/out/src/types/process/ProcessProperty.d.ts +37 -0
- package/out/src/types/process/ProcessProperty.js +81 -0
- package/out/src/types/process/ProcessProperty.js.map +1 -0
- package/out/src/types/process/ProcessReturn.d.ts +73 -0
- package/out/src/types/process/ProcessReturn.js +237 -0
- package/out/src/types/process/ProcessReturn.js.map +1 -0
- package/out/src/types/utils/index.d.ts +26 -0
- package/out/src/types/utils/index.js +90 -0
- package/out/src/types/utils/index.js.map +1 -0
- package/out/src/types/utils/logger.d.ts +3 -0
- package/out/src/types/utils/logger.js +14 -0
- package/out/src/types/utils/logger.js.map +1 -0
- package/out/src/types/utils/string.d.ts +38 -0
- package/out/src/types/utils/string.js +66 -0
- package/out/src/types/utils/string.js.map +1 -0
- package/out/src/types/utils/traverse.d.ts +35 -0
- package/out/src/types/utils/traverse.js +126 -0
- package/out/src/types/utils/traverse.js.map +1 -0
- package/out/src/utils/index.d.ts +26 -0
- package/out/src/utils/index.js +52 -0
- package/out/src/utils/index.js.map +1 -0
- package/out/src/utils/logger.d.ts +3 -0
- package/out/src/utils/logger.js +11 -0
- package/out/src/utils/logger.js.map +1 -0
- package/out/src/utils/string.d.ts +38 -0
- package/out/src/utils/string.js +66 -0
- package/out/src/utils/string.js.map +1 -0
- package/out/src/utils/traverse.d.ts +35 -0
- package/out/src/utils/traverse.js +126 -0
- package/out/src/utils/traverse.js.map +1 -0
- package/out/test/units/baseTypes/StringLiteral.spec.d.ts +1 -0
- package/out/test/units/baseTypes/StringLiteral.spec.js +71 -0
- package/out/test/units/baseTypes/StringLiteral.spec.js.map +1 -0
- package/out/test/units/baseTypes/new.spec.d.ts +1 -0
- package/out/test/units/baseTypes/new.spec.js +33 -0
- package/out/test/units/baseTypes/new.spec.js.map +1 -0
- package/out/test/units/baseTypes/toEmbeddedTS.spec.d.ts +1 -0
- package/out/test/units/baseTypes/toEmbeddedTS.spec.js +39 -0
- package/out/test/units/baseTypes/toEmbeddedTS.spec.js.map +1 -0
- package/out/test/units/config.spec.d.ts +1 -0
- package/out/test/units/config.spec.js +12 -0
- package/out/test/units/config.spec.js.map +1 -0
- package/out/translator/index.d.ts +39 -0
- package/out/translator/index.js +86 -0
- package/out/translator/index.js.map +1 -0
- package/out/translator/lsp.d.ts +45 -0
- package/out/translator/lsp.js +6 -0
- package/out/translator/lsp.js.map +1 -0
- package/out/translator/tsp.d.ts +12 -0
- package/out/translator/tsp.js +3 -0
- package/out/translator/tsp.js.map +1 -0
- package/out/types/app/App.d.ts +2 -5
- package/out/types/app/App.js +2 -29
- package/out/types/app/App.js.map +1 -1
- package/out/types/app/Service.d.ts +0 -31
- package/out/types/app/Service.js +4 -128
- package/out/types/app/Service.js.map +1 -1
- package/out/types/classMap.d.ts +4 -0
- package/out/types/classMap.js +5 -0
- package/out/types/classMap.js.map +1 -0
- package/out/types/common/Vertex.d.ts +16 -34
- package/out/types/common/Vertex.js +81 -63
- package/out/types/common/Vertex.js.map +1 -1
- package/out/types/config.d.ts +0 -1
- package/out/types/config.js +0 -1
- package/out/types/config.js.map +1 -1
- package/out/types/data/Entity.d.ts +1 -19
- package/out/types/data/Entity.js +2 -38
- package/out/types/data/Entity.js.map +1 -1
- package/out/types/data/EntityProperty.d.ts +0 -4
- package/out/types/data/EntityProperty.js +0 -7
- package/out/types/data/EntityProperty.js.map +1 -1
- package/out/types/data/Enum.d.ts +0 -4
- package/out/types/data/Enum.js +0 -7
- package/out/types/data/Enum.js.map +1 -1
- package/out/types/data/Interface.js +1 -2
- package/out/types/data/Interface.js.map +1 -1
- package/out/types/data/Structure.d.ts +0 -8
- package/out/types/data/Structure.js +0 -19
- package/out/types/data/Structure.js.map +1 -1
- package/out/types/data/dataTypes.d.ts +1 -2
- package/out/types/data/dataTypes.js +7 -41
- package/out/types/data/dataTypes.js.map +1 -1
- package/out/types/data/genBlock/builtInFunctions.json +0 -15
- package/out/types/data/genBlock/genCreateBlock.js +6 -5
- package/out/types/data/genBlock/genCreateBlock.js.map +1 -1
- package/out/types/data/genBlock/genEnumSelectBlock.js +1 -1
- package/out/types/data/genBlock/genEnumSelectBlock.js.map +1 -1
- package/out/types/data/genBlock/genGetBlock.js +1 -1
- package/out/types/data/genBlock/genGetBlock.js.map +1 -1
- package/out/types/data/genBlock/genListViewBlock.js +1 -1
- package/out/types/data/genBlock/genListViewBlock.js.map +1 -1
- package/out/types/data/genBlock/genQueryComponent.js +1 -1
- package/out/types/data/genBlock/genQueryComponent.js.map +1 -1
- package/out/types/data/genBlock/genSelectBlock.js +1 -2
- package/out/types/data/genBlock/genSelectBlock.js.map +1 -1
- package/out/types/data/genBlock/genTableBlock.js +2 -2
- package/out/types/data/genBlock/genTableBlock.js.map +1 -1
- package/out/types/data/genBlock/genUpdateBlock.js +6 -5
- package/out/types/data/genBlock/genUpdateBlock.js.map +1 -1
- package/out/types/data/genBlock/index.d.ts +2 -2
- package/out/types/data/genBlock/index.js +2 -2
- package/out/types/data/genBlock/index.js.map +1 -1
- package/out/types/data/genericTypes.d.ts +1 -1
- package/out/types/data/genericTypes.js +2 -6
- package/out/types/data/genericTypes.js.map +1 -1
- package/out/types/data/systemTypes.js +0 -73
- package/out/types/data/systemTypes.js.map +1 -1
- package/out/types/decorators/index.d.ts +1 -1
- package/out/types/decorators/index.js +7 -2
- package/out/types/decorators/index.js.map +1 -1
- package/out/types/generator/data.js +0 -4
- package/out/types/generator/data.js.map +1 -1
- package/out/types/index.d.ts +2 -5
- package/out/types/index.js +5 -10
- package/out/types/index.js.map +1 -1
- package/out/types/logic/BreakPoint.d.ts +42 -0
- package/out/types/logic/BreakPoint.js +155 -0
- package/out/types/logic/BreakPoint.js.map +1 -0
- package/out/types/logic/Debugger.d.ts +156 -0
- package/out/types/logic/Debugger.js +912 -0
- package/out/types/logic/Debugger.js.map +1 -0
- package/out/types/logic/Logic.d.ts +0 -20
- package/out/types/logic/Logic.js +1 -47
- package/out/types/logic/Logic.js.map +1 -1
- package/out/types/logic/LogicItem.d.ts +2 -3
- package/out/types/logic/LogicItem.js +48 -113
- package/out/types/logic/LogicItem.js.map +1 -1
- package/out/types/logic/Param.js +1 -1
- package/out/types/logic/Param.js.map +1 -1
- package/out/types/logic/translator.js +51 -74
- package/out/types/logic/translator.js.map +1 -1
- package/out/types/page/Element.js +9 -21
- package/out/types/page/Element.js.map +1 -1
- package/out/types/page/Page.js +0 -7
- package/out/types/page/Page.js.map +1 -1
- package/out/types/page/View.d.ts +1 -1
- package/out/types/page/View.js +1 -29
- package/out/types/page/View.js.map +1 -1
- package/out/types/process/Process.js +3 -3
- package/out/types/process/Process.js.map +1 -1
- package/out/types/process/ProcessComponent.js +1 -1
- package/out/types/process/ProcessComponent.js.map +1 -1
- package/out/types/process/ProcessParam.js +1 -1
- package/out/types/process/ProcessParam.js.map +1 -1
- package/out/types/typeCheck.js +2 -12
- package/out/types/typeCheck.js.map +1 -1
- package/out/types/utils/string.d.ts +4 -0
- package/out/types/utils/string.js +4 -0
- package/out/types/utils/string.js.map +1 -1
- package/package.json +10 -14
- package/src/automate/engine/index.js +308 -0
- package/src/automate/engine/utils.js +312 -0
- package/src/common/BaseNode.ts +635 -0
- package/src/common/Command.ts +27 -0
- package/src/common/ComponentAPI.ts +103 -0
- package/src/common/EventEmitter.ts +86 -0
- package/src/common/Messager.ts +225 -0
- package/src/common/classMap.ts +3 -0
- package/src/common/index.ts +4 -0
- package/src/concepts/App__.ts +2492 -0
- package/src/concepts/Argument__.ts +191 -0
- package/src/concepts/Assignment__.ts +235 -0
- package/src/concepts/Attribute__.ts +251 -0
- package/src/concepts/BinaryExpression__.ts +270 -0
- package/src/concepts/BindAttribute__.ts +500 -0
- package/src/concepts/BindDirective__.ts +238 -0
- package/src/concepts/BindEvent__.ts +339 -0
- package/src/concepts/BooleanLiteral__.ts +82 -0
- package/src/concepts/CallFunction__.ts +307 -0
- package/src/concepts/CallInterface__.ts +295 -0
- package/src/concepts/CallLogic__.ts +390 -0
- package/src/concepts/CallQueryComponent__.ts +1006 -0
- package/src/concepts/Comment__.ts +104 -0
- package/src/concepts/CompletionProperty__.ts +244 -0
- package/src/concepts/Constant__.ts +243 -0
- package/src/concepts/DataElement__.ts +134 -0
- package/src/concepts/Destination__.ts +316 -0
- package/src/concepts/End__.ts +108 -0
- package/src/concepts/EntityIndex__.ts +197 -0
- package/src/concepts/EntityProperty__.ts +497 -0
- package/src/concepts/Entity__.ts +695 -0
- package/src/concepts/EnumItem__.ts +139 -0
- package/src/concepts/Enum__.ts +337 -0
- package/src/concepts/Event__.ts +316 -0
- package/src/concepts/ForEachStatement__.ts +562 -0
- package/src/concepts/Function__.ts +915 -0
- package/src/concepts/Identifier__.ts +171 -0
- package/src/concepts/IfStatement__.ts +478 -0
- package/src/concepts/InterfaceParam__.ts +305 -0
- package/src/concepts/Interface__.ts +610 -0
- package/src/concepts/JSBlock__.ts +113 -0
- package/src/concepts/LogicItem__.ts +232 -0
- package/src/concepts/Logic__.ts +1487 -0
- package/src/concepts/MemberExpression__.ts +240 -0
- package/src/concepts/Module__.ts +1718 -0
- package/src/concepts/Namespace__.ts +2517 -0
- package/src/concepts/NullLiteral__.ts +78 -0
- package/src/concepts/NumericLiteral__.ts +182 -0
- package/src/concepts/Param__.ts +364 -0
- package/src/concepts/Point__.ts +84 -0
- package/src/concepts/ProcessComponent__.ts +502 -0
- package/src/concepts/ProcessElement__.ts +1370 -0
- package/src/concepts/ProcessOutcome__.ts +97 -0
- package/src/concepts/Process__.ts +1113 -0
- package/src/concepts/QueryAggregateExpression__.ts +197 -0
- package/src/concepts/QueryFieldExpression__.ts +133 -0
- package/src/concepts/QueryFromExpression__.ts +261 -0
- package/src/concepts/QueryGroupByExpression__.ts +144 -0
- package/src/concepts/QueryJoinExpression__.ts +448 -0
- package/src/concepts/QueryLimitExpression__.ts +193 -0
- package/src/concepts/QueryOrderByExpression__.ts +207 -0
- package/src/concepts/QuerySelectExpression__.ts +285 -0
- package/src/concepts/Rect__.ts +96 -0
- package/src/concepts/Return__.ts +334 -0
- package/src/concepts/Role__.ts +139 -0
- package/src/concepts/Slot__.ts +121 -0
- package/src/concepts/SqlQueryComponent__.ts +145 -0
- package/src/concepts/Start__.ts +86 -0
- package/src/concepts/StringLiteral__.ts +140 -0
- package/src/concepts/StructureProperty__.ts +327 -0
- package/src/concepts/Structure__.ts +559 -0
- package/src/concepts/SwitchCase__.ts +363 -0
- package/src/concepts/SwitchStatement__.ts +261 -0
- package/src/concepts/Theme__.ts +94 -0
- package/src/concepts/Transactional__.ts +164 -0
- package/src/concepts/TypeAnnotation__.ts +373 -0
- package/src/concepts/TypeParam__.ts +68 -0
- package/src/concepts/UnaryExpression__.ts +177 -0
- package/src/concepts/Unparsed__.ts +98 -0
- package/src/concepts/UseComponent__.ts +84 -0
- package/src/concepts/ValidationRule__.ts +292 -0
- package/src/concepts/Variable__.ts +312 -0
- package/src/concepts/ViewComponent__.ts +1098 -0
- package/src/concepts/ViewElement__.ts +1562 -0
- package/src/concepts/View__.ts +1842 -0
- package/src/concepts/WhileStatement__.ts +323 -0
- package/src/concepts/basics/stdlib/index.ts +20 -0
- package/src/concepts/basics/stdlib/nasl.collection.ts +54 -0
- package/src/concepts/basics/stdlib/nasl.core.ts +12 -0
- package/src/concepts/basics/stdlib/nasl.interface.ts +43 -0
- package/src/concepts/basics/stdlib/nasl.process.ts +47 -0
- package/src/concepts/basics/stdlib/nasl.ui.ts +84 -0
- package/src/concepts/basics/stdlib/nasl.util.ts +585 -0
- package/src/concepts/basics/stdlib/nasl.validate.ts +523 -0
- package/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts +26 -0
- package/src/concepts/basics/types/coreTypeList.ts +14 -0
- package/src/concepts/basics/types/index.ts +20 -0
- package/src/concepts/index.ts +5 -0
- package/src/concepts/index__.ts +77 -0
- package/src/config.ts +80 -0
- package/src/decorators/index.ts +153 -0
- package/src/generator/compileComponent.ts +19 -0
- package/src/generator/genBundleFiles.ts +258 -0
- package/src/generator/genHash.ts +13 -0
- package/src/generator/index.ts +4 -0
- package/src/generator/styleReplacer.ts +41 -0
- package/src/index.ts +10 -0
- package/src/manager/diagnostic.ts +129 -0
- package/src/manager/history.ts +0 -0
- package/src/manager/problem.ts +0 -0
- package/src/server/entity2LogicNamespace.ts +188 -0
- package/src/server/getFunctions.ts +10 -0
- package/src/server/getInterfaces.ts +47 -0
- package/src/server/getLogics.ts +94 -0
- package/src/server/getMemberIdentifier.ts +110 -0
- package/src/server/getProcessComponents.ts +9 -0
- package/src/server/getProcesses.ts +129 -0
- package/src/server/getValidates.ts +10 -0
- package/src/server/index.ts +21 -0
- package/src/server/naslServer.ts +1194 -0
- package/src/server/process2LogicNamespace.ts +20 -0
- package/src/server/translator.ts +148 -0
- package/src/service/app/index.js +1 -1
- package/src/service/assets/index.js +1 -1
- package/src/service/{create → creator}/add.configs.js +0 -0
- package/src/service/{create → creator}/errHandles.js +0 -0
- package/src/service/creator/index.js +80 -0
- package/src/service/storage/index.ts +6 -0
- package/src/service/storage/init.ts +160 -0
- package/src/service/storage/jsoner.ts +139 -0
- package/src/service/storage/map.ts +57 -0
- package/src/service/storage/storagePoint.ts +73 -0
- package/src/service/video/BaseService.js +68 -0
- package/src/service/video/MainCallbackService.js +207 -0
- package/src/service/video/VideoTranscribe.js +102 -0
- package/src/service/video/publishService.js +61 -0
- package/src/templator/builtInFunctions.json +1 -0
- package/src/templator/genCallComponentLogic.ts +27 -0
- package/src/templator/genCreateBlock.ts +281 -0
- package/src/templator/genCurdEditMultipleKeyBlock.ts +432 -0
- package/src/templator/genCurdMultipleKeyBlock.ts +624 -0
- package/src/templator/genEditTableBlock.ts +284 -0
- package/src/templator/genEnumSelectBlock.ts +22 -0
- package/src/templator/genGetBlock.ts +121 -0
- package/src/templator/genGridViewBlock.ts +306 -0
- package/src/templator/genListViewBlock.ts +122 -0
- package/src/templator/genQueryComponent.ts +287 -0
- package/src/templator/genSelectBlock.ts +125 -0
- package/src/templator/genTableBlock.ts +295 -0
- package/src/templator/genUpdateBlock.ts +324 -0
- package/src/templator/index.ts +18 -0
- package/src/templator/utils.ts +640 -0
- package/src/terms/LEVEL_NAME_MAP.ts +31 -0
- package/src/test/examples/app1.json +17 -0
- package/src/test/fixtures/env.ts +4 -4
- package/src/test/integration/connect-create-file.ts +14 -0
- package/src/test/integration/connect-file.ts +24 -0
- package/src/test/units/baseTypes/Assignment.spec.ts +20 -0
- package/src/test/units/baseTypes/CallLogic.spec.ts +22 -0
- package/src/test/units/baseTypes/StringLiteral.spec.ts +60 -0
- package/src/test/units/baseTypes/new.spec.ts +13 -0
- package/src/test/units/common/Vertex.spec.ts +17 -19
- package/src/test/units/data/Entity.spec.ts +1 -1
- package/src/test/units/login.spec.ts +3 -3
- package/src/test/units/page/Block.spec.ts +12 -12
- package/src/test/units/page/Element.spec.ts +11 -11
- package/src/test/units/temp/temp.spec.ts +2 -2
- package/src/translator/index.ts +131 -0
- package/src/translator/lsp.ts +50 -0
- package/src/translator/tsp.ts +14 -0
- package/src/utils/index.ts +52 -0
- package/src/utils/logger.ts +8 -0
- package/src/utils/string.ts +60 -0
- package/src/utils/traverse.ts +152 -0
- package/tsconfig.json +6 -13
- package/analysis/mergeBlock/README.md +0 -14
- package/analysis/mergeBlock/raw2.json +0 -2522
- package/analysis/mergeBlock/raw3.json +0 -505
- package/analysis/mergeBlock/req2.json +0 -2219
- package/analysis/mergeBlock/req3.json +0 -462
- package/analysis/mergeBlock/script.js +0 -159
- package/docs/assets/css/main.css +0 -2638
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/app_app.app.html +0 -1359
- package/docs/classes/app_service.microservice.html +0 -1572
- package/docs/classes/app_service.service.html +0 -1233
- package/docs/classes/app_service.webservice.html +0 -1635
- package/docs/classes/common_eventemitter.eventemitter.html +0 -387
- package/docs/classes/common_vertex.vertex.html +0 -1086
- package/docs/classes/data_datanode.datanode.html +0 -1157
- package/docs/classes/data_entity.entity.html +0 -1656
- package/docs/classes/data_entityproperty.entityproperty.html +0 -1903
- package/docs/classes/data_enum.enum.html +0 -1402
- package/docs/classes/data_enumitem.enumitem.html +0 -1252
- package/docs/classes/data_interface.interface.html +0 -1673
- package/docs/classes/data_structure.structure.html +0 -1427
- package/docs/classes/data_structureproperty.structureproperty.html +0 -1656
- package/docs/classes/logic_basevariable.basevariable.html +0 -1261
- package/docs/classes/logic_logic.logic.html +0 -1639
- package/docs/classes/logic_logicitem.expressionnode.html +0 -1982
- package/docs/classes/logic_logicitem.logicitem.html +0 -1828
- package/docs/classes/logic_logicitem.logicnode.html +0 -2229
- package/docs/classes/logic_param.param.html +0 -1707
- package/docs/classes/logic_return.return.html +0 -1605
- package/docs/classes/logic_variable.variable.html +0 -1631
- package/docs/classes/nuims_nuims.nuims.html +0 -596
- package/docs/classes/page_attr.attr.html +0 -1335
- package/docs/classes/page_block.block.html +0 -1272
- package/docs/classes/page_directive.directive.html +0 -1350
- package/docs/classes/page_element.element.html +0 -2118
- package/docs/classes/page_event.event.html +0 -1284
- package/docs/classes/page_lifecycle.lifecycle.html +0 -1286
- package/docs/classes/page_page.page.html +0 -1389
- package/docs/classes/page_view.view.html +0 -2299
- package/docs/classes/page_viewparam.viewparam.html +0 -1727
- package/docs/classes/page_viewvariable.viewvariable.html +0 -1668
- package/docs/classes/process_process.process.html +0 -1532
- package/docs/classes/process_processcomponent.processcomponent.html +0 -1589
- package/docs/classes/process_processcomponentattribute.processcomponentattribute.html +0 -1236
- package/docs/classes/process_processcomponentproperty.processcomponentproperty.html +0 -1727
- package/docs/classes/process_processcomponentreturn.processcomponentreturn.html +0 -1704
- package/docs/classes/process_processcomponentvariable.processcomponentvariable.html +0 -1679
- package/docs/classes/process_processinterface.processinterface.html +0 -1462
- package/docs/classes/process_processparam.processparam.html +0 -1778
- package/docs/classes/process_processproperty.processproperty.html +0 -1727
- package/docs/classes/process_processreturn.processreturn.html +0 -1678
- package/docs/enums/app_service.service_type.html +0 -186
- package/docs/enums/data_basictypes.basic_type.html +0 -312
- package/docs/enums/index.level_enum.html +0 -655
- package/docs/enums/logic_logicitem.logic_type.html +0 -441
- package/docs/interfaces/app_service.assetsinfo.html +0 -209
- package/docs/interfaces/common_packagejson.default.html +0 -431
- package/docs/interfaces/data_entity.resolver.html +0 -228
- package/docs/interfaces/data_entityproperty.display.html +0 -214
- package/docs/interfaces/data_schema.arrayschema.html +0 -306
- package/docs/interfaces/data_schema.baseschema.html +0 -361
- package/docs/interfaces/data_schema.basicrefschema.html +0 -362
- package/docs/interfaces/data_schema.basicschema.html +0 -334
- package/docs/interfaces/data_schema.booleanschema.html +0 -306
- package/docs/interfaces/data_schema.enumitemschema.html +0 -225
- package/docs/interfaces/data_schema.enumschema.html +0 -306
- package/docs/interfaces/data_schema.integerschema.html +0 -334
- package/docs/interfaces/data_schema.mapschema.html +0 -320
- package/docs/interfaces/data_schema.numberschema.html +0 -334
- package/docs/interfaces/data_schema.objectschema.html +0 -313
- package/docs/interfaces/data_schema.refschema.html +0 -332
- package/docs/interfaces/data_schema.schema.html +0 -511
- package/docs/interfaces/data_schema.setschema.html +0 -306
- package/docs/interfaces/data_schema.stringschema.html +0 -334
- package/docs/interfaces/history.historyrecord.html +0 -183
- package/docs/interfaces/index.arrayschema.html +0 -261
- package/docs/interfaces/index.baseschema.html +0 -236
- package/docs/interfaces/index.basicrefschema.html +0 -317
- package/docs/interfaces/index.basicschema.html +0 -289
- package/docs/interfaces/index.booleanschema.html +0 -261
- package/docs/interfaces/index.enumitemschema.html +0 -180
- package/docs/interfaces/index.enumschema.html +0 -261
- package/docs/interfaces/index.integerschema.html +0 -289
- package/docs/interfaces/index.mapschema.html +0 -275
- package/docs/interfaces/index.numberschema.html +0 -289
- package/docs/interfaces/index.objectschema.html +0 -261
- package/docs/interfaces/index.refschema.html +0 -287
- package/docs/interfaces/index.schema.html +0 -459
- package/docs/interfaces/index.setschema.html +0 -261
- package/docs/interfaces/index.stringschema.html +0 -289
- package/docs/interfaces/page_element.elementtovueoptions.html +0 -283
- package/docs/interfaces/typecheck.typecheckrecord.html +0 -211
- package/docs/interfaces/utils.inode.html +0 -212
- package/docs/interfaces/utils.inodeinfo.html +0 -295
- package/docs/interfaces/utils_traverse.inode.html +0 -191
- package/docs/interfaces/utils_traverse.inodeinfo.html +0 -274
- package/docs/modules/app_app.html +0 -149
- package/docs/modules/app_service.html +0 -175
- package/docs/modules/cachedata.html +0 -198
- package/docs/modules/common_eventemitter.html +0 -192
- package/docs/modules/common_packagejson.html +0 -132
- package/docs/modules/common_vertex.html +0 -149
- package/docs/modules/config.html +0 -168
- package/docs/modules/data_basictypes.html +0 -271
- package/docs/modules/data_datanode.html +0 -149
- package/docs/modules/data_datatypes.html +0 -196
- package/docs/modules/data_datatypeutils.html +0 -430
- package/docs/modules/data_entity.html +0 -158
- package/docs/modules/data_entityproperty.html +0 -158
- package/docs/modules/data_entityutils.html +0 -342
- package/docs/modules/data_enum.html +0 -149
- package/docs/modules/data_enumitem.html +0 -149
- package/docs/modules/data_interface.html +0 -149
- package/docs/modules/data_schema.html +0 -205
- package/docs/modules/data_structure.html +0 -149
- package/docs/modules/data_structureproperty.html +0 -149
- package/docs/modules/data_systemtypes.html +0 -167
- package/docs/modules/decorators.html +0 -333
- package/docs/modules/eventbus.html +0 -116
- package/docs/modules/generator.html +0 -749
- package/docs/modules/generator_data.html +0 -495
- package/docs/modules/generator_hotreload.html +0 -200
- package/docs/modules/generator_load.html +0 -247
- package/docs/modules/generator_page.html +0 -200
- package/docs/modules/history.html +0 -200
- package/docs/modules/index.html +0 -1163
- package/docs/modules/logic_basevariable.html +0 -238
- package/docs/modules/logic_callinterface.html +0 -116
- package/docs/modules/logic_logic.html +0 -149
- package/docs/modules/logic_logicitem.html +0 -220
- package/docs/modules/logic_param.html +0 -149
- package/docs/modules/logic_return.html +0 -149
- package/docs/modules/logic_tools.html +0 -326
- package/docs/modules/logic_translator.html +0 -158
- package/docs/modules/logic_variable.html +0 -149
- package/docs/modules/nuims_nuims.html +0 -149
- package/docs/modules/page_attr.html +0 -149
- package/docs/modules/page_block.html +0 -149
- package/docs/modules/page_directive.html +0 -149
- package/docs/modules/page_element.html +0 -158
- package/docs/modules/page_event.html +0 -149
- package/docs/modules/page_lifecycle.html +0 -149
- package/docs/modules/page_page.html +0 -149
- package/docs/modules/page_view.html +0 -149
- package/docs/modules/page_viewparam.html +0 -149
- package/docs/modules/page_viewvariable.html +0 -149
- package/docs/modules/process_process.html +0 -149
- package/docs/modules/process_processcomponent.html +0 -149
- package/docs/modules/process_processcomponentattribute.html +0 -149
- package/docs/modules/process_processcomponentproperty.html +0 -149
- package/docs/modules/process_processcomponentreturn.html +0 -149
- package/docs/modules/process_processcomponentvariable.html +0 -149
- package/docs/modules/process_processinterface.html +0 -149
- package/docs/modules/process_processparam.html +0 -149
- package/docs/modules/process_processproperty.html +0 -149
- package/docs/modules/process_processreturn.html +0 -149
- package/docs/modules/typecheck.html +0 -269
- package/docs/modules/utils.html +0 -536
- package/docs/modules/utils_logger.html +0 -172
- package/docs/modules/utils_string.html +0 -347
- package/docs/modules/utils_traverse.html +0 -248
- package/index.js +0 -12
- package/module/base.js +0 -11
- package/out/service/logic/checktypeSocket.d.ts +0 -5
- package/out/service/logic/checktypeSocket.js +0 -55
- package/out/service/logic/checktypeSocket.js.map +0 -1
- package/out/types/data/Module.d.ts +0 -34
- package/out/types/data/Module.js +0 -53
- package/out/types/data/Module.js.map +0 -1
- package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.d.ts +0 -7
- package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.js +0 -470
- package/out/types/data/genBlock/genCurdEditMultipleKeyBlock.js.map +0 -1
- package/out/types/data/genBlock/genCurdMultipleKeyBlock.d.ts +0 -9
- package/out/types/data/genBlock/genCurdMultipleKeyBlock.js +0 -662
- package/out/types/data/genBlock/genCurdMultipleKeyBlock.js.map +0 -1
- package/spec/conceptMap.json +0 -3310
- package/spec/spec.yaml +0 -416
- package/spec-build/index.ts +0 -98
- package/src/routes.map.js +0 -5
- package/src/service/common/findUsage.js +0 -8
- package/src/service/common/index.js +0 -6
- package/src/service/common/preprocess.js +0 -54
- package/src/service/common/schema.js +0 -9
- package/src/service/config/api.js +0 -32
- package/src/service/config/index.js +0 -6
- package/src/service/create/index.js +0 -80
- package/src/service/data/api.js +0 -33
- package/src/service/data/entity.js +0 -101
- package/src/service/data/enum.js +0 -53
- package/src/service/data/enumProperty.js +0 -20
- package/src/service/data/generic.js +0 -8
- package/src/service/data/index.js +0 -18
- package/src/service/data/interface.js +0 -56
- package/src/service/data/structure.js +0 -75
- package/src/service/developPermission/api.js +0 -37
- package/src/service/developPermission/index.js +0 -13
- package/src/service/logic/checktypeSocket.js +0 -49
- package/src/service/logic/index.js +0 -14
- package/src/service/logic/logic.js +0 -121
- package/src/service/logic/param.js +0 -26
- package/src/service/modules/api.js +0 -20
- package/src/service/modules/index.js +0 -6
- package/src/service/nuims/api.js +0 -192
- package/src/service/nuims/index.js +0 -13
- package/src/service/page/api.js +0 -1374
- package/src/service/page/attribute.js +0 -20
- package/src/service/page/directive.js +0 -20
- package/src/service/page/element.js +0 -40
- package/src/service/page/event.js +0 -20
- package/src/service/page/index.js +0 -19
- package/src/service/page/lifecycle.js +0 -20
- package/src/service/page/templates.ts +0 -72
- package/src/service/page/view.js +0 -116
- package/src/service/permission/api.js +0 -38
- package/src/service/permission/index.js +0 -13
- package/src/service/process/api.js +0 -92
- package/src/service/process/index.js +0 -6
- package/src/service/undoredo/api.js +0 -26
- package/src/service/undoredo/index.js +0 -6
- package/src/service/webFile/api.js +0 -32
- package/src/service/webFile/index.d.tmp +0 -62
- package/src/service/webFile/index.js +0 -28
- package/src/service/webFile/loadCache.js +0 -14
- package/src/test/units/app/App.spec.ts +0 -16
- package/src/test/units/app/Service.spec.ts +0 -31
- package/src/types/app/App.ts +0 -349
- package/src/types/app/History.ts +0 -389
- package/src/types/app/Service.ts +0 -1036
- package/src/types/cache.ts +0 -50
- package/src/types/cacheData.ts +0 -33
- package/src/types/common/ComponentAPI.ts +0 -103
- package/src/types/common/EventEmitter.ts +0 -56
- package/src/types/common/PackageJSON.ts +0 -22
- package/src/types/common/Vertex.ts +0 -296
- package/src/types/config.ts +0 -23
- package/src/types/data/DataNode.ts +0 -37
- package/src/types/data/Entity.ts +0 -556
- package/src/types/data/EntityIndex.ts +0 -238
- package/src/types/data/EntityProperty.ts +0 -524
- package/src/types/data/Enum.ts +0 -245
- package/src/types/data/EnumItem.ts +0 -156
- package/src/types/data/GlobalLogicNode.ts +0 -208
- package/src/types/data/Interface.ts +0 -438
- package/src/types/data/Module.ts +0 -51
- package/src/types/data/Schema.ts +0 -133
- package/src/types/data/Structure.ts +0 -315
- package/src/types/data/StructureProperty.ts +0 -332
- package/src/types/data/basicTypes.ts +0 -76
- package/src/types/data/dataTypeUtils.ts +0 -426
- package/src/types/data/dataTypes.ts +0 -88
- package/src/types/data/entityUtils.ts +0 -681
- package/src/types/data/genBlock/builtInFunctions.json +0 -560
- package/src/types/data/genBlock/genCallComponentLogic.ts +0 -28
- package/src/types/data/genBlock/genCallInterface.ts +0 -87
- package/src/types/data/genBlock/genCreateBlock.ts +0 -305
- package/src/types/data/genBlock/genCurdEditMultipleKeyBlock.ts +0 -468
- package/src/types/data/genBlock/genCurdMultipleKeyBlock.ts +0 -665
- package/src/types/data/genBlock/genEditTableBlock.ts +0 -470
- package/src/types/data/genBlock/genEnumSelectBlock.ts +0 -21
- package/src/types/data/genBlock/genGetBlock.ts +0 -160
- package/src/types/data/genBlock/genGridViewBlock.ts +0 -316
- package/src/types/data/genBlock/genListViewBlock.ts +0 -130
- package/src/types/data/genBlock/genQueryComponent.ts +0 -548
- package/src/types/data/genBlock/genSelectBlock.ts +0 -124
- package/src/types/data/genBlock/genTableBlock.ts +0 -315
- package/src/types/data/genBlock/genUpdateBlock.ts +0 -389
- package/src/types/data/genBlock/index.ts +0 -20
- package/src/types/data/genBlock/utils.ts +0 -252
- package/src/types/data/genericTypes.ts +0 -151
- package/src/types/data/systemTypes.ts +0 -1635
- package/src/types/decorators/index.ts +0 -52
- package/src/types/enum.ts +0 -6
- package/src/types/generator/data.ts +0 -210
- package/src/types/generator/hotReload.ts +0 -41
- package/src/types/generator/index.ts +0 -4
- package/src/types/generator/load.ts +0 -97
- package/src/types/generator/page.ts +0 -37
- package/src/types/history.ts +0 -14
- package/src/types/index.ts +0 -167
- package/src/types/logic/BaseVariable.ts +0 -130
- package/src/types/logic/Logic.ts +0 -591
- package/src/types/logic/LogicItem.ts +0 -1371
- package/src/types/logic/Param.ts +0 -336
- package/src/types/logic/Return.ts +0 -292
- package/src/types/logic/Variable.ts +0 -288
- package/src/types/logic/expressions/BinaryExpression.ts +0 -35
- package/src/types/logic/expressions/BooleanLiteral.ts +0 -25
- package/src/types/logic/expressions/Identifier.ts +0 -36
- package/src/types/logic/expressions/LogicalExpression.ts +0 -35
- package/src/types/logic/expressions/MemberExpression.ts +0 -33
- package/src/types/logic/expressions/NullLiteral.ts +0 -20
- package/src/types/logic/expressions/NumericLiteral.ts +0 -25
- package/src/types/logic/expressions/StringLiteral.ts +0 -25
- package/src/types/logic/expressions/UnaryExpression.ts +0 -30
- package/src/types/logic/expressions/Unparsed.ts +0 -25
- package/src/types/logic/nodes/AssignmentExpression.ts +0 -30
- package/src/types/logic/nodes/BuiltInFuncParam.ts +0 -35
- package/src/types/logic/nodes/BuiltInFunction.ts +0 -39
- package/src/types/logic/nodes/CallConsoleLog.ts +0 -25
- package/src/types/logic/nodes/CallGraphQL.ts +0 -36
- package/src/types/logic/nodes/CallInterParam.ts +0 -30
- package/src/types/logic/nodes/CallInterface.ts +0 -31
- package/src/types/logic/nodes/CallLogic.ts +0 -39
- package/src/types/logic/nodes/CallMessageShow.ts +0 -35
- package/src/types/logic/nodes/Comment.ts +0 -25
- package/src/types/logic/nodes/CronJob.ts +0 -25
- package/src/types/logic/nodes/DBQuery.ts +0 -25
- package/src/types/logic/nodes/Destination.ts +0 -52
- package/src/types/logic/nodes/DestinationParam.ts +0 -31
- package/src/types/logic/nodes/End.ts +0 -21
- package/src/types/logic/nodes/ForEachStatement.ts +0 -52
- package/src/types/logic/nodes/IfStatement.ts +0 -35
- package/src/types/logic/nodes/JSBlock.ts +0 -29
- package/src/types/logic/nodes/JSONDeserialize.ts +0 -25
- package/src/types/logic/nodes/JSONSerialize.ts +0 -25
- package/src/types/logic/nodes/ProcessOutcome.ts +0 -35
- package/src/types/logic/nodes/Start.ts +0 -20
- package/src/types/logic/nodes/SwitchCase.ts +0 -30
- package/src/types/logic/nodes/SwitchStatement.ts +0 -26
- package/src/types/logic/nodes/TypeNote.ts +0 -25
- package/src/types/logic/nodes/WhileStatement.ts +0 -30
- package/src/types/logic/tools.js +0 -170
- package/src/types/logic/translator.js +0 -684
- package/src/types/logic/translator_backup.js +0 -632
- package/src/types/login.ts +0 -36
- package/src/types/nuims/Nuims.ts +0 -499
- package/src/types/page/Attr.ts +0 -217
- package/src/types/page/Block.ts +0 -103
- package/src/types/page/Directive.ts +0 -208
- package/src/types/page/Element.ts +0 -1444
- package/src/types/page/Event.ts +0 -188
- package/src/types/page/Lifecycle.ts +0 -172
- package/src/types/page/Page.ts +0 -414
- package/src/types/page/View.ts +0 -1236
- package/src/types/page/ViewParam.ts +0 -284
- package/src/types/page/ViewVariable.ts +0 -264
- package/src/types/page/dist/View.js +0 -727
- package/src/types/permission/Permission.ts +0 -112
- package/src/types/process/Process.ts +0 -306
- package/src/types/process/ProcessComponent.ts +0 -276
- package/src/types/process/ProcessComponentAttribute.ts +0 -131
- package/src/types/process/ProcessComponentProperty.ts +0 -68
- package/src/types/process/ProcessComponentReturn.ts +0 -235
- package/src/types/process/ProcessComponentVariable.ts +0 -225
- package/src/types/process/ProcessInterface.ts +0 -175
- package/src/types/process/ProcessParam.ts +0 -237
- package/src/types/process/ProcessProperty.ts +0 -69
- package/src/types/process/ProcessReturn.ts +0 -210
- package/src/types/typeCheck.ts +0 -120
- package/src/types/utils/index.ts +0 -91
- package/src/types/utils/logger.ts +0 -8
- package/src/types/utils/string.ts +0 -56
- package/src/types/utils/traverse.ts +0 -160
- package/src/views/components/lcap-json-view/README.md +0 -80
- package/src/views/components/lcap-json-view/index.js +0 -9
- package/src/views/components/lcap-json-view/index.vue +0 -61
- package/src/views/components/lcap-json-view/node.vue +0 -328
- package/src/views/components/lcap-json-view/utils.js +0 -41
- package/src/views/examples/index.vue +0 -44
- package/src/views/examples/logic.json +0 -1576
- package/src/views/index.vue +0 -28
- package/src/views/specification/README.md +0 -10
- package/src/views/specification/conceptTree.js +0 -1179
- package/src/views/specification/index.vue +0 -255
- package/src/views/theme.css +0 -138
package/src/types/app/Service.ts
DELETED
|
@@ -1,1036 +0,0 @@
|
|
|
1
|
-
import { immutable, circular, action, excludedInJSON } from '../decorators';
|
|
2
|
-
import { Logic, config, LEVEL_ENUM, Vertex, App, Page, DataNode, GlobalLogicNode, Schema, Entity, EntityProperty, Structure, Enum, EnumItem, Interface, dataTypesMap, generator, vertexsMap, Process, EntityIndex, utils } from '..';
|
|
3
|
-
import appService from '../../service/app';
|
|
4
|
-
import pageService from '../../service/page';
|
|
5
|
-
import webFileService from '../../service/webFile';
|
|
6
|
-
import processService from '../../service/process';
|
|
7
|
-
import { entityService, enumService, interfaceService, structureService } from '../../service/data';
|
|
8
|
-
import { convert2RefType } from '../data/dataTypeUtils';
|
|
9
|
-
import { updateDataTypeList } from '../data/dataTypes';
|
|
10
|
-
import { throttle } from 'lodash';
|
|
11
|
-
|
|
12
|
-
export enum SERVICE_TYPE {
|
|
13
|
-
web = 'web',
|
|
14
|
-
micro = 'micro',
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface AssetsInfo {
|
|
18
|
-
js: Array<string>,
|
|
19
|
-
css: Array<string>,
|
|
20
|
-
names?: Array<string>,
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface InterfaceNameMap<T> {
|
|
24
|
-
[id: string]: T;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
let vertexIdToName: { [pro: string]: string };
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 服务(模块)类
|
|
31
|
-
*/
|
|
32
|
-
export class Service extends Vertex {
|
|
33
|
-
/**
|
|
34
|
-
* 概念类型
|
|
35
|
-
*/
|
|
36
|
-
@immutable()
|
|
37
|
-
public readonly level: LEVEL_ENUM = LEVEL_ENUM.service;
|
|
38
|
-
/**
|
|
39
|
-
* 服务类型
|
|
40
|
-
*/
|
|
41
|
-
@immutable()
|
|
42
|
-
public readonly type: SERVICE_TYPE = undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Service Id
|
|
45
|
-
*/
|
|
46
|
-
@immutable()
|
|
47
|
-
public readonly id: string = undefined;
|
|
48
|
-
/**
|
|
49
|
-
* 前端服务标识
|
|
50
|
-
*/
|
|
51
|
-
@immutable()
|
|
52
|
-
public readonly name: string = undefined;
|
|
53
|
-
/**
|
|
54
|
-
* 前端服务标题
|
|
55
|
-
*/
|
|
56
|
-
@immutable()
|
|
57
|
-
public readonly title: string = undefined;
|
|
58
|
-
/**
|
|
59
|
-
* 服务图标
|
|
60
|
-
*/
|
|
61
|
-
@immutable()
|
|
62
|
-
public readonly icon: string = undefined;
|
|
63
|
-
/**
|
|
64
|
-
* App 的 Id
|
|
65
|
-
*/
|
|
66
|
-
@immutable()
|
|
67
|
-
public readonly appId: string = undefined;
|
|
68
|
-
/**
|
|
69
|
-
* 数据节点
|
|
70
|
-
*/
|
|
71
|
-
@immutable()
|
|
72
|
-
public readonly data: DataNode = undefined;
|
|
73
|
-
/**
|
|
74
|
-
* 接口列表
|
|
75
|
-
*/
|
|
76
|
-
@immutable()
|
|
77
|
-
public readonly interfaces: Array<Interface> = [];
|
|
78
|
-
/**
|
|
79
|
-
* 逻辑节点 http://doc.hz.netease.com/pages/viewpage.action?pageId=310549021
|
|
80
|
-
*/
|
|
81
|
-
@immutable()
|
|
82
|
-
public readonly globalLogic: GlobalLogicNode = undefined;
|
|
83
|
-
/**
|
|
84
|
-
* 所在的 App
|
|
85
|
-
* 父级引用,便于在树状结构中查找
|
|
86
|
-
*/
|
|
87
|
-
@circular()
|
|
88
|
-
@immutable()
|
|
89
|
-
public readonly app: App = undefined;
|
|
90
|
-
/**
|
|
91
|
-
* 节点是否为展开状态
|
|
92
|
-
* 前端 UI 状态
|
|
93
|
-
*/
|
|
94
|
-
@excludedInJSON()
|
|
95
|
-
public expanded: boolean = true;
|
|
96
|
-
/**
|
|
97
|
-
* @param source 需要合并的部分参数
|
|
98
|
-
*/
|
|
99
|
-
constructor(source?: Partial<Service>) {
|
|
100
|
-
super();
|
|
101
|
-
this.data = new DataNode({ service: this });
|
|
102
|
-
this.globalLogic = new GlobalLogicNode({ service: this });
|
|
103
|
-
source && this.assign(source);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
async loadStructures(): Promise<Array<Structure>> {
|
|
107
|
-
const structuresOrigin: Array<Structure> = await structureService.loadList({
|
|
108
|
-
query: {
|
|
109
|
-
id: this.id,
|
|
110
|
-
},
|
|
111
|
-
headers: {
|
|
112
|
-
'request-lcpAppId': this.appId,
|
|
113
|
-
},
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
const structures: Array<Structure> = [];
|
|
117
|
-
structuresOrigin.forEach((item) => {
|
|
118
|
-
const structureNode = Structure.from(item, this);
|
|
119
|
-
if (structureNode.moduleName) {
|
|
120
|
-
const module = this.app.getModule(structureNode.moduleName);
|
|
121
|
-
const isHave = module.structures.some((it:any) => it.id === item.id);
|
|
122
|
-
if (!isHave)
|
|
123
|
-
module.structures.push(structureNode);
|
|
124
|
-
} else if (structureNode.serviceType === 'external' && structureNode.category) {
|
|
125
|
-
this.globalLogic.addCategoryStructure(structureNode);
|
|
126
|
-
} else {
|
|
127
|
-
structures.push(structureNode);
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
updateDataTypeList();
|
|
131
|
-
|
|
132
|
-
this.data.assign({ structures });
|
|
133
|
-
this.globalLogic.assign({ structures });
|
|
134
|
-
return structures;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
async syncStructures() {
|
|
138
|
-
// this.data.structures.forEach((structure) => {
|
|
139
|
-
// delete dataTypesMap[structure.schemaRef];
|
|
140
|
-
// });
|
|
141
|
-
// const oldStructuresMap: Map<string, Structure> = new Map();
|
|
142
|
-
// this.data.structures.forEach((structure, index) => oldStructuresMap.set(structure.id, structure));
|
|
143
|
-
|
|
144
|
-
const newStructures: Array<Structure> = await structureService.loadList({
|
|
145
|
-
query: {
|
|
146
|
-
id: this.id,
|
|
147
|
-
},
|
|
148
|
-
headers: {
|
|
149
|
-
'request-lcpAppId': this.appId,
|
|
150
|
-
},
|
|
151
|
-
});
|
|
152
|
-
this.globalLogic.syncStructures(newStructures);
|
|
153
|
-
|
|
154
|
-
// newStructures.forEach((item, index) => {
|
|
155
|
-
// const newStructure = Structure.from(item, this);
|
|
156
|
-
// if (oldStructuresMap.has(newStructure.id)) {
|
|
157
|
-
// const oldIndex = this.data.structures.indexOf(oldStructuresMap.get(newStructure.id));
|
|
158
|
-
// this.data.structures.splice(oldIndex, 1, newStructure);
|
|
159
|
-
// oldStructuresMap.delete(newStructure.id);
|
|
160
|
-
// } else {
|
|
161
|
-
// this.data.structures.push(newStructure);
|
|
162
|
-
// }
|
|
163
|
-
// });
|
|
164
|
-
// // Map 直接 forEach 会有问题
|
|
165
|
-
// const oldRemains = Array.from(oldStructuresMap, ([id, index]) => ({ id, index }));
|
|
166
|
-
// oldRemains.forEach((item) => {
|
|
167
|
-
// const structure = oldStructuresMap.get(item.id);
|
|
168
|
-
// delete dataTypesMap[structure.schemaRef];
|
|
169
|
-
// const oldIndex = this.data.structures.indexOf(structure);
|
|
170
|
-
// this.data.structures.splice(oldIndex, 1);
|
|
171
|
-
// structure.destroy();
|
|
172
|
-
// });
|
|
173
|
-
// updateDataTypeList();
|
|
174
|
-
// this.globalLogic.assign({ structures: this.data.structures });
|
|
175
|
-
return this.data.structures;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* 加载服务所有的接口列表
|
|
179
|
-
*/
|
|
180
|
-
async loadInterfaces() {
|
|
181
|
-
// 接口列表中的旧接口可能已经已经不存在,需要从 vetexsMap 中清理掉
|
|
182
|
-
this.interfaces.forEach((it) => {
|
|
183
|
-
it.destroy();
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
const RESOLVER_NAMES = ['getAll', 'get', 'create', 'update', 'delete', 'count', 'import', 'export', 'batchDelete', 'batchCreate', 'batchUpdate'];
|
|
187
|
-
|
|
188
|
-
let interfaces: Array<Interface> = await interfaceService.loadList({
|
|
189
|
-
query: {
|
|
190
|
-
serviceId: this.id,
|
|
191
|
-
},
|
|
192
|
-
headers: {
|
|
193
|
-
'request-lcpAppId': this.appId,
|
|
194
|
-
},
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
interfaces = interfaces.map((item) => {
|
|
198
|
-
item = Interface.from(item, this);
|
|
199
|
-
if (item.logic && item.logic.entityId) {
|
|
200
|
-
const entity = Entity.getVertexByRef(item.logic.entityId) as Entity;
|
|
201
|
-
if (entity)
|
|
202
|
-
entity.assign({ resolvers: entity.resolvers || [] });
|
|
203
|
-
const resolverName = RESOLVER_NAMES.find((name) => item.name.startsWith(name));
|
|
204
|
-
if (entity)
|
|
205
|
-
entity.resolvers.push({
|
|
206
|
-
level: 'resolver',
|
|
207
|
-
name: resolverName,
|
|
208
|
-
interface: item,
|
|
209
|
-
entity,
|
|
210
|
-
isLeaf: true,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
return item;
|
|
214
|
-
});
|
|
215
|
-
this.assign({ interfaces });
|
|
216
|
-
return interfaces;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* 前端服务(模块)类
|
|
222
|
-
*/
|
|
223
|
-
export class WebService extends Service {
|
|
224
|
-
/**
|
|
225
|
-
* 服务类型
|
|
226
|
-
*/
|
|
227
|
-
@immutable()
|
|
228
|
-
public readonly type: SERVICE_TYPE = SERVICE_TYPE.web;
|
|
229
|
-
/**
|
|
230
|
-
* 服务状态
|
|
231
|
-
*/
|
|
232
|
-
@immutable()
|
|
233
|
-
public readonly status: 'UNPUBLISHED' | 'PUBLISHED' | 'REPOSITORYCREATED' | 'FSSTARTED' | 'APPINIT' | 'CODESYNCED' | 'CICDCREATED' = undefined;
|
|
234
|
-
/**
|
|
235
|
-
* 是否为官方服务
|
|
236
|
-
*/
|
|
237
|
-
@immutable()
|
|
238
|
-
public readonly officialType: 'official' | 'nonofficial' = undefined;
|
|
239
|
-
@immutable()
|
|
240
|
-
public readonly dnsAddr: string = undefined;
|
|
241
|
-
/**
|
|
242
|
-
* packageJSON 的缩减版
|
|
243
|
-
*/
|
|
244
|
-
@immutable()
|
|
245
|
-
public readonly packageInfo: {
|
|
246
|
-
template: { name: string, version: string },
|
|
247
|
-
ui: { name: string, version: string },
|
|
248
|
-
componentDependencies: { [name: string]: string },
|
|
249
|
-
templateConfig: { builtInTemplate: boolean },
|
|
250
|
-
themeVariables: { [name: string]: string },
|
|
251
|
-
} = undefined;
|
|
252
|
-
/**
|
|
253
|
-
* 其他配置
|
|
254
|
-
*/
|
|
255
|
-
@immutable()
|
|
256
|
-
public readonly config: string = undefined;
|
|
257
|
-
@immutable()
|
|
258
|
-
public readonly api: {
|
|
259
|
-
features: { [name: string]: boolean };
|
|
260
|
-
builtInFunctions: { [name: string]: any };
|
|
261
|
-
} = undefined;
|
|
262
|
-
/**
|
|
263
|
-
* 前端页面
|
|
264
|
-
*/
|
|
265
|
-
@immutable()
|
|
266
|
-
public readonly pages: Array<Page> = [];
|
|
267
|
-
/**
|
|
268
|
-
* @param source 需要合并的部分参数
|
|
269
|
-
*/
|
|
270
|
-
constructor(source?: Partial<WebService>) {
|
|
271
|
-
super();
|
|
272
|
-
source && this.assign(source);
|
|
273
|
-
|
|
274
|
-
this.on('pageTreeChange', throttle(
|
|
275
|
-
this._onPageTreeChange.bind(this),
|
|
276
|
-
config.throttleWait,
|
|
277
|
-
{ leading: true, trailing: true },
|
|
278
|
-
));
|
|
279
|
-
this.on('vertexIdToNameChange', () => {
|
|
280
|
-
this.app.firstMicroService.emit('vertexIdToNameChange');
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
async load() {
|
|
285
|
-
const result = await appService.loadWebService({
|
|
286
|
-
query: {
|
|
287
|
-
appId: this.id,
|
|
288
|
-
},
|
|
289
|
-
headers: {
|
|
290
|
-
'request-lcpAppId': this.appId,
|
|
291
|
-
},
|
|
292
|
-
});
|
|
293
|
-
// result.id = result.appId;
|
|
294
|
-
|
|
295
|
-
this.assign(result);
|
|
296
|
-
return this;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
async loadPackageInfo() {
|
|
300
|
-
try {
|
|
301
|
-
const res = await webFileService.loadFile({
|
|
302
|
-
query: {
|
|
303
|
-
serviceId: this.id,
|
|
304
|
-
path: `package.partial.json`,
|
|
305
|
-
},
|
|
306
|
-
});
|
|
307
|
-
if (res.content) {
|
|
308
|
-
this.assign({ packageInfo: JSON.parse(res.content) });
|
|
309
|
-
}
|
|
310
|
-
} catch (e) { } finally {
|
|
311
|
-
if (!this.packageInfo) {
|
|
312
|
-
this.assign({
|
|
313
|
-
packageInfo: {
|
|
314
|
-
template: {
|
|
315
|
-
name: 'cloud-admin-template',
|
|
316
|
-
version: '0.2.23',
|
|
317
|
-
},
|
|
318
|
-
ui: {
|
|
319
|
-
name: 'cloud-ui.vusion',
|
|
320
|
-
version: '0.11.30',
|
|
321
|
-
},
|
|
322
|
-
componentDependencies: {
|
|
323
|
-
'lcap-login': '0.3.5',
|
|
324
|
-
},
|
|
325
|
-
themeVariables: {},
|
|
326
|
-
},
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
async savePackageInfo() {
|
|
333
|
-
const serviceId = this.id;
|
|
334
|
-
const path = `package.partial.json`;
|
|
335
|
-
|
|
336
|
-
const promise = webFileService.saveFile({
|
|
337
|
-
body: {
|
|
338
|
-
serviceId,
|
|
339
|
-
type: 'config',
|
|
340
|
-
path,
|
|
341
|
-
content: JSON.stringify(this.packageInfo),
|
|
342
|
-
},
|
|
343
|
-
});
|
|
344
|
-
|
|
345
|
-
generator.saveLastModified(serviceId, path);
|
|
346
|
-
return promise;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* 根据 packageInfo 的信息生成用于 load 的 assetsInfo
|
|
350
|
-
* 在环境中需要 basic 和 custom 分开 load,否则容易报错
|
|
351
|
-
* @param prefix
|
|
352
|
-
*/
|
|
353
|
-
genAllAssetsInfo(prefix: string) {
|
|
354
|
-
const packageInfo = this.packageInfo;
|
|
355
|
-
const scope = this.app.scope;
|
|
356
|
-
const result: {
|
|
357
|
-
basic: AssetsInfo,
|
|
358
|
-
custom?: AssetsInfo,
|
|
359
|
-
} = {
|
|
360
|
-
basic: {
|
|
361
|
-
js: [
|
|
362
|
-
`${prefix}/packages/vue@2/dist/vue.min.js`,
|
|
363
|
-
// `${prefix}/packages/vue-router@3/dist/vue-router.min.js`,
|
|
364
|
-
|
|
365
|
-
scope === 'h5' ? `${prefix}/packages/@lcap/mobile-ui@${packageInfo.ui.version}/dist-theme/index.js` : `${prefix}/packages/cloud-ui.vusion@${packageInfo.ui.version}/dist-theme/index.js`,
|
|
366
|
-
|
|
367
|
-
scope === 'h5' ? `${prefix}/packages/@lcap/mobile-template@${packageInfo.template.version}/cloudAdminDesigner.umd.min.js` : `${prefix}/packages/lcap-pc-template@${packageInfo.template.version}/cloudAdminDesigner.umd.min.js`,
|
|
368
|
-
],
|
|
369
|
-
css: [
|
|
370
|
-
scope === 'h5' ? `${prefix}/packages/@lcap/mobile-ui@${packageInfo.ui.version}/dist-theme/index.css` : `${prefix}/packages/cloud-ui.vusion@${packageInfo.ui.version}/dist-theme/index.css`,
|
|
371
|
-
|
|
372
|
-
scope === 'h5' ? `${prefix}/packages/@lcap/mobile-template@${packageInfo.template.version}/cloudAdminDesigner.css` : `${prefix}/packages/lcap-pc-template@${packageInfo.template.version}/cloudAdminDesigner.css`,
|
|
373
|
-
],
|
|
374
|
-
},
|
|
375
|
-
custom: {
|
|
376
|
-
js: [],
|
|
377
|
-
css: [],
|
|
378
|
-
names: [],
|
|
379
|
-
},
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
// 官方扩展组件暂时不包含 dist-theme/index.css 文件
|
|
383
|
-
const officialCustomComponents = [
|
|
384
|
-
'lcap-login',
|
|
385
|
-
'lcap-video',
|
|
386
|
-
'lcap-amap-nav',
|
|
387
|
-
'lcap-echarts-bar',
|
|
388
|
-
'lcap-echarts-line',
|
|
389
|
-
'lcap-echarts-pie',
|
|
390
|
-
'lcap-report',
|
|
391
|
-
];
|
|
392
|
-
Object.keys(packageInfo.componentDependencies).forEach((name) => {
|
|
393
|
-
const version = packageInfo.componentDependencies[name].replace(/^[^0-9]+/, '');
|
|
394
|
-
|
|
395
|
-
result.custom.js.push(`${prefix}/packages/${name}@${version}/dist-theme/index.js`);
|
|
396
|
-
if (!officialCustomComponents.includes(name)) {
|
|
397
|
-
result.custom.css.push(`${prefix}/packages/${name}@${version}/dist-theme/index.css`);
|
|
398
|
-
}
|
|
399
|
-
result.custom.names.push(name);
|
|
400
|
-
});
|
|
401
|
-
|
|
402
|
-
return result;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
genThemeCSS() {
|
|
406
|
-
const themeVariables: { [name: string]: string } = this.packageInfo.themeVariables || {};
|
|
407
|
-
|
|
408
|
-
const keys = Object.keys(themeVariables);
|
|
409
|
-
if (!keys.length)
|
|
410
|
-
return;
|
|
411
|
-
|
|
412
|
-
return `:root {
|
|
413
|
-
${Object.keys(themeVariables).map((key) => ` ${key}: ${themeVariables[key]};`).join('\n')}
|
|
414
|
-
}
|
|
415
|
-
`;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
async loadPages(enableCache = true) {
|
|
419
|
-
const isGONGHANG = utils.getGlobalEnv() === 'gonghang';
|
|
420
|
-
if (isGONGHANG) {
|
|
421
|
-
enableCache = false;
|
|
422
|
-
}
|
|
423
|
-
this.pages.forEach((page) => {
|
|
424
|
-
page.destroy();
|
|
425
|
-
});
|
|
426
|
-
|
|
427
|
-
const result: Array<Page> = await pageService.loadPages({
|
|
428
|
-
query: {
|
|
429
|
-
serviceId: this.id,
|
|
430
|
-
enableCache,
|
|
431
|
-
},
|
|
432
|
-
config: {
|
|
433
|
-
mock: config.mock,
|
|
434
|
-
},
|
|
435
|
-
headers: {
|
|
436
|
-
'request-lcpAppId': this.appId,
|
|
437
|
-
},
|
|
438
|
-
});
|
|
439
|
-
const pages = result.map((page) => Page.from(page, this));
|
|
440
|
-
this.assign({ pages });
|
|
441
|
-
return pages;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
@action('添加页面')
|
|
445
|
-
async addPage(page: Page) {
|
|
446
|
-
page.assign({ serviceId: this.id });
|
|
447
|
-
await page.create(undefined, undefined, async () => {
|
|
448
|
-
page.assign({ service: this });
|
|
449
|
-
this.pages.unshift(page);
|
|
450
|
-
});
|
|
451
|
-
return page;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
@action('添加页面')
|
|
455
|
-
async importPage(page: Page) {
|
|
456
|
-
page.assign({ serviceId: this.id });
|
|
457
|
-
await page.importPage(undefined, undefined, async () => {
|
|
458
|
-
page.assign({ service: this });
|
|
459
|
-
this.pages.unshift(page);
|
|
460
|
-
});
|
|
461
|
-
return page;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
private _onPageTreeChange() {
|
|
465
|
-
generator.savePageTreeCache(this);
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* 从后端 JSON 生成规范的 WebService 对象
|
|
470
|
-
* @param source JSON
|
|
471
|
-
* @param app 父级 App
|
|
472
|
-
*/
|
|
473
|
-
public static from(source: any, app: App) {
|
|
474
|
-
source.app = app;
|
|
475
|
-
|
|
476
|
-
// if (!source.packageInfo) {
|
|
477
|
-
// source.packageInfo = {
|
|
478
|
-
// template: {
|
|
479
|
-
// name: 'cloud-admin-template',
|
|
480
|
-
// version: '0.2.22',
|
|
481
|
-
// },
|
|
482
|
-
// ui: {
|
|
483
|
-
// name: 'cloud-ui.vusion',
|
|
484
|
-
// version: '0.11.23',
|
|
485
|
-
// },
|
|
486
|
-
// componentDependencies: {
|
|
487
|
-
// 'lcap-login': '^0.3.3',
|
|
488
|
-
// },
|
|
489
|
-
// };
|
|
490
|
-
// } else if (typeof source.packageInfo === 'string')
|
|
491
|
-
// source.packageInfo = JSON.parse(source.packageInfo);
|
|
492
|
-
return new WebService(source);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* 后端服务(模块)类
|
|
498
|
-
*/
|
|
499
|
-
export class MicroService extends Service {
|
|
500
|
-
/**
|
|
501
|
-
* 服务类型
|
|
502
|
-
*/
|
|
503
|
-
@immutable()
|
|
504
|
-
public readonly type: SERVICE_TYPE = SERVICE_TYPE.micro;
|
|
505
|
-
/**
|
|
506
|
-
* 包名
|
|
507
|
-
*/
|
|
508
|
-
@immutable()
|
|
509
|
-
public readonly packageName: string;
|
|
510
|
-
/**
|
|
511
|
-
* 服务端口
|
|
512
|
-
*/
|
|
513
|
-
@immutable()
|
|
514
|
-
public readonly serverPort: number;
|
|
515
|
-
/**
|
|
516
|
-
* 接口列表
|
|
517
|
-
*/
|
|
518
|
-
@immutable()
|
|
519
|
-
public readonly interfaces: Array<Interface> = [];
|
|
520
|
-
/**
|
|
521
|
-
* 流程列表
|
|
522
|
-
*/
|
|
523
|
-
@immutable()
|
|
524
|
-
public readonly processes: Array<Process> = [];
|
|
525
|
-
// logics: { [name]: Logic };
|
|
526
|
-
/**
|
|
527
|
-
* @param source 需要合并的部分参数
|
|
528
|
-
*/
|
|
529
|
-
constructor(source?: Partial<MicroService>) {
|
|
530
|
-
super();
|
|
531
|
-
source && this.assign(source);
|
|
532
|
-
|
|
533
|
-
this.on('dataTypesChange', throttle(
|
|
534
|
-
this._onDataTypesChange.bind(this),
|
|
535
|
-
config.throttleWait,
|
|
536
|
-
{ leading: true, trailing: true },
|
|
537
|
-
));
|
|
538
|
-
this.on('enumsChange', throttle(
|
|
539
|
-
this._onEnumsChange.bind(this),
|
|
540
|
-
config.throttleWait,
|
|
541
|
-
{ leading: true, trailing: true },
|
|
542
|
-
));
|
|
543
|
-
this.on('interfacesChange', throttle(
|
|
544
|
-
this._onInterfacesChange.bind(this),
|
|
545
|
-
config.throttleWait,
|
|
546
|
-
{ leading: true, trailing: true },
|
|
547
|
-
));
|
|
548
|
-
|
|
549
|
-
this._onVertexIdToNameChange = throttle(
|
|
550
|
-
this._onVertexIdToNameChange,
|
|
551
|
-
config.throttleWait,
|
|
552
|
-
{ leading: true, trailing: true },
|
|
553
|
-
);
|
|
554
|
-
this.on('vertexIdToNameChange', this._onVertexIdToNameChange.bind(this));
|
|
555
|
-
|
|
556
|
-
this._saveVertexIdToName = throttle(
|
|
557
|
-
async () => {
|
|
558
|
-
await generator.saveVertexIdToName(this.app);
|
|
559
|
-
vertexIdToName = generator.getVertexIdToName();
|
|
560
|
-
},
|
|
561
|
-
config.throttleWait,
|
|
562
|
-
{ leading: true, trailing: true },
|
|
563
|
-
);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
private async _saveVertexIdToName() { }
|
|
567
|
-
|
|
568
|
-
async loadEntities() {
|
|
569
|
-
const entities: Array<Entity> = await entityService.loadList({
|
|
570
|
-
query: {
|
|
571
|
-
microServiceId: this.id,
|
|
572
|
-
},
|
|
573
|
-
headers: {
|
|
574
|
-
'request-lcpAppId': this.appId,
|
|
575
|
-
},
|
|
576
|
-
});
|
|
577
|
-
entities.forEach((item, index) => {
|
|
578
|
-
convert2RefType(item);
|
|
579
|
-
entities[index] = item = new Entity(item);
|
|
580
|
-
item.assign({
|
|
581
|
-
dataNode: this.data,
|
|
582
|
-
schemaRef: `#/${this.id}/${item.id}`,
|
|
583
|
-
// schemaNameRef: `#/${this.name}/entities/${entity.name}`
|
|
584
|
-
});
|
|
585
|
-
|
|
586
|
-
const lastVersionRef = item.lastVersionDef && item.lastVersionDef.properties || {};
|
|
587
|
-
|
|
588
|
-
const propertyList = item.propertyList as Array<EntityProperty>;
|
|
589
|
-
propertyList.sort((a, b) => (a as any)._posIndex - (b as any)._posIndex);
|
|
590
|
-
propertyList.forEach((property, index) => {
|
|
591
|
-
property = propertyList[index] = new EntityProperty(property);
|
|
592
|
-
if (lastVersionRef[property.name]) {
|
|
593
|
-
property.assign({ lastVersion: convert2RefType(lastVersionRef[property.name]) });
|
|
594
|
-
}
|
|
595
|
-
property.assign({ root: item });
|
|
596
|
-
});
|
|
597
|
-
item.assign({ resolvers: [] });
|
|
598
|
-
|
|
599
|
-
const indexList = item.indexList as Array<EntityIndex>;
|
|
600
|
-
indexList.forEach((indexItem, index) => {
|
|
601
|
-
indexItem = indexList[index] = new EntityIndex(indexItem);
|
|
602
|
-
indexItem.assign({ root: item });
|
|
603
|
-
});
|
|
604
|
-
|
|
605
|
-
dataTypesMap[item.schemaRef] = item as Schema;
|
|
606
|
-
});
|
|
607
|
-
updateDataTypeList();
|
|
608
|
-
|
|
609
|
-
this.data.assign({ entities });
|
|
610
|
-
|
|
611
|
-
this.mountResolverOnEntity();
|
|
612
|
-
return entities;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* 添加实体
|
|
617
|
-
* @param name 实体名称
|
|
618
|
-
*/
|
|
619
|
-
async addEntity(name: string): Promise<Entity>;
|
|
620
|
-
/**
|
|
621
|
-
* 添加实体
|
|
622
|
-
* @param entityOptions 实体参数
|
|
623
|
-
*/
|
|
624
|
-
async addEntity(entityOptions: Partial<Entity>): Promise<Entity>;
|
|
625
|
-
/**
|
|
626
|
-
* 添加实体
|
|
627
|
-
* @param entity 已有的实体实例
|
|
628
|
-
*/
|
|
629
|
-
async addEntity(entity: Entity): Promise<Entity>;
|
|
630
|
-
async addEntity(name: string | Partial<Entity> | Entity) {
|
|
631
|
-
const entityOptions = {
|
|
632
|
-
dataNode: this.data,
|
|
633
|
-
serviceId: this.id,
|
|
634
|
-
serviceType: this.type,
|
|
635
|
-
};
|
|
636
|
-
let entity: Entity;
|
|
637
|
-
if (typeof name === 'string') {
|
|
638
|
-
entity = new Entity(Object.assign(entityOptions, {
|
|
639
|
-
name,
|
|
640
|
-
}));
|
|
641
|
-
} else if (name instanceof Entity) {
|
|
642
|
-
entity = name;
|
|
643
|
-
} else {
|
|
644
|
-
entity = new Entity(Object.assign(entityOptions, name));
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
entity.loading = true;
|
|
648
|
-
try {
|
|
649
|
-
await entity.create();
|
|
650
|
-
entity.loading = false;
|
|
651
|
-
if (!this.data.entities.includes(entity))
|
|
652
|
-
this.data.entities.push(entity);
|
|
653
|
-
|
|
654
|
-
entity.propertyList.forEach((property) => property.loading = false);
|
|
655
|
-
this.globalLogic.syncEntityLogics();
|
|
656
|
-
} catch (err) {
|
|
657
|
-
const index = this.data.entities.indexOf(entity);
|
|
658
|
-
~index && this.data.entities.splice(index, 1);
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
return entity;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* 删除实体
|
|
666
|
-
* @param name 实体名称
|
|
667
|
-
*/
|
|
668
|
-
async removeEntity(name: string): Promise<void>;
|
|
669
|
-
/**
|
|
670
|
-
* 删除实体
|
|
671
|
-
* @param id 实体 Id
|
|
672
|
-
*/
|
|
673
|
-
async removeEntity(id: string): Promise<void>;
|
|
674
|
-
/**
|
|
675
|
-
* 删除实体
|
|
676
|
-
* @param entity 已有的实体实例
|
|
677
|
-
*/
|
|
678
|
-
async removeEntity(entity: Entity): Promise<void>;
|
|
679
|
-
async removeEntity(name: string | Entity) {
|
|
680
|
-
let entity: Entity;
|
|
681
|
-
if (typeof name === 'string') {
|
|
682
|
-
entity = this.data.entities.find((item) => item.name === name || item.id === name);
|
|
683
|
-
if (!entity)
|
|
684
|
-
throw new Error('找不到实体 ' + name);
|
|
685
|
-
} else {
|
|
686
|
-
entity = name;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
entity.loading = true;
|
|
690
|
-
await entity.delete();
|
|
691
|
-
entity.loading = false;
|
|
692
|
-
this.globalLogic.syncEntityLogics();
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* 加载所有枚举
|
|
697
|
-
*/
|
|
698
|
-
async loadEnums() {
|
|
699
|
-
const enums: Array<Enum> = await enumService.loadList({
|
|
700
|
-
query: {
|
|
701
|
-
microServiceId: this.id,
|
|
702
|
-
},
|
|
703
|
-
headers: {
|
|
704
|
-
'request-lcpAppId': this.appId,
|
|
705
|
-
},
|
|
706
|
-
});
|
|
707
|
-
|
|
708
|
-
enums.forEach((item, index) => {
|
|
709
|
-
convert2RefType(item as any);
|
|
710
|
-
enums[index] = item = new Enum(item);
|
|
711
|
-
item.assign({
|
|
712
|
-
dataNode: this.data,
|
|
713
|
-
schemaRef: `#/${this.id}/${item.id}`,
|
|
714
|
-
// schemaNameRef: `#/${this.name}/enums/${entity.name}`
|
|
715
|
-
});
|
|
716
|
-
|
|
717
|
-
item.enumItemList.forEach((enumItem, index) => {
|
|
718
|
-
enumItem = item.enumItemList[index] = new EnumItem(enumItem);
|
|
719
|
-
enumItem.assign({ root: item });
|
|
720
|
-
});
|
|
721
|
-
|
|
722
|
-
dataTypesMap[item.schemaRef] = item as any;
|
|
723
|
-
});
|
|
724
|
-
|
|
725
|
-
updateDataTypeList();
|
|
726
|
-
|
|
727
|
-
const globalEnums: Enum[] = [];
|
|
728
|
-
for (const e of enums) {
|
|
729
|
-
if (e.moduleName) {
|
|
730
|
-
const module = this.app.getModule(e.moduleName);
|
|
731
|
-
module.enums.push(e);
|
|
732
|
-
} else
|
|
733
|
-
globalEnums.push(e);
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
this.data.assign({
|
|
737
|
-
enums: globalEnums,
|
|
738
|
-
});
|
|
739
|
-
return enums;
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
* 加载所有流程
|
|
743
|
-
*/
|
|
744
|
-
async loadProcesses() {
|
|
745
|
-
const result: Array<Process> = await processService.loadAll({
|
|
746
|
-
query: {
|
|
747
|
-
serviceId: this.id,
|
|
748
|
-
},
|
|
749
|
-
headers: {
|
|
750
|
-
'request-lcpAppId': this.appId,
|
|
751
|
-
},
|
|
752
|
-
});
|
|
753
|
-
const processes = result.map((process) => Process.from(process, this));
|
|
754
|
-
this.assign({ processes });
|
|
755
|
-
this.mountResolverOnProcess();
|
|
756
|
-
return processes;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
mountResolverOnProcess() {
|
|
760
|
-
this.globalLogic.assign({ processLogics: this.processes });
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
/**
|
|
764
|
-
* 导入sql或其他需要同步entity
|
|
765
|
-
*/
|
|
766
|
-
async syncEntities() {
|
|
767
|
-
const entities: Array<Entity> = await entityService.loadList({
|
|
768
|
-
query: {
|
|
769
|
-
microServiceId: this.id,
|
|
770
|
-
},
|
|
771
|
-
headers: {
|
|
772
|
-
'request-lcpAppId': this.appId,
|
|
773
|
-
},
|
|
774
|
-
});
|
|
775
|
-
const newEntities: Array<Entity> = [];
|
|
776
|
-
const syncEntities: Array<Entity> = [];
|
|
777
|
-
entities.forEach((item, index) => {
|
|
778
|
-
// 已存在的entity直接使用
|
|
779
|
-
const tempEntity = <Entity>vertexsMap.get(item.id);
|
|
780
|
-
if (tempEntity) {
|
|
781
|
-
newEntities[index] = tempEntity;
|
|
782
|
-
} else {
|
|
783
|
-
convert2RefType(item);
|
|
784
|
-
newEntities[index] = item = new Entity(item);
|
|
785
|
-
item.assign({
|
|
786
|
-
dataNode: this.data,
|
|
787
|
-
schemaRef: `#/${this.id}/${item.id}`,
|
|
788
|
-
});
|
|
789
|
-
|
|
790
|
-
const propertyList = item.propertyList as Array<EntityProperty>;
|
|
791
|
-
propertyList.sort((a, b) => (a as any)._posIndex - (b as any)._posIndex);
|
|
792
|
-
propertyList.forEach((property, index) => {
|
|
793
|
-
property = propertyList[index] = new EntityProperty(property);
|
|
794
|
-
property.assign({ root: item });
|
|
795
|
-
});
|
|
796
|
-
item.assign({ resolvers: [] });
|
|
797
|
-
const indexList = item.indexList as Array<EntityIndex>;
|
|
798
|
-
indexList.forEach((indexItem, index) => {
|
|
799
|
-
indexItem = indexList[index] = new EntityIndex(indexItem);
|
|
800
|
-
indexItem.assign({ root: item });
|
|
801
|
-
});
|
|
802
|
-
dataTypesMap[item.schemaRef] = item as Schema;
|
|
803
|
-
syncEntities.push(item);
|
|
804
|
-
}
|
|
805
|
-
});
|
|
806
|
-
this.data.assign({ entities: newEntities });
|
|
807
|
-
const tasks = syncEntities.map((entity) => Promise.all([
|
|
808
|
-
// entity.syncStructures(),
|
|
809
|
-
entity.syncInterfaces(),
|
|
810
|
-
]));
|
|
811
|
-
await Promise.all(tasks).then(() => {
|
|
812
|
-
updateDataTypeList();
|
|
813
|
-
this._onDataTypesChange();
|
|
814
|
-
this._saveVertexIdToName();
|
|
815
|
-
});
|
|
816
|
-
return newEntities;
|
|
817
|
-
}
|
|
818
|
-
async syncEntityPropertyVersion() {
|
|
819
|
-
const entities: Array<Entity> = await entityService.loadList({
|
|
820
|
-
query: {
|
|
821
|
-
microServiceId: this.id,
|
|
822
|
-
},
|
|
823
|
-
headers: {
|
|
824
|
-
'request-lcpAppId': this.appId,
|
|
825
|
-
},
|
|
826
|
-
});
|
|
827
|
-
entities.forEach((item) => {
|
|
828
|
-
const tempEntity = <Entity>vertexsMap.get(item.id);
|
|
829
|
-
if (tempEntity) {
|
|
830
|
-
tempEntity.assign({ lastVersionDef: item.lastVersionDef });
|
|
831
|
-
}
|
|
832
|
-
const lastVersionRef = item.lastVersionDef && item.lastVersionDef.properties || {};
|
|
833
|
-
const propertyList = tempEntity.propertyList as Array<EntityProperty>;
|
|
834
|
-
propertyList.forEach((property) => {
|
|
835
|
-
property = <EntityProperty>vertexsMap.get(property.id);
|
|
836
|
-
if (property && lastVersionRef[property.name]) {
|
|
837
|
-
property.assign({ lastVersion: convert2RefType(lastVersionRef[property.name]) });
|
|
838
|
-
}
|
|
839
|
-
});
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
/**
|
|
843
|
-
* 加载服务所有的接口列表
|
|
844
|
-
*/
|
|
845
|
-
async loadInterfaces(enableCache = true) {
|
|
846
|
-
const isGONGHANG = utils.getGlobalEnv() === 'gonghang';
|
|
847
|
-
if (isGONGHANG) {
|
|
848
|
-
enableCache = false;
|
|
849
|
-
}
|
|
850
|
-
const logicMap = new Map();
|
|
851
|
-
// 旧接口列表中,可能存在已经被删掉的接口,需要从 vertexsMap 中删除
|
|
852
|
-
this.interfaces.forEach((it) => {
|
|
853
|
-
logicMap.set(it.id, it.logic);
|
|
854
|
-
it.destroy();
|
|
855
|
-
});
|
|
856
|
-
|
|
857
|
-
let interfaces: Array<Interface> = await interfaceService.loadList({
|
|
858
|
-
query: {
|
|
859
|
-
serviceId: this.id,
|
|
860
|
-
enableCache,
|
|
861
|
-
},
|
|
862
|
-
headers: {
|
|
863
|
-
IdeVersion: 2.3,
|
|
864
|
-
'request-lcpAppId': this.appId,
|
|
865
|
-
},
|
|
866
|
-
});
|
|
867
|
-
interfaces = interfaces.map((item) => {
|
|
868
|
-
if (logicMap.has(item.id)) {
|
|
869
|
-
item.logic = logicMap.get(item.id);
|
|
870
|
-
logicMap.delete(item.id);
|
|
871
|
-
}
|
|
872
|
-
return Interface.from(item, this);
|
|
873
|
-
});
|
|
874
|
-
// 清理掉已不存在的逻辑
|
|
875
|
-
for (const logic of logicMap.values()) {
|
|
876
|
-
logic.destroy();
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
interfaces.forEach((i) => {
|
|
880
|
-
if (i.serviceType === 'export') {
|
|
881
|
-
const logic = Vertex.getVertexByRef(i.logicId) as Logic;
|
|
882
|
-
i.logic = logic;
|
|
883
|
-
}
|
|
884
|
-
});
|
|
885
|
-
|
|
886
|
-
this.assign({ interfaces });
|
|
887
|
-
this.mountResolverOnEntity();
|
|
888
|
-
this.mountResolverOnInterface();
|
|
889
|
-
this.mountOnModule();
|
|
890
|
-
// this.generateLogics();
|
|
891
|
-
return interfaces;
|
|
892
|
-
}
|
|
893
|
-
mountResolverOnEntity() {
|
|
894
|
-
const RESOLVER_NAMES = ['getAll', 'get', 'create', 'update', 'delete', 'count', 'import', 'export', 'batchDelete', 'batchCreate', 'batchUpdate'];
|
|
895
|
-
if (this.interfaces.length && this.data.entities.length) {
|
|
896
|
-
const entityLogics: Array<Entity> = [];
|
|
897
|
-
this.interfaces.forEach((item) => {
|
|
898
|
-
if (item.logic && item.logic.entityId) {
|
|
899
|
-
const entity = Entity.getVertexByRef(item.logic.entityId) as Entity;
|
|
900
|
-
if (entity)
|
|
901
|
-
entity.assign({ resolvers: entity.resolvers || [] });
|
|
902
|
-
// Bug-34673: 兼容实体名称包含 All/Delete/Create/Update 导致 RESOLVER_NAMES 误判情况
|
|
903
|
-
const resolverName = RESOLVER_NAMES.find((name) => item.name === `${name}${entity.name}` || item.name === `${name}${entity.name}s`);
|
|
904
|
-
if (entity) {
|
|
905
|
-
const exist = entity.resolvers.find((r) => r.name === resolverName);
|
|
906
|
-
if (exist) {
|
|
907
|
-
exist.interface = item;
|
|
908
|
-
exist.entity = entity;
|
|
909
|
-
} else {
|
|
910
|
-
entity.resolvers.push({
|
|
911
|
-
level: 'resolver',
|
|
912
|
-
name: resolverName,
|
|
913
|
-
interface: item,
|
|
914
|
-
entity,
|
|
915
|
-
isLeaf: true,
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
item.entityId = entity.id;
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
});
|
|
923
|
-
this.data.entities.forEach((entity) => {
|
|
924
|
-
entityLogics.push(entity);
|
|
925
|
-
});
|
|
926
|
-
this.globalLogic.assign({ entityLogics });
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
mountResolverOnInterface() {
|
|
931
|
-
const globalLogics: Array<Interface> = [];
|
|
932
|
-
const interfaces: Array<Interface> = [];
|
|
933
|
-
const exportInterface: Array<Interface> = [];
|
|
934
|
-
const exportLogicId: InterfaceNameMap<Interface> = {};
|
|
935
|
-
// const categoryInterfaceMap = {};
|
|
936
|
-
// const categoryProccessMap = {};
|
|
937
|
-
this.interfaces.forEach((item) => {
|
|
938
|
-
if (item.logic?.moduleName)
|
|
939
|
-
return;
|
|
940
|
-
|
|
941
|
-
if (item.serviceType === 'micro') {
|
|
942
|
-
globalLogics.push(item);
|
|
943
|
-
} else if (item.serviceType === 'external') {
|
|
944
|
-
const category = item.category;
|
|
945
|
-
if (!category) {
|
|
946
|
-
interfaces.push(item);
|
|
947
|
-
} else {
|
|
948
|
-
this.globalLogic.addCategoryInterface(item);
|
|
949
|
-
// if (!categoryInterfaceMap[category]) {
|
|
950
|
-
// categoryInterfaceMap[category] = [];
|
|
951
|
-
// }
|
|
952
|
-
// categoryInterfaceMap[category].push(item);
|
|
953
|
-
}
|
|
954
|
-
} else if (item.serviceType === 'export') {
|
|
955
|
-
exportInterface.push(item);
|
|
956
|
-
exportLogicId[item.logicId] = item;
|
|
957
|
-
}
|
|
958
|
-
});
|
|
959
|
-
// const categories = [];
|
|
960
|
-
// Object.keys(categoryInterfaceMap).forEach((category) => {
|
|
961
|
-
|
|
962
|
-
// categories.push({
|
|
963
|
-
// level: LEVEL_ENUM.category,
|
|
964
|
-
// name: category,
|
|
965
|
-
// categoryInterfaces: categoryInterfaceMap[category],
|
|
966
|
-
// categoryStructures: [],
|
|
967
|
-
// isLeaf: false,
|
|
968
|
-
// expanded: false,
|
|
969
|
-
// });
|
|
970
|
-
// });
|
|
971
|
-
const exportLogicIdList = Object.keys(exportLogicId);
|
|
972
|
-
this.interfaces.forEach((item) => {
|
|
973
|
-
if (exportLogicIdList.includes(item.logicId)) {
|
|
974
|
-
item.exportedInterface = exportLogicId[item.logicId];
|
|
975
|
-
}
|
|
976
|
-
});
|
|
977
|
-
|
|
978
|
-
this.globalLogic.assign({ globalLogics, interfaces });
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
mountOnModule() {
|
|
982
|
-
const { interfaces } = this;
|
|
983
|
-
|
|
984
|
-
for (const item of interfaces) {
|
|
985
|
-
const logic = item.logic;
|
|
986
|
-
if (logic.moduleName) {
|
|
987
|
-
const module = this.app.getModule(logic.moduleName);
|
|
988
|
-
const isHave = module.globalLogics.some((it:any) => it.id === item.id);
|
|
989
|
-
if (!isHave)
|
|
990
|
-
module.globalLogics.push(item);
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
private _onDataTypesChange() {
|
|
996
|
-
config.webFileCache && generator.saveDataTypesCache(this.app);
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
private _onEnumsChange() {
|
|
1000
|
-
config.webFileCache && generator.saveEnumsCache(this.app);
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
private _onInterfacesChange() {
|
|
1004
|
-
config.webFileCache && generator.saveApisCache(this.app);
|
|
1005
|
-
generator.saveInterfacesCache(this);
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
private async _onVertexIdToNameChange(id: string, name: string) {
|
|
1009
|
-
// if (!config.webFileCache)
|
|
1010
|
-
// return;
|
|
1011
|
-
|
|
1012
|
-
if (id && name) {
|
|
1013
|
-
if (!vertexIdToName) {
|
|
1014
|
-
vertexIdToName = await generator.loadVertexIdToName(this.app);
|
|
1015
|
-
vertexIdToName = vertexIdToName || {};
|
|
1016
|
-
}
|
|
1017
|
-
// if (vertexIdToName[id] === name)
|
|
1018
|
-
// return;
|
|
1019
|
-
}
|
|
1020
|
-
// id 和 name 都没传时,跳过上一步的判断逻辑,直接更新
|
|
1021
|
-
if ((id && name) || (!id && !name)) {
|
|
1022
|
-
this._saveVertexIdToName();
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
/**
|
|
1026
|
-
* 从后端 JSON 生成规范的 MicroService 对象
|
|
1027
|
-
* @param source JSON
|
|
1028
|
-
* @param app 父级 App
|
|
1029
|
-
*/
|
|
1030
|
-
public static from(source: any, app: App) {
|
|
1031
|
-
source.app = app;
|
|
1032
|
-
return new MicroService(source);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
export default Service;
|