@lcap/nasl 3.4.0-alpha.1 → 3.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (822) hide show
  1. package/out/bak/translator.js +8 -5
  2. package/out/bak/translator.js.map +1 -1
  3. package/out/breakpoint/generator/AfterStartNode.js +2 -1
  4. package/out/breakpoint/generator/AfterStartNode.js.map +1 -1
  5. package/out/breakpoint/generator/BeforeEndNode.js +2 -1
  6. package/out/breakpoint/generator/BeforeEndNode.js.map +1 -1
  7. package/out/breakpoint/generator/BreakpointNode.js +30 -9
  8. package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
  9. package/out/breakpoint/shared/constants.d.ts +1 -0
  10. package/out/breakpoint/shared/constants.js +7 -1
  11. package/out/breakpoint/shared/constants.js.map +1 -1
  12. package/out/breakpoint/shared/utils.d.ts +3 -1
  13. package/out/breakpoint/shared/utils.js +25 -4
  14. package/out/breakpoint/shared/utils.js.map +1 -1
  15. package/out/common/BaseNode.d.ts +30 -14
  16. package/out/common/BaseNode.js +186 -119
  17. package/out/common/BaseNode.js.map +1 -1
  18. package/out/common/Command.js +6 -1
  19. package/out/common/Command.js.map +1 -1
  20. package/out/common/EventEmitter.d.ts +1 -1
  21. package/out/common/EventEmitter.js +1 -3
  22. package/out/common/EventEmitter.js.map +1 -1
  23. package/out/common/index.d.ts +0 -1
  24. package/out/common/index.js +0 -1
  25. package/out/common/index.js.map +1 -1
  26. package/out/concepts/Abort__.d.ts +3 -2
  27. package/out/concepts/Abort__.js +14 -16
  28. package/out/concepts/Abort__.js.map +1 -1
  29. package/out/concepts/Anchor__.d.ts +3 -2
  30. package/out/concepts/Anchor__.js +21 -20
  31. package/out/concepts/Anchor__.js.map +1 -1
  32. package/out/concepts/AnonymousFunction__.d.ts +3 -2
  33. package/out/concepts/AnonymousFunction__.js +39 -30
  34. package/out/concepts/AnonymousFunction__.js.map +1 -1
  35. package/out/concepts/App__.d.ts +160 -157
  36. package/out/concepts/App__.js +177 -99
  37. package/out/concepts/App__.js.map +1 -1
  38. package/out/concepts/Argument__.d.ts +3 -2
  39. package/out/concepts/Argument__.js +25 -22
  40. package/out/concepts/Argument__.js.map +1 -1
  41. package/out/concepts/Assignee__.d.ts +3 -2
  42. package/out/concepts/Assignee__.js +37 -26
  43. package/out/concepts/Assignee__.js.map +1 -1
  44. package/out/concepts/AssignmentLine__.d.ts +3 -2
  45. package/out/concepts/AssignmentLine__.js +20 -18
  46. package/out/concepts/AssignmentLine__.js.map +1 -1
  47. package/out/concepts/Assignment__.d.ts +3 -2
  48. package/out/concepts/Assignment__.js +39 -29
  49. package/out/concepts/Assignment__.js.map +1 -1
  50. package/out/concepts/Attribute__.d.ts +3 -2
  51. package/out/concepts/Attribute__.js +39 -29
  52. package/out/concepts/Attribute__.js.map +1 -1
  53. package/out/concepts/AuthInterface__.d.ts +4 -3
  54. package/out/concepts/AuthInterface__.js +16 -17
  55. package/out/concepts/AuthInterface__.js.map +1 -1
  56. package/out/concepts/AuthLogicForCallInterface__.d.ts +4 -3
  57. package/out/concepts/AuthLogicForCallInterface__.js +41 -28
  58. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  59. package/out/concepts/AuthLogic__.d.ts +4 -3
  60. package/out/concepts/AuthLogic__.js +18 -19
  61. package/out/concepts/AuthLogic__.js.map +1 -1
  62. package/out/concepts/BackendVariable__.d.ts +8 -7
  63. package/out/concepts/BackendVariable__.js +41 -34
  64. package/out/concepts/BackendVariable__.js.map +1 -1
  65. package/out/concepts/Backend__.d.ts +32 -31
  66. package/out/concepts/Backend__.js +26 -22
  67. package/out/concepts/Backend__.js.map +1 -1
  68. package/out/concepts/BatchAssignment__.d.ts +3 -2
  69. package/out/concepts/BatchAssignment__.js +56 -39
  70. package/out/concepts/BatchAssignment__.js.map +1 -1
  71. package/out/concepts/BinaryExpression__.d.ts +3 -2
  72. package/out/concepts/BinaryExpression__.js +50 -41
  73. package/out/concepts/BinaryExpression__.js.map +1 -1
  74. package/out/concepts/BindAttribute__.d.ts +12 -8
  75. package/out/concepts/BindAttribute__.js +116 -59
  76. package/out/concepts/BindAttribute__.js.map +1 -1
  77. package/out/concepts/BindDirective__.d.ts +5 -3
  78. package/out/concepts/BindDirective__.js +40 -29
  79. package/out/concepts/BindDirective__.js.map +1 -1
  80. package/out/concepts/BindEvent__.d.ts +3 -2
  81. package/out/concepts/BindEvent__.js +59 -19
  82. package/out/concepts/BindEvent__.js.map +1 -1
  83. package/out/concepts/BindStyle__.d.ts +5 -3
  84. package/out/concepts/BindStyle__.js +30 -24
  85. package/out/concepts/BindStyle__.js.map +1 -1
  86. package/out/concepts/BooleanLiteral__.d.ts +3 -2
  87. package/out/concepts/BooleanLiteral__.js +16 -17
  88. package/out/concepts/BooleanLiteral__.js.map +1 -1
  89. package/out/concepts/CallAuthInterface__.d.ts +3 -2
  90. package/out/concepts/CallAuthInterface__.js +20 -19
  91. package/out/concepts/CallAuthInterface__.js.map +1 -1
  92. package/out/concepts/CallConnector__.d.ts +5 -4
  93. package/out/concepts/CallConnector__.js +40 -33
  94. package/out/concepts/CallConnector__.js.map +1 -1
  95. package/out/concepts/CallFunction__.d.ts +3 -2
  96. package/out/concepts/CallFunction__.js +40 -28
  97. package/out/concepts/CallFunction__.js.map +1 -1
  98. package/out/concepts/CallInterface__.d.ts +5 -3
  99. package/out/concepts/CallInterface__.js +74 -31
  100. package/out/concepts/CallInterface__.js.map +1 -1
  101. package/out/concepts/CallLogic__.d.ts +6 -5
  102. package/out/concepts/CallLogic__.js +145 -82
  103. package/out/concepts/CallLogic__.js.map +1 -1
  104. package/out/concepts/CallQueryComponent__.d.ts +3 -2
  105. package/out/concepts/CallQueryComponent__.js +90 -50
  106. package/out/concepts/CallQueryComponent__.js.map +1 -1
  107. package/out/concepts/Comment__.d.ts +3 -2
  108. package/out/concepts/Comment__.js +16 -17
  109. package/out/concepts/Comment__.js.map +1 -1
  110. package/out/concepts/CompletionProperty__.d.ts +3 -2
  111. package/out/concepts/CompletionProperty__.js +33 -26
  112. package/out/concepts/CompletionProperty__.js.map +1 -1
  113. package/out/concepts/ConfigGroup__.d.ts +3 -2
  114. package/out/concepts/ConfigGroup__.js +25 -21
  115. package/out/concepts/ConfigGroup__.js.map +1 -1
  116. package/out/concepts/ConfigPropertyValue__.d.ts +3 -2
  117. package/out/concepts/ConfigPropertyValue__.js +16 -16
  118. package/out/concepts/ConfigPropertyValue__.js.map +1 -1
  119. package/out/concepts/ConfigProperty__.d.ts +3 -2
  120. package/out/concepts/ConfigProperty__.js +29 -23
  121. package/out/concepts/ConfigProperty__.js.map +1 -1
  122. package/out/concepts/Configuration__.d.ts +3 -2
  123. package/out/concepts/Configuration__.js +20 -19
  124. package/out/concepts/Configuration__.js.map +1 -1
  125. package/out/concepts/Connection__.d.ts +4 -4
  126. package/out/concepts/Connection__.js +26 -19
  127. package/out/concepts/Connection__.js.map +1 -1
  128. package/out/concepts/ConnectorTrigger__.d.ts +7 -6
  129. package/out/concepts/ConnectorTrigger__.js +22 -21
  130. package/out/concepts/ConnectorTrigger__.js.map +1 -1
  131. package/out/concepts/Connector__.d.ts +139 -33
  132. package/out/concepts/Connector__.js +216 -40
  133. package/out/concepts/Connector__.js.map +1 -1
  134. package/out/concepts/Constant__.d.ts +3 -2
  135. package/out/concepts/Constant__.js +27 -23
  136. package/out/concepts/Constant__.js.map +1 -1
  137. package/out/concepts/DataSource__.d.ts +7 -2
  138. package/out/concepts/DataSource__.js +35 -24
  139. package/out/concepts/DataSource__.js.map +1 -1
  140. package/out/concepts/DatabaseTypeAnnotation__.d.ts +5 -4
  141. package/out/concepts/DatabaseTypeAnnotation__.js +18 -18
  142. package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
  143. package/out/concepts/Destination__.d.ts +11 -10
  144. package/out/concepts/Destination__.js +44 -38
  145. package/out/concepts/Destination__.js.map +1 -1
  146. package/out/concepts/End__.d.ts +3 -2
  147. package/out/concepts/End__.js +14 -16
  148. package/out/concepts/End__.js.map +1 -1
  149. package/out/concepts/EntityIndex__.d.ts +4 -3
  150. package/out/concepts/EntityIndex__.js +25 -21
  151. package/out/concepts/EntityIndex__.js.map +1 -1
  152. package/out/concepts/EntityProperty__.d.ts +4 -3
  153. package/out/concepts/EntityProperty__.js +59 -53
  154. package/out/concepts/EntityProperty__.js.map +1 -1
  155. package/out/concepts/Entity__.d.ts +3 -2
  156. package/out/concepts/Entity__.js +39 -28
  157. package/out/concepts/Entity__.js.map +1 -1
  158. package/out/concepts/EnumItem__.d.ts +3 -2
  159. package/out/concepts/EnumItem__.js +18 -18
  160. package/out/concepts/EnumItem__.js.map +1 -1
  161. package/out/concepts/Enum__.d.ts +3 -2
  162. package/out/concepts/Enum__.js +26 -22
  163. package/out/concepts/Enum__.js.map +1 -1
  164. package/out/concepts/Event__.d.ts +3 -2
  165. package/out/concepts/Event__.js +28 -22
  166. package/out/concepts/Event__.js.map +1 -1
  167. package/out/concepts/ExternalDestination__.d.ts +6 -5
  168. package/out/concepts/ExternalDestination__.js +31 -27
  169. package/out/concepts/ExternalDestination__.js.map +1 -1
  170. package/out/concepts/ForEachStatement__.d.ts +3 -2
  171. package/out/concepts/ForEachStatement__.js +39 -22
  172. package/out/concepts/ForEachStatement__.js.map +1 -1
  173. package/out/concepts/FrontendLibrary__.d.ts +4 -3
  174. package/out/concepts/FrontendLibrary__.js +35 -27
  175. package/out/concepts/FrontendLibrary__.js.map +1 -1
  176. package/out/concepts/FrontendVariable__.d.ts +4 -3
  177. package/out/concepts/FrontendVariable__.js +12 -12
  178. package/out/concepts/FrontendVariable__.js.map +1 -1
  179. package/out/concepts/Frontend__.d.ts +8 -6
  180. package/out/concepts/Frontend__.js +65 -43
  181. package/out/concepts/Frontend__.js.map +1 -1
  182. package/out/concepts/Function__.d.ts +3 -2
  183. package/out/concepts/Function__.js +55 -36
  184. package/out/concepts/Function__.js.map +1 -1
  185. package/out/concepts/Identifier__.d.ts +4 -3
  186. package/out/concepts/Identifier__.js +29 -28
  187. package/out/concepts/Identifier__.js.map +1 -1
  188. package/out/concepts/IfStatement__.d.ts +3 -2
  189. package/out/concepts/IfStatement__.js +31 -24
  190. package/out/concepts/IfStatement__.js.map +1 -1
  191. package/out/concepts/Integration__.d.ts +93 -2
  192. package/out/concepts/Integration__.js +163 -20
  193. package/out/concepts/Integration__.js.map +1 -1
  194. package/out/concepts/InterfaceParam__.d.ts +30 -4
  195. package/out/concepts/InterfaceParam__.js +61 -25
  196. package/out/concepts/InterfaceParam__.js.map +1 -1
  197. package/out/concepts/Interface__.d.ts +34 -6
  198. package/out/concepts/Interface__.js +117 -38
  199. package/out/concepts/Interface__.js.map +1 -1
  200. package/out/concepts/JSBlock__.d.ts +3 -2
  201. package/out/concepts/JSBlock__.js +16 -17
  202. package/out/concepts/JSBlock__.js.map +1 -1
  203. package/out/concepts/JavaLogic__.d.ts +4 -3
  204. package/out/concepts/JavaLogic__.js +21 -20
  205. package/out/concepts/JavaLogic__.js.map +1 -1
  206. package/out/concepts/LogicItem__.d.ts +3 -2
  207. package/out/concepts/LogicItem__.js +22 -20
  208. package/out/concepts/LogicItem__.js.map +1 -1
  209. package/out/concepts/Logic__.d.ts +17 -17
  210. package/out/concepts/Logic__.js +123 -66
  211. package/out/concepts/Logic__.js.map +1 -1
  212. package/out/concepts/MatchCase__.d.ts +3 -2
  213. package/out/concepts/MatchCase__.js +31 -24
  214. package/out/concepts/MatchCase__.js.map +1 -1
  215. package/out/concepts/Match__.d.ts +3 -2
  216. package/out/concepts/Match__.js +26 -22
  217. package/out/concepts/Match__.js.map +1 -1
  218. package/out/concepts/MemberExpression__.d.ts +3 -2
  219. package/out/concepts/MemberExpression__.js +70 -42
  220. package/out/concepts/MemberExpression__.js.map +1 -1
  221. package/out/concepts/MicroApp__.d.ts +3 -2
  222. package/out/concepts/MicroApp__.js +26 -21
  223. package/out/concepts/MicroApp__.js.map +1 -1
  224. package/out/concepts/Module__.d.ts +219 -47
  225. package/out/concepts/Module__.js +285 -44
  226. package/out/concepts/Module__.js.map +1 -1
  227. package/out/concepts/MsgTriggerEvent__.d.ts +4 -3
  228. package/out/concepts/MsgTriggerEvent__.js +20 -19
  229. package/out/concepts/MsgTriggerEvent__.js.map +1 -1
  230. package/out/concepts/MsgTriggerLauncher__.d.ts +4 -3
  231. package/out/concepts/MsgTriggerLauncher__.js +22 -20
  232. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  233. package/out/concepts/Namespace__.d.ts +4 -2
  234. package/out/concepts/Namespace__.js +112 -58
  235. package/out/concepts/Namespace__.js.map +1 -1
  236. package/out/concepts/NewComposite__.d.ts +4 -2
  237. package/out/concepts/NewComposite__.js +85 -46
  238. package/out/concepts/NewComposite__.js.map +1 -1
  239. package/out/concepts/NewList__.d.ts +5 -3
  240. package/out/concepts/NewList__.js +41 -26
  241. package/out/concepts/NewList__.js.map +1 -1
  242. package/out/concepts/NewMap__.d.ts +5 -3
  243. package/out/concepts/NewMap__.js +49 -30
  244. package/out/concepts/NewMap__.js.map +1 -1
  245. package/out/concepts/New__.d.ts +3 -2
  246. package/out/concepts/New__.js +14 -16
  247. package/out/concepts/New__.js.map +1 -1
  248. package/out/concepts/NullLiteral__.d.ts +3 -2
  249. package/out/concepts/NullLiteral__.js +14 -16
  250. package/out/concepts/NullLiteral__.js.map +1 -1
  251. package/out/concepts/NumericLiteral__.d.ts +3 -2
  252. package/out/concepts/NumericLiteral__.js +23 -21
  253. package/out/concepts/NumericLiteral__.js.map +1 -1
  254. package/out/concepts/OqlQueryComponent__.d.ts +3 -2
  255. package/out/concepts/OqlQueryComponent__.js +28 -23
  256. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  257. package/out/concepts/OverriddenLogic__.d.ts +14 -22
  258. package/out/concepts/OverriddenLogic__.js +101 -70
  259. package/out/concepts/OverriddenLogic__.js.map +1 -1
  260. package/out/concepts/Param__.d.ts +3 -2
  261. package/out/concepts/Param__.js +37 -29
  262. package/out/concepts/Param__.js.map +1 -1
  263. package/out/concepts/Point__.d.ts +3 -2
  264. package/out/concepts/Point__.js +16 -16
  265. package/out/concepts/Point__.js.map +1 -1
  266. package/out/concepts/ProcessComponent__.d.ts +3 -2
  267. package/out/concepts/ProcessComponent__.js +32 -24
  268. package/out/concepts/ProcessComponent__.js.map +1 -1
  269. package/out/concepts/ProcessElement__.d.ts +3 -2
  270. package/out/concepts/ProcessElement__.js +90 -53
  271. package/out/concepts/ProcessElement__.js.map +1 -1
  272. package/out/concepts/ProcessOutcome__.d.ts +3 -2
  273. package/out/concepts/ProcessOutcome__.js +16 -17
  274. package/out/concepts/ProcessOutcome__.js.map +1 -1
  275. package/out/concepts/ProcessOutcomes__.d.ts +3 -2
  276. package/out/concepts/ProcessOutcomes__.js +17 -17
  277. package/out/concepts/ProcessOutcomes__.js.map +1 -1
  278. package/out/concepts/Process__.d.ts +5 -7
  279. package/out/concepts/Process__.js +66 -40
  280. package/out/concepts/Process__.js.map +1 -1
  281. package/out/concepts/QueryAggregateExpression__.d.ts +3 -2
  282. package/out/concepts/QueryAggregateExpression__.js +25 -22
  283. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  284. package/out/concepts/QueryFieldExpression__.d.ts +4 -3
  285. package/out/concepts/QueryFieldExpression__.js +20 -19
  286. package/out/concepts/QueryFieldExpression__.js.map +1 -1
  287. package/out/concepts/QueryFromExpression__.d.ts +4 -3
  288. package/out/concepts/QueryFromExpression__.js +26 -22
  289. package/out/concepts/QueryFromExpression__.js.map +1 -1
  290. package/out/concepts/QueryGroupByExpression__.d.ts +3 -2
  291. package/out/concepts/QueryGroupByExpression__.js +21 -20
  292. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  293. package/out/concepts/QueryJoinExpression__.d.ts +4 -3
  294. package/out/concepts/QueryJoinExpression__.js +36 -26
  295. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  296. package/out/concepts/QueryLimitExpression__.d.ts +3 -2
  297. package/out/concepts/QueryLimitExpression__.js +27 -23
  298. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  299. package/out/concepts/QueryOrderByExpression__.d.ts +3 -2
  300. package/out/concepts/QueryOrderByExpression__.js +27 -23
  301. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  302. package/out/concepts/QuerySelectExpression__.d.ts +3 -2
  303. package/out/concepts/QuerySelectExpression__.js +27 -22
  304. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  305. package/out/concepts/Rect__.d.ts +3 -2
  306. package/out/concepts/Rect__.js +20 -18
  307. package/out/concepts/Rect__.js.map +1 -1
  308. package/out/concepts/Return__.d.ts +3 -2
  309. package/out/concepts/Return__.js +31 -26
  310. package/out/concepts/Return__.js.map +1 -1
  311. package/out/concepts/Role__.d.ts +3 -2
  312. package/out/concepts/Role__.js +21 -20
  313. package/out/concepts/Role__.js.map +1 -1
  314. package/out/concepts/SelectMembers__.d.ts +3 -2
  315. package/out/concepts/SelectMembers__.js +26 -22
  316. package/out/concepts/SelectMembers__.js.map +1 -1
  317. package/out/concepts/Slot__.d.ts +3 -2
  318. package/out/concepts/Slot__.js +29 -23
  319. package/out/concepts/Slot__.js.map +1 -1
  320. package/out/concepts/SqlQueryComponent__.d.ts +3 -2
  321. package/out/concepts/SqlQueryComponent__.js +30 -24
  322. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  323. package/out/concepts/Start__.d.ts +3 -2
  324. package/out/concepts/Start__.js +14 -16
  325. package/out/concepts/Start__.js.map +1 -1
  326. package/out/concepts/StringInterpolation__.d.ts +3 -2
  327. package/out/concepts/StringInterpolation__.js +20 -19
  328. package/out/concepts/StringInterpolation__.js.map +1 -1
  329. package/out/concepts/StringLiteral__.d.ts +3 -2
  330. package/out/concepts/StringLiteral__.js +14 -16
  331. package/out/concepts/StringLiteral__.js.map +1 -1
  332. package/out/concepts/StructureProperty__.d.ts +9 -4
  333. package/out/concepts/StructureProperty__.js +42 -30
  334. package/out/concepts/StructureProperty__.js.map +1 -1
  335. package/out/concepts/Structure__.d.ts +7 -11
  336. package/out/concepts/Structure__.js +59 -34
  337. package/out/concepts/Structure__.js.map +1 -1
  338. package/out/concepts/SwitchCase__.d.ts +3 -2
  339. package/out/concepts/SwitchCase__.js +26 -22
  340. package/out/concepts/SwitchCase__.js.map +1 -1
  341. package/out/concepts/SwitchStatement__.d.ts +3 -2
  342. package/out/concepts/SwitchStatement__.js +26 -21
  343. package/out/concepts/SwitchStatement__.js.map +1 -1
  344. package/out/concepts/Theme__.d.ts +3 -2
  345. package/out/concepts/Theme__.js +12 -14
  346. package/out/concepts/Theme__.js.map +1 -1
  347. package/out/concepts/Transactional__.d.ts +3 -2
  348. package/out/concepts/Transactional__.js +18 -17
  349. package/out/concepts/Transactional__.js.map +1 -1
  350. package/out/concepts/TriggerEvent__.d.ts +3 -2
  351. package/out/concepts/TriggerEvent__.js +23 -19
  352. package/out/concepts/TriggerEvent__.js.map +1 -1
  353. package/out/concepts/TriggerLauncher__.d.ts +6 -17
  354. package/out/concepts/TriggerLauncher__.js +25 -62
  355. package/out/concepts/TriggerLauncher__.js.map +1 -1
  356. package/out/concepts/TypeAnnotation__.d.ts +8 -5
  357. package/out/concepts/TypeAnnotation__.js +67 -35
  358. package/out/concepts/TypeAnnotation__.js.map +1 -1
  359. package/out/concepts/TypeParam__.d.ts +3 -2
  360. package/out/concepts/TypeParam__.js +16 -17
  361. package/out/concepts/TypeParam__.js.map +1 -1
  362. package/out/concepts/UnaryExpression__.d.ts +3 -2
  363. package/out/concepts/UnaryExpression__.js +23 -21
  364. package/out/concepts/UnaryExpression__.js.map +1 -1
  365. package/out/concepts/Unparsed__.d.ts +3 -2
  366. package/out/concepts/Unparsed__.js +16 -17
  367. package/out/concepts/Unparsed__.js.map +1 -1
  368. package/out/concepts/UseComponent__.d.ts +3 -2
  369. package/out/concepts/UseComponent__.js +16 -16
  370. package/out/concepts/UseComponent__.js.map +1 -1
  371. package/out/concepts/ValidationRule__.d.ts +17 -16
  372. package/out/concepts/ValidationRule__.js +28 -18
  373. package/out/concepts/ValidationRule__.js.map +1 -1
  374. package/out/concepts/Variable__.d.ts +3 -2
  375. package/out/concepts/Variable__.js +31 -26
  376. package/out/concepts/Variable__.js.map +1 -1
  377. package/out/concepts/ViewBlock__.d.ts +4 -3
  378. package/out/concepts/ViewBlock__.js +20 -19
  379. package/out/concepts/ViewBlock__.js.map +1 -1
  380. package/out/concepts/ViewComponent__.d.ts +32 -31
  381. package/out/concepts/ViewComponent__.js +59 -38
  382. package/out/concepts/ViewComponent__.js.map +1 -1
  383. package/out/concepts/ViewElement__.d.ts +84 -81
  384. package/out/concepts/ViewElement__.js +347 -159
  385. package/out/concepts/ViewElement__.js.map +1 -1
  386. package/out/concepts/View__.d.ts +5 -3
  387. package/out/concepts/View__.js +166 -120
  388. package/out/concepts/View__.js.map +1 -1
  389. package/out/concepts/WhileStatement__.d.ts +3 -2
  390. package/out/concepts/WhileStatement__.js +26 -22
  391. package/out/concepts/WhileStatement__.js.map +1 -1
  392. package/out/concepts/index__.d.ts +0 -1
  393. package/out/concepts/index__.js +0 -1
  394. package/out/concepts/index__.js.map +1 -1
  395. package/out/concepts/types__.d.ts +2 -3
  396. package/out/decorators/index.d.ts +5 -3
  397. package/out/decorators/index.js +15 -9
  398. package/out/decorators/index.js.map +1 -1
  399. package/out/generator/genBundleFiles.d.ts +2 -2
  400. package/out/generator/genBundleFiles.js +11 -4
  401. package/out/generator/genBundleFiles.js.map +1 -1
  402. package/out/generator/genReleaseBody.d.ts +4 -2
  403. package/out/generator/genReleaseBody.js +192 -136
  404. package/out/generator/genReleaseBody.js.map +1 -1
  405. package/out/natural/genNaturalTS.js +15 -14
  406. package/out/natural/genNaturalTS.js.map +1 -1
  407. package/out/natural/index.d.ts +0 -2
  408. package/out/natural/index.js +0 -2
  409. package/out/natural/index.js.map +1 -1
  410. package/out/sentry/index.js +2 -2
  411. package/out/sentry/index.js.map +1 -1
  412. package/out/server/createUiTs.js +34 -1
  413. package/out/server/createUiTs.js.map +1 -1
  414. package/out/server/extendBaseNode.js +17 -17
  415. package/out/server/extendBaseNode.js.map +1 -1
  416. package/out/server/formatTsUtils.d.ts +3 -3
  417. package/out/server/formatTsUtils.js +0 -10
  418. package/out/server/formatTsUtils.js.map +1 -1
  419. package/out/server/getConnector.d.ts +3 -0
  420. package/out/server/getConnector.js +38 -1
  421. package/out/server/getConnector.js.map +1 -1
  422. package/out/server/getMemberIdentifier.d.ts +4 -4
  423. package/out/server/getMemberIdentifier.js +1 -2
  424. package/out/server/getMemberIdentifier.js.map +1 -1
  425. package/out/server/index.js +2 -0
  426. package/out/server/index.js.map +1 -1
  427. package/out/server/naslServer.d.ts +13 -2
  428. package/out/server/naslServer.js +213 -118
  429. package/out/server/naslServer.js.map +1 -1
  430. package/out/server/translator.js +2 -4
  431. package/out/server/translator.js.map +1 -1
  432. package/out/service/creator/add.configs.js +26 -0
  433. package/out/service/creator/add.configs.js.map +1 -1
  434. package/out/service/creator/errHandles.js +5 -3
  435. package/out/service/creator/errHandles.js.map +1 -1
  436. package/out/service/creator/index.js +13 -0
  437. package/out/service/creator/index.js.map +1 -1
  438. package/out/service/storage/jsoner.js +1 -1
  439. package/out/service/storage/jsoner.js.map +1 -1
  440. package/out/templator/genCurdEditMultipleKeyBlock.js +3 -3
  441. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  442. package/out/templator/genCurdMultipleKeyBlock.js +3 -3
  443. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  444. package/out/templator/genTableBlock.js +1 -1
  445. package/out/templator/genTableBlock.js.map +1 -1
  446. package/out/translator/constant.d.ts +6 -0
  447. package/out/translator/constant.js +10 -0
  448. package/out/translator/constant.js.map +1 -0
  449. package/out/translator/index.d.ts +3 -48
  450. package/out/translator/index.js +17 -110
  451. package/out/translator/index.js.map +1 -1
  452. package/out/translator/types.d.ts +32 -0
  453. package/out/translator/{tsp.js → types.js} +1 -1
  454. package/out/translator/types.js.map +1 -0
  455. package/out/translator/utils.d.ts +17 -0
  456. package/out/translator/utils.js +98 -0
  457. package/out/translator/utils.js.map +1 -0
  458. package/out/utils/cookie.d.ts +9 -0
  459. package/out/utils/cookie.js +62 -0
  460. package/out/utils/cookie.js.map +1 -0
  461. package/out/utils/env.d.ts +2 -0
  462. package/out/utils/env.js +6 -0
  463. package/out/utils/env.js.map +1 -0
  464. package/out/utils/index.d.ts +3 -0
  465. package/out/utils/index.js +3 -0
  466. package/out/utils/index.js.map +1 -1
  467. package/out/utils/logger.d.ts +4 -0
  468. package/out/utils/logger.js +13 -1
  469. package/out/utils/logger.js.map +1 -1
  470. package/out/utils/time-slicing.js +2 -1
  471. package/out/utils/time-slicing.js.map +1 -1
  472. package/out/utils/types.d.ts +1 -0
  473. package/out/utils/types.js +3 -0
  474. package/out/utils/types.js.map +1 -0
  475. package/out/utils/window.d.ts +7 -0
  476. package/out/utils/window.js +14 -0
  477. package/out/utils/window.js.map +1 -0
  478. package/package.json +1 -1
  479. package/sandbox/stdlib/nasl.oql.ts +2 -0
  480. package/sandbox/stdlib/nasl.ui.definition.ts +2218 -1415
  481. package/src/bak/translator.js +8 -5
  482. package/src/breakpoint/generator/AfterStartNode.ts +2 -1
  483. package/src/breakpoint/generator/BeforeEndNode.ts +2 -1
  484. package/src/breakpoint/generator/BreakpointNode.ts +36 -9
  485. package/src/breakpoint/shared/constants.ts +7 -0
  486. package/src/breakpoint/shared/utils.ts +36 -3
  487. package/src/common/BaseNode.ts +221 -136
  488. package/src/common/Command.ts +6 -1
  489. package/src/common/EventEmitter.ts +2 -4
  490. package/src/common/index.ts +0 -1
  491. package/src/concepts/Abort__.ts +18 -20
  492. package/src/concepts/Anchor__.ts +24 -23
  493. package/src/concepts/AnonymousFunction__.ts +48 -40
  494. package/src/concepts/App__.ts +435 -333
  495. package/src/concepts/Argument__.ts +29 -26
  496. package/src/concepts/Assignee__.ts +58 -43
  497. package/src/concepts/AssignmentLine__.ts +24 -23
  498. package/src/concepts/Assignment__.ts +49 -34
  499. package/src/concepts/Attribute__.ts +43 -35
  500. package/src/concepts/AuthInterface__.ts +22 -24
  501. package/src/concepts/AuthLogicForCallInterface__.ts +75 -42
  502. package/src/concepts/AuthLogic__.ts +22 -28
  503. package/src/concepts/BackendVariable__.ts +56 -53
  504. package/src/concepts/Backend__.ts +61 -59
  505. package/src/concepts/BatchAssignment__.ts +96 -61
  506. package/src/concepts/BinaryExpression__.ts +91 -45
  507. package/src/concepts/BindAttribute__.ts +165 -113
  508. package/src/concepts/BindDirective__.ts +50 -41
  509. package/src/concepts/BindEvent__.ts +88 -33
  510. package/src/concepts/BindStyle__.ts +42 -36
  511. package/src/concepts/BooleanLiteral__.ts +20 -21
  512. package/src/concepts/CallAuthInterface__.ts +31 -31
  513. package/src/concepts/CallConnector__.ts +48 -39
  514. package/src/concepts/CallFunction__.ts +51 -37
  515. package/src/concepts/CallInterface__.ts +82 -41
  516. package/src/concepts/CallLogic__.ts +174 -93
  517. package/src/concepts/CallQueryComponent__.ts +188 -96
  518. package/src/concepts/Comment__.ts +19 -20
  519. package/src/concepts/CompletionProperty__.ts +37 -31
  520. package/src/concepts/ConfigGroup__.ts +32 -30
  521. package/src/concepts/ConfigPropertyValue__.ts +22 -23
  522. package/src/concepts/ConfigProperty__.ts +45 -36
  523. package/src/concepts/Configuration__.ts +27 -27
  524. package/src/concepts/Connection__.ts +30 -22
  525. package/src/concepts/ConnectorTrigger__.ts +30 -34
  526. package/src/concepts/Connector__.ts +367 -93
  527. package/src/concepts/Constant__.ts +31 -35
  528. package/src/concepts/DataSource__.ts +41 -34
  529. package/src/concepts/DatabaseTypeAnnotation__.ts +24 -24
  530. package/src/concepts/Destination__.ts +55 -47
  531. package/src/concepts/End__.ts +21 -23
  532. package/src/concepts/EntityIndex__.ts +37 -32
  533. package/src/concepts/EntityProperty__.ts +71 -69
  534. package/src/concepts/Entity__.ts +48 -42
  535. package/src/concepts/EnumItem__.ts +22 -25
  536. package/src/concepts/Enum__.ts +31 -29
  537. package/src/concepts/Event__.ts +37 -34
  538. package/src/concepts/ExternalDestination__.ts +35 -31
  539. package/src/concepts/ForEachStatement__.ts +49 -31
  540. package/src/concepts/FrontendLibrary__.ts +45 -40
  541. package/src/concepts/FrontendVariable__.ts +18 -20
  542. package/src/concepts/Frontend__.ts +84 -66
  543. package/src/concepts/Function__.ts +71 -55
  544. package/src/concepts/Identifier__.ts +35 -32
  545. package/src/concepts/IfStatement__.ts +48 -41
  546. package/src/concepts/Integration__.ts +250 -25
  547. package/src/concepts/InterfaceParam__.ts +72 -34
  548. package/src/concepts/Interface__.ts +133 -50
  549. package/src/concepts/JSBlock__.ts +20 -21
  550. package/src/concepts/JavaLogic__.ts +25 -24
  551. package/src/concepts/LogicItem__.ts +27 -36
  552. package/src/concepts/Logic__.ts +186 -103
  553. package/src/concepts/MatchCase__.ts +46 -42
  554. package/src/concepts/Match__.ts +32 -28
  555. package/src/concepts/MemberExpression__.ts +178 -122
  556. package/src/concepts/MicroApp__.ts +32 -27
  557. package/src/concepts/Module__.ts +580 -119
  558. package/src/concepts/MsgTriggerEvent__.ts +29 -34
  559. package/src/concepts/MsgTriggerLauncher__.ts +31 -31
  560. package/src/concepts/Namespace__.ts +157 -111
  561. package/src/concepts/NewComposite__.ts +143 -80
  562. package/src/concepts/NewList__.ts +50 -36
  563. package/src/concepts/NewMap__.ts +60 -40
  564. package/src/concepts/New__.ts +18 -20
  565. package/src/concepts/NullLiteral__.ts +18 -20
  566. package/src/concepts/NumericLiteral__.ts +27 -25
  567. package/src/concepts/OqlQueryComponent__.ts +34 -27
  568. package/src/concepts/OverriddenLogic__.ts +156 -102
  569. package/src/concepts/Param__.ts +53 -51
  570. package/src/concepts/Point__.ts +22 -22
  571. package/src/concepts/ProcessComponent__.ts +44 -39
  572. package/src/concepts/ProcessElement__.ts +142 -92
  573. package/src/concepts/ProcessOutcome__.ts +20 -21
  574. package/src/concepts/ProcessOutcomes__.ts +21 -21
  575. package/src/concepts/Process__.ts +89 -68
  576. package/src/concepts/QueryAggregateExpression__.ts +29 -26
  577. package/src/concepts/QueryFieldExpression__.ts +24 -23
  578. package/src/concepts/QueryFromExpression__.ts +31 -27
  579. package/src/concepts/QueryGroupByExpression__.ts +25 -24
  580. package/src/concepts/QueryJoinExpression__.ts +68 -41
  581. package/src/concepts/QueryLimitExpression__.ts +31 -27
  582. package/src/concepts/QueryOrderByExpression__.ts +31 -27
  583. package/src/concepts/QuerySelectExpression__.ts +109 -55
  584. package/src/concepts/Rect__.ts +26 -24
  585. package/src/concepts/Return__.ts +43 -48
  586. package/src/concepts/Role__.ts +24 -24
  587. package/src/concepts/SelectMembers__.ts +35 -32
  588. package/src/concepts/Slot__.ts +35 -31
  589. package/src/concepts/SqlQueryComponent__.ts +42 -30
  590. package/src/concepts/Start__.ts +18 -20
  591. package/src/concepts/StringInterpolation__.ts +26 -26
  592. package/src/concepts/StringLiteral__.ts +18 -20
  593. package/src/concepts/StructureProperty__.ts +47 -37
  594. package/src/concepts/Structure__.ts +70 -47
  595. package/src/concepts/SwitchCase__.ts +45 -41
  596. package/src/concepts/SwitchStatement__.ts +30 -25
  597. package/src/concepts/Theme__.ts +18 -21
  598. package/src/concepts/Transactional__.ts +24 -31
  599. package/src/concepts/TriggerEvent__.ts +32 -30
  600. package/src/concepts/TriggerLauncher__.ts +31 -81
  601. package/src/concepts/TypeAnnotation__.ts +102 -54
  602. package/src/concepts/TypeParam__.ts +19 -20
  603. package/src/concepts/UnaryExpression__.ts +26 -24
  604. package/src/concepts/Unparsed__.ts +19 -20
  605. package/src/concepts/UseComponent__.ts +22 -22
  606. package/src/concepts/ValidationRule__.ts +544 -553
  607. package/src/concepts/Variable__.ts +44 -48
  608. package/src/concepts/ViewBlock__.ts +26 -25
  609. package/src/concepts/ViewComponent__.ts +111 -97
  610. package/src/concepts/ViewElement__.ts +2778 -2431
  611. package/src/concepts/View__.ts +364 -308
  612. package/src/concepts/WhileStatement__.ts +40 -36
  613. package/src/concepts/index__.ts +0 -1
  614. package/src/concepts/types__.ts +123 -125
  615. package/src/decorators/index.ts +18 -12
  616. package/src/generator/genBundleFiles.ts +14 -4
  617. package/src/generator/genReleaseBody.ts +198 -182
  618. package/src/natural/genNaturalTS.ts +18 -17
  619. package/src/natural/index.ts +0 -2
  620. package/src/sentry/index.ts +2 -2
  621. package/src/server/createUiTs.ts +30 -1
  622. package/src/server/extendBaseNode.ts +18 -18
  623. package/src/server/formatTsUtils.ts +8 -19
  624. package/src/server/getConnector.ts +63 -27
  625. package/src/server/getMemberIdentifier.ts +6 -7
  626. package/src/server/index.ts +4 -1
  627. package/src/server/naslServer.ts +215 -122
  628. package/src/server/translator.ts +1 -3
  629. package/src/service/creator/add.configs.js +26 -1
  630. package/src/service/creator/errHandles.js +5 -4
  631. package/src/service/creator/index.js +12 -0
  632. package/src/service/storage/init.ts +2 -2
  633. package/src/service/storage/jsoner.ts +1 -1
  634. package/src/templator/genCurdEditMultipleKeyBlock.ts +3 -3
  635. package/src/templator/genCurdMultipleKeyBlock.ts +3 -3
  636. package/src/templator/genTableBlock.ts +1 -1
  637. package/src/translator/constant.ts +7 -0
  638. package/src/translator/index.ts +3 -137
  639. package/src/translator/types.ts +40 -0
  640. package/src/translator/utils.ts +102 -0
  641. package/src/utils/cookie.ts +60 -0
  642. package/src/utils/env.ts +2 -0
  643. package/src/utils/index.ts +3 -0
  644. package/src/utils/logger.ts +13 -0
  645. package/src/utils/time-slicing.ts +3 -1
  646. package/src/utils/types.ts +1 -0
  647. package/src/utils/window.ts +9 -0
  648. package/test/concepts/anonymous-function/__snapshots__/toEmbeddedTS.spec.ts.snap +8 -0
  649. package/test/concepts/anonymous-function/__snapshots__/toJS.spec.ts.snap +3 -0
  650. package/test/concepts/anonymous-function/__snapshots__/toVue.spec.ts.snap +6 -0
  651. package/test/concepts/anonymous-function/constant.ts +5 -0
  652. package/test/concepts/anonymous-function/fixtures/simple.json +85 -0
  653. package/test/concepts/anonymous-function/toEmbeddedTS.spec.ts +14 -0
  654. package/test/concepts/anonymous-function/toJS.spec.ts +14 -0
  655. package/test/concepts/anonymous-function/toVue.spec.ts +14 -0
  656. package/test/concepts/assignment/__snapshots__/toEmbeddedTS.spec.ts.snap +21 -0
  657. package/test/concepts/assignment/__snapshots__/toJS.spec.ts.snap +9 -0
  658. package/test/concepts/assignment/__snapshots__/toVue.spec.ts.snap +21 -0
  659. package/test/concepts/assignment/constant.ts +5 -0
  660. package/test/concepts/assignment/fixtures/both-space.json +4 -0
  661. package/test/concepts/assignment/fixtures/left-space.json +14 -0
  662. package/test/concepts/assignment/fixtures/right-space.json +8 -0
  663. package/test/concepts/assignment/fixtures/simple.json +12 -0
  664. package/test/concepts/assignment/toEmbeddedTS.spec.ts +14 -0
  665. package/test/concepts/assignment/toJS.spec.ts +14 -0
  666. package/test/concepts/assignment/toVue.spec.ts +14 -0
  667. package/test/concepts/batch-assignment/__snapshots__/toEmbeddedTS.spec.ts.snap +28 -0
  668. package/test/concepts/batch-assignment/__snapshots__/toJS.spec.ts.snap +13 -0
  669. package/test/concepts/batch-assignment/__snapshots__/toVue.spec.ts.snap +14 -0
  670. package/test/concepts/batch-assignment/constant.ts +5 -0
  671. package/test/concepts/batch-assignment/fixtures/muli-var-muli-value.json +144 -0
  672. package/test/concepts/batch-assignment/fixtures/simple-var-simple-value.json +36 -0
  673. package/test/concepts/batch-assignment/toEmbeddedTS.spec.ts +14 -0
  674. package/test/concepts/batch-assignment/toJS.spec.ts +14 -0
  675. package/test/concepts/batch-assignment/toVue.spec.ts +14 -0
  676. package/test/concepts/binary-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +25 -0
  677. package/test/concepts/binary-expression/__snapshots__/toJS.spec.ts.snap +16 -0
  678. package/test/concepts/binary-expression/__snapshots__/toVue.spec.ts.snap +19 -0
  679. package/test/concepts/binary-expression/constant.ts +5 -0
  680. package/test/concepts/binary-expression/fixtures/constant-nested.json +36 -0
  681. package/test/concepts/binary-expression/fixtures/constant-simple.json +12 -0
  682. package/test/concepts/binary-expression/fixtures/variable-nested.json +69 -0
  683. package/test/concepts/binary-expression/toEmbeddedTS.spec.ts +14 -0
  684. package/test/concepts/binary-expression/toJS.spec.ts +14 -0
  685. package/test/concepts/binary-expression/toVue.spec.ts +14 -0
  686. package/test/concepts/boolean-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +11 -0
  687. package/test/concepts/boolean-literal/__snapshots__/toJS.spec.ts.snap +11 -0
  688. package/test/concepts/boolean-literal/__snapshots__/toVue.spec.ts.snap +11 -0
  689. package/test/concepts/boolean-literal/constant.ts +5 -0
  690. package/test/concepts/boolean-literal/fixtures/false.json +4 -0
  691. package/test/concepts/boolean-literal/fixtures/true.json +4 -0
  692. package/test/concepts/boolean-literal/toEmbeddedTS.spec.ts +14 -0
  693. package/test/concepts/boolean-literal/toJS.spec.ts +14 -0
  694. package/test/concepts/boolean-literal/toVue.spec.ts +14 -0
  695. package/test/concepts/call-interface/toEmbeddedTS.spec.ts +6 -6
  696. package/test/concepts/call-interface/toJS.spec.ts +6 -6
  697. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +106 -0
  698. package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +45 -0
  699. package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +102 -0
  700. package/test/concepts/call-logic/fixtures/nested-call-logic.json +860 -0
  701. package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +23 -0
  702. package/test/concepts/call-logic/toEmbeddedTS.spec.ts +6 -6
  703. package/test/concepts/call-logic/toJS.spec.ts +6 -6
  704. package/test/concepts/data-source/__snapshots__/toEmbeddedTS.spec.ts.snap +8 -0
  705. package/test/concepts/data-source/__snapshots__/toEmbeddedTSFile.spec.ts.snap +12 -0
  706. package/test/concepts/data-source/constant.ts +5 -0
  707. package/test/concepts/data-source/fixtures/normal.json +289 -0
  708. package/test/concepts/data-source/toEmbeddedTS.spec.ts +14 -0
  709. package/test/concepts/data-source/toEmbeddedTSFile.spec.ts +15 -0
  710. package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +74 -0
  711. package/test/concepts/entity/__snapshots__/toEmbeddedTSFile.spec.ts.snap +3 -0
  712. package/test/concepts/entity/constant.ts +5 -0
  713. package/test/concepts/entity/fixtures/normal.json +469 -0
  714. package/test/concepts/entity/toEmbeddedTS.spec.ts +14 -0
  715. package/test/concepts/entity/toEmbeddedTSFile.spec.ts +14 -0
  716. package/test/concepts/identifier/__snapshots__/toEmbeddedTS.spec.ts.snap +16 -0
  717. package/test/concepts/identifier/__snapshots__/toJS.spec.ts.snap +16 -0
  718. package/test/concepts/identifier/__snapshots__/toVue.spec.ts.snap +16 -0
  719. package/test/concepts/identifier/constant.ts +5 -0
  720. package/test/concepts/identifier/fixtures/data-source.json +5 -0
  721. package/test/concepts/identifier/fixtures/no-namespace.json +4 -0
  722. package/test/concepts/identifier/fixtures/view-variable.json +201 -0
  723. package/test/concepts/identifier/toEmbeddedTS.spec.ts +14 -0
  724. package/test/concepts/identifier/toJS.spec.ts +14 -0
  725. package/test/concepts/identifier/toVue.spec.ts +14 -0
  726. package/test/concepts/match/toEmbeddedTS.spec.ts +6 -6
  727. package/test/concepts/match/toJS.spec.ts +6 -6
  728. package/test/concepts/member-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +21 -0
  729. package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +21 -0
  730. package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +21 -0
  731. package/test/concepts/member-expression/constant.ts +5 -0
  732. package/test/concepts/member-expression/fixtures/app.enums.UserStatusEnum.json +13 -0
  733. package/test/concepts/member-expression/fixtures/elements.table-view.data.json +13 -0
  734. package/test/concepts/member-expression/fixtures/entry.created-by.json +18 -0
  735. package/test/concepts/member-expression/fixtures/nasl.auth.userInfo.json +19 -0
  736. package/test/concepts/member-expression/toEmbeddedTS.spec.ts +14 -0
  737. package/test/concepts/member-expression/toJS.spec.ts +14 -0
  738. package/test/concepts/member-expression/toVue.spec.ts +14 -0
  739. package/test/concepts/null-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -0
  740. package/test/concepts/null-literal/__snapshots__/toJS.spec.ts.snap +6 -0
  741. package/test/concepts/null-literal/__snapshots__/toVue.spec.ts.snap +6 -0
  742. package/test/concepts/null-literal/constant.ts +5 -0
  743. package/test/concepts/null-literal/fixtures/null.json +3 -0
  744. package/test/concepts/null-literal/toEmbeddedTS.spec.ts +14 -0
  745. package/test/concepts/null-literal/toJS.spec.ts +14 -0
  746. package/test/concepts/null-literal/toVue.spec.ts +14 -0
  747. package/test/concepts/numeric-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -0
  748. package/test/concepts/numeric-literal/__snapshots__/toJS.spec.ts.snap +6 -0
  749. package/test/concepts/numeric-literal/__snapshots__/toVue.spec.ts.snap +6 -0
  750. package/test/concepts/numeric-literal/constant.ts +5 -0
  751. package/test/concepts/numeric-literal/fixtures/number.json +10 -0
  752. package/test/concepts/numeric-literal/toEmbeddedTS.spec.ts +14 -0
  753. package/test/concepts/numeric-literal/toJS.spec.ts +14 -0
  754. package/test/concepts/numeric-literal/toVue.spec.ts +14 -0
  755. package/test/concepts/string-literal/__snapshots__/toEmbeddedTS.spec.ts.snap +16 -0
  756. package/test/concepts/string-literal/__snapshots__/toJS.spec.ts.snap +16 -0
  757. package/test/concepts/string-literal/__snapshots__/toVue.spec.ts.snap +16 -0
  758. package/test/concepts/string-literal/constant.ts +5 -0
  759. package/test/concepts/string-literal/fixtures/escape.json +4 -0
  760. package/test/concepts/string-literal/fixtures/space.json +4 -0
  761. package/test/concepts/string-literal/fixtures/string.json +4 -0
  762. package/test/concepts/string-literal/toEmbeddedTS.spec.ts +14 -0
  763. package/test/concepts/string-literal/toJS.spec.ts +14 -0
  764. package/test/concepts/string-literal/toVue.spec.ts +14 -0
  765. package/test/concepts/utils.ts +46 -43
  766. package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +6 -6
  767. package/test/concepts/validation-rule/toJS.spec.ts +6 -6
  768. package/test/concepts/validation-rule/validation-rule.spec.ts +8 -8
  769. package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +592 -0
  770. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +324 -12
  771. package/test/concepts/view-element/fixtures/default-login.json +333 -0
  772. package/test/concepts/view-element/fixtures/default-not-found.json +313 -313
  773. package/test/concepts/view-element/fixtures/with-role-auth.json +148 -0
  774. package/test/concepts/view-element/fixtures/with-table.json +3473 -0
  775. package/test/concepts/view-element/toEmbeddedTS.spec.ts +6 -6
  776. package/test/concepts/view-element/toVue.spec.ts +6 -6
  777. package/ts-worker/package-lock.json +6663 -101
  778. package/ts-worker/webpack.config.js +1 -1
  779. package/out/common/classMap.d.ts +0 -4
  780. package/out/common/classMap.js +0 -5
  781. package/out/common/classMap.js.map +0 -1
  782. package/out/concepts/DataElement__.d.ts +0 -46
  783. package/out/concepts/DataElement__.js +0 -118
  784. package/out/concepts/DataElement__.js.map +0 -1
  785. package/out/natural/RequirementAnalyzer.d.ts +0 -22
  786. package/out/natural/RequirementAnalyzer.js +0 -196
  787. package/out/natural/RequirementAnalyzer.js.map +0 -1
  788. package/out/natural/RequirementExecutor.d.ts +0 -51
  789. package/out/natural/RequirementExecutor.js +0 -692
  790. package/out/natural/RequirementExecutor.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/translator/lsp.d.ts +0 -45
  795. package/out/translator/lsp.js +0 -6
  796. package/out/translator/lsp.js.map +0 -1
  797. package/out/translator/tsp.d.ts +0 -12
  798. package/out/translator/tsp.js.map +0 -1
  799. package/src/common/classMap.ts +0 -3
  800. package/src/concepts/DataElement__.ts +0 -131
  801. package/src/natural/RequirementAnalyzer.ts +0 -208
  802. package/src/natural/RequirementExecutor.ts +0 -685
  803. package/src/natural/knowledgeMap.ts +0 -39
  804. package/src/test/examples/app1.json +0 -1406
  805. package/src/test/fixtures/env.ts +0 -19
  806. package/src/test/integration/connect-create-file.ts +0 -14
  807. package/src/test/integration/connect-file.ts +0 -24
  808. package/src/test/integration/node-nasl-server.ts +0 -14
  809. package/src/test/units/baseTypes/Assignment.spec.ts +0 -20
  810. package/src/test/units/baseTypes/CallLogic.spec.ts +0 -22
  811. package/src/test/units/baseTypes/StringLiteral.spec.ts +0 -60
  812. package/src/test/units/baseTypes/new.spec.ts +0 -13
  813. package/src/test/units/common/Vertex.spec.ts +0 -23
  814. package/src/test/units/data/Entity.spec.ts +0 -10
  815. package/src/test/units/login.spec.ts +0 -10
  816. package/src/test/units/page/Block.spec.ts +0 -15
  817. package/src/test/units/page/Element.spec.ts +0 -45
  818. package/src/test/units/page/example.dashboard.html +0 -46
  819. package/src/test/units/page/example.view1.html +0 -63
  820. package/src/test/units/temp/temp.spec.ts +0 -66
  821. package/src/translator/lsp.ts +0 -50
  822. 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,207 +49,254 @@ 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
  * 数据源列表
