@lcap/nasl 3.3.0-alpha.2 → 3.3.0-beta.0

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 (838) hide show
  1. package/out/automate/upgrader/2.20.js.map +1 -1
  2. package/out/bak/translator.js +55 -1
  3. package/out/bak/translator.js.map +1 -1
  4. package/out/breakpoint/generator/AfterStartNode.js +2 -1
  5. package/out/breakpoint/generator/AfterStartNode.js.map +1 -1
  6. package/out/breakpoint/generator/BeforeEndNode.js +2 -1
  7. package/out/breakpoint/generator/BeforeEndNode.js.map +1 -1
  8. package/out/breakpoint/generator/BreakpointNode.js +30 -9
  9. package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
  10. package/out/breakpoint/shared/constants.d.ts +1 -0
  11. package/out/breakpoint/shared/constants.js +7 -1
  12. package/out/breakpoint/shared/constants.js.map +1 -1
  13. package/out/breakpoint/shared/utils.d.ts +3 -1
  14. package/out/breakpoint/shared/utils.js +24 -5
  15. package/out/breakpoint/shared/utils.js.map +1 -1
  16. package/out/common/BaseNode.d.ts +21 -8
  17. package/out/common/BaseNode.js +115 -69
  18. package/out/common/BaseNode.js.map +1 -1
  19. package/out/common/Command.d.ts +1 -0
  20. package/out/common/Command.js +15 -2
  21. package/out/common/Command.js.map +1 -1
  22. package/out/common/EventEmitter.d.ts +1 -1
  23. package/out/common/EventEmitter.js +1 -3
  24. package/out/common/EventEmitter.js.map +1 -1
  25. package/out/common/index.d.ts +0 -1
  26. package/out/common/index.js +0 -1
  27. package/out/common/index.js.map +1 -1
  28. package/out/concepts/Abort__.d.ts +3 -2
  29. package/out/concepts/Abort__.js +15 -18
  30. package/out/concepts/Abort__.js.map +1 -1
  31. package/out/concepts/Anchor__.d.ts +3 -3
  32. package/out/concepts/Anchor__.js +18 -35
  33. package/out/concepts/Anchor__.js.map +1 -1
  34. package/out/concepts/AnonymousFunction__.d.ts +3 -3
  35. package/out/concepts/AnonymousFunction__.js +29 -53
  36. package/out/concepts/AnonymousFunction__.js.map +1 -1
  37. package/out/concepts/App__.d.ts +160 -157
  38. package/out/concepts/App__.js +106 -80
  39. package/out/concepts/App__.js.map +1 -1
  40. package/out/concepts/Argument__.d.ts +3 -3
  41. package/out/concepts/Argument__.js +22 -42
  42. package/out/concepts/Argument__.js.map +1 -1
  43. package/out/concepts/Assignee__.d.ts +3 -2
  44. package/out/concepts/Assignee__.js +19 -21
  45. package/out/concepts/Assignee__.js.map +1 -1
  46. package/out/concepts/AssignmentLine__.d.ts +3 -2
  47. package/out/concepts/AssignmentLine__.js +15 -17
  48. package/out/concepts/AssignmentLine__.js.map +1 -1
  49. package/out/concepts/Assignment__.d.ts +3 -3
  50. package/out/concepts/Assignment__.js +34 -42
  51. package/out/concepts/Assignment__.js.map +1 -1
  52. package/out/concepts/Attribute__.d.ts +3 -2
  53. package/out/concepts/Attribute__.js +36 -28
  54. package/out/concepts/Attribute__.js.map +1 -1
  55. package/out/concepts/AuthInterface__.d.ts +4 -3
  56. package/out/concepts/AuthInterface__.js +16 -17
  57. package/out/concepts/AuthInterface__.js.map +1 -1
  58. package/out/concepts/AuthLogicForCallInterface__.d.ts +4 -3
  59. package/out/concepts/AuthLogicForCallInterface__.js +37 -27
  60. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  61. package/out/concepts/AuthLogic__.d.ts +4 -3
  62. package/out/concepts/AuthLogic__.js +18 -19
  63. package/out/concepts/AuthLogic__.js.map +1 -1
  64. package/out/concepts/BackendVariable__.d.ts +8 -7
  65. package/out/concepts/BackendVariable__.js +39 -34
  66. package/out/concepts/BackendVariable__.js.map +1 -1
  67. package/out/concepts/Backend__.d.ts +32 -31
  68. package/out/concepts/Backend__.js +23 -22
  69. package/out/concepts/Backend__.js.map +1 -1
  70. package/out/concepts/BatchAssignment__.d.ts +3 -3
  71. package/out/concepts/BatchAssignment__.js +46 -54
  72. package/out/concepts/BatchAssignment__.js.map +1 -1
  73. package/out/concepts/BinaryExpression__.d.ts +3 -3
  74. package/out/concepts/BinaryExpression__.js +30 -62
  75. package/out/concepts/BinaryExpression__.js.map +1 -1
  76. package/out/concepts/BindAttribute__.d.ts +13 -8
  77. package/out/concepts/BindAttribute__.js +137 -83
  78. package/out/concepts/BindAttribute__.js.map +1 -1
  79. package/out/concepts/BindDirective__.d.ts +5 -3
  80. package/out/concepts/BindDirective__.js +34 -28
  81. package/out/concepts/BindDirective__.js.map +1 -1
  82. package/out/concepts/BindEvent__.d.ts +5 -4
  83. package/out/concepts/BindEvent__.js +92 -108
  84. package/out/concepts/BindEvent__.js.map +1 -1
  85. package/out/concepts/BindStyle__.d.ts +5 -3
  86. package/out/concepts/BindStyle__.js +24 -23
  87. package/out/concepts/BindStyle__.js.map +1 -1
  88. package/out/concepts/BooleanLiteral__.d.ts +3 -3
  89. package/out/concepts/BooleanLiteral__.js +17 -24
  90. package/out/concepts/BooleanLiteral__.js.map +1 -1
  91. package/out/concepts/CallAuthInterface__.d.ts +3 -2
  92. package/out/concepts/CallAuthInterface__.js +17 -19
  93. package/out/concepts/CallAuthInterface__.js.map +1 -1
  94. package/out/concepts/CallConnector__.d.ts +5 -4
  95. package/out/concepts/CallConnector__.js +41 -34
  96. package/out/concepts/CallConnector__.js.map +1 -1
  97. package/out/concepts/CallFunction__.d.ts +3 -3
  98. package/out/concepts/CallFunction__.js +33 -71
  99. package/out/concepts/CallFunction__.js.map +1 -1
  100. package/out/concepts/CallInterface__.d.ts +3 -3
  101. package/out/concepts/CallInterface__.js +26 -57
  102. package/out/concepts/CallInterface__.js.map +1 -1
  103. package/out/concepts/CallLogic__.d.ts +6 -6
  104. package/out/concepts/CallLogic__.js +167 -155
  105. package/out/concepts/CallLogic__.js.map +1 -1
  106. package/out/concepts/CallQueryComponent__.d.ts +4 -3
  107. package/out/concepts/CallQueryComponent__.js +57 -41
  108. package/out/concepts/CallQueryComponent__.js.map +1 -1
  109. package/out/concepts/Comment__.d.ts +3 -3
  110. package/out/concepts/Comment__.js +17 -24
  111. package/out/concepts/Comment__.js.map +1 -1
  112. package/out/concepts/CompletionProperty__.d.ts +3 -2
  113. package/out/concepts/CompletionProperty__.js +30 -25
  114. package/out/concepts/CompletionProperty__.js.map +1 -1
  115. package/out/concepts/ConfigGroup__.d.ts +3 -2
  116. package/out/concepts/ConfigGroup__.js +21 -20
  117. package/out/concepts/ConfigGroup__.js.map +1 -1
  118. package/out/concepts/ConfigPropertyValue__.d.ts +3 -2
  119. package/out/concepts/ConfigPropertyValue__.js +16 -16
  120. package/out/concepts/ConfigPropertyValue__.js.map +1 -1
  121. package/out/concepts/ConfigProperty__.d.ts +3 -2
  122. package/out/concepts/ConfigProperty__.js +26 -23
  123. package/out/concepts/ConfigProperty__.js.map +1 -1
  124. package/out/concepts/Configuration__.d.ts +3 -2
  125. package/out/concepts/Configuration__.js +16 -18
  126. package/out/concepts/Configuration__.js.map +1 -1
  127. package/out/concepts/Connection__.d.ts +4 -4
  128. package/out/concepts/Connection__.js +31 -28
  129. package/out/concepts/Connection__.js.map +1 -1
  130. package/out/concepts/ConnectorTrigger__.d.ts +7 -6
  131. package/out/concepts/ConnectorTrigger__.js +22 -21
  132. package/out/concepts/ConnectorTrigger__.js.map +1 -1
  133. package/out/concepts/Connector__.d.ts +139 -33
  134. package/out/concepts/Connector__.js +191 -34
  135. package/out/concepts/Connector__.js.map +1 -1
  136. package/out/concepts/Constant__.d.ts +3 -2
  137. package/out/concepts/Constant__.js +25 -23
  138. package/out/concepts/Constant__.js.map +1 -1
  139. package/out/concepts/DataSource__.d.ts +7 -2
  140. package/out/concepts/DataSource__.js +31 -23
  141. package/out/concepts/DataSource__.js.map +1 -1
  142. package/out/concepts/DatabaseTypeAnnotation__.d.ts +5 -4
  143. package/out/concepts/DatabaseTypeAnnotation__.js +18 -18
  144. package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
  145. package/out/concepts/Destination__.d.ts +11 -11
  146. package/out/concepts/Destination__.js +39 -89
  147. package/out/concepts/Destination__.js.map +1 -1
  148. package/out/concepts/End__.d.ts +3 -2
  149. package/out/concepts/End__.js +15 -17
  150. package/out/concepts/End__.js.map +1 -1
  151. package/out/concepts/EntityIndex__.d.ts +4 -3
  152. package/out/concepts/EntityIndex__.js +23 -21
  153. package/out/concepts/EntityIndex__.js.map +1 -1
  154. package/out/concepts/EntityProperty__.d.ts +4 -4
  155. package/out/concepts/EntityProperty__.js +51 -67
  156. package/out/concepts/EntityProperty__.js.map +1 -1
  157. package/out/concepts/Entity__.d.ts +3 -3
  158. package/out/concepts/Entity__.js +32 -51
  159. package/out/concepts/Entity__.js.map +1 -1
  160. package/out/concepts/EnumItem__.d.ts +3 -3
  161. package/out/concepts/EnumItem__.js +19 -25
  162. package/out/concepts/EnumItem__.js.map +1 -1
  163. package/out/concepts/Enum__.d.ts +3 -3
  164. package/out/concepts/Enum__.js +23 -35
  165. package/out/concepts/Enum__.js.map +1 -1
  166. package/out/concepts/Event__.d.ts +3 -2
  167. package/out/concepts/Event__.js +24 -21
  168. package/out/concepts/Event__.js.map +1 -1
  169. package/out/concepts/ExternalDestination__.d.ts +6 -5
  170. package/out/concepts/ExternalDestination__.js +25 -25
  171. package/out/concepts/ExternalDestination__.js.map +1 -1
  172. package/out/concepts/ForEachStatement__.d.ts +3 -3
  173. package/out/concepts/ForEachStatement__.js +46 -95
  174. package/out/concepts/ForEachStatement__.js.map +1 -1
  175. package/out/concepts/FrontendLibrary__.d.ts +4 -3
  176. package/out/concepts/FrontendLibrary__.js +27 -25
  177. package/out/concepts/FrontendLibrary__.js.map +1 -1
  178. package/out/concepts/FrontendVariable__.d.ts +4 -3
  179. package/out/concepts/FrontendVariable__.js +12 -12
  180. package/out/concepts/FrontendVariable__.js.map +1 -1
  181. package/out/concepts/Frontend__.d.ts +8 -6
  182. package/out/concepts/Frontend__.js +47 -39
  183. package/out/concepts/Frontend__.js.map +1 -1
  184. package/out/concepts/Function__.d.ts +3 -3
  185. package/out/concepts/Function__.js +37 -60
  186. package/out/concepts/Function__.js.map +1 -1
  187. package/out/concepts/Identifier__.d.ts +4 -3
  188. package/out/concepts/Identifier__.js +30 -29
  189. package/out/concepts/Identifier__.js.map +1 -1
  190. package/out/concepts/IfStatement__.d.ts +3 -3
  191. package/out/concepts/IfStatement__.js +21 -51
  192. package/out/concepts/IfStatement__.js.map +1 -1
  193. package/out/concepts/Integration__.d.ts +93 -2
  194. package/out/concepts/Integration__.js +157 -19
  195. package/out/concepts/Integration__.js.map +1 -1
  196. package/out/concepts/InterfaceParam__.d.ts +30 -4
  197. package/out/concepts/InterfaceParam__.js +58 -24
  198. package/out/concepts/InterfaceParam__.js.map +1 -1
  199. package/out/concepts/Interface__.d.ts +31 -5
  200. package/out/concepts/Interface__.js +89 -34
  201. package/out/concepts/Interface__.js.map +1 -1
  202. package/out/concepts/JSBlock__.d.ts +3 -3
  203. package/out/concepts/JSBlock__.js +17 -24
  204. package/out/concepts/JSBlock__.js.map +1 -1
  205. package/out/concepts/JavaLogic__.d.ts +4 -3
  206. package/out/concepts/JavaLogic__.js +22 -21
  207. package/out/concepts/JavaLogic__.js.map +1 -1
  208. package/out/concepts/LogicItem__.d.ts +3 -8
  209. package/out/concepts/LogicItem__.js +23 -30
  210. package/out/concepts/LogicItem__.js.map +1 -1
  211. package/out/concepts/Logic__.d.ts +17 -18
  212. package/out/concepts/Logic__.js +113 -178
  213. package/out/concepts/Logic__.js.map +1 -1
  214. package/out/concepts/MatchCase__.d.ts +3 -3
  215. package/out/concepts/MatchCase__.js +23 -110
  216. package/out/concepts/MatchCase__.js.map +1 -1
  217. package/out/concepts/Match__.d.ts +3 -3
  218. package/out/concepts/Match__.js +20 -64
  219. package/out/concepts/Match__.js.map +1 -1
  220. package/out/concepts/MemberExpression__.d.ts +4 -3
  221. package/out/concepts/MemberExpression__.js +167 -46
  222. package/out/concepts/MemberExpression__.js.map +1 -1
  223. package/out/concepts/MicroApp__.d.ts +3 -2
  224. package/out/concepts/MicroApp__.js +26 -21
  225. package/out/concepts/MicroApp__.js.map +1 -1
  226. package/out/concepts/Module__.d.ts +220 -48
  227. package/out/concepts/Module__.js +265 -66
  228. package/out/concepts/Module__.js.map +1 -1
  229. package/out/concepts/MsgTriggerEvent__.d.ts +4 -3
  230. package/out/concepts/MsgTriggerEvent__.js +16 -18
  231. package/out/concepts/MsgTriggerEvent__.js.map +1 -1
  232. package/out/concepts/MsgTriggerLauncher__.d.ts +4 -3
  233. package/out/concepts/MsgTriggerLauncher__.js +18 -19
  234. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  235. package/out/concepts/Namespace__.d.ts +4 -2
  236. package/out/concepts/Namespace__.js +64 -46
  237. package/out/concepts/Namespace__.js.map +1 -1
  238. package/out/concepts/NewComposite__.d.ts +4 -3
  239. package/out/concepts/NewComposite__.js +71 -133
  240. package/out/concepts/NewComposite__.js.map +1 -1
  241. package/out/concepts/NewList__.d.ts +5 -4
  242. package/out/concepts/NewList__.js +35 -41
  243. package/out/concepts/NewList__.js.map +1 -1
  244. package/out/concepts/NewMap__.d.ts +5 -4
  245. package/out/concepts/NewMap__.js +39 -38
  246. package/out/concepts/NewMap__.js.map +1 -1
  247. package/out/concepts/New__.d.ts +3 -2
  248. package/out/concepts/New__.js +15 -17
  249. package/out/concepts/New__.js.map +1 -1
  250. package/out/concepts/NullLiteral__.d.ts +3 -2
  251. package/out/concepts/NullLiteral__.js +15 -17
  252. package/out/concepts/NullLiteral__.js.map +1 -1
  253. package/out/concepts/NumericLiteral__.d.ts +3 -3
  254. package/out/concepts/NumericLiteral__.js +21 -27
  255. package/out/concepts/NumericLiteral__.js.map +1 -1
  256. package/out/concepts/OqlQueryComponent__.d.ts +3 -3
  257. package/out/concepts/OqlQueryComponent__.js +26 -30
  258. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  259. package/out/concepts/OverriddenLogic__.d.ts +14 -22
  260. package/out/concepts/OverriddenLogic__.js +73 -62
  261. package/out/concepts/OverriddenLogic__.js.map +1 -1
  262. package/out/concepts/Param__.d.ts +3 -3
  263. package/out/concepts/Param__.js +34 -69
  264. package/out/concepts/Param__.js.map +1 -1
  265. package/out/concepts/Point__.d.ts +3 -2
  266. package/out/concepts/Point__.js +16 -16
  267. package/out/concepts/Point__.js.map +1 -1
  268. package/out/concepts/ProcessComponent__.d.ts +3 -2
  269. package/out/concepts/ProcessComponent__.js +24 -22
  270. package/out/concepts/ProcessComponent__.js.map +1 -1
  271. package/out/concepts/ProcessElement__.d.ts +3 -2
  272. package/out/concepts/ProcessElement__.js +61 -46
  273. package/out/concepts/ProcessElement__.js.map +1 -1
  274. package/out/concepts/ProcessOutcome__.d.ts +3 -2
  275. package/out/concepts/ProcessOutcome__.js +17 -18
  276. package/out/concepts/ProcessOutcome__.js.map +1 -1
  277. package/out/concepts/ProcessOutcomes__.d.ts +3 -2
  278. package/out/concepts/ProcessOutcomes__.js +15 -17
  279. package/out/concepts/ProcessOutcomes__.js.map +1 -1
  280. package/out/concepts/Process__.d.ts +5 -7
  281. package/out/concepts/Process__.js +46 -35
  282. package/out/concepts/Process__.js.map +1 -1
  283. package/out/concepts/QueryAggregateExpression__.d.ts +3 -2
  284. package/out/concepts/QueryAggregateExpression__.js +23 -22
  285. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  286. package/out/concepts/QueryFieldExpression__.d.ts +4 -3
  287. package/out/concepts/QueryFieldExpression__.js +21 -20
  288. package/out/concepts/QueryFieldExpression__.js.map +1 -1
  289. package/out/concepts/QueryFromExpression__.d.ts +4 -3
  290. package/out/concepts/QueryFromExpression__.js +23 -22
  291. package/out/concepts/QueryFromExpression__.js.map +1 -1
  292. package/out/concepts/QueryGroupByExpression__.d.ts +3 -2
  293. package/out/concepts/QueryGroupByExpression__.js +18 -19
  294. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  295. package/out/concepts/QueryJoinExpression__.d.ts +4 -3
  296. package/out/concepts/QueryJoinExpression__.js +29 -25
  297. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  298. package/out/concepts/QueryLimitExpression__.d.ts +3 -2
  299. package/out/concepts/QueryLimitExpression__.js +22 -22
  300. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  301. package/out/concepts/QueryOrderByExpression__.d.ts +3 -2
  302. package/out/concepts/QueryOrderByExpression__.js +22 -22
  303. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  304. package/out/concepts/QuerySelectExpression__.d.ts +3 -2
  305. package/out/concepts/QuerySelectExpression__.js +23 -21
  306. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  307. package/out/concepts/Rect__.d.ts +3 -2
  308. package/out/concepts/Rect__.js +20 -18
  309. package/out/concepts/Rect__.js.map +1 -1
  310. package/out/concepts/Return__.d.ts +3 -3
  311. package/out/concepts/Return__.js +29 -45
  312. package/out/concepts/Return__.js.map +1 -1
  313. package/out/concepts/Role__.d.ts +3 -2
  314. package/out/concepts/Role__.js +22 -21
  315. package/out/concepts/Role__.js.map +1 -1
  316. package/out/concepts/SelectMembers__.d.ts +3 -2
  317. package/out/concepts/SelectMembers__.js +20 -21
  318. package/out/concepts/SelectMembers__.js.map +1 -1
  319. package/out/concepts/Slot__.d.ts +3 -2
  320. package/out/concepts/Slot__.js +26 -22
  321. package/out/concepts/Slot__.js.map +1 -1
  322. package/out/concepts/SqlQueryComponent__.d.ts +3 -3
  323. package/out/concepts/SqlQueryComponent__.js +28 -31
  324. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  325. package/out/concepts/Start__.d.ts +3 -2
  326. package/out/concepts/Start__.js +15 -17
  327. package/out/concepts/Start__.js.map +1 -1
  328. package/out/concepts/StringInterpolation__.d.ts +3 -3
  329. package/out/concepts/StringInterpolation__.js +17 -37
  330. package/out/concepts/StringInterpolation__.js.map +1 -1
  331. package/out/concepts/StringLiteral__.d.ts +3 -3
  332. package/out/concepts/StringLiteral__.js +14 -22
  333. package/out/concepts/StringLiteral__.js.map +1 -1
  334. package/out/concepts/StructureProperty__.d.ts +5 -5
  335. package/out/concepts/StructureProperty__.js +33 -40
  336. package/out/concepts/StructureProperty__.js.map +1 -1
  337. package/out/concepts/Structure__.d.ts +3 -12
  338. package/out/concepts/Structure__.js +45 -46
  339. package/out/concepts/Structure__.js.map +1 -1
  340. package/out/concepts/SwitchCase__.d.ts +3 -3
  341. package/out/concepts/SwitchCase__.js +19 -54
  342. package/out/concepts/SwitchCase__.js.map +1 -1
  343. package/out/concepts/SwitchStatement__.d.ts +3 -3
  344. package/out/concepts/SwitchStatement__.js +23 -39
  345. package/out/concepts/SwitchStatement__.js.map +1 -1
  346. package/out/concepts/Theme__.d.ts +3 -2
  347. package/out/concepts/Theme__.js +12 -14
  348. package/out/concepts/Theme__.js.map +1 -1
  349. package/out/concepts/Transactional__.d.ts +3 -2
  350. package/out/concepts/Transactional__.js +18 -17
  351. package/out/concepts/Transactional__.js.map +1 -1
  352. package/out/concepts/TriggerEvent__.d.ts +3 -2
  353. package/out/concepts/TriggerEvent__.js +19 -18
  354. package/out/concepts/TriggerEvent__.js.map +1 -1
  355. package/out/concepts/TriggerLauncher__.d.ts +6 -17
  356. package/out/concepts/TriggerLauncher__.js +26 -63
  357. package/out/concepts/TriggerLauncher__.js.map +1 -1
  358. package/out/concepts/TypeAnnotation__.d.ts +12 -9
  359. package/out/concepts/TypeAnnotation__.js +164 -146
  360. package/out/concepts/TypeAnnotation__.js.map +1 -1
  361. package/out/concepts/TypeParam__.d.ts +3 -3
  362. package/out/concepts/TypeParam__.js +16 -23
  363. package/out/concepts/TypeParam__.js.map +1 -1
  364. package/out/concepts/UnaryExpression__.d.ts +3 -3
  365. package/out/concepts/UnaryExpression__.js +21 -39
  366. package/out/concepts/UnaryExpression__.js.map +1 -1
  367. package/out/concepts/Unparsed__.d.ts +3 -3
  368. package/out/concepts/Unparsed__.js +16 -23
  369. package/out/concepts/Unparsed__.js.map +1 -1
  370. package/out/concepts/UseComponent__.d.ts +3 -2
  371. package/out/concepts/UseComponent__.js +16 -16
  372. package/out/concepts/UseComponent__.js.map +1 -1
  373. package/out/concepts/ValidationRule__.d.ts +3 -2
  374. package/out/concepts/ValidationRule__.js +45 -38
  375. package/out/concepts/ValidationRule__.js.map +1 -1
  376. package/out/concepts/Variable__.d.ts +3 -3
  377. package/out/concepts/Variable__.js +29 -45
  378. package/out/concepts/Variable__.js.map +1 -1
  379. package/out/concepts/ViewBlock__.d.ts +4 -3
  380. package/out/concepts/ViewBlock__.js +20 -19
  381. package/out/concepts/ViewBlock__.js.map +1 -1
  382. package/out/concepts/ViewComponent__.d.ts +32 -31
  383. package/out/concepts/ViewComponent__.js +35 -32
  384. package/out/concepts/ViewComponent__.js.map +1 -1
  385. package/out/concepts/ViewElement__.d.ts +17 -15
  386. package/out/concepts/ViewElement__.js +342 -174
  387. package/out/concepts/ViewElement__.js.map +1 -1
  388. package/out/concepts/View__.d.ts +11 -4
  389. package/out/concepts/View__.js +332 -125
  390. package/out/concepts/View__.js.map +1 -1
  391. package/out/concepts/WhileStatement__.d.ts +3 -3
  392. package/out/concepts/WhileStatement__.js +20 -41
  393. package/out/concepts/WhileStatement__.js.map +1 -1
  394. package/out/concepts/basics/stdlib/nasl.browser.js +1 -0
  395. package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
  396. package/out/concepts/basics/stdlib/nasl.event.js +2 -0
  397. package/out/concepts/basics/stdlib/nasl.event.js.map +1 -1
  398. package/out/concepts/index__.d.ts +0 -1
  399. package/out/concepts/index__.js +0 -1
  400. package/out/concepts/index__.js.map +1 -1
  401. package/out/concepts/types__.d.ts +2 -2
  402. package/out/decorators/index.d.ts +2 -0
  403. package/out/decorators/index.js +12 -8
  404. package/out/decorators/index.js.map +1 -1
  405. package/out/generator/genBundleFiles.d.ts +2 -2
  406. package/out/generator/genBundleFiles.js +100 -4
  407. package/out/generator/genBundleFiles.js.map +1 -1
  408. package/out/generator/genReleaseBody.d.ts +4 -2
  409. package/out/generator/genReleaseBody.js +191 -135
  410. package/out/generator/genReleaseBody.js.map +1 -1
  411. package/out/generator/permission.js +3 -3
  412. package/out/generator/permission.js.map +1 -1
  413. package/out/index.d.ts +0 -1
  414. package/out/index.js +0 -1
  415. package/out/index.js.map +1 -1
  416. package/out/sentry/index.js +2 -2
  417. package/out/sentry/index.js.map +1 -1
  418. package/out/server/createUiTs.js +34 -1
  419. package/out/server/createUiTs.js.map +1 -1
  420. package/out/server/extendBaseNode.js +78 -53
  421. package/out/server/extendBaseNode.js.map +1 -1
  422. package/out/server/formatTsUtils.js +72 -73
  423. package/out/server/formatTsUtils.js.map +1 -1
  424. package/out/server/getConnector.d.ts +3 -0
  425. package/out/server/getConnector.js +38 -1
  426. package/out/server/getConnector.js.map +1 -1
  427. package/out/server/getLogics.js +20 -23
  428. package/out/server/getLogics.js.map +1 -1
  429. package/out/server/getMemberIdentifier.d.ts +1 -0
  430. package/out/server/getMemberIdentifier.js +148 -1
  431. package/out/server/getMemberIdentifier.js.map +1 -1
  432. package/out/server/index.js +2 -0
  433. package/out/server/index.js.map +1 -1
  434. package/out/server/naslServer.d.ts +17 -6
  435. package/out/server/naslServer.js +372 -232
  436. package/out/server/naslServer.js.map +1 -1
  437. package/out/server/translator.js +45 -37
  438. package/out/server/translator.js.map +1 -1
  439. package/out/service/creator/add.configs.js +26 -0
  440. package/out/service/creator/add.configs.js.map +1 -1
  441. package/out/service/creator/errHandles.js +5 -3
  442. package/out/service/creator/errHandles.js.map +1 -1
  443. package/out/service/creator/index.js +13 -0
  444. package/out/service/creator/index.js.map +1 -1
  445. package/out/service/defaultErrorMessage.json +6 -6
  446. package/out/service/storage/jsoner.js +1 -1
  447. package/out/service/storage/jsoner.js.map +1 -1
  448. package/out/templator/genCreateBlock.js +5 -3
  449. package/out/templator/genCreateBlock.js.map +1 -1
  450. package/out/templator/genCurdEditMultipleKeyBlock.js +15 -11
  451. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  452. package/out/templator/genCurdMultipleKeyBlock.js +10 -9
  453. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  454. package/out/templator/genEditTableBlock.d.ts +1 -1
  455. package/out/templator/genEditTableBlock.js +12 -6
  456. package/out/templator/genEditTableBlock.js.map +1 -1
  457. package/out/templator/genEnumSelectBlock.js +2 -2
  458. package/out/templator/genEnumSelectBlock.js.map +1 -1
  459. package/out/templator/genGetBlock.js +1 -1
  460. package/out/templator/genGetBlock.js.map +1 -1
  461. package/out/templator/genGridViewBlock.d.ts +2 -2
  462. package/out/templator/genGridViewBlock.js +20 -7
  463. package/out/templator/genGridViewBlock.js.map +1 -1
  464. package/out/templator/genListViewBlock.d.ts +2 -2
  465. package/out/templator/genListViewBlock.js +13 -5
  466. package/out/templator/genListViewBlock.js.map +1 -1
  467. package/out/templator/genSelectBlock.d.ts +2 -2
  468. package/out/templator/genSelectBlock.js +8 -6
  469. package/out/templator/genSelectBlock.js.map +1 -1
  470. package/out/templator/genTableBlock.d.ts +1 -1
  471. package/out/templator/genTableBlock.js +11 -6
  472. package/out/templator/genTableBlock.js.map +1 -1
  473. package/out/templator/genUpdateBlock.js +5 -3
  474. package/out/templator/genUpdateBlock.js.map +1 -1
  475. package/out/translator/constant.d.ts +6 -0
  476. package/out/translator/constant.js +10 -0
  477. package/out/translator/constant.js.map +1 -0
  478. package/out/translator/index.d.ts +3 -48
  479. package/out/translator/index.js +17 -110
  480. package/out/translator/index.js.map +1 -1
  481. package/out/translator/types.d.ts +32 -0
  482. package/out/translator/{tsp.js → types.js} +1 -1
  483. package/out/translator/types.js.map +1 -0
  484. package/out/translator/utils.d.ts +17 -0
  485. package/out/translator/utils.js +102 -0
  486. package/out/translator/utils.js.map +1 -0
  487. package/out/utils/cookie.d.ts +9 -0
  488. package/out/utils/cookie.js +62 -0
  489. package/out/utils/cookie.js.map +1 -0
  490. package/out/utils/index.d.ts +2 -0
  491. package/out/utils/index.js +2 -0
  492. package/out/utils/index.js.map +1 -1
  493. package/out/utils/logger.d.ts +4 -0
  494. package/out/utils/logger.js +13 -1
  495. package/out/utils/logger.js.map +1 -1
  496. package/out/utils/types.d.ts +1 -0
  497. package/out/utils/types.js +3 -0
  498. package/out/utils/types.js.map +1 -0
  499. package/out/utils/window.d.ts +7 -0
  500. package/out/utils/window.js +14 -0
  501. package/out/utils/window.js.map +1 -0
  502. package/package.json +5 -10
  503. package/sandbox/stdlib/nasl.auth.ts +40 -44
  504. package/sandbox/stdlib/nasl.core.ts +8 -1
  505. package/sandbox/stdlib/nasl.http.ts +22 -22
  506. package/sandbox/stdlib/nasl.oql.ts +2 -0
  507. package/sandbox/stdlib/nasl.ui.definition.ts +2218 -1415
  508. package/src/automate/upgrader/2.20.js +17 -13
  509. package/src/bak/translator.js +53 -1
  510. package/src/breakpoint/generator/AfterStartNode.ts +2 -1
  511. package/src/breakpoint/generator/BeforeEndNode.ts +2 -1
  512. package/src/breakpoint/generator/BreakpointNode.ts +36 -9
  513. package/src/breakpoint/shared/constants.ts +7 -0
  514. package/src/breakpoint/shared/utils.ts +35 -4
  515. package/src/common/BaseNode.ts +140 -81
  516. package/src/common/Command.ts +14 -1
  517. package/src/common/EventEmitter.ts +2 -4
  518. package/src/common/index.ts +0 -1
  519. package/src/concepts/Abort__.ts +20 -22
  520. package/src/concepts/Anchor__.ts +23 -38
  521. package/src/concepts/AnonymousFunction__.ts +39 -63
  522. package/src/concepts/App__.ts +364 -314
  523. package/src/concepts/Argument__.ts +27 -44
  524. package/src/concepts/Assignee__.ts +41 -39
  525. package/src/concepts/AssignmentLine__.ts +20 -23
  526. package/src/concepts/Assignment__.ts +54 -58
  527. package/src/concepts/Attribute__.ts +40 -34
  528. package/src/concepts/AuthInterface__.ts +22 -24
  529. package/src/concepts/AuthLogicForCallInterface__.ts +71 -41
  530. package/src/concepts/AuthLogic__.ts +21 -30
  531. package/src/concepts/BackendVariable__.ts +55 -54
  532. package/src/concepts/Backend__.ts +58 -59
  533. package/src/concepts/BatchAssignment__.ts +88 -78
  534. package/src/concepts/BinaryExpression__.ts +72 -66
  535. package/src/concepts/BindAttribute__.ts +148 -103
  536. package/src/concepts/BindDirective__.ts +45 -41
  537. package/src/concepts/BindEvent__.ts +120 -149
  538. package/src/concepts/BindStyle__.ts +37 -36
  539. package/src/concepts/BooleanLiteral__.ts +22 -28
  540. package/src/concepts/CallAuthInterface__.ts +29 -32
  541. package/src/concepts/CallConnector__.ts +50 -41
  542. package/src/concepts/CallFunction__.ts +45 -77
  543. package/src/concepts/CallInterface__.ts +36 -68
  544. package/src/concepts/CallLogic__.ts +204 -195
  545. package/src/concepts/CallQueryComponent__.ts +156 -88
  546. package/src/concepts/Comment__.ts +22 -29
  547. package/src/concepts/CompletionProperty__.ts +34 -30
  548. package/src/concepts/ConfigGroup__.ts +28 -29
  549. package/src/concepts/ConfigPropertyValue__.ts +22 -23
  550. package/src/concepts/ConfigProperty__.ts +42 -36
  551. package/src/concepts/Configuration__.ts +23 -26
  552. package/src/concepts/Connection__.ts +40 -41
  553. package/src/concepts/ConnectorTrigger__.ts +30 -34
  554. package/src/concepts/Connector__.ts +342 -87
  555. package/src/concepts/Constant__.ts +30 -36
  556. package/src/concepts/DataSource__.ts +37 -33
  557. package/src/concepts/DatabaseTypeAnnotation__.ts +24 -24
  558. package/src/concepts/Destination__.ts +51 -104
  559. package/src/concepts/End__.ts +23 -25
  560. package/src/concepts/EntityIndex__.ts +36 -33
  561. package/src/concepts/EntityProperty__.ts +64 -84
  562. package/src/concepts/Entity__.ts +41 -67
  563. package/src/concepts/EnumItem__.ts +24 -32
  564. package/src/concepts/Enum__.ts +28 -42
  565. package/src/concepts/Event__.ts +33 -33
  566. package/src/concepts/ExternalDestination__.ts +29 -29
  567. package/src/concepts/ForEachStatement__.ts +64 -114
  568. package/src/concepts/FrontendLibrary__.ts +37 -38
  569. package/src/concepts/FrontendVariable__.ts +18 -20
  570. package/src/concepts/Frontend__.ts +66 -62
  571. package/src/concepts/Function__.ts +54 -80
  572. package/src/concepts/Identifier__.ts +37 -34
  573. package/src/concepts/IfStatement__.ts +40 -77
  574. package/src/concepts/Integration__.ts +244 -24
  575. package/src/concepts/InterfaceParam__.ts +69 -33
  576. package/src/concepts/Interface__.ts +104 -46
  577. package/src/concepts/JSBlock__.ts +22 -28
  578. package/src/concepts/JavaLogic__.ts +27 -26
  579. package/src/concepts/LogicItem__.ts +29 -47
  580. package/src/concepts/Logic__.ts +168 -213
  581. package/src/concepts/MatchCase__.ts +38 -128
  582. package/src/concepts/Match__.ts +28 -73
  583. package/src/concepts/MemberExpression__.ts +197 -54
  584. package/src/concepts/MicroApp__.ts +32 -27
  585. package/src/concepts/Module__.ts +567 -164
  586. package/src/concepts/MsgTriggerEvent__.ts +25 -33
  587. package/src/concepts/MsgTriggerLauncher__.ts +27 -30
  588. package/src/concepts/Namespace__.ts +109 -99
  589. package/src/concepts/NewComposite__.ts +130 -161
  590. package/src/concepts/NewList__.ts +45 -51
  591. package/src/concepts/NewMap__.ts +51 -48
  592. package/src/concepts/New__.ts +20 -22
  593. package/src/concepts/NullLiteral__.ts +20 -22
  594. package/src/concepts/NumericLiteral__.ts +26 -31
  595. package/src/concepts/OqlQueryComponent__.ts +33 -34
  596. package/src/concepts/OverriddenLogic__.ts +128 -94
  597. package/src/concepts/Param__.ts +51 -90
  598. package/src/concepts/Point__.ts +22 -22
  599. package/src/concepts/ProcessComponent__.ts +36 -37
  600. package/src/concepts/ProcessElement__.ts +114 -86
  601. package/src/concepts/ProcessOutcome__.ts +22 -23
  602. package/src/concepts/ProcessOutcomes__.ts +20 -22
  603. package/src/concepts/Process__.ts +69 -63
  604. package/src/concepts/QueryAggregateExpression__.ts +28 -27
  605. package/src/concepts/QueryFieldExpression__.ts +26 -25
  606. package/src/concepts/QueryFromExpression__.ts +29 -28
  607. package/src/concepts/QueryGroupByExpression__.ts +22 -23
  608. package/src/concepts/QueryJoinExpression__.ts +62 -41
  609. package/src/concepts/QueryLimitExpression__.ts +27 -27
  610. package/src/concepts/QueryOrderByExpression__.ts +27 -27
  611. package/src/concepts/QuerySelectExpression__.ts +105 -54
  612. package/src/concepts/Rect__.ts +26 -24
  613. package/src/concepts/Return__.ts +42 -67
  614. package/src/concepts/Role__.ts +25 -25
  615. package/src/concepts/SelectMembers__.ts +30 -32
  616. package/src/concepts/Slot__.ts +32 -30
  617. package/src/concepts/SqlQueryComponent__.ts +41 -37
  618. package/src/concepts/Start__.ts +20 -22
  619. package/src/concepts/StringInterpolation__.ts +25 -45
  620. package/src/concepts/StringLiteral__.ts +19 -26
  621. package/src/concepts/StructureProperty__.ts +38 -47
  622. package/src/concepts/Structure__.ts +55 -58
  623. package/src/concepts/SwitchCase__.ts +40 -74
  624. package/src/concepts/SwitchStatement__.ts +29 -44
  625. package/src/concepts/Theme__.ts +18 -21
  626. package/src/concepts/Transactional__.ts +24 -31
  627. package/src/concepts/TriggerEvent__.ts +28 -29
  628. package/src/concepts/TriggerLauncher__.ts +32 -82
  629. package/src/concepts/TypeAnnotation__.ts +214 -200
  630. package/src/concepts/TypeParam__.ts +21 -28
  631. package/src/concepts/UnaryExpression__.ts +26 -45
  632. package/src/concepts/Unparsed__.ts +20 -25
  633. package/src/concepts/UseComponent__.ts +22 -22
  634. package/src/concepts/ValidationRule__.ts +62 -48
  635. package/src/concepts/Variable__.ts +43 -67
  636. package/src/concepts/ViewBlock__.ts +26 -25
  637. package/src/concepts/ViewComponent__.ts +87 -91
  638. package/src/concepts/ViewElement__.ts +483 -277
  639. package/src/concepts/View__.ts +401 -180
  640. package/src/concepts/WhileStatement__.ts +36 -59
  641. package/src/concepts/basics/stdlib/nasl.browser.ts +1 -0
  642. package/src/concepts/basics/stdlib/nasl.event.ts +2 -0
  643. package/src/concepts/index__.ts +0 -1
  644. package/src/concepts/types__.ts +124 -124
  645. package/src/decorators/index.ts +11 -7
  646. package/src/generator/genBundleFiles.ts +104 -4
  647. package/src/generator/genReleaseBody.ts +197 -181
  648. package/src/generator/permission.ts +3 -3
  649. package/src/index.ts +0 -1
  650. package/src/sentry/index.ts +2 -2
  651. package/src/server/createUiTs.ts +30 -1
  652. package/src/server/extendBaseNode.ts +81 -55
  653. package/src/server/formatTsUtils.ts +64 -75
  654. package/src/server/getConnector.ts +63 -27
  655. package/src/server/getLogics.ts +23 -30
  656. package/src/server/getMemberIdentifier.ts +142 -0
  657. package/src/server/index.ts +4 -1
  658. package/src/server/naslServer.ts +367 -250
  659. package/src/server/translator.ts +41 -42
  660. package/src/service/creator/add.configs.js +26 -1
  661. package/src/service/creator/errHandles.js +5 -4
  662. package/src/service/creator/index.js +12 -0
  663. package/src/service/defaultErrorMessage.json +6 -6
  664. package/src/service/storage/jsoner.ts +1 -1
  665. package/src/templator/genCreateBlock.ts +5 -3
  666. package/src/templator/genCurdEditMultipleKeyBlock.ts +15 -11
  667. package/src/templator/genCurdMultipleKeyBlock.ts +10 -9
  668. package/src/templator/genEditTableBlock.ts +12 -7
  669. package/src/templator/genEnumSelectBlock.ts +2 -2
  670. package/src/templator/genGetBlock.ts +6 -6
  671. package/src/templator/genGridViewBlock.ts +22 -9
  672. package/src/templator/genListViewBlock.ts +14 -5
  673. package/src/templator/genSelectBlock.ts +8 -6
  674. package/src/templator/genTableBlock.ts +11 -10
  675. package/src/templator/genUpdateBlock.ts +5 -3
  676. package/src/translator/constant.ts +7 -0
  677. package/src/translator/index.ts +3 -137
  678. package/src/translator/types.ts +40 -0
  679. package/src/translator/utils.ts +104 -0
  680. package/src/utils/cookie.ts +60 -0
  681. package/src/utils/index.ts +2 -0
  682. package/src/utils/logger.ts +13 -0
  683. package/src/utils/types.ts +1 -0
  684. package/src/utils/window.ts +9 -0
  685. package/test/concepts/boolean-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +11 -0
  686. package/test/concepts/boolean-literal/__snapshots__/toJS.spec.ts.snap +11 -0
  687. package/test/concepts/boolean-literal/__snapshots__/toVue.spec.ts.snap +11 -0
  688. package/test/concepts/boolean-literal/constant.ts +5 -0
  689. package/test/concepts/boolean-literal/fixtures/false.json +4 -0
  690. package/test/concepts/boolean-literal/fixtures/true.json +4 -0
  691. package/test/concepts/boolean-literal/toEmbeddedTS.spec.ts +14 -0
  692. package/test/concepts/boolean-literal/toJS.spec.ts +14 -0
  693. package/test/concepts/boolean-literal/toVue.spec.ts +14 -0
  694. package/test/concepts/call-interface/toEmbeddedTS.spec.ts +6 -6
  695. package/test/concepts/call-interface/toJS.spec.ts +6 -6
  696. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +106 -0
  697. package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +45 -0
  698. package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +102 -0
  699. package/test/concepts/call-logic/fixtures/nested-call-logic.json +860 -0
  700. package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +23 -0
  701. package/test/concepts/call-logic/toEmbeddedTS.spec.ts +6 -6
  702. package/test/concepts/call-logic/toJS.spec.ts +6 -6
  703. package/test/concepts/identifier/__snapshots__/toEmbeddedTS.spec.ts.snap +16 -0
  704. package/test/concepts/identifier/__snapshots__/toJS.spec.ts.snap +16 -0
  705. package/test/concepts/identifier/__snapshots__/toVue.spec.ts.snap +16 -0
  706. package/test/concepts/identifier/constant.ts +5 -0
  707. package/test/concepts/identifier/fixtures/data-source.json +5 -0
  708. package/test/concepts/identifier/fixtures/no-namespace.json +4 -0
  709. package/test/concepts/identifier/fixtures/view-variable.json +201 -0
  710. package/test/concepts/identifier/toEmbeddedTS.spec.ts +14 -0
  711. package/test/concepts/identifier/toJS.spec.ts +14 -0
  712. package/test/concepts/identifier/toVue.spec.ts +14 -0
  713. package/test/concepts/match/toEmbeddedTS.spec.ts +6 -6
  714. package/test/concepts/match/toJS.spec.ts +6 -6
  715. package/test/concepts/member-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +21 -0
  716. package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +21 -0
  717. package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +21 -0
  718. package/test/concepts/member-expression/constant.ts +5 -0
  719. package/test/concepts/member-expression/fixtures/app.enums.UserStatusEnum.json +13 -0
  720. package/test/concepts/member-expression/fixtures/elements.table-view.data.json +13 -0
  721. package/test/concepts/member-expression/fixtures/entry.created-by.json +18 -0
  722. package/test/concepts/member-expression/fixtures/nasl.auth.userInfo.json +19 -0
  723. package/test/concepts/member-expression/toEmbeddedTS.spec.ts +14 -0
  724. package/test/concepts/member-expression/toJS.spec.ts +14 -0
  725. package/test/concepts/member-expression/toVue.spec.ts +14 -0
  726. package/test/concepts/null-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -0
  727. package/test/concepts/null-literal/__snapshots__/toJS.spec.ts.snap +6 -0
  728. package/test/concepts/null-literal/__snapshots__/toVue.spec.ts.snap +6 -0
  729. package/test/concepts/null-literal/constant.ts +5 -0
  730. package/test/concepts/null-literal/fixtures/null.json +3 -0
  731. package/test/concepts/null-literal/toEmbeddedTS.spec.ts +14 -0
  732. package/test/concepts/null-literal/toJS.spec.ts +14 -0
  733. package/test/concepts/null-literal/toVue.spec.ts +14 -0
  734. package/test/concepts/numeric-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -0
  735. package/test/concepts/numeric-literal/__snapshots__/toJS.spec.ts.snap +6 -0
  736. package/test/concepts/numeric-literal/__snapshots__/toVue.spec.ts.snap +6 -0
  737. package/test/concepts/numeric-literal/constant.ts +5 -0
  738. package/test/concepts/numeric-literal/fixtures/number.json +10 -0
  739. package/test/concepts/numeric-literal/toEmbeddedTS.spec.ts +14 -0
  740. package/test/concepts/numeric-literal/toJS.spec.ts +14 -0
  741. package/test/concepts/numeric-literal/toVue.spec.ts +14 -0
  742. package/test/concepts/string-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +16 -0
  743. package/test/concepts/string-literal/__snapshots__/toJS.spec.ts.snap +16 -0
  744. package/test/concepts/string-literal/__snapshots__/toVue.spec.ts.snap +16 -0
  745. package/test/concepts/string-literal/constant.ts +5 -0
  746. package/test/concepts/string-literal/fixtures/escape.json +4 -0
  747. package/test/concepts/string-literal/fixtures/space.json +4 -0
  748. package/test/concepts/string-literal/fixtures/string.json +4 -0
  749. package/test/concepts/string-literal/toEmbeddedTS.spec.ts +14 -0
  750. package/test/concepts/string-literal/toJS.spec.ts +14 -0
  751. package/test/concepts/string-literal/toVue.spec.ts +14 -0
  752. package/test/concepts/utils.ts +46 -43
  753. package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +11 -0
  754. package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +10 -0
  755. package/test/concepts/validation-rule/fixtures/argument-without-keyword.json +34 -0
  756. package/test/concepts/validation-rule/fixtures/empty-rule.json +9 -0
  757. package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +6 -6
  758. package/test/concepts/validation-rule/toJS.spec.ts +6 -6
  759. package/test/concepts/validation-rule/validation-rule.spec.ts +15 -0
  760. package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +592 -0
  761. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +308 -0
  762. package/test/concepts/view-element/fixtures/default-login.json +333 -0
  763. package/test/concepts/view-element/fixtures/default-not-found.json +313 -313
  764. package/test/concepts/view-element/fixtures/with-role-auth.json +148 -0
  765. package/test/concepts/view-element/fixtures/with-table.json +3473 -0
  766. package/test/concepts/view-element/toEmbeddedTS.spec.ts +6 -6
  767. package/test/concepts/view-element/toVue.spec.ts +6 -6
  768. package/ts-worker/package-lock.json +6663 -101
  769. package/ts-worker/webpack.config.js +1 -1
  770. package/out/common/classMap.d.ts +0 -4
  771. package/out/common/classMap.js +0 -5
  772. package/out/common/classMap.js.map +0 -1
  773. package/out/concepts/DataElement__.d.ts +0 -46
  774. package/out/concepts/DataElement__.js +0 -118
  775. package/out/concepts/DataElement__.js.map +0 -1
  776. package/out/natural/RequirementAnalyzer.d.ts +0 -22
  777. package/out/natural/RequirementAnalyzer.js +0 -196
  778. package/out/natural/RequirementAnalyzer.js.map +0 -1
  779. package/out/natural/RequirementExecutor.d.ts +0 -51
  780. package/out/natural/RequirementExecutor.js +0 -692
  781. package/out/natural/RequirementExecutor.js.map +0 -1
  782. package/out/natural/componentData.d.ts +0 -31
  783. package/out/natural/componentData.js +0 -85
  784. package/out/natural/componentData.js.map +0 -1
  785. package/out/natural/genNaturalTS.d.ts +0 -3
  786. package/out/natural/genNaturalTS.js +0 -76
  787. package/out/natural/genNaturalTS.js.map +0 -1
  788. package/out/natural/index.d.ts +0 -4
  789. package/out/natural/index.js +0 -21
  790. package/out/natural/index.js.map +0 -1
  791. package/out/natural/knowledgeMap.d.ts +0 -4
  792. package/out/natural/knowledgeMap.js +0 -40
  793. package/out/natural/knowledgeMap.js.map +0 -1
  794. package/out/natural/naslStdlibMap.d.ts +0 -2
  795. package/out/natural/naslStdlibMap.js +0 -26
  796. package/out/natural/naslStdlibMap.js.map +0 -1
  797. package/out/natural/transformTSCode.d.ts +0 -7
  798. package/out/natural/transformTSCode.js +0 -760
  799. package/out/natural/transformTSCode.js.map +0 -1
  800. package/out/translator/lsp.d.ts +0 -45
  801. package/out/translator/lsp.js +0 -6
  802. package/out/translator/lsp.js.map +0 -1
  803. package/out/translator/tsp.d.ts +0 -12
  804. package/out/translator/tsp.js.map +0 -1
  805. package/sandbox-natural/stdlib/nasl.core.ts +0 -36
  806. package/sandbox-natural/stdlib/nasl.oql.ts +0 -8
  807. package/sandbox-natural/stdlib/nasl.ui.ts +0 -56
  808. package/sandbox-natural/stdlib/nasl.util.ts +0 -26
  809. package/sandbox-natural/tsconfig.json +0 -12
  810. package/src/common/classMap.ts +0 -3
  811. package/src/concepts/DataElement__.ts +0 -131
  812. package/src/natural/RequirementAnalyzer.ts +0 -208
  813. package/src/natural/RequirementExecutor.ts +0 -685
  814. package/src/natural/componentData.ts +0 -81
  815. package/src/natural/genNaturalTS.ts +0 -77
  816. package/src/natural/index.ts +0 -4
  817. package/src/natural/knowledgeMap.ts +0 -39
  818. package/src/natural/naslStdlibMap.ts +0 -24
  819. package/src/natural/transformTSCode.ts +0 -692
  820. package/src/test/examples/app1.json +0 -1406
  821. package/src/test/fixtures/env.ts +0 -19
  822. package/src/test/integration/connect-create-file.ts +0 -14
  823. package/src/test/integration/connect-file.ts +0 -24
  824. package/src/test/integration/node-nasl-server.ts +0 -14
  825. package/src/test/units/baseTypes/Assignment.spec.ts +0 -20
  826. package/src/test/units/baseTypes/CallLogic.spec.ts +0 -22
  827. package/src/test/units/baseTypes/StringLiteral.spec.ts +0 -60
  828. package/src/test/units/baseTypes/new.spec.ts +0 -13
  829. package/src/test/units/common/Vertex.spec.ts +0 -23
  830. package/src/test/units/data/Entity.spec.ts +0 -10
  831. package/src/test/units/login.spec.ts +0 -10
  832. package/src/test/units/page/Block.spec.ts +0 -15
  833. package/src/test/units/page/Element.spec.ts +0 -45
  834. package/src/test/units/page/example.dashboard.html +0 -46
  835. package/src/test/units/page/example.view1.html +0 -63
  836. package/src/test/units/temp/temp.spec.ts +0 -66
  837. package/src/translator/lsp.ts +0 -50
  838. package/src/translator/tsp.ts +0 -14
