@lcap/nasl 3.8.2-beta.9 → 3.8.3-beta.2
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/ai-engineer.config.js +617 -0
- package/out/common/BaseNode.d.ts +9 -4
- package/out/common/BaseNode.js +43 -10
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +2 -50
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BackendVariable__.js +16 -1
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +12 -4
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +1 -1
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindStyle__.js +1 -1
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +2 -42
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +2 -50
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +1 -1
- package/out/concepts/CallFunction__.js +1 -1
- package/out/concepts/CallLogic__.js +7 -1
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +1 -0
- package/out/concepts/CallQueryComponent__.js +23 -12
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Destination__.js +11 -8
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +3 -2
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.js +1 -1
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +2 -0
- package/out/concepts/Identifier__.js +51 -5
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/Interface__.js +1 -1
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/Logic__.js +33 -111
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -1
- package/out/concepts/MemberExpression__.js +15 -3
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +37 -12
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +2 -50
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.js +5 -4
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.js +4 -0
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +4 -0
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessV2__.js +4 -0
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/Process__.js +4 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +0 -1
- package/out/concepts/QueryOrderByExpression__.js +0 -1
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/Structure__.js +5 -7
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SubLogic__.js +5 -50
- package/out/concepts/SubLogic__.js.map +1 -1
- package/out/concepts/Variable__.js +5 -0
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +1 -0
- package/out/concepts/ViewElement__.js +16 -6
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +48 -49
- package/out/concepts/View__.js.map +1 -1
- package/out/natural/genNaturalTS.d.ts +45 -10
- package/out/natural/genNaturalTS.js +57 -33
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/natural/getContext/getUILib.js +6 -3
- package/out/natural/getContext/getUILib.js.map +1 -1
- package/out/natural/getContext/index.d.ts +20 -7
- package/out/natural/getContext/index.js +143 -23
- package/out/natural/getContext/index.js.map +1 -1
- package/out/natural/getContext/naslStdlibMap.js +8 -8
- package/out/natural/getContext/naslStdlibMap.js.map +1 -1
- package/out/natural/tools.d.ts +16 -0
- package/out/natural/tools.js +110 -2
- package/out/natural/tools.js.map +1 -1
- package/out/natural/transformTS2UI.js +343 -292
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/natural/transformTSCode.d.ts +3 -5
- package/out/natural/transformTSCode.js +30 -1089
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/natural/transforms/registerTransform.d.ts +7 -0
- package/out/natural/transforms/registerTransform.js +24 -0
- package/out/natural/transforms/registerTransform.js.map +1 -0
- package/out/natural/transforms/transform2LogicItem.d.ts +24 -0
- package/out/natural/transforms/transform2LogicItem.js +1240 -0
- package/out/natural/transforms/transform2LogicItem.js.map +1 -0
- package/out/natural/transforms/transform2TypeAnnotation.d.ts +2 -0
- package/out/natural/transforms/transform2TypeAnnotation.js +86 -0
- package/out/natural/transforms/transform2TypeAnnotation.js.map +1 -0
- package/out/natural/transforms/utils.d.ts +8 -0
- package/out/natural/transforms/utils.js +59 -0
- package/out/natural/transforms/utils.js.map +1 -0
- package/out/server/getLogics.js +12 -12
- package/out/server/getLogics.js.map +1 -1
- package/out/server/naslServer.d.ts +2 -2
- package/out/server/naslServer.js +48 -18
- package/out/server/naslServer.js.map +1 -1
- package/out/server/semanticData.d.ts +32 -0
- package/out/server/semanticData.js +371 -0
- package/out/server/semanticData.js.map +1 -0
- package/out/server/translator.js +5 -0
- package/out/server/translator.js.map +1 -1
- package/out/templator/block2nasl/jsx2nasl/index.d.ts +5 -0
- package/out/templator/block2nasl/jsx2nasl/index.js +15 -0
- package/out/templator/block2nasl/jsx2nasl/index.js.map +1 -0
- package/out/templator/block2nasl/jsx2nasl/transform-expression2nasl.d.ts +3 -0
- package/out/templator/block2nasl/jsx2nasl/transform-expression2nasl.js +213 -0
- package/out/templator/block2nasl/jsx2nasl/transform-expression2nasl.js.map +1 -0
- package/out/templator/block2nasl/jsx2nasl/transform-func2nasl.d.ts +14 -0
- package/out/templator/block2nasl/jsx2nasl/transform-func2nasl.js +201 -0
- package/out/templator/block2nasl/jsx2nasl/transform-func2nasl.js.map +1 -0
- package/out/templator/block2nasl/jsx2nasl/transform-tstype2nasl.d.ts +4 -0
- package/out/templator/block2nasl/jsx2nasl/transform-tstype2nasl.js +186 -0
- package/out/templator/block2nasl/jsx2nasl/transform-tstype2nasl.js.map +1 -0
- package/out/templator/block2nasl/jsx2nasl/transform-tsx2nasl.d.ts +28 -0
- package/out/templator/block2nasl/jsx2nasl/transform-tsx2nasl.js +336 -0
- package/out/templator/block2nasl/jsx2nasl/transform-tsx2nasl.js.map +1 -0
- package/out/templator/block2nasl/jsx2nasl/utils.d.ts +2 -0
- package/out/templator/block2nasl/jsx2nasl/utils.js +26 -0
- package/out/templator/block2nasl/jsx2nasl/utils.js.map +1 -0
- package/out/templator/block2nasl/transformBlock2Nasl.d.ts +10 -0
- package/out/templator/block2nasl/transformBlock2Nasl.js +122 -0
- package/out/templator/block2nasl/transformBlock2Nasl.js.map +1 -0
- package/out/templator/block2nasl/viewMergeBlock.d.ts +9 -0
- package/out/templator/block2nasl/viewMergeBlock.js +111 -0
- package/out/templator/block2nasl/viewMergeBlock.js.map +1 -0
- package/out/translator/types.d.ts +2 -0
- package/out/translator/utils.js +1 -1
- package/out/translator/utils.js.map +1 -1
- package/out/utils/index.js +0 -4
- package/out/utils/index.js.map +1 -1
- package/out/utils/language-cache/constant.d.ts +2 -1
- package/out/utils/language-cache/constant.js +1 -0
- package/out/utils/language-cache/constant.js.map +1 -1
- package/out/utils/language-cache/nasl.d.ts +1 -0
- package/out/utils/language-cache/nasl.js +9 -1
- package/out/utils/language-cache/nasl.js.map +1 -1
- package/package.json +6 -2
- package/sandbox-natural/stdlib/nasl.core.d.ts +54 -0
- package/sandbox-natural/stdlib/nasl.oql.d.ts +22 -0
- package/sandbox-natural/stdlib/nasl.ui.d.ts +78 -0
- package/sandbox-natural/stdlib/nasl.ui.h5.d.ts +1684 -1643
- package/sandbox-natural/stdlib/nasl.ui.h5.json +15746 -15045
- package/sandbox-natural/stdlib/nasl.ui.pc.d.ts +5341 -5154
- package/sandbox-natural/stdlib/nasl.ui.pc.json +31176 -30681
- package/sandbox-natural/stdlib/{nasl.util.ts → nasl.util.d.ts} +49 -43
- package/src/common/BaseNode.ts +50 -8
- package/src/concepts/AuthLogicForCallInterface__.ts +3 -56
- package/src/concepts/BackendVariable__.ts +16 -1
- package/src/concepts/BindAttribute__.ts +18 -13
- package/src/concepts/BindDirective__.ts +1 -1
- package/src/concepts/BindStyle__.ts +1 -1
- package/src/concepts/BusinessComponent__.ts +6 -51
- package/src/concepts/BusinessLogic__.ts +4 -56
- package/src/concepts/CallFunction__.ts +1 -1
- package/src/concepts/CallLogic__.ts +21 -16
- package/src/concepts/CallQueryComponent__.ts +26 -12
- package/src/concepts/Destination__.ts +14 -12
- package/src/concepts/EntityProperty__.ts +5 -5
- package/src/concepts/Entity__.ts +1 -1
- package/src/concepts/Identifier__.ts +57 -6
- package/src/concepts/Interface__.ts +1 -1
- package/src/concepts/Logic__.ts +44 -134
- package/src/concepts/MemberExpression__.ts +21 -7
- package/src/concepts/OqlQueryComponent__.ts +29 -5
- package/src/concepts/OverriddenLogic__.ts +4 -56
- package/src/concepts/Param__.ts +5 -4
- package/src/concepts/ProcessElementV2__.ts +4 -0
- package/src/concepts/ProcessElement__.ts +4 -0
- package/src/concepts/ProcessV2__.ts +5 -0
- package/src/concepts/Process__.ts +4 -0
- package/src/concepts/QueryOrderByExpression__.ts +0 -1
- package/src/concepts/Structure__.ts +5 -7
- package/src/concepts/SubLogic__.ts +6 -56
- package/src/concepts/Variable__.ts +9 -5
- package/src/concepts/ViewElement__.ts +24 -7
- package/src/concepts/View__.ts +75 -76
- package/src/natural/genNaturalTS.ts +88 -39
- package/src/natural/getContext/getUILib.ts +6 -3
- package/src/natural/getContext/index.ts +125 -23
- package/src/natural/getContext/naslStdlibMap.ts +8 -8
- package/src/natural/tools.ts +107 -2
- package/src/natural/transformTS2UI.ts +190 -137
- package/src/natural/transformTSCode.ts +29 -1055
- package/src/natural/transforms/registerTransform.ts +34 -0
- package/src/natural/transforms/transform2LogicItem.ts +1335 -0
- package/src/natural/transforms/transform2TypeAnnotation.ts +77 -0
- package/src/natural/transforms/utils.ts +25 -0
- package/src/server/getLogics.ts +12 -12
- package/src/server/naslServer.ts +54 -19
- package/src/server/semanticData.ts +447 -0
- package/src/server/translator.ts +5 -0
- package/src/templator/block2nasl/jsx2nasl/index.ts +11 -0
- package/src/templator/block2nasl/jsx2nasl/transform-expression2nasl.ts +238 -0
- package/src/templator/block2nasl/jsx2nasl/transform-func2nasl.ts +241 -0
- package/src/templator/block2nasl/jsx2nasl/transform-tstype2nasl.ts +213 -0
- package/src/templator/block2nasl/jsx2nasl/transform-tsx2nasl.ts +422 -0
- package/src/templator/block2nasl/jsx2nasl/utils.ts +19 -0
- package/src/templator/block2nasl/transformBlock2Nasl.ts +99 -0
- package/src/templator/block2nasl/viewMergeBlock.ts +150 -0
- package/src/translator/types.ts +2 -0
- package/src/translator/utils.ts +2 -2
- package/src/utils/index.ts +0 -4
- package/src/utils/language-cache/constant.ts +1 -0
- package/src/utils/language-cache/nasl.ts +6 -0
- package/test/concepts/logic/__snapshots__/toEmbeddedTS.spec.ts.snap +182 -0
- package/test/concepts/logic/constant.ts +5 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-member-expression.json +267 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-nested-member-expression copy.json +457 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-with-handle-error-member-expression.json +267 -0
- package/test/concepts/logic/toEmbeddedTS.spec.ts +15 -0
- package/test/tdd/dataQuery/QueryFieldExpression/case1/ast.json +7 -0
- package/test/tdd/dataQuery/QueryFieldExpression/case1/natural.ts.txt +1 -0
- package/test/tdd/dataQuery/QueryFieldExpression/case2/ast.json +7 -0
- package/test/tdd/dataQuery/QueryFieldExpression/case2/natural.ts.txt +1 -0
- package/test/tdd/transform/case1/ast.json +243 -0
- package/test/tdd/transform/case1/natural.ts.md +20 -0
- package/test/tdd/transform/case2/ast.json +207 -0
- package/test/tdd/transform/case2/natural.ts.md +12 -0
- package/test/tdd.test.js +10 -0
- package/test/tdd.transform.test.js +38 -0
- package/test/utils.js +40 -0
- package/sandbox-natural/stdlib/nasl.core.ts +0 -36
- package/sandbox-natural/stdlib/nasl.oql.ts +0 -14
- package/sandbox-natural/stdlib/nasl.ui.pre.d.ts +0 -90
- package/sandbox-natural/stdlib/nasl.ui.ts +0 -63
package/test/concepts/logic/fixtures/variable-host-call-logic-nested-member-expression copy.json
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
{
|
|
2
|
+
"concept": "App",
|
|
3
|
+
"id": "ab35095a-d99f-4667-b509-299b5517d0b9",
|
|
4
|
+
"ideVersion": "3.9",
|
|
5
|
+
"name": "dsadasds321312",
|
|
6
|
+
"title": "苏方舟测试(勿删)",
|
|
7
|
+
"icon": "",
|
|
8
|
+
"desc": "",
|
|
9
|
+
"dnsAddr": "http://dsadasds321312.csforkf.lcap.codewave-test.163yun.com",
|
|
10
|
+
"hasUserCenter": true,
|
|
11
|
+
"hasAuth": true,
|
|
12
|
+
"dataSources": [],
|
|
13
|
+
"structures": [],
|
|
14
|
+
"enums": [],
|
|
15
|
+
"logics": [
|
|
16
|
+
{
|
|
17
|
+
"concept": "Logic",
|
|
18
|
+
"name": "logic4",
|
|
19
|
+
"title": null,
|
|
20
|
+
"description": null,
|
|
21
|
+
"triggerType": null,
|
|
22
|
+
"cron": null,
|
|
23
|
+
"overridable": null,
|
|
24
|
+
"transactional": {
|
|
25
|
+
"concept": "Transactional",
|
|
26
|
+
"enabled": false,
|
|
27
|
+
"propagation": null,
|
|
28
|
+
"isolation": null
|
|
29
|
+
},
|
|
30
|
+
"typeParams": [],
|
|
31
|
+
"params": [
|
|
32
|
+
{
|
|
33
|
+
"concept": "Param",
|
|
34
|
+
"name": "param1",
|
|
35
|
+
"typeAnnotation": {
|
|
36
|
+
"concept": "TypeAnnotation",
|
|
37
|
+
"typeKind": "primitive",
|
|
38
|
+
"typeNamespace": "nasl.core",
|
|
39
|
+
"typeName": "String"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"returns": [
|
|
44
|
+
{
|
|
45
|
+
"concept": "Return",
|
|
46
|
+
"name": "result",
|
|
47
|
+
"description": null,
|
|
48
|
+
"typeAnnotation": null,
|
|
49
|
+
"defaultValue": null
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"variables": [],
|
|
53
|
+
"body": [
|
|
54
|
+
{
|
|
55
|
+
"concept": "Start",
|
|
56
|
+
"label": "开始",
|
|
57
|
+
"folded": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"concept": "Assignment",
|
|
61
|
+
"left": {
|
|
62
|
+
"concept": "Identifier",
|
|
63
|
+
"name": "result",
|
|
64
|
+
"folded": false
|
|
65
|
+
},
|
|
66
|
+
"right": {
|
|
67
|
+
"concept": "NewComposite",
|
|
68
|
+
"properties": [
|
|
69
|
+
{
|
|
70
|
+
"concept": "Identifier",
|
|
71
|
+
"name": "a",
|
|
72
|
+
"folded": false,
|
|
73
|
+
"typeAnnotation": null
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"concept": "Identifier",
|
|
77
|
+
"name": "b",
|
|
78
|
+
"folded": false,
|
|
79
|
+
"typeAnnotation": null
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"rights": [
|
|
83
|
+
{
|
|
84
|
+
"concept": "SelectMembers",
|
|
85
|
+
"hideMembers": false,
|
|
86
|
+
"expression": {
|
|
87
|
+
"concept": "NumericLiteral",
|
|
88
|
+
"value": "123",
|
|
89
|
+
"folded": false,
|
|
90
|
+
"typeAnnotation": {
|
|
91
|
+
"concept": "TypeAnnotation",
|
|
92
|
+
"typeKind": "primitive",
|
|
93
|
+
"typeNamespace": "nasl.core",
|
|
94
|
+
"typeName": "Long"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"members": []
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"concept": "SelectMembers",
|
|
101
|
+
"hideMembers": false,
|
|
102
|
+
"expression": {
|
|
103
|
+
"concept": "StringLiteral",
|
|
104
|
+
"value": "012",
|
|
105
|
+
"folded": false,
|
|
106
|
+
"offsetX": 107,
|
|
107
|
+
"offsetY": 267,
|
|
108
|
+
"changedTime": 1717662962913
|
|
109
|
+
},
|
|
110
|
+
"members": [],
|
|
111
|
+
"changedTime": 1717662960567
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"assignmentLines": [
|
|
115
|
+
{
|
|
116
|
+
"concept": "AssignmentLine",
|
|
117
|
+
"leftIndex": [
|
|
118
|
+
0,
|
|
119
|
+
0
|
|
120
|
+
],
|
|
121
|
+
"rightIndex": [
|
|
122
|
+
0
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"concept": "AssignmentLine",
|
|
127
|
+
"leftIndex": [
|
|
128
|
+
0,
|
|
129
|
+
1
|
|
130
|
+
],
|
|
131
|
+
"rightIndex": [
|
|
132
|
+
1
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"hideProperties": false,
|
|
137
|
+
"hideDefaults": false,
|
|
138
|
+
"autoConnection": true,
|
|
139
|
+
"folded": false,
|
|
140
|
+
"offsetX": -43.23828125,
|
|
141
|
+
"offsetY": 495.1640625,
|
|
142
|
+
"typeAnnotation": {
|
|
143
|
+
"concept": "TypeAnnotation",
|
|
144
|
+
"typeKind": "anonymousStructure",
|
|
145
|
+
"properties": [
|
|
146
|
+
{
|
|
147
|
+
"concept": "StructureProperty",
|
|
148
|
+
"name": "a",
|
|
149
|
+
"typeAnnotation": null,
|
|
150
|
+
"changedTime": 1717662973324
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"concept": "StructureProperty",
|
|
154
|
+
"name": "b",
|
|
155
|
+
"typeAnnotation": null,
|
|
156
|
+
"changedTime": 1717662970430
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"changedTime": 1717662974828
|
|
161
|
+
},
|
|
162
|
+
"folded": false,
|
|
163
|
+
"offsetX": 184,
|
|
164
|
+
"offsetY": 289.5,
|
|
165
|
+
"changedTime": 1717663491186
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"concept": "End",
|
|
169
|
+
"label": "结束",
|
|
170
|
+
"folded": false
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"playground": [],
|
|
174
|
+
"applyAnnotations": null,
|
|
175
|
+
"changedTime": 1717663491199,
|
|
176
|
+
"composedBy": null
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"__$Selected": true,
|
|
180
|
+
"concept": "Logic",
|
|
181
|
+
"name": "logic3",
|
|
182
|
+
"title": null,
|
|
183
|
+
"description": null,
|
|
184
|
+
"triggerType": null,
|
|
185
|
+
"cron": null,
|
|
186
|
+
"overridable": null,
|
|
187
|
+
"transactional": {
|
|
188
|
+
"concept": "Transactional",
|
|
189
|
+
"enabled": false,
|
|
190
|
+
"propagation": null,
|
|
191
|
+
"isolation": null
|
|
192
|
+
},
|
|
193
|
+
"typeParams": [],
|
|
194
|
+
"params": [],
|
|
195
|
+
"returns": [
|
|
196
|
+
{
|
|
197
|
+
"concept": "Return",
|
|
198
|
+
"name": "result",
|
|
199
|
+
"description": null,
|
|
200
|
+
"typeAnnotation": null,
|
|
201
|
+
"defaultValue": null
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"variables": [],
|
|
205
|
+
"body": [
|
|
206
|
+
{
|
|
207
|
+
"concept": "Start",
|
|
208
|
+
"label": "开始",
|
|
209
|
+
"folded": false
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"concept": "Assignment",
|
|
213
|
+
"left": {
|
|
214
|
+
"concept": "Identifier",
|
|
215
|
+
"name": "result",
|
|
216
|
+
"folded": false
|
|
217
|
+
},
|
|
218
|
+
"right": {
|
|
219
|
+
"concept": "MemberExpression",
|
|
220
|
+
"object": {
|
|
221
|
+
"concept": "CallLogic",
|
|
222
|
+
"uuid": "2a0ce071f2c3419b90216854772ea07d",
|
|
223
|
+
"calleeNamespace": "app.logics",
|
|
224
|
+
"calleeName": "logic4",
|
|
225
|
+
"handleError": false,
|
|
226
|
+
"typeArguments": [],
|
|
227
|
+
"arguments": [
|
|
228
|
+
{
|
|
229
|
+
"concept": "Argument",
|
|
230
|
+
"keyword": "param1",
|
|
231
|
+
"expression": {
|
|
232
|
+
"concept": "MemberExpression",
|
|
233
|
+
"object": {
|
|
234
|
+
"concept": "CallLogic",
|
|
235
|
+
"uuid": "a2cf38a95b7249edabaea73f6fde2502",
|
|
236
|
+
"calleeNamespace": "app.logics",
|
|
237
|
+
"calleeName": "logic2",
|
|
238
|
+
"handleError": false,
|
|
239
|
+
"typeArguments": [],
|
|
240
|
+
"arguments": [],
|
|
241
|
+
"folded": false
|
|
242
|
+
},
|
|
243
|
+
"property": {
|
|
244
|
+
"concept": "Identifier",
|
|
245
|
+
"name": "b",
|
|
246
|
+
"folded": false
|
|
247
|
+
},
|
|
248
|
+
"folded": false
|
|
249
|
+
},
|
|
250
|
+
"folded": false
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"folded": false,
|
|
254
|
+
"offsetX": 87,
|
|
255
|
+
"offsetY": 275
|
|
256
|
+
},
|
|
257
|
+
"property": {
|
|
258
|
+
"concept": "Identifier",
|
|
259
|
+
"name": "a",
|
|
260
|
+
"folded": false
|
|
261
|
+
},
|
|
262
|
+
"folded": false
|
|
263
|
+
},
|
|
264
|
+
"folded": false,
|
|
265
|
+
"changedTime": 1717663000345
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"concept": "End",
|
|
269
|
+
"label": "结束",
|
|
270
|
+
"folded": false
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"playground": [],
|
|
274
|
+
"applyAnnotations": null,
|
|
275
|
+
"changedTime": 1717662677728,
|
|
276
|
+
"composedBy": null
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"concept": "Logic",
|
|
280
|
+
"name": "logic2",
|
|
281
|
+
"title": null,
|
|
282
|
+
"description": null,
|
|
283
|
+
"triggerType": null,
|
|
284
|
+
"cron": null,
|
|
285
|
+
"overridable": null,
|
|
286
|
+
"transactional": {
|
|
287
|
+
"concept": "Transactional",
|
|
288
|
+
"enabled": false,
|
|
289
|
+
"propagation": null,
|
|
290
|
+
"isolation": null
|
|
291
|
+
},
|
|
292
|
+
"typeParams": [],
|
|
293
|
+
"params": [],
|
|
294
|
+
"returns": [
|
|
295
|
+
{
|
|
296
|
+
"concept": "Return",
|
|
297
|
+
"name": "result",
|
|
298
|
+
"description": null,
|
|
299
|
+
"typeAnnotation": null,
|
|
300
|
+
"defaultValue": null
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"variables": [],
|
|
304
|
+
"body": [
|
|
305
|
+
{
|
|
306
|
+
"concept": "Start",
|
|
307
|
+
"label": "开始",
|
|
308
|
+
"folded": false
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"concept": "Assignment",
|
|
312
|
+
"left": {
|
|
313
|
+
"concept": "Identifier",
|
|
314
|
+
"name": "result",
|
|
315
|
+
"folded": false
|
|
316
|
+
},
|
|
317
|
+
"right": {
|
|
318
|
+
"concept": "NewComposite",
|
|
319
|
+
"properties": [
|
|
320
|
+
{
|
|
321
|
+
"concept": "Identifier",
|
|
322
|
+
"name": "a",
|
|
323
|
+
"folded": false
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"concept": "Identifier",
|
|
327
|
+
"name": "b",
|
|
328
|
+
"folded": false
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"rights": [
|
|
332
|
+
{
|
|
333
|
+
"concept": "SelectMembers",
|
|
334
|
+
"hideMembers": false,
|
|
335
|
+
"expression": {
|
|
336
|
+
"concept": "NumericLiteral",
|
|
337
|
+
"value": "123",
|
|
338
|
+
"folded": false,
|
|
339
|
+
"typeAnnotation": {
|
|
340
|
+
"concept": "TypeAnnotation",
|
|
341
|
+
"typeKind": "primitive",
|
|
342
|
+
"typeNamespace": "nasl.core",
|
|
343
|
+
"typeName": "Long"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"members": []
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"concept": "SelectMembers",
|
|
350
|
+
"hideMembers": false,
|
|
351
|
+
"expression": {
|
|
352
|
+
"concept": "StringLiteral",
|
|
353
|
+
"value": "012",
|
|
354
|
+
"folded": false,
|
|
355
|
+
"offsetX": 107,
|
|
356
|
+
"offsetY": 267
|
|
357
|
+
},
|
|
358
|
+
"members": []
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"assignmentLines": [
|
|
362
|
+
{
|
|
363
|
+
"concept": "AssignmentLine",
|
|
364
|
+
"leftIndex": [
|
|
365
|
+
0,
|
|
366
|
+
0
|
|
367
|
+
],
|
|
368
|
+
"rightIndex": [
|
|
369
|
+
0
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"concept": "AssignmentLine",
|
|
374
|
+
"leftIndex": [
|
|
375
|
+
0,
|
|
376
|
+
1
|
|
377
|
+
],
|
|
378
|
+
"rightIndex": [
|
|
379
|
+
1
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"hideProperties": false,
|
|
384
|
+
"hideDefaults": false,
|
|
385
|
+
"autoConnection": true,
|
|
386
|
+
"folded": false,
|
|
387
|
+
"offsetX": -43.23828125,
|
|
388
|
+
"offsetY": 495.1640625,
|
|
389
|
+
"typeAnnotation": {
|
|
390
|
+
"concept": "TypeAnnotation",
|
|
391
|
+
"typeKind": "anonymousStructure",
|
|
392
|
+
"properties": [
|
|
393
|
+
{
|
|
394
|
+
"concept": "StructureProperty",
|
|
395
|
+
"name": "a",
|
|
396
|
+
"typeAnnotation": null
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"concept": "StructureProperty",
|
|
400
|
+
"name": "b",
|
|
401
|
+
"typeAnnotation": null
|
|
402
|
+
}
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"folded": false,
|
|
407
|
+
"changedTime": 1717385790487
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"concept": "End",
|
|
411
|
+
"label": "结束",
|
|
412
|
+
"folded": false
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"playground": [],
|
|
416
|
+
"applyAnnotations": null,
|
|
417
|
+
"composedBy": null
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
"overriddenLogics": [],
|
|
421
|
+
"interfaces": [],
|
|
422
|
+
"frontendTypes": [],
|
|
423
|
+
"backend": {
|
|
424
|
+
"concept": "Backend",
|
|
425
|
+
"name": "",
|
|
426
|
+
"variables": []
|
|
427
|
+
},
|
|
428
|
+
"processes": [],
|
|
429
|
+
"processV2s": [],
|
|
430
|
+
"roles": [],
|
|
431
|
+
"configuration": {
|
|
432
|
+
"concept": "Configuration",
|
|
433
|
+
"groups": []
|
|
434
|
+
},
|
|
435
|
+
"connectorDependencies": [],
|
|
436
|
+
"interfaceDependencies": [],
|
|
437
|
+
"dependencies": [],
|
|
438
|
+
"integration": {
|
|
439
|
+
"concept": "Integration",
|
|
440
|
+
"microApp": {},
|
|
441
|
+
"connectors": []
|
|
442
|
+
},
|
|
443
|
+
"authLogics": [],
|
|
444
|
+
"authLogicsForCallInterface": [],
|
|
445
|
+
"connections": [],
|
|
446
|
+
"triggerLaunchers": [],
|
|
447
|
+
"metadataTypes": [],
|
|
448
|
+
"preferenceMap": {
|
|
449
|
+
"namingConvention.tableName": "snake_case",
|
|
450
|
+
"namingConvention.columnName": "snake_case",
|
|
451
|
+
"javaLogicEnabled": "false",
|
|
452
|
+
"onDemandInterfaceGeneration": "true",
|
|
453
|
+
"serverValidationRules": "auto",
|
|
454
|
+
"metadataTypeEnable": false
|
|
455
|
+
},
|
|
456
|
+
"changedTime": 1717494049956
|
|
457
|
+
}
|