120
133
  */
121
- @property('DataSource')
134
+ @property({
135
+ objectRef: 'DataSource',
136
+ isArray: true,
137
+ })
122
138
  dataSources: Array<DataSource> = [];
123
139
 
124
140
  /**
125
141
  * 数据结构列表
126
142
  */
127
- @property('Structure')
143
+ @property({
144
+ objectRef: 'Structure',
145
+ isArray: true,
146
+ })
128
147
  structures: Array<Structure> = [];
129
148
 
130
149
  /**
131
150
  * 枚举列表
132
151
  */
133
- @property('Enum')
152
+ @property({
153
+ objectRef: 'Enum',
154
+ isArray: true,
155
+ })
134
156
  enums: Array<Enum> = [];
135
157
 
136
158
  /**
137
159
  * 逻辑列表
138
160
  */
139
- @property('Logic')
161
+ @property({
162
+ objectRef: 'Logic',
163
+ isArray: true,
164
+ })
140
165
  logics: Array<Logic> = [];
141
166
 
142
167
  /**
143
- * 逻辑列表
168
+ * 覆写逻辑列表
144
169
  */
145
- @property('OverriddenLogic')
170
+ @property({
171
+ objectRef: 'OverriddenLogic',
172
+ isArray: true,
173
+ })
146
174
  overriddenLogics: Array<OverriddenLogic> = [];