@@ -1,4 +1,3 @@
1
- import { v4 as uuidv4 } from 'uuid';
2
1
  import { queryNodeByPath } from '../service/storage/jsoner';
3
2
  import { getNaslNodeByNodeCallee, getNodeByNodeCallee } from '../automate/engine/utils';
4
3
  import ConfigProperty from './ConfigProperty__';
@@ -6,16 +5,30 @@ import TypeAnnotation from './TypeAnnotation__';
6
5
  import View from './View__';
7
6
  // import CallLogic from './CallLogic__';
8
7
 
9
- //= ===============================================================================
8
+ export interface AssetsInfo {
9
+ js: Array<string>;
10
+ css: Array<string>;
11
+ names?: Array<string>;
12
+ }
13
+ interface MessageData {
14
+ logicName: string;
15
+ param?: string;
16
+ interfaceName?: string;
17
+ message: string;
18
+ type: number;
19
+ resultName?: string;
20
+ }
21
+
22
+ //================================================================================
10
23
  // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
11
24
  // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
12
- //= ===============================================================================
25
+ //================================================================================
13
26
  import { EventPayload, Params } from '../common/EventEmitter';
14
- import { concept, excludedInJSON, property } from '../decorators';
27
+ import { concept, excludedInJSON, property, className } from '../decorators';
15
28
 
