@lcap/nasl 2.12.0-beta → 2.12.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/out/automate/engine/index.d.ts +1 -0
  2. package/out/automate/engine/index.js +23 -12
  3. package/out/automate/engine/index.js.map +1 -1
  4. package/out/automate/engine/operators.d.ts +10 -2
  5. package/out/automate/engine/operators.js +105 -7
  6. package/out/automate/engine/operators.js.map +1 -1
  7. package/out/automate/engine/uniqueName.d.ts +8 -2
  8. package/out/automate/engine/uniqueName.js +72 -4
  9. package/out/automate/engine/uniqueName.js.map +1 -1
  10. package/out/automate/engine/utils.js +4 -1
  11. package/out/automate/engine/utils.js.map +1 -1
  12. package/out/automate/template/process.d.ts +9 -0
  13. package/out/automate/template/process.js +10976 -0
  14. package/out/automate/template/process.js.map +1 -0
  15. package/out/bak/translator.js +1 -0
  16. package/out/bak/translator.js.map +1 -1
  17. package/out/common/BaseNode.d.ts +5 -0
  18. package/out/common/BaseNode.js +24 -3
  19. package/out/common/BaseNode.js.map +1 -1
  20. package/out/concepts/App__.js +3 -2
  21. package/out/concepts/App__.js.map +1 -1
  22. package/out/concepts/Argument__.js +1 -1
  23. package/out/concepts/Argument__.js.map +1 -1
  24. package/out/concepts/Assignee__.js +1 -1
  25. package/out/concepts/Assignee__.js.map +1 -1
  26. package/out/concepts/Assignment__.js +1 -1
  27. package/out/concepts/Assignment__.js.map +1 -1
  28. package/out/concepts/Attribute__.js +1 -1
  29. package/out/concepts/Attribute__.js.map +1 -1
  30. package/out/concepts/BinaryExpression__.js +1 -1
  31. package/out/concepts/BinaryExpression__.js.map +1 -1
  32. package/out/concepts/BindAttribute__.js +1 -1
  33. package/out/concepts/BindAttribute__.js.map +1 -1
  34. package/out/concepts/BindDirective__.js +9 -2
  35. package/out/concepts/BindDirective__.js.map +1 -1
  36. package/out/concepts/BindEvent__.js +6 -2
  37. package/out/concepts/BindEvent__.js.map +1 -1
  38. package/out/concepts/BooleanLiteral__.d.ts +4 -0
  39. package/out/concepts/BooleanLiteral__.js +12 -1
  40. package/out/concepts/BooleanLiteral__.js.map +1 -1
  41. package/out/concepts/CallFunction__.js +2 -1
  42. package/out/concepts/CallFunction__.js.map +1 -1
  43. package/out/concepts/CallInterface__.js +1 -1
  44. package/out/concepts/CallInterface__.js.map +1 -1
  45. package/out/concepts/CallLogic__.js +27 -11
  46. package/out/concepts/CallLogic__.js.map +1 -1
  47. package/out/concepts/CallQueryComponent__.d.ts +1 -1
  48. package/out/concepts/CallQueryComponent__.js +3 -3
  49. package/out/concepts/CallQueryComponent__.js.map +1 -1
  50. package/out/concepts/Comment__.js +1 -1
  51. package/out/concepts/Comment__.js.map +1 -1
  52. package/out/concepts/CompletionProperty__.js +1 -1
  53. package/out/concepts/CompletionProperty__.js.map +1 -1
  54. package/out/concepts/ConfigGroup__.js +1 -1
  55. package/out/concepts/ConfigGroup__.js.map +1 -1
  56. package/out/concepts/ConfigPropertyValue__.js +1 -1
  57. package/out/concepts/ConfigPropertyValue__.js.map +1 -1
  58. package/out/concepts/ConfigProperty__.js +1 -1
  59. package/out/concepts/ConfigProperty__.js.map +1 -1
  60. package/out/concepts/Configuration__.js +1 -1
  61. package/out/concepts/Configuration__.js.map +1 -1
  62. package/out/concepts/Constant__.js +1 -1
  63. package/out/concepts/Constant__.js.map +1 -1
  64. package/out/concepts/DataElement__.js +1 -1
  65. package/out/concepts/DataElement__.js.map +1 -1
  66. package/out/concepts/DataSource__.js +2 -0
  67. package/out/concepts/DataSource__.js.map +1 -1
  68. package/out/concepts/End__.js +1 -1
  69. package/out/concepts/End__.js.map +1 -1
  70. package/out/concepts/EntityIndex__.js +1 -1
  71. package/out/concepts/EntityIndex__.js.map +1 -1
  72. package/out/concepts/EntityProperty__.js +1 -1
  73. package/out/concepts/EntityProperty__.js.map +1 -1
  74. package/out/concepts/Entity__.js +1 -1
  75. package/out/concepts/Entity__.js.map +1 -1
  76. package/out/concepts/EnumItem__.js +1 -1
  77. package/out/concepts/EnumItem__.js.map +1 -1
  78. package/out/concepts/Enum__.js +1 -1
  79. package/out/concepts/Enum__.js.map +1 -1
  80. package/out/concepts/Event__.js +1 -1
  81. package/out/concepts/Event__.js.map +1 -1
  82. package/out/concepts/ForEachStatement__.js +1 -1
  83. package/out/concepts/ForEachStatement__.js.map +1 -1
  84. package/out/concepts/Function__.js +2 -2
  85. package/out/concepts/Function__.js.map +1 -1
  86. package/out/concepts/Identifier__.js +3 -2
  87. package/out/concepts/Identifier__.js.map +1 -1
  88. package/out/concepts/IfStatement__.js +1 -1
  89. package/out/concepts/IfStatement__.js.map +1 -1
  90. package/out/concepts/InterfaceParam__.js +1 -1
  91. package/out/concepts/InterfaceParam__.js.map +1 -1
  92. package/out/concepts/Interface__.js +2 -2
  93. package/out/concepts/Interface__.js.map +1 -1
  94. package/out/concepts/JSBlock__.js +2 -4
  95. package/out/concepts/JSBlock__.js.map +1 -1
  96. package/out/concepts/LogicItem__.js +1 -1
  97. package/out/concepts/LogicItem__.js.map +1 -1
  98. package/out/concepts/Logic__.js +7 -6
  99. package/out/concepts/Logic__.js.map +1 -1
  100. package/out/concepts/MemberExpression__.js +1 -1
  101. package/out/concepts/MemberExpression__.js.map +1 -1
  102. package/out/concepts/Module__.d.ts +118 -112
  103. package/out/concepts/Module__.js +25 -7
  104. package/out/concepts/Module__.js.map +1 -1
  105. package/out/concepts/Namespace__.js +2 -2
  106. package/out/concepts/Namespace__.js.map +1 -1
  107. package/out/concepts/NullLiteral__.js +1 -1
  108. package/out/concepts/NullLiteral__.js.map +1 -1
  109. package/out/concepts/NumericLiteral__.js +1 -1
  110. package/out/concepts/NumericLiteral__.js.map +1 -1
  111. package/out/concepts/Param__.js +2 -2
  112. package/out/concepts/Param__.js.map +1 -1
  113. package/out/concepts/Point__.js +1 -1
  114. package/out/concepts/Point__.js.map +1 -1
  115. package/out/concepts/ProcessComponent__.js +1 -1
  116. package/out/concepts/ProcessComponent__.js.map +1 -1
  117. package/out/concepts/ProcessElement__.js +7 -2
  118. package/out/concepts/ProcessElement__.js.map +1 -1
  119. package/out/concepts/ProcessOutcome__.js +1 -1
  120. package/out/concepts/ProcessOutcome__.js.map +1 -1
  121. package/out/concepts/Process__.d.ts +1 -1
  122. package/out/concepts/Process__.js +2 -2
  123. package/out/concepts/Process__.js.map +1 -1
  124. package/out/concepts/QueryAggregateExpression__.js +1 -1
  125. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  126. package/out/concepts/QueryFieldExpression__.js +1 -1
  127. package/out/concepts/QueryFieldExpression__.js.map +1 -1
  128. package/out/concepts/QueryFromExpression__.js +1 -1
  129. package/out/concepts/QueryFromExpression__.js.map +1 -1
  130. package/out/concepts/QueryGroupByExpression__.js +1 -1
  131. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  132. package/out/concepts/QueryJoinExpression__.js +1 -1
  133. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  134. package/out/concepts/QueryLimitExpression__.js +1 -1
  135. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  136. package/out/concepts/QueryOrderByExpression__.js +1 -1
  137. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  138. package/out/concepts/QuerySelectExpression__.js +1 -1
  139. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  140. package/out/concepts/Rect__.js +1 -1
  141. package/out/concepts/Rect__.js.map +1 -1
  142. package/out/concepts/Return__.js +2 -2
  143. package/out/concepts/Return__.js.map +1 -1
  144. package/out/concepts/Role__.js +1 -1
  145. package/out/concepts/Role__.js.map +1 -1
  146. package/out/concepts/Slot__.js +1 -1
  147. package/out/concepts/Slot__.js.map +1 -1
  148. package/out/concepts/SqlQueryComponent__.d.ts +4 -0
  149. package/out/concepts/SqlQueryComponent__.js +16 -0
  150. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  151. package/out/concepts/Start__.js +1 -1
  152. package/out/concepts/Start__.js.map +1 -1
  153. package/out/concepts/StringLiteral__.d.ts +1 -1
  154. package/out/concepts/StringLiteral__.js +2 -2
  155. package/out/concepts/StringLiteral__.js.map +1 -1
  156. package/out/concepts/StructureProperty__.js +5 -4
  157. package/out/concepts/StructureProperty__.js.map +1 -1
  158. package/out/concepts/Structure__.js +1 -1
  159. package/out/concepts/Structure__.js.map +1 -1
  160. package/out/concepts/SwitchCase__.d.ts +1 -1
  161. package/out/concepts/SwitchCase__.js +19 -21
  162. package/out/concepts/SwitchCase__.js.map +1 -1
  163. package/out/concepts/SwitchStatement__.js +2 -7
  164. package/out/concepts/SwitchStatement__.js.map +1 -1
  165. package/out/concepts/Theme__.js +1 -1
  166. package/out/concepts/Theme__.js.map +1 -1
  167. package/out/concepts/Transactional__.js +1 -1
  168. package/out/concepts/Transactional__.js.map +1 -1
  169. package/out/concepts/TypeAnnotation__.js +2 -2
  170. package/out/concepts/TypeAnnotation__.js.map +1 -1
  171. package/out/concepts/TypeParam__.js +1 -1
  172. package/out/concepts/TypeParam__.js.map +1 -1
  173. package/out/concepts/UnaryExpression__.js +1 -1
  174. package/out/concepts/UnaryExpression__.js.map +1 -1
  175. package/out/concepts/Unparsed__.js +1 -1
  176. package/out/concepts/Unparsed__.js.map +1 -1
  177. package/out/concepts/UseComponent__.js +1 -1
  178. package/out/concepts/UseComponent__.js.map +1 -1
  179. package/out/concepts/ValidationRule__.js +1 -1
  180. package/out/concepts/ValidationRule__.js.map +1 -1
  181. package/out/concepts/Variable__.js +2 -2
  182. package/out/concepts/Variable__.js.map +1 -1
  183. package/out/concepts/ViewComponent__.js +1 -1
  184. package/out/concepts/ViewComponent__.js.map +1 -1
  185. package/out/concepts/ViewElement__.js +9 -4
  186. package/out/concepts/ViewElement__.js.map +1 -1
  187. package/out/concepts/View__.d.ts +0 -2
  188. package/out/concepts/View__.js +4 -11
  189. package/out/concepts/View__.js.map +1 -1
  190. package/out/concepts/WhileStatement__.js +1 -1
  191. package/out/concepts/WhileStatement__.js.map +1 -1
  192. package/out/concepts/basics/stdlib/nasl.auth.js +20 -0
  193. package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
  194. package/out/concepts/basics/stdlib/nasl.process.d.ts +4 -0
  195. package/out/concepts/basics/stdlib/nasl.process.js +410 -0
  196. package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
  197. package/out/concepts/basics/stdlib/nasl.ui.js +1 -11
  198. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
  199. package/out/concepts/basics/stdlib/nasl.util.js +25 -25
  200. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  201. package/out/concepts/basics/types/index.d.ts +1 -0
  202. package/out/concepts/basics/types/index.js +4 -1
  203. package/out/concepts/basics/types/index.js.map +1 -1
  204. package/out/generator/genBundleFiles.d.ts +3 -1
  205. package/out/generator/genBundleFiles.js +16 -3
  206. package/out/generator/genBundleFiles.js.map +1 -1
  207. package/out/generator/genMetaData.d.ts +1 -0
  208. package/out/generator/genMetaData.js +7 -0
  209. package/out/generator/genMetaData.js.map +1 -1
  210. package/out/index.d.ts +1 -1
  211. package/out/index.js +2 -1
  212. package/out/index.js.map +1 -1
  213. package/out/server/getLogics.js +18 -0
  214. package/out/server/getLogics.js.map +1 -1
  215. package/out/server/getMemberIdentifier.js +5 -0
  216. package/out/server/getMemberIdentifier.js.map +1 -1
  217. package/out/server/getProcesses.d.ts +1 -0
  218. package/out/server/getProcesses.js +9 -1
  219. package/out/server/getProcesses.js.map +1 -1
  220. package/out/server/naslServer.d.ts +1 -0
  221. package/out/server/naslServer.js +98 -23
  222. package/out/server/naslServer.js.map +1 -1
  223. package/out/server/translator.js +21 -3
  224. package/out/server/translator.js.map +1 -1
  225. package/out/service/creator/errHandles.js +5 -0
  226. package/out/service/creator/errHandles.js.map +1 -1
  227. package/out/service/storage/init.d.ts +1 -0
  228. package/out/service/storage/init.js +94 -83
  229. package/out/service/storage/init.js.map +1 -1
  230. package/out/templator/genCreateBlock.js +20 -14
  231. package/out/templator/genCreateBlock.js.map +1 -1
  232. package/out/templator/genCurdEditMultipleKeyBlock.js +13 -6
  233. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  234. package/out/templator/genCurdMultipleKeyBlock.js +20 -8
  235. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  236. package/out/templator/genEditTableBlock.js +3 -1
  237. package/out/templator/genEditTableBlock.js.map +1 -1
  238. package/out/templator/genEnumSelectBlock.js +1 -1
  239. package/out/templator/genEnumSelectBlock.js.map +1 -1
  240. package/out/templator/genGridViewBlock.js +8 -4
  241. package/out/templator/genGridViewBlock.js.map +1 -1
  242. package/out/templator/genListViewBlock.js +1 -2
  243. package/out/templator/genListViewBlock.js.map +1 -1
  244. package/out/templator/genQueryComponent.js +20 -21
  245. package/out/templator/genQueryComponent.js.map +1 -1
  246. package/out/templator/genTableBlock.js +14 -6
  247. package/out/templator/genTableBlock.js.map +1 -1
  248. package/out/templator/genUpdateBlock.js +20 -14
  249. package/out/templator/genUpdateBlock.js.map +1 -1
  250. package/out/utils/index.d.ts +1 -0
  251. package/out/utils/index.js +19 -1
  252. package/out/utils/index.js.map +1 -1
  253. package/package.json +1 -1
  254. package/src/automate/engine/index.js +21 -7
  255. package/src/automate/engine/operators.js +114 -17
  256. package/src/automate/engine/uniqueName.js +77 -9
  257. package/src/automate/engine/utils.js +4 -2
  258. package/src/automate/template/process.js +10999 -0
  259. package/src/bak/translator.js +1 -0
  260. package/src/common/BaseNode.ts +21 -4
  261. package/src/concepts/App__.ts +4 -40
  262. package/src/concepts/Argument__.ts +1 -1
  263. package/src/concepts/Assignee__.ts +1 -1
  264. package/src/concepts/Assignment__.ts +1 -1
  265. package/src/concepts/Attribute__.ts +1 -1
  266. package/src/concepts/BinaryExpression__.ts +1 -1
  267. package/src/concepts/BindAttribute__.ts +1 -1
  268. package/src/concepts/BindDirective__.ts +8 -6
  269. package/src/concepts/BindEvent__.ts +6 -2
  270. package/src/concepts/BooleanLiteral__.ts +13 -1
  271. package/src/concepts/CallFunction__.ts +15 -14
  272. package/src/concepts/CallInterface__.ts +1 -1
  273. package/src/concepts/CallLogic__.ts +26 -11
  274. package/src/concepts/CallQueryComponent__.ts +32 -4
  275. package/src/concepts/Comment__.ts +1 -1
  276. package/src/concepts/CompletionProperty__.ts +1 -1
  277. package/src/concepts/ConfigGroup__.ts +1 -1
  278. package/src/concepts/ConfigPropertyValue__.ts +1 -1
  279. package/src/concepts/ConfigProperty__.ts +1 -1
  280. package/src/concepts/Configuration__.ts +1 -1
  281. package/src/concepts/Constant__.ts +1 -1
  282. package/src/concepts/DataElement__.ts +1 -1
  283. package/src/concepts/DataSource__.ts +2 -0
  284. package/src/concepts/End__.ts +1 -1
  285. package/src/concepts/EntityIndex__.ts +1 -1
  286. package/src/concepts/EntityProperty__.ts +1 -1
  287. package/src/concepts/Entity__.ts +1 -1
  288. package/src/concepts/EnumItem__.ts +1 -1
  289. package/src/concepts/Enum__.ts +1 -1
  290. package/src/concepts/Event__.ts +1 -1
  291. package/src/concepts/ForEachStatement__.ts +1 -1
  292. package/src/concepts/Function__.ts +5 -5
  293. package/src/concepts/Identifier__.ts +3 -2
  294. package/src/concepts/IfStatement__.ts +1 -1
  295. package/src/concepts/InterfaceParam__.ts +1 -1
  296. package/src/concepts/Interface__.ts +2 -2
  297. package/src/concepts/JSBlock__.ts +2 -11
  298. package/src/concepts/LogicItem__.ts +1 -1
  299. package/src/concepts/Logic__.ts +8 -44
  300. package/src/concepts/MemberExpression__.ts +1 -1
  301. package/src/concepts/Module__.ts +141 -147
  302. package/src/concepts/Namespace__.ts +2 -2
  303. package/src/concepts/NullLiteral__.ts +1 -1
  304. package/src/concepts/NumericLiteral__.ts +1 -1
  305. package/src/concepts/Param__.ts +2 -2
  306. package/src/concepts/Point__.ts +1 -1
  307. package/src/concepts/ProcessComponent__.ts +1 -1
  308. package/src/concepts/ProcessElement__.ts +8 -3
  309. package/src/concepts/ProcessOutcome__.ts +1 -1
  310. package/src/concepts/Process__.ts +3 -3
  311. package/src/concepts/QueryAggregateExpression__.ts +1 -1
  312. package/src/concepts/QueryFieldExpression__.ts +1 -1
  313. package/src/concepts/QueryFromExpression__.ts +1 -1
  314. package/src/concepts/QueryGroupByExpression__.ts +1 -1
  315. package/src/concepts/QueryJoinExpression__.ts +1 -1
  316. package/src/concepts/QueryLimitExpression__.ts +1 -1
  317. package/src/concepts/QueryOrderByExpression__.ts +1 -1
  318. package/src/concepts/QuerySelectExpression__.ts +1 -1
  319. package/src/concepts/Rect__.ts +1 -1
  320. package/src/concepts/Return__.ts +2 -2
  321. package/src/concepts/Role__.ts +1 -1
  322. package/src/concepts/Slot__.ts +1 -1
  323. package/src/concepts/SqlQueryComponent__.ts +17 -0
  324. package/src/concepts/Start__.ts +1 -1
  325. package/src/concepts/StringLiteral__.ts +2 -2
  326. package/src/concepts/StructureProperty__.ts +5 -8
  327. package/src/concepts/Structure__.ts +1 -1
  328. package/src/concepts/SwitchCase__.ts +19 -23
  329. package/src/concepts/SwitchStatement__.ts +2 -6
  330. package/src/concepts/Theme__.ts +1 -1
  331. package/src/concepts/Transactional__.ts +1 -1
  332. package/src/concepts/TypeAnnotation__.ts +21 -2
  333. package/src/concepts/TypeParam__.ts +1 -1
  334. package/src/concepts/UnaryExpression__.ts +1 -1
  335. package/src/concepts/Unparsed__.ts +1 -1
  336. package/src/concepts/UseComponent__.ts +1 -1
  337. package/src/concepts/ValidationRule__.ts +1 -1
  338. package/src/concepts/Variable__.ts +2 -2
  339. package/src/concepts/ViewComponent__.ts +1 -1
  340. package/src/concepts/ViewElement__.ts +10 -23
  341. package/src/concepts/View__.ts +6 -13
  342. package/src/concepts/WhileStatement__.ts +1 -1
  343. package/src/concepts/basics/stdlib/nasl.auth.ts +20 -0
  344. package/src/concepts/basics/stdlib/nasl.process.ts +406 -0
  345. package/src/concepts/basics/stdlib/nasl.ui.ts +1 -11
  346. package/src/concepts/basics/stdlib/nasl.util.ts +25 -25
  347. package/src/concepts/basics/types/index.ts +1 -0
  348. package/src/generator/genBundleFiles.ts +21 -5
  349. package/src/generator/genMetaData.ts +10 -1
  350. package/src/index.ts +1 -1
  351. package/src/server/getLogics.ts +18 -1
  352. package/src/server/getMemberIdentifier.ts +4 -0
  353. package/src/server/getProcesses.ts +8 -1
  354. package/src/server/naslServer.ts +107 -28
  355. package/src/server/translator.ts +20 -3
  356. package/src/service/creator/errHandles.js +6 -0
  357. package/src/service/storage/init.ts +96 -85
  358. package/src/templator/genCreateBlock.ts +20 -14
  359. package/src/templator/genCurdEditMultipleKeyBlock.ts +13 -8
  360. package/src/templator/genCurdMultipleKeyBlock.ts +20 -9
  361. package/src/templator/genEditTableBlock.ts +3 -1
  362. package/src/templator/genEnumSelectBlock.ts +1 -1
  363. package/src/templator/genGridViewBlock.ts +8 -4
  364. package/src/templator/genListViewBlock.ts +1 -2
  365. package/src/templator/genQueryComponent.ts +22 -21
  366. package/src/templator/genTableBlock.ts +14 -7
  367. package/src/templator/genUpdateBlock.ts +20 -14
  368. package/src/utils/index.ts +19 -0
