@lcap/nasl 1.0.0 → 2.12.0-beta
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/out/automate/engine/index.js +39 -127
- package/out/automate/engine/index.js.map +1 -1
- package/out/automate/engine/operators.d.ts +13 -0
- package/out/automate/engine/operators.js +63 -0
- package/out/automate/engine/operators.js.map +1 -0
- package/out/automate/engine/uniqueName.d.ts +6 -0
- package/out/automate/engine/uniqueName.js +39 -0
- package/out/automate/engine/uniqueName.js.map +1 -0
- package/out/automate/engine/utils.d.ts +1 -0
- package/out/automate/engine/utils.js +105 -67
- package/out/automate/engine/utils.js.map +1 -1
- package/out/common/BaseNode.d.ts +1 -1
- package/out/common/BaseNode.js +13 -3
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/App__.d.ts +52 -49
- package/out/concepts/App__.js +95 -60
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +1 -1
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +11 -0
- package/out/concepts/Assignee__.js +36 -2
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/Assignment__.js +1 -1
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.js +1 -1
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js +1 -1
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +4 -4
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +2 -2
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.js +11 -6
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js +1 -1
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallFunction__.js +25 -5
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.js +1 -1
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.js +24 -22
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +35 -5
- package/out/concepts/CallQueryComponent__.js +344 -99
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.js +2 -2
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +1 -1
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +1 -0
- package/out/concepts/ConfigGroup__.js +9 -2
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.js +1 -1
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +1 -0
- package/out/concepts/ConfigProperty__.js +5 -2
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +1 -0
- package/out/concepts/Configuration__.js +5 -2
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Constant__.js +7 -7
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataElement__.js +1 -1
- package/out/concepts/DataElement__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +143 -0
- package/out/concepts/DataSource__.js +316 -0
- package/out/concepts/DataSource__.js.map +1 -0
- package/out/concepts/Destination__.js +26 -9
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.js +3 -3
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +5 -0
- package/out/concepts/EntityIndex__.js +11 -3
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +9 -0
- package/out/concepts/EntityProperty__.js +23 -8
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +6 -3
- package/out/concepts/Entity__.js +28 -24
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.js +1 -1
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.d.ts +1 -0
- package/out/concepts/Enum__.js +15 -5
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js +2 -2
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +1 -1
- package/out/concepts/ForEachStatement__.js +5 -5
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/Function__.d.ts +18 -0
- package/out/concepts/Function__.js +100 -5
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.js +2 -12
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.js +9 -9
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js +10 -5
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js +21 -14
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.js +1 -1
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/LogicItem__.js +1 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +4 -0
- package/out/concepts/Logic__.js +59 -46
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +1 -2
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.d.ts +1 -85
- package/out/concepts/Module__.js +13 -114
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +0 -86
- package/out/concepts/Namespace__.js +12 -119
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NullLiteral__.js +1 -1
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js +1 -1
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/Param__.d.ts +3 -2
- package/out/concepts/Param__.js +15 -8
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.js +1 -1
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js +3 -3
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +39 -18
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.js +1 -1
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/Process__.js +21 -14
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.js +2 -2
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +1 -0
- package/out/concepts/QueryFieldExpression__.js +12 -2
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +4 -0
- package/out/concepts/QueryFromExpression__.js +14 -3
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +3 -0
- package/out/concepts/QueryGroupByExpression__.js +21 -1
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +4 -0
- package/out/concepts/QueryJoinExpression__.js +16 -5
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.js +1 -1
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js +2 -2
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.js +1 -1
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +1 -1
- package/out/concepts/Return__.js +16 -11
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.js +11 -4
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/Slot__.js +1 -1
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +10 -0
- package/out/concepts/SqlQueryComponent__.js +32 -5
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.js +1 -1
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringLiteral__.js +2 -9
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.js +6 -6
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js +22 -15
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.js +6 -6
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.js +1 -1
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/Theme__.js +1 -1
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.js +1 -1
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +8 -0
- package/out/concepts/TypeAnnotation__.js +56 -6
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.js +1 -1
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +1 -1
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.js +1 -1
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.js +1 -1
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +1 -1
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +1 -1
- package/out/concepts/Variable__.js +16 -11
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewComponent__.js +6 -6
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.js +21 -21
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +3 -1
- package/out/concepts/View__.js +53 -32
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.js +5 -5
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.configuration.js +1 -1
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +2 -0
- package/out/concepts/basics/stdlib/nasl.interface.js +4 -4
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +268 -6
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +1 -1
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -1
- package/out/concepts/basics/types/index.d.ts +1 -0
- package/out/concepts/basics/types/index.js +3 -1
- package/out/concepts/basics/types/index.js.map +1 -1
- package/out/concepts/index__.d.ts +1 -0
- package/out/concepts/index__.js +1 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/enums/KEYWORDS.js +0 -9
- package/out/enums/KEYWORDS.js.map +1 -1
- package/out/generator/genBundleFiles.js +8 -3
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.js +13 -12
- package/out/generator/genMetaData.js.map +1 -1
- package/out/manager/diagnostic.d.ts +1 -1
- package/out/server/createUiTs.js +1 -0
- package/out/server/createUiTs.js.map +1 -1
- package/out/server/extendBaseNode.d.ts +1 -0
- package/out/server/extendBaseNode.js +323 -0
- package/out/server/extendBaseNode.js.map +1 -0
- package/out/server/getLogics.js +31 -2
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +47 -2
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcesses.d.ts +7 -2
- package/out/server/getProcesses.js +220 -20
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/getScope.d.ts +3 -1
- package/out/server/getScope.js +30 -14
- package/out/server/getScope.js.map +1 -1
- package/out/server/index.d.ts +1 -0
- package/out/server/index.js +1 -0
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +7 -5
- package/out/server/naslServer.js +249 -372
- package/out/server/naslServer.js.map +1 -1
- package/out/server/process2LogicNamespace.js +10 -1
- package/out/server/process2LogicNamespace.js.map +1 -1
- package/out/server/translator.d.ts +1 -1
- package/out/server/translator.js +22 -2
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.js +32 -11
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +15 -11
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +15 -12
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +25 -21
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +12 -12
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +1 -1
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +21 -20
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +6 -3
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genQueryComponent.js +11 -8
- package/out/templator/genQueryComponent.js.map +1 -1
- package/out/templator/genSelectBlock.js +13 -22
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +17 -15
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +16 -12
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.d.ts +5 -3
- package/out/templator/utils.js +2 -1
- package/out/templator/utils.js.map +1 -1
- package/out/test/integration/connect-file.js +6 -6
- package/out/test/integration/connect-file.js.map +1 -1
- package/out/translator/index.js +1 -1
- package/out/translator/index.js.map +1 -1
- package/out/utils/index.d.ts +4 -0
- package/out/utils/index.js +38 -2
- package/out/utils/index.js.map +1 -1
- package/out/utils/string.d.ts +1 -1
- package/out/utils/string.js +38 -9
- package/out/utils/string.js.map +1 -1
- package/package.json +1 -2
- package/src/automate/engine/index.js +38 -128
- package/src/automate/engine/operators.js +63 -0
- package/src/automate/engine/uniqueName.js +36 -0
- package/src/automate/engine/utils.js +108 -69
- package/src/common/BaseNode.ts +14 -3
- package/src/concepts/App__.ts +138 -101
- package/src/concepts/Argument__.ts +1 -1
- package/src/concepts/Assignee__.ts +32 -2
- package/src/concepts/Assignment__.ts +1 -1
- package/src/concepts/Attribute__.ts +1 -1
- package/src/concepts/BinaryExpression__.ts +1 -1
- package/src/concepts/BindAttribute__.ts +4 -4
- package/src/concepts/BindDirective__.ts +2 -2
- package/src/concepts/BindEvent__.ts +10 -6
- package/src/concepts/BooleanLiteral__.ts +1 -1
- package/src/concepts/CallFunction__.ts +36 -18
- package/src/concepts/CallInterface__.ts +1 -1
- package/src/concepts/CallLogic__.ts +55 -24
- package/src/concepts/CallQueryComponent__.ts +357 -134
- package/src/concepts/Comment__.ts +2 -2
- package/src/concepts/CompletionProperty__.ts +1 -1
- package/src/concepts/ConfigGroup__.ts +5 -3
- package/src/concepts/ConfigPropertyValue__.ts +1 -1
- package/src/concepts/ConfigProperty__.ts +6 -2
- package/src/concepts/Configuration__.ts +5 -2
- package/src/concepts/Constant__.ts +7 -7
- package/src/concepts/DataElement__.ts +1 -1
- package/src/concepts/DataSource__.ts +389 -0
- package/src/concepts/Destination__.ts +28 -10
- package/src/concepts/End__.ts +3 -3
- package/src/concepts/EntityIndex__.ts +12 -3
- package/src/concepts/EntityProperty__.ts +24 -8
- package/src/concepts/Entity__.ts +39 -27
- package/src/concepts/EnumItem__.ts +1 -1
- package/src/concepts/Enum__.ts +16 -5
- package/src/concepts/Event__.ts +2 -2
- package/src/concepts/ForEachStatement__.ts +5 -5
- package/src/concepts/Function__.ts +101 -7
- package/src/concepts/Identifier__.ts +2 -12
- package/src/concepts/IfStatement__.ts +10 -10
- package/src/concepts/InterfaceParam__.ts +10 -5
- package/src/concepts/Interface__.ts +22 -14
- package/src/concepts/JSBlock__.ts +1 -1
- package/src/concepts/LogicItem__.ts +1 -1
- package/src/concepts/Logic__.ts +60 -43
- package/src/concepts/MemberExpression__.ts +1 -2
- package/src/concepts/Module__.ts +16 -211
- package/src/concepts/Namespace__.ts +12 -215
- package/src/concepts/NullLiteral__.ts +1 -1
- package/src/concepts/NumericLiteral__.ts +1 -1
- package/src/concepts/Param__.ts +17 -9
- package/src/concepts/Point__.ts +1 -1
- package/src/concepts/ProcessComponent__.ts +3 -3
- package/src/concepts/ProcessElement__.ts +43 -21
- package/src/concepts/ProcessOutcome__.ts +1 -1
- package/src/concepts/Process__.ts +21 -15
- package/src/concepts/QueryAggregateExpression__.ts +2 -2
- package/src/concepts/QueryFieldExpression__.ts +14 -2
- package/src/concepts/QueryFromExpression__.ts +14 -3
- package/src/concepts/QueryGroupByExpression__.ts +24 -1
- package/src/concepts/QueryJoinExpression__.ts +16 -5
- package/src/concepts/QueryLimitExpression__.ts +9 -0
- package/src/concepts/QueryOrderByExpression__.ts +1 -1
- package/src/concepts/QuerySelectExpression__.ts +2 -2
- package/src/concepts/Rect__.ts +1 -1
- package/src/concepts/Return__.ts +16 -11
- package/src/concepts/Role__.ts +11 -5
- package/src/concepts/Slot__.ts +1 -1
- package/src/concepts/SqlQueryComponent__.ts +30 -11
- package/src/concepts/Start__.ts +1 -1
- package/src/concepts/StringLiteral__.ts +2 -9
- package/src/concepts/StructureProperty__.ts +6 -6
- package/src/concepts/Structure__.ts +22 -14
- package/src/concepts/SwitchCase__.ts +6 -6
- package/src/concepts/SwitchStatement__.ts +1 -1
- package/src/concepts/Theme__.ts +1 -1
- package/src/concepts/Transactional__.ts +1 -1
- package/src/concepts/TypeAnnotation__.ts +55 -25
- package/src/concepts/TypeParam__.ts +1 -1
- package/src/concepts/UnaryExpression__.ts +1 -1
- package/src/concepts/Unparsed__.ts +1 -1
- package/src/concepts/UseComponent__.ts +1 -1
- package/src/concepts/ValidationRule__.ts +1 -1
- package/src/concepts/Variable__.ts +16 -11
- package/src/concepts/ViewComponent__.ts +6 -6
- package/src/concepts/ViewElement__.ts +21 -21
- package/src/concepts/View__.ts +54 -32
- package/src/concepts/WhileStatement__.ts +5 -5
- package/src/concepts/basics/stdlib/nasl.configuration.ts +1 -1
- package/src/concepts/basics/stdlib/nasl.interface.ts +1 -1
- package/src/concepts/basics/stdlib/nasl.util.ts +269 -6
- package/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts +1 -1
- package/src/concepts/basics/types/index.ts +1 -0
- package/src/concepts/index__.ts +1 -0
- package/src/enums/KEYWORDS.ts +0 -9
- package/src/generator/genBundleFiles.ts +8 -3
- package/src/generator/genMetaData.ts +13 -13
- package/src/manager/diagnostic.ts +1 -1
- package/src/server/createUiTs.ts +1 -0
- package/src/server/extendBaseNode.ts +318 -0
- package/src/server/getLogics.ts +33 -4
- package/src/server/getMemberIdentifier.ts +49 -2
- package/src/server/getProcesses.ts +231 -21
- package/src/server/getScope.ts +41 -24
- package/src/server/index.ts +1 -0
- package/src/server/naslServer.ts +248 -366
- package/src/server/process2LogicNamespace.ts +29 -19
- package/src/server/translator.ts +25 -2
- package/src/service/storage/init.ts +32 -12
- package/src/templator/genCreateBlock.ts +16 -13
- package/src/templator/genCurdEditMultipleKeyBlock.ts +16 -13
- package/src/templator/genCurdMultipleKeyBlock.ts +26 -22
- package/src/templator/genEditTableBlock.ts +14 -13
- package/src/templator/genGetBlock.ts +1 -1
- package/src/templator/genGridViewBlock.ts +22 -21
- package/src/templator/genListViewBlock.ts +9 -5
- package/src/templator/genQueryComponent.ts +12 -9
- package/src/templator/genSelectBlock.ts +14 -23
- package/src/templator/genTableBlock.ts +18 -16
- package/src/templator/genUpdateBlock.ts +17 -13
- package/src/templator/utils.ts +5 -2
- package/src/test/integration/connect-file.ts +6 -6
- package/src/translator/index.ts +1 -1
- package/src/utils/index.ts +38 -1
- package/src/utils/string.ts +39 -9
- package/out/concepts/basics/stdlib/nasl.browser copy.d.ts +0 -3
- package/out/concepts/basics/stdlib/nasl.browser copy.js +0 -70
- package/out/concepts/basics/stdlib/nasl.browser copy.js.map +0 -1
- package/out/terms/LEVEL_NAME_MAP.d.ts +0 -26
- package/out/terms/LEVEL_NAME_MAP.js +0 -30
- package/out/terms/LEVEL_NAME_MAP.js.map +0 -1
|
@@ -718,18 +718,281 @@ export default new Namespace({
|
|
|
718
718
|
],
|
|
719
719
|
}),
|
|
720
720
|
new Function({
|
|
721
|
-
name: '
|
|
722
|
-
description: '
|
|
721
|
+
name: 'CreatePageOf',
|
|
722
|
+
description: '将List<T>集合转换为分页集合PageOf<T>',
|
|
723
723
|
params: [
|
|
724
724
|
new Param({
|
|
725
|
-
name: '
|
|
726
|
-
typeAnnotation: TypeAnnotation.
|
|
727
|
-
|
|
725
|
+
name: 'list',
|
|
726
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
727
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
728
|
+
}),
|
|
729
|
+
}),
|
|
730
|
+
new Param({
|
|
731
|
+
name: 'page',
|
|
732
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
733
|
+
}),
|
|
734
|
+
new Param({
|
|
735
|
+
name: 'size',
|
|
736
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
737
|
+
}),
|
|
738
|
+
new Param({
|
|
739
|
+
name: 'total',
|
|
740
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
728
741
|
}),
|
|
729
742
|
],
|
|
730
743
|
returns: [
|
|
731
744
|
new Return({
|
|
732
|
-
typeAnnotation: TypeAnnotation.createPrimitive('
|
|
745
|
+
typeAnnotation: TypeAnnotation.createPrimitive('PageOf', {
|
|
746
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
747
|
+
}),
|
|
748
|
+
}),
|
|
749
|
+
],
|
|
750
|
+
}),
|
|
751
|
+
new Function({
|
|
752
|
+
name: 'ListSort',
|
|
753
|
+
description: '为集合按规则排序',
|
|
754
|
+
params: [
|
|
755
|
+
new Param({
|
|
756
|
+
name: 'list',
|
|
757
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
758
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
759
|
+
}),
|
|
760
|
+
}),
|
|
761
|
+
new Param({
|
|
762
|
+
name: 'by',
|
|
763
|
+
defaultExpression: new Function({
|
|
764
|
+
name: '',
|
|
765
|
+
description: '',
|
|
766
|
+
params: [
|
|
767
|
+
new Param({
|
|
768
|
+
name: 'item',
|
|
769
|
+
typeAnnotation: null,
|
|
770
|
+
}),
|
|
771
|
+
],
|
|
772
|
+
}),
|
|
773
|
+
}),
|
|
774
|
+
new Param({
|
|
775
|
+
name: 'sort',
|
|
776
|
+
description: '下拉选择升序、降序',
|
|
777
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
778
|
+
defaultValue: 'asc',
|
|
779
|
+
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
780
|
+
options: [
|
|
781
|
+
{ text: 'asc', value: 'true' },
|
|
782
|
+
{ text: 'desc', value: 'false' },
|
|
783
|
+
],
|
|
784
|
+
}),
|
|
785
|
+
],
|
|
786
|
+
returns: [],
|
|
787
|
+
}),
|
|
788
|
+
new Function({
|
|
789
|
+
name: 'ListFind',
|
|
790
|
+
description: '筛选符合条件的第一个项',
|
|
791
|
+
params: [
|
|
792
|
+
new Param({
|
|
793
|
+
name: 'list',
|
|
794
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
795
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
796
|
+
}),
|
|
797
|
+
}),
|
|
798
|
+
new Param({
|
|
799
|
+
name: 'by',
|
|
800
|
+
defaultExpression: new Function({
|
|
801
|
+
name: '',
|
|
802
|
+
description: '',
|
|
803
|
+
params: [
|
|
804
|
+
new Param({
|
|
805
|
+
name: 'item',
|
|
806
|
+
typeAnnotation: null,
|
|
807
|
+
}),
|
|
808
|
+
],
|
|
809
|
+
}),
|
|
810
|
+
}),
|
|
811
|
+
],
|
|
812
|
+
returns: [
|
|
813
|
+
new Return({
|
|
814
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
815
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
816
|
+
}),
|
|
817
|
+
}),
|
|
818
|
+
],
|
|
819
|
+
}),
|
|
820
|
+
new Function({
|
|
821
|
+
name: 'ListFindIndex',
|
|
822
|
+
description: '筛选符合条件的第一个项的索引值',
|
|
823
|
+
params: [
|
|
824
|
+
new Param({
|
|
825
|
+
name: 'list',
|
|
826
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
827
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
828
|
+
}),
|
|
829
|
+
}),
|
|
830
|
+
new Param({
|
|
831
|
+
name: 'by',
|
|
832
|
+
defaultExpression: new Function({
|
|
833
|
+
name: '',
|
|
834
|
+
description: '',
|
|
835
|
+
params: [
|
|
836
|
+
new Param({
|
|
837
|
+
name: 'item',
|
|
838
|
+
typeAnnotation: null,
|
|
839
|
+
}),
|
|
840
|
+
],
|
|
841
|
+
}),
|
|
842
|
+
}),
|
|
843
|
+
],
|
|
844
|
+
returns: [
|
|
845
|
+
new Return({
|
|
846
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
847
|
+
}),
|
|
848
|
+
],
|
|
849
|
+
}),
|
|
850
|
+
new Function({
|
|
851
|
+
name: 'ListFindAll',
|
|
852
|
+
description: '筛选符合条件的所有项',
|
|
853
|
+
params: [
|
|
854
|
+
new Param({
|
|
855
|
+
name: 'list',
|
|
856
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
857
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
858
|
+
}),
|
|
859
|
+
}),
|
|
860
|
+
new Param({
|
|
861
|
+
name: 'by',
|
|
862
|
+
defaultExpression: new Function({
|
|
863
|
+
name: '',
|
|
864
|
+
description: '',
|
|
865
|
+
params: [
|
|
866
|
+
new Param({
|
|
867
|
+
name: 'item',
|
|
868
|
+
typeAnnotation: null,
|
|
869
|
+
}),
|
|
870
|
+
],
|
|
871
|
+
}),
|
|
872
|
+
}),
|
|
873
|
+
],
|
|
874
|
+
returns: [
|
|
875
|
+
new Return({
|
|
876
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
877
|
+
}),
|
|
878
|
+
],
|
|
879
|
+
}),
|
|
880
|
+
new Function({
|
|
881
|
+
name: 'ListReverse',
|
|
882
|
+
description: '为集合反向排序',
|
|
883
|
+
params: [
|
|
884
|
+
new Param({
|
|
885
|
+
name: 'list',
|
|
886
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
887
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
888
|
+
}),
|
|
889
|
+
}),
|
|
890
|
+
],
|
|
891
|
+
returns: [],
|
|
892
|
+
}),
|
|
893
|
+
new Function({
|
|
894
|
+
name: 'ListDistinct',
|
|
895
|
+
description: '为集合去除重复项',
|
|
896
|
+
params: [
|
|
897
|
+
new Param({
|
|
898
|
+
name: 'list',
|
|
899
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
900
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
901
|
+
}),
|
|
902
|
+
}),
|
|
903
|
+
],
|
|
904
|
+
returns: [],
|
|
905
|
+
}),
|
|
906
|
+
new Function({
|
|
907
|
+
name: 'ListSlice',
|
|
908
|
+
description: '将集合按照规则切片,返回切片后的子集合',
|
|
909
|
+
params: [
|
|
910
|
+
new Param({
|
|
911
|
+
name: 'list',
|
|
912
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
913
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
914
|
+
}),
|
|
915
|
+
}),
|
|
916
|
+
new Param({
|
|
917
|
+
name: 'start',
|
|
918
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
919
|
+
}),
|
|
920
|
+
new Param({
|
|
921
|
+
name: 'end',
|
|
922
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
923
|
+
}),
|
|
924
|
+
],
|
|
925
|
+
returns: [
|
|
926
|
+
new Return({
|
|
927
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
928
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
929
|
+
}),
|
|
930
|
+
}),
|
|
931
|
+
],
|
|
932
|
+
}),
|
|
933
|
+
new Function({
|
|
934
|
+
name: 'ListSliceToPageOf',
|
|
935
|
+
description: '将集合按照规则切片,返回切片后的PageOf集合',
|
|
936
|
+
params: [
|
|
937
|
+
new Param({
|
|
938
|
+
name: 'list',
|
|
939
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
940
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
941
|
+
}),
|
|
942
|
+
}),
|
|
943
|
+
new Param({
|
|
944
|
+
name: 'page',
|
|
945
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
946
|
+
}),
|
|
947
|
+
new Param({
|
|
948
|
+
name: 'size',
|
|
949
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
950
|
+
}),
|
|
951
|
+
],
|
|
952
|
+
returns: [
|
|
953
|
+
new Return({
|
|
954
|
+
typeAnnotation: TypeAnnotation.createGeneric('PageOf', {
|
|
955
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
956
|
+
}),
|
|
957
|
+
}),
|
|
958
|
+
],
|
|
959
|
+
}),
|
|
960
|
+
new Function({
|
|
961
|
+
name: 'ListAddAll',
|
|
962
|
+
description: '为集合添加多项内容,并返回集合长度',
|
|
963
|
+
params: [
|
|
964
|
+
new Param({
|
|
965
|
+
name: 'list',
|
|
966
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
967
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
968
|
+
}),
|
|
969
|
+
}),
|
|
970
|
+
new Param({
|
|
971
|
+
name: 'addlist',
|
|
972
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
973
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
974
|
+
}),
|
|
975
|
+
}),
|
|
976
|
+
],
|
|
977
|
+
returns: [
|
|
978
|
+
new Return({
|
|
979
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
|
|
980
|
+
}),
|
|
981
|
+
],
|
|
982
|
+
}),
|
|
983
|
+
new Function({
|
|
984
|
+
name: 'New',
|
|
985
|
+
description: '根据参数选择的类型,返回该参数的实例化对象',
|
|
986
|
+
typeParams: [
|
|
987
|
+
new TypeParam({
|
|
988
|
+
name: 'T',
|
|
989
|
+
}),
|
|
990
|
+
],
|
|
991
|
+
params: [
|
|
992
|
+
],
|
|
993
|
+
returns: [
|
|
994
|
+
new Return({
|
|
995
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
733
996
|
}),
|
|
734
997
|
],
|
|
735
998
|
}),
|
|
@@ -9,7 +9,7 @@ import Enum from '../../Enum__';
|
|
|
9
9
|
import TypeAnnotation from '../../TypeAnnotation__';
|
|
10
10
|
import { primitiveTypeList } from '../types/coreTypeList';
|
|
11
11
|
|
|
12
|
-
export function reference2TypeAnnotationList(list: Array<Entity | Structure | Enum
|
|
12
|
+
export function reference2TypeAnnotationList(list: Array<Entity | Structure | Enum> = [], namespace: string) {
|
|
13
13
|
return list.map((item) => {
|
|
14
14
|
if (item instanceof Structure && item.typeParams?.length > 0) {
|
|
15
15
|
return TypeAnnotation.createReference(item.name, {
|
|
@@ -18,3 +18,4 @@ primitiveTypeList.forEach((typeAnnotation) => {
|
|
|
18
18
|
export { collectionStructures, collectionTypeList } from '../stdlib/nasl.collection';
|
|
19
19
|
export { uiStructures, uiTypeList } from '../stdlib/nasl.ui';
|
|
20
20
|
export { interfaceTypeList } from '../stdlib/nasl.interface';
|
|
21
|
+
export { interfaceStructures } from '../stdlib/nasl.interface';
|
package/src/concepts/index__.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './StructureProperty__';
|
|
|
8
8
|
export * from './Enum__';
|
|
9
9
|
export * from './EnumItem__';
|
|
10
10
|
export * from './DataElement__';
|
|
11
|
+
export * from './DataSource__';
|
|
11
12
|
export * from './Entity__';
|
|
12
13
|
export * from './EntityProperty__';
|
|
13
14
|
export * from './EntityIndex__';
|
package/src/enums/KEYWORDS.ts
CHANGED
|
@@ -130,8 +130,6 @@ export const KEYWORDS = [
|
|
|
130
130
|
'out',
|
|
131
131
|
'override',
|
|
132
132
|
'package',
|
|
133
|
-
'param',
|
|
134
|
-
'params',
|
|
135
133
|
'path',
|
|
136
134
|
'pc',
|
|
137
135
|
'private',
|
|
@@ -791,7 +789,6 @@ export const ENTITY_KEYWORDS = [
|
|
|
791
789
|
'PROTECTED',
|
|
792
790
|
'PUBLIC',
|
|
793
791
|
'PURGE',
|
|
794
|
-
'Page',
|
|
795
792
|
'Pageable',
|
|
796
793
|
'PaginationUtil',
|
|
797
794
|
'PutMapping',
|
|
@@ -914,14 +911,12 @@ export const ENTITY_KEYWORDS = [
|
|
|
914
911
|
'SHUTDOWN',
|
|
915
912
|
'SIGNAL',
|
|
916
913
|
'SIMILAR',
|
|
917
|
-
'SIZE',
|
|
918
914
|
'SKIP',
|
|
919
915
|
'SKIP_UNUSABLE_INDEXES',
|
|
920
916
|
'SLOW',
|
|
921
917
|
'SMALLINT',
|
|
922
918
|
'SNAPSHOT',
|
|
923
919
|
'SOME',
|
|
924
|
-
'SORT',
|
|
925
920
|
'SPATIAL',
|
|
926
921
|
'SPECIFIC',
|
|
927
922
|
'SPECIFICATION',
|
|
@@ -1199,8 +1194,4 @@ export const ENTITY_PROPERTY_KEYWORDS = [
|
|
|
1199
1194
|
'PUBLIC',
|
|
1200
1195
|
'STATIC',
|
|
1201
1196
|
'YIELD',
|
|
1202
|
-
'SIZE',
|
|
1203
|
-
'SORT',
|
|
1204
|
-
'CODE',
|
|
1205
|
-
'PAGE',
|
|
1206
1197
|
];
|
|
@@ -56,7 +56,13 @@ export async function genBundleFiles(app: App,
|
|
|
56
56
|
const processes: Process[] = [];
|
|
57
57
|
|
|
58
58
|
app.views && views.push(...app.views);
|
|
59
|
-
|
|
59
|
+
if (Array.isArray(app.dataSources)) {
|
|
60
|
+
app.dataSources.forEach((dataSource) => {
|
|
61
|
+
if (Array.isArray(dataSource.entities)) {
|
|
62
|
+
entities.push(...dataSource.entities);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
60
66
|
app.structures && structures.push(...app.structures);
|
|
61
67
|
app.enums && enums.push(...app.enums);
|
|
62
68
|
app.logics && logics.push(...app.logics);
|
|
@@ -67,7 +73,6 @@ export async function genBundleFiles(app: App,
|
|
|
67
73
|
|
|
68
74
|
modules.forEach((module: Module) => {
|
|
69
75
|
module.views && views.push(...module.views);
|
|
70
|
-
module.entities && entities.push(...module.entities);
|
|
71
76
|
module.structures && structures.push(...module.structures);
|
|
72
77
|
module.enums && enums.push(...module.enums);
|
|
73
78
|
module.logics && logics.push(...module.logics);
|
|
@@ -345,7 +350,7 @@ export async function genBundleFiles(app: App,
|
|
|
345
350
|
|
|
346
351
|
if (config.env === 'dev') {
|
|
347
352
|
// 加载资源js
|
|
348
|
-
const domain = config.lowcodeDomain.slice(
|
|
353
|
+
const domain = config.lowcodeDomain.slice(config.lowcodeDomain.indexOf('.') + 1);
|
|
349
354
|
const targetUrl = `${location.origin}/empty?url=${domain}&appid=${config.appid}`;
|
|
350
355
|
const str = `
|
|
351
356
|
if(!document.querySelector("iframe[name='iframeEmpty']")){
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { App, View, BaseNode, Module, Interface, Entity, Structure, Enum, uiStructures, collectionStructures, Logic, Process } from '../concepts';
|
|
1
|
+
import { App, View, BaseNode, Module, Interface, Entity, Structure, Enum, uiStructures, collectionStructures, Logic, Process, DataSource } from '../concepts';
|
|
2
2
|
|
|
3
3
|
export function genMetaData(app: App,
|
|
4
4
|
config: {
|
|
@@ -12,7 +12,7 @@ export function genMetaData(app: App,
|
|
|
12
12
|
}) {
|
|
13
13
|
const modules: Module[] = [];
|
|
14
14
|
const views: View[] = [];
|
|
15
|
-
const
|
|
15
|
+
const dataSources: DataSource[] = [];
|
|
16
16
|
const structures: Structure[] = [];
|
|
17
17
|
const enums: Enum[] = [];
|
|
18
18
|
const logics: Logic[] = [];
|
|
@@ -20,7 +20,7 @@ export function genMetaData(app: App,
|
|
|
20
20
|
const processes: Process[] = [];
|
|
21
21
|
|
|
22
22
|
const {
|
|
23
|
-
|
|
23
|
+
dataSources: appDataSources = [],
|
|
24
24
|
structures: appStructures = [],
|
|
25
25
|
enums: appEnums = [],
|
|
26
26
|
logics: appLogics = [],
|
|
@@ -28,7 +28,7 @@ export function genMetaData(app: App,
|
|
|
28
28
|
dependencies: appDependencies = [],
|
|
29
29
|
processes: appProcesses = [],
|
|
30
30
|
} = app || {};
|
|
31
|
-
|
|
31
|
+
dataSources.push(...appDataSources);
|
|
32
32
|
structures.push(...appStructures);
|
|
33
33
|
enums.push(...appEnums);
|
|
34
34
|
logics.push(...appLogics);
|
|
@@ -42,14 +42,12 @@ export function genMetaData(app: App,
|
|
|
42
42
|
modules.forEach((module: Module) => {
|
|
43
43
|
const {
|
|
44
44
|
views: moduleViews = [],
|
|
45
|
-
entities: moduleEntities = [],
|
|
46
45
|
structures: moduleStructures = [],
|
|
47
46
|
enums: moduleEnums = [],
|
|
48
47
|
logics: moduleLogics = [],
|
|
49
48
|
interfaces: moduleInterfaces = [],
|
|
50
49
|
} = module;
|
|
51
50
|
views.push(...moduleViews);
|
|
52
|
-
entities.push(...moduleEntities);
|
|
53
51
|
structures.push(...moduleStructures);
|
|
54
52
|
enums.push(...moduleEnums);
|
|
55
53
|
logics.push(...moduleLogics);
|
|
@@ -93,13 +91,15 @@ export function genMetaData(app: App,
|
|
|
93
91
|
enumsMap[name] = enumObj;
|
|
94
92
|
});
|
|
95
93
|
}
|
|
96
|
-
if (Array.isArray(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
if (Array.isArray(dataSources)) {
|
|
95
|
+
dataSources.forEach((dataSource)=> {
|
|
96
|
+
dataSource.entities.forEach((entity) => {
|
|
97
|
+
dataTypes.push(entity);
|
|
98
|
+
const ns = entity.ns;
|
|
99
|
+
if (Array.isArray(ns?.logics)) {
|
|
100
|
+
allLogics.push(...ns.logics);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
if (Array.isArray(structures)) {
|
|
@@ -10,7 +10,7 @@ import * as tsProtocol from 'typescript/lib/protocol';
|
|
|
10
10
|
export interface Diagnostic {
|
|
11
11
|
id?: string;
|
|
12
12
|
severity: string;
|
|
13
|
-
originalDiagnostic
|
|
13
|
+
originalDiagnostic?: tsProtocol.DiagnosticWithFileName;
|
|
14
14
|
message?: string;
|
|
15
15
|
code?: number;
|
|
16
16
|
node?: BaseNode;
|
package/src/server/createUiTs.ts
CHANGED
|
@@ -12,6 +12,7 @@ const naslStdlibMap: any = {
|
|
|
12
12
|
'nasl.langUtil.ts': require('!!raw-loader!../../../file-storage/data/stdlib/nasl.langUtil.ts').default,
|
|
13
13
|
'nasl.annotation.ts': require('!!raw-loader!../../../file-storage/data/stdlib/nasl.annotation.ts').default,
|
|
14
14
|
'nasl.validation.ts': require('!!raw-loader!../../../file-storage/data/stdlib/nasl.validation.ts').default,
|
|
15
|
+
'nasl.process.ts': require('!!raw-loader!../../../file-storage/data/stdlib/nasl.process.ts').default,
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export default function formatUiTs(allComponent: any) {
|