16
29
  import * as utils from '../utils';
30
+ import { v4 as uuidv4 } from 'uuid';
17
31
  import BaseNode from '../common/BaseNode';
18
- import classMap from '../common/classMap';
19
32
  import DataSource from './DataSource__';
20
33
  import Structure from './Structure__';
21
34
  import Enum from './Enum__';
@@ -36,84 +49,84 @@ import AuthLogicForCallInterface from './AuthLogicForCallInterface__';
36
49
  import Connection from './Connection__';
37
50
  import TriggerLauncher from './TriggerLauncher__';
38
51
 
39
- export interface AssetsInfo {
40
- js: Array<string>;
41
- css: Array<string>;
42
- names?: Array<string>;
43
- }
44
- interface MessageData {
45
- logicName: string;
46
- param?: string;
47
- interfaceName?: string;
48
- message: string;
49
- type: number;
50
- resultName?: string;
51
- }
52
-
53
52
  /**
54
53
  * 应用
55
54
  */
55
+ @className
56
56
  @concept('应用')
57
+ // @ts-ignore
57
58
  export class App extends BaseNode {
59
+ /** 类名 */
60
+ static readonly ConceptName = 'App';
61
+
58
62
  /**
59
63
  * 应用 Id
60
64
  */
61
65
  @property()
62
- id: string = undefined;
66
+ // @ts-ignore
67
+ id!: string;
63
68
 
64
69
  /**
65
70
  * 产品概念
66
71
  */
67
- @property()
68
- concept: 'App' = 'App';
72
+ // @ts-ignore
73
+ readonly concept!: 'App';
69
74
 
70
75
  /**
71
76
  * IDE 版本
72
77
  */
73
78
  @property()
74
- ideVersion: string = undefined;
79
+ // @ts-ignore
80
+ ideVersion!: string;
75
81
 
76
82
  /**
77
83
  * 应用标识
78
84
  */
79
85
  @property()
80
- name: string = undefined;
86
+ // @ts-ignore
87
+ name!: string;
81
88
 
82
89
  /**
83
90
  * 应用标题
84
91
  */
85
92
  @property()
86
- title: string = undefined;
93
+ // @ts-ignore
94
+ title!: string;
87
95
 
88
96
  /**
89
97
  * 应用图标
90
98
  */
91
99
  @property()
92
- icon: string = undefined;
100
+ // @ts-ignore
101
+ icon!: string;
93
102
 
94
103
  /**
95
104
  * 应用描述
96
105
  */
97
106
  @property()
98
- desc: string = undefined;
107
+ // @ts-ignore
108
+ desc!: string;
99
109
 
100
110
  /**
101
111
  * 域名
102
112
  */
103
113
  @property()
104
- dnsAddr: string = undefined;
114
+ // @ts-ignore
115
+ dnsAddr!: string;
105
116
 
106
117
  /**
107
118
  * 是否有用户中心
108
119
  */
109
120
  @property()
110
- hasUserCenter: boolean = undefined;
121
+ // @ts-ignore
122
+ hasUserCenter!: boolean;
111
123
 
112
124
  /**
113
125
  * 是否有权限
114
126
  */
115
127
  @property()
116
- hasAuth: boolean = undefined;
128
+ // @ts-ignore
129
+ hasAuth!: boolean;
117
130
 
118
131
  /**
119
132
  * 数据源列表
@@ -140,7 +153,7 @@ export class App extends BaseNode {
140
153
  logics: Array<Logic> = [];
141
154
 
142
155
  /**
143
- * 逻辑列表
156
+ * 覆写逻辑列表
144
157
  */
145
158
  @property('OverriddenLogic')
146
159
  overriddenLogics: Array<OverriddenLogic> = [];
@@ -152,7 +165,7 @@ export class App extends BaseNode {
152
165
  interfaces: Array<Interface | AuthInterface> = [];
153
166
 
154
167
  /**
155
- * 端列表
168
+ * 前端列表
156
169
  */
157
170
  @property('Frontend')
158
171
  frontends: Array<Frontend> = [];
@@ -197,7 +210,8 @@ export class App extends BaseNode {
197
210
  * 集成
198
211
  */
199
212
  @property('Integration')
200
- integration: Integration = undefined;
213
+ // @ts-ignore
214
+ integration!: Integration;
201
215
 
202
216
  /**
203
217
  * 暴露接口的接口鉴权
@@ -227,16 +241,11 @@ export class App extends BaseNode {
227
241
  * @param source 需要合并的部分参数
228
242
  */
229
243
  constructor(source?: Partial<App>) {
230
- // @ts-ignore
231
- source = { ...App.getDefaultOptions(), ...source };
244
+ source = Object.assign({}, App.getDefaultOptions(), source);
232
245
  super(source);
233
246
  super.subConstructor(source);
234
247
  }
235
248
 
236
- getClassName() {
237
- return 'App';
238
- }
239
-
240
249
  static from(source: any, parentNode?: any, parentKey?: string): App {
241
250
  return super.from(source, parentNode, parentKey) as App;
242
251
  }
@@ -252,7 +261,6 @@ export class App extends BaseNode {
252
261
  }
253
262
  return params;
254
263
  }
255
-
256
264
  /**
257
265
  * 设置集成
258
266
  */
@@ -304,7 +312,7 @@ export class App extends BaseNode {
304
312
  name: this.getDataSourceUniqueName(),
305
313
  },
306
314
  this,
307
- 'dataSources'
315
+ 'dataSources',
308
316
  );
309
317
  } else if (typeof options === 'string') {
310
318
  dataSource = DataSource.from(
@@ -313,7 +321,7 @@ export class App extends BaseNode {
313
321
  name: options,
314
322
  },
315
323
  this,
316
- 'dataSources'
324
+ 'dataSources',
317
325
  );
318
326
  } else if (options instanceof DataSource) {
319
327
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -326,7 +334,7 @@ export class App extends BaseNode {
326
334
  ...options,
327
335
  },
328
336
  this,
329
- 'dataSources'
337
+ 'dataSources',
330
338
  );