147
175
 
148
176
  /**
149
177
  * interfaces
150
178
  */
151
- @property('Interface | AuthInterface')
179
+ @property({
180
+ objectRef: 'Interface | AuthInterface',
181
+ isArray: true,
182
+ })
152
183
  interfaces: Array<Interface | AuthInterface> = [];
153
184
 
154
185
  /**
155
- * 端列表
186
+ * 前端列表
156
187
  */
157
- @property('Frontend')
188
+ @property({
189
+ objectRef: 'Frontend',
190
+ isArray: true,
191
+ })
158
192
  frontends: Array<Frontend> = [];
159
193
 
160
194
  /**
161
195
  * 后端
162
196
  */
163
- @property('Backend')
197
+ @property({
198
+ objectRef: 'Backend',
199
+ })
164
200
  backend: Backend = new Backend();
165
201
 
166
202
  /**
167
203
  * 流程列表
168
204
  */
169
- @property('Process')
205
+ @property({
206
+ objectRef: 'Process',
207
+ isArray: true,
208
+ })
170
209
  processes: Array<Process> = [];
171
210
 
172
211
  /**
173
212
  * 角色列表
174
213
  */
175
- @property('Role')
214
+ @property({
215
+ objectRef: 'Role',
216
+ isArray: true,
217
+ })
176
218
  roles: Array<Role> = [];
