@lcap/nasl 3.1.0-beta.4 → 3.1.0-beta.5

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.
Files changed (245) hide show
  1. package/out/automate/engine/utils.js +4 -0
  2. package/out/automate/engine/utils.js.map +1 -1
  3. package/out/automate/upgrader/2.12.js +1 -5
  4. package/out/automate/upgrader/2.12.js.map +1 -1
  5. package/out/automate/upgrader/2.14.js +1 -5
  6. package/out/automate/upgrader/2.14.js.map +1 -1
  7. package/out/automate/upgrader/2.16.js +1 -5
  8. package/out/automate/upgrader/2.16.js.map +1 -1
  9. package/out/automate/upgrader/2.17.js +1 -5
  10. package/out/automate/upgrader/2.17.js.map +1 -1
  11. package/out/automate/upgrader/2.18.js +1 -5
  12. package/out/automate/upgrader/2.18.js.map +1 -1
  13. package/out/automate/upgrader/2.20.js +1 -5
  14. package/out/automate/upgrader/2.20.js.map +1 -1
  15. package/out/breakpoint/generator/BreakpointNode.js +14 -4
  16. package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
  17. package/out/breakpoint/index.js +1 -5
  18. package/out/breakpoint/index.js.map +1 -1
  19. package/out/breakpoint/shared/index.js +1 -5
  20. package/out/breakpoint/shared/index.js.map +1 -1
  21. package/out/breakpoint/shared/utils.js +1 -1
  22. package/out/breakpoint/shared/utils.js.map +1 -1
  23. package/out/breakpoint/store/core.js +1 -5
  24. package/out/breakpoint/store/core.js.map +1 -1
  25. package/out/breakpoint/store/dock.js +1 -5
  26. package/out/breakpoint/store/dock.js.map +1 -1
  27. package/out/breakpoint/store/index.js +1 -5
  28. package/out/breakpoint/store/index.js.map +1 -1
  29. package/out/common/BaseNode.d.ts +1 -1
  30. package/out/common/BaseNode.js +17 -11
  31. package/out/common/BaseNode.js.map +1 -1
  32. package/out/common/index.js +1 -5
  33. package/out/common/index.js.map +1 -1
  34. package/out/concepts/Anchor__.js +1 -5
  35. package/out/concepts/Anchor__.js.map +1 -1
  36. package/out/concepts/AnonymousFunction__.d.ts +9 -8
  37. package/out/concepts/AnonymousFunction__.js +14 -18
  38. package/out/concepts/AnonymousFunction__.js.map +1 -1
  39. package/out/concepts/App__.js +1 -5
  40. package/out/concepts/App__.js.map +1 -1
  41. package/out/concepts/Argument__.js +2 -11
  42. package/out/concepts/Argument__.js.map +1 -1
  43. package/out/concepts/Assignee__.js +1 -5
  44. package/out/concepts/Assignee__.js.map +1 -1
  45. package/out/concepts/Assignment__.js +1 -1
  46. package/out/concepts/Assignment__.js.map +1 -1
  47. package/out/concepts/AuthLogicForCallInterface__.js +1 -5
  48. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  49. package/out/concepts/Backend__.js +1 -5
  50. package/out/concepts/Backend__.js.map +1 -1
  51. package/out/concepts/BatchAssignment__.js +3 -8
  52. package/out/concepts/BatchAssignment__.js.map +1 -1
  53. package/out/concepts/BindAttribute__.js +2 -15
  54. package/out/concepts/BindAttribute__.js.map +1 -1
  55. package/out/concepts/BindDirective__.js +1 -5
  56. package/out/concepts/BindDirective__.js.map +1 -1
  57. package/out/concepts/BindEvent__.js +1 -5
  58. package/out/concepts/BindEvent__.js.map +1 -1
  59. package/out/concepts/BindStyle__.js +1 -5
  60. package/out/concepts/BindStyle__.js.map +1 -1
  61. package/out/concepts/CallAuthInterface__.js +1 -5
  62. package/out/concepts/CallAuthInterface__.js.map +1 -1
  63. package/out/concepts/CallFunction__.js +2 -2
  64. package/out/concepts/CallFunction__.js.map +1 -1
  65. package/out/concepts/CallInterface__.js +50 -62
  66. package/out/concepts/CallInterface__.js.map +1 -1
  67. package/out/concepts/CallLogic__.d.ts +4 -1
  68. package/out/concepts/CallLogic__.js +86 -123
  69. package/out/concepts/CallLogic__.js.map +1 -1
  70. package/out/concepts/CallQueryComponent__.d.ts +1 -1
  71. package/out/concepts/CallQueryComponent__.js +1 -5
  72. package/out/concepts/CallQueryComponent__.js.map +1 -1
  73. package/out/concepts/CompletionProperty__.js +8 -1
  74. package/out/concepts/CompletionProperty__.js.map +1 -1
  75. package/out/concepts/ConfigGroup__.js +1 -5
  76. package/out/concepts/ConfigGroup__.js.map +1 -1
  77. package/out/concepts/ConfigProperty__.js +1 -5
  78. package/out/concepts/ConfigProperty__.js.map +1 -1
  79. package/out/concepts/Configuration__.js +1 -5
  80. package/out/concepts/Configuration__.js.map +1 -1
  81. package/out/concepts/Connector__.js +1 -5
  82. package/out/concepts/Connector__.js.map +1 -1
  83. package/out/concepts/DataSource__.js +1 -5
  84. package/out/concepts/DataSource__.js.map +1 -1
  85. package/out/concepts/Destination__.js +1 -5
  86. package/out/concepts/Destination__.js.map +1 -1
  87. package/out/concepts/EntityProperty__.js +1 -5
  88. package/out/concepts/EntityProperty__.js.map +1 -1
  89. package/out/concepts/Entity__.js +1 -5
  90. package/out/concepts/Entity__.js.map +1 -1
  91. package/out/concepts/Enum__.js +1 -5
  92. package/out/concepts/Enum__.js.map +1 -1
  93. package/out/concepts/Event__.js +1 -5
  94. package/out/concepts/Event__.js.map +1 -1
  95. package/out/concepts/ForEachStatement__.js +1 -5
  96. package/out/concepts/ForEachStatement__.js.map +1 -1
  97. package/out/concepts/FrontendLibrary__.d.ts +29 -29
  98. package/out/concepts/FrontendLibrary__.js +3 -7
  99. package/out/concepts/FrontendLibrary__.js.map +1 -1
  100. package/out/concepts/Frontend__.js +1 -5
  101. package/out/concepts/Frontend__.js.map +1 -1
  102. package/out/concepts/Function__.js +2 -6
  103. package/out/concepts/Function__.js.map +1 -1
  104. package/out/concepts/Interface__.js +1 -5
  105. package/out/concepts/Interface__.js.map +1 -1
  106. package/out/concepts/LogicItem__.d.ts +6 -6
  107. package/out/concepts/LogicItem__.js +6 -6
  108. package/out/concepts/LogicItem__.js.map +1 -1
  109. package/out/concepts/Logic__.js +5 -24
  110. package/out/concepts/Logic__.js.map +1 -1
  111. package/out/concepts/MatchCase__.js +1 -5
  112. package/out/concepts/MatchCase__.js.map +1 -1
  113. package/out/concepts/Module__.js +1 -5
  114. package/out/concepts/Module__.js.map +1 -1
  115. package/out/concepts/MsgTriggerEvent__.js +1 -5
  116. package/out/concepts/MsgTriggerEvent__.js.map +1 -1
  117. package/out/concepts/MsgTriggerLauncher__.js +1 -5
  118. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  119. package/out/concepts/Namespace__.d.ts +29 -29
  120. package/out/concepts/Namespace__.js +3 -7
  121. package/out/concepts/Namespace__.js.map +1 -1
  122. package/out/concepts/NewComposite__.d.ts +0 -1
  123. package/out/concepts/NewComposite__.js +4 -72
  124. package/out/concepts/NewComposite__.js.map +1 -1
  125. package/out/concepts/NewList__.d.ts +0 -1
  126. package/out/concepts/NewList__.js +2 -22
  127. package/out/concepts/NewList__.js.map +1 -1
  128. package/out/concepts/NewMap__.js +1 -5
  129. package/out/concepts/NewMap__.js.map +1 -1
  130. package/out/concepts/OverriddenLogic__.js +1 -5
  131. package/out/concepts/OverriddenLogic__.js.map +1 -1
  132. package/out/concepts/ProcessComponent__.js +1 -5
  133. package/out/concepts/ProcessComponent__.js.map +1 -1
  134. package/out/concepts/ProcessElement__.js +1 -5
  135. package/out/concepts/ProcessElement__.js.map +1 -1
  136. package/out/concepts/Process__.js +1 -5
  137. package/out/concepts/Process__.js.map +1 -1
  138. package/out/concepts/QueryJoinExpression__.js +1 -5
  139. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  140. package/out/concepts/QuerySelectExpression__.js +1 -5
  141. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  142. package/out/concepts/SelectMembers__.js +1 -5
  143. package/out/concepts/SelectMembers__.js.map +1 -1
  144. package/out/concepts/StringInterpolation__.js +1 -5
  145. package/out/concepts/StringInterpolation__.js.map +1 -1
  146. package/out/concepts/Structure__.js +1 -5
  147. package/out/concepts/Structure__.js.map +1 -1
  148. package/out/concepts/TriggerEvent__.js +1 -5
  149. package/out/concepts/TriggerEvent__.js.map +1 -1
  150. package/out/concepts/TypeAnnotation__.js +5 -5
  151. package/out/concepts/TypeAnnotation__.js.map +1 -1
  152. package/out/concepts/ValidationRule__.js +10 -4
  153. package/out/concepts/ValidationRule__.js.map +1 -1
  154. package/out/concepts/ViewComponent__.d.ts +33 -33
  155. package/out/concepts/ViewComponent__.js +8 -12
  156. package/out/concepts/ViewComponent__.js.map +1 -1
  157. package/out/concepts/ViewElement__.js +53 -74
  158. package/out/concepts/ViewElement__.js.map +1 -1
  159. package/out/concepts/View__.js +5 -9
  160. package/out/concepts/View__.js.map +1 -1
  161. package/out/concepts/basics/stdlib/nasl.http.js +2 -2
  162. package/out/concepts/basics/stdlib/nasl.util.js +9 -17
  163. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  164. package/out/concepts/basics/types/index.js +1 -1
  165. package/out/concepts/basics/types/index.js.map +1 -1
  166. package/out/concepts/index.js +1 -5
  167. package/out/concepts/index.js.map +1 -1
  168. package/out/concepts/index__.js +1 -5
  169. package/out/concepts/index__.js.map +1 -1
  170. package/out/generator/genBundleFiles.js +1 -5
  171. package/out/generator/genBundleFiles.js.map +1 -1
  172. package/out/generator/genHash.js +1 -5
  173. package/out/generator/genHash.js.map +1 -1
  174. package/out/generator/genMetaData.js +1 -13
  175. package/out/generator/genMetaData.js.map +1 -1
  176. package/out/generator/index.js +1 -5
  177. package/out/generator/index.js.map +1 -1
  178. package/out/generator/permission.js +48 -24
  179. package/out/generator/permission.js.map +1 -1
  180. package/out/generator/styleReplacer.js +1 -5
  181. package/out/generator/styleReplacer.js.map +1 -1
  182. package/out/index.js +1 -5
  183. package/out/index.js.map +1 -1
  184. package/out/sentry/index.js +1 -8
  185. package/out/sentry/index.js.map +1 -1
  186. package/out/server/formatTsUtils.js +28 -29
  187. package/out/server/formatTsUtils.js.map +1 -1
  188. package/out/server/getMemberIdentifier.js +1 -1
  189. package/out/server/getMemberIdentifier.js.map +1 -1
  190. package/out/server/naslServer.js +17 -20
  191. package/out/server/naslServer.js.map +1 -1
  192. package/out/service/creator/errHandles.d.ts +1 -1
  193. package/out/service/storage/init.js +5 -8
  194. package/out/service/storage/init.js.map +1 -1
  195. package/out/templator/genCreateBlock.js +1 -5
  196. package/out/templator/genCreateBlock.js.map +1 -1
  197. package/out/templator/genCurdEditMultipleKeyBlock.js +2 -6
  198. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  199. package/out/templator/genCurdMultipleKeyBlock.js +3 -7
  200. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  201. package/out/templator/genEditTableBlock.d.ts +1 -1
  202. package/out/templator/genEditTableBlock.js +3 -11
  203. package/out/templator/genEditTableBlock.js.map +1 -1
  204. package/out/templator/genGetBlock.js +1 -5
  205. package/out/templator/genGetBlock.js.map +1 -1
  206. package/out/templator/genGridViewBlock.d.ts +2 -2
  207. package/out/templator/genGridViewBlock.js +9 -19
  208. package/out/templator/genGridViewBlock.js.map +1 -1
  209. package/out/templator/genListViewBlock.d.ts +2 -2
  210. package/out/templator/genListViewBlock.js +6 -14
  211. package/out/templator/genListViewBlock.js.map +1 -1
  212. package/out/templator/genQueryComponent.js +1 -5
  213. package/out/templator/genQueryComponent.js.map +1 -1
  214. package/out/templator/genSelectBlock.d.ts +2 -2
  215. package/out/templator/genSelectBlock.js +10 -20
  216. package/out/templator/genSelectBlock.js.map +1 -1
  217. package/out/templator/genTableBlock.d.ts +1 -1
  218. package/out/templator/genTableBlock.js +4 -12
  219. package/out/templator/genTableBlock.js.map +1 -1
  220. package/out/templator/genUpdateBlock.js +1 -5
  221. package/out/templator/genUpdateBlock.js.map +1 -1
  222. package/out/templator/index.js +1 -5
  223. package/out/templator/index.js.map +1 -1
  224. package/out/utils/index.js +1 -5
  225. package/out/utils/index.js.map +1 -1
  226. package/package.json +2 -2
  227. package/src/breakpoint/generator/BreakpointNode.ts +19 -4
  228. package/src/breakpoint/shared/utils.ts +1 -1
  229. package/src/common/BaseNode.ts +15 -3
  230. package/src/concepts/CallLogic__.ts +45 -15
  231. package/src/concepts/ValidationRule__.ts +15 -5
  232. package/src/concepts/ViewElement__.ts +9 -6
  233. package/src/generator/permission.ts +28 -8
  234. package/src/server/formatTsUtils.ts +26 -28
  235. package/src/server/getMemberIdentifier.ts +1 -1
  236. package/src/server/naslServer.ts +0 -1
  237. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +106 -0
  238. package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +45 -0
  239. package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +102 -0
  240. package/test/concepts/call-logic/fixtures/nested-call-logic.json +934 -0
  241. package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +23 -0
  242. package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -0
  243. package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +5 -0
  244. package/test/concepts/validation-rule/fixtures/argument-without-keyout.json +34 -0
  245. package/test/concepts/validation-rule/validation-rule.spec.ts +15 -0