331
339
  }
332
340
  this.dataSources.splice(index, 0, dataSource);
@@ -421,7 +429,6 @@ export class App extends BaseNode {
421
429
  const excludedSet = new Set(excludedList);
422
430
  return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
423
431
  }
424
-
425
432
  getStructureUniqueName(name = 'Structure1') {
426
433
  return utils.unique(name, this.getStructureExistingNames(), undefined, true);
427
434
  }
@@ -458,7 +465,7 @@ export class App extends BaseNode {
458
465
  name: this.getStructureUniqueName(),
459
466
  },
460
467
  this,
461
- 'structures'
468
+ 'structures',
462
469
  );
463
470
  } else if (typeof options === 'string') {
464
471
  structure = Structure.from(
@@ -467,7 +474,7 @@ export class App extends BaseNode {
467
474
  name: options,
468
475
  },
469
476
  this,
470
- 'structures'
477
+ 'structures',
471
478
  );
472
479
  } else if (options instanceof Structure) {
473
480
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -480,7 +487,7 @@ export class App extends BaseNode {
480
487
  ...options,
481
488
  },
482
489
  this,
483
- 'structures'
490
+ 'structures',
484
491
  );
485
492
  }
486
493
  this.structures.splice(index, 0, structure);
@@ -575,7 +582,6 @@ export class App extends BaseNode {
575
582
  const excludedSet = new Set(excludedList);
576
583
  return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
577
584
  }
578
-
579
585
  getEnumUniqueName(name = 'Enum1') {
580
586
  return utils.unique(name, this.getEnumExistingNames(), undefined, true);
581
587
  }
@@ -612,7 +618,7 @@ export class App extends BaseNode {
612
618
  name: this.getEnumUniqueName(),
613
619
  },
614
620
  this,
615
- 'enums'
621
+ 'enums',
616
622
  );
617
623
  } else if (typeof options === 'string') {
618
624
  enumeration = Enum.from(
@@ -621,7 +627,7 @@ export class App extends BaseNode {
621
627
  name: options,
622
628
  },
623
629
  this,
624
- 'enums'
630
+ 'enums',
625
631
  );
626
632
  } else if (options instanceof Enum) {
627
633
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -634,7 +640,7 @@ export class App extends BaseNode {
634
640
  ...options,
635
641
  },
636
642
  this,
637
- 'enums'
643
+ 'enums',
638
644
  );
639
645
  }
640
646
  this.enums.splice(index, 0, enumeration);
@@ -729,7 +735,6 @@ export class App extends BaseNode {
729
735
  const excludedSet = new Set(excludedList);
730
736
  return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
731
737
  }
732
-
733
738
  getLogicUniqueName(name = 'logic1') {
734
739
  return utils.unique(name, this.getLogicExistingNames(), undefined, true);
735
740
  }
@@ -766,7 +771,7 @@ export class App extends BaseNode {
766
771
  name: this.getLogicUniqueName(),
767
772
  },
768
773
  this,
769
- 'logics'
774
+ 'logics',
770
775
  );
771
776
  } else if (typeof options === 'string') {
772
777
  logic = Logic.from(
@@ -775,7 +780,7 @@ export class App extends BaseNode {
775
780
  name: options,
776
781
  },
777
782
  this,
778
- 'logics'
783
+ 'logics',
779
784
  );
780
785
  } else if (options instanceof Logic) {
781
786
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -788,7 +793,7 @@ export class App extends BaseNode {
788
793
  ...options,
789
794
  },
790
795
  this,
791
- 'logics'
796
+ 'logics',
792
797
  );
793
798
  }
794
799
  this.logics.splice(index, 0, logic);
@@ -880,23 +885,23 @@ export class App extends BaseNode {
880
885
  }
881
886
 
882
887
  /**
883
- * 插入开放接口的鉴权逻辑
888
+ * 插入鉴权逻辑
884
889
  * @internal
885
- * @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
890
+ * @param name 鉴权逻辑名称,如果不填会自动生成一个唯一名称
886
891
  */
887
892
  _insertAuthLogicInAuthLogicsAt(name: string, index: number): AuthLogic;
888
893
 
889
894
  /**
890
- * 插入开放接口的鉴权逻辑
895
+ * 插入鉴权逻辑
891
896
  * @internal
892
- * @param authLogicOptions 开放接口的鉴权逻辑参数
897
+ * @param authLogicOptions 鉴权逻辑参数
893
898
  */
894
899
  _insertAuthLogicInAuthLogicsAt(authLogicOptions: Partial<AuthLogic>, index: number): AuthLogic;
895
900
 
896
901
  /**
897
- * 插入开放接口的鉴权逻辑
902
+ * 插入鉴权逻辑
898
903
  * @internal
899
- * @param authLogic 已有的开放接口的鉴权逻辑实例
904
+ * @param authLogic 已有的鉴权逻辑实例
900
905
  */
901
906
  _insertAuthLogicInAuthLogicsAt(authLogic: AuthLogic, index: number): AuthLogic;
902
907
 
@@ -911,7 +916,7 @@ export class App extends BaseNode {
911
916
  name: this.getAuthLogicUniqueName(),
912
917
  },
913
918
  this,
914
- 'authLogics'
919
+ 'authLogics',
915
920
  );