177
219
 
178
220
  /**
179
221
  * 配置管理
180
222
  */
181
- @property('Configuration')
223
+ @property({
224
+ objectRef: 'Configuration',
225
+ })
182
226
  configuration: Configuration = new Configuration();
183
227
 
184
228
  /**
185
229
  * 扩展模块列表
186
230
  */
187
- @property('Module | Connector')
231
+ @property({
232
+ objectRef: 'Module | Connector',
233
+ isArray: true,
234
+ })
188
235
  dependencies: Array<Module | Connector> = [];
189
236
 
190
237
  /**
191
238
  * 接口应用列表(兼容老版)
192
239
  */
193
- @property('Module')
240
+ @property({
241
+ objectRef: 'Module',
242
+ isArray: true,
243
+ })
194
244
  interfaceDependencies: Array<Module> = [];
195
245
 
196
246
  /**
197
247
  * 集成
198
248
  */
199
- @property('Integration')
200
- integration: Integration = undefined;
249
+ @property({
250
+ objectRef: 'Integration',
251
+ })
252
+ // @ts-ignore
253
+ integration!: Integration;
201
254
 
202
255
  /**
203
256
  * 暴露接口的接口鉴权
204
257
  */
205
- @property('AuthLogic')
258
+ @property({
259
+ objectRef: 'AuthLogic',
260
+ isArray: true,
261
+ })
206
262
  authLogics: Array<AuthLogic> = [];
207
263
 
208
264
  /**
209
265
  * 调用接口的鉴权模板
210
266
  */
211
- @property('AuthLogicForCallInterface')
267
+ @property({
268
+ objectRef: 'AuthLogicForCallInterface',
269
+ isArray: true,
270
+ })
212
271
  authLogicsForCallInterface: Array<AuthLogicForCallInterface> = [];
213
272
 
214
273
  /**
215
274
  * 连接
216
275
  */
217
- @property('Connection')
276
+ @property({
277
+ objectRef: 'Connection',
278
+ isArray: true,
279
+ })
218
280
  connections: Array<Connection> = [];
219
281
 
220
282
  /**
221
283
  * 触发器启动器
222
284
  */
223
- @property('TriggerLauncher')
285
+ @property({
286
+ objectRef: 'TriggerLauncher',
287
+ isArray: true,
288
+ })
224
289
  triggerLaunchers: Array<TriggerLauncher> = [];
225
290
 
226
291
  /**
227
292
  * @param source 需要合并的部分参数
228
293
  */
229
294
  constructor(source?: Partial<App>) {
230
- // @ts-ignore
231
- source = { ...App.getDefaultOptions(), ...source };
295
+ source = Object.assign({}, App.getDefaultOptions(), source);
232
296
  super(source);
233
297
  super.subConstructor(source);
234
298
  }
235
299
 
236
- getClassName() {
237
- return 'App';
238
- }
239
-
240
300
  static from(source: any, parentNode?: any, parentKey?: string): App {
241
301
  return super.from(source, parentNode, parentKey) as App;
242
302
  }
@@ -252,7 +312,6 @@ export class App extends BaseNode {
252
312
  }
253
313
  return params;
254
314
  }
255
-
256
315
  /**
257
316
  * 设置集成
258
317
  */
@@ -304,7 +363,7 @@ export class App extends BaseNode {
304
363
  name: this.getDataSourceUniqueName(),
305
364
  },
306
365
  this,
307
- 'dataSources'
366
+ 'dataSources',
308
367
  );
309
368
  } else if (typeof options === 'string') {
310
369
  dataSource = DataSource.from(
@@ -313,7 +372,7 @@ export class App extends BaseNode {
313
372
  name: options,
314
373
  },
315
374
  this,
316
- 'dataSources'
375
+ 'dataSources',
317
376
  );
318
377
  } else if (options instanceof DataSource) {
319
378
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -326,7 +385,7 @@ export class App extends BaseNode {
326
385
  ...options,
327
386
  },
328
387
  this,
329
- 'dataSources'
388
+ 'dataSources',
330
389
  );
331
390
  }
332
391
  this.dataSources.splice(index, 0, dataSource);
@@ -421,7 +480,6 @@ export class App extends BaseNode {
421
480
  const excludedSet = new Set(excludedList);
422
481
  return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
423
482
  }
424
-
425
483
  getStructureUniqueName(name = 'Structure1') {
426
484
  return utils.unique(name, this.getStructureExistingNames(), undefined, true);
427
485
  }
@@ -458,7 +516,7 @@ export class App extends BaseNode {
458
516
  name: this.getStructureUniqueName(),
459
517
  },
460
518
  this,
461
- 'structures'
519
+ 'structures',
462
520
  );
463
521
  } else if (typeof options === 'string') {
464
522
  structure = Structure.from(
@@ -467,7 +525,7 @@ export class App extends BaseNode {
467
525
  name: options,
468
526
  },
469
527
  this,
470
- 'structures'
528
+ 'structures',
471
529
  );
472
530
  } else if (options instanceof Structure) {
473
531
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -480,7 +538,7 @@ export class App extends BaseNode {
480
538
  ...options,
481
539
  },
482
540
  this,
483
- 'structures'
541
+ 'structures',
484
542
  );
485
543
  }
486
544
  this.structures.splice(index, 0, structure);
@@ -575,7 +633,6 @@ export class App extends BaseNode {
575
633
  const excludedSet = new Set(excludedList);
576
634
  return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
577
635
  }
578
-
579
636
  getEnumUniqueName(name = 'Enum1') {
580
637
  return utils.unique(name, this.getEnumExistingNames(), undefined, true);
581
638
  }
@@ -612,7 +669,7 @@ export class App extends BaseNode {
612
669
  name: this.getEnumUniqueName(),
613
670
  },
614
671
  this,
615
- 'enums'
672
+ 'enums',
616
673
  );
617
674
  } else if (typeof options === 'string') {
618
675
  enumeration = Enum.from(
@@ -621,7 +678,7 @@ export class App extends BaseNode {
621
678
  name: options,
622
679
  },
623
680
  this,
624
- 'enums'
681
+ 'enums',
625
682
  );
626
683
  } else if (options instanceof Enum) {
627
684
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -634,7 +691,7 @@ export class App extends BaseNode {
634
691
  ...options,
635
692
  },
636
693
  this,
637
- 'enums'
694
+ 'enums',
638
695
  );
639
696
  }
640
697
  this.enums.splice(index, 0, enumeration);
@@ -729,7 +786,6 @@ export class App extends BaseNode {
729
786
  const excludedSet = new Set(excludedList);
730
787
  return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
731
788
  }
732
-
733
789
  getLogicUniqueName(name = 'logic1') {
734
790
  return utils.unique(name, this.getLogicExistingNames(), undefined, true);
735
791
  }
@@ -766,7 +822,7 @@ export class App extends BaseNode {
766
822
  name: this.getLogicUniqueName(),
767
823
  },
768
824
  this,
769
- 'logics'
825
+ 'logics',
770
826
  );
771
827
  } else if (typeof options === 'string') {
772
828
  logic = Logic.from(
@@ -775,7 +831,7 @@ export class App extends BaseNode {
775
831
  name: options,
776
832
  },
777
833
  this,
778
- 'logics'
834
+ 'logics',
779
835
  );
780
836
  } else if (options instanceof Logic) {
781
837
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -788,7 +844,7 @@ export class App extends BaseNode {
788
844
  ...options,
789
845
  },
790
846
  this,
791
- 'logics'
847
+ 'logics',
792
848
  );
793
849
  }
794
850
  this.logics.splice(index, 0, logic);
@@ -880,23 +936,23 @@ export class App extends BaseNode {
880
936
  }
881
937
 
882
938
  /**
883
- * 插入开放接口的鉴权逻辑
939
+ * 插入鉴权逻辑
884
940
  * @internal
885
- * @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
941
+ * @param name 鉴权逻辑名称,如果不填会自动生成一个唯一名称
886
942
  */
887
943
  _insertAuthLogicInAuthLogicsAt(name: string, index: number): AuthLogic;
888
944
 
889
945
  /**
890
- * 插入开放接口的鉴权逻辑
946
+ * 插入鉴权逻辑
891
947
  * @internal
892
- * @param authLogicOptions 开放接口的鉴权逻辑参数
948
+ * @param authLogicOptions 鉴权逻辑参数
893
949
  */
894
950
  _insertAuthLogicInAuthLogicsAt(authLogicOptions: Partial<AuthLogic>, index: number): AuthLogic;
895
951
 
896
952
  /**
897
- * 插入开放接口的鉴权逻辑
953
+ * 插入鉴权逻辑
898
954
  * @internal
899
- * @param authLogic 已有的开放接口的鉴权逻辑实例
955
+ * @param authLogic 已有的鉴权逻辑实例
900
956
  */
901
957
  _insertAuthLogicInAuthLogicsAt(authLogic: AuthLogic, index: number): AuthLogic;
902
958
 
@@ -911,7 +967,7 @@ export class App extends BaseNode {
911
967
  name: this.getAuthLogicUniqueName(),
912
968
  },
913
969
  this,
914
- 'authLogics'
970
+ 'authLogics',
915
971
  );
916
972
  } else if (typeof options === 'string') {
917
973
  authLogic = AuthLogic.from(
@@ -920,7 +976,7 @@ export class App extends BaseNode {
920
976
  name: options,
921
977
  },
922
978
  this,
923
- 'authLogics'
979
+ 'authLogics',
924
980
  );
925
981
  } else if (options instanceof AuthLogic) {
926
982
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -933,7 +989,7 @@ export class App extends BaseNode {
933
989
  ...options,
934
990
  },
935
991
  this,
936
- 'authLogics'
992
+ 'authLogics',
937
993
  );
938
994
  }
939
995
  this.authLogics.splice(index, 0, authLogic);
@@ -941,20 +997,20 @@ export class App extends BaseNode {
941
997
  }
942
998
 
943
999
  /**
944
- * 插入开放接口的鉴权逻辑
945
- * @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
1000
+ * 插入鉴权逻辑
1001
+ * @param name 鉴权逻辑名称,如果不填会自动生成一个唯一名称
946
1002
  */