@@ -0,0 +1,934 @@
1
+ {
2
+ "concept": "App",
3
+ "changedTime": 1694429420885,
4
+ "name": "login",
5
+ "id": "9a3f4a78-0b12-4b1f-84ed-512690a425c0",
6
+ "ideVersion": "3.1",
7
+ "title": "登录方式Demo",
8
+ "icon": "",
9
+ "desc": "",
10
+ "dnsAddr": "http://login.tpoc.lcap.163yun.com",
11
+ "hasUserCenter": true,
12
+ "hasAuth": true,
13
+ "dataSources": [],
14
+ "structures": [],
15
+ "enums": [],
16
+ "logics": [
17
+ {
18
+ "concept": "Logic",
19
+ "changedTime": 1694405375903,
20
+ "name": "SendALi",
21
+ "description": "发送阿里验证码",
22
+ "typeParams": null,
23
+ "params": [],
24
+ "returns": [],
25
+ "variables": [
26
+ {
27
+ "concept": "Variable",
28
+ "changedTime": 1693366916314,
29
+ "name": "currDate"
30
+ },
31
+ {
32
+ "concept": "Variable",
33
+ "changedTime": 1693367050626,
34
+ "name": "SignatureNonce"
35
+ },
36
+ {
37
+ "concept": "Variable",
38
+ "changedTime": 1693367164662,
39
+ "name": "templateParam"
40
+ },
41
+ {
42
+ "concept": "Variable",
43
+ "changedTime": 1693367179031,
44
+ "name": "signName"
45
+ },
46
+ {
47
+ "concept": "Variable",
48
+ "changedTime": 1693367201261,
49
+ "name": "templateCode"
50
+ },
51
+ {
52
+ "concept": "Variable",
53
+ "changedTime": 1694398722356,
54
+ "name": "sign"
55
+ },
56
+ {
57
+ "concept": "Variable",
58
+ "changedTime": 1694398831193,
59
+ "name": "header",
60
+ "typeAnnotation": {
61
+ "concept": "TypeAnnotation",
62
+ "name": "",
63
+ "typeKind": "generic",
64
+ "typeNamespace": "nasl.collection",
65
+ "typeName": "Map",
66
+ "typeArguments": [
67
+ {
68
+ "concept": "TypeAnnotation",
69
+ "name": "K",
70
+ "typeKind": "primitive",
71
+ "typeNamespace": "nasl.core",
72
+ "typeName": "String",
73
+ "typeArguments": null,
74
+ "returnType": null,
75
+ "properties": null
76
+ },
77
+ {
78
+ "concept": "TypeAnnotation",
79
+ "name": "V",
80
+ "typeKind": "primitive",
81
+ "typeNamespace": "nasl.core",
82
+ "typeName": "String",
83
+ "typeArguments": null,
84
+ "returnType": null,
85
+ "properties": null
86
+ }
87
+ ],
88
+ "returnType": null,
89
+ "properties": null
90
+ }
91
+ },
92
+ {
93
+ "concept": "Variable",
94
+ "changedTime": 1694398847129,
95
+ "name": "body",
96
+ "typeAnnotation": {
97
+ "concept": "TypeAnnotation",
98
+ "name": "",
99
+ "typeKind": "generic",
100
+ "typeNamespace": "nasl.collection",
101
+ "typeName": "Map",
102
+ "typeArguments": [
103
+ {
104
+ "concept": "TypeAnnotation",
105
+ "name": "K",
106
+ "typeKind": "primitive",
107
+ "typeNamespace": "nasl.core",
108
+ "typeName": "String",
109
+ "typeArguments": null,
110
+ "returnType": null,
111
+ "properties": null
112
+ },
113
+ {
114
+ "concept": "TypeAnnotation",
115
+ "name": "V",
116
+ "typeKind": "primitive",
117
+ "typeNamespace": "nasl.core",
118
+ "typeName": "String",
119
+ "typeArguments": null,
120
+ "returnType": null,
121
+ "properties": null
122
+ }
123
+ ],
124
+ "returnType": null,
125
+ "properties": null
126
+ }
127
+ }
128
+ ],
129
+ "body": [
130
+ {
131
+ "concept": "Start",
132
+ "name": "",
133
+ "label": "开始"
134
+ },
135
+ {
136
+ "concept": "CallLogic",
137
+ "changedTime": 1694574047919,
138
+ "__$Selected": true,
139
+ "name": "",
140
+ "label": "调用逻辑",
141
+ "folded": false,
142
+ "offsetX": 1849.91796875,
143
+ "offsetY": 2700,
144
+ "uuid": "2aa4ac49eeae443bb3cd155528c8b1dc",
145
+ "calleeNamespace": "extensions.httpclient.logics",
146
+ "calleeName": "exchange",
147
+ "handleError": true,
148
+ "typeArguments": null,
149
+ "arguments": [
150
+ {
151
+ "concept": "Argument",
152
+ "name": "",
153
+ "folded": false,
154
+ "keyword": "url",
155
+ "expression": {
156
+ "concept": "StringInterpolation",
157
+ "name": "",
158
+ "folded": false,
159
+ "expressions": [
160
+ {
161
+ "concept": "StringLiteral",
162
+ "name": "",
163
+ "folded": false,
164
+ "value": "https://dysmsapi.aliyuncs.com/?AccessKeyId=LTAI5tPhPfe7NDP1qzrQjkuV&Action=SendSms&Format=JSON&Signature=",
165
+ "__TypeAnnotation": {
166
+ "concept": "TypeAnnotation",
167
+ "typeKind": "primitive",
168
+ "typeName": "String",
169
+ "typeNamespace": "nasl.core"
170
+ }
171
+ },
172
+ {
173
+ "concept": "CallLogic",
174
+ "name": "",
175
+ "label": "调用逻辑",
176
+ "folded": false,
177
+ "offsetX": -1115,
178
+ "offsetY": 2231,
179
+ "uuid": "c363848a-dff4-43ed-9eb7-d8e5a8b84573",
180
+ "calleeNamespace": "extensions.encrypt_tool.logics",
181
+ "calleeName": "encryptWithUrlEncode",
182
+ "handleError": true,
183
+ "typeArguments": null,
184
+ "arguments": [
185
+ {
186
+ "concept": "Argument",
187
+ "name": "",
188
+ "folded": false,
189
+ "keyword": "source",
190
+ "expression": {
191
+ "concept": "Identifier",
192
+ "name": "sign",
193
+ "folded": false
194
+ }
195
+ }
196
+ ],
197
+ "__TypeAnnotation": {
198
+ "concept": "TypeAnnotation",
199
+ "typeKind": "primitive",
200
+ "typeName": "String",
201
+ "typeNamespace": "nasl.core"
202
+ }
203
+ },
204
+ {
205
+ "concept": "StringLiteral",
206
+ "name": "",
207
+ "folded": false,
208
+ "value": "&SignatureMethod=HMAC-SHA1&SignatureVersion=1.0&Timestamp=",
209
+ "__TypeAnnotation": {
210
+ "concept": "TypeAnnotation",
211
+ "typeKind": "primitive",
212
+ "typeName": "String",
213
+ "typeNamespace": "nasl.core"
214
+ }
215
+ },
216
+ {
217
+ "concept": "CallLogic",
218
+ "changedTime": 1694573520467,
219
+ "name": "",
220
+ "label": "调用逻辑",
221
+ "folded": false,
222
+ "offsetX": 513,
223
+ "offsetY": 2201,
224
+ "uuid": "16404a8b-1b51-41a7-b6fa-af016df2c264",
225
+ "calleeNamespace": "extensions.encrypt_tool.logics",
226
+ "calleeName": "encryptWithUrlEncode",
227
+ "handleError": true,
228
+ "typeArguments": null,
229
+ "arguments": [
230
+ {
231
+ "concept": "Argument",
232
+ "name": "",
233
+ "folded": false,
234
+ "keyword": "source",
235
+ "expression": {
236
+ "concept": "Identifier",
237
+ "name": "currDate",
238
+ "folded": false
239
+ }
240
+ }
241
+ ],
242
+ "__TypeAnnotation": {
243
+ "concept": "TypeAnnotation",
244
+ "typeKind": "primitive",
245
+ "typeName": "String",
246
+ "typeNamespace": "nasl.core"
247
+ }
248
+ },
249
+ {
250
+ "concept": "StringLiteral",
251
+ "name": "",
252
+ "folded": false,
253
+ "value": "&Version=2017-05-25&SignatureNonce=",
254
+ "__TypeAnnotation": {
255
+ "concept": "TypeAnnotation",
256
+ "typeKind": "primitive",
257
+ "typeName": "String",
258
+ "typeNamespace": "nasl.core"
259
+ }
260
+ },
261
+ {
262
+ "concept": "Identifier",
263
+ "name": "SignatureNonce",
264
+ "folded": false,
265
+ "__TypeAnnotation": {
266
+ "concept": "TypeAnnotation",
267
+ "typeKind": "primitive",
268
+ "typeName": "String",
269
+ "typeNamespace": "nasl.core"
270
+ }
271
+ },
272
+ {
273
+ "concept": "StringLiteral",
274
+ "name": "",
275
+ "folded": false,
276
+ "value": "&PhoneNumbers=",
277
+ "__TypeAnnotation": {
278
+ "concept": "TypeAnnotation",
279
+ "typeKind": "primitive",
280
+ "typeName": "String",
281
+ "typeNamespace": "nasl.core"
282
+ }
283
+ },
284
+ {
285
+ "concept": "Identifier",
286
+ "name": "receiver",
287
+ "folded": false,
288
+ "__TypeAnnotation": {
289
+ "concept": "TypeAnnotation",
290
+ "typeKind": "primitive",
291
+ "typeName": "String",
292
+ "typeNamespace": "nasl.core"
293
+ }
294
+ },
295
+ {
296
+ "concept": "StringLiteral",
297
+ "name": "",
298
+ "folded": false,
299
+ "value": "&SignName=",
300
+ "__TypeAnnotation": {
301
+ "concept": "TypeAnnotation",
302
+ "typeKind": "primitive",
303
+ "typeName": "String",
304
+ "typeNamespace": "nasl.core"
305
+ }
306
+ },
307
+ {
308
+ "concept": "Identifier",
309
+ "name": "signName",
310
+ "folded": false,
311
+ "__TypeAnnotation": {
312
+ "concept": "TypeAnnotation",
313
+ "typeKind": "primitive",
314
+ "typeName": "String",
315
+ "typeNamespace": "nasl.core"
316
+ }
317
+ },
318
+ {
319
+ "concept": "StringLiteral",
320
+ "name": "",
321
+ "folded": false,
322
+ "value": "&TemplateCode=",
323
+ "__TypeAnnotation": {
324
+ "concept": "TypeAnnotation",
325
+ "typeKind": "primitive",
326
+ "typeName": "String",
327
+ "typeNamespace": "nasl.core"
328
+ }
329
+ },
330
+ {
331
+ "concept": "Identifier",
332
+ "name": "templateCode",
333
+ "folded": false,
334
+ "__TypeAnnotation": {
335
+ "concept": "TypeAnnotation",
336
+ "typeKind": "primitive",
337
+ "typeName": "String",
338
+ "typeNamespace": "nasl.core"
339
+ }
340
+ },
341
+ {
342
+ "concept": "StringLiteral",
343
+ "name": "",
344
+ "folded": false,
345
+ "value": "&TemolateParam=",
346
+ "__TypeAnnotation": {
347
+ "concept": "TypeAnnotation",
348
+ "typeKind": "primitive",
349
+ "typeName": "String",
350
+ "typeNamespace": "nasl.core"
351
+ }
352
+ },
353
+ {
354
+ "concept": "CallLogic",
355
+ "name": "",
356
+ "label": "调用逻辑",
357
+ "folded": false,
358
+ "offsetX": -358,
359
+ "offsetY": 2225,
360
+ "uuid": "db11a00aeb884c2cb8a3404db9879973",
361
+ "calleeNamespace": "extensions.encrypt_tool.logics",
362
+ "calleeName": "encryptWithUrlEncode",
363
+ "handleError": true,
364
+ "typeArguments": null,
365
+ "arguments": [
366
+ {
367
+ "concept": "Argument",
368
+ "name": "",
369
+ "folded": false,
370
+ "keyword": "source",
371
+ "expression": {
372
+ "concept": "Identifier",
373
+ "name": "templateParam",
374
+ "folded": false
375
+ }
376
+ }
377
+ ],
378
+ "__TypeAnnotation": {
379
+ "concept": "TypeAnnotation",
380
+ "typeKind": "primitive",
381
+ "typeName": "String",
382
+ "typeNamespace": "nasl.core"
383
+ }
384
+ }
385
+ ]
386
+ }
387
+ },
388
+ {
389
+ "concept": "Argument",
390
+ "name": "",
391
+ "folded": false,
392
+ "keyword": "httpMethod",
393
+ "expression": {
394
+ "concept": "StringLiteral",
395
+ "name": "",
396
+ "folded": false,
397
+ "value": "Get"
398
+ }
399
+ },
400
+ {
401
+ "concept": "Argument",
402
+ "name": "",
403
+ "folded": false,
404
+ "keyword": "header",
405
+ "expression": {
406
+ "concept": "Identifier",
407
+ "name": "header",
408
+ "folded": false
409
+ }
410
+ },
411
+ {
412
+ "concept": "Argument",
413
+ "name": "",
414
+ "folded": false,
415
+ "keyword": "body",
416
+ "expression": {
417
+ "concept": "Identifier",
418
+ "name": "body",
419
+ "folded": false
420
+ }
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "concept": "End",
426
+ "name": "",
427
+ "label": "结束"
428
+ }
429
+ ],
430
+ "playground": []
431
+ }
432
+ ],
433
+ "overriddenLogics": [],
434
+ "interfaces": [],
435
+ "frontends": [],
436
+ "backend": {
437
+ "concept": "Backend",
438
+ "variables": [
439
+ {
440
+ "concept": "BackendVariable",
441
+ "name": "httpRequest",
442
+ "description": "httpRequest对象,可在逻辑中使用,用于获取当前请求的属性,例如: cookie、header、ip等",
443
+ "typeAnnotation": {
444
+ "concept": "TypeAnnotation",
445
+ "name": "",
446
+ "typeKind": "generic",
447
+ "typeNamespace": "nasl.http",
448
+ "typeName": "HttpRequest",
449
+ "typeArguments": [
450
+ {
451
+ "concept": "TypeAnnotation",
452
+ "name": "",
453
+ "typeKind": "primitive",
454
+ "typeNamespace": "nasl.core",
455
+ "typeName": "String",
456
+ "typeArguments": null,
457
+ "returnType": null,
458
+ "properties": null
459
+ }
460
+ ],
461
+ "returnType": null,
462
+ "properties": null
463
+ },
464
+ "defaultValue": null,
465
+ "scope": "request"
466
+ },
467
+ {
468
+ "concept": "BackendVariable",
469
+ "name": "httpResponse",
470
+ "description": "httpResponse对象,可用于全局逻辑中,可返回header、cookie等",
471
+ "typeAnnotation": {
472
+ "concept": "TypeAnnotation",
473
+ "name": "",
474
+ "typeKind": "generic",
475
+ "typeNamespace": "nasl.http",
476
+ "typeName": "HttpResponse",
477
+ "typeArguments": [
478
+ {
479
+ "concept": "TypeAnnotation",
480
+ "name": "",
481
+ "typeKind": "primitive",
482
+ "typeNamespace": "nasl.core",
483
+ "typeName": "String",
484
+ "typeArguments": null,
485
+ "returnType": null,
486
+ "properties": null
487
+ }
488
+ ],
489
+ "returnType": null,
490
+ "properties": null
491
+ },
492
+ "defaultValue": null,
493
+ "scope": "request"
494
+ },
495
+ {
496
+ "concept": "BackendVariable",
497
+ "name": "currentUser",
498
+ "description": "当前用户信息,包含userId,userName、extendInfos",
499
+ "typeAnnotation": {
500
+ "concept": "TypeAnnotation",
501
+ "name": "",
502
+ "typeKind": "reference",
503
+ "typeNamespace": "extensions.lcap_auth.structures",
504
+ "typeName": "LCAPUser",
505
+ "typeArguments": null,
506
+ "returnType": null,
507
+ "properties": null
508
+ },
509
+ "defaultValue": null,
510
+ "scope": "request"
511
+ }
512
+ ]
513
+ },
514
+ "processes": [],
515
+ "roles": [],
516
+ "configuration": {
517
+ "concept": "Configuration",
518
+ "name": "",
519
+ "groups": []
520
+ },
521
+ "dependencies": [
522
+ {
523
+ "concept": "Module",
524
+ "changedTime": 1693276694802,
525
+ "name": "encrypt_tool",
526
+ "type": "extension",
527
+ "version": "1.0.12",
528
+ "title": "加密解密模块",
529
+ "description": "加密解密模块",
530
+ "provider": "资产中心-租户",
531
+ "externalDependencyMap": {
532
+ "maven": [
533
+ {
534
+ "groupId": "com.netease.lowcode",
535
+ "artifactId": "encrypt-tool",
536
+ "version": "1.0.12"
537
+ }
538
+ ]
539
+ },
540
+ "compilerInfoMap": {
541
+ "java": [
542
+ {
543
+ "packageName": "com.netease.lowcode.util",
544
+ "className": "UrlEncodeUtil",
545
+ "naslName": "encryptWithUrlEncode",
546
+ "type": "logic",
547
+ "javaTypes": {
548
+ "source": "String",
549
+ "": "String | .ErrorUnion"
550
+ }
551
+ }
552
+ ]
553
+ },
554
+ "dataSources": [],
555
+ "structures": [],
556
+ "enums": [],
557
+ "logics": [
558
+ {
559
+ "concept": "Logic",
560
+ "name": "encryptWithUrlEncode",
561
+ "description": "",
562
+ "compilerInfoMap": {
563
+ "java": {
564
+ "className": "UrlEncodeUtil",
565
+ "packageName": "com.netease.lowcode.util"
566
+ }
567
+ },
568
+ "typeParams": null,
569
+ "params": [
570
+ {
571
+ "concept": "Param",
572
+ "name": "source",
573
+ "description": "",
574
+ "typeAnnotation": {
575
+ "concept": "TypeAnnotation",
576
+ "name": "",
577
+ "typeKind": "primitive",
578
+ "typeNamespace": "nasl.core",
579
+ "typeName": "String",
580
+ "typeArguments": null,
581
+ "returnType": null,
582
+ "properties": null
583
+ },
584
+ "required": false,
585
+ "defaultValue": "",
586
+ "cascader": false
587
+ }
588
+ ],
589
+ "returns": [
590
+ {
591
+ "concept": "Return",
592
+ "name": "result",
593
+ "description": "",
594
+ "typeAnnotation": {
595
+ "concept": "TypeAnnotation",
596
+ "name": "",
597
+ "typeKind": "union",
598
+ "typeNamespace": "nasl.core",
599
+ "typeName": "Union",
600
+ "typeArguments": [
601
+ {
602
+ "concept": "TypeAnnotation",
603
+ "name": "",
604
+ "typeKind": "primitive",
605
+ "typeNamespace": "nasl.core",
606
+ "typeName": "String",
607
+ "typeArguments": null,
608
+ "returnType": null,
609
+ "properties": null
610
+ },
611
+ {
612
+ "concept": "TypeAnnotation",
613
+ "name": "",
614
+ "typeKind": "reference",
615
+ "typeNamespace": "nasl.ui",
616
+ "typeName": "Error",
617
+ "typeArguments": null,
618
+ "returnType": null,
619
+ "properties": null
620
+ }
621
+ ],
622
+ "returnType": null,
623
+ "properties": null
624
+ }
625
+ }
626
+ ],
627
+ "variables": [],
628
+ "body": [],
629
+ "playground": []
630
+ }
631
+ ],
632
+ "interfaces": [],
633
+ "views": [],
634
+ "frontendVariables": [],
635
+ "processes": [],
636
+ "frontends": [],
637
+ "triggerLaunchers": [],
638
+ "dependencies": []
639
+ },
640
+ {
641
+ "concept": "Module",
642
+ "changedTime": 1694367116236,
643
+ "name": "httpclient",
644
+ "type": "extension",
645
+ "version": "1.0.2",
646
+ "title": "httpclient",
647
+ "description": "httpclient",
648
+ "provider": "资产中心-租户",
649
+ "externalDependencyMap": {
650
+ "maven": [
651
+ {
652
+ "groupId": "com.netease.lowcode",
653
+ "artifactId": "httpclient",
654
+ "version": "1.0.2"
655
+ }
656
+ ]
657
+ },
658
+ "compilerInfoMap": {
659
+ "java": [
660
+ {
661
+ "packageName": "com.netease.lowcode.proxy.nasl_proxy_error_structure",
662
+ "className": "URISyntaxException",
663
+ "naslName": "URISyntaxException",
664
+ "type": "structure",
665
+ "javaTypes": {
666
+ "errorMsg": "String",
667
+ "errorType": "String"
668
+ }
669
+ },
670
+ {
671
+ "packageName": "com.netease.lowcode.httpclient.util",
672
+ "className": "LCAPHttpClient",
673
+ "naslName": "exchange",
674
+ "type": "logic",
675
+ "javaTypes": {
676
+ "url": "String",
677
+ "httpMethod": "String",
678
+ "header": "Map<String,String>",
679
+ "body": "Map<String,String>",
680
+ "": "String | com.netease.lowcode.proxy.nasl_proxy_error_structure.URISyntaxException | com.netease.lowcode.proxy.nasl_proxy_error_structure.ErrorUnion"
681
+ }
682
+ }
683
+ ]
684
+ },
685
+ "dataSources": [],
686
+ "structures": [
687
+ {
688
+ "concept": "Structure",
689
+ "name": "URISyntaxException",
690
+ "description": "",
691
+ "compilerInfoMap": {
692
+ "java": {
693
+ "packageName": "com.netease.lowcode.proxy.nasl_proxy_error_structure"
694
+ }
695
+ },
696
+ "typeParams": null,
697
+ "properties": [
698
+ {
699
+ "concept": "StructureProperty",
700
+ "name": "errorMsg",
701
+ "typeAnnotation": {
702
+ "concept": "TypeAnnotation",
703
+ "name": "",
704
+ "typeKind": "primitive",
705
+ "typeNamespace": "nasl.core",
706
+ "typeName": "String",
707
+ "typeArguments": null,
708
+ "returnType": null,
709
+ "properties": null
710
+ },
711
+ "required": false,
712
+ "isLeaf": true
713
+ },
714
+ {
715
+ "concept": "StructureProperty",
716
+ "name": "errorType",
717
+ "typeAnnotation": {
718
+ "concept": "TypeAnnotation",
719
+ "name": "",
720
+ "typeKind": "primitive",
721
+ "typeNamespace": "nasl.core",
722
+ "typeName": "String",
723
+ "typeArguments": null,
724
+ "returnType": null,
725
+ "properties": null
726
+ },
727
+ "required": false,
728
+ "isLeaf": true
729
+ }
730
+ ]
731
+ }
732
+ ],
733
+ "enums": [],
734
+ "logics": [
735
+ {
736
+ "concept": "Logic",
737
+ "name": "exchange",
738
+ "description": "",
739
+ "compilerInfoMap": {
740
+ "java": {
741
+ "className": "LCAPHttpClient",
742
+ "packageName": "com.netease.lowcode.httpclient.util"
743
+ }
744
+ },
745
+ "typeParams": null,
746
+ "params": [
747
+ {
748
+ "concept": "Param",
749
+ "name": "url",
750
+ "description": "",
751
+ "typeAnnotation": {
752
+ "concept": "TypeAnnotation",
753
+ "name": "",
754
+ "typeKind": "primitive",
755
+ "typeNamespace": "nasl.core",
756
+ "typeName": "String",
757
+ "typeArguments": null,
758
+ "returnType": null,
759
+ "properties": null
760
+ },
761
+ "required": true,
762
+ "defaultValue": "",
763
+ "cascader": false
764
+ },
765
+ {
766
+ "concept": "Param",
767
+ "name": "httpMethod",
768
+ "description": "",
769
+ "typeAnnotation": {
770
+ "concept": "TypeAnnotation",
771
+ "name": "",
772
+ "typeKind": "primitive",
773
+ "typeNamespace": "nasl.core",
774
+ "typeName": "String",
775
+ "typeArguments": null,
776
+ "returnType": null,
777
+ "properties": null
778
+ },
779
+ "required": true,
780
+ "defaultValue": "",
781
+ "cascader": false
782
+ },
783
+ {
784
+ "concept": "Param",
785
+ "name": "header",
786
+ "description": "",
787
+ "typeAnnotation": {
788
+ "concept": "TypeAnnotation",
789
+ "name": "",
790
+ "typeKind": "generic",
791
+ "typeNamespace": "nasl.collection",
792
+ "typeName": "Map",
793
+ "typeArguments": [
794
+ {
795
+ "concept": "TypeAnnotation",
796
+ "name": "K",
797
+ "typeKind": "primitive",
798
+ "typeNamespace": "nasl.core",
799
+ "typeName": "String",
800
+ "typeArguments": null,
801
+ "returnType": null,
802
+ "properties": null
803
+ },
804
+ {
805
+ "concept": "TypeAnnotation",
806
+ "name": "V",
807
+ "typeKind": "primitive",
808
+ "typeNamespace": "nasl.core",
809
+ "typeName": "String",
810
+ "typeArguments": null,
811
+ "returnType": null,
812
+ "properties": null
813
+ }
814
+ ],
815
+ "returnType": null,
816
+ "properties": null
817
+ },
818
+ "required": true,
819
+ "defaultValue": "",
820
+ "cascader": false
821
+ },
822
+ {
823
+ "concept": "Param",
824
+ "name": "body",
825
+ "description": "",
826
+ "typeAnnotation": {
827
+ "concept": "TypeAnnotation",
828
+ "name": "",
829
+ "typeKind": "generic",
830
+ "typeNamespace": "nasl.collection",
831
+ "typeName": "Map",
832
+ "typeArguments": [
833
+ {
834
+ "concept": "TypeAnnotation",
835
+ "name": "K",
836
+ "typeKind": "primitive",
837
+ "typeNamespace": "nasl.core",
838
+ "typeName": "String",
839
+ "typeArguments": null,
840
+ "returnType": null,
841
+ "properties": null
842
+ },
843
+ {
844
+ "concept": "TypeAnnotation",
845
+ "name": "V",
846
+ "typeKind": "primitive",
847
+ "typeNamespace": "nasl.core",
848
+ "typeName": "String",
849
+ "typeArguments": null,
850
+ "returnType": null,
851
+ "properties": null
852
+ }
853
+ ],
854
+ "returnType": null,
855
+ "properties": null
856
+ },
857
+ "required": true,
858
+ "defaultValue": "",
859
+ "cascader": false
860
+ }
861
+ ],
862
+ "returns": [
863
+ {
864
+ "concept": "Return",
865
+ "name": "result",
866
+ "description": "",
867
+ "typeAnnotation": {
868
+ "concept": "TypeAnnotation",
869
+ "name": "",
870
+ "typeKind": "union",
871
+ "typeNamespace": "nasl.core",
872
+ "typeName": "Union",
873
+ "typeArguments": [
874
+ {
875
+ "concept": "TypeAnnotation",
876
+ "name": "",
877
+ "typeKind": "primitive",
878
+ "typeNamespace": "nasl.core",
879
+ "typeName": "String",
880
+ "typeArguments": null,
881
+ "returnType": null,
882
+ "properties": null
883
+ },
884
+ {
885
+ "concept": "TypeAnnotation",
886
+ "name": "",
887
+ "typeKind": "reference",
888
+ "typeNamespace": "extensions.httpclient.structures",
889
+ "typeName": "URISyntaxException",
890
+ "typeArguments": null,
891
+ "returnType": null,
892
+ "properties": null
893
+ },
894
+ {
895
+ "concept": "TypeAnnotation",
896
+ "name": "",
897
+ "typeKind": "reference",
898
+ "typeNamespace": "nasl.ui",
899
+ "typeName": "Error",
900
+ "typeArguments": null,
901
+ "returnType": null,
902
+ "properties": null
903
+ }
904
+ ],
905
+ "returnType": null,
906
+ "properties": null
907
+ }
908
+ }
909
+ ],
910
+ "variables": [],
911
+ "body": [],
912
+ "playground": []
913
+ }
914
+ ],
915
+ "interfaces": [],
916
+ "views": [],
917
+ "frontendVariables": [],
918
+ "processes": [],
919
+ "frontends": [],
920
+ "triggerLaunchers": [],
921
+ "dependencies": []
922
+ }
923
+ ],
924
+ "interfaceDependencies": [],
925
+ "authLogics": [],
926
+ "authLogicsForCallInterface": [],
927
+ "preferenceMap": {
928
+ "namingConvention.tableName": "camelCase",
929
+ "namingConvention.columnName": "camelCase",
930
+ "javaLogicEnabled": "false",
931
+ "onDemandInterfaceGeneration": "true",
932
+ "serverValidationRules": "auto"
933
+ }
934
+ }