916
921
  } else if (typeof options === 'string') {
917
922
  authLogic = AuthLogic.from(
@@ -920,7 +925,7 @@ export class App extends BaseNode {
920
925
  name: options,
921
926
  },
922
927
  this,
923
- 'authLogics'
928
+ 'authLogics',
924
929
  );
925
930
  } else if (options instanceof AuthLogic) {
926
931
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -933,7 +938,7 @@ export class App extends BaseNode {
933
938
  ...options,
934
939
  },
935
940
  this,
936
- 'authLogics'
941
+ 'authLogics',
937
942
  );
938
943
  }
939
944
  this.authLogics.splice(index, 0, authLogic);
@@ -941,20 +946,20 @@ export class App extends BaseNode {
941
946
  }
942
947
 
943
948
  /**
944
- * 插入开放接口的鉴权逻辑
945
- * @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
949
+ * 插入鉴权逻辑
950
+ * @param name 鉴权逻辑名称,如果不填会自动生成一个唯一名称
946
951
  */
947
952
  insertAuthLogicInAuthLogicsAt(name: string, index: number): AuthLogic;
948
953
 
949
954
  /**
950
- * 插入开放接口的鉴权逻辑
951
- * @param authLogicOptions 开放接口的鉴权逻辑参数
955
+ * 插入鉴权逻辑
956
+ * @param authLogicOptions 鉴权逻辑参数
952
957
  */
953
958
  insertAuthLogicInAuthLogicsAt(authLogicOptions: Partial<AuthLogic>, index: number): AuthLogic;
954
959
 
955
960
  /**
956
- * 插入开放接口的鉴权逻辑
957
- * @param authLogic 已有的开放接口的鉴权逻辑实例
961
+ * 插入鉴权逻辑
962
+ * @param authLogic 已有的鉴权逻辑实例
958
963
  */
959
964
  insertAuthLogicInAuthLogicsAt(authLogic: AuthLogic, index: number): AuthLogic;
960
965
 
@@ -969,23 +974,23 @@ export class App extends BaseNode {
969
974
  }
970
975
 
971
976
  /**
972
- * 添加开放接口的鉴权逻辑
977
+ * 添加鉴权逻辑
973
978
  * @internal
974
- * @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
979
+ * @param name 鉴权逻辑名称,如果不填会自动生成一个唯一名称
975
980
  */
976
981
  _addAuthLogicInAuthLogics(name?: string): AuthLogic;
977
982
 
978
983
  /**
979
- * 添加开放接口的鉴权逻辑
984
+ * 添加鉴权逻辑
980
985
  * @internal
981
- * @param authLogicOptions 开放接口的鉴权逻辑参数
986
+ * @param authLogicOptions 鉴权逻辑参数
982
987
  */
983
988
  _addAuthLogicInAuthLogics(authLogicOptions: Partial<AuthLogic>): AuthLogic;
984
989
 
985
990
  /**
986
- * 添加开放接口的鉴权逻辑
991
+ * 添加鉴权逻辑
987
992
  * @internal
988
- * @param authLogic 已有的开放接口的鉴权逻辑实例
993
+ * @param authLogic 已有的鉴权逻辑实例
989
994
  */
990
995
  _addAuthLogicInAuthLogics(authLogic: AuthLogic): AuthLogic;
991
996
 
@@ -995,21 +1000,21 @@ export class App extends BaseNode {
995
1000
  }
996
1001
 
997
1002
  /**
998
- * 添加开放接口的鉴权逻辑
1003
+ * 添加鉴权逻辑
999
1004
  * @internal
1000
- * @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
1005
+ * @param name 鉴权逻辑名称,如果不填会自动生成一个唯一名称
1001
1006
  */
1002
1007
  addAuthLogicInAuthLogics(name?: string): AuthLogic;
1003
1008
 
1004
1009
  /**
1005
- * 添加开放接口的鉴权逻辑
1006
- * @param authLogicOptions 开放接口的鉴权逻辑参数
1010
+ * 添加鉴权逻辑
1011
+ * @param authLogicOptions 鉴权逻辑参数
1007
1012
  */
1008
1013
  addAuthLogicInAuthLogics(authLogicOptions: Partial<AuthLogic>): AuthLogic;
1009
1014
 
1010
1015
  /**
1011
- * 添加开放接口的鉴权逻辑
1012
- * @param authLogic 已有的开放接口的鉴权逻辑实例
1016
+ * 添加鉴权逻辑
1017
+ * @param authLogic 已有的鉴权逻辑实例
1013
1018
  */
1014
1019
  addAuthLogicInAuthLogics(authLogic: AuthLogic): AuthLogic;
1015
1020
 
@@ -1026,31 +1031,32 @@ export class App extends BaseNode {
1026
1031
 
1027
1032
  getOverriddenLogicExistingNames(excludedList: Array<OverriddenLogic> = []) {
1028
1033
  const excludedSet = new Set(excludedList);
1029
- return ((this.overriddenLogics as OverriddenLogic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1034
+ return ((this.overriddenLogics as OverriddenLogic[]) || [])
1035
+ .filter((item) => !excludedSet.has(item))
1036
+ .map((item) => item.name);
1030
1037
  }
1031
-
1032
1038
  getOverriddenLogicUniqueName(name = 'overriddenLogic1') {
1033
1039
  return utils.unique(name, this.getOverriddenLogicExistingNames(), undefined, true);
1034
1040
  }
1035
1041
 
1036
1042
  /**
1037
- * 插入逻辑
1043
+ * 插入覆写逻辑
1038
1044
  * @internal
1039
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
1045
+ * @param name 覆写逻辑名称,如果不填会自动生成一个唯一名称
1040
1046
  */
1041
1047
  _insertOverriddenLogicAt(name: string, index: number): OverriddenLogic;
1042
1048
 
1043
1049
  /**
1044
- * 插入逻辑
1050
+ * 插入覆写逻辑
1045
1051
  * @internal
1046
- * @param overriddenLogicOptions 逻辑参数
1052
+ * @param overriddenLogicOptions 覆写逻辑参数
1047
1053
  */
1048
1054
  _insertOverriddenLogicAt(overriddenLogicOptions: Partial<OverriddenLogic>, index: number): OverriddenLogic;
1049
1055
 
1050
1056
  /**
1051
- * 插入逻辑
1057
+ * 插入覆写逻辑
1052
1058
  * @internal
1053
- * @param overriddenLogic 已有的逻辑实例
1059
+ * @param overriddenLogic 已有的覆写逻辑实例
1054
1060
  */
1055
1061
  _insertOverriddenLogicAt(overriddenLogic: OverriddenLogic, index: number): OverriddenLogic;
1056
1062
 
@@ -1065,7 +1071,7 @@ export class App extends BaseNode {
1065
1071
  name: this.getOverriddenLogicUniqueName(),
1066
1072
  },
1067
1073
  this,
1068
- 'overriddenLogics'
1074
+ 'overriddenLogics',
1069
1075
  );
1070
1076
  } else if (typeof options === 'string') {
1071
1077
  overriddenLogic = OverriddenLogic.from(
@@ -1074,7 +1080,7 @@ export class App extends BaseNode {
1074
1080
  name: options,
1075
1081
  },
1076
1082
  this,
1077
- 'overriddenLogics'
1083
+ 'overriddenLogics',
1078
1084
  );
1079
1085
  } else if (options instanceof OverriddenLogic) {
1080
1086
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1087,7 +1093,7 @@ export class App extends BaseNode {
1087
1093
  ...options,
1088
1094
  },
1089
1095
  this,
1090
- 'overriddenLogics'
1096
+ 'overriddenLogics',
1091
1097
  );
1092
1098
  }
1093
1099
  this.overriddenLogics.splice(index, 0, overriddenLogic);
@@ -1095,20 +1101,20 @@ export class App extends BaseNode {
1095
1101
  }
1096
1102
 
1097
1103
  /**
1098
- * 插入逻辑
1099
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
1104
+ * 插入覆写逻辑
1105
+ * @param name 覆写逻辑名称,如果不填会自动生成一个唯一名称
1100
1106
  */
1101
1107
  insertOverriddenLogicAt(name: string, index: number): OverriddenLogic;
1102
1108
 
1103
1109
  /**
1104
- * 插入逻辑
1105
- * @param overriddenLogicOptions 逻辑参数
1110
+ * 插入覆写逻辑
1111
+ * @param overriddenLogicOptions 覆写逻辑参数
1106
1112
  */
1107
1113
  insertOverriddenLogicAt(overriddenLogicOptions: Partial<OverriddenLogic>, index: number): OverriddenLogic;
1108
1114
 
1109
1115
  /**
1110
- * 插入逻辑
1111
- * @param overriddenLogic 已有的逻辑实例
1116
+ * 插入覆写逻辑
1117
+ * @param overriddenLogic 已有的覆写逻辑实例
1112
1118
  */
1113
1119
  insertOverriddenLogicAt(overriddenLogic: OverriddenLogic, index: number): OverriddenLogic;
1114
1120
 
@@ -1123,23 +1129,23 @@ export class App extends BaseNode {
1123
1129
  }
1124
1130
 
1125
1131
  /**
1126
- * 添加逻辑
1132
+ * 添加覆写逻辑
1127
1133
  * @internal
1128
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
1134
+ * @param name 覆写逻辑名称,如果不填会自动生成一个唯一名称
1129
1135
  */
1130
1136
  _addOverriddenLogic(name?: string): OverriddenLogic;
1131
1137
 
1132
1138
  /**
1133
- * 添加逻辑
1139
+ * 添加覆写逻辑
1134
1140
  * @internal
1135
- * @param overriddenLogicOptions 逻辑参数
1141
+ * @param overriddenLogicOptions 覆写逻辑参数
1136
1142
  */
1137
1143
  _addOverriddenLogic(overriddenLogicOptions: Partial<OverriddenLogic>): OverriddenLogic;
1138
1144
 
1139
1145
  /**
1140
- * 添加逻辑
1146
+ * 添加覆写逻辑
1141
1147
  * @internal
1142
- * @param overriddenLogic 已有的逻辑实例
1148
+ * @param overriddenLogic 已有的覆写逻辑实例
1143
1149
  */
1144
1150
  _addOverriddenLogic(overriddenLogic: OverriddenLogic): OverriddenLogic;
1145
1151
 
@@ -1149,21 +1155,21 @@ export class App extends BaseNode {
1149
1155
  }
1150
1156
 
1151
1157
  /**
1152
- * 添加逻辑
1158
+ * 添加覆写逻辑
1153
1159
  * @internal
1154
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
1160
+ * @param name 覆写逻辑名称,如果不填会自动生成一个唯一名称
1155
1161
  */
1156
1162
  addOverriddenLogic(name?: string): OverriddenLogic;
1157
1163
 
1158
1164
  /**
1159
- * 添加逻辑
1160
- * @param overriddenLogicOptions 逻辑参数
1165
+ * 添加覆写逻辑
1166
+ * @param overriddenLogicOptions 覆写逻辑参数
1161
1167
  */
1162
1168
  addOverriddenLogic(overriddenLogicOptions: Partial<OverriddenLogic>): OverriddenLogic;
1163
1169
 
1164
1170
  /**
1165
- * 添加逻辑
1166
- * @param overriddenLogic 已有的逻辑实例
1171
+ * 添加覆写逻辑
1172
+ * @param overriddenLogic 已有的覆写逻辑实例
1167
1173
  */
1168
1174
  addOverriddenLogic(overriddenLogic: OverriddenLogic): OverriddenLogic;
1169
1175
 
@@ -1182,7 +1188,6 @@ export class App extends BaseNode {
1182
1188
  const excludedSet = new Set(excludedList);
1183
1189
  return ((this.interfaces as Interface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1184
1190
  }
1185
-
1186
1191
  getInterfaceUniqueName(name = 'Interface1') {
1187
1192
  return utils.unique(name, this.getInterfaceExistingNames(), undefined, true);
1188
1193
  }
@@ -1219,7 +1224,7 @@ export class App extends BaseNode {
1219
1224
  name: this.getInterfaceUniqueName(),
1220
1225
  },
1221
1226
  this,
1222
- 'interfaces'
1227
+ 'interfaces',
1223
1228
  );
1224
1229
  } else if (typeof options === 'string') {
1225
1230
  itface = Interface.from(
@@ -1228,7 +1233,7 @@ export class App extends BaseNode {
1228
1233
  name: options,
1229
1234
  },
1230
1235
  this,
1231
- 'interfaces'
1236
+ 'interfaces',
1232
1237
  );
1233
1238
  } else if (options instanceof Interface) {
1234
1239
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1241,7 +1246,7 @@ export class App extends BaseNode {
1241
1246
  ...options,
1242
1247
  },
1243
1248
  this,
1244
- 'interfaces'
1249
+ 'interfaces',
1245
1250
  );
1246
1251
  }
1247
1252
  this.interfaces.splice(index, 0, itface);
@@ -1333,23 +1338,23 @@ export class App extends BaseNode {
1333
1338
  }
1334
1339
 
1335
1340
  /**
1336
- * 插入接口
1341
+ * 插入鉴权接口
1337
1342
  * @internal
1338
- * @param name 接口名称,如果不填会自动生成一个唯一名称
1343
+ * @param name 鉴权接口名称,如果不填会自动生成一个唯一名称
1339
1344
  */
1340
1345
  _insertAuthInterfaceInInterfacesAt(name: string, index: number): AuthInterface;
1341
1346
 
1342
1347
  /**
1343
- * 插入接口
1348
+ * 插入鉴权接口
1344
1349
  * @internal
1345
- * @param itfaceOptions 接口参数
1350
+ * @param itfaceOptions 鉴权接口参数
1346
1351
  */
1347
1352
  _insertAuthInterfaceInInterfacesAt(itfaceOptions: Partial<AuthInterface>, index: number): AuthInterface;
1348
1353
 
1349
1354
  /**
1350
- * 插入接口
1355
+ * 插入鉴权接口
1351
1356
  * @internal
1352
- * @param itface 已有的接口实例
1357
+ * @param itface 已有的鉴权接口实例
1353
1358
  */
1354
1359
  _insertAuthInterfaceInInterfacesAt(itface: AuthInterface, index: number): AuthInterface;
1355
1360
 
@@ -1364,7 +1369,7 @@ export class App extends BaseNode {
1364
1369
  name: this.getAuthInterfaceUniqueName(),
1365
1370
  },
1366
1371
  this,
1367
- 'interfaces'
1372
+ 'interfaces',
1368
1373
  );
1369
1374
  } else if (typeof options === 'string') {
1370
1375
  itface = AuthInterface.from(
@@ -1373,7 +1378,7 @@ export class App extends BaseNode {
1373
1378
  name: options,
1374
1379
  },
1375
1380
  this,
1376
- 'interfaces'
1381
+ 'interfaces',
1377
1382
  );
1378
1383
  } else if (options instanceof AuthInterface) {
1379
1384
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1386,7 +1391,7 @@ export class App extends BaseNode {
1386
1391
  ...options,
1387
1392
  },
1388
1393
  this,
1389
- 'interfaces'
1394
+ 'interfaces',
1390
1395
  );
1391
1396
  }
1392
1397
  this.interfaces.splice(index, 0, itface);
@@ -1394,20 +1399,20 @@ export class App extends BaseNode {
1394
1399
  }
1395
1400
 
1396
1401
  /**
1397
- * 插入接口
1398
- * @param name 接口名称,如果不填会自动生成一个唯一名称
1402
+ * 插入鉴权接口
1403
+ * @param name 鉴权接口名称,如果不填会自动生成一个唯一名称
1399
1404
  */
1400
1405
  insertAuthInterfaceInInterfacesAt(name: string, index: number): AuthInterface;
1401
1406
 
1402
1407
  /**
1403
- * 插入接口
1404
- * @param itfaceOptions 接口参数
1408
+ * 插入鉴权接口
1409
+ * @param itfaceOptions 鉴权接口参数
1405
1410
  */
1406
1411
  insertAuthInterfaceInInterfacesAt(itfaceOptions: Partial<AuthInterface>, index: number): AuthInterface;
1407
1412
 
1408
1413
  /**
1409
- * 插入接口
1410
- * @param itface 已有的接口实例
1414
+ * 插入鉴权接口
1415
+ * @param itface 已有的鉴权接口实例
1411
1416
  */
1412
1417
  insertAuthInterfaceInInterfacesAt(itface: AuthInterface, index: number): AuthInterface;
1413
1418
 
@@ -1422,23 +1427,23 @@ export class App extends BaseNode {
1422
1427
  }
1423
1428
 
1424
1429
  /**
1425
- * 添加接口
1430
+ * 添加鉴权接口
1426
1431
  * @internal
1427
- * @param name 接口名称,如果不填会自动生成一个唯一名称
1432
+ * @param name 鉴权接口名称,如果不填会自动生成一个唯一名称
1428
1433
  */