947
1003
  insertAuthLogicInAuthLogicsAt(name: string, index: number): AuthLogic;
948
1004
 
949
1005
  /**
950
- * 插入开放接口的鉴权逻辑
951
- * @param authLogicOptions 开放接口的鉴权逻辑参数
1006
+ * 插入鉴权逻辑
1007
+ * @param authLogicOptions 鉴权逻辑参数
952
1008
  */
953
1009
  insertAuthLogicInAuthLogicsAt(authLogicOptions: Partial<AuthLogic>, index: number): AuthLogic;
954
1010
 
955
1011
  /**
956
- * 插入开放接口的鉴权逻辑
957
- * @param authLogic 已有的开放接口的鉴权逻辑实例
1012
+ * 插入鉴权逻辑
1013
+ * @param authLogic 已有的鉴权逻辑实例
958
1014
  */
959
1015
  insertAuthLogicInAuthLogicsAt(authLogic: AuthLogic, index: number): AuthLogic;
960
1016
 
@@ -969,23 +1025,23 @@ export class App extends BaseNode {
969
1025
  }
970
1026
 
971
1027
  /**
972
- * 添加开放接口的鉴权逻辑
1028
+ * 添加鉴权逻辑
973
1029
  * @internal
974
- * @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
1030
+ * @param name 鉴权逻辑名称,如果不填会自动生成一个唯一名称
975
1031
  */
976
1032
  _addAuthLogicInAuthLogics(name?: string): AuthLogic;
977
1033
 
978
1034
  /**
979
- * 添加开放接口的鉴权逻辑
1035
+ * 添加鉴权逻辑
980
1036
  * @internal
981
- * @param authLogicOptions 开放接口的鉴权逻辑参数
1037
+ * @param authLogicOptions 鉴权逻辑参数
982
1038
  */
983
1039
  _addAuthLogicInAuthLogics(authLogicOptions: Partial<AuthLogic>): AuthLogic;
984
1040
 
985
1041
  /**
986
- * 添加开放接口的鉴权逻辑
1042
+ * 添加鉴权逻辑
987
1043
  * @internal
988
- * @param authLogic 已有的开放接口的鉴权逻辑实例
1044
+ * @param authLogic 已有的鉴权逻辑实例
989
1045
  */
990
1046
  _addAuthLogicInAuthLogics(authLogic: AuthLogic): AuthLogic;
991
1047
 
@@ -995,21 +1051,21 @@ export class App extends BaseNode {
995
1051
  }
996
1052
 
997
1053
  /**
998
- * 添加开放接口的鉴权逻辑
1054
+ * 添加鉴权逻辑
999
1055
  * @internal
1000
- * @param name 开放接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
1056
+ * @param name 鉴权逻辑名称,如果不填会自动生成一个唯一名称
1001
1057
  */
1002
1058
  addAuthLogicInAuthLogics(name?: string): AuthLogic;
1003
1059
 
1004
1060
  /**
1005
- * 添加开放接口的鉴权逻辑
1006
- * @param authLogicOptions 开放接口的鉴权逻辑参数
1061
+ * 添加鉴权逻辑
1062
+ * @param authLogicOptions 鉴权逻辑参数
1007
1063
  */
1008
1064
  addAuthLogicInAuthLogics(authLogicOptions: Partial<AuthLogic>): AuthLogic;
1009
1065
 
1010
1066
  /**
1011
- * 添加开放接口的鉴权逻辑
1012
- * @param authLogic 已有的开放接口的鉴权逻辑实例
1067
+ * 添加鉴权逻辑
1068
+ * @param authLogic 已有的鉴权逻辑实例
1013
1069
  */
1014
1070
  addAuthLogicInAuthLogics(authLogic: AuthLogic): AuthLogic;
1015
1071
 
@@ -1026,31 +1082,32 @@ export class App extends BaseNode {
1026
1082
 
1027
1083
  getOverriddenLogicExistingNames(excludedList: Array<OverriddenLogic> = []) {
1028
1084
  const excludedSet = new Set(excludedList);
1029
- return ((this.overriddenLogics as OverriddenLogic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1085
+ return ((this.overriddenLogics as OverriddenLogic[]) || [])
1086
+ .filter((item) => !excludedSet.has(item))
1087
+ .map((item) => item.name);
1030
1088
  }
1031
-
1032
1089
  getOverriddenLogicUniqueName(name = 'overriddenLogic1') {
1033
1090
  return utils.unique(name, this.getOverriddenLogicExistingNames(), undefined, true);
1034
1091
  }
1035
1092
 
1036
1093
  /**
1037
- * 插入逻辑
1094
+ * 插入覆写逻辑
1038
1095
  * @internal
1039
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
1096
+ * @param name 覆写逻辑名称,如果不填会自动生成一个唯一名称
1040
1097
  */
1041
1098
  _insertOverriddenLogicAt(name: string, index: number): OverriddenLogic;
1042
1099
 
1043
1100
  /**
1044
- * 插入逻辑
1101
+ * 插入覆写逻辑
1045
1102
  * @internal
1046
- * @param overriddenLogicOptions 逻辑参数
1103
+ * @param overriddenLogicOptions 覆写逻辑参数
1047
1104
  */
1048
1105
  _insertOverriddenLogicAt(overriddenLogicOptions: Partial<OverriddenLogic>, index: number): OverriddenLogic;
1049
1106
 
1050
1107
  /**
1051
- * 插入逻辑
1108
+ * 插入覆写逻辑
1052
1109
  * @internal
1053
- * @param overriddenLogic 已有的逻辑实例
1110
+ * @param overriddenLogic 已有的覆写逻辑实例
1054
1111
  */
1055
1112
  _insertOverriddenLogicAt(overriddenLogic: OverriddenLogic, index: number): OverriddenLogic;
1056
1113
 
@@ -1065,7 +1122,7 @@ export class App extends BaseNode {
1065
1122
  name: this.getOverriddenLogicUniqueName(),
1066
1123
  },
1067
1124
  this,
1068
- 'overriddenLogics'
1125
+ 'overriddenLogics',
1069
1126
  );
1070
1127
  } else if (typeof options === 'string') {
1071
1128
  overriddenLogic = OverriddenLogic.from(
@@ -1074,7 +1131,7 @@ export class App extends BaseNode {
1074
1131
  name: options,
1075
1132
  },
1076
1133
  this,
1077
- 'overriddenLogics'
1134
+ 'overriddenLogics',
1078
1135
  );
1079
1136
  } else if (options instanceof OverriddenLogic) {
1080
1137
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1087,7 +1144,7 @@ export class App extends BaseNode {
1087
1144
  ...options,
1088
1145
  },
1089
1146
  this,
1090
- 'overriddenLogics'
1147
+ 'overriddenLogics',
1091
1148
  );
1092
1149
  }
1093
1150
  this.overriddenLogics.splice(index, 0, overriddenLogic);
@@ -1095,20 +1152,20 @@ export class App extends BaseNode {
1095
1152
  }
1096
1153
 
1097
1154
  /**
1098
- * 插入逻辑
1099
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
1155
+ * 插入覆写逻辑
1156
+ * @param name 覆写逻辑名称,如果不填会自动生成一个唯一名称
1100
1157
  */
1101
1158
  insertOverriddenLogicAt(name: string, index: number): OverriddenLogic;
1102
1159
 
1103
1160
  /**
1104
- * 插入逻辑
1105
- * @param overriddenLogicOptions 逻辑参数
1161
+ * 插入覆写逻辑
1162
+ * @param overriddenLogicOptions 覆写逻辑参数
1106
1163
  */
1107
1164
  insertOverriddenLogicAt(overriddenLogicOptions: Partial<OverriddenLogic>, index: number): OverriddenLogic;
1108
1165
 
1109
1166
  /**
1110
- * 插入逻辑
1111
- * @param overriddenLogic 已有的逻辑实例
1167
+ * 插入覆写逻辑
1168
+ * @param overriddenLogic 已有的覆写逻辑实例
1112
1169
  */
1113
1170
  insertOverriddenLogicAt(overriddenLogic: OverriddenLogic, index: number): OverriddenLogic;
1114
1171
 
@@ -1123,23 +1180,23 @@ export class App extends BaseNode {
1123
1180
  }
1124
1181
 
1125
1182
  /**
1126
- * 添加逻辑
1183
+ * 添加覆写逻辑
1127
1184
  * @internal
1128
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
1185
+ * @param name 覆写逻辑名称,如果不填会自动生成一个唯一名称
1129
1186
  */
1130
1187
  _addOverriddenLogic(name?: string): OverriddenLogic;
1131
1188
 
1132
1189
  /**
1133
- * 添加逻辑
1190
+ * 添加覆写逻辑
1134
1191
  * @internal
1135
- * @param overriddenLogicOptions 逻辑参数
1192
+ * @param overriddenLogicOptions 覆写逻辑参数
1136
1193
  */
1137
1194
  _addOverriddenLogic(overriddenLogicOptions: Partial<OverriddenLogic>): OverriddenLogic;
1138
1195
 
1139
1196
  /**
1140
- * 添加逻辑
1197
+ * 添加覆写逻辑
1141
1198
  * @internal
1142
- * @param overriddenLogic 已有的逻辑实例
1199
+ * @param overriddenLogic 已有的覆写逻辑实例
1143
1200
  */
1144
1201
  _addOverriddenLogic(overriddenLogic: OverriddenLogic): OverriddenLogic;
1145
1202
 
@@ -1149,21 +1206,21 @@ export class App extends BaseNode {
1149
1206
  }
1150
1207
 
1151
1208
  /**
1152
- * 添加逻辑
1209
+ * 添加覆写逻辑
1153
1210
  * @internal
1154
- * @param name 逻辑名称,如果不填会自动生成一个唯一名称
1211
+ * @param name 覆写逻辑名称,如果不填会自动生成一个唯一名称
1155
1212
  */
1156
1213
  addOverriddenLogic(name?: string): OverriddenLogic;
1157
1214
 
1158
1215
  /**
1159
- * 添加逻辑
1160
- * @param overriddenLogicOptions 逻辑参数
1216
+ * 添加覆写逻辑
1217
+ * @param overriddenLogicOptions 覆写逻辑参数
1161
1218
  */
1162
1219
  addOverriddenLogic(overriddenLogicOptions: Partial<OverriddenLogic>): OverriddenLogic;
1163
1220
 
1164
1221
  /**
1165
- * 添加逻辑
1166
- * @param overriddenLogic 已有的逻辑实例
1222
+ * 添加覆写逻辑
1223
+ * @param overriddenLogic 已有的覆写逻辑实例
1167
1224
  */
1168
1225
  addOverriddenLogic(overriddenLogic: OverriddenLogic): OverriddenLogic;
1169
1226
 
@@ -1182,7 +1239,6 @@ export class App extends BaseNode {
1182
1239
  const excludedSet = new Set(excludedList);
1183
1240
  return ((this.interfaces as Interface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1184
1241
  }
1185
-
1186
1242
  getInterfaceUniqueName(name = 'Interface1') {
1187
1243
  return utils.unique(name, this.getInterfaceExistingNames(), undefined, true);
1188
1244
  }
@@ -1219,7 +1275,7 @@ export class App extends BaseNode {
1219
1275
  name: this.getInterfaceUniqueName(),
1220
1276
  },
1221
1277
  this,
1222
- 'interfaces'
1278
+ 'interfaces',
1223
1279
  );
1224
1280
  } else if (typeof options === 'string') {
1225
1281
  itface = Interface.from(
@@ -1228,7 +1284,7 @@ export class App extends BaseNode {
1228
1284
  name: options,
1229
1285
  },
1230
1286
  this,
1231
- 'interfaces'
1287
+ 'interfaces',
1232
1288
  );
1233
1289
  } else if (options instanceof Interface) {
1234
1290
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1241,7 +1297,7 @@ export class App extends BaseNode {
1241
1297
  ...options,
1242
1298
  },
1243
1299
  this,
1244
- 'interfaces'
1300
+ 'interfaces',
1245
1301
  );
1246
1302
  }
1247
1303
  this.interfaces.splice(index, 0, itface);
@@ -1333,23 +1389,23 @@ export class App extends BaseNode {
1333
1389
  }
1334
1390
 
1335
1391
  /**
1336
- * 插入接口
1392
+ * 插入鉴权接口
1337
1393
  * @internal
1338
- * @param name 接口名称,如果不填会自动生成一个唯一名称
1394
+ * @param name 鉴权接口名称,如果不填会自动生成一个唯一名称
1339
1395
  */
1340
1396
  _insertAuthInterfaceInInterfacesAt(name: string, index: number): AuthInterface;
1341
1397
 
1342
1398
  /**
1343
- * 插入接口
1399
+ * 插入鉴权接口
1344
1400
  * @internal
1345
- * @param itfaceOptions 接口参数
1401
+ * @param itfaceOptions 鉴权接口参数
1346
1402
  */
1347
1403
  _insertAuthInterfaceInInterfacesAt(itfaceOptions: Partial<AuthInterface>, index: number): AuthInterface;
1348
1404
 
1349
1405
  /**
1350
- * 插入接口
1406
+ * 插入鉴权接口
1351
1407
  * @internal
1352
- * @param itface 已有的接口实例
1408
+ * @param itface 已有的鉴权接口实例
1353
1409
  */
1354
1410
  _insertAuthInterfaceInInterfacesAt(itface: AuthInterface, index: number): AuthInterface;
1355
1411
 
@@ -1364,7 +1420,7 @@ export class App extends BaseNode {
1364
1420
  name: this.getAuthInterfaceUniqueName(),
1365
1421
  },
1366
1422
  this,
1367
- 'interfaces'
1423
+ 'interfaces',
1368
1424
  );
1369
1425
  } else if (typeof options === 'string') {
1370
1426
  itface = AuthInterface.from(
@@ -1373,7 +1429,7 @@ export class App extends BaseNode {
1373
1429
  name: options,
1374
1430
  },
1375
1431
  this,
1376
- 'interfaces'
1432
+ 'interfaces',
1377
1433
  );
1378
1434
  } else if (options instanceof AuthInterface) {
1379
1435
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1386,7 +1442,7 @@ export class App extends BaseNode {
1386
1442
  ...options,
1387
1443
  },
1388
1444
  this,
1389
- 'interfaces'
1445
+ 'interfaces',
1390
1446
  );
1391
1447
  }
1392
1448
  this.interfaces.splice(index, 0, itface);
@@ -1394,20 +1450,20 @@ export class App extends BaseNode {
1394
1450
  }
1395
1451
 
1396
1452
  /**
1397
- * 插入接口
1398
- * @param name 接口名称,如果不填会自动生成一个唯一名称
1453
+ * 插入鉴权接口
1454
+ * @param name 鉴权接口名称,如果不填会自动生成一个唯一名称
1399
1455
  */
1400
1456
  insertAuthInterfaceInInterfacesAt(name: string, index: number): AuthInterface;
1401
1457
 
1402
1458
  /**
1403
- * 插入接口
1404
- * @param itfaceOptions 接口参数
1459
+ * 插入鉴权接口
1460
+ * @param itfaceOptions 鉴权接口参数
1405
1461
  */
1406
1462
  insertAuthInterfaceInInterfacesAt(itfaceOptions: Partial<AuthInterface>, index: number): AuthInterface;
1407
1463
 
1408
1464
  /**
1409
- * 插入接口
1410
- * @param itface 已有的接口实例
1465
+ * 插入鉴权接口
1466
+ * @param itface 已有的鉴权接口实例
1411
1467
  */
1412
1468
  insertAuthInterfaceInInterfacesAt(itface: AuthInterface, index: number): AuthInterface;
1413
1469
 
@@ -1422,23 +1478,23 @@ export class App extends BaseNode {
1422
1478
  }
1423
1479
 
1424
1480
  /**
1425
- * 添加接口
1481
+ * 添加鉴权接口
1426
1482
  * @internal
1427
- * @param name 接口名称,如果不填会自动生成一个唯一名称
1483
+ * @param name 鉴权接口名称,如果不填会自动生成一个唯一名称
1428
1484
  */
1429
1485
  _addAuthInterfaceInInterfaces(name?: string): AuthInterface;
1430
1486
 
1431
1487
  /**
1432
- * 添加接口
1488
+ * 添加鉴权接口
1433
1489
  * @internal
1434
- * @param itfaceOptions 接口参数
1490
+ * @param itfaceOptions 鉴权接口参数
1435
1491
  */
1436
1492
  _addAuthInterfaceInInterfaces(itfaceOptions: Partial<AuthInterface>): AuthInterface;
1437
1493
 
1438
1494
  /**
1439
- * 添加接口
1495
+ * 添加鉴权接口
1440
1496
  * @internal
1441
- * @param itface 已有的接口实例
1497
+ * @param itface 已有的鉴权接口实例
1442
1498
  */
1443
1499
  _addAuthInterfaceInInterfaces(itface: AuthInterface): AuthInterface;
1444
1500
 
@@ -1448,21 +1504,21 @@ export class App extends BaseNode {
1448
1504
  }
1449
1505
 
1450
1506
  /**
1451
- * 添加接口
1507
+ * 添加鉴权接口
1452
1508
  * @internal
1453
- * @param name 接口名称,如果不填会自动生成一个唯一名称
1509
+ * @param name 鉴权接口名称,如果不填会自动生成一个唯一名称
1454
1510
  */
1455
1511
  addAuthInterfaceInInterfaces(name?: string): AuthInterface;
1456
1512
 
1457
1513
  /**
1458
- * 添加接口
1459
- * @param itfaceOptions 接口参数
1514
+ * 添加鉴权接口
1515
+ * @param itfaceOptions 鉴权接口参数
1460
1516
  */
1461
1517
  addAuthInterfaceInInterfaces(itfaceOptions: Partial<AuthInterface>): AuthInterface;
1462
1518
 
1463
1519
  /**
1464
- * 添加接口
1465
- * @param itface 已有的接口实例
1520
+ * 添加鉴权接口
1521
+ * @param itface 已有的鉴权接口实例
1466
1522
  */
1467
1523
  addAuthInterfaceInInterfaces(itface: AuthInterface): AuthInterface;
1468
1524
 
@@ -1481,29 +1537,28 @@ export class App extends BaseNode {
1481
1537
  const excludedSet = new Set(excludedList);
1482
1538
  return ((this.frontends as Frontend[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1483
1539
  }
1484
-
1485
1540
  getFrontendUniqueName(name = 'frontend1') {
1486
1541
  return utils.unique(name, this.getFrontendExistingNames(), undefined, true);
1487
1542
  }
1488
1543
 
1489
1544
  /**
1490
- * 插入端
1545
+ * 插入前端
1491
1546
  * @internal
1492
- * @param name 端名称,如果不填会自动生成一个唯一名称
1547
+ * @param name 前端名称,如果不填会自动生成一个唯一名称
1493
1548
  */
1494
1549
  _insertFrontendAt(name: string, index: number): Frontend;
1495
1550
 
1496
1551
  /**
1497
- * 插入端
1552
+ * 插入前端
1498
1553
  * @internal
1499
- * @param frontendOptions 端参数
1554
+ * @param frontendOptions 前端参数
1500
1555
  */
1501
1556
  _insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
1502
1557
 
1503
1558
  /**
1504
- * 插入端
1559
+ * 插入前端
1505
1560
  * @internal
1506
- * @param frontend 已有的端实例
1561
+ * @param frontend 已有的前端实例
1507
1562
  */
1508
1563
  _insertFrontendAt(frontend: Frontend, index: number): Frontend;
1509
1564
 
@@ -1518,7 +1573,7 @@ export class App extends BaseNode {
1518
1573
  name: this.getFrontendUniqueName(),
1519
1574
  },
1520
1575
  this,
1521
- 'frontends'
1576
+ 'frontends',
1522
1577
  );
1523
1578
  } else if (typeof options === 'string') {
1524
1579
  frontend = Frontend.from(
@@ -1527,7 +1582,7 @@ export class App extends BaseNode {
1527
1582
  name: options,
1528
1583
  },
1529
1584
  this,
1530
- 'frontends'
1585
+ 'frontends',
1531
1586
  );
1532
1587
  } else if (options instanceof Frontend) {
1533
1588
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1540,7 +1595,7 @@ export class App extends BaseNode {
1540
1595
  ...options,
1541
1596
  },
1542
1597
  this,
1543
- 'frontends'
1598
+ 'frontends',
1544
1599
  );
1545
1600
  }
1546
1601
  this.frontends.splice(index, 0, frontend);
@@ -1548,20 +1603,20 @@ export class App extends BaseNode {
1548
1603
  }
1549
1604
 
1550
1605
  /**
1551
- * 插入端
1552
- * @param name 端名称,如果不填会自动生成一个唯一名称
1606
+ * 插入前端
1607
+ * @param name 前端名称,如果不填会自动生成一个唯一名称
1553
1608
  */
1554
1609
  insertFrontendAt(name: string, index: number): Frontend;
1555
1610
 
1556
1611
  /**
1557
- * 插入端
1558
- * @param frontendOptions 端参数
1612
+ * 插入前端
1613
+ * @param frontendOptions 前端参数
1559
1614
  */
1560
1615
  insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
1561
1616
 
1562
1617
  /**
1563
- * 插入端
1564
- * @param frontend 已有的端实例
1618
+ * 插入前端
1619
+ * @param frontend 已有的前端实例
1565
1620
  */
1566
1621
  insertFrontendAt(frontend: Frontend, index: number): Frontend;
1567
1622
 
@@ -1576,23 +1631,23 @@ export class App extends BaseNode {
1576
1631
  }
1577
1632
 
1578
1633
  /**
1579
- * 添加端
1634
+ * 添加前端
1580
1635
  * @internal
1581
- * @param name 端名称,如果不填会自动生成一个唯一名称
1636
+ * @param name 前端名称,如果不填会自动生成一个唯一名称
1582
1637
  */
1583
1638
  _addFrontend(name?: string): Frontend;
1584
1639
 
1585
1640
  /**
1586
- * 添加端
1641
+ * 添加前端
1587
1642
  * @internal
1588
- * @param frontendOptions 端参数
1643
+ * @param frontendOptions 前端参数
1589
1644
  */
1590
1645
  _addFrontend(frontendOptions: Partial<Frontend>): Frontend;
1591
1646
 
1592
1647
  /**
1593
- * 添加端
1648
+ * 添加前端
1594
1649
  * @internal
1595
- * @param frontend 已有的端实例
1650
+ * @param frontend 已有的前端实例
1596
1651
  */
1597
1652
  _addFrontend(frontend: Frontend): Frontend;
1598
1653
 
@@ -1602,21 +1657,21 @@ export class App extends BaseNode {
1602
1657
  }
1603
1658
 
1604
1659
  /**
1605
- * 添加端
1660
+ * 添加前端
1606
1661
  * @internal
1607
- * @param name 端名称,如果不填会自动生成一个唯一名称
1662
+ * @param name 前端名称,如果不填会自动生成一个唯一名称
1608
1663
  */
1609
1664
  addFrontend(name?: string): Frontend;
1610
1665
 
1611
1666
  /**
1612
- * 添加端
1613
- * @param frontendOptions 端参数
1667
+ * 添加前端
1668
+ * @param frontendOptions 前端参数
1614
1669
  */
1615
1670
  addFrontend(frontendOptions: Partial<Frontend>): Frontend;
1616
1671
 
1617
1672
  /**
1618
- * 添加端
1619
- * @param frontend 已有的端实例
1673
+ * 添加前端
1674
+ * @param frontend 已有的前端实例
1620
1675
  */
1621
1676
  addFrontend(frontend: Frontend): Frontend;
1622
1677
 
@@ -1635,7 +1690,6 @@ export class App extends BaseNode {
1635
1690
  const excludedSet = new Set(excludedList);
1636
1691
  return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1637
1692
  }
1638
-
1639
1693
  getProcessUniqueName(name = 'Process1') {
1640
1694
  return utils.unique(name, this.getProcessExistingNames(), undefined, true);
1641
1695
  }
@@ -1672,7 +1726,7 @@ export class App extends BaseNode {
1672
1726
  name: this.getProcessUniqueName(),
1673
1727
  },
1674
1728
  this,
1675
- 'processes'
1729
+ 'processes',
1676
1730
  );
1677
1731
  } else if (typeof options === 'string') {
1678
1732
  process = Process.from(
@@ -1681,7 +1735,7 @@ export class App extends BaseNode {
1681
1735
  name: options,
1682
1736
  },
1683
1737
  this,
1684
- 'processes'
1738
+ 'processes',
1685
1739
  );
1686
1740
  } else if (options instanceof Process) {
1687
1741
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1694,7 +1748,7 @@ export class App extends BaseNode {
1694
1748
  ...options,
1695
1749
  },
1696
1750
  this,
1697
- 'processes'
1751
+ 'processes',
1698
1752
  );
1699
1753
  }
1700
1754
  this.processes.splice(index, 0, process);
@@ -1789,7 +1843,6 @@ export class App extends BaseNode {
1789
1843
  const excludedSet = new Set(excludedList);
1790
1844
  return ((this.roles as Role[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1791
1845
  }
1792
-
1793
1846
  getRoleUniqueName(name = 'role1') {
1794
1847
  return utils.unique(name, this.getRoleExistingNames(), undefined, true);
1795
1848
  }
@@ -1826,7 +1879,7 @@ export class App extends BaseNode {
1826
1879
  name: this.getRoleUniqueName(),
1827
1880
  },
1828
1881
  this,
1829
- 'roles'
1882
+ 'roles',
1830
1883
  );
1831
1884
  } else if (typeof options === 'string') {
1832
1885
  role = Role.from(
@@ -1835,7 +1888,7 @@ export class App extends BaseNode {
1835
1888
  name: options,
1836
1889
  },
1837
1890
  this,
1838
- 'roles'
1891
+ 'roles',
1839
1892
  );
1840
1893
  } else if (options instanceof Role) {
1841
1894
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -1848,7 +1901,7 @@ export class App extends BaseNode {
1848
1901
  ...options,
1849
1902
  },
1850
1903
  this,
1851
- 'roles'
1904
+ 'roles',
1852
1905
  );
1853
1906
  }
1854
1907
  this.roles.splice(index, 0, role);
@@ -1943,7 +1996,6 @@ export class App extends BaseNode {
1943
1996
  const excludedSet = new Set(excludedList);
1944
1997
  return ((this.dependencies as Module[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
1945
1998
  }
1946
-
1947
1999
  getModuleUniqueName(name = 'module1') {
1948
2000
  return utils.unique(name, this.getModuleExistingNames(), undefined, false);
1949
2001
  }
@@ -1980,7 +2032,7 @@ export class App extends BaseNode {
1980
2032
  name: this.getModuleUniqueName(),
1981
2033
  },
1982
2034
  this,
1983
- 'dependencies'
2035
+ 'dependencies',
1984
2036
  );
1985
2037
  } else if (typeof options === 'string') {
1986
2038
  module = Module.from(
@@ -1989,7 +2041,7 @@ export class App extends BaseNode {
1989
2041
  name: options,
1990
2042
  },
1991
2043
  this,
1992
- 'dependencies'
2044
+ 'dependencies',
1993
2045
  );
1994
2046
  } else if (options instanceof Module) {
1995
2047
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2002,7 +2054,7 @@ export class App extends BaseNode {
2002
2054
  ...options,
2003
2055
  },
2004
2056
  this,
2005
- 'dependencies'
2057
+ 'dependencies',
2006
2058
  );
2007
2059
  }
2008
2060
  this.dependencies.splice(index, 0, module);
@@ -2125,7 +2177,7 @@ export class App extends BaseNode {
2125
2177
  name: this.getConnectorUniqueName(),
2126
2178
  },
2127
2179
  this,
2128
- 'dependencies'
2180
+ 'dependencies',
2129
2181
  );
2130
2182
  } else if (typeof options === 'string') {
2131
2183
  connector = Connector.from(
@@ -2134,7 +2186,7 @@ export class App extends BaseNode {
2134
2186
  name: options,
2135
2187
  },
2136
2188
  this,
2137
- 'dependencies'
2189
+ 'dependencies',
2138
2190
  );
2139
2191
  } else if (options instanceof Connector) {
2140
2192
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2147,7 +2199,7 @@ export class App extends BaseNode {
2147
2199
  ...options,
2148
2200
  },
2149
2201
  this,
2150
- 'dependencies'
2202
+ 'dependencies',
2151
2203
  );
2152
2204
  }
2153
2205
  this.dependencies.splice(index, 0, connector);
@@ -2270,7 +2322,7 @@ export class App extends BaseNode {
2270
2322
  name: this.getModuleUniqueName(),
2271
2323
  },
2272
2324
  this,
2273
- 'interfaceDependencies'
2325
+ 'interfaceDependencies',
2274
2326
  );
2275
2327
  } else if (typeof options === 'string') {
2276
2328
  module = Module.from(
@@ -2279,7 +2331,7 @@ export class App extends BaseNode {
2279
2331
  name: options,
2280
2332
  },
2281
2333
  this,
2282
- 'interfaceDependencies'
2334
+ 'interfaceDependencies',
2283
2335
  );
2284
2336
  } else if (options instanceof Module) {
2285
2337
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2292,7 +2344,7 @@ export class App extends BaseNode {
2292
2344
  ...options,
2293
2345
  },
2294
2346
  this,
2295
- 'interfaceDependencies'
2347
+ 'interfaceDependencies',
2296
2348
  );
2297
2349
  }
2298
2350
  this.interfaceDependencies.splice(index, 0, module);
@@ -2385,35 +2437,45 @@ export class App extends BaseNode {
2385
2437
 
2386
2438
  getAuthLogicForCallInterfaceExistingNames(excludedList: Array<AuthLogicForCallInterface> = []) {
2387
2439
  const excludedSet = new Set(excludedList);
2388
- return ((this.authLogicsForCallInterface as AuthLogicForCallInterface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2440
+ return ((this.authLogicsForCallInterface as AuthLogicForCallInterface[]) || [])
2441
+ .filter((item) => !excludedSet.has(item))
2442
+ .map((item) => item.name);
2389
2443
  }
2390
-
2391
2444
  getAuthLogicForCallInterfaceUniqueName(name = 'authLogicForCallInterface1') {
2392
2445
  return utils.unique(name, this.getAuthLogicForCallInterfaceExistingNames(), undefined, false);
2393
2446
  }
2394
2447
 
2395
2448
  /**
2396
- * 插入调用的鉴权逻辑
2449
+ * 插入调用接口的鉴权逻辑
2397
2450
  * @internal
2398
- * @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2451
+ * @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2399
2452
  */
2400
2453
  _insertAuthLogicForCallInterfaceAt(name: string, index: number): AuthLogicForCallInterface;
2401
2454
 
2402
2455
  /**
2403
- * 插入调用的鉴权逻辑
2456
+ * 插入调用接口的鉴权逻辑
2404
2457
  * @internal
2405
- * @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
2458
+ * @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
2406
2459
  */
2407
- _insertAuthLogicForCallInterfaceAt(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>, index: number): AuthLogicForCallInterface;
2460
+ _insertAuthLogicForCallInterfaceAt(
2461
+ authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
2462
+ index: number,
2463
+ ): AuthLogicForCallInterface;
2408
2464
 
2409
2465
  /**
2410
- * 插入调用的鉴权逻辑
2466
+ * 插入调用接口的鉴权逻辑
2411
2467
  * @internal
2412
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
2468
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
2413
2469
  */
2414
- _insertAuthLogicForCallInterfaceAt(authLogicForCallInterface: AuthLogicForCallInterface, index: number): AuthLogicForCallInterface;
2470
+ _insertAuthLogicForCallInterfaceAt(
2471
+ authLogicForCallInterface: AuthLogicForCallInterface,
2472
+ index: number,
2473
+ ): AuthLogicForCallInterface;
2415
2474
 
2416
- _insertAuthLogicForCallInterfaceAt(options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface, index: number) {
2475
+ _insertAuthLogicForCallInterfaceAt(
2476
+ options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface,
2477
+ index: number,
2478
+ ) {
2417
2479
  const authLogicForCallInterfaceOptions: any = {};
2418
2480
  const relationOptions = { parentNode: this, parentKey: 'authLogicsForCallInterface' };
2419
2481
  let authLogicForCallInterface: AuthLogicForCallInterface;
@@ -2424,7 +2486,7 @@ export class App extends BaseNode {
2424
2486
  name: this.getAuthLogicForCallInterfaceUniqueName(),
2425
2487
  },
2426
2488
  this,
2427
- 'authLogicsForCallInterface'
2489
+ 'authLogicsForCallInterface',
2428
2490
  );
2429
2491
  } else if (typeof options === 'string') {
2430
2492
  authLogicForCallInterface = AuthLogicForCallInterface.from(
@@ -2433,11 +2495,11 @@ export class App extends BaseNode {
2433
2495
  name: options,
2434
2496
  },
2435
2497
  this,
2436
- 'authLogicsForCallInterface'
2498
+ 'authLogicsForCallInterface',
2437
2499
  );
2438
- } else if (options instanceof AuthLogicForCallInterface) {
2500
+ } else if (options.concept === 'AuthLogicForCallInterface') {
2439
2501
  options.ensureDelete(); // 同一实例不支持多处存在
2440
- authLogicForCallInterface = options;
2502
+ authLogicForCallInterface = options as any;
2441
2503
  Object.assign(authLogicForCallInterface, relationOptions);
2442
2504
  } else {
2443
2505
  authLogicForCallInterface = AuthLogicForCallInterface.from(
@@ -2446,7 +2508,7 @@ export class App extends BaseNode {
2446
2508
  ...options,
2447
2509
  },
2448
2510
  this,
2449
- 'authLogicsForCallInterface'
2511
+ 'authLogicsForCallInterface',
2450
2512
  );
2451
2513
  }
2452
2514
  this.authLogicsForCallInterface.splice(index, 0, authLogicForCallInterface);
@@ -2454,24 +2516,33 @@ export class App extends BaseNode {
2454
2516
  }
2455
2517
 
2456
2518
  /**
2457
- * 插入调用的鉴权逻辑
2458
- * @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2519
+ * 插入调用接口的鉴权逻辑
2520
+ * @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2459
2521
  */
2460
2522
  insertAuthLogicForCallInterfaceAt(name: string, index: number): AuthLogicForCallInterface;
2461
2523
 
2462
2524
  /**
2463
- * 插入调用的鉴权逻辑
2464
- * @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
2525
+ * 插入调用接口的鉴权逻辑
2526
+ * @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
2465
2527
  */
2466
- insertAuthLogicForCallInterfaceAt(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>, index: number): AuthLogicForCallInterface;
2528
+ insertAuthLogicForCallInterfaceAt(
2529
+ authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
2530
+ index: number,
2531
+ ): AuthLogicForCallInterface;
2467
2532
 
2468
2533
  /**
2469
- * 插入调用的鉴权逻辑
2470
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
2534
+ * 插入调用接口的鉴权逻辑
2535
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
2471
2536
  */
2472
- insertAuthLogicForCallInterfaceAt(authLogicForCallInterface: AuthLogicForCallInterface, index: number): AuthLogicForCallInterface;
2537
+ insertAuthLogicForCallInterfaceAt(
2538
+ authLogicForCallInterface: AuthLogicForCallInterface,
2539
+ index: number,
2540
+ ): AuthLogicForCallInterface;
2473
2541
 
2474
- insertAuthLogicForCallInterfaceAt(options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface, index: number) {
2542
+ insertAuthLogicForCallInterfaceAt(
2543
+ options: string | Partial<AuthLogicForCallInterface> | AuthLogicForCallInterface,
2544
+ index: number,
2545
+ ) {
2475
2546
  const node = this._insertAuthLogicForCallInterfaceAt(options as any, index);
2476
2547
  node.create({
2477
2548
  index,
@@ -2482,23 +2553,25 @@ export class App extends BaseNode {
2482
2553
  }
2483
2554
 
2484
2555
  /**
2485
- * 添加调用的鉴权逻辑
2556
+ * 添加调用接口的鉴权逻辑
2486
2557
  * @internal
2487
- * @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2558
+ * @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2488
2559
  */
2489
2560
  _addAuthLogicForCallInterface(name?: string): AuthLogicForCallInterface;
2490
2561
 
2491
2562
  /**
2492
- * 添加调用的鉴权逻辑
2563
+ * 添加调用接口的鉴权逻辑
2493
2564
  * @internal
2494
- * @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
2565
+ * @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
2495
2566
  */
2496
- _addAuthLogicForCallInterface(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>): AuthLogicForCallInterface;
2567
+ _addAuthLogicForCallInterface(
2568
+ authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
2569
+ ): AuthLogicForCallInterface;
2497
2570
 
2498
2571
  /**
2499
- * 添加调用的鉴权逻辑
2572
+ * 添加调用接口的鉴权逻辑
2500
2573
  * @internal
2501
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
2574
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
2502
2575
  */
2503
2576
  _addAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): AuthLogicForCallInterface;
2504
2577
 
@@ -2508,21 +2581,23 @@ export class App extends BaseNode {
2508
2581
  }
2509
2582
 
2510
2583
  /**
2511
- * 添加调用的鉴权逻辑
2584
+ * 添加调用接口的鉴权逻辑
2512
2585
  * @internal
2513
- * @param name 调用的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2586
+ * @param name 调用接口的鉴权逻辑名称,如果不填会自动生成一个唯一名称
2514
2587
  */
2515
2588
  addAuthLogicForCallInterface(name?: string): AuthLogicForCallInterface;
2516
2589
 
2517
2590
  /**
2518
- * 添加调用的鉴权逻辑
2519
- * @param authLogicForCallInterfaceOptions 调用的鉴权逻辑参数
2591
+ * 添加调用接口的鉴权逻辑
2592
+ * @param authLogicForCallInterfaceOptions 调用接口的鉴权逻辑参数
2520
2593
  */
2521
- addAuthLogicForCallInterface(authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>): AuthLogicForCallInterface;
2594
+ addAuthLogicForCallInterface(
2595
+ authLogicForCallInterfaceOptions: Partial<AuthLogicForCallInterface>,
2596
+ ): AuthLogicForCallInterface;
2522
2597
 
2523
2598
  /**
2524
- * 添加调用的鉴权逻辑
2525
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
2599
+ * 添加调用接口的鉴权逻辑
2600
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
2526
2601
  */
2527
2602
  addAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): AuthLogicForCallInterface;
2528
2603
 
@@ -2541,7 +2616,6 @@ export class App extends BaseNode {
2541
2616
  const excludedSet = new Set(excludedList);
2542
2617
  return ((this.connections as Connection[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2543
2618
  }
2544
-
2545
2619
  getConnectionUniqueName(name = 'connection1') {
2546
2620
  return utils.unique(name, this.getConnectionExistingNames(), undefined, false);
2547
2621
  }
@@ -2578,7 +2652,7 @@ export class App extends BaseNode {
2578
2652
  name: this.getConnectionUniqueName(),
2579
2653
  },
2580
2654
  this,
2581
- 'connections'
2655
+ 'connections',
2582
2656
  );
2583
2657
  } else if (typeof options === 'string') {
2584
2658
  connection = Connection.from(
@@ -2587,7 +2661,7 @@ export class App extends BaseNode {
2587
2661
  name: options,
2588
2662
  },
2589
2663
  this,
2590
- 'connections'
2664
+ 'connections',
2591
2665
  );
2592
2666
  } else if (options instanceof Connection) {
2593
2667
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2600,7 +2674,7 @@ export class App extends BaseNode {
2600
2674
  ...options,
2601
2675
  },
2602
2676
  this,
2603
- 'connections'
2677
+ 'connections',
2604
2678
  );
2605
2679
  }
2606
2680
  this.connections.splice(index, 0, connection);
@@ -2693,9 +2767,10 @@ export class App extends BaseNode {
2693
2767
 
2694
2768
  getTriggerLauncherExistingNames(excludedList: Array<TriggerLauncher> = []) {
2695
2769
  const excludedSet = new Set(excludedList);
2696
- return ((this.triggerLaunchers as TriggerLauncher[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2770
+ return ((this.triggerLaunchers as TriggerLauncher[]) || [])
2771
+ .filter((item) => !excludedSet.has(item))
2772
+ .map((item) => item.name);
2697
2773
  }
2698
-
2699
2774
  getTriggerLauncherUniqueName(name = 'triggerLauncher1') {
2700
2775
  return utils.unique(name, this.getTriggerLauncherExistingNames(), undefined, false);
2701
2776
  }
@@ -2732,7 +2807,7 @@ export class App extends BaseNode {
2732
2807
  name: this.getTriggerLauncherUniqueName(),
2733
2808
  },
2734
2809
  this,
2735
- 'triggerLaunchers'
2810
+ 'triggerLaunchers',
2736
2811
  );
2737
2812
  } else if (typeof options === 'string') {
2738
2813
  triggerLauncher = TriggerLauncher.from(
@@ -2741,7 +2816,7 @@ export class App extends BaseNode {
2741
2816
  name: options,
2742
2817
  },
2743
2818
  this,
2744
- 'triggerLaunchers'
2819
+ 'triggerLaunchers',
2745
2820
  );
2746
2821
  } else if (options instanceof TriggerLauncher) {
2747
2822
  options.ensureDelete(); // 同一实例不支持多处存在
@@ -2754,7 +2829,7 @@ export class App extends BaseNode {
2754
2829
  ...options,
2755
2830
  },
2756
2831
  this,
2757
- 'triggerLaunchers'
2832
+ 'triggerLaunchers',
2758
2833
  );
2759
2834
  }
2760
2835
  this.triggerLaunchers.splice(index, 0, triggerLauncher);
@@ -2862,7 +2937,7 @@ export class App extends BaseNode {
2862
2937
  if (typeof options === 'string') {
2863
2938
  dataSource = (this.dataSources as DataSource[]).find((item) => item.name === options);
2864
2939
  if (!dataSource) {
2865
- throw new Error(`找不到数据源 ${options}`);
2940
+ throw new Error('找不到数据源 ' + options);
2866
2941
  }
2867
2942
  } else {
2868
2943
  dataSource = options;
@@ -2871,7 +2946,7 @@ export class App extends BaseNode {
2871
2946
  }
2872
2947
 
2873
2948
  __removeDataSource(dataSource: DataSource) {
2874
- const { parentKey } = dataSource;
2949
+ const parentKey = dataSource.parentKey;
2875
2950
  const params: Params = {
2876
2951
  parentNode: this,
2877
2952
  parentKey,
@@ -2910,7 +2985,7 @@ export class App extends BaseNode {
2910
2985
  if (typeof options === 'string') {
2911
2986
  structure = (this.structures as Structure[]).find((item) => item.name === options);
2912
2987
  if (!structure) {
2913
- throw new Error(`找不到数据结构 ${options}`);
2988
+ throw new Error('找不到数据结构 ' + options);
2914
2989
  }
2915
2990
  } else {
2916
2991
  structure = options;
@@ -2919,7 +2994,7 @@ export class App extends BaseNode {
2919
2994
  }
2920
2995
 
2921
2996
  __removeStructure(structure: Structure) {
2922
- const { parentKey } = structure;
2997
+ const parentKey = structure.parentKey;
2923
2998
  const params: Params = {
2924
2999
  parentNode: this,
2925
3000
  parentKey,
@@ -2958,7 +3033,7 @@ export class App extends BaseNode {
2958
3033
  if (typeof options === 'string') {
2959
3034
  enumeration = (this.enums as Enum[]).find((item) => item.name === options);
2960
3035
  if (!enumeration) {
2961
- throw new Error(`找不到枚举 ${options}`);
3036
+ throw new Error('找不到枚举 ' + options);
2962
3037
  }
2963
3038
  } else {
2964
3039
  enumeration = options;
@@ -2967,7 +3042,7 @@ export class App extends BaseNode {
2967
3042
  }
2968
3043
 
2969
3044
  __removeEnum(enumeration: Enum) {
2970
- const { parentKey } = enumeration;
3045
+ const parentKey = enumeration.parentKey;
2971
3046
  const params: Params = {
2972
3047
  parentNode: this,
2973
3048
  parentKey,
@@ -3006,7 +3081,7 @@ export class App extends BaseNode {
3006
3081
  if (typeof options === 'string') {
3007
3082
  logic = (this.logics as Logic[]).find((item) => item.name === options);
3008
3083
  if (!logic) {
3009
- throw new Error(`找不到逻辑 ${options}`);
3084
+ throw new Error('找不到逻辑 ' + options);
3010
3085
  }
3011
3086
  } else {
3012
3087
  logic = options;
@@ -3015,14 +3090,14 @@ export class App extends BaseNode {
3015
3090
  }
3016
3091
 
3017
3092
  /**
3018
- * 删除开放接口的鉴权逻辑
3019
- * @param name 开放接口的鉴权逻辑名称
3093
+ * 删除鉴权逻辑
3094
+ * @param name 鉴权逻辑名称
3020
3095
  */
3021
3096
  removeAuthLogicInAuthLogics(name: string): void;
3022
3097
 
3023
3098
  /**
3024
- * 删除开放接口的鉴权逻辑
3025
- * @param authLogic 已有的开放接口的鉴权逻辑实例
3099
+ * 删除鉴权逻辑
3100
+ * @param authLogic 已有的鉴权逻辑实例
3026
3101
  */
3027
3102
  removeAuthLogicInAuthLogics(authLogic: AuthLogic): void;
3028
3103
 
@@ -3031,7 +3106,7 @@ export class App extends BaseNode {
3031
3106
  if (typeof options === 'string') {
3032
3107
  authLogic = (this.authLogics as AuthLogic[]).find((item) => item.name === options);
3033
3108
  if (!authLogic) {
3034
- throw new Error(`找不到开放接口的鉴权逻辑 ${options}`);
3109
+ throw new Error('找不到鉴权逻辑 ' + options);
3035
3110
  }
3036
3111
  } else {
3037
3112
  authLogic = options;
@@ -3040,7 +3115,7 @@ export class App extends BaseNode {
3040
3115
  }
3041
3116
 
3042
3117
  __removeLogic(logic: Logic) {
3043
- const { parentKey } = logic;
3118
+ const parentKey = logic.parentKey;
3044
3119
  const params: Params = {
3045
3120
  parentNode: this,
3046
3121
  parentKey,
@@ -3063,14 +3138,14 @@ export class App extends BaseNode {
3063
3138
  }
3064
3139
 
3065
3140
  /**
3066
- * 删除逻辑
3067
- * @param name 逻辑名称
3141
+ * 删除覆写逻辑
3142
+ * @param name 覆写逻辑名称
3068
3143
  */
3069
3144
  removeOverriddenLogic(name: string): void;
3070
3145
 
3071
3146
  /**
3072
- * 删除逻辑
3073
- * @param overriddenLogic 已有的逻辑实例
3147
+ * 删除覆写逻辑
3148
+ * @param overriddenLogic 已有的覆写逻辑实例
3074
3149
  */
3075
3150
  removeOverriddenLogic(overriddenLogic: OverriddenLogic): void;
3076
3151
 
@@ -3079,7 +3154,7 @@ export class App extends BaseNode {
3079
3154
  if (typeof options === 'string') {
3080
3155
  overriddenLogic = (this.overriddenLogics as OverriddenLogic[]).find((item) => item.name === options);
3081
3156
  if (!overriddenLogic) {
3082
- throw new Error(`找不到逻辑 ${options}`);
3157
+ throw new Error('找不到覆写逻辑 ' + options);
3083
3158
  }
3084
3159
  } else {
3085
3160
  overriddenLogic = options;
@@ -3088,7 +3163,7 @@ export class App extends BaseNode {
3088
3163
  }
3089
3164
 
3090
3165
  __removeOverriddenLogic(overriddenLogic: OverriddenLogic) {
3091
- const { parentKey } = overriddenLogic;
3166
+ const parentKey = overriddenLogic.parentKey;
3092
3167
  const params: Params = {
3093
3168
  parentNode: this,
3094
3169
  parentKey,
@@ -3127,7 +3202,7 @@ export class App extends BaseNode {
3127
3202
  if (typeof options === 'string') {
3128
3203
  itface = (this.interfaces as Interface[]).find((item) => item.name === options);
3129
3204
  if (!itface) {
3130
- throw new Error(`找不到接口 ${options}`);
3205
+ throw new Error('找不到接口 ' + options);
3131
3206
  }
3132
3207
  } else {
3133
3208
  itface = options;
@@ -3136,14 +3211,14 @@ export class App extends BaseNode {
3136
3211
  }
3137
3212
 
3138
3213
  /**
3139
- * 删除接口
3140
- * @param name 接口名称
3214
+ * 删除鉴权接口
3215
+ * @param name 鉴权接口名称
3141
3216
  */
3142
3217
  removeAuthInterfaceInInterfaces(name: string): void;
3143
3218
 
3144
3219
  /**
3145
- * 删除接口
3146
- * @param itface 已有的接口实例
3220
+ * 删除鉴权接口
3221
+ * @param itface 已有的鉴权接口实例
3147
3222
  */
3148
3223
  removeAuthInterfaceInInterfaces(itface: AuthInterface): void;
3149
3224
 
@@ -3152,7 +3227,7 @@ export class App extends BaseNode {
3152
3227
  if (typeof options === 'string') {
3153
3228
  itface = (this.interfaces as AuthInterface[]).find((item) => item.name === options);
3154
3229
  if (!itface) {
3155
- throw new Error(`找不到接口 ${options}`);
3230
+ throw new Error('找不到鉴权接口 ' + options);
3156
3231
  }
3157
3232
  } else {
3158
3233
  itface = options;
@@ -3161,7 +3236,7 @@ export class App extends BaseNode {
3161
3236
  }
3162
3237
 
3163
3238
  __removeInterface(itface: Interface) {
3164
- const { parentKey } = itface;
3239
+ const parentKey = itface.parentKey;
3165
3240
  const params: Params = {
3166
3241
  parentNode: this,
3167
3242
  parentKey,
@@ -3184,14 +3259,14 @@ export class App extends BaseNode {
3184
3259
  }
3185
3260
 
3186
3261
  /**
3187
- * 删除端
3188
- * @param name 端名称
3262
+ * 删除前端
3263
+ * @param name 前端名称
3189
3264
  */
3190
3265
  removeFrontend(name: string): void;
3191
3266
 
3192
3267
  /**
3193
- * 删除端
3194
- * @param frontend 已有的端实例
3268
+ * 删除前端
3269
+ * @param frontend 已有的前端实例
3195
3270
  */
3196
3271
  removeFrontend(frontend: Frontend): void;
3197
3272
 
@@ -3200,7 +3275,7 @@ export class App extends BaseNode {
3200
3275
  if (typeof options === 'string') {
3201
3276
  frontend = (this.frontends as Frontend[]).find((item) => item.name === options);
3202
3277
  if (!frontend) {
3203
- throw new Error(`找不到端 ${options}`);
3278
+ throw new Error('找不到前端 ' + options);
3204
3279
  }
3205
3280
  } else {
3206
3281
  frontend = options;
@@ -3209,7 +3284,7 @@ export class App extends BaseNode {
3209
3284
  }
3210
3285
 
3211
3286
  __removeFrontend(frontend: Frontend) {
3212
- const { parentKey } = frontend;
3287
+ const parentKey = frontend.parentKey;
3213
3288
  const params: Params = {
3214
3289
  parentNode: this,
3215
3290
  parentKey,
@@ -3248,7 +3323,7 @@ export class App extends BaseNode {
3248
3323
  if (typeof options === 'string') {
3249
3324
  backend = this.backend;
3250
3325
  if (!backend) {
3251
- throw new Error(`找不到后端 ${options}`);
3326
+ throw new Error('找不到后端 ' + options);
3252
3327
  }
3253
3328
  } else {
3254
3329
  backend = options;
@@ -3257,7 +3332,7 @@ export class App extends BaseNode {
3257
3332
  }
3258
3333
 
3259
3334
  __removeBackend(backend: Backend) {
3260
- const { parentKey } = backend;
3335
+ const parentKey = backend.parentKey;
3261
3336
  const params: Params = {
3262
3337
  parentNode: this,
3263
3338
  parentKey,
@@ -3296,7 +3371,7 @@ export class App extends BaseNode {
3296
3371
  if (typeof options === 'string') {
3297
3372
  process = (this.processes as Process[]).find((item) => item.name === options);
3298
3373
  if (!process) {
3299
- throw new Error(`找不到流程 ${options}`);
3374
+ throw new Error('找不到流程 ' + options);
3300
3375
  }
3301
3376
  } else {
3302
3377
  process = options;
@@ -3305,7 +3380,7 @@ export class App extends BaseNode {
3305
3380
  }
3306
3381
 
3307
3382
  __removeProcess(process: Process) {
3308
- const { parentKey } = process;
3383
+ const parentKey = process.parentKey;
3309
3384
  const params: Params = {
3310
3385
  parentNode: this,
3311
3386
  parentKey,
@@ -3344,7 +3419,7 @@ export class App extends BaseNode {
3344
3419
  if (typeof options === 'string') {
3345
3420
  role = (this.roles as Role[]).find((item) => item.name === options);
3346
3421
  if (!role) {
3347
- throw new Error(`找不到角色 ${options}`);
3422
+ throw new Error('找不到角色 ' + options);
3348
3423
  }
3349
3424
  } else {
3350
3425
  role = options;
@@ -3353,7 +3428,7 @@ export class App extends BaseNode {
3353
3428
  }
3354
3429
 
3355
3430
  __removeRole(role: Role) {
3356
- const { parentKey } = role;
3431
+ const parentKey = role.parentKey;
3357
3432
  const params: Params = {
3358
3433
  parentNode: this,
3359
3434
  parentKey,
@@ -3392,7 +3467,7 @@ export class App extends BaseNode {
3392
3467
  if (typeof options === 'string') {
3393
3468
  configuration = this.configuration;
3394
3469
  if (!configuration) {
3395
- throw new Error(`找不到配置管理 ${options}`);
3470
+ throw new Error('找不到配置管理 ' + options);
3396
3471
  }
3397
3472
  } else {
3398
3473
  configuration = options;
@@ -3401,7 +3476,7 @@ export class App extends BaseNode {
3401
3476
  }
3402
3477
 
3403
3478
  __removeConfiguration(configuration: Configuration) {
3404
- const { parentKey } = configuration;
3479
+ const parentKey = configuration.parentKey;
3405
3480
  const params: Params = {
3406
3481
  parentNode: this,
3407
3482
  parentKey,
@@ -3440,7 +3515,7 @@ export class App extends BaseNode {
3440
3515
  if (typeof options === 'string') {
3441
3516
  module = (this.dependencies as Module[]).find((item) => item.name === options);
3442
3517
  if (!module) {
3443
- throw new Error(`找不到模块 ${options}`);
3518
+ throw new Error('找不到模块 ' + options);
3444
3519
  }
3445
3520
  } else {
3446
3521
  module = options;
@@ -3465,7 +3540,7 @@ export class App extends BaseNode {
3465
3540
  if (typeof options === 'string') {
3466
3541
  connector = (this.dependencies as Connector[]).find((item) => item.name === options);
3467
3542
  if (!connector) {
3468
- throw new Error(`找不到连接器 ${options}`);
3543
+ throw new Error('找不到连接器 ' + options);
3469
3544
  }
3470
3545
  } else {
3471
3546
  connector = options;
@@ -3490,7 +3565,7 @@ export class App extends BaseNode {
3490
3565
  if (typeof options === 'string') {
3491
3566
  module = (this.interfaceDependencies as Module[]).find((item) => item.name === options);
3492
3567
  if (!module) {
3493
- throw new Error(`找不到模块 ${options}`);
3568
+ throw new Error('找不到模块 ' + options);
3494
3569
  }
3495
3570
  } else {
3496
3571
  module = options;
@@ -3499,7 +3574,7 @@ export class App extends BaseNode {
3499
3574
  }
3500
3575
 
3501
3576
  __removeModule(module: Module) {
3502
- const { parentKey } = module;
3577
+ const parentKey = module.parentKey;
3503
3578
  const params: Params = {
3504
3579
  parentNode: this,
3505
3580
  parentKey,
@@ -3538,7 +3613,7 @@ export class App extends BaseNode {
3538
3613
  if (typeof options === 'string') {
3539
3614
  integration = this.integration;
3540
3615
  if (!integration) {
3541
- throw new Error(`找不到集成 ${options}`);
3616
+ throw new Error('找不到集成 ' + options);
3542
3617
  }
3543
3618
  } else {
3544
3619
  integration = options;
@@ -3547,7 +3622,7 @@ export class App extends BaseNode {
3547
3622
  }
3548
3623
 
3549
3624
  __removeIntegration(integration: Integration) {
3550
- const { parentKey } = integration;
3625
+ const parentKey = integration.parentKey;
3551
3626
  const params: Params = {
3552
3627
  parentNode: this,
3553
3628
  parentKey,
@@ -3570,23 +3645,25 @@ export class App extends BaseNode {
3570
3645
  }
3571
3646
 
3572
3647
  /**
3573
- * 删除调用的鉴权逻辑
3574
- * @param name 调用的鉴权逻辑名称
3648
+ * 删除调用接口的鉴权逻辑
3649
+ * @param name 调用接口的鉴权逻辑名称
3575
3650
  */
3576
3651
  removeAuthLogicForCallInterface(name: string): void;
3577
3652
 
3578
3653
  /**
3579
- * 删除调用的鉴权逻辑
3580
- * @param authLogicForCallInterface 已有的调用的鉴权逻辑实例
3654
+ * 删除调用接口的鉴权逻辑
3655
+ * @param authLogicForCallInterface 已有的调用接口的鉴权逻辑实例
3581
3656
  */
3582
3657
  removeAuthLogicForCallInterface(authLogicForCallInterface: AuthLogicForCallInterface): void;
3583
3658
 
3584
3659
  removeAuthLogicForCallInterface(options: string | AuthLogicForCallInterface) {
3585
3660
  let authLogicForCallInterface: AuthLogicForCallInterface;
3586
3661
  if (typeof options === 'string') {
3587
- authLogicForCallInterface = (this.authLogicsForCallInterface as AuthLogicForCallInterface[]).find((item) => item.name === options);
3662
+ authLogicForCallInterface = (this.authLogicsForCallInterface as AuthLogicForCallInterface[]).find(
3663
+ (item) => item.name === options,
3664
+ );
3588
3665
  if (!authLogicForCallInterface) {
3589
- throw new Error(`找不到调用的鉴权逻辑 ${options}`);
3666
+ throw new Error('找不到调用接口的鉴权逻辑 ' + options);
3590
3667
  }
3591
3668
  } else {
3592
3669
  authLogicForCallInterface = options;
@@ -3595,7 +3672,7 @@ export class App extends BaseNode {
3595
3672
  }
3596
3673
 
3597
3674
  __removeAuthLogic(authLogic: AuthLogic) {
3598
- const { parentKey } = authLogic;
3675
+ const parentKey = authLogic.parentKey;
3599
3676
  const params: Params = {
3600
3677
  parentNode: this,
3601
3678
  parentKey,
@@ -3634,7 +3711,7 @@ export class App extends BaseNode {
3634
3711
  if (typeof options === 'string') {
3635
3712
  connection = (this.connections as Connection[]).find((item) => item.name === options);
3636
3713
  if (!connection) {
3637
- throw new Error(`找不到连接 ${options}`);
3714
+ throw new Error('找不到连接 ' + options);
3638
3715
  }
3639
3716
  } else {
3640
3717
  connection = options;
@@ -3643,7 +3720,7 @@ export class App extends BaseNode {
3643
3720
  }
3644
3721
 
3645
3722
  __removeConnection(connection: Connection) {
3646
- const { parentKey } = connection;
3723
+ const parentKey = connection.parentKey;
3647
3724
  const params: Params = {
3648
3725
  parentNode: this,
3649
3726
  parentKey,
@@ -3682,7 +3759,7 @@ export class App extends BaseNode {
3682
3759
  if (typeof options === 'string') {
3683
3760
  triggerLauncher = (this.triggerLaunchers as TriggerLauncher[]).find((item) => item.name === options);
3684
3761
  if (!triggerLauncher) {
3685
- throw new Error(`找不到触发器启动器 ${options}`);
3762
+ throw new Error('找不到触发器启动器 ' + options);
3686
3763
  }
3687
3764
  } else {
3688
3765
  triggerLauncher = options;
@@ -3691,7 +3768,7 @@ export class App extends BaseNode {
3691
3768
  }
3692
3769
 
3693
3770
  __removeTriggerLauncher(triggerLauncher: TriggerLauncher) {
3694
- const { parentKey } = triggerLauncher;
3771
+ const parentKey = triggerLauncher.parentKey;
3695
3772
  const params: Params = {
3696
3773
  parentNode: this,
3697
3774
  parentKey,
@@ -3713,10 +3790,10 @@ export class App extends BaseNode {
3713
3790
  return params;
3714
3791
  }
3715
3792
 
3716
- //= ===============================================================================
3793
+ //================================================================================
3717
3794
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
3718
3795
  // 自动生成的代码已结束。下面可以手动编写。
3719
- //= ===============================================================================
3796
+ //================================================================================
3720
3797
 
3721
3798
  findDataSourceByName(name: string) {
3722
3799
  return this.dataSources.find((dataSourceItem) => dataSourceItem.name === name);
@@ -3824,7 +3901,8 @@ export class App extends BaseNode {
3824
3901
  const start = nameArr.shift();
3825
3902
  const mod = 0;
3826
3903
  const modulesMap: any = {
3827
- extensions: node.dependencies,
3904
+ // v3.3 版本引入自定义连接器,在配置自定义连接器时需要同步支持内部数据结构使用,所以这里做扩展
3905
+ extensions: [...node.dependencies, ...(node?.integration?.connectors || [])],
3828
3906
  apis: node.interfaceDependencies,
3829
3907
  components: node.componentDependencies,
3830
3908
  };
@@ -3866,9 +3944,13 @@ export class App extends BaseNode {
3866
3944
  };
3867
3945
 
3868
3946
  packageInfo.template.name = scope === 'h5' ? '@lcap/mobile-template' : 'lcap-pc-template';
3869
- packageInfo.template.version = scope === 'h5' ? dependencyMap.FrontendArchH5.version : dependencyMap.FrontendArchPC.version;
3947
+ packageInfo.template.version =
3948
+ scope === 'h5' ? dependencyMap.FrontendArchH5.version : dependencyMap.FrontendArchPC.version;
3870
3949
  packageInfo.ui.name = scope === 'h5' ? '@lcap/mobile-ui' : 'cloud-ui.vusion';
3871
- packageInfo.ui.version = scope === 'h5' ? dependencyMap.FrontendComponentLibraryH5.version : dependencyMap.FrontendComponentLibraryPC.version;
3950
+ packageInfo.ui.version =
3951
+ scope === 'h5'
3952
+ ? dependencyMap.FrontendComponentLibraryH5.version
3953
+ : dependencyMap.FrontendComponentLibraryPC.version;
3872
3954
  return packageInfo;
3873
3955
  }
3874
3956
 
@@ -3943,18 +4025,20 @@ export class App extends BaseNode {
3943
4025
  });
3944
4026
  });
3945
4027
  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
- }
4028
+ const { name, version, compilerInfoMap, frontends } = dep;
4029
+ const prefixPath = compilerInfoMap?.js?.prefix;
4030
+ if (name) {
4031
+ (frontends || []).forEach((frontend) => {
4032
+ if (frontend.type === scope) {
4033
+ const jsName = `${prefix}/packages/${prefixPath?prefixPath+"/":""}${name}@${version}/dist-theme/index.js`;
4034
+ if (!existingSet.has(jsName)) {
4035
+ existingSet.add(jsName);
4036
+ result.custom.js.push(jsName);
4037
+ result.custom.names.push(dep.name);
4038
+ }
4039
+ }
4040
+ });
3956
4041
  }
3957
- });
3958
4042
  });
3959
4043
  return result;
3960
4044
  }
@@ -4177,7 +4261,10 @@ export class App extends BaseNode {
4177
4261
  message: `输出参数发生变更,请点击“重新导出”`,
4178
4262
  });
4179
4263
  }
4180
- } else if (JSON.stringify(logicReturns[0]?.typeAnnotation?.toJSON()) !== JSON.stringify(interfaceReturns[0]?.typeAnnotation?.toJSON())) {
4264
+ } else if (
4265
+ JSON.stringify(logicReturns[0]?.typeAnnotation?.toJSON()) !==
4266
+ JSON.stringify(interfaceReturns[0]?.typeAnnotation?.toJSON())
4267
+ ) {
4181
4268
  errorList.push({
4182
4269
  logicName: logic.name,
4183
4270
  interfaceName: item.name,
@@ -4324,15 +4411,30 @@ export class App extends BaseNode {
4324
4411
  return this.logics.find((item) => item.name === name);
4325
4412
  }
4326
4413
 
4327
- //= ===============================================================================
4414
+ /** 获取已经存在的Module title */
4415
+ getModuleExistingTitles(excludedList: Array<Module> = []) {
4416
+ const excludedSet = new Set(excludedList);
4417
+ return ((this.dependencies as Module[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item.title);
4418
+ }
4419
+
4420
+ /** hank */
4421
+ // setConnector() {
4422
+ // const [a, b, c, d, e, f] = this.connections;
4423
+ // console.log(a, b, c, d, e, f, this.connections)
4424
+ // const res = []
4425
+ // this.update({
4426
+ // connections: [a, b, c, e, f],
4427
+ // });
4428
+ // }
4429
+
4430
+ //================================================================================
4328
4431
  // 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
4329
4432
  // ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
4330
- //= ===============================================================================
4433
+ //================================================================================
4331
4434
  }
4332
4435
 
4333
- classMap.App = App;
4334
4436
  export default App;
4335
- //= ===============================================================================
4437
+ //================================================================================
4336
4438
  // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
4337
4439
  // 自动生成的代码已结束。下面可以手动编写。
4338
- //= ===============================================================================
4440
+ //================================================================================