@@ -70,7 +70,7 @@ export class Module extends BaseNode {
70
70
  * 外部语言依赖
71
71
  */
72
72
  @property()
73
- externalDependencyMap: { maven?: Array<{ groupId: string, artifactId: string, version: string }> } = undefined;
73
+ externalDependencyMap: { maven?: Array<{ groupId: string; artifactId: string; version: string }> } = undefined;
74
74
 
75
75
  /**
76
76
  * 数据结构列表
@@ -145,9 +145,8 @@ export class Module extends BaseNode {
145
145
  }
146
146
  return params;
147
147
  }
148
-
149
148
 
150
- getStructureExistingNames(excludedList: Array<Structure> = []) {
149
+ getStructureExistingNames(excludedList: Array<Structure> = []) {
151
150
  const excludedSet = new Set(excludedList);
152
151
  return (this.structures || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
153
152
  }
@@ -156,24 +155,24 @@ export class Module extends BaseNode {
156
155
  }
157
156
 
158
157
  /**
159
- * 插入数据结构
160
- * @internal
161
- * @param name 数据结构名称,如果不填会自动生成一个唯一名称
162
- */
158
+ * 插入数据结构
159
+ * @internal
160
+ * @param name 数据结构名称,如果不填会自动生成一个唯一名称
161
+ */
163
162
  _insertStructureAt(name: string, index: number): Structure;
164
163
 
165
164
  /**
166
- * 插入数据结构
167
- * @internal
168
- * @param structureOptions 数据结构参数
169
- */
165
+ * 插入数据结构
166
+ * @internal
167
+ * @param structureOptions 数据结构参数
168
+ */
170
169
  _insertStructureAt(structureOptions: Partial<Structure>, index: number): Structure;
171
170
 
172
171
  /**
173
- * 插入数据结构
174
- * @internal
175
- * @param structure 已有的数据结构实例
176
- */
172
+ * 插入数据结构
173
+ * @internal
174
+ * @param structure 已有的数据结构实例
175
+ */
177
176
  _insertStructureAt(structure: Structure, index: number): Structure;
178
177
 
179
178
  _insertStructureAt(options: string | Partial<Structure> | Structure, index: number) {
@@ -288,7 +287,6 @@ export class Module extends BaseNode {
288
287
  return node;
289
288
  }
290
289
 
291
-
292
290
  getEnumExistingNames(excludedList: Array<Enum> = []) {
293
291
  const excludedSet = new Set(excludedList);
294
292
  return (this.enums || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -298,24 +296,24 @@ export class Module extends BaseNode {
298
296
  }
299
297
 
300
298
  /**
301
- * 插入枚举
302
- * @internal
303
- * @param name 枚举名称,如果不填会自动生成一个唯一名称
304
- */
299
+ * 插入枚举
300
+ * @internal
301
+ * @param name 枚举名称,如果不填会自动生成一个唯一名称
302
+ */
305
303
  _insertEnumAt(name: string, index: number): Enum;
306
304
 
307
305
  /**
308
- * 插入枚举
309
- * @internal
310
- * @param enumerationOptions 枚举参数
311
- */
306
+ * 插入枚举
307
+ * @internal
308
+ * @param enumerationOptions 枚举参数
309
+ */
312
310
  _insertEnumAt(enumerationOptions: Partial<Enum>, index: number): Enum;
313
311
 
314
312
  /**
315
- * 插入枚举
316
- * @internal
317
- * @param enumeration 已有的枚举实例
318
- */
313
+ * 插入枚举
314
+ * @internal
315
+ * @param enumeration 已有的枚举实例
316
+ */
319
317
  _insertEnumAt(enumeration: Enum, index: number): Enum;
320
318
 
321
319
  _insertEnumAt(options: string | Partial<Enum> | Enum, index: number) {
@@ -430,7 +428,6 @@ export class Module extends BaseNode {
430
428
  return node;
431
429
  }
432
430
 
433
-
434
431
  getLogicExistingNames(excludedList: Array<Logic> = []) {
435
432
  const excludedSet = new Set(excludedList);
436
433
  return (this.logics || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -440,24 +437,24 @@ export class Module extends BaseNode {
440
437
  }
441
438
 
442
439
  /**
443
- * 插入逻辑
444
- * @internal
445
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
446
- */
440
+ * 插入逻辑
441
+ * @internal
442
+ * @param name 逻辑名称,如果不填会自动生成一个唯一名称
443
+ */
447
444
  _insertLogicAt(name: string, index: number): Logic;
448
445
 
449
446
  /**
450
- * 插入逻辑
451
- * @internal
452
- * @param logicOptions 逻辑参数
453
- */
447
+ * 插入逻辑
448
+ * @internal
449
+ * @param logicOptions 逻辑参数
450
+ */
454
451
  _insertLogicAt(logicOptions: Partial<Logic>, index: number): Logic;
455
452
 
456
453
  /**
457
- * 插入逻辑
458
- * @internal
459
- * @param logic 已有的逻辑实例
460
- */
454
+ * 插入逻辑
455
+ * @internal
456
+ * @param logic 已有的逻辑实例
457
+ */
461
458
  _insertLogicAt(logic: Logic, index: number): Logic;
462
459
 
463
460
  _insertLogicAt(options: string | Partial<Logic> | Logic, index: number) {
@@ -572,7 +569,6 @@ export class Module extends BaseNode {
572
569
  return node;
573
570
  }
574
571
 
575
-
576
572
  getInterfaceExistingNames(excludedList: Array<Interface> = []) {
577
573
  const excludedSet = new Set(excludedList);
578
574
  return (this.interfaces || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -582,24 +578,24 @@ export class Module extends BaseNode {
582
578
  }
583
579
 
584
580
  /**
585
- * 插入接口
586
- * @internal
587
- * @param name 接口名称,如果不填会自动生成一个唯一名称
588
- */
581
+ * 插入接口
582
+ * @internal
583
+ * @param name 接口名称,如果不填会自动生成一个唯一名称
584
+ */
589
585
  _insertInterfaceAt(name: string, index: number): Interface;
590
586
 
591
587
  /**
592
- * 插入接口
593
- * @internal
594
- * @param itfaceOptions 接口参数
595
- */
588
+ * 插入接口
589
+ * @internal
590
+ * @param itfaceOptions 接口参数
591
+ */
596
592
  _insertInterfaceAt(itfaceOptions: Partial<Interface>, index: number): Interface;
597
593
 
598
594
  /**
599
- * 插入接口
600
- * @internal
601
- * @param itface 已有的接口实例
602
- */
595
+ * 插入接口
596
+ * @internal
597
+ * @param itface 已有的接口实例
598
+ */
603
599
  _insertInterfaceAt(itface: Interface, index: number): Interface;
604
600
 
605
601
  _insertInterfaceAt(options: string | Partial<Interface> | Interface, index: number) {
@@ -714,7 +710,6 @@ export class Module extends BaseNode {
714
710
  return node;
715
711
  }
716
712
 
717
-
718
713
  getViewExistingNames(excludedList: Array<View> = []) {
719
714
  const excludedSet = new Set(excludedList);
720
715
  return (this.views || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -724,24 +719,24 @@ export class Module extends BaseNode {
724
719
  }
725
720
 
726
721
  /**
727
- * 插入页面
728
- * @internal
729
- * @param name 页面名称,如果不填会自动生成一个唯一名称
730
- */
722
+ * 插入页面
723
+ * @internal
724
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
725
+ */
731
726
  _insertViewAt(name: string, index: number): View;
732
727
 
733
728
  /**
734
- * 插入页面
735
- * @internal
736
- * @param viewOptions 页面参数
737
- */
729
+ * 插入页面
730
+ * @internal
731
+ * @param viewOptions 页面参数
732
+ */
738
733
  _insertViewAt(viewOptions: Partial<View>, index: number): View;
739
734
 
740
735
  /**
741
- * 插入页面
742
- * @internal
743
- * @param view 已有的页面实例
744
- */
736
+ * 插入页面
737
+ * @internal
738
+ * @param view 已有的页面实例
739
+ */
745
740
  _insertViewAt(view: View, index: number): View;
746
741
 
747
742
  _insertViewAt(options: string | Partial<View> | View, index: number) {
@@ -856,7 +851,6 @@ export class Module extends BaseNode {
856
851
  return node;
857
852
  }
858
853
 
859
-
860
854
  getProcessExistingNames(excludedList: Array<Process> = []) {
861
855
  const excludedSet = new Set(excludedList);
862
856
  return (this.processes || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -866,24 +860,24 @@ export class Module extends BaseNode {
866
860
  }
867
861
 
868
862
  /**
869
- * 插入流程
870
- * @internal
871
- * @param name 流程名称,如果不填会自动生成一个唯一名称
872
- */
863
+ * 插入流程
864
+ * @internal
865
+ * @param name 流程名称,如果不填会自动生成一个唯一名称
866
+ */
873
867
  _insertProcessAt(name: string, index: number): Process;
874
868
 
875
869
  /**
876
- * 插入流程
877
- * @internal
878
- * @param processOptions 流程参数
879
- */
870
+ * 插入流程
871
+ * @internal
872
+ * @param processOptions 流程参数
873
+ */
880
874
  _insertProcessAt(processOptions: Partial<Process>, index: number): Process;
881
875
 
882
876
  /**
883
- * 插入流程
884
- * @internal
885
- * @param process 已有的流程实例
886
- */
877
+ * 插入流程
878
+ * @internal
879
+ * @param process 已有的流程实例
880
+ */
887
881
  _insertProcessAt(process: Process, index: number): Process;
888
882
 
889
883
  _insertProcessAt(options: string | Partial<Process> | Process, index: number) {
@@ -998,7 +992,6 @@ export class Module extends BaseNode {
998
992
  return node;
999
993
  }
1000
994
 
1001
-
1002
995
  getViewComponentExistingNames(excludedList: Array<ViewComponent> = []) {
1003
996
  const excludedSet = new Set(excludedList);
1004
997
  return (this.viewComponents || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
@@ -1008,24 +1001,24 @@ export class Module extends BaseNode {
1008
1001
  }
1009
1002
 
1010
1003
  /**
1011
- * 插入页面组件
1012
- * @internal
1013
- * @param name 页面组件名称,如果不填会自动生成一个唯一名称
1014
- */
1004
+ * 插入页面组件
1005
+ * @internal
1006
+ * @param name 页面组件名称,如果不填会自动生成一个唯一名称
1007
+ */
1015
1008
  _insertViewComponentAt(name: string, index: number): ViewComponent;
1016
1009
 
1017
1010
  /**
1018
- * 插入页面组件
1019
- * @internal
1020
- * @param viewComponentOptions 页面组件参数
1021
- */
1011
+ * 插入页面组件
1012
+ * @internal
1013
+ * @param viewComponentOptions 页面组件参数
1014
+ */
1022
1015
  _insertViewComponentAt(viewComponentOptions: Partial<ViewComponent>, index: number): ViewComponent;
1023
1016
 
1024
1017
  /**
1025
- * 插入页面组件
1026
- * @internal
1027
- * @param viewComponent 已有的页面组件实例
1028
- */
1018
+ * 插入页面组件
1019
+ * @internal
1020
+ * @param viewComponent 已有的页面组件实例
1021
+ */
1029
1022
  _insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent;
1030
1023
 
1031
1024
  _insertViewComponentAt(options: string | Partial<ViewComponent> | ViewComponent, index: number) {
@@ -1140,13 +1133,10 @@ export class Module extends BaseNode {
1140
1133
  return node;
1141
1134
  }
1142
1135
 
1143
-
1144
-
1145
-
1146
1136
  /**
1147
- * 删除数据结构
1148
- * @param name 数据结构名称
1149
- */
1137
+ * 删除数据结构
1138
+ * @param name 数据结构名称
1139
+ */
1150
1140
  removeStructure(name: string): void;
1151
1141
 
1152
1142
  /**
@@ -1191,12 +1181,10 @@ export class Module extends BaseNode {
1191
1181
  return params;
1192
1182
  }
1193
1183
 
1194
-
1195
-
1196
1184
  /**
1197
- * 删除枚举
1198
- * @param name 枚举名称
1199
- */
1185
+ * 删除枚举
1186
+ * @param name 枚举名称
1187
+ */
1200
1188
  removeEnum(name: string): void;
1201
1189
 
1202
1190
  /**
@@ -1241,12 +1229,10 @@ export class Module extends BaseNode {
1241
1229
  return params;
1242
1230
  }
1243
1231
 
1244
-
1245
-
1246
1232
  /**
1247
- * 删除逻辑
1248
- * @param name 逻辑名称
1249
- */
1233
+ * 删除逻辑
1234
+ * @param name 逻辑名称
1235
+ */
1250
1236
  removeLogic(name: string): void;
1251
1237
 
1252
1238
  /**
@@ -1291,12 +1277,10 @@ export class Module extends BaseNode {
1291
1277
  return params;
1292
1278
  }
1293
1279
 
1294
-
1295
-
1296
1280
  /**
1297
- * 删除接口
1298
- * @param name 接口名称
1299
- */
1281
+ * 删除接口
1282
+ * @param name 接口名称
1283
+ */
1300
1284
  removeInterface(name: string): void;
1301
1285
 
1302
1286
  /**
@@ -1341,12 +1325,10 @@ export class Module extends BaseNode {
1341
1325
  return params;
1342
1326
  }
1343
1327
 
1344
-
1345
-
1346
1328
  /**
1347
- * 删除页面
1348
- * @param name 页面名称
1349
- */
1329
+ * 删除页面
1330
+ * @param name 页面名称
1331
+ */
1350
1332
  removeView(name: string): void;
1351
1333
 
1352
1334
  /**
@@ -1391,12 +1373,10 @@ export class Module extends BaseNode {
1391
1373
  return params;
1392
1374
  }
1393
1375
 
1394
-
1395
-
1396
1376
  /**
1397
- * 删除流程
1398
- * @param name 流程名称
1399
- */
1377
+ * 删除流程
1378
+ * @param name 流程名称
1379
+ */
1400
1380
  removeProcess(name: string): void;
1401
1381
 
1402
1382
  /**
@@ -1441,12 +1421,10 @@ export class Module extends BaseNode {
1441
1421
  return params;
1442
1422
  }
1443
1423
 
1444
-
1445
-
1446
1424
  /**
1447
- * 删除页面组件
1448
- * @param name 页面组件名称
1449
- */
1425
+ * 删除页面组件
1426
+ * @param name 页面组件名称
1427
+ */
1450
1428
  removeViewComponent(name: string): void;
1451
1429
 
1452
1430
  /**
@@ -1495,37 +1473,53 @@ export class Module extends BaseNode {
1495
1473
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
1496
1474
  // 自动生成的代码已结束。下面可以手动编写。
1497
1475
  //================================================================================
1498
-
1499
1476
  /**
1477
+ * 用于区分存量应用新导入模块,存量应用替换数据结构使用
1478
+ */
1479
+ @property()
1480
+ isAdd: boolean;
1481
+
1482
+ setIsAdd(isAdd: boolean) {
1483
+ const object = {
1484
+ isAdd,
1485
+ };
1486
+ this.update({
1487
+ ...object,
1488
+ });
1489
+ }
1490
+ /**
1500
1491
  * 生成宿主语言的文件路径
1501
1492
  * @param name 一般不用传,用于 rename
1502
1493
  */
1503
- getEmbeddedFilePath(name = this.name) {
1504
- return `/embedded/${this.app.name}/${this.parentKey}/${this.name}`;
1505
- }
1506
- /**
1494
+ getEmbeddedFilePath(name = this.name) {
1495
+ return `/embedded/${this.app.name}/${this.parentKey}/${this.name}`;
1496
+ }
1497
+ /**
1507
1498
  * 获取命名空间和
1508
1499
  * 暂时不考虑 Module 嵌套的情况
1509
1500
  */
1510
- getNamespace() {
1511
- return `${moduleNameSpace[this.parentKey as ModuleKeyType]}`;
1512
- }
1501
+ getNamespace() {
1502
+ return `${moduleNameSpace[this.parentKey as ModuleKeyType]}`;
1503
+ }
1513
1504
 
1514
- getTsNamespace() {
1515
- return `${moduleNameSpace[this.parentKey as ModuleKeyType]}`;
1516
- }
1505
+ getTsNamespace() {
1506
+ return `${moduleNameSpace[this.parentKey as ModuleKeyType]}`;
1507
+ }
1508
+ getTsNamespaceAndName() {
1509
+ return `${moduleNameSpace[this.parentKey as ModuleKeyType]}.${this.name}`;
1510
+ }
1517
1511
 
1518
- findEnumByName(name: string) {
1519
- return this.enums.find((enumItem) => enumItem.name === name);
1520
- }
1512
+ findEnumByName(name: string) {
1513
+ return this.enums.find((enumItem) => enumItem.name === name);
1514
+ }
1521
1515
 
1522
- /**
1516
+ /**
1523
1517
  * 获取属性节点是否存在
1524
1518
  */
1525
1519
 
1526
- findProperty(name: string, propertyType: PropertyType): any {
1527
- return ((this as any)[propertyType] as Array<any>).find((item) => item.name === name);
1528
- }
1520
+ findProperty(name: string, propertyType: PropertyType): any {
1521
+ return ((this as any)[propertyType] as Array<any>).find((item) => item.name === name);
1522
+ }
1529
1523
 
1530
1524
  //================================================================================
1531
1525
  // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
@@ -2288,7 +2288,7 @@ export class Namespace extends BaseNode {
2288
2288
  if (this.path)
2289
2289
  return this.path;
2290
2290
  else if (this.parentNode && (this.parentNode as Namespace).getNamespace)
2291
- return `${(this.parentNode as Namespace).getNamespace()}.${this.name}`;
2291
+ return `${(this.parentNode as Namespace).getNamespace()}`;
2292
2292
  else
2293
2293
  throw new Error('无法获取命名空间,请设置 parentNode 或临时的 path!');
2294
2294
  }
@@ -2319,7 +2319,7 @@ export class Namespace extends BaseNode {
2319
2319
  //================================================================================
2320
2320
  }
2321
2321
 
2322
- classMap.Namespace = Namespace;
2322
+ classMap['Namespace'] = Namespace;
2323
2323
  export default Namespace;
2324
2324
  //================================================================================
2325
2325
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -76,7 +76,7 @@ export class NullLiteral extends LogicItem {
76
76
  //================================================================================
77
77
  }
78
78
 
79
- classMap.NullLiteral = NullLiteral;
79
+ classMap['NullLiteral'] = NullLiteral;
80
80
  export default NullLiteral;
81
81
  //================================================================================
82
82
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -187,7 +187,7 @@ export class NumericLiteral extends LogicItem {
187
187
  //================================================================================
188
188
  }
189
189
 
190
- classMap.NumericLiteral = NumericLiteral;
190
+ classMap['NumericLiteral'] = NumericLiteral;
191
191
  export default NumericLiteral;
192
192
  //================================================================================
193
193
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -356,7 +356,7 @@ export class Param extends BaseNode {
356
356
  const { typeName, typeKind, typeNamespace } = newTypeAnnotation || this.typeAnnotation;
357
357
  let completionChildren;
358
358
  if (typeKind === 'reference') {
359
- if (typeNamespace === 'nasl.ui') {
359
+ if (typeNamespace === 'nasl.ui' || typeNamespace === 'nasl.process') {
360
360
  const node = getNaslNodeByNodeCallee(typeNamespace, typeName);
361
361
  const properties = node.properties || [];
362
362
  completionChildren = properties;
@@ -394,7 +394,7 @@ export class Param extends BaseNode {
394
394
  //================================================================================
395
395
  }
396
396
 
397
- classMap.Param = Param;
397
+ classMap['Param'] = Param;
398
398
  export default Param;
399
399
  //================================================================================
400
400
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -77,7 +77,7 @@ export class Point extends BaseNode {
77
77
  //================================================================================
78
78
  }
79
79
 
80
- classMap.Point = Point;
80
+ classMap['Point'] = Point;
81
81
  export default Point;
82
82
  //================================================================================
83
83
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -495,7 +495,7 @@ export class ProcessComponent extends BaseNode {
495
495
  //================================================================================
496
496
  }
497
497
 
498
- classMap.ProcessComponent = ProcessComponent;
498
+ classMap['ProcessComponent'] = ProcessComponent;
499
499
  export default ProcessComponent;
500
500
  //================================================================================
501
501
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -1,5 +1,5 @@
1
1
  import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState, embeddedTSEmitter } from '../translator';
2
- import { constantToParam, genUserTaskLogic, returnToParam, getPreviousTask, syncMemberExpression, getFlowAfterElements, isFromStartNode } from '../server/getProcesses';
2
+ import { constantToParam, genUserTaskLogic, returnToParam, getPreviousTask, syncMemberExpression, getFlowAfterElements, isFromStartNode, getFlowBeforeElements } from '../server/getProcesses';
3
3
  //================================================================================
4
4
  // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
5
5
  // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
@@ -1347,6 +1347,7 @@ export class ProcessElement extends BaseNode {
1347
1347
  code += `${property.toEmbeddedTSInProcess(shiftState(state, code, { inline: true }))},\n`;
1348
1348
  });
1349
1349
  const afterLinks = getFlowAfterElements(this);
1350
+ const beforeLinks = getFlowBeforeElements(this);
1350
1351
  if (this.type === 'UserTask'
1351
1352
  || this.type === 'ExclusiveGateway'
1352
1353
  || this.type === 'AutoTask') {
@@ -1404,7 +1405,11 @@ export class ProcessElement extends BaseNode {
1404
1405
  }
1405
1406
  if(this.type === 'ExclusiveGateway' || this.type === 'ParallelGateway') {
1406
1407
  code += '_constraints: function() {\n'
1407
- code += `${tab1}nasl.process.atLeastTwoOutcomeFlow(${afterLinks.map(l => `'${l.name}'`).join(',')})\n`
1408
+ code += `${tab1}nasl.process.atLeastOneOutcomeFlow(${afterLinks.map(l => `'${l.name}'`).join(',')})\n`
1409
+ code += `${tab1}nasl.process.atLeastOneOutcomeFlow(${beforeLinks.map(l => `'${l.name}'`).join(',')})\n`
1410
+ if(afterLinks.length > 0 && beforeLinks.length > 0) {
1411
+ code += `${tab1}nasl.process.atLeastThreeOutcomeFlow(${beforeLinks.concat(afterLinks).map(l => `'${l.name}'`).join(',')})\n`
1412
+ }
1408
1413
  code += '},\n'
1409
1414
  }
1410
1415
 
@@ -1470,7 +1475,7 @@ export class ProcessElement extends BaseNode {
1470
1475
  //================================================================================
1471
1476
  }
1472
1477
 
1473
- classMap.ProcessElement = ProcessElement;
1478
+ classMap['ProcessElement'] = ProcessElement;
1474
1479
  export default ProcessElement;
1475
1480
  //================================================================================
1476
1481
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -84,7 +84,7 @@ export class ProcessOutcome extends LogicItem {
84
84
  //================================================================================
85
85
  }
86
86
 
87
- classMap.ProcessOutcome = ProcessOutcome;
87
+ classMap['ProcessOutcome'] = ProcessOutcome;
88
88
  export default ProcessOutcome;
89
89
  //================================================================================
90
90
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -949,9 +949,9 @@ export class Process extends BaseNode {
949
949
  return params;
950
950
  }
951
951
 
952
- getVarExistingNames(excludedList: Array<Param | Return | Constant> = []) {
952
+ getVarExistingNames(excludedList: Array<Param | Return | Constant | ProcessElement> = []) {
953
953
  const excludedSet = new Set(excludedList);
954
- return [...this.params, ...this.returns, ...this.constants].filter((item) => !excludedSet.has(item)).map((item) => item.name);
954
+ return [...this.params, ...this.returns, ...this.constants, ...this.elements].filter((item) => !excludedSet.has(item)).map((item) => item.name);
955
955
  }
956
956
 
957
957
  getNamespace(ns: string) {
@@ -1120,7 +1120,7 @@ export class Process extends BaseNode {
1120
1120
  //================================================================================
1121
1121
  }
1122
1122
 
1123
- classMap.Process = Process;
1123
+ classMap['Process'] = Process;
1124
1124
  export default Process;
1125
1125
  //================================================================================
1126
1126
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -156,7 +156,7 @@ export class QueryAggregateExpression extends LogicItem {
156
156
  //================================================================================
157
157
  }
158
158
 
159
- classMap.QueryAggregateExpression = QueryAggregateExpression;
159
+ classMap['QueryAggregateExpression'] = QueryAggregateExpression;
160
160
  export default QueryAggregateExpression;
161
161
  //================================================================================
162
162
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
@@ -132,7 +132,7 @@ export class QueryFieldExpression extends LogicItem {
132
132
  //================================================================================
133
133
  }
134
134
 
135
- classMap.QueryFieldExpression = QueryFieldExpression;
135
+ classMap['QueryFieldExpression'] = QueryFieldExpression;
136
136
  export default QueryFieldExpression;
137
137
  //================================================================================
138
138
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