1429
1434
  _addAuthInterfaceInInterfaces(name?: string): AuthInterface;
1430
1435
 
1431
1436
  /**
1432
- * 添加接口
1437
+ * 添加鉴权接口
1433
1438
  * @internal
1434
- * @param itfaceOptions 接口参数
1439
+ * @param itfaceOptions 鉴权接口参数
1435
1440
  */
1436
1441
  _addAuthInterfaceInInterfaces(itfaceOptions: Partial<AuthInterface>): AuthInterface;
1437
1442
 
1438
1443
  /**
1439
- * 添加接口
1444
+ * 添加鉴权接口
1440
1445
  * @internal
1441
- * @param itface 已有的接口实例
1446
+ * @param itface 已有的鉴权接口实例
1442
1447
  */
1443
1448
  _addAuthInterfaceInInterfaces(itface: AuthInterface): AuthInterface;
1444
1449
 
@@ -1448,21 +1453,21 @@ export class App extends BaseNode {
1448
1453
  }
1449
1454
 
1450
1455
  /**
1451
- * 添加接口
1456
+ * 添加鉴权接口
1452
1457
  * @internal
1453
- * @param name 接口名称,如果不填会自动生成一个唯一名称
1458
+ * @param name 鉴权接口名称,如果不填会自动生成一个唯一名称
1454
1459
  */
1455
1460
  addAuthInterfaceInInterfaces(name?: string): AuthInterface;
1456
1461
 
1457
1462
  /**
1458
- * 添加接口
1459
- * @param itfaceOptions 接口参数
1463
+ * 添加鉴权接口
1464
+ * @param itfaceOptions 鉴权接口参数
1460
1465
  */
1461
1466
  addAuthInterfaceInInterfaces(itfaceOptions: Partial<AuthInterface>): AuthInterface;
1462
1467
 
1463
1468
  /**
1464
- * 添加接口
1465
- * @param itface 已有的接口实例
1469
+ * 添加鉴权接口
1470
+ * @param itface 已有的鉴权接口实例
1466
1471
  */
1467
1472
  addAuthInterfaceInInterfaces(itface: AuthInterface): AuthInterface;
1468
1473
 
@@ -1481,29 +1486,28 @@ export class App extends BaseNode {
1481
1486
  const excludedSet = new Set(excludedList);
1482
1487
  return ((this.frontends as Frontend[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1483
1488
  }
1484
-
1485
1489
  getFrontendUniqueName(name = 'frontend1') {
1486
1490
  return utils.unique(name, this.getFrontendExistingNames(), undefined, true);
1487
1491
  }
1488
1492
 
1489
1493
  /**
1490
- * 插入端
1494
+ * 插入前端
1491
1495
  * @internal
1492
- * @param name 端名称,如果不填会自动生成一个唯一名称
1496
+ * @param name 前端名称,如果不填会自动生成一个唯一名称
1493
1497
  */
1494
1498
  _insertFrontendAt(name: string, index: number): Frontend;
1495
1499
 
1496
1500
  /**
1497
- * 插入端
1501
+ * 插入前端
1498
1502
  * @internal
1499
- * @param frontendOptions 端参数
1503
+ * @param frontendOptions 前端参数
1500
1504
  */
1501
1505
  _insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
1502
1506
 
1503
1507
  /**
1504
- * 插入端
1508
+ * 插入前端
1505
1509
  * @internal
1506
- * @param frontend 已有的端实例
1510
+ * @param frontend 已有的前端实例
1507
1511
  */
1508
1512
  _insertFrontendAt(frontend: Frontend, index: number): Frontend;
1509
1513
 
@@ -1518,7 +1522,7 @@ export class App extends BaseNode {
1518
1522
  name: this.getFrontendUniqueName(),
1519
1523
  },
1520
1524
  this,
1521
- 'frontends'
1525
+ 'frontends',
1522
1526
  );
1523
1527
  } else if (typeof options === 'string') {
1524
1528
  frontend = Frontend.from(
@@ -1527,7 +1531,7 @@ export class App extends BaseNode {
1527
1531
  name: options,
1528
1532
  },
1529
1533
  this,
1530
- 'frontends'
1534
+ 'frontends',
1531
1535
  );
1532
1536
  } else if (options instanceof Frontend) {
1533
1537
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1540,7 +1544,7 @@ export class App extends BaseNode {
1540
1544
  ...options,
1541
1545
  },
1542
1546
  this,
1543
- 'frontends'
1547
+ 'frontends',
1544
1548
  );
1545
1549
  }
1546
1550
  this.frontends.splice(index, 0, frontend);
@@ -1548,20 +1552,20 @@ export class App extends BaseNode {
1548
1552
  }
1549
1553
 
1550
1554
  /**
1551
- * 插入端
1552
- * @param name 端名称,如果不填会自动生成一个唯一名称
1555
+ * 插入前端
1556
+ * @param name 前端名称,如果不填会自动生成一个唯一名称
1553
1557
  */
1554
1558
  insertFrontendAt(name: string, index: number): Frontend;
1555
1559
 
1556
1560
  /**
1557
- * 插入端
1558
- * @param frontendOptions 端参数
1561
+ * 插入前端
1562
+ * @param frontendOptions 前端参数
1559
1563
  */
1560
1564
  insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
1561
1565
 
1562
1566
  /**
1563
- * 插入端
1564
- * @param frontend 已有的端实例
1567
+ * 插入前端
1568
+ * @param frontend 已有的前端实例
1565
1569
  */
1566
1570
  insertFrontendAt(frontend: Frontend, index: number): Frontend;
1567
1571
 
@@ -1576,23 +1580,23 @@ export class App extends BaseNode {
1576
1580
  }
1577
1581
 
1578
1582
  /**
1579
- * 添加端
1583
+ * 添加前端
1580
1584
  * @internal
1581
- * @param name 端名称,如果不填会自动生成一个唯一名称
1585
+ * @param name 前端名称,如果不填会自动生成一个唯一名称
1582
1586
  */
1583
1587
  _addFrontend(name?: string): Frontend;
1584
1588
 
1585
1589
  /**
1586
- * 添加端
1590
+ * 添加前端
1587
1591
  * @internal
1588
- * @param frontendOptions 端参数
1592
+ * @param frontendOptions 前端参数
1589
1593
  */
1590
1594
  _addFrontend(frontendOptions: Partial<Frontend>): Frontend;
1591
1595
 
1592
1596
  /**
1593
- * 添加端
1597
+ * 添加前端
1594
1598
  * @internal
1595
- * @param frontend 已有的端实例
1599
+ * @param frontend 已有的前端实例
1596
1600
  */
1597
1601
  _addFrontend(frontend: Frontend): Frontend;
1598
1602
 
@@ -1602,21 +1606,21 @@ export class App extends BaseNode {
1602
1606
  }
1603
1607
 
1604
1608
  /**
1605
- * 添加端
1609
+ * 添加前端
1606
1610
  * @internal
1607
- * @param name 端名称,如果不填会自动生成一个唯一名称
1611
+ * @param name 前端名称,如果不填会自动生成一个唯一名称
1608
1612
  */
1609
1613
  addFrontend(name?: string): Frontend;
1610
1614
 
1611
1615
  /**
1612
- * 添加端
1613
- * @param frontendOptions 端参数
1616
+ * 添加前端
1617
+ * @param frontendOptions 前端参数
1614
1618
  */
1615
1619
  addFrontend(frontendOptions: Partial<Frontend>): Frontend;
1616
1620
 
1617
1621
  /**
1618
- * 添加端
1619
- * @param frontend 已有的端实例
1622
+ * 添加前端
1623
+ * @param frontend 已有的前端实例
1620
1624
  */
1621
1625
  addFrontend(frontend: Frontend): Frontend;
1622
1626
 
@@ -1635,7 +1639,6 @@ export class App extends BaseNode {
1635
1639
  const excludedSet = new Set(excludedList);
1636
1640
  return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1637
1641
  }
1638
-
1639
1642
  getProcessUniqueName(name = 'Process1') {
1640
1643
  return utils.unique(name, this.getProcessExistingNames(), undefined, true);
1641
1644
  }
@@ -1672,7 +1675,7 @@ export class App extends BaseNode {
1672
1675
  name: this.getProcessUniqueName(),
1673
1676
  },
1674
1677
  this,
1675
- 'processes'
1678
+ 'processes',
1676
1679
  );
1677
1680
  } else if (typeof options === 'string') {
1678
1681
  process = Process.from(
@@ -1681,7 +1684,7 @@ export class App extends BaseNode {
1681
1684
  name: options,
1682
1685
  },
1683
1686
  this,
1684
- 'processes'
1687
+ 'processes',
1685
1688
  );
1686
1689
  } else if (options instanceof Process) {
1687
1690
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1694,7 +1697,7 @@ export class App extends BaseNode {
1694
1697
  ...options,
1695
1698
  },
1696
1699
  this,
1697
- 'processes'
1700
+ 'processes',
1698
1701
  );
1699
1702
  }
1700
1703
  this.processes.splice(index, 0, process);
@@ -1789,7 +1792,6 @@ export class App extends BaseNode {
1789
1792
  const excludedSet = new Set(excludedList);
1790
1793
  return ((this.roles as Role[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1791
1794
  }
1792
-
1793
1795
  getRoleUniqueName(name = 'role1') {
1794
1796
  return utils.unique(name, this.getRoleExistingNames(), undefined, true);
1795
1797
  }
@@ -1826,7 +1828,7 @@ export class App extends BaseNode {
1826
1828
  name: this.getRoleUniqueName(),
1827
1829
  },
1828
1830
  this,
1829
- 'roles'
1831
+ 'roles',
1830
1832
  );
1831
1833
  } else if (typeof options === 'string') {
1832
1834
  role = Role.from(
@@ -1835,7 +1837,7 @@ export class App extends BaseNode {
1835
1837
  name: options,
1836
1838
  },
1837
1839
  this,
1838
- 'roles'
1840
+ 'roles',
1839
1841
  );
1840
1842
  } else if (options instanceof Role) {
1841
1843
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1848,7 +1850,7 @@ export class App extends BaseNode {
1848
1850
  ...options,
1849
1851
  },
1850
1852
  this,
1851
- 'roles'
1853
+ 'roles',
1852
1854
  );
1853
1855
  }
1854
1856
  this.roles.splice(index, 0, role);
@@ -1943,7 +1945,6 @@ export class App extends BaseNode {
1943
1945
  const excludedSet = new Set(excludedList);
1944
1946
  return ((this.dependencies as Module[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1945
1947
  }
1946
-
1947
1948
  getModuleUniqueName(name = 'module1') {
1948
1949
  return utils.unique(name, this.getModuleExistingNames(), undefined, false);
1949
1950
  }
@@ -1980,7 +1981,7 @@ export class App extends BaseNode {
1980
1981
  name: this.getModuleUniqueName(),
1981
1982
  },
1982
1983
  this,
1983
- 'dependencies'
1984
+ 'dependencies',
1984
1985
  );
1985
1986
  } else if (typeof options === 'string') {
1986
1987
  module = Module.from(
@@ -1989,7 +1990,7 @@ export class App extends BaseNode {
1989
1990
  name: options,
1990
1991
  },
1991
1992
  this,
1992
- 'dependencies'
1993
+ 'dependencies',
1993
1994
  );
1994
1995
  } else if (options instanceof Module) {
1995
1996
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2002,7 +2003,7 @@ export class App extends BaseNode {
2002
2003
  ...options,
2003
2004
  },
2004
2005
  this,
2005
- 'dependencies'
2006
+ 'dependencies',
2006
2007
  );
2007
2008
  }
2008
2009
  this.dependencies.splice(index, 0, module);
@@ -2125,7 +2126,7 @@ export class App extends BaseNode {
2125
2126
  name: this.getConnectorUniqueName(),
2126
2127
  },
2127
2128
  this,
2128
- 'dependencies'
2129
+ 'dependencies',
2129
2130
  );
2130
2131
  } else if (typeof options === 'string') {
2131
2132
  connector = Connector.from(
@@ -2134,7 +2135,7 @@ export class App extends BaseNode {
2134
2135
  name: options,
2135
2136
  },
2136
2137
  this,
2137
- 'dependencies'
2138
+ 'dependencies',
2138
2139
  );
2139
2140
  } else if (options instanceof Connector) {
2140
2141
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2147,7 +2148,7 @@ export class App extends BaseNode {
2147
2148
  ...options,
2148
2149
  },
2149
2150
  this,
2150
- 'dependencies'
2151
+ 'dependencies',
2151
2152
  );
2152
2153
  }
2153
2154
  this.dependencies.splice(index, 0, connector);
@@ -2270,7 +2271,7 @@ export class App extends BaseNode {
2270
2271
  name: this.getModuleUniqueName(),
2271
2272
  },
2272
2273
  this,
2273
- 'interfaceDependencies'
2274
+ 'interfaceDependencies',
2274
2275
  );
2275
2276
  } else if (typeof options === 'string') {
2276
2277
  module = Module.from(
@@ -2279,7 +2280,7 @@ export class App extends BaseNode {
2279
2280
  name: options,
2280
2281
  },
2281
2282
  this,
2282
- 'interfaceDependencies'
2283
+ 'interfaceDependencies',
2283
2284
  );
2284
2285
  } else if (options instanceof Module) {
2285
2286
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2292,7 +2293,7 @@ export class App extends BaseNode {
2292
2293
  ...options,
2293
2294
  },
2294
2295
  this,
2295
- 'interfaceDependencies'
2296
+ 'interfaceDependencies',
2296
2297
  );
2297
2298
  }
2298
2299
  this.interfaceDependencies.splice(index, 0, module);
@@ -2385,35 +2386,45 @@ export class App extends BaseNode {
2385
2386
 
2386
2387
  getAuthLogicForCallInterfaceExistingNames(excludedList: Array<AuthLogicForCallInterface> = []) {
2387
2388
  const excludedSet = new Set(excludedList);
2388
- return ((this.authLogicsForCallInterface as AuthLogicForCallInterface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2389
+ return ((this.authLogicsForCallInterface as AuthLogicForCallInterface[]) || [])
2390
+ .filter((item) => !excludedSet.has(item))
2391
+ .map((item) => item.name);
2389
2392
  }
2390
-
2391
2393
  getAuthLogicForCallInterfaceUniqueName(name = 'authLogicForCallInterface1') {
2392
2394
  return utils.unique(name, this.getAuthLogicForCallInterfaceExistingNames(), undefined, false);
2393
2395
  }
2394
2396
 
2395
2397
  /**
2396
- * 插入调用的鉴权逻辑
2398
+ * 插入调用接口的鉴权逻辑
2397
2399
  * @internal
2398
- * @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2400
+ * @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2399
2401
  */
2400
2402
  _insertAuthLogicForCallInterfaceAt(name: string, index: number): AuthLogicForCallInterface;
2401
2403
 
2402
2404
  /**
2403
- * 插入调用的鉴权逻辑
2405
+ * 插入调用接口的鉴权逻辑
2404
2406
  * @internal
2405
- * @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
2407
+ * @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
2406
2408
  */
2407
- _insertAuthLogicForCallInterfaceAt(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>, index: number): AuthLogicForCallInterface;
2409
+ _insertAuthLogicForCallInterfaceAt(
2410
+ authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
2411
+ index: number,
2412
+ ): AuthLogicForCallInterface;
2408
2413
 
2409
2414
  /**
2410
- * 插入调用的鉴权逻辑
2415
+ * 插入调用接口的鉴权逻辑
2411
2416
  * @internal
2412
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
2417
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
2413
2418
  */
2414
- _insertAuthLogicForCallInterfaceAt(authLogicForCallInterface: AuthLogicForCallInterface, index: number): AuthLogicForCallInterface;
2419
+ _insertAuthLogicForCallInterfaceAt(
2420
+ authLogicForCallInterface: AuthLogicForCallInterface,
2421
+ index: number,
2422
+ ): AuthLogicForCallInterface;
2415
2423
 
2416
- _insertAuthLogicForCallInterfaceAt(options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface, index: number) {
2424
+ _insertAuthLogicForCallInterfaceAt(
2425
+ options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface,
2426
+ index: number,
2427
+ ) {
2417
2428
  const authLogicForCallInterfaceOptions: any = {};
2418
2429
  const relationOptions = { parentNode: this, parentKey: 'authLogicsForCallInterface' };
2419
2430
  let authLogicForCallInterface: AuthLogicForCallInterface;
@@ -2424,7 +2435,7 @@ export class App extends BaseNode {
2424
2435
  name: this.getAuthLogicForCallInterfaceUniqueName(),
2425
2436
  },
2426
2437
  this,
2427
- 'authLogicsForCallInterface'
2438
+ 'authLogicsForCallInterface',
2428
2439
  );
2429
2440
  } else if (typeof options === 'string') {
2430
2441
  authLogicForCallInterface = AuthLogicForCallInterface.from(
@@ -2433,11 +2444,11 @@ export class App extends BaseNode {
2433
2444
  name: options,
2434
2445
  },
2435
2446
  this,
2436
- 'authLogicsForCallInterface'
2447
+ 'authLogicsForCallInterface',
2437
2448
  );
2438
- } else if (options instanceof AuthLogicForCallInterface) {
2449
+ } else if (options.concept === 'AuthLogicForCallInterface') {
2439
2450
  options.ensureDelete(); // 同一实例不支持多处存在
2440
- authLogicForCallInterface = options;
2451
+ authLogicForCallInterface = options as any;
2441
2452
  Object.assign(authLogicForCallInterface, relationOptions);
2442
2453
  } else {
2443
2454
  authLogicForCallInterface = AuthLogicForCallInterface.from(
@@ -2446,7 +2457,7 @@ export class App extends BaseNode {
2446
2457
  ...options,
2447
2458
  },
2448
2459
  this,
2449
- 'authLogicsForCallInterface'
2460
+ 'authLogicsForCallInterface',
2450
2461
  );
2451
2462
  }
2452
2463
  this.authLogicsForCallInterface.splice(index, 0, authLogicForCallInterface);
@@ -2454,24 +2465,33 @@ export class App extends BaseNode {
2454
2465
  }
2455
2466
 
2456
2467
  /**
2457
- * 插入调用的鉴权逻辑
2458
- * @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2468
+ * 插入调用接口的鉴权逻辑
2469
+ * @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2459
2470
  */
2460
2471
  insertAuthLogicForCallInterfaceAt(name: string, index: number): AuthLogicForCallInterface;
2461
2472
 
2462
2473
  /**
2463
- * 插入调用的鉴权逻辑
2464
- * @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
2474
+ * 插入调用接口的鉴权逻辑
2475
+ * @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
2465
2476
  */
2466
- insertAuthLogicForCallInterfaceAt(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>, index: number): AuthLogicForCallInterface;
2477
+ insertAuthLogicForCallInterfaceAt(
2478
+ authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
2479
+ index: number,
2480
+ ): AuthLogicForCallInterface;
2467
2481
 
2468
2482
  /**
2469
- * 插入调用的鉴权逻辑
2470
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
2483
+ * 插入调用接口的鉴权逻辑
2484
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
2471
2485
  */
2472
- insertAuthLogicForCallInterfaceAt(authLogicForCallInterface: AuthLogicForCallInterface, index: number): AuthLogicForCallInterface;
2486
+ insertAuthLogicForCallInterfaceAt(
2487
+ authLogicForCallInterface: AuthLogicForCallInterface,
2488
+ index: number,
2489
+ ): AuthLogicForCallInterface;
2473
2490
 
2474
- insertAuthLogicForCallInterfaceAt(options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface, index: number) {
2491
+ insertAuthLogicForCallInterfaceAt(
2492
+ options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface,
2493
+ index: number,
2494
+ ) {
2475
2495
  const node = this._insertAuthLogicForCallInterfaceAt(options as any, index);
2476
2496
  node.create({
2477
2497
  index,
@@ -2482,23 +2502,25 @@ export class App extends BaseNode {
2482
2502
  }
2483
2503
 
2484
2504
  /**
2485
- * 添加调用的鉴权逻辑
2505
+ * 添加调用接口的鉴权逻辑
2486
2506
  * @internal
2487
- * @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2507
+ * @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2488
2508
  */
2489
2509
  _addAuthLogicForCallInterface(name?: string): AuthLogicForCallInterface;
2490
2510
 
2491
2511
  /**
2492
- * 添加调用的鉴权逻辑
2512
+ * 添加调用接口的鉴权逻辑
2493
2513
  * @internal
2494
- * @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
2514
+ * @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
2495
2515
  */
2496
- _addAuthLogicForCallInterface(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>): AuthLogicForCallInterface;
2516
+ _addAuthLogicForCallInterface(
2517
+ authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
2518
+ ): AuthLogicForCallInterface;
2497
2519
 
2498
2520
  /**
2499
- * 添加调用的鉴权逻辑
2521
+ * 添加调用接口的鉴权逻辑
2500
2522
  * @internal
2501
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
2523
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
2502
2524
  */
2503
2525
  _addAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): AuthLogicForCallInterface;
2504
2526
 
@@ -2508,21 +2530,23 @@ export class App extends BaseNode {
2508
2530
  }
2509
2531
 
2510
2532
  /**
2511
- * 添加调用的鉴权逻辑
2533
+ * 添加调用接口的鉴权逻辑
2512
2534
  * @internal
2513
- * @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2535
+ * @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2514
2536
  */
2515
2537
  addAuthLogicForCallInterface(name?: string): AuthLogicForCallInterface;
2516
2538
 
2517
2539
  /**
2518
- * 添加调用的鉴权逻辑
2519
- * @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
2540
+ * 添加调用接口的鉴权逻辑
2541
+ * @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
2520
2542
  */
2521
- addAuthLogicForCallInterface(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>): AuthLogicForCallInterface;
2543
+ addAuthLogicForCallInterface(
2544
+ authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
2545
+ ): AuthLogicForCallInterface;
2522
2546
 
2523
2547
  /**
2524
- * 添加调用的鉴权逻辑
2525
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
2548
+ * 添加调用接口的鉴权逻辑
2549
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
2526
2550
  */
2527
2551
  addAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): AuthLogicForCallInterface;
2528
2552
 
@@ -2541,7 +2565,6 @@ export class App extends BaseNode {
2541
2565
  const excludedSet = new Set(excludedList);
2542
2566
  return ((this.connections as Connection[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2543
2567
  }
2544
-
2545
2568
  getConnectionUniqueName(name = 'connection1') {
2546
2569
  return utils.unique(name, this.getConnectionExistingNames(), undefined, false);
2547
2570
  }
@@ -2578,7 +2601,7 @@ export class App extends BaseNode {
2578
2601
  name: this.getConnectionUniqueName(),
2579
2602
  },
2580
2603
  this,
2581
- 'connections'
2604
+ 'connections',
2582
2605
  );
2583
2606
  } else if (typeof options === 'string') {
2584
2607
  connection = Connection.from(
@@ -2587,7 +2610,7 @@ export class App extends BaseNode {
2587
2610
  name: options,
2588
2611
  },
2589
2612
  this,
2590
- 'connections'
2613
+ 'connections',
2591
2614
  );
2592
2615
  } else if (options instanceof Connection) {
2593
2616
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2600,7 +2623,7 @@ export class App extends BaseNode {
2600
2623
  ...options,
2601
2624
  },
2602
2625
  this,
2603
- 'connections'
2626
+ 'connections',
2604
2627
  );
2605
2628
  }
2606
2629
  this.connections.splice(index, 0, connection);
@@ -2693,9 +2716,10 @@ export class App extends BaseNode {
2693
2716
 
2694
2717
  getTriggerLauncherExistingNames(excludedList: Array<TriggerLauncher> = []) {
2695
2718
  const excludedSet = new Set(excludedList);
2696
- return ((this.triggerLaunchers as TriggerLauncher[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2719
+ return ((this.triggerLaunchers as TriggerLauncher[]) || [])
2720
+ .filter((item) => !excludedSet.has(item))
2721
+ .map((item) => item.name);
2697
2722
  }
2698
-
2699
2723
  getTriggerLauncherUniqueName(name = 'triggerLauncher1') {
2700
2724
  return utils.unique(name, this.getTriggerLauncherExistingNames(), undefined, false);
2701
2725
  }
@@ -2732,7 +2756,7 @@ export class App extends BaseNode {
2732
2756
  name: this.getTriggerLauncherUniqueName(),
2733
2757
  },
2734
2758
  this,
2735
- 'triggerLaunchers'
2759
+ 'triggerLaunchers',
2736
2760
  );
2737
2761
  } else if (typeof options === 'string') {
2738
2762
  triggerLauncher = TriggerLauncher.from(
@@ -2741,7 +2765,7 @@ export class App extends BaseNode {
2741
2765
  name: options,
2742
2766
  },
2743
2767
  this,
2744
- 'triggerLaunchers'
2768
+ 'triggerLaunchers',
2745
2769
  );
2746
2770
  } else if (options instanceof TriggerLauncher) {
2747
2771
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2754,7 +2778,7 @@ export class App extends BaseNode {
2754
2778
  ...options,
2755
2779
  },
2756
2780
  this,
2757
- 'triggerLaunchers'
2781
+ 'triggerLaunchers',
2758
2782
  );
2759
2783
  }
2760
2784
  this.triggerLaunchers.splice(index, 0, triggerLauncher);
@@ -2862,7 +2886,7 @@ export class App extends BaseNode {
2862
2886
  if (typeof options === 'string') {
2863
2887
  dataSource = (this.dataSources as DataSource[]).find((item) => item.name === options);
2864
2888
  if (!dataSource) {
2865
- throw new Error(`找不到数据源 ${options}`);
2889
+ throw new Error('找不到数据源 ' + options);
2866
2890
  }
2867
2891
  } else {
2868
2892
  dataSource = options;
@@ -2871,7 +2895,7 @@ export class App extends BaseNode {
2871
2895
  }
2872
2896
 
2873
2897
  __removeDataSource(dataSource: DataSource) {
2874
- const { parentKey } = dataSource;
2898
+ const parentKey = dataSource.parentKey;
2875
2899
  const params: Params = {
2876
2900
  parentNode: this,
2877
2901
  parentKey,
@@ -2910,7 +2934,7 @@ export class App extends BaseNode {
2910
2934
  if (typeof options === 'string') {
2911
2935
  structure = (this.structures as Structure[]).find((item) => item.name === options);
2912
2936
  if (!structure) {
2913
- throw new Error(`找不到数据结构 ${options}`);
2937
+ throw new Error('找不到数据结构 ' + options);
2914
2938
  }
2915
2939
  } else {
2916
2940
  structure = options;
@@ -2919,7 +2943,7 @@ export class App extends BaseNode {
2919
2943
  }
2920
2944
 
2921
2945
  __removeStructure(structure: Structure) {
2922
- const { parentKey } = structure;
2946
+ const parentKey = structure.parentKey;
2923
2947
  const params: Params = {
2924
2948
  parentNode: this,
2925
2949
  parentKey,
@@ -2958,7 +2982,7 @@ export class App extends BaseNode {
2958
2982
  if (typeof options === 'string') {
2959
2983
  enumeration = (this.enums as Enum[]).find((item) => item.name === options);
2960
2984
  if (!enumeration) {
2961
- throw new Error(`找不到枚举 ${options}`);
2985
+ throw new Error('找不到枚举 ' + options);
2962
2986
  }
2963
2987
  } else {
2964
2988
  enumeration = options;
@@ -2967,7 +2991,7 @@ export class App extends BaseNode {
2967
2991
  }
2968
2992
 
2969
2993
  __removeEnum(enumeration: Enum) {
2970
- const { parentKey } = enumeration;
2994
+ const parentKey = enumeration.parentKey;
2971
2995
  const params: Params = {
2972
2996
  parentNode: this,
2973
2997
  parentKey,
@@ -3006,7 +3030,7 @@ export class App extends BaseNode {
3006
3030
  if (typeof options === 'string') {
3007
3031
  logic = (this.logics as Logic[]).find((item) => item.name === options);
3008
3032
  if (!logic) {
3009
- throw new Error(`找不到逻辑 ${options}`);
3033
+ throw new Error('找不到逻辑 ' + options);
3010
3034
  }
3011
3035
  } else {
3012
3036
  logic = options;
@@ -3015,14 +3039,14 @@ export class App extends BaseNode {
3015
3039
  }
3016
3040
 
3017
3041
  /**
3018
- * 删除开放接口的鉴权逻辑
3019
- * @param name 开放接口的鉴权逻辑名称
3042
+ * 删除鉴权逻辑
3043
+ * @param name 鉴权逻辑名称
3020
3044
  */
3021
3045
  removeAuthLogicInAuthLogics(name: string): void;
3022
3046
 
3023
3047
  /**
3024
- * 删除开放接口的鉴权逻辑
3025
- * @param authLogic 已有的开放接口的鉴权逻辑实例
3048
+ * 删除鉴权逻辑
3049
+ * @param authLogic 已有的鉴权逻辑实例
3026
3050
  */
3027
3051
  removeAuthLogicInAuthLogics(authLogic: AuthLogic): void;
3028
3052
 
@@ -3031,7 +3055,7 @@ export class App extends BaseNode {
3031
3055
  if (typeof options === 'string') {
3032
3056
  authLogic = (this.authLogics as AuthLogic[]).find((item) => item.name === options);
3033
3057
  if (!authLogic) {
3034
- throw new Error(`找不到开放接口的鉴权逻辑 ${options}`);
3058
+ throw new Error('找不到鉴权逻辑 ' + options);
3035
3059
  }
3036
3060
  } else {
3037
3061
  authLogic = options;
@@ -3040,7 +3064,7 @@ export class App extends BaseNode {
3040
3064
  }
3041
3065
 
3042
3066
  __removeLogic(logic: Logic) {
3043
- const { parentKey } = logic;
3067
+ const parentKey = logic.parentKey;
3044
3068
  const params: Params = {
3045
3069
  parentNode: this,
3046
3070
  parentKey,
@@ -3063,14 +3087,14 @@ export class App extends BaseNode {
3063
3087
  }
3064
3088
 
3065
3089
  /**
3066
- * 删除逻辑
3067
- * @param name 逻辑名称
3090
+ * 删除覆写逻辑
3091
+ * @param name 覆写逻辑名称
3068
3092
  */
3069
3093
  removeOverriddenLogic(name: string): void;
3070
3094
 
3071
3095
  /**
3072
- * 删除逻辑
3073
- * @param overriddenLogic 已有的逻辑实例
3096
+ * 删除覆写逻辑
3097
+ * @param overriddenLogic 已有的覆写逻辑实例
3074
3098
  */
3075
3099
  removeOverriddenLogic(overriddenLogic: OverriddenLogic): void;
3076
3100
 
@@ -3079,7 +3103,7 @@ export class App extends BaseNode {
3079
3103
  if (typeof options === 'string') {
3080
3104
  overriddenLogic = (this.overriddenLogics as OverriddenLogic[]).find((item) => item.name === options);
3081
3105
  if (!overriddenLogic) {
3082
- throw new Error(`找不到逻辑 ${options}`);
3106
+ throw new Error('找不到覆写逻辑 ' + options);
3083
3107
  }
3084
3108
  } else {
3085
3109
  overriddenLogic = options;
@@ -3088,7 +3112,7 @@ export class App extends BaseNode {
3088
3112
  }
3089
3113
 
3090
3114
  __removeOverriddenLogic(overriddenLogic: OverriddenLogic) {
3091
- const { parentKey } = overriddenLogic;
3115
+ const parentKey = overriddenLogic.parentKey;
3092
3116
  const params: Params = {
3093
3117
  parentNode: this,
3094
3118
  parentKey,
@@ -3127,7 +3151,7 @@ export class App extends BaseNode {
3127
3151
  if (typeof options === 'string') {
3128
3152
  itface = (this.interfaces as Interface[]).find((item) => item.name === options);
3129
3153
  if (!itface) {
3130
- throw new Error(`找不到接口 ${options}`);
3154
+ throw new Error('找不到接口 ' + options);
3131
3155
  }
3132
3156
  } else {
3133
3157
  itface = options;
@@ -3136,14 +3160,14 @@ export class App extends BaseNode {
3136
3160
  }
3137
3161
 
3138
3162
  /**
3139
- * 删除接口
3140
- * @param name 接口名称
3163
+ * 删除鉴权接口
3164
+ * @param name 鉴权接口名称
3141
3165
  */
3142
3166
  removeAuthInterfaceInInterfaces(name: string): void;
3143
3167
 
3144
3168
  /**
3145
- * 删除接口
3146
- * @param itface 已有的接口实例
3169
+ * 删除鉴权接口
3170
+ * @param itface 已有的鉴权接口实例
3147
3171
  */
3148
3172
  removeAuthInterfaceInInterfaces(itface: AuthInterface): void;
3149
3173
 
@@ -3152,7 +3176,7 @@ export class App extends BaseNode {
3152
3176
  if (typeof options === 'string') {
3153
3177
  itface = (this.interfaces as AuthInterface[]).find((item) => item.name === options);
3154
3178
  if (!itface) {
3155
- throw new Error(`找不到接口 ${options}`);
3179
+ throw new Error('找不到鉴权接口 ' + options);
3156
3180
  }
3157
3181
  } else {
3158
3182
  itface = options;
@@ -3161,7 +3185,7 @@ export class App extends BaseNode {
3161
3185
  }
3162
3186
 
3163
3187
  __removeInterface(itface: Interface) {
3164
- const { parentKey } = itface;
3188
+ const parentKey = itface.parentKey;
3165
3189
  const params: Params = {
3166
3190
  parentNode: this,
3167
3191
  parentKey,
@@ -3184,14 +3208,14 @@ export class App extends BaseNode {
3184
3208
  }
3185
3209
 
3186
3210
  /**
3187
- * 删除端
3188
- * @param name 端名称
3211
+ * 删除前端
3212
+ * @param name 前端名称
3189
3213
  */
3190
3214
  removeFrontend(name: string): void;
3191
3215
 
3192
3216
  /**
3193
- * 删除端
3194
- * @param frontend 已有的端实例
3217
+ * 删除前端
3218
+ * @param frontend 已有的前端实例
3195
3219
  */
3196
3220
  removeFrontend(frontend: Frontend): void;
3197
3221
 
@@ -3200,7 +3224,7 @@ export class App extends BaseNode {
3200
3224
  if (typeof options === 'string') {
3201
3225
  frontend = (this.frontends as Frontend[]).find((item) => item.name === options);
3202
3226
  if (!frontend) {
3203
- throw new Error(`找不到端 ${options}`);
3227
+ throw new Error('找不到前端 ' + options);
3204
3228
  }
3205
3229
  } else {
3206
3230
  frontend = options;
@@ -3209,7 +3233,7 @@ export class App extends BaseNode {
3209
3233
  }
3210
3234
 
3211
3235
  __removeFrontend(frontend: Frontend) {
3212
- const { parentKey } = frontend;
3236
+ const parentKey = frontend.parentKey;
3213
3237
  const params: Params = {
3214
3238
  parentNode: this,
3215
3239
  parentKey,
@@ -3248,7 +3272,7 @@ export class App extends BaseNode {
3248
3272
  if (typeof options === 'string') {
3249
3273
  backend = this.backend;
3250
3274
  if (!backend) {
3251
- throw new Error(`找不到后端 ${options}`);
3275
+ throw new Error('找不到后端 ' + options);
3252
3276
  }
3253
3277
  } else {
3254
3278
  backend = options;
@@ -3257,7 +3281,7 @@ export class App extends BaseNode {
3257
3281
  }
3258
3282
 
3259
3283
  __removeBackend(backend: Backend) {
3260
- const { parentKey } = backend;
3284
+ const parentKey = backend.parentKey;
3261
3285
  const params: Params = {
3262
3286
  parentNode: this,
3263
3287
  parentKey,
@@ -3296,7 +3320,7 @@ export class App extends BaseNode {
3296
3320
  if (typeof options === 'string') {
3297
3321
  process = (this.processes as Process[]).find((item) => item.name === options);
3298
3322
  if (!process) {
3299
- throw new Error(`找不到流程 ${options}`);
3323
+ throw new Error('找不到流程 ' + options);
3300
3324
  }
3301
3325
  } else {
3302
3326
  process = options;
@@ -3305,7 +3329,7 @@ export class App extends BaseNode {
3305
3329
  }
3306
3330
 
3307
3331
  __removeProcess(process: Process) {
3308
- const { parentKey } = process;
3332
+ const parentKey = process.parentKey;
3309
3333
  const params: Params = {
3310
3334
  parentNode: this,
3311
3335
  parentKey,
@@ -3344,7 +3368,7 @@ export class App extends BaseNode {
3344
3368
  if (typeof options === 'string') {
3345
3369
  role = (this.roles as Role[]).find((item) => item.name === options);
3346
3370
  if (!role) {
3347
- throw new Error(`找不到角色 ${options}`);
3371
+ throw new Error('找不到角色 ' + options);
3348
3372
  }
3349
3373
  } else {
3350
3374
  role = options;
@@ -3353,7 +3377,7 @@ export class App extends BaseNode {
3353
3377
  }
3354
3378
 
3355
3379
  __removeRole(role: Role) {
3356
- const { parentKey } = role;
3380
+ const parentKey = role.parentKey;
3357
3381
  const params: Params = {
3358
3382
  parentNode: this,
3359
3383
  parentKey,
@@ -3392,7 +3416,7 @@ export class App extends BaseNode {
3392
3416
  if (typeof options === 'string') {
3393
3417
  configuration = this.configuration;
3394
3418
  if (!configuration) {
3395
- throw new Error(`找不到配置管理 ${options}`);
3419
+ throw new Error('找不到配置管理 ' + options);
3396
3420
  }
3397
3421
  } else {
3398
3422
  configuration = options;
@@ -3401,7 +3425,7 @@ export class App extends BaseNode {
3401
3425
  }
3402
3426
 
3403
3427
  __removeConfiguration(configuration: Configuration) {
3404
- const { parentKey } = configuration;
3428
+ const parentKey = configuration.parentKey;
3405
3429
  const params: Params = {
3406
3430
  parentNode: this,
3407
3431
  parentKey,
@@ -3440,7 +3464,7 @@ export class App extends BaseNode {
3440
3464
  if (typeof options === 'string') {
3441
3465
  module = (this.dependencies as Module[]).find((item) => item.name === options);
3442
3466
  if (!module) {
3443
- throw new Error(`找不到模块 ${options}`);
3467
+ throw new Error('找不到模块 ' + options);
3444
3468
  }
3445
3469
  } else {
3446
3470
  module = options;
@@ -3465,7 +3489,7 @@ export class App extends BaseNode {
3465
3489
  if (typeof options === 'string') {
3466
3490
  connector = (this.dependencies as Connector[]).find((item) => item.name === options);
3467
3491
  if (!connector) {
3468
- throw new Error(`找不到连接器 ${options}`);
3492
+ throw new Error('找不到连接器 ' + options);
3469
3493
  }
3470
3494
  } else {
3471
3495
  connector = options;
@@ -3490,7 +3514,7 @@ export class App extends BaseNode {
3490
3514
  if (typeof options === 'string') {
3491
3515
  module = (this.interfaceDependencies as Module[]).find((item) => item.name === options);
3492
3516
  if (!module) {
3493
- throw new Error(`找不到模块 ${options}`);
3517
+ throw new Error('找不到模块 ' + options);
3494
3518
  }
3495
3519
  } else {
3496
3520
  module = options;
@@ -3499,7 +3523,7 @@ export class App extends BaseNode {
3499
3523
  }
3500
3524
 
3501
3525
  __removeModule(module: Module) {
3502
- const { parentKey } = module;
3526
+ const parentKey = module.parentKey;
3503
3527
  const params: Params = {
3504
3528
  parentNode: this,
3505
3529
  parentKey,
@@ -3538,7 +3562,7 @@ export class App extends BaseNode {
3538
3562
  if (typeof options === 'string') {
3539
3563
  integration = this.integration;
3540
3564
  if (!integration) {
3541
- throw new Error(`找不到集成 ${options}`);
3565
+ throw new Error('找不到集成 ' + options);
3542
3566
  }
3543
3567
  } else {
3544
3568
  integration = options;
@@ -3547,7 +3571,7 @@ export class App extends BaseNode {
3547
3571
  }
3548
3572
 
3549
3573
  __removeIntegration(integration: Integration) {
3550
- const { parentKey } = integration;
3574
+ const parentKey = integration.parentKey;
3551
3575
  const params: Params = {
3552
3576
  parentNode: this,
3553
3577
  parentKey,
@@ -3570,23 +3594,25 @@ export class App extends BaseNode {
3570
3594
  }
3571
3595
 
3572
3596
  /**
3573
- * 删除调用的鉴权逻辑
3574
- * @param name 调用的鉴权逻辑名称
3597
+ * 删除调用接口的鉴权逻辑
3598
+ * @param name 调用接口的鉴权逻辑名称
3575
3599
  */
3576
3600
  removeAuthLogicForCallInterface(name: string): void;
3577
3601
 
3578
3602
  /**
3579
- * 删除调用的鉴权逻辑
3580
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
3603
+ * 删除调用接口的鉴权逻辑
3604
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
3581
3605
  */
3582
3606
  removeAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): void;
3583
3607
 
3584
3608
  removeAuthLogicForCallInterface(options: string | AuthLogicForCallInterface) {
3585
3609
  let authLogicForCallInterface: AuthLogicForCallInterface;
3586
3610
  if (typeof options === 'string') {
3587
- authLogicForCallInterface = (this.authLogicsForCallInterface as AuthLogicForCallInterface[]).find((item) => item.name === options);
3611
+ authLogicForCallInterface = (this.authLogicsForCallInterface as AuthLogicForCallInterface[]).find(
3612
+ (item) => item.name === options,
3613
+ );
3588
3614
  if (!authLogicForCallInterface) {
3589
- throw new Error(`找不到调用的鉴权逻辑 ${options}`);
3615
+ throw new Error('找不到调用接口的鉴权逻辑 ' + options);
3590
3616
  }
3591
3617
  } else {
3592
3618
  authLogicForCallInterface = options;
@@ -3595,7 +3621,7 @@ export class App extends BaseNode {
3595
3621
  }
3596
3622
 
3597
3623
  __removeAuthLogic(authLogic: AuthLogic) {
3598
- const { parentKey } = authLogic;
3624
+ const parentKey = authLogic.parentKey;
3599
3625
  const params: Params = {
3600
3626
  parentNode: this,
3601
3627
  parentKey,
@@ -3634,7 +3660,7 @@ export class App extends BaseNode {
3634
3660
  if (typeof options === 'string') {
3635
3661
  connection = (this.connections as Connection[]).find((item) => item.name === options);
3636
3662
  if (!connection) {
3637
- throw new Error(`找不到连接 ${options}`);
3663
+ throw new Error('找不到连接 ' + options);
3638
3664
  }
3639
3665
  } else {
3640
3666
  connection = options;
@@ -3643,7 +3669,7 @@ export class App extends BaseNode {
3643
3669
  }
3644
3670
 
3645
3671
  __removeConnection(connection: Connection) {
3646
- const { parentKey } = connection;
3672
+ const parentKey = connection.parentKey;
3647
3673
  const params: Params = {
3648
3674
  parentNode: this,
3649
3675
  parentKey,
@@ -3682,7 +3708,7 @@ export class App extends BaseNode {
3682
3708
  if (typeof options === 'string') {
3683
3709
  triggerLauncher = (this.triggerLaunchers as TriggerLauncher[]).find((item) => item.name === options);
3684
3710
  if (!triggerLauncher) {
3685
- throw new Error(`找不到触发器启动器 ${options}`);
3711
+ throw new Error('找不到触发器启动器 ' + options);
3686
3712
  }
3687
3713
  } else {
3688
3714
  triggerLauncher = options;
@@ -3691,7 +3717,7 @@ export class App extends BaseNode {
3691
3717
  }
3692
3718
 
3693
3719
  __removeTriggerLauncher(triggerLauncher: TriggerLauncher) {
3694
- const { parentKey } = triggerLauncher;
3720
+ const parentKey = triggerLauncher.parentKey;
3695
3721
  const params: Params = {
3696
3722
  parentNode: this,
3697
3723
  parentKey,
@@ -3713,10 +3739,10 @@ export class App extends BaseNode {
3713
3739
  return params;
3714
3740
  }
3715
3741
 
3716
- //= ===============================================================================
3742
+ //================================================================================
3717
3743
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
3718
3744
  // 自动生成的代码已结束。下面可以手动编写。
3719
- //= ===============================================================================
3745
+ //================================================================================
3720
3746
 
3721
3747
  findDataSourceByName(name: string) {
3722
3748
  return this.dataSources.find((dataSourceItem) => dataSourceItem.name === name);
@@ -3866,9 +3892,13 @@ export class App extends BaseNode {
3866
3892
  };
3867
3893
 
3868
3894
  packageInfo.template.name = scope === 'h5' ? '@lcap/mobile-template' : 'lcap-pc-template';
3869
- packageInfo.template.version = scope === 'h5' ? dependencyMap.FrontendArchH5.version : dependencyMap.FrontendArchPC.version;
3895
+ packageInfo.template.version =
3896
+ scope === 'h5' ? dependencyMap.FrontendArchH5.version : dependencyMap.FrontendArchPC.version;
3870
3897
  packageInfo.ui.name = scope === 'h5' ? '@lcap/mobile-ui' : 'cloud-ui.vusion';
3871
- packageInfo.ui.version = scope === 'h5' ? dependencyMap.FrontendComponentLibraryH5.version : dependencyMap.FrontendComponentLibraryPC.version;
3898
+ packageInfo.ui.version =
3899
+ scope === 'h5'
3900
+ ? dependencyMap.FrontendComponentLibraryH5.version
3901
+ : dependencyMap.FrontendComponentLibraryPC.version;
3872
3902
  return packageInfo;
3873
3903
  }
3874
3904
 
@@ -3943,18 +3973,20 @@ export class App extends BaseNode {
3943
3973
  });
3944
3974
  });
3945
3975
  this.dependencies.forEach((dep: Module) => {
3946
- const { name, version, compilerInfoMap, frontends } = dep;
3947
- const prefixPath = compilerInfoMap?.js?.prefix;
3948
- (frontends || []).forEach((frontend) => {
3949
- if (frontend.type === scope) {
3950
- const jsName = `${prefix}/packages/${prefixPath ? `${prefixPath}/` : ''}${name}@${version}/dist-theme/index.js`;
3951
- if (!existingSet.has(jsName)) {
3952
- existingSet.add(jsName);
3953
- result.custom.js.push(jsName);
3954
- result.custom.names.push(dep.name);
3955
- }
3976
+ const { name, version, compilerInfoMap, frontends } = dep;
3977
+ const prefixPath = compilerInfoMap?.js?.prefix;
3978
+ if (name) {
3979
+ (frontends || []).forEach((frontend) => {
3980
+ if (frontend.type === scope) {
3981
+ const jsName = `${prefix}/packages/${prefixPath?prefixPath+"/":""}${name}@${version}/dist-theme/index.js`;
3982
+ if (!existingSet.has(jsName)) {
3983
+ existingSet.add(jsName);
3984
+ result.custom.js.push(jsName);
3985
+ result.custom.names.push(dep.name);
3986
+ }
3987
+ }
3988
+ });
3956
3989
  }
3957
- });
3958
3990
  });
3959
3991
  return result;
3960
3992
  }
@@ -4177,7 +4209,10 @@ export class App extends BaseNode {
4177
4209
  message: `输出参数发生变更,请点击“重新导出”`,
4178
4210
  });
4179
4211
  }
4180
- } else if (JSON.stringify(logicReturns[0]?.typeAnnotation?.toJSON()) !== JSON.stringify(interfaceReturns[0]?.typeAnnotation?.toJSON())) {
4212
+ } else if (
4213
+ JSON.stringify(logicReturns[0]?.typeAnnotation?.toJSON()) !==
4214
+ JSON.stringify(interfaceReturns[0]?.typeAnnotation?.toJSON())
4215
+ ) {
4181
4216
  errorList.push({
4182
4217
  logicName: logic.name,
4183
4218
  interfaceName: item.name,
@@ -4324,15 +4359,30 @@ export class App extends BaseNode {
4324
4359
  return this.logics.find((item) => item.name === name);
4325
4360
  }
4326
4361
 
4327
- //= ===============================================================================
4362
+ /** 获取已经存在的Module title */
4363
+ getModuleExistingTitles(excludedList: Array<Module> = []) {
4364
+ const excludedSet = new Set(excludedList);
4365
+ return ((this.dependencies as Module[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.title);
4366
+ }
4367
+
4368
+ /** hank */
4369
+ // setConnector() {
4370
+ // const [a, b, c, d, e, f] = this.connections;
4371
+ // console.log(a, b, c, d, e, f, this.connections)
4372
+ // const res = []
4373
+ // this.update({
4374
+ // connections: [a, b, c, e, f],
4375
+ // });
4376
+ // }
4377
+
4378
+ //================================================================================
4328
4379
  // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
4329
4380
  // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
4330
- //= ===============================================================================
4381
+ //================================================================================
4331
4382
  }
4332
4383
 
4333
- classMap.App = App;
4334
4384
  export default App;
4335
- //= ===============================================================================
4385
+ //================================================================================
4336
4386
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
4337
4387
  // 自动生成的代码已结束。下面可以手动编写。
4338
- //= ===============================================================================
4388
+ //================================================================================