@lcap/nasl 3.6.0-alpha.7 → 3.6.0-alpha.8

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 (934) hide show
  1. package/out/automate/engine/index.d.ts +4 -0
  2. package/out/automate/engine/index.js +443 -0
  3. package/out/automate/engine/index.js.map +1 -0
  4. package/out/automate/engine/operators.d.ts +26 -0
  5. package/out/automate/engine/operators.js +364 -0
  6. package/out/automate/engine/operators.js.map +1 -0
  7. package/out/automate/engine/uniqueName.d.ts +12 -0
  8. package/out/automate/engine/uniqueName.js +116 -0
  9. package/out/automate/engine/uniqueName.js.map +1 -0
  10. package/out/automate/engine/utils.d.ts +25 -0
  11. package/out/automate/engine/utils.js +440 -0
  12. package/out/automate/engine/utils.js.map +1 -0
  13. package/out/automate/engine/viewCache.d.ts +19 -0
  14. package/out/automate/engine/viewCache.js +45 -0
  15. package/out/automate/engine/viewCache.js.map +1 -0
  16. package/out/automate/template/myProcess.d.ts +10 -0
  17. package/out/automate/template/myProcess.js +11502 -0
  18. package/out/automate/template/myProcess.js.map +1 -0
  19. package/out/automate/upgrader/2.12.d.ts +7 -0
  20. package/out/automate/upgrader/2.12.js +63 -0
  21. package/out/automate/upgrader/2.12.js.map +1 -0
  22. package/out/automate/upgrader/2.14-components.d.ts +1115 -0
  23. package/out/automate/upgrader/2.14-components.js +1087 -0
  24. package/out/automate/upgrader/2.14-components.js.map +1 -0
  25. package/out/automate/upgrader/2.14.d.ts +10 -0
  26. package/out/automate/upgrader/2.14.js +236 -0
  27. package/out/automate/upgrader/2.14.js.map +1 -0
  28. package/out/automate/upgrader/2.14.old.d.ts +1 -0
  29. package/out/automate/upgrader/2.14.old.js +125 -0
  30. package/out/automate/upgrader/2.14.old.js.map +1 -0
  31. package/out/automate/upgrader/2.16.d.ts +10 -0
  32. package/out/automate/upgrader/2.16.js +75 -0
  33. package/out/automate/upgrader/2.16.js.map +1 -0
  34. package/out/automate/upgrader/2.17.d.ts +21 -0
  35. package/out/automate/upgrader/2.17.js +557 -0
  36. package/out/automate/upgrader/2.17.js.map +1 -0
  37. package/out/automate/upgrader/2.18.d.ts +10 -0
  38. package/out/automate/upgrader/2.18.js +107 -0
  39. package/out/automate/upgrader/2.18.js.map +1 -0
  40. package/out/automate/upgrader/2.20.d.ts +17 -0
  41. package/out/automate/upgrader/2.20.js +68 -0
  42. package/out/automate/upgrader/2.20.js.map +1 -0
  43. package/out/bak/translator.d.ts +1 -0
  44. package/out/bak/translator.js +305 -0
  45. package/out/bak/translator.js.map +1 -0
  46. package/out/breakpoint/generator/AfterStartNode.d.ts +7 -0
  47. package/out/breakpoint/generator/AfterStartNode.js +30 -0
  48. package/out/breakpoint/generator/AfterStartNode.js.map +1 -0
  49. package/out/breakpoint/generator/BeforeEndNode.d.ts +7 -0
  50. package/out/breakpoint/generator/BeforeEndNode.js +28 -0
  51. package/out/breakpoint/generator/BeforeEndNode.js.map +1 -0
  52. package/out/breakpoint/generator/BreakpointNode.d.ts +18 -0
  53. package/out/breakpoint/generator/BreakpointNode.js +293 -0
  54. package/out/breakpoint/generator/BreakpointNode.js.map +1 -0
  55. package/out/breakpoint/generator/CallbackNode.d.ts +4 -0
  56. package/out/breakpoint/generator/CallbackNode.js +37 -0
  57. package/out/breakpoint/generator/CallbackNode.js.map +1 -0
  58. package/out/breakpoint/generator/FragmentNode.d.ts +4 -0
  59. package/out/breakpoint/generator/FragmentNode.js +18 -0
  60. package/out/breakpoint/generator/FragmentNode.js.map +1 -0
  61. package/out/breakpoint/generator/index.d.ts +4 -0
  62. package/out/breakpoint/generator/index.js +119 -0
  63. package/out/breakpoint/generator/index.js.map +1 -0
  64. package/out/breakpoint/index.d.ts +3 -0
  65. package/out/breakpoint/index.js +20 -0
  66. package/out/breakpoint/index.js.map +1 -0
  67. package/out/breakpoint/shared/constants.d.ts +37 -0
  68. package/out/breakpoint/shared/constants.js +108 -0
  69. package/out/breakpoint/shared/constants.js.map +1 -0
  70. package/out/breakpoint/shared/index.d.ts +3 -0
  71. package/out/breakpoint/shared/index.js +33 -0
  72. package/out/breakpoint/shared/index.js.map +1 -0
  73. package/out/breakpoint/shared/operations.d.ts +10 -0
  74. package/out/breakpoint/shared/operations.js +25 -0
  75. package/out/breakpoint/shared/operations.js.map +1 -0
  76. package/out/breakpoint/shared/socket.d.ts +48 -0
  77. package/out/breakpoint/shared/socket.js +257 -0
  78. package/out/breakpoint/shared/socket.js.map +1 -0
  79. package/out/breakpoint/shared/utils.d.ts +27 -0
  80. package/out/breakpoint/shared/utils.js +217 -0
  81. package/out/breakpoint/shared/utils.js.map +1 -0
  82. package/out/breakpoint/store/core.d.ts +80 -0
  83. package/out/breakpoint/store/core.js +416 -0
  84. package/out/breakpoint/store/core.js.map +1 -0
  85. package/out/breakpoint/store/dock.d.ts +1 -0
  86. package/out/breakpoint/store/dock.js +160 -0
  87. package/out/breakpoint/store/dock.js.map +1 -0
  88. package/out/breakpoint/store/index.d.ts +2 -0
  89. package/out/breakpoint/store/index.js +19 -0
  90. package/out/breakpoint/store/index.js.map +1 -0
  91. package/out/common/BaseNode.d.ts +377 -0
  92. package/out/common/BaseNode.js +1432 -0
  93. package/out/common/BaseNode.js.map +1 -0
  94. package/out/common/Command.d.ts +21 -0
  95. package/out/common/Command.js +79 -0
  96. package/out/common/Command.js.map +1 -0
  97. package/out/common/ComponentAPI.d.ts +112 -0
  98. package/out/common/ComponentAPI.js +3 -0
  99. package/out/common/ComponentAPI.js.map +1 -0
  100. package/out/common/EventEmitter.d.ts +61 -0
  101. package/out/common/EventEmitter.js +71 -0
  102. package/out/common/EventEmitter.js.map +1 -0
  103. package/out/common/Messager.d.ts +91 -0
  104. package/out/common/Messager.js +205 -0
  105. package/out/common/Messager.js.map +1 -0
  106. package/out/common/asyncFuncMap.d.ts +2 -0
  107. package/out/common/asyncFuncMap.js +16 -0
  108. package/out/common/asyncFuncMap.js.map +1 -0
  109. package/out/common/index.d.ts +4 -0
  110. package/out/common/index.js +21 -0
  111. package/out/common/index.js.map +1 -0
  112. package/out/common/utils.d.ts +2 -0
  113. package/out/common/utils.js +18 -0
  114. package/out/common/utils.js.map +1 -0
  115. package/out/concepts/Abort__.d.ts +28 -0
  116. package/out/concepts/Abort__.js +80 -0
  117. package/out/concepts/Abort__.js.map +1 -0
  118. package/out/concepts/AbstractInterface__.d.ts +22 -0
  119. package/out/concepts/AbstractInterface__.js +56 -0
  120. package/out/concepts/AbstractInterface__.js.map +1 -0
  121. package/out/concepts/Anchor__.d.ts +48 -0
  122. package/out/concepts/Anchor__.js +200 -0
  123. package/out/concepts/Anchor__.js.map +1 -0
  124. package/out/concepts/AnonymousFunction__.d.ts +180 -0
  125. package/out/concepts/AnonymousFunction__.js +555 -0
  126. package/out/concepts/AnonymousFunction__.js.map +1 -0
  127. package/out/concepts/App__.d.ts +1818 -0
  128. package/out/concepts/App__.js +2983 -0
  129. package/out/concepts/App__.js.map +1 -0
  130. package/out/concepts/Argument__.d.ts +70 -0
  131. package/out/concepts/Argument__.js +270 -0
  132. package/out/concepts/Argument__.js.map +1 -0
  133. package/out/concepts/Assignee__.d.ts +291 -0
  134. package/out/concepts/Assignee__.js +461 -0
  135. package/out/concepts/Assignee__.js.map +1 -0
  136. package/out/concepts/AssignmentLine__.d.ts +44 -0
  137. package/out/concepts/AssignmentLine__.js +114 -0
  138. package/out/concepts/AssignmentLine__.js.map +1 -0
  139. package/out/concepts/Assignment__.d.ts +77 -0
  140. package/out/concepts/Assignment__.js +338 -0
  141. package/out/concepts/Assignment__.js.map +1 -0
  142. package/out/concepts/Attribute__.d.ts +112 -0
  143. package/out/concepts/Attribute__.js +208 -0
  144. package/out/concepts/Attribute__.js.map +1 -0
  145. package/out/concepts/AuthInterface__.d.ts +38 -0
  146. package/out/concepts/AuthInterface__.js +74 -0
  147. package/out/concepts/AuthInterface__.js.map +1 -0
  148. package/out/concepts/AuthLogicForCallInterface__.d.ts +141 -0
  149. package/out/concepts/AuthLogicForCallInterface__.js +514 -0
  150. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -0
  151. package/out/concepts/AuthLogic__.d.ts +69 -0
  152. package/out/concepts/AuthLogic__.js +210 -0
  153. package/out/concepts/AuthLogic__.js.map +1 -0
  154. package/out/concepts/BackendVariable__.d.ts +145 -0
  155. package/out/concepts/BackendVariable__.js +502 -0
  156. package/out/concepts/BackendVariable__.js.map +1 -0
  157. package/out/concepts/Backend__.d.ts +134 -0
  158. package/out/concepts/Backend__.js +280 -0
  159. package/out/concepts/Backend__.js.map +1 -0
  160. package/out/concepts/BatchAssignment__.d.ts +255 -0
  161. package/out/concepts/BatchAssignment__.js +881 -0
  162. package/out/concepts/BatchAssignment__.js.map +1 -0
  163. package/out/concepts/BinaryExpression__.d.ts +76 -0
  164. package/out/concepts/BinaryExpression__.js +422 -0
  165. package/out/concepts/BinaryExpression__.js.map +1 -0
  166. package/out/concepts/BindAttribute__.d.ts +329 -0
  167. package/out/concepts/BindAttribute__.js +1130 -0
  168. package/out/concepts/BindAttribute__.js.map +1 -0
  169. package/out/concepts/BindDirective__.d.ts +170 -0
  170. package/out/concepts/BindDirective__.js +573 -0
  171. package/out/concepts/BindDirective__.js.map +1 -0
  172. package/out/concepts/BindEvent__.d.ts +254 -0
  173. package/out/concepts/BindEvent__.js +959 -0
  174. package/out/concepts/BindEvent__.js.map +1 -0
  175. package/out/concepts/BindStyle__.d.ts +142 -0
  176. package/out/concepts/BindStyle__.js +453 -0
  177. package/out/concepts/BindStyle__.js.map +1 -0
  178. package/out/concepts/Block__.d.ts +84 -0
  179. package/out/concepts/Block__.js +215 -0
  180. package/out/concepts/Block__.js.map +1 -0
  181. package/out/concepts/BooleanLiteral__.d.ts +38 -0
  182. package/out/concepts/BooleanLiteral__.js +97 -0
  183. package/out/concepts/BooleanLiteral__.js.map +1 -0
  184. package/out/concepts/BusinessComponent__.d.ts +641 -0
  185. package/out/concepts/BusinessComponent__.js +1944 -0
  186. package/out/concepts/BusinessComponent__.js.map +1 -0
  187. package/out/concepts/BusinessLogic__.d.ts +38 -0
  188. package/out/concepts/BusinessLogic__.js +358 -0
  189. package/out/concepts/BusinessLogic__.js.map +1 -0
  190. package/out/concepts/CallAuthInterface__.d.ts +130 -0
  191. package/out/concepts/CallAuthInterface__.js +438 -0
  192. package/out/concepts/CallAuthInterface__.js.map +1 -0
  193. package/out/concepts/CallConnector__.d.ts +49 -0
  194. package/out/concepts/CallConnector__.js +257 -0
  195. package/out/concepts/CallConnector__.js.map +1 -0
  196. package/out/concepts/CallEvent__.d.ts +101 -0
  197. package/out/concepts/CallEvent__.js +280 -0
  198. package/out/concepts/CallEvent__.js.map +1 -0
  199. package/out/concepts/CallFunction__.d.ts +162 -0
  200. package/out/concepts/CallFunction__.js +600 -0
  201. package/out/concepts/CallFunction__.js.map +1 -0
  202. package/out/concepts/CallInterface__.d.ts +136 -0
  203. package/out/concepts/CallInterface__.js +814 -0
  204. package/out/concepts/CallInterface__.js.map +1 -0
  205. package/out/concepts/CallLogic__.d.ts +235 -0
  206. package/out/concepts/CallLogic__.js +1361 -0
  207. package/out/concepts/CallLogic__.js.map +1 -0
  208. package/out/concepts/CallQueryComponent__.d.ts +435 -0
  209. package/out/concepts/CallQueryComponent__.js +1235 -0
  210. package/out/concepts/CallQueryComponent__.js.map +1 -0
  211. package/out/concepts/Comment__.d.ts +35 -0
  212. package/out/concepts/Comment__.js +94 -0
  213. package/out/concepts/Comment__.js.map +1 -0
  214. package/out/concepts/CompletionProperty__.d.ts +107 -0
  215. package/out/concepts/CompletionProperty__.js +239 -0
  216. package/out/concepts/CompletionProperty__.js.map +1 -0
  217. package/out/concepts/ConfigGroup__.d.ts +127 -0
  218. package/out/concepts/ConfigGroup__.js +258 -0
  219. package/out/concepts/ConfigGroup__.js.map +1 -0
  220. package/out/concepts/ConfigPropertyValue__.d.ts +47 -0
  221. package/out/concepts/ConfigPropertyValue__.js +93 -0
  222. package/out/concepts/ConfigPropertyValue__.js.map +1 -0
  223. package/out/concepts/ConfigProperty__.d.ts +153 -0
  224. package/out/concepts/ConfigProperty__.js +321 -0
  225. package/out/concepts/ConfigProperty__.js.map +1 -0
  226. package/out/concepts/Configuration__.d.ts +126 -0
  227. package/out/concepts/Configuration__.js +236 -0
  228. package/out/concepts/Configuration__.js.map +1 -0
  229. package/out/concepts/Connection__.d.ts +165 -0
  230. package/out/concepts/Connection__.js +330 -0
  231. package/out/concepts/Connection__.js.map +1 -0
  232. package/out/concepts/ConnectorTrigger__.d.ts +81 -0
  233. package/out/concepts/ConnectorTrigger__.js +138 -0
  234. package/out/concepts/ConnectorTrigger__.js.map +1 -0
  235. package/out/concepts/Connector__.d.ts +929 -0
  236. package/out/concepts/Connector__.js +1343 -0
  237. package/out/concepts/Connector__.js.map +1 -0
  238. package/out/concepts/Constant__.d.ts +121 -0
  239. package/out/concepts/Constant__.js +331 -0
  240. package/out/concepts/Constant__.js.map +1 -0
  241. package/out/concepts/CountersignPolicy__.d.ts +28 -0
  242. package/out/concepts/CountersignPolicy__.js +62 -0
  243. package/out/concepts/CountersignPolicy__.js.map +1 -0
  244. package/out/concepts/DataSource__.d.ts +168 -0
  245. package/out/concepts/DataSource__.js +460 -0
  246. package/out/concepts/DataSource__.js.map +1 -0
  247. package/out/concepts/DatabaseTypeAnnotation__.d.ts +34 -0
  248. package/out/concepts/DatabaseTypeAnnotation__.js +65 -0
  249. package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
  250. package/out/concepts/DefaultValue__.d.ts +104 -0
  251. package/out/concepts/DefaultValue__.js +242 -0
  252. package/out/concepts/DefaultValue__.js.map +1 -0
  253. package/out/concepts/Destination__.d.ts +160 -0
  254. package/out/concepts/Destination__.js +799 -0
  255. package/out/concepts/Destination__.js.map +1 -0
  256. package/out/concepts/End__.d.ts +27 -0
  257. package/out/concepts/End__.js +115 -0
  258. package/out/concepts/End__.js.map +1 -0
  259. package/out/concepts/EntityIndex__.d.ts +98 -0
  260. package/out/concepts/EntityIndex__.js +201 -0
  261. package/out/concepts/EntityIndex__.js.map +1 -0
  262. package/out/concepts/EntityProperty__.d.ts +293 -0
  263. package/out/concepts/EntityProperty__.js +824 -0
  264. package/out/concepts/EntityProperty__.js.map +1 -0
  265. package/out/concepts/Entity__.d.ts +339 -0
  266. package/out/concepts/Entity__.js +764 -0
  267. package/out/concepts/Entity__.js.map +1 -0
  268. package/out/concepts/EnumItem__.d.ts +67 -0
  269. package/out/concepts/EnumItem__.js +131 -0
  270. package/out/concepts/EnumItem__.js.map +1 -0
  271. package/out/concepts/Enum__.d.ts +138 -0
  272. package/out/concepts/Enum__.js +321 -0
  273. package/out/concepts/Enum__.js.map +1 -0
  274. package/out/concepts/Event__.d.ts +160 -0
  275. package/out/concepts/Event__.js +294 -0
  276. package/out/concepts/Event__.js.map +1 -0
  277. package/out/concepts/ExternalDestination__.d.ts +78 -0
  278. package/out/concepts/ExternalDestination__.js +309 -0
  279. package/out/concepts/ExternalDestination__.js.map +1 -0
  280. package/out/concepts/ForEachStatement__.d.ts +173 -0
  281. package/out/concepts/ForEachStatement__.js +497 -0
  282. package/out/concepts/ForEachStatement__.js.map +1 -0
  283. package/out/concepts/FrontendLibrary__.d.ts +216 -0
  284. package/out/concepts/FrontendLibrary__.js +364 -0
  285. package/out/concepts/FrontendLibrary__.js.map +1 -0
  286. package/out/concepts/FrontendType__.d.ts +308 -0
  287. package/out/concepts/FrontendType__.js +606 -0
  288. package/out/concepts/FrontendType__.js.map +1 -0
  289. package/out/concepts/FrontendVariable__.d.ts +36 -0
  290. package/out/concepts/FrontendVariable__.js +77 -0
  291. package/out/concepts/FrontendVariable__.js.map +1 -0
  292. package/out/concepts/Frontend__.d.ts +420 -0
  293. package/out/concepts/Frontend__.js +915 -0
  294. package/out/concepts/Frontend__.js.map +1 -0
  295. package/out/concepts/Function__.d.ts +420 -0
  296. package/out/concepts/Function__.js +805 -0
  297. package/out/concepts/Function__.js.map +1 -0
  298. package/out/concepts/I18nInfo__.d.ts +46 -0
  299. package/out/concepts/I18nInfo__.js +90 -0
  300. package/out/concepts/I18nInfo__.js.map +1 -0
  301. package/out/concepts/Identifier__.d.ts +59 -0
  302. package/out/concepts/Identifier__.js +326 -0
  303. package/out/concepts/Identifier__.js.map +1 -0
  304. package/out/concepts/IfStatement__.d.ts +161 -0
  305. package/out/concepts/IfStatement__.js +372 -0
  306. package/out/concepts/IfStatement__.js.map +1 -0
  307. package/out/concepts/ImportedInterface__.d.ts +20 -0
  308. package/out/concepts/ImportedInterface__.js +48 -0
  309. package/out/concepts/ImportedInterface__.js.map +1 -0
  310. package/out/concepts/Integration__.d.ts +146 -0
  311. package/out/concepts/Integration__.js +296 -0
  312. package/out/concepts/Integration__.js.map +1 -0
  313. package/out/concepts/InterfaceParam__.d.ts +146 -0
  314. package/out/concepts/InterfaceParam__.js +342 -0
  315. package/out/concepts/InterfaceParam__.js.map +1 -0
  316. package/out/concepts/Interface__.d.ts +328 -0
  317. package/out/concepts/Interface__.js +892 -0
  318. package/out/concepts/Interface__.js.map +1 -0
  319. package/out/concepts/JSBlock__.d.ts +37 -0
  320. package/out/concepts/JSBlock__.js +104 -0
  321. package/out/concepts/JSBlock__.js.map +1 -0
  322. package/out/concepts/JavaLogic__.d.ts +45 -0
  323. package/out/concepts/JavaLogic__.js +109 -0
  324. package/out/concepts/JavaLogic__.js.map +1 -0
  325. package/out/concepts/LogicItem__.d.ts +155 -0
  326. package/out/concepts/LogicItem__.js +284 -0
  327. package/out/concepts/LogicItem__.js.map +1 -0
  328. package/out/concepts/Logic__.d.ts +649 -0
  329. package/out/concepts/Logic__.js +1939 -0
  330. package/out/concepts/Logic__.js.map +1 -0
  331. package/out/concepts/MatchCase__.d.ts +261 -0
  332. package/out/concepts/MatchCase__.js +706 -0
  333. package/out/concepts/MatchCase__.js.map +1 -0
  334. package/out/concepts/Match__.d.ts +127 -0
  335. package/out/concepts/Match__.js +731 -0
  336. package/out/concepts/Match__.js.map +1 -0
  337. package/out/concepts/MemberExpression__.d.ts +80 -0
  338. package/out/concepts/MemberExpression__.js +529 -0
  339. package/out/concepts/MemberExpression__.js.map +1 -0
  340. package/out/concepts/MetadataType__.d.ts +236 -0
  341. package/out/concepts/MetadataType__.js +464 -0
  342. package/out/concepts/MetadataType__.js.map +1 -0
  343. package/out/concepts/MicroApp__.d.ts +54 -0
  344. package/out/concepts/MicroApp__.js +80 -0
  345. package/out/concepts/MicroApp__.js.map +1 -0
  346. package/out/concepts/Module__.d.ts +1171 -0
  347. package/out/concepts/Module__.js +1747 -0
  348. package/out/concepts/Module__.js.map +1 -0
  349. package/out/concepts/MsgTriggerEvent__.d.ts +140 -0
  350. package/out/concepts/MsgTriggerEvent__.js +236 -0
  351. package/out/concepts/MsgTriggerEvent__.js.map +1 -0
  352. package/out/concepts/MsgTriggerLauncher__.d.ts +129 -0
  353. package/out/concepts/MsgTriggerLauncher__.js +226 -0
  354. package/out/concepts/MsgTriggerLauncher__.js.map +1 -0
  355. package/out/concepts/MultiApprovalPolicy__.d.ts +26 -0
  356. package/out/concepts/MultiApprovalPolicy__.js +59 -0
  357. package/out/concepts/MultiApprovalPolicy__.js.map +1 -0
  358. package/out/concepts/Namespace__.d.ts +1086 -0
  359. package/out/concepts/Namespace__.js +1555 -0
  360. package/out/concepts/Namespace__.js.map +1 -0
  361. package/out/concepts/NewComposite__.d.ts +353 -0
  362. package/out/concepts/NewComposite__.js +1277 -0
  363. package/out/concepts/NewComposite__.js.map +1 -0
  364. package/out/concepts/NewList__.d.ts +141 -0
  365. package/out/concepts/NewList__.js +470 -0
  366. package/out/concepts/NewList__.js.map +1 -0
  367. package/out/concepts/NewMap__.d.ts +231 -0
  368. package/out/concepts/NewMap__.js +604 -0
  369. package/out/concepts/NewMap__.js.map +1 -0
  370. package/out/concepts/New__.d.ts +23 -0
  371. package/out/concepts/New__.js +65 -0
  372. package/out/concepts/New__.js.map +1 -0
  373. package/out/concepts/NullLiteral__.d.ts +29 -0
  374. package/out/concepts/NullLiteral__.js +77 -0
  375. package/out/concepts/NullLiteral__.js.map +1 -0
  376. package/out/concepts/NumericLiteral__.d.ts +59 -0
  377. package/out/concepts/NumericLiteral__.js +177 -0
  378. package/out/concepts/NumericLiteral__.js.map +1 -0
  379. package/out/concepts/OqlQueryComponent__.d.ts +76 -0
  380. package/out/concepts/OqlQueryComponent__.js +351 -0
  381. package/out/concepts/OqlQueryComponent__.js.map +1 -0
  382. package/out/concepts/OverriddenLogic__.d.ts +634 -0
  383. package/out/concepts/OverriddenLogic__.js +1661 -0
  384. package/out/concepts/OverriddenLogic__.js.map +1 -0
  385. package/out/concepts/Paginate__.d.ts +97 -0
  386. package/out/concepts/Paginate__.js +267 -0
  387. package/out/concepts/Paginate__.js.map +1 -0
  388. package/out/concepts/ParamWithGroup__.d.ts +39 -0
  389. package/out/concepts/ParamWithGroup__.js +85 -0
  390. package/out/concepts/ParamWithGroup__.js.map +1 -0
  391. package/out/concepts/Param__.d.ts +182 -0
  392. package/out/concepts/Param__.js +524 -0
  393. package/out/concepts/Param__.js.map +1 -0
  394. package/out/concepts/Point__.d.ts +34 -0
  395. package/out/concepts/Point__.js +65 -0
  396. package/out/concepts/Point__.js.map +1 -0
  397. package/out/concepts/ProcessComponent__.d.ts +222 -0
  398. package/out/concepts/ProcessComponent__.js +340 -0
  399. package/out/concepts/ProcessComponent__.js.map +1 -0
  400. package/out/concepts/ProcessElement__.d.ts +665 -0
  401. package/out/concepts/ProcessElement__.js +1354 -0
  402. package/out/concepts/ProcessElement__.js.map +1 -0
  403. package/out/concepts/ProcessOutcome__.d.ts +34 -0
  404. package/out/concepts/ProcessOutcome__.js +97 -0
  405. package/out/concepts/ProcessOutcome__.js.map +1 -0
  406. package/out/concepts/ProcessOutcomes__.d.ts +34 -0
  407. package/out/concepts/ProcessOutcomes__.js +104 -0
  408. package/out/concepts/ProcessOutcomes__.js.map +1 -0
  409. package/out/concepts/Process__.d.ts +615 -0
  410. package/out/concepts/Process__.js +1117 -0
  411. package/out/concepts/Process__.js.map +1 -0
  412. package/out/concepts/QueryAggregateExpression__.d.ts +54 -0
  413. package/out/concepts/QueryAggregateExpression__.js +140 -0
  414. package/out/concepts/QueryAggregateExpression__.js.map +1 -0
  415. package/out/concepts/QueryFieldExpression__.d.ts +56 -0
  416. package/out/concepts/QueryFieldExpression__.js +142 -0
  417. package/out/concepts/QueryFieldExpression__.js.map +1 -0
  418. package/out/concepts/QueryFromExpression__.d.ts +101 -0
  419. package/out/concepts/QueryFromExpression__.js +227 -0
  420. package/out/concepts/QueryFromExpression__.js.map +1 -0
  421. package/out/concepts/QueryGroupByExpression__.d.ts +50 -0
  422. package/out/concepts/QueryGroupByExpression__.js +142 -0
  423. package/out/concepts/QueryGroupByExpression__.js.map +1 -0
  424. package/out/concepts/QueryJoinExpression__.d.ts +188 -0
  425. package/out/concepts/QueryJoinExpression__.js +327 -0
  426. package/out/concepts/QueryJoinExpression__.js.map +1 -0
  427. package/out/concepts/QueryLimitExpression__.d.ts +60 -0
  428. package/out/concepts/QueryLimitExpression__.js +159 -0
  429. package/out/concepts/QueryLimitExpression__.js.map +1 -0
  430. package/out/concepts/QueryOrderByExpression__.d.ts +71 -0
  431. package/out/concepts/QueryOrderByExpression__.js +172 -0
  432. package/out/concepts/QueryOrderByExpression__.js.map +1 -0
  433. package/out/concepts/QuerySelectExpression__.d.ts +206 -0
  434. package/out/concepts/QuerySelectExpression__.js +308 -0
  435. package/out/concepts/QuerySelectExpression__.js.map +1 -0
  436. package/out/concepts/Rect__.d.ts +42 -0
  437. package/out/concepts/Rect__.js +71 -0
  438. package/out/concepts/Rect__.js.map +1 -0
  439. package/out/concepts/Return__.d.ts +147 -0
  440. package/out/concepts/Return__.js +429 -0
  441. package/out/concepts/Return__.js.map +1 -0
  442. package/out/concepts/Role__.d.ts +62 -0
  443. package/out/concepts/Role__.js +151 -0
  444. package/out/concepts/Role__.js.map +1 -0
  445. package/out/concepts/SelectMembers__.d.ts +145 -0
  446. package/out/concepts/SelectMembers__.js +300 -0
  447. package/out/concepts/SelectMembers__.js.map +1 -0
  448. package/out/concepts/SequentialPolicy__.d.ts +20 -0
  449. package/out/concepts/SequentialPolicy__.js +48 -0
  450. package/out/concepts/SequentialPolicy__.js.map +1 -0
  451. package/out/concepts/Slot__.d.ts +77 -0
  452. package/out/concepts/Slot__.js +141 -0
  453. package/out/concepts/Slot__.js.map +1 -0
  454. package/out/concepts/SqlQueryComponent__.d.ts +74 -0
  455. package/out/concepts/SqlQueryComponent__.js +269 -0
  456. package/out/concepts/SqlQueryComponent__.js.map +1 -0
  457. package/out/concepts/Start__.d.ts +27 -0
  458. package/out/concepts/Start__.js +69 -0
  459. package/out/concepts/Start__.js.map +1 -0
  460. package/out/concepts/StaticString__.d.ts +49 -0
  461. package/out/concepts/StaticString__.js +91 -0
  462. package/out/concepts/StaticString__.js.map +1 -0
  463. package/out/concepts/StringInterpolation__.d.ts +118 -0
  464. package/out/concepts/StringInterpolation__.js +284 -0
  465. package/out/concepts/StringInterpolation__.js.map +1 -0
  466. package/out/concepts/StringLiteral__.d.ts +45 -0
  467. package/out/concepts/StringLiteral__.js +159 -0
  468. package/out/concepts/StringLiteral__.js.map +1 -0
  469. package/out/concepts/StructureProperty__.d.ts +154 -0
  470. package/out/concepts/StructureProperty__.js +338 -0
  471. package/out/concepts/StructureProperty__.js.map +1 -0
  472. package/out/concepts/Structure__.d.ts +250 -0
  473. package/out/concepts/Structure__.js +508 -0
  474. package/out/concepts/Structure__.js.map +1 -0
  475. package/out/concepts/SwitchCase__.d.ts +97 -0
  476. package/out/concepts/SwitchCase__.js +305 -0
  477. package/out/concepts/SwitchCase__.js.map +1 -0
  478. package/out/concepts/SwitchStatement__.d.ts +87 -0
  479. package/out/concepts/SwitchStatement__.js +234 -0
  480. package/out/concepts/SwitchStatement__.js.map +1 -0
  481. package/out/concepts/Theme__.d.ts +40 -0
  482. package/out/concepts/Theme__.js +84 -0
  483. package/out/concepts/Theme__.js.map +1 -0
  484. package/out/concepts/Transactional__.d.ts +90 -0
  485. package/out/concepts/Transactional__.js +149 -0
  486. package/out/concepts/Transactional__.js.map +1 -0
  487. package/out/concepts/TriggerEvent__.d.ts +54 -0
  488. package/out/concepts/TriggerEvent__.js +137 -0
  489. package/out/concepts/TriggerEvent__.js.map +1 -0
  490. package/out/concepts/TriggerLauncher__.d.ts +81 -0
  491. package/out/concepts/TriggerLauncher__.js +197 -0
  492. package/out/concepts/TriggerLauncher__.js.map +1 -0
  493. package/out/concepts/TypeAnnotation__.d.ts +305 -0
  494. package/out/concepts/TypeAnnotation__.js +1095 -0
  495. package/out/concepts/TypeAnnotation__.js.map +1 -0
  496. package/out/concepts/TypeParam__.d.ts +28 -0
  497. package/out/concepts/TypeParam__.js +71 -0
  498. package/out/concepts/TypeParam__.js.map +1 -0
  499. package/out/concepts/UnaryExpression__.d.ts +52 -0
  500. package/out/concepts/UnaryExpression__.js +191 -0
  501. package/out/concepts/UnaryExpression__.js.map +1 -0
  502. package/out/concepts/Unparsed__.d.ts +36 -0
  503. package/out/concepts/Unparsed__.js +91 -0
  504. package/out/concepts/Unparsed__.js.map +1 -0
  505. package/out/concepts/UseComponent__.d.ts +34 -0
  506. package/out/concepts/UseComponent__.js +65 -0
  507. package/out/concepts/UseComponent__.js.map +1 -0
  508. package/out/concepts/ValidationRule__.d.ts +152 -0
  509. package/out/concepts/ValidationRule__.js +535 -0
  510. package/out/concepts/ValidationRule__.js.map +1 -0
  511. package/out/concepts/Variable__.d.ts +164 -0
  512. package/out/concepts/Variable__.js +505 -0
  513. package/out/concepts/Variable__.js.map +1 -0
  514. package/out/concepts/ViewBlock__.d.ts +38 -0
  515. package/out/concepts/ViewBlock__.js +68 -0
  516. package/out/concepts/ViewBlock__.js.map +1 -0
  517. package/out/concepts/ViewComponent__.d.ts +568 -0
  518. package/out/concepts/ViewComponent__.js +809 -0
  519. package/out/concepts/ViewComponent__.js.map +1 -0
  520. package/out/concepts/ViewElement__.d.ts +656 -0
  521. package/out/concepts/ViewElement__.js +2727 -0
  522. package/out/concepts/ViewElement__.js.map +1 -0
  523. package/out/concepts/View__.d.ts +747 -0
  524. package/out/concepts/View__.js +2633 -0
  525. package/out/concepts/View__.js.map +1 -0
  526. package/out/concepts/WhileStatement__.d.ts +100 -0
  527. package/out/concepts/WhileStatement__.js +269 -0
  528. package/out/concepts/WhileStatement__.js.map +1 -0
  529. package/out/concepts/basics/constants.d.ts +1 -0
  530. package/out/concepts/basics/constants.js +6 -0
  531. package/out/concepts/basics/constants.js.map +1 -0
  532. package/out/concepts/basics/stdlib/index.d.ts +16 -0
  533. package/out/concepts/basics/stdlib/index.js +90 -0
  534. package/out/concepts/basics/stdlib/index.js.map +1 -0
  535. package/out/concepts/basics/stdlib/nasl.auth.d.ts +9 -0
  536. package/out/concepts/basics/stdlib/nasl.auth.js +206 -0
  537. package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -0
  538. package/out/concepts/basics/stdlib/nasl.browser.d.ts +5 -0
  539. package/out/concepts/basics/stdlib/nasl.browser.js +158 -0
  540. package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -0
  541. package/out/concepts/basics/stdlib/nasl.collection.d.ts +9 -0
  542. package/out/concepts/basics/stdlib/nasl.collection.js +57 -0
  543. package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -0
  544. package/out/concepts/basics/stdlib/nasl.configuration.d.ts +5 -0
  545. package/out/concepts/basics/stdlib/nasl.configuration.js +65 -0
  546. package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -0
  547. package/out/concepts/basics/stdlib/nasl.core.d.ts +7 -0
  548. package/out/concepts/basics/stdlib/nasl.core.js +47 -0
  549. package/out/concepts/basics/stdlib/nasl.core.js.map +1 -0
  550. package/out/concepts/basics/stdlib/nasl.event.d.ts +5 -0
  551. package/out/concepts/basics/stdlib/nasl.event.js +34 -0
  552. package/out/concepts/basics/stdlib/nasl.event.js.map +1 -0
  553. package/out/concepts/basics/stdlib/nasl.http.d.ts +9 -0
  554. package/out/concepts/basics/stdlib/nasl.http.js +174 -0
  555. package/out/concepts/basics/stdlib/nasl.http.js.map +1 -0
  556. package/out/concepts/basics/stdlib/nasl.interface.d.ts +9 -0
  557. package/out/concepts/basics/stdlib/nasl.interface.js +49 -0
  558. package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -0
  559. package/out/concepts/basics/stdlib/nasl.io.d.ts +5 -0
  560. package/out/concepts/basics/stdlib/nasl.io.js +61 -0
  561. package/out/concepts/basics/stdlib/nasl.io.js.map +1 -0
  562. package/out/concepts/basics/stdlib/nasl.logging.d.ts +5 -0
  563. package/out/concepts/basics/stdlib/nasl.logging.js +65 -0
  564. package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -0
  565. package/out/concepts/basics/stdlib/nasl.process.d.ts +9 -0
  566. package/out/concepts/basics/stdlib/nasl.process.js +643 -0
  567. package/out/concepts/basics/stdlib/nasl.process.js.map +1 -0
  568. package/out/concepts/basics/stdlib/nasl.ui.d.ts +9 -0
  569. package/out/concepts/basics/stdlib/nasl.ui.js +1038 -0
  570. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -0
  571. package/out/concepts/basics/stdlib/nasl.util.d.ts +6 -0
  572. package/out/concepts/basics/stdlib/nasl.util.js +2285 -0
  573. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -0
  574. package/out/concepts/basics/stdlib/nasl.validation.d.ts +5 -0
  575. package/out/concepts/basics/stdlib/nasl.validation.js +574 -0
  576. package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -0
  577. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +4 -0
  578. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +47 -0
  579. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -0
  580. package/out/concepts/basics/stdlib/timeZone.d.ts +5 -0
  581. package/out/concepts/basics/stdlib/timeZone.js +196 -0
  582. package/out/concepts/basics/stdlib/timeZone.js.map +1 -0
  583. package/out/concepts/basics/types/coreTypeList.d.ts +2 -0
  584. package/out/concepts/basics/types/coreTypeList.js +15 -0
  585. package/out/concepts/basics/types/coreTypeList.js.map +1 -0
  586. package/out/concepts/basics/types/index.d.ts +16 -0
  587. package/out/concepts/basics/types/index.js +35 -0
  588. package/out/concepts/basics/types/index.js.map +1 -0
  589. package/out/concepts/index.d.ts +7 -0
  590. package/out/concepts/index.js +41 -0
  591. package/out/concepts/index.js.map +1 -0
  592. package/out/concepts/index__.d.ts +138 -0
  593. package/out/concepts/index__.js +155 -0
  594. package/out/concepts/index__.js.map +1 -0
  595. package/out/concepts/types__.d.ts +0 -0
  596. package/out/concepts/types__.js +1 -0
  597. package/out/concepts/types__.js.map +1 -0
  598. package/out/concepts/utils/asserts.d.ts +6982 -0
  599. package/out/concepts/utils/asserts.js +9276 -0
  600. package/out/concepts/utils/asserts.js.map +1 -0
  601. package/out/concepts/utils/quick-info.d.ts +13 -0
  602. package/out/concepts/utils/quick-info.js +51 -0
  603. package/out/concepts/utils/quick-info.js.map +1 -0
  604. package/out/concepts/utils/types.d.ts +450 -0
  605. package/out/concepts/utils/types.js +3 -0
  606. package/out/concepts/utils/types.js.map +1 -0
  607. package/out/config.d.ts +43 -0
  608. package/out/config.js +72 -0
  609. package/out/config.js.map +1 -0
  610. package/out/decorators/index.d.ts +67 -0
  611. package/out/decorators/index.js +213 -0
  612. package/out/decorators/index.js.map +1 -0
  613. package/out/decorators/promise.d.ts +7 -0
  614. package/out/decorators/promise.js +28 -0
  615. package/out/decorators/promise.js.map +1 -0
  616. package/out/enums/KEYWORDS.d.ts +6 -0
  617. package/out/enums/KEYWORDS.js +1248 -0
  618. package/out/enums/KEYWORDS.js.map +1 -0
  619. package/out/enums/LEVEL_NAME_MAP.d.ts +26 -0
  620. package/out/enums/LEVEL_NAME_MAP.js +30 -0
  621. package/out/enums/LEVEL_NAME_MAP.js.map +1 -0
  622. package/out/eventBus.d.ts +3 -0
  623. package/out/eventBus.js +7 -0
  624. package/out/eventBus.js.map +1 -0
  625. package/out/generator/compileComponent.d.ts +11 -0
  626. package/out/generator/compileComponent.js +12 -0
  627. package/out/generator/compileComponent.js.map +1 -0
  628. package/out/generator/genBundleFiles.d.ts +37 -0
  629. package/out/generator/genBundleFiles.js +678 -0
  630. package/out/generator/genBundleFiles.js.map +1 -0
  631. package/out/generator/genHash.d.ts +7 -0
  632. package/out/generator/genHash.js +39 -0
  633. package/out/generator/genHash.js.map +1 -0
  634. package/out/generator/genMetaData.d.ts +31 -0
  635. package/out/generator/genMetaData.js +365 -0
  636. package/out/generator/genMetaData.js.map +1 -0
  637. package/out/generator/genReleaseBody.d.ts +72 -0
  638. package/out/generator/genReleaseBody.js +333 -0
  639. package/out/generator/genReleaseBody.js.map +1 -0
  640. package/out/generator/icestark.d.ts +2 -0
  641. package/out/generator/icestark.js +50 -0
  642. package/out/generator/icestark.js.map +1 -0
  643. package/out/generator/index.d.ts +7 -0
  644. package/out/generator/index.js +24 -0
  645. package/out/generator/index.js.map +1 -0
  646. package/out/generator/microApp.d.ts +2 -0
  647. package/out/generator/microApp.js +36 -0
  648. package/out/generator/microApp.js.map +1 -0
  649. package/out/generator/permission.d.ts +14 -0
  650. package/out/generator/permission.js +296 -0
  651. package/out/generator/permission.js.map +1 -0
  652. package/out/generator/qiankun.d.ts +2 -0
  653. package/out/generator/qiankun.js +54 -0
  654. package/out/generator/qiankun.js.map +1 -0
  655. package/out/generator/styleReplacer.d.ts +3 -0
  656. package/out/generator/styleReplacer.js +68 -0
  657. package/out/generator/styleReplacer.js.map +1 -0
  658. package/out/index.d.ts +13 -0
  659. package/out/index.js +67 -0
  660. package/out/index.js.map +1 -0
  661. package/out/manager/diagnostic.d.ts +35 -0
  662. package/out/manager/diagnostic.js +64 -0
  663. package/out/manager/diagnostic.js.map +1 -0
  664. package/out/manager/stepRecorder.d.ts +20 -0
  665. package/out/manager/stepRecorder.js +114 -0
  666. package/out/manager/stepRecorder.js.map +1 -0
  667. package/out/natural/componentData.d.ts +31 -0
  668. package/out/natural/componentData.js +85 -0
  669. package/out/natural/componentData.js.map +1 -0
  670. package/out/natural/genNaturalTS.d.ts +3 -0
  671. package/out/natural/genNaturalTS.js +87 -0
  672. package/out/natural/genNaturalTS.js.map +1 -0
  673. package/out/natural/index.d.ts +4 -0
  674. package/out/natural/index.js +21 -0
  675. package/out/natural/index.js.map +1 -0
  676. package/out/natural/naslStdlibMap.d.ts +1 -0
  677. package/out/natural/naslStdlibMap.js +35 -0
  678. package/out/natural/naslStdlibMap.js.map +1 -0
  679. package/out/natural/prompt/analyzeClaims.d.ts +1 -0
  680. package/out/natural/prompt/analyzeClaims.js +21 -0
  681. package/out/natural/prompt/analyzeClaims.js.map +1 -0
  682. package/out/natural/prompt/executeClaims.d.ts +1 -0
  683. package/out/natural/prompt/executeClaims.js +73 -0
  684. package/out/natural/prompt/executeClaims.js.map +1 -0
  685. package/out/natural/transformTSCode.d.ts +7 -0
  686. package/out/natural/transformTSCode.js +931 -0
  687. package/out/natural/transformTSCode.js.map +1 -0
  688. package/out/sentry/index.d.ts +34 -0
  689. package/out/sentry/index.js +149 -0
  690. package/out/sentry/index.js.map +1 -0
  691. package/out/server/createUiTs.d.ts +17 -0
  692. package/out/server/createUiTs.js +268 -0
  693. package/out/server/createUiTs.js.map +1 -0
  694. package/out/server/entity2LogicNamespace.d.ts +10 -0
  695. package/out/server/entity2LogicNamespace.js +382 -0
  696. package/out/server/entity2LogicNamespace.js.map +1 -0
  697. package/out/server/event.d.ts +30 -0
  698. package/out/server/event.js +151 -0
  699. package/out/server/event.js.map +1 -0
  700. package/out/server/extendBaseNode.d.ts +1 -0
  701. package/out/server/extendBaseNode.js +605 -0
  702. package/out/server/extendBaseNode.js.map +1 -0
  703. package/out/server/formatTsUtils.d.ts +36 -0
  704. package/out/server/formatTsUtils.js +854 -0
  705. package/out/server/formatTsUtils.js.map +1 -0
  706. package/out/server/getConnector.d.ts +14 -0
  707. package/out/server/getConnector.js +101 -0
  708. package/out/server/getConnector.js.map +1 -0
  709. package/out/server/getExtensionModules.d.ts +3 -0
  710. package/out/server/getExtensionModules.js +34 -0
  711. package/out/server/getExtensionModules.js.map +1 -0
  712. package/out/server/getFunctions.d.ts +3 -0
  713. package/out/server/getFunctions.js +20 -0
  714. package/out/server/getFunctions.js.map +1 -0
  715. package/out/server/getInterfaces.d.ts +2 -0
  716. package/out/server/getInterfaces.js +48 -0
  717. package/out/server/getInterfaces.js.map +1 -0
  718. package/out/server/getLogging.d.ts +1 -0
  719. package/out/server/getLogging.js +9 -0
  720. package/out/server/getLogging.js.map +1 -0
  721. package/out/server/getLogics.d.ts +5 -0
  722. package/out/server/getLogics.js +454 -0
  723. package/out/server/getLogics.js.map +1 -0
  724. package/out/server/getMemberIdentifier.d.ts +17 -0
  725. package/out/server/getMemberIdentifier.js +594 -0
  726. package/out/server/getMemberIdentifier.js.map +1 -0
  727. package/out/server/getProcessComponents.d.ts +2 -0
  728. package/out/server/getProcessComponents.js +13 -0
  729. package/out/server/getProcessComponents.js.map +1 -0
  730. package/out/server/getProcesses.d.ts +33 -0
  731. package/out/server/getProcesses.js +647 -0
  732. package/out/server/getProcesses.js.map +1 -0
  733. package/out/server/getScope.d.ts +13 -0
  734. package/out/server/getScope.js +61 -0
  735. package/out/server/getScope.js.map +1 -0
  736. package/out/server/getValidates.d.ts +3 -0
  737. package/out/server/getValidates.js +14 -0
  738. package/out/server/getValidates.js.map +1 -0
  739. package/out/server/index.d.ts +5 -0
  740. package/out/server/index.js +43 -0
  741. package/out/server/index.js.map +1 -0
  742. package/out/server/naslServer.d.ts +375 -0
  743. package/out/server/naslServer.js +4735 -0
  744. package/out/server/naslServer.js.map +1 -0
  745. package/out/server/naslStdlibMap.d.ts +2 -0
  746. package/out/server/naslStdlibMap.js +54 -0
  747. package/out/server/naslStdlibMap.js.map +1 -0
  748. package/out/server/process2LogicNamespace.d.ts +26 -0
  749. package/out/server/process2LogicNamespace.js +109 -0
  750. package/out/server/process2LogicNamespace.js.map +1 -0
  751. package/out/server/translator.d.ts +26 -0
  752. package/out/server/translator.js +847 -0
  753. package/out/server/translator.js.map +1 -0
  754. package/out/service/creator/add.configs.d.ts +1 -0
  755. package/out/service/creator/add.configs.js +103 -0
  756. package/out/service/creator/add.configs.js.map +1 -0
  757. package/out/service/creator/errHandles.d.ts +18 -0
  758. package/out/service/creator/errHandles.js +71 -0
  759. package/out/service/creator/errHandles.js.map +1 -0
  760. package/out/service/creator/index.d.ts +1 -0
  761. package/out/service/creator/index.js +87 -0
  762. package/out/service/creator/index.js.map +1 -0
  763. package/out/service/datasource/api.d.ts +12 -0
  764. package/out/service/datasource/api.js +14 -0
  765. package/out/service/datasource/api.js.map +1 -0
  766. package/out/service/datasource/index.d.ts +2 -0
  767. package/out/service/datasource/index.js +10 -0
  768. package/out/service/datasource/index.js.map +1 -0
  769. package/out/service/defaultErrorMessage.json +98 -0
  770. package/out/service/logic/api.d.ts +9 -0
  771. package/out/service/logic/api.js +11 -0
  772. package/out/service/logic/api.js.map +1 -0
  773. package/out/service/logic/checktypeSocket.d.ts +5 -0
  774. package/out/service/logic/checktypeSocket.js +55 -0
  775. package/out/service/logic/checktypeSocket.js.map +1 -0
  776. package/out/service/logic/index.d.ts +2 -0
  777. package/out/service/logic/index.js +10 -0
  778. package/out/service/logic/index.js.map +1 -0
  779. package/out/service/storage/api.d.ts +54 -0
  780. package/out/service/storage/api.js +42 -0
  781. package/out/service/storage/api.js.map +1 -0
  782. package/out/service/storage/index.d.ts +2 -0
  783. package/out/service/storage/index.js +10 -0
  784. package/out/service/storage/index.js.map +1 -0
  785. package/out/service/storage/init.d.ts +105 -0
  786. package/out/service/storage/init.js +1232 -0
  787. package/out/service/storage/init.js.map +1 -0
  788. package/out/service/storage/jsoner.d.ts +36 -0
  789. package/out/service/storage/jsoner.js +148 -0
  790. package/out/service/storage/jsoner.js.map +1 -0
  791. package/out/service/storage/map.d.ts +4 -0
  792. package/out/service/storage/map.js +54 -0
  793. package/out/service/storage/map.js.map +1 -0
  794. package/out/service/storage/service.d.ts +25 -0
  795. package/out/service/storage/service.js +80 -0
  796. package/out/service/storage/service.js.map +1 -0
  797. package/out/service/storage/storagePoint.d.ts +17 -0
  798. package/out/service/storage/storagePoint.js +76 -0
  799. package/out/service/storage/storagePoint.js.map +1 -0
  800. package/out/service/video/BaseService.d.ts +7 -0
  801. package/out/service/video/BaseService.js +61 -0
  802. package/out/service/video/BaseService.js.map +1 -0
  803. package/out/service/video/MainCallbackService.d.ts +12 -0
  804. package/out/service/video/MainCallbackService.js +183 -0
  805. package/out/service/video/MainCallbackService.js.map +1 -0
  806. package/out/service/video/VideoTranscribe.d.ts +15 -0
  807. package/out/service/video/VideoTranscribe.js +96 -0
  808. package/out/service/video/VideoTranscribe.js.map +1 -0
  809. package/out/service/video/publishService.d.ts +1 -0
  810. package/out/service/video/publishService.js +58 -0
  811. package/out/service/video/publishService.js.map +1 -0
  812. package/out/templator/genCallComponentLogic.d.ts +17 -0
  813. package/out/templator/genCallComponentLogic.js +29 -0
  814. package/out/templator/genCallComponentLogic.js.map +1 -0
  815. package/out/templator/genCreateBlock.d.ts +10 -0
  816. package/out/templator/genCreateBlock.js +372 -0
  817. package/out/templator/genCreateBlock.js.map +1 -0
  818. package/out/templator/genCurdEditMultipleKeyBlock.d.ts +8 -0
  819. package/out/templator/genCurdEditMultipleKeyBlock.js +527 -0
  820. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -0
  821. package/out/templator/genCurdMultipleKeyBlock.d.ts +61 -0
  822. package/out/templator/genCurdMultipleKeyBlock.js +1378 -0
  823. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -0
  824. package/out/templator/genEditTableBlock.d.ts +51 -0
  825. package/out/templator/genEditTableBlock.js +325 -0
  826. package/out/templator/genEditTableBlock.js.map +1 -0
  827. package/out/templator/genEnumSelectBlock.d.ts +10 -0
  828. package/out/templator/genEnumSelectBlock.js +53 -0
  829. package/out/templator/genEnumSelectBlock.js.map +1 -0
  830. package/out/templator/genGetBlock.d.ts +6 -0
  831. package/out/templator/genGetBlock.js +139 -0
  832. package/out/templator/genGetBlock.js.map +1 -0
  833. package/out/templator/genGridViewBlock.d.ts +55 -0
  834. package/out/templator/genGridViewBlock.js +359 -0
  835. package/out/templator/genGridViewBlock.js.map +1 -0
  836. package/out/templator/genListViewBlock.d.ts +19 -0
  837. package/out/templator/genListViewBlock.js +148 -0
  838. package/out/templator/genListViewBlock.js.map +1 -0
  839. package/out/templator/genQueryComponent.d.ts +34 -0
  840. package/out/templator/genQueryComponent.js +344 -0
  841. package/out/templator/genQueryComponent.js.map +1 -0
  842. package/out/templator/genSelectBlock.d.ts +45 -0
  843. package/out/templator/genSelectBlock.js +415 -0
  844. package/out/templator/genSelectBlock.js.map +1 -0
  845. package/out/templator/genTableBlock.d.ts +55 -0
  846. package/out/templator/genTableBlock.js +421 -0
  847. package/out/templator/genTableBlock.js.map +1 -0
  848. package/out/templator/genUpdateBlock.d.ts +6 -0
  849. package/out/templator/genUpdateBlock.js +414 -0
  850. package/out/templator/genUpdateBlock.js.map +1 -0
  851. package/out/templator/index.d.ts +19 -0
  852. package/out/templator/index.js +38 -0
  853. package/out/templator/index.js.map +1 -0
  854. package/out/templator/utils.d.ts +683 -0
  855. package/out/templator/utils.js +472 -0
  856. package/out/templator/utils.js.map +1 -0
  857. package/out/translator/constant.d.ts +6 -0
  858. package/out/translator/constant.js +10 -0
  859. package/out/translator/constant.js.map +1 -0
  860. package/out/translator/index.d.ts +3 -0
  861. package/out/translator/index.js +20 -0
  862. package/out/translator/index.js.map +1 -0
  863. package/out/translator/types.d.ts +49 -0
  864. package/out/translator/types.js +3 -0
  865. package/out/translator/types.js.map +1 -0
  866. package/out/translator/utils.d.ts +44 -0
  867. package/out/translator/utils.js +241 -0
  868. package/out/translator/utils.js.map +1 -0
  869. package/out/utils/cookie.d.ts +9 -0
  870. package/out/utils/cookie.js +62 -0
  871. package/out/utils/cookie.js.map +1 -0
  872. package/out/utils/env.d.ts +2 -0
  873. package/out/utils/env.js +6 -0
  874. package/out/utils/env.js.map +1 -0
  875. package/out/utils/i18nInfo.d.ts +5 -0
  876. package/out/utils/i18nInfo.js +36 -0
  877. package/out/utils/i18nInfo.js.map +1 -0
  878. package/out/utils/index.d.ts +61 -0
  879. package/out/utils/index.js +386 -0
  880. package/out/utils/index.js.map +1 -0
  881. package/out/utils/logger.d.ts +7 -0
  882. package/out/utils/logger.js +23 -0
  883. package/out/utils/logger.js.map +1 -0
  884. package/out/utils/sortTsString.d.ts +1 -0
  885. package/out/utils/sortTsString.js +44 -0
  886. package/out/utils/sortTsString.js.map +1 -0
  887. package/out/utils/string.d.ts +64 -0
  888. package/out/utils/string.js +153 -0
  889. package/out/utils/string.js.map +1 -0
  890. package/out/utils/time-slicing/constant.d.ts +35 -0
  891. package/out/utils/time-slicing/constant.js +40 -0
  892. package/out/utils/time-slicing/constant.js.map +1 -0
  893. package/out/utils/time-slicing/controller.d.ts +53 -0
  894. package/out/utils/time-slicing/controller.js +294 -0
  895. package/out/utils/time-slicing/controller.js.map +1 -0
  896. package/out/utils/time-slicing/index.d.ts +5 -0
  897. package/out/utils/time-slicing/index.js +26 -0
  898. package/out/utils/time-slicing/index.js.map +1 -0
  899. package/out/utils/time-slicing/page-state.d.ts +2 -0
  900. package/out/utils/time-slicing/page-state.js +14 -0
  901. package/out/utils/time-slicing/page-state.js.map +1 -0
  902. package/out/utils/time-slicing/performance.d.ts +11 -0
  903. package/out/utils/time-slicing/performance.js +50 -0
  904. package/out/utils/time-slicing/performance.js.map +1 -0
  905. package/out/utils/time-slicing/runner.d.ts +12 -0
  906. package/out/utils/time-slicing/runner.js +52 -0
  907. package/out/utils/time-slicing/runner.js.map +1 -0
  908. package/out/utils/time-slicing/tool.d.ts +24 -0
  909. package/out/utils/time-slicing/tool.js +47 -0
  910. package/out/utils/time-slicing/tool.js.map +1 -0
  911. package/out/utils/time-slicing/utils.d.ts +62 -0
  912. package/out/utils/time-slicing/utils.js +47 -0
  913. package/out/utils/time-slicing/utils.js.map +1 -0
  914. package/out/utils/time-slicing/wrapper.d.ts +18 -0
  915. package/out/utils/time-slicing/wrapper.js +55 -0
  916. package/out/utils/time-slicing/wrapper.js.map +1 -0
  917. package/out/utils/traverse.d.ts +36 -0
  918. package/out/utils/traverse.js +143 -0
  919. package/out/utils/traverse.js.map +1 -0
  920. package/out/utils/types.d.ts +13 -0
  921. package/out/utils/types.js +3 -0
  922. package/out/utils/types.js.map +1 -0
  923. package/out/utils/window.d.ts +7 -0
  924. package/out/utils/window.js +14 -0
  925. package/out/utils/window.js.map +1 -0
  926. package/package.json +1 -1
  927. package/sandbox/stdlib/nasl.oql.ts +2 -2
  928. package/src/concepts/NewComposite__.ts +2 -2
  929. package/src/server/translator.ts +1 -1
  930. package/src/templator/genTableBlock.ts +5 -1
  931. package/test/concepts/new-composite/__snapshots__/getQuickInfoOffset.spec.ts.snap +7 -7
  932. package/test/concepts/new-composite/__snapshots__/toEmbeddedTS.spec.ts.snap +11 -7
  933. package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +139 -189
  934. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +9 -1
@@ -0,0 +1,2983 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || function (mod) {
25
+ if (mod && mod.__esModule) return mod;
26
+ var result = {};
27
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28
+ __setModuleDefault(result, mod);
29
+ return result;
30
+ };
31
+ var __importDefault = (this && this.__importDefault) || function (mod) {
32
+ return (mod && mod.__esModule) ? mod : { "default": mod };
33
+ };
34
+ var App_1;
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.App = void 0;
37
+ const jsoner_1 = require("../service/storage/jsoner");
38
+ const utils_1 = require("../automate/engine/utils");
39
+ const constants_1 = require("./basics/constants");
40
+ const decorators_1 = require("../decorators");
41
+ const utils = __importStar(require("../utils"));
42
+ const asserts = __importStar(require("./utils/asserts"));
43
+ const BaseNode_1 = __importDefault(require("../common/BaseNode"));
44
+ const Backend__1 = __importDefault(require("./Backend__"));
45
+ const Configuration__1 = __importDefault(require("./Configuration__"));
46
+ /**
47
+ * 应用
48
+ */
49
+ let App = App_1 = class App extends BaseNode_1.default {
50
+ /**
51
+ * @param source 需要合并的部分参数
52
+ */
53
+ constructor(source) {
54
+ source = Object.assign({}, App_1.getDefaultOptions(), source);
55
+ super(source);
56
+ /**
57
+ * 数据源列表
58
+ */
59
+ this.dataSources = [];
60
+ /**
61
+ * 数据结构列表
62
+ */
63
+ this.structures = [];
64
+ /**
65
+ * 枚举列表
66
+ */
67
+ this.enums = [];
68
+ /**
69
+ * 逻辑列表
70
+ */
71
+ this.logics = [];
72
+ /**
73
+ * 覆写逻辑列表
74
+ */
75
+ this.overriddenLogics = [];
76
+ /**
77
+ * 接口列表
78
+ */
79
+ this.interfaces = [];
80
+ /**
81
+ * 端类型列表
82
+ */
83
+ this.frontendTypes = [];
84
+ /**
85
+ * 后端
86
+ */
87
+ this.backend = new Backend__1.default();
88
+ /**
89
+ * 流程列表
90
+ */
91
+ this.processes = [];
92
+ /**
93
+ * 角色列表
94
+ */
95
+ this.roles = [];
96
+ /**
97
+ * 配置管理
98
+ */
99
+ this.configuration = new Configuration__1.default();
100
+ /**
101
+ * 扩展模块列表
102
+ */
103
+ this.dependencies = [];
104
+ /**
105
+ * 接口应用列表(兼容老版)
106
+ */
107
+ this.interfaceDependencies = [];
108
+ /**
109
+ * 暴露接口的接口鉴权
110
+ */
111
+ this.authLogics = [];
112
+ /**
113
+ * 调用接口的鉴权模板
114
+ */
115
+ this.authLogicsForCallInterface = [];
116
+ /**
117
+ * 连接
118
+ */
119
+ this.connections = [];
120
+ /**
121
+ * 触发器启动器
122
+ */
123
+ this.triggerLaunchers = [];
124
+ /**
125
+ * 元数据类型列表
126
+ */
127
+ this.metadataTypes = [];
128
+ /**
129
+ * 是否为官方应用
130
+ */
131
+ this.officialType = undefined;
132
+ /**
133
+ * 轻舟项目 Id
134
+ */
135
+ this.projectId = undefined;
136
+ /**
137
+ * 租户 Id
138
+ */
139
+ this.tenantId = undefined;
140
+ /**
141
+ * 租户 Id
142
+ */
143
+ this.userGroupId = undefined;
144
+ /**
145
+ * 多环境
146
+ */
147
+ this.envs = undefined;
148
+ /**
149
+ * 多环境
150
+ */
151
+ this.envList = ['dev', 'online'];
152
+ /**
153
+ * 发布状态
154
+ */
155
+ this.deploying = undefined;
156
+ /**
157
+ * 发布 Id
158
+ */
159
+ this.deploymentId = undefined;
160
+ /**
161
+ * 从模板创建的模板 Id
162
+ */
163
+ this.templateId = undefined;
164
+ /**
165
+ * 全局设置
166
+ */
167
+ this.preferenceMap = {};
168
+ /**
169
+ * 组合节点缓存
170
+ */
171
+ this.composeCache = {};
172
+ this.packageInfos = [];
173
+ /**
174
+ * 当前正在发布的环境,临时状态
175
+ */
176
+ this.curDeployEnv = 'dev';
177
+ this.__databaseTypeMap = {};
178
+ super.subConstructor(source);
179
+ }
180
+ static from(source, parentNode, parentKey) {
181
+ return super.from(source, parentNode, parentKey);
182
+ }
183
+ /**
184
+ * 从父级删除该节点
185
+ * @internal
186
+ */
187
+ _delete() {
188
+ let params = null;
189
+ if (this.parentNode) {
190
+ params = this.parentNode?.__removeApp?.(this);
191
+ }
192
+ return params;
193
+ }
194
+ /**
195
+ * 设置集成
196
+ */
197
+ setIntegration(integration) {
198
+ integration._delete();
199
+ const relationOptions = { parentNode: this, parentKey: 'integration' };
200
+ Object.assign(integration, relationOptions);
201
+ const object = {
202
+ integration,
203
+ };
204
+ this.update({
205
+ ...object,
206
+ });
207
+ }
208
+ getDataSourceUniqueName(name = 'dataSource1') {
209
+ return utils.unique(name, this.getDataSourceExistingNames(), undefined, true);
210
+ }
211
+ _insertDataSourceAt(options, index) {
212
+ const dataSourceOptions = {};
213
+ const relationOptions = { parentNode: this, parentKey: 'dataSources' };
214
+ const DataSource = (0, decorators_1.getConceptConstructor)('DataSource');
215
+ let dataSource;
216
+ if (!options) {
217
+ dataSource = DataSource.from({
218
+ ...dataSourceOptions,
219
+ name: this.getDataSourceUniqueName(),
220
+ }, this, 'dataSources');
221
+ }
222
+ else if (typeof options === 'string') {
223
+ dataSource = DataSource.from({
224
+ ...dataSourceOptions,
225
+ name: options,
226
+ }, this, 'dataSources');
227
+ }
228
+ else if (asserts.isDataSource(options)) {
229
+ options.ensureDelete(); // 同一实例不支持多处存在
230
+ dataSource = options;
231
+ Object.assign(dataSource, relationOptions);
232
+ }
233
+ else {
234
+ dataSource = DataSource.from({
235
+ ...dataSourceOptions,
236
+ ...options,
237
+ }, this, 'dataSources');
238
+ }
239
+ this.dataSources.splice(index, 0, dataSource);
240
+ return dataSource;
241
+ }
242
+ insertDataSourceAt(options, index) {
243
+ const node = this._insertDataSourceAt(options, index);
244
+ node.create({
245
+ index,
246
+ parentNode: this,
247
+ parentKey: 'dataSources',
248
+ });
249
+ return node;
250
+ }
251
+ _addDataSource(options) {
252
+ const index = this.dataSources.length;
253
+ return this._insertDataSourceAt(options, index);
254
+ }
255
+ addDataSource(options) {
256
+ const node = this._addDataSource(options);
257
+ const index = this.dataSources.indexOf(node);
258
+ node.create({
259
+ index,
260
+ parentNode: this,
261
+ parentKey: 'dataSources',
262
+ });
263
+ return node;
264
+ }
265
+ getStructureExistingNames(excludedList = []) {
266
+ const excludedSet = new Set(excludedList);
267
+ return (this.structures || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
268
+ }
269
+ getStructureUniqueName(name = 'Structure1') {
270
+ return utils.unique(name, this.getStructureExistingNames(), undefined, true);
271
+ }
272
+ _insertStructureAt(options, index) {
273
+ const structureOptions = {};
274
+ const relationOptions = { parentNode: this, parentKey: 'structures' };
275
+ const Structure = (0, decorators_1.getConceptConstructor)('Structure');
276
+ let structure;
277
+ if (!options) {
278
+ structure = Structure.from({
279
+ ...structureOptions,
280
+ name: this.getStructureUniqueName(),
281
+ }, this, 'structures');
282
+ }
283
+ else if (typeof options === 'string') {
284
+ structure = Structure.from({
285
+ ...structureOptions,
286
+ name: options,
287
+ }, this, 'structures');
288
+ }
289
+ else if (asserts.isStructure(options)) {
290
+ options.ensureDelete(); // 同一实例不支持多处存在
291
+ structure = options;
292
+ Object.assign(structure, relationOptions);
293
+ }
294
+ else {
295
+ structure = Structure.from({
296
+ ...structureOptions,
297
+ ...options,
298
+ }, this, 'structures');
299
+ }
300
+ this.structures.splice(index, 0, structure);
301
+ return structure;
302
+ }
303
+ insertStructureAt(options, index) {
304
+ const node = this._insertStructureAt(options, index);
305
+ node.create({
306
+ index,
307
+ parentNode: this,
308
+ parentKey: 'structures',
309
+ });
310
+ return node;
311
+ }
312
+ _addStructure(options) {
313
+ const index = 0;
314
+ return this._insertStructureAt(options, index);
315
+ }
316
+ addStructure(options) {
317
+ const node = this._addStructure(options);
318
+ const index = this.structures.indexOf(node);
319
+ node.create({
320
+ index,
321
+ parentNode: this,
322
+ parentKey: 'structures',
323
+ });
324
+ return node;
325
+ }
326
+ getEnumExistingNames(excludedList = []) {
327
+ const excludedSet = new Set(excludedList);
328
+ return (this.enums || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
329
+ }
330
+ getEnumUniqueName(name = 'Enum1') {
331
+ return utils.unique(name, this.getEnumExistingNames(), undefined, true);
332
+ }
333
+ _insertEnumAt(options, index) {
334
+ const enumerationOptions = {};
335
+ const relationOptions = { parentNode: this, parentKey: 'enums' };
336
+ const Enum = (0, decorators_1.getConceptConstructor)('Enum');
337
+ let enumeration;
338
+ if (!options) {
339
+ enumeration = Enum.from({
340
+ ...enumerationOptions,
341
+ name: this.getEnumUniqueName(),
342
+ }, this, 'enums');
343
+ }
344
+ else if (typeof options === 'string') {
345
+ enumeration = Enum.from({
346
+ ...enumerationOptions,
347
+ name: options,
348
+ }, this, 'enums');
349
+ }
350
+ else if (asserts.isEnum(options)) {
351
+ options.ensureDelete(); // 同一实例不支持多处存在
352
+ enumeration = options;
353
+ Object.assign(enumeration, relationOptions);
354
+ }
355
+ else {
356
+ enumeration = Enum.from({
357
+ ...enumerationOptions,
358
+ ...options,
359
+ }, this, 'enums');
360
+ }
361
+ this.enums.splice(index, 0, enumeration);
362
+ return enumeration;
363
+ }
364
+ insertEnumAt(options, index) {
365
+ const node = this._insertEnumAt(options, index);
366
+ node.create({
367
+ index,
368
+ parentNode: this,
369
+ parentKey: 'enums',
370
+ });
371
+ return node;
372
+ }
373
+ _addEnum(options) {
374
+ const index = 0;
375
+ return this._insertEnumAt(options, index);
376
+ }
377
+ addEnum(options) {
378
+ const node = this._addEnum(options);
379
+ const index = this.enums.indexOf(node);
380
+ node.create({
381
+ index,
382
+ parentNode: this,
383
+ parentKey: 'enums',
384
+ });
385
+ return node;
386
+ }
387
+ getLogicExistingNames(excludedList = []) {
388
+ const excludedSet = new Set(excludedList);
389
+ return (this.logics || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
390
+ }
391
+ getLogicUniqueName(name = 'logic1') {
392
+ return utils.unique(name, this.getLogicExistingNames(), undefined, true);
393
+ }
394
+ _insertLogicAt(options, index) {
395
+ const logicOptions = {};
396
+ const relationOptions = { parentNode: this, parentKey: 'logics' };
397
+ const Logic = (0, decorators_1.getConceptConstructor)('Logic');
398
+ let logic;
399
+ if (!options) {
400
+ logic = Logic.from({
401
+ ...logicOptions,
402
+ name: this.getLogicUniqueName(),
403
+ }, this, 'logics');
404
+ }
405
+ else if (typeof options === 'string') {
406
+ logic = Logic.from({
407
+ ...logicOptions,
408
+ name: options,
409
+ }, this, 'logics');
410
+ }
411
+ else if (asserts.isLogic(options)) {
412
+ options.ensureDelete(); // 同一实例不支持多处存在
413
+ logic = options;
414
+ Object.assign(logic, relationOptions);
415
+ }
416
+ else {
417
+ logic = Logic.from({
418
+ ...logicOptions,
419
+ ...options,
420
+ }, this, 'logics');
421
+ }
422
+ this.logics.splice(index, 0, logic);
423
+ return logic;
424
+ }
425
+ insertLogicAt(options, index) {
426
+ const node = this._insertLogicAt(options, index);
427
+ node.create({
428
+ index,
429
+ parentNode: this,
430
+ parentKey: 'logics',
431
+ });
432
+ return node;
433
+ }
434
+ _addLogic(options) {
435
+ const index = 0;
436
+ return this._insertLogicAt(options, index);
437
+ }
438
+ addLogic(options) {
439
+ const node = this._addLogic(options);
440
+ const index = this.logics.indexOf(node);
441
+ node.create({
442
+ index,
443
+ parentNode: this,
444
+ parentKey: 'logics',
445
+ });
446
+ return node;
447
+ }
448
+ _insertAuthLogicInAuthLogicsAt(options, index) {
449
+ const authLogicOptions = {};
450
+ const relationOptions = { parentNode: this, parentKey: 'authLogics' };
451
+ const AuthLogic = (0, decorators_1.getConceptConstructor)('AuthLogic');
452
+ let authLogic;
453
+ if (!options) {
454
+ authLogic = AuthLogic.from({
455
+ ...authLogicOptions,
456
+ name: this.getAuthLogicUniqueName(),
457
+ }, this, 'authLogics');
458
+ }
459
+ else if (typeof options === 'string') {
460
+ authLogic = AuthLogic.from({
461
+ ...authLogicOptions,
462
+ name: options,
463
+ }, this, 'authLogics');
464
+ }
465
+ else if (asserts.isAuthLogic(options)) {
466
+ options.ensureDelete(); // 同一实例不支持多处存在
467
+ authLogic = options;
468
+ Object.assign(authLogic, relationOptions);
469
+ }
470
+ else {
471
+ authLogic = AuthLogic.from({
472
+ ...authLogicOptions,
473
+ ...options,
474
+ }, this, 'authLogics');
475
+ }
476
+ this.authLogics.splice(index, 0, authLogic);
477
+ return authLogic;
478
+ }
479
+ insertAuthLogicInAuthLogicsAt(options, index) {
480
+ const node = this._insertAuthLogicInAuthLogicsAt(options, index);
481
+ node.create({
482
+ index,
483
+ parentNode: this,
484
+ parentKey: 'authLogics',
485
+ });
486
+ return node;
487
+ }
488
+ _addAuthLogicInAuthLogics(options) {
489
+ const index = this.authLogics.length;
490
+ return this._insertAuthLogicInAuthLogicsAt(options, index);
491
+ }
492
+ addAuthLogicInAuthLogics(options) {
493
+ const node = this._addAuthLogicInAuthLogics(options);
494
+ const index = this.authLogics.indexOf(node);
495
+ node.create({
496
+ index,
497
+ parentNode: this,
498
+ parentKey: 'authLogics',
499
+ });
500
+ return node;
501
+ }
502
+ _insertAuthLogicForCallInterfaceInAuthLogicsForCallInterfaceAt(options, index) {
503
+ const authLogicForCallInterfaceOptions = {};
504
+ const relationOptions = { parentNode: this, parentKey: 'authLogicsForCallInterface' };
505
+ const AuthLogicForCallInterface = (0, decorators_1.getConceptConstructor)('AuthLogicForCallInterface');
506
+ let authLogicForCallInterface;
507
+ if (!options) {
508
+ authLogicForCallInterface = AuthLogicForCallInterface.from({
509
+ ...authLogicForCallInterfaceOptions,
510
+ name: this.getAuthLogicForCallInterfaceUniqueName(),
511
+ }, this, 'authLogicsForCallInterface');
512
+ }
513
+ else if (typeof options === 'string') {
514
+ authLogicForCallInterface = AuthLogicForCallInterface.from({
515
+ ...authLogicForCallInterfaceOptions,
516
+ name: options,
517
+ }, this, 'authLogicsForCallInterface');
518
+ }
519
+ else if (asserts.isAuthLogicForCallInterface(options)) {
520
+ options.ensureDelete(); // 同一实例不支持多处存在
521
+ authLogicForCallInterface = options;
522
+ Object.assign(authLogicForCallInterface, relationOptions);
523
+ }
524
+ else {
525
+ authLogicForCallInterface = AuthLogicForCallInterface.from({
526
+ ...authLogicForCallInterfaceOptions,
527
+ ...options,
528
+ }, this, 'authLogicsForCallInterface');
529
+ }
530
+ this.authLogicsForCallInterface.splice(index, 0, authLogicForCallInterface);
531
+ return authLogicForCallInterface;
532
+ }
533
+ insertAuthLogicForCallInterfaceInAuthLogicsForCallInterfaceAt(options, index) {
534
+ const node = this._insertAuthLogicForCallInterfaceInAuthLogicsForCallInterfaceAt(options, index);
535
+ node.create({
536
+ index,
537
+ parentNode: this,
538
+ parentKey: 'authLogicsForCallInterface',
539
+ });
540
+ return node;
541
+ }
542
+ _addAuthLogicForCallInterfaceInAuthLogicsForCallInterface(options) {
543
+ const index = this.authLogicsForCallInterface.length;
544
+ return this._insertAuthLogicForCallInterfaceInAuthLogicsForCallInterfaceAt(options, index);
545
+ }
546
+ addAuthLogicForCallInterfaceInAuthLogicsForCallInterface(options) {
547
+ const node = this._addAuthLogicForCallInterfaceInAuthLogicsForCallInterface(options);
548
+ const index = this.authLogicsForCallInterface.indexOf(node);
549
+ node.create({
550
+ index,
551
+ parentNode: this,
552
+ parentKey: 'authLogicsForCallInterface',
553
+ });
554
+ return node;
555
+ }
556
+ getOverriddenLogicExistingNames(excludedList = []) {
557
+ const excludedSet = new Set(excludedList);
558
+ return (this.overriddenLogics || [])
559
+ .filter((item) => !excludedSet.has(item))
560
+ .map((item) => item?.name);
561
+ }
562
+ getOverriddenLogicUniqueName(name = 'overriddenLogic1') {
563
+ return utils.unique(name, this.getOverriddenLogicExistingNames(), undefined, true);
564
+ }
565
+ _insertOverriddenLogicAt(options, index) {
566
+ const overriddenLogicOptions = {};
567
+ const relationOptions = { parentNode: this, parentKey: 'overriddenLogics' };
568
+ const OverriddenLogic = (0, decorators_1.getConceptConstructor)('OverriddenLogic');
569
+ let overriddenLogic;
570
+ if (!options) {
571
+ overriddenLogic = OverriddenLogic.from({
572
+ ...overriddenLogicOptions,
573
+ name: this.getOverriddenLogicUniqueName(),
574
+ }, this, 'overriddenLogics');
575
+ }
576
+ else if (typeof options === 'string') {
577
+ overriddenLogic = OverriddenLogic.from({
578
+ ...overriddenLogicOptions,
579
+ name: options,
580
+ }, this, 'overriddenLogics');
581
+ }
582
+ else if (asserts.isOverriddenLogic(options)) {
583
+ options.ensureDelete(); // 同一实例不支持多处存在
584
+ overriddenLogic = options;
585
+ Object.assign(overriddenLogic, relationOptions);
586
+ }
587
+ else {
588
+ overriddenLogic = OverriddenLogic.from({
589
+ ...overriddenLogicOptions,
590
+ ...options,
591
+ }, this, 'overriddenLogics');
592
+ }
593
+ this.overriddenLogics.splice(index, 0, overriddenLogic);
594
+ return overriddenLogic;
595
+ }
596
+ insertOverriddenLogicAt(options, index) {
597
+ const node = this._insertOverriddenLogicAt(options, index);
598
+ node.create({
599
+ index,
600
+ parentNode: this,
601
+ parentKey: 'overriddenLogics',
602
+ });
603
+ return node;
604
+ }
605
+ _addOverriddenLogic(options) {
606
+ const index = 0;
607
+ return this._insertOverriddenLogicAt(options, index);
608
+ }
609
+ addOverriddenLogic(options) {
610
+ const node = this._addOverriddenLogic(options);
611
+ const index = this.overriddenLogics.indexOf(node);
612
+ node.create({
613
+ index,
614
+ parentNode: this,
615
+ parentKey: 'overriddenLogics',
616
+ });
617
+ return node;
618
+ }
619
+ getAbstractInterfaceExistingNames(excludedList = []) {
620
+ const excludedSet = new Set(excludedList);
621
+ return (this.interfaces || [])
622
+ .filter((item) => !excludedSet.has(item))
623
+ .map((item) => item?.name);
624
+ }
625
+ getAbstractInterfaceUniqueName(name = 'Interface1') {
626
+ return utils.unique(name, this.getAbstractInterfaceExistingNames(), undefined, true);
627
+ }
628
+ getFrontendTypeExistingNames(excludedList = []) {
629
+ const excludedSet = new Set(excludedList);
630
+ return (this.frontendTypes || [])
631
+ .filter((item) => !excludedSet.has(item))
632
+ .map((item) => item?.name);
633
+ }
634
+ getFrontendTypeUniqueName(name = 'frontendType1') {
635
+ return utils.unique(name, this.getFrontendTypeExistingNames(), undefined, true);
636
+ }
637
+ _insertFrontendTypeAt(options, index) {
638
+ const frontendTypeOptions = {};
639
+ const relationOptions = { parentNode: this, parentKey: 'frontendTypes' };
640
+ const FrontendType = (0, decorators_1.getConceptConstructor)('FrontendType');
641
+ let frontendType;
642
+ if (!options) {
643
+ frontendType = FrontendType.from({
644
+ ...frontendTypeOptions,
645
+ name: this.getFrontendTypeUniqueName(),
646
+ }, this, 'frontendTypes');
647
+ }
648
+ else if (typeof options === 'string') {
649
+ frontendType = FrontendType.from({
650
+ ...frontendTypeOptions,
651
+ name: options,
652
+ }, this, 'frontendTypes');
653
+ }
654
+ else if (asserts.isFrontendType(options)) {
655
+ options.ensureDelete(); // 同一实例不支持多处存在
656
+ frontendType = options;
657
+ Object.assign(frontendType, relationOptions);
658
+ }
659
+ else {
660
+ frontendType = FrontendType.from({
661
+ ...frontendTypeOptions,
662
+ ...options,
663
+ }, this, 'frontendTypes');
664
+ }
665
+ this.frontendTypes.splice(index, 0, frontendType);
666
+ return frontendType;
667
+ }
668
+ insertFrontendTypeAt(options, index) {
669
+ const node = this._insertFrontendTypeAt(options, index);
670
+ node.create({
671
+ index,
672
+ parentNode: this,
673
+ parentKey: 'frontendTypes',
674
+ });
675
+ return node;
676
+ }
677
+ _addFrontendType(options) {
678
+ const index = this.frontendTypes.length;
679
+ return this._insertFrontendTypeAt(options, index);
680
+ }
681
+ addFrontendType(options) {
682
+ const node = this._addFrontendType(options);
683
+ const index = this.frontendTypes.indexOf(node);
684
+ node.create({
685
+ index,
686
+ parentNode: this,
687
+ parentKey: 'frontendTypes',
688
+ });
689
+ return node;
690
+ }
691
+ getProcessExistingNames(excludedList = []) {
692
+ const excludedSet = new Set(excludedList);
693
+ return (this.processes || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
694
+ }
695
+ getProcessUniqueName(name = 'Process1') {
696
+ return utils.unique(name, this.getProcessExistingNames(), undefined, true);
697
+ }
698
+ _insertProcessAt(options, index) {
699
+ const processOptions = {};
700
+ const relationOptions = { parentNode: this, parentKey: 'processes' };
701
+ const Process = (0, decorators_1.getConceptConstructor)('Process');
702
+ let process;
703
+ if (!options) {
704
+ process = Process.from({
705
+ ...processOptions,
706
+ name: this.getProcessUniqueName(),
707
+ }, this, 'processes');
708
+ }
709
+ else if (typeof options === 'string') {
710
+ process = Process.from({
711
+ ...processOptions,
712
+ name: options,
713
+ }, this, 'processes');
714
+ }
715
+ else if (asserts.isProcess(options)) {
716
+ options.ensureDelete(); // 同一实例不支持多处存在
717
+ process = options;
718
+ Object.assign(process, relationOptions);
719
+ }
720
+ else {
721
+ process = Process.from({
722
+ ...processOptions,
723
+ ...options,
724
+ }, this, 'processes');
725
+ }
726
+ this.processes.splice(index, 0, process);
727
+ return process;
728
+ }
729
+ insertProcessAt(options, index) {
730
+ const node = this._insertProcessAt(options, index);
731
+ node.create({
732
+ index,
733
+ parentNode: this,
734
+ parentKey: 'processes',
735
+ });
736
+ return node;
737
+ }
738
+ _addProcess(options) {
739
+ const index = 0;
740
+ return this._insertProcessAt(options, index);
741
+ }
742
+ addProcess(options) {
743
+ const node = this._addProcess(options);
744
+ const index = this.processes.indexOf(node);
745
+ node.create({
746
+ index,
747
+ parentNode: this,
748
+ parentKey: 'processes',
749
+ });
750
+ return node;
751
+ }
752
+ getRoleExistingNames(excludedList = []) {
753
+ const excludedSet = new Set(excludedList);
754
+ return (this.roles || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
755
+ }
756
+ getRoleUniqueName(name = 'role1') {
757
+ return utils.unique(name, this.getRoleExistingNames(), undefined, true);
758
+ }
759
+ _insertRoleAt(options, index) {
760
+ const roleOptions = {};
761
+ const relationOptions = { parentNode: this, parentKey: 'roles' };
762
+ const Role = (0, decorators_1.getConceptConstructor)('Role');
763
+ let role;
764
+ if (!options) {
765
+ role = Role.from({
766
+ ...roleOptions,
767
+ name: this.getRoleUniqueName(),
768
+ }, this, 'roles');
769
+ }
770
+ else if (typeof options === 'string') {
771
+ role = Role.from({
772
+ ...roleOptions,
773
+ name: options,
774
+ }, this, 'roles');
775
+ }
776
+ else if (asserts.isRole(options)) {
777
+ options.ensureDelete(); // 同一实例不支持多处存在
778
+ role = options;
779
+ Object.assign(role, relationOptions);
780
+ }
781
+ else {
782
+ role = Role.from({
783
+ ...roleOptions,
784
+ ...options,
785
+ }, this, 'roles');
786
+ }
787
+ this.roles.splice(index, 0, role);
788
+ return role;
789
+ }
790
+ insertRoleAt(options, index) {
791
+ const node = this._insertRoleAt(options, index);
792
+ node.create({
793
+ index,
794
+ parentNode: this,
795
+ parentKey: 'roles',
796
+ });
797
+ return node;
798
+ }
799
+ _addRole(options) {
800
+ const index = this.roles.length;
801
+ return this._insertRoleAt(options, index);
802
+ }
803
+ addRole(options) {
804
+ const node = this._addRole(options);
805
+ const index = this.roles.indexOf(node);
806
+ node.create({
807
+ index,
808
+ parentNode: this,
809
+ parentKey: 'roles',
810
+ });
811
+ return node;
812
+ }
813
+ getModuleExistingNames(excludedList = []) {
814
+ const excludedSet = new Set(excludedList);
815
+ return (this.dependencies || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
816
+ }
817
+ getModuleUniqueName(name = 'module1') {
818
+ return utils.unique(name, this.getModuleExistingNames(), undefined, false);
819
+ }
820
+ _insertModuleInDependenciesAt(options, index) {
821
+ const moduleOptions = {};
822
+ const relationOptions = { parentNode: this, parentKey: 'dependencies' };
823
+ const Module = (0, decorators_1.getConceptConstructor)('Module');
824
+ let module;
825
+ if (!options) {
826
+ module = Module.from({
827
+ ...moduleOptions,
828
+ name: this.getModuleUniqueName(),
829
+ }, this, 'dependencies');
830
+ }
831
+ else if (typeof options === 'string') {
832
+ module = Module.from({
833
+ ...moduleOptions,
834
+ name: options,
835
+ }, this, 'dependencies');
836
+ }
837
+ else if (asserts.isModule(options)) {
838
+ options.ensureDelete(); // 同一实例不支持多处存在
839
+ module = options;
840
+ Object.assign(module, relationOptions);
841
+ }
842
+ else {
843
+ module = Module.from({
844
+ ...moduleOptions,
845
+ ...options,
846
+ }, this, 'dependencies');
847
+ }
848
+ this.dependencies.splice(index, 0, module);
849
+ return module;
850
+ }
851
+ insertModuleInDependenciesAt(options, index) {
852
+ const node = this._insertModuleInDependenciesAt(options, index);
853
+ node.create({
854
+ index,
855
+ parentNode: this,
856
+ parentKey: 'dependencies',
857
+ });
858
+ return node;
859
+ }
860
+ _addModuleInDependencies(options) {
861
+ const index = this.dependencies.length;
862
+ return this._insertModuleInDependenciesAt(options, index);
863
+ }
864
+ addModuleInDependencies(options) {
865
+ const node = this._addModuleInDependencies(options);
866
+ const index = this.dependencies.indexOf(node);
867
+ node.create({
868
+ index,
869
+ parentNode: this,
870
+ parentKey: 'dependencies',
871
+ });
872
+ return node;
873
+ }
874
+ _insertConnectorInDependenciesAt(options, index) {
875
+ const connectorOptions = {};
876
+ const relationOptions = { parentNode: this, parentKey: 'dependencies' };
877
+ const Connector = (0, decorators_1.getConceptConstructor)('Connector');
878
+ let connector;
879
+ if (!options) {
880
+ connector = Connector.from({
881
+ ...connectorOptions,
882
+ name: this.getConnectorUniqueName(),
883
+ }, this, 'dependencies');
884
+ }
885
+ else if (typeof options === 'string') {
886
+ connector = Connector.from({
887
+ ...connectorOptions,
888
+ name: options,
889
+ }, this, 'dependencies');
890
+ }
891
+ else if (asserts.isConnector(options)) {
892
+ options.ensureDelete(); // 同一实例不支持多处存在
893
+ connector = options;
894
+ Object.assign(connector, relationOptions);
895
+ }
896
+ else {
897
+ connector = Connector.from({
898
+ ...connectorOptions,
899
+ ...options,
900
+ }, this, 'dependencies');
901
+ }
902
+ this.dependencies.splice(index, 0, connector);
903
+ return connector;
904
+ }
905
+ insertConnectorInDependenciesAt(options, index) {
906
+ const node = this._insertConnectorInDependenciesAt(options, index);
907
+ node.create({
908
+ index,
909
+ parentNode: this,
910
+ parentKey: 'dependencies',
911
+ });
912
+ return node;
913
+ }
914
+ _addConnectorInDependencies(options) {
915
+ const index = this.dependencies.length;
916
+ return this._insertConnectorInDependenciesAt(options, index);
917
+ }
918
+ addConnectorInDependencies(options) {
919
+ const node = this._addConnectorInDependencies(options);
920
+ const index = this.dependencies.indexOf(node);
921
+ node.create({
922
+ index,
923
+ parentNode: this,
924
+ parentKey: 'dependencies',
925
+ });
926
+ return node;
927
+ }
928
+ _insertModuleInInterfaceDependenciesAt(options, index) {
929
+ const moduleOptions = {};
930
+ const relationOptions = { parentNode: this, parentKey: 'interfaceDependencies' };
931
+ const Module = (0, decorators_1.getConceptConstructor)('Module');
932
+ let module;
933
+ if (!options) {
934
+ module = Module.from({
935
+ ...moduleOptions,
936
+ name: this.getModuleUniqueName(),
937
+ }, this, 'interfaceDependencies');
938
+ }
939
+ else if (typeof options === 'string') {
940
+ module = Module.from({
941
+ ...moduleOptions,
942
+ name: options,
943
+ }, this, 'interfaceDependencies');
944
+ }
945
+ else if (asserts.isModule(options)) {
946
+ options.ensureDelete(); // 同一实例不支持多处存在
947
+ module = options;
948
+ Object.assign(module, relationOptions);
949
+ }
950
+ else {
951
+ module = Module.from({
952
+ ...moduleOptions,
953
+ ...options,
954
+ }, this, 'interfaceDependencies');
955
+ }
956
+ this.interfaceDependencies.splice(index, 0, module);
957
+ return module;
958
+ }
959
+ insertModuleInInterfaceDependenciesAt(options, index) {
960
+ const node = this._insertModuleInInterfaceDependenciesAt(options, index);
961
+ node.create({
962
+ index,
963
+ parentNode: this,
964
+ parentKey: 'interfaceDependencies',
965
+ });
966
+ return node;
967
+ }
968
+ _addModuleInInterfaceDependencies(options) {
969
+ const index = this.interfaceDependencies.length;
970
+ return this._insertModuleInInterfaceDependenciesAt(options, index);
971
+ }
972
+ addModuleInInterfaceDependencies(options) {
973
+ const node = this._addModuleInInterfaceDependencies(options);
974
+ const index = this.interfaceDependencies.indexOf(node);
975
+ node.create({
976
+ index,
977
+ parentNode: this,
978
+ parentKey: 'interfaceDependencies',
979
+ });
980
+ return node;
981
+ }
982
+ getConnectionExistingNames(excludedList = []) {
983
+ const excludedSet = new Set(excludedList);
984
+ return (this.connections || [])
985
+ .filter((item) => !excludedSet.has(item))
986
+ .map((item) => item?.name);
987
+ }
988
+ getConnectionUniqueName(name = 'connection1') {
989
+ return utils.unique(name, this.getConnectionExistingNames(), undefined, false);
990
+ }
991
+ _insertConnectionAt(options, index) {
992
+ const connectionOptions = {};
993
+ const relationOptions = { parentNode: this, parentKey: 'connections' };
994
+ const Connection = (0, decorators_1.getConceptConstructor)('Connection');
995
+ let connection;
996
+ if (!options) {
997
+ connection = Connection.from({
998
+ ...connectionOptions,
999
+ name: this.getConnectionUniqueName(),
1000
+ }, this, 'connections');
1001
+ }
1002
+ else if (typeof options === 'string') {
1003
+ connection = Connection.from({
1004
+ ...connectionOptions,
1005
+ name: options,
1006
+ }, this, 'connections');
1007
+ }
1008
+ else if (asserts.isConnection(options)) {
1009
+ options.ensureDelete(); // 同一实例不支持多处存在
1010
+ connection = options;
1011
+ Object.assign(connection, relationOptions);
1012
+ }
1013
+ else {
1014
+ connection = Connection.from({
1015
+ ...connectionOptions,
1016
+ ...options,
1017
+ }, this, 'connections');
1018
+ }
1019
+ this.connections.splice(index, 0, connection);
1020
+ return connection;
1021
+ }
1022
+ insertConnectionAt(options, index) {
1023
+ const node = this._insertConnectionAt(options, index);
1024
+ node.create({
1025
+ index,
1026
+ parentNode: this,
1027
+ parentKey: 'connections',
1028
+ });
1029
+ return node;
1030
+ }
1031
+ _addConnection(options) {
1032
+ const index = this.connections.length;
1033
+ return this._insertConnectionAt(options, index);
1034
+ }
1035
+ addConnection(options) {
1036
+ const node = this._addConnection(options);
1037
+ const index = this.connections.indexOf(node);
1038
+ node.create({
1039
+ index,
1040
+ parentNode: this,
1041
+ parentKey: 'connections',
1042
+ });
1043
+ return node;
1044
+ }
1045
+ getTriggerLauncherExistingNames(excludedList = []) {
1046
+ const excludedSet = new Set(excludedList);
1047
+ return (this.triggerLaunchers || [])
1048
+ .filter((item) => !excludedSet.has(item))
1049
+ .map((item) => item?.name);
1050
+ }
1051
+ getTriggerLauncherUniqueName(name = 'triggerLauncher1') {
1052
+ return utils.unique(name, this.getTriggerLauncherExistingNames(), undefined, false);
1053
+ }
1054
+ _insertTriggerLauncherAt(options, index) {
1055
+ const triggerLauncherOptions = {};
1056
+ const relationOptions = { parentNode: this, parentKey: 'triggerLaunchers' };
1057
+ const TriggerLauncher = (0, decorators_1.getConceptConstructor)('TriggerLauncher');
1058
+ let triggerLauncher;
1059
+ if (!options) {
1060
+ triggerLauncher = TriggerLauncher.from({
1061
+ ...triggerLauncherOptions,
1062
+ name: this.getTriggerLauncherUniqueName(),
1063
+ }, this, 'triggerLaunchers');
1064
+ }
1065
+ else if (typeof options === 'string') {
1066
+ triggerLauncher = TriggerLauncher.from({
1067
+ ...triggerLauncherOptions,
1068
+ name: options,
1069
+ }, this, 'triggerLaunchers');
1070
+ }
1071
+ else if (asserts.isTriggerLauncher(options)) {
1072
+ options.ensureDelete(); // 同一实例不支持多处存在
1073
+ triggerLauncher = options;
1074
+ Object.assign(triggerLauncher, relationOptions);
1075
+ }
1076
+ else {
1077
+ triggerLauncher = TriggerLauncher.from({
1078
+ ...triggerLauncherOptions,
1079
+ ...options,
1080
+ }, this, 'triggerLaunchers');
1081
+ }
1082
+ this.triggerLaunchers.splice(index, 0, triggerLauncher);
1083
+ return triggerLauncher;
1084
+ }
1085
+ insertTriggerLauncherAt(options, index) {
1086
+ const node = this._insertTriggerLauncherAt(options, index);
1087
+ node.create({
1088
+ index,
1089
+ parentNode: this,
1090
+ parentKey: 'triggerLaunchers',
1091
+ });
1092
+ return node;
1093
+ }
1094
+ _addTriggerLauncher(options) {
1095
+ const index = this.triggerLaunchers.length;
1096
+ return this._insertTriggerLauncherAt(options, index);
1097
+ }
1098
+ addTriggerLauncher(options) {
1099
+ const node = this._addTriggerLauncher(options);
1100
+ const index = this.triggerLaunchers.indexOf(node);
1101
+ node.create({
1102
+ index,
1103
+ parentNode: this,
1104
+ parentKey: 'triggerLaunchers',
1105
+ });
1106
+ return node;
1107
+ }
1108
+ getMetadataTypeExistingNames(excludedList = []) {
1109
+ const excludedSet = new Set(excludedList);
1110
+ return (this.metadataTypes || [])
1111
+ .filter((item) => !excludedSet.has(item))
1112
+ .map((item) => item?.name);
1113
+ }
1114
+ getMetadataTypeUniqueName(name = 'MetadataType1') {
1115
+ return utils.unique(name, this.getMetadataTypeExistingNames(), undefined, true);
1116
+ }
1117
+ _insertMetadataTypeAt(options, index) {
1118
+ const metadataTypeOptions = {};
1119
+ const relationOptions = { parentNode: this, parentKey: 'metadataTypes' };
1120
+ const MetadataType = (0, decorators_1.getConceptConstructor)('MetadataType');
1121
+ let metadataType;
1122
+ if (!options) {
1123
+ metadataType = MetadataType.from({
1124
+ ...metadataTypeOptions,
1125
+ name: this.getMetadataTypeUniqueName(),
1126
+ }, this, 'metadataTypes');
1127
+ }
1128
+ else if (typeof options === 'string') {
1129
+ metadataType = MetadataType.from({
1130
+ ...metadataTypeOptions,
1131
+ name: options,
1132
+ }, this, 'metadataTypes');
1133
+ }
1134
+ else if (asserts.isMetadataType(options)) {
1135
+ options.ensureDelete(); // 同一实例不支持多处存在
1136
+ metadataType = options;
1137
+ Object.assign(metadataType, relationOptions);
1138
+ }
1139
+ else {
1140
+ metadataType = MetadataType.from({
1141
+ ...metadataTypeOptions,
1142
+ ...options,
1143
+ }, this, 'metadataTypes');
1144
+ }
1145
+ this.metadataTypes.splice(index, 0, metadataType);
1146
+ return metadataType;
1147
+ }
1148
+ insertMetadataTypeAt(options, index) {
1149
+ const node = this._insertMetadataTypeAt(options, index);
1150
+ node.create({
1151
+ index,
1152
+ parentNode: this,
1153
+ parentKey: 'metadataTypes',
1154
+ });
1155
+ return node;
1156
+ }
1157
+ _addMetadataType(options) {
1158
+ const index = 0;
1159
+ return this._insertMetadataTypeAt(options, index);
1160
+ }
1161
+ addMetadataType(options) {
1162
+ const node = this._addMetadataType(options);
1163
+ const index = this.metadataTypes.indexOf(node);
1164
+ node.create({
1165
+ index,
1166
+ parentNode: this,
1167
+ parentKey: 'metadataTypes',
1168
+ });
1169
+ return node;
1170
+ }
1171
+ removeDataSource(options) {
1172
+ let dataSource;
1173
+ if (typeof options === 'string') {
1174
+ dataSource = this.dataSources.find((item) => item.name === options);
1175
+ if (!dataSource) {
1176
+ throw new Error('找不到数据源 ' + options);
1177
+ }
1178
+ }
1179
+ else {
1180
+ dataSource = options;
1181
+ }
1182
+ return dataSource.delete();
1183
+ }
1184
+ __removeDataSource(dataSource) {
1185
+ const parentKey = dataSource.parentKey;
1186
+ const params = {
1187
+ parentNode: this,
1188
+ parentKey,
1189
+ index: -1,
1190
+ object: null,
1191
+ oldObject: dataSource,
1192
+ };
1193
+ if (parentKey) {
1194
+ params.parentKey = parentKey;
1195
+ // @ts-ignore
1196
+ const t = this.__v_raw || this;
1197
+ // @ts-ignore
1198
+ const n = dataSource.__v_raw || dataSource;
1199
+ if (Array.isArray(t[parentKey])) {
1200
+ // @ts-ignore
1201
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1202
+ ~index && this[parentKey].splice(index, 1);
1203
+ params.index = index;
1204
+ }
1205
+ else {
1206
+ const q = t[parentKey];
1207
+ if ((q.__v_raw || q) === n) {
1208
+ params.index = 0;
1209
+ this[parentKey] = undefined;
1210
+ }
1211
+ }
1212
+ }
1213
+ return params;
1214
+ }
1215
+ removeStructure(options) {
1216
+ let structure;
1217
+ if (typeof options === 'string') {
1218
+ structure = this.structures.find((item) => item.name === options);
1219
+ if (!structure) {
1220
+ throw new Error('找不到数据结构 ' + options);
1221
+ }
1222
+ }
1223
+ else {
1224
+ structure = options;
1225
+ }
1226
+ return structure.delete();
1227
+ }
1228
+ __removeStructure(structure) {
1229
+ const parentKey = structure.parentKey;
1230
+ const params = {
1231
+ parentNode: this,
1232
+ parentKey,
1233
+ index: -1,
1234
+ object: null,
1235
+ oldObject: structure,
1236
+ };
1237
+ if (parentKey) {
1238
+ params.parentKey = parentKey;
1239
+ // @ts-ignore
1240
+ const t = this.__v_raw || this;
1241
+ // @ts-ignore
1242
+ const n = structure.__v_raw || structure;
1243
+ if (Array.isArray(t[parentKey])) {
1244
+ // @ts-ignore
1245
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1246
+ ~index && this[parentKey].splice(index, 1);
1247
+ params.index = index;
1248
+ }
1249
+ else {
1250
+ const q = t[parentKey];
1251
+ if ((q.__v_raw || q) === n) {
1252
+ params.index = 0;
1253
+ this[parentKey] = undefined;
1254
+ }
1255
+ }
1256
+ }
1257
+ return params;
1258
+ }
1259
+ removeEnum(options) {
1260
+ let enumeration;
1261
+ if (typeof options === 'string') {
1262
+ enumeration = this.enums.find((item) => item.name === options);
1263
+ if (!enumeration) {
1264
+ throw new Error('找不到枚举 ' + options);
1265
+ }
1266
+ }
1267
+ else {
1268
+ enumeration = options;
1269
+ }
1270
+ return enumeration.delete();
1271
+ }
1272
+ __removeEnum(enumeration) {
1273
+ const parentKey = enumeration.parentKey;
1274
+ const params = {
1275
+ parentNode: this,
1276
+ parentKey,
1277
+ index: -1,
1278
+ object: null,
1279
+ oldObject: enumeration,
1280
+ };
1281
+ if (parentKey) {
1282
+ params.parentKey = parentKey;
1283
+ // @ts-ignore
1284
+ const t = this.__v_raw || this;
1285
+ // @ts-ignore
1286
+ const n = enumeration.__v_raw || enumeration;
1287
+ if (Array.isArray(t[parentKey])) {
1288
+ // @ts-ignore
1289
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1290
+ ~index && this[parentKey].splice(index, 1);
1291
+ params.index = index;
1292
+ }
1293
+ else {
1294
+ const q = t[parentKey];
1295
+ if ((q.__v_raw || q) === n) {
1296
+ params.index = 0;
1297
+ this[parentKey] = undefined;
1298
+ }
1299
+ }
1300
+ }
1301
+ return params;
1302
+ }
1303
+ removeLogic(options) {
1304
+ let logic;
1305
+ if (typeof options === 'string') {
1306
+ logic = this.logics.find((item) => item.name === options);
1307
+ if (!logic) {
1308
+ throw new Error('找不到逻辑 ' + options);
1309
+ }
1310
+ }
1311
+ else {
1312
+ logic = options;
1313
+ }
1314
+ return logic.delete();
1315
+ }
1316
+ removeAuthLogicInAuthLogics(options) {
1317
+ let authLogic;
1318
+ if (typeof options === 'string') {
1319
+ authLogic = this.authLogics.find((item) => item.name === options);
1320
+ if (!authLogic) {
1321
+ throw new Error('找不到鉴权逻辑 ' + options);
1322
+ }
1323
+ }
1324
+ else {
1325
+ authLogic = options;
1326
+ }
1327
+ return authLogic.delete();
1328
+ }
1329
+ removeAuthLogicForCallInterfaceInAuthLogicsForCallInterface(options) {
1330
+ let authLogicForCallInterface;
1331
+ if (typeof options === 'string') {
1332
+ authLogicForCallInterface = this.authLogicsForCallInterface.find((item) => item.name === options);
1333
+ if (!authLogicForCallInterface) {
1334
+ throw new Error('找不到调用接口的鉴权逻辑 ' + options);
1335
+ }
1336
+ }
1337
+ else {
1338
+ authLogicForCallInterface = options;
1339
+ }
1340
+ return authLogicForCallInterface.delete();
1341
+ }
1342
+ __removeLogic(logic) {
1343
+ const parentKey = logic.parentKey;
1344
+ const params = {
1345
+ parentNode: this,
1346
+ parentKey,
1347
+ index: -1,
1348
+ object: null,
1349
+ oldObject: logic,
1350
+ };
1351
+ if (parentKey) {
1352
+ params.parentKey = parentKey;
1353
+ // @ts-ignore
1354
+ const t = this.__v_raw || this;
1355
+ // @ts-ignore
1356
+ const n = logic.__v_raw || logic;
1357
+ if (Array.isArray(t[parentKey])) {
1358
+ // @ts-ignore
1359
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1360
+ ~index && this[parentKey].splice(index, 1);
1361
+ params.index = index;
1362
+ }
1363
+ else {
1364
+ const q = t[parentKey];
1365
+ if ((q.__v_raw || q) === n) {
1366
+ params.index = 0;
1367
+ this[parentKey] = undefined;
1368
+ }
1369
+ }
1370
+ }
1371
+ return params;
1372
+ }
1373
+ removeOverriddenLogic(options) {
1374
+ let overriddenLogic;
1375
+ if (typeof options === 'string') {
1376
+ overriddenLogic = this.overriddenLogics.find((item) => item.name === options);
1377
+ if (!overriddenLogic) {
1378
+ throw new Error('找不到覆写逻辑 ' + options);
1379
+ }
1380
+ }
1381
+ else {
1382
+ overriddenLogic = options;
1383
+ }
1384
+ return overriddenLogic.delete();
1385
+ }
1386
+ __removeOverriddenLogic(overriddenLogic) {
1387
+ const parentKey = overriddenLogic.parentKey;
1388
+ const params = {
1389
+ parentNode: this,
1390
+ parentKey,
1391
+ index: -1,
1392
+ object: null,
1393
+ oldObject: overriddenLogic,
1394
+ };
1395
+ if (parentKey) {
1396
+ params.parentKey = parentKey;
1397
+ // @ts-ignore
1398
+ const t = this.__v_raw || this;
1399
+ // @ts-ignore
1400
+ const n = overriddenLogic.__v_raw || overriddenLogic;
1401
+ if (Array.isArray(t[parentKey])) {
1402
+ // @ts-ignore
1403
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1404
+ ~index && this[parentKey].splice(index, 1);
1405
+ params.index = index;
1406
+ }
1407
+ else {
1408
+ const q = t[parentKey];
1409
+ if ((q.__v_raw || q) === n) {
1410
+ params.index = 0;
1411
+ this[parentKey] = undefined;
1412
+ }
1413
+ }
1414
+ }
1415
+ return params;
1416
+ }
1417
+ removeAbstractInterface(options) {
1418
+ let itface;
1419
+ if (typeof options === 'string') {
1420
+ itface = this.interfaces.find((item) => item.name === options);
1421
+ if (!itface) {
1422
+ throw new Error('找不到接口 ' + options);
1423
+ }
1424
+ }
1425
+ else {
1426
+ itface = options;
1427
+ }
1428
+ return itface.delete();
1429
+ }
1430
+ __removeAbstractInterface(itface) {
1431
+ const parentKey = itface.parentKey;
1432
+ const params = {
1433
+ parentNode: this,
1434
+ parentKey,
1435
+ index: -1,
1436
+ object: null,
1437
+ oldObject: itface,
1438
+ };
1439
+ if (parentKey) {
1440
+ params.parentKey = parentKey;
1441
+ // @ts-ignore
1442
+ const t = this.__v_raw || this;
1443
+ // @ts-ignore
1444
+ const n = itface.__v_raw || itface;
1445
+ if (Array.isArray(t[parentKey])) {
1446
+ // @ts-ignore
1447
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1448
+ ~index && this[parentKey].splice(index, 1);
1449
+ params.index = index;
1450
+ }
1451
+ else {
1452
+ const q = t[parentKey];
1453
+ if ((q.__v_raw || q) === n) {
1454
+ params.index = 0;
1455
+ this[parentKey] = undefined;
1456
+ }
1457
+ }
1458
+ }
1459
+ return params;
1460
+ }
1461
+ removeFrontendType(options) {
1462
+ let frontendType;
1463
+ if (typeof options === 'string') {
1464
+ frontendType = this.frontendTypes.find((item) => item.name === options);
1465
+ if (!frontendType) {
1466
+ throw new Error('找不到端类型 ' + options);
1467
+ }
1468
+ }
1469
+ else {
1470
+ frontendType = options;
1471
+ }
1472
+ return frontendType.delete();
1473
+ }
1474
+ __removeFrontendType(frontendType) {
1475
+ const parentKey = frontendType.parentKey;
1476
+ const params = {
1477
+ parentNode: this,
1478
+ parentKey,
1479
+ index: -1,
1480
+ object: null,
1481
+ oldObject: frontendType,
1482
+ };
1483
+ if (parentKey) {
1484
+ params.parentKey = parentKey;
1485
+ // @ts-ignore
1486
+ const t = this.__v_raw || this;
1487
+ // @ts-ignore
1488
+ const n = frontendType.__v_raw || frontendType;
1489
+ if (Array.isArray(t[parentKey])) {
1490
+ // @ts-ignore
1491
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1492
+ ~index && this[parentKey].splice(index, 1);
1493
+ params.index = index;
1494
+ }
1495
+ else {
1496
+ const q = t[parentKey];
1497
+ if ((q.__v_raw || q) === n) {
1498
+ params.index = 0;
1499
+ this[parentKey] = undefined;
1500
+ }
1501
+ }
1502
+ }
1503
+ return params;
1504
+ }
1505
+ removeBackend(options) {
1506
+ let backend;
1507
+ if (typeof options === 'string') {
1508
+ backend = this.backend;
1509
+ if (!backend) {
1510
+ throw new Error('找不到后端 ' + options);
1511
+ }
1512
+ }
1513
+ else {
1514
+ backend = options;
1515
+ }
1516
+ return backend.delete();
1517
+ }
1518
+ __removeBackend(backend) {
1519
+ const parentKey = backend.parentKey;
1520
+ const params = {
1521
+ parentNode: this,
1522
+ parentKey,
1523
+ index: -1,
1524
+ object: null,
1525
+ oldObject: backend,
1526
+ };
1527
+ if (parentKey) {
1528
+ params.parentKey = parentKey;
1529
+ // @ts-ignore
1530
+ const t = this.__v_raw || this;
1531
+ // @ts-ignore
1532
+ const n = backend.__v_raw || backend;
1533
+ if (Array.isArray(t[parentKey])) {
1534
+ // @ts-ignore
1535
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1536
+ ~index && this[parentKey].splice(index, 1);
1537
+ params.index = index;
1538
+ }
1539
+ else {
1540
+ const q = t[parentKey];
1541
+ if ((q.__v_raw || q) === n) {
1542
+ params.index = 0;
1543
+ this[parentKey] = undefined;
1544
+ }
1545
+ }
1546
+ }
1547
+ return params;
1548
+ }
1549
+ removeProcess(options) {
1550
+ let process;
1551
+ if (typeof options === 'string') {
1552
+ process = this.processes.find((item) => item.name === options);
1553
+ if (!process) {
1554
+ throw new Error('找不到流程 ' + options);
1555
+ }
1556
+ }
1557
+ else {
1558
+ process = options;
1559
+ }
1560
+ return process.delete();
1561
+ }
1562
+ __removeProcess(process) {
1563
+ const parentKey = process.parentKey;
1564
+ const params = {
1565
+ parentNode: this,
1566
+ parentKey,
1567
+ index: -1,
1568
+ object: null,
1569
+ oldObject: process,
1570
+ };
1571
+ if (parentKey) {
1572
+ params.parentKey = parentKey;
1573
+ // @ts-ignore
1574
+ const t = this.__v_raw || this;
1575
+ // @ts-ignore
1576
+ const n = process.__v_raw || process;
1577
+ if (Array.isArray(t[parentKey])) {
1578
+ // @ts-ignore
1579
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1580
+ ~index && this[parentKey].splice(index, 1);
1581
+ params.index = index;
1582
+ }
1583
+ else {
1584
+ const q = t[parentKey];
1585
+ if ((q.__v_raw || q) === n) {
1586
+ params.index = 0;
1587
+ this[parentKey] = undefined;
1588
+ }
1589
+ }
1590
+ }
1591
+ return params;
1592
+ }
1593
+ removeRole(options) {
1594
+ let role;
1595
+ if (typeof options === 'string') {
1596
+ role = this.roles.find((item) => item.name === options);
1597
+ if (!role) {
1598
+ throw new Error('找不到角色 ' + options);
1599
+ }
1600
+ }
1601
+ else {
1602
+ role = options;
1603
+ }
1604
+ return role.delete();
1605
+ }
1606
+ __removeRole(role) {
1607
+ const parentKey = role.parentKey;
1608
+ const params = {
1609
+ parentNode: this,
1610
+ parentKey,
1611
+ index: -1,
1612
+ object: null,
1613
+ oldObject: role,
1614
+ };
1615
+ if (parentKey) {
1616
+ params.parentKey = parentKey;
1617
+ // @ts-ignore
1618
+ const t = this.__v_raw || this;
1619
+ // @ts-ignore
1620
+ const n = role.__v_raw || role;
1621
+ if (Array.isArray(t[parentKey])) {
1622
+ // @ts-ignore
1623
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1624
+ ~index && this[parentKey].splice(index, 1);
1625
+ params.index = index;
1626
+ }
1627
+ else {
1628
+ const q = t[parentKey];
1629
+ if ((q.__v_raw || q) === n) {
1630
+ params.index = 0;
1631
+ this[parentKey] = undefined;
1632
+ }
1633
+ }
1634
+ }
1635
+ return params;
1636
+ }
1637
+ removeConfiguration(options) {
1638
+ let configuration;
1639
+ if (typeof options === 'string') {
1640
+ configuration = this.configuration;
1641
+ if (!configuration) {
1642
+ throw new Error('找不到配置管理 ' + options);
1643
+ }
1644
+ }
1645
+ else {
1646
+ configuration = options;
1647
+ }
1648
+ return configuration.delete();
1649
+ }
1650
+ __removeConfiguration(configuration) {
1651
+ const parentKey = configuration.parentKey;
1652
+ const params = {
1653
+ parentNode: this,
1654
+ parentKey,
1655
+ index: -1,
1656
+ object: null,
1657
+ oldObject: configuration,
1658
+ };
1659
+ if (parentKey) {
1660
+ params.parentKey = parentKey;
1661
+ // @ts-ignore
1662
+ const t = this.__v_raw || this;
1663
+ // @ts-ignore
1664
+ const n = configuration.__v_raw || configuration;
1665
+ if (Array.isArray(t[parentKey])) {
1666
+ // @ts-ignore
1667
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1668
+ ~index && this[parentKey].splice(index, 1);
1669
+ params.index = index;
1670
+ }
1671
+ else {
1672
+ const q = t[parentKey];
1673
+ if ((q.__v_raw || q) === n) {
1674
+ params.index = 0;
1675
+ this[parentKey] = undefined;
1676
+ }
1677
+ }
1678
+ }
1679
+ return params;
1680
+ }
1681
+ removeModuleInDependencies(options) {
1682
+ let module;
1683
+ if (typeof options === 'string') {
1684
+ module = this.dependencies.find((item) => item.name === options);
1685
+ if (!module) {
1686
+ throw new Error('找不到模块 ' + options);
1687
+ }
1688
+ }
1689
+ else {
1690
+ module = options;
1691
+ }
1692
+ return module.delete();
1693
+ }
1694
+ removeConnectorInDependencies(options) {
1695
+ let connector;
1696
+ if (typeof options === 'string') {
1697
+ connector = this.dependencies.find((item) => item.name === options);
1698
+ if (!connector) {
1699
+ throw new Error('找不到连接器 ' + options);
1700
+ }
1701
+ }
1702
+ else {
1703
+ connector = options;
1704
+ }
1705
+ return connector.delete();
1706
+ }
1707
+ removeModuleInInterfaceDependencies(options) {
1708
+ let module;
1709
+ if (typeof options === 'string') {
1710
+ module = this.interfaceDependencies.find((item) => item.name === options);
1711
+ if (!module) {
1712
+ throw new Error('找不到模块 ' + options);
1713
+ }
1714
+ }
1715
+ else {
1716
+ module = options;
1717
+ }
1718
+ return module.delete();
1719
+ }
1720
+ __removeModule(module) {
1721
+ const parentKey = module.parentKey;
1722
+ const params = {
1723
+ parentNode: this,
1724
+ parentKey,
1725
+ index: -1,
1726
+ object: null,
1727
+ oldObject: module,
1728
+ };
1729
+ if (parentKey) {
1730
+ params.parentKey = parentKey;
1731
+ // @ts-ignore
1732
+ const t = this.__v_raw || this;
1733
+ // @ts-ignore
1734
+ const n = module.__v_raw || module;
1735
+ if (Array.isArray(t[parentKey])) {
1736
+ // @ts-ignore
1737
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1738
+ ~index && this[parentKey].splice(index, 1);
1739
+ params.index = index;
1740
+ }
1741
+ else {
1742
+ const q = t[parentKey];
1743
+ if ((q.__v_raw || q) === n) {
1744
+ params.index = 0;
1745
+ this[parentKey] = undefined;
1746
+ }
1747
+ }
1748
+ }
1749
+ return params;
1750
+ }
1751
+ removeIntegration(options) {
1752
+ let integration;
1753
+ if (typeof options === 'string') {
1754
+ integration = this.integration;
1755
+ if (!integration) {
1756
+ throw new Error('找不到集成 ' + options);
1757
+ }
1758
+ }
1759
+ else {
1760
+ integration = options;
1761
+ }
1762
+ return integration.delete();
1763
+ }
1764
+ __removeIntegration(integration) {
1765
+ const parentKey = integration.parentKey;
1766
+ const params = {
1767
+ parentNode: this,
1768
+ parentKey,
1769
+ index: -1,
1770
+ object: null,
1771
+ oldObject: integration,
1772
+ };
1773
+ if (parentKey) {
1774
+ params.parentKey = parentKey;
1775
+ // @ts-ignore
1776
+ const t = this.__v_raw || this;
1777
+ // @ts-ignore
1778
+ const n = integration.__v_raw || integration;
1779
+ if (Array.isArray(t[parentKey])) {
1780
+ // @ts-ignore
1781
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1782
+ ~index && this[parentKey].splice(index, 1);
1783
+ params.index = index;
1784
+ }
1785
+ else {
1786
+ const q = t[parentKey];
1787
+ if ((q.__v_raw || q) === n) {
1788
+ params.index = 0;
1789
+ this[parentKey] = undefined;
1790
+ }
1791
+ }
1792
+ }
1793
+ return params;
1794
+ }
1795
+ removeConnection(options) {
1796
+ let connection;
1797
+ if (typeof options === 'string') {
1798
+ connection = this.connections.find((item) => item.name === options);
1799
+ if (!connection) {
1800
+ throw new Error('找不到连接 ' + options);
1801
+ }
1802
+ }
1803
+ else {
1804
+ connection = options;
1805
+ }
1806
+ return connection.delete();
1807
+ }
1808
+ __removeConnection(connection) {
1809
+ const parentKey = connection.parentKey;
1810
+ const params = {
1811
+ parentNode: this,
1812
+ parentKey,
1813
+ index: -1,
1814
+ object: null,
1815
+ oldObject: connection,
1816
+ };
1817
+ if (parentKey) {
1818
+ params.parentKey = parentKey;
1819
+ // @ts-ignore
1820
+ const t = this.__v_raw || this;
1821
+ // @ts-ignore
1822
+ const n = connection.__v_raw || connection;
1823
+ if (Array.isArray(t[parentKey])) {
1824
+ // @ts-ignore
1825
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1826
+ ~index && this[parentKey].splice(index, 1);
1827
+ params.index = index;
1828
+ }
1829
+ else {
1830
+ const q = t[parentKey];
1831
+ if ((q.__v_raw || q) === n) {
1832
+ params.index = 0;
1833
+ this[parentKey] = undefined;
1834
+ }
1835
+ }
1836
+ }
1837
+ return params;
1838
+ }
1839
+ removeTriggerLauncher(options) {
1840
+ let triggerLauncher;
1841
+ if (typeof options === 'string') {
1842
+ triggerLauncher = this.triggerLaunchers.find((item) => item.name === options);
1843
+ if (!triggerLauncher) {
1844
+ throw new Error('找不到触发器启动器 ' + options);
1845
+ }
1846
+ }
1847
+ else {
1848
+ triggerLauncher = options;
1849
+ }
1850
+ return triggerLauncher.delete();
1851
+ }
1852
+ __removeTriggerLauncher(triggerLauncher) {
1853
+ const parentKey = triggerLauncher.parentKey;
1854
+ const params = {
1855
+ parentNode: this,
1856
+ parentKey,
1857
+ index: -1,
1858
+ object: null,
1859
+ oldObject: triggerLauncher,
1860
+ };
1861
+ if (parentKey) {
1862
+ params.parentKey = parentKey;
1863
+ // @ts-ignore
1864
+ const t = this.__v_raw || this;
1865
+ // @ts-ignore
1866
+ const n = triggerLauncher.__v_raw || triggerLauncher;
1867
+ if (Array.isArray(t[parentKey])) {
1868
+ // @ts-ignore
1869
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1870
+ ~index && this[parentKey].splice(index, 1);
1871
+ params.index = index;
1872
+ }
1873
+ else {
1874
+ const q = t[parentKey];
1875
+ if ((q.__v_raw || q) === n) {
1876
+ params.index = 0;
1877
+ this[parentKey] = undefined;
1878
+ }
1879
+ }
1880
+ }
1881
+ return params;
1882
+ }
1883
+ removeMetadataType(options) {
1884
+ let metadataType;
1885
+ if (typeof options === 'string') {
1886
+ metadataType = this.metadataTypes.find((item) => item.name === options);
1887
+ if (!metadataType) {
1888
+ throw new Error('找不到元数据类型 ' + options);
1889
+ }
1890
+ }
1891
+ else {
1892
+ metadataType = options;
1893
+ }
1894
+ return metadataType.delete();
1895
+ }
1896
+ __removeMetadataType(metadataType) {
1897
+ const parentKey = metadataType.parentKey;
1898
+ const params = {
1899
+ parentNode: this,
1900
+ parentKey,
1901
+ index: -1,
1902
+ object: null,
1903
+ oldObject: metadataType,
1904
+ };
1905
+ if (parentKey) {
1906
+ params.parentKey = parentKey;
1907
+ // @ts-ignore
1908
+ const t = this.__v_raw || this;
1909
+ // @ts-ignore
1910
+ const n = metadataType.__v_raw || metadataType;
1911
+ if (Array.isArray(t[parentKey])) {
1912
+ // @ts-ignore
1913
+ const index = t[parentKey].findIndex((el) => (el.__v_raw || el) === n);
1914
+ ~index && this[parentKey].splice(index, 1);
1915
+ params.index = index;
1916
+ }
1917
+ else {
1918
+ const q = t[parentKey];
1919
+ if ((q.__v_raw || q) === n) {
1920
+ params.index = 0;
1921
+ this[parentKey] = undefined;
1922
+ }
1923
+ }
1924
+ }
1925
+ return params;
1926
+ }
1927
+ //================================================================================
1928
+ // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
1929
+ // 自动生成的代码已结束。下面可以手动编写。
1930
+ //================================================================================
1931
+ findDataSourceByName(name) {
1932
+ return this.dataSources.find((dataSourceItem) => dataSourceItem.name === name);
1933
+ }
1934
+ get defaultDS() {
1935
+ return this.dataSources?.find((dataSource) => dataSource.name === 'defaultDS');
1936
+ }
1937
+ findEnumByName(name) {
1938
+ return this.enums.find((enumItem) => enumItem.name === name);
1939
+ }
1940
+ findStructureByName(name) {
1941
+ return this.structures.find((item) => item.name === name);
1942
+ }
1943
+ findLogicByName(name) {
1944
+ return this.logics.find((logic) => logic.name === name);
1945
+ }
1946
+ /**
1947
+ * 判断缓存是否为空
1948
+ */
1949
+ isComposeCacheEmpty() {
1950
+ const isEmpty = (composeCache) => {
1951
+ let result = true;
1952
+ for (let key in composeCache) {
1953
+ if (key !== 'nodes') {
1954
+ result = result && isEmpty(composeCache[key]);
1955
+ }
1956
+ }
1957
+ return result && !composeCache?.nodes?.length;
1958
+ };
1959
+ return isEmpty(this.composeCache);
1960
+ }
1961
+ /**
1962
+ * 获取组合节点
1963
+ */
1964
+ getCompose(path) {
1965
+ let compose = this.composeCache;
1966
+ path.forEach((key) => {
1967
+ compose = compose?.[key];
1968
+ });
1969
+ return compose || null;
1970
+ }
1971
+ /**
1972
+ * 获取组合节点
1973
+ */
1974
+ getComposeNodes(path) {
1975
+ let compose = this.composeCache;
1976
+ path.forEach((key) => {
1977
+ compose = compose?.[key];
1978
+ });
1979
+ return compose?.nodes || [];
1980
+ }
1981
+ /**
1982
+ * 往组合内添加节点
1983
+ */
1984
+ addComposeNodes(path, node) {
1985
+ let compose = this.composeCache;
1986
+ path.forEach((key, index) => {
1987
+ if (index === path.length - 1) {
1988
+ if (compose?.[key]?.nodes) {
1989
+ // 需要判断下nodes里面是否已经存在
1990
+ if (Array.isArray(node)) {
1991
+ node.forEach((item) => {
1992
+ if (!compose[key].nodes.find((it) => it === item)) {
1993
+ compose[key].nodes.push(item);
1994
+ }
1995
+ });
1996
+ }
1997
+ else {
1998
+ if (!compose[key].nodes.find((it) => it === node)) {
1999
+ compose[key].nodes.push(node);
2000
+ }
2001
+ }
2002
+ // 去重
2003
+ compose[key].nodes = Array.from(new Set(compose[key].nodes));
2004
+ }
2005
+ else {
2006
+ if (!compose?.[key]) {
2007
+ compose[key] = {};
2008
+ }
2009
+ compose[key].nodes = Array.isArray(node) ? node : [node];
2010
+ }
2011
+ }
2012
+ else {
2013
+ if (!compose?.[key]) {
2014
+ compose[key] = {};
2015
+ }
2016
+ compose = compose[key];
2017
+ }
2018
+ });
2019
+ }
2020
+ /**
2021
+ * 删除分组, 包括子集
2022
+ */
2023
+ deleteCompose(path) {
2024
+ if (!Array.isArray(path))
2025
+ return;
2026
+ let compose = this.composeCache;
2027
+ const delNodes = (_compose) => {
2028
+ if (_compose?.nodes) {
2029
+ for (let key in _compose) {
2030
+ if (key !== 'nodes') {
2031
+ delNodes(_compose[key]);
2032
+ }
2033
+ }
2034
+ const arr = [..._compose.nodes] || [];
2035
+ const triggerNode = []; // 触点放在最后删
2036
+ arr.forEach((node) => {
2037
+ if (node.name === path?.[0]) {
2038
+ triggerNode.push(node);
2039
+ }
2040
+ else {
2041
+ node && node.delete();
2042
+ }
2043
+ });
2044
+ triggerNode.forEach((node) => {
2045
+ node && node.delete();
2046
+ });
2047
+ _compose.nodes = [];
2048
+ }
2049
+ };
2050
+ this.emit('collect:start', {
2051
+ actionMsg: '删除同一分组节点',
2052
+ });
2053
+ path.forEach((key, index) => {
2054
+ if (index === path.length - 1) {
2055
+ delNodes(compose?.[key]);
2056
+ }
2057
+ else {
2058
+ compose = compose[key];
2059
+ }
2060
+ });
2061
+ this.emit('collect:end');
2062
+ }
2063
+ /**
2064
+ * 释放分组内所有节点, 包括子分组
2065
+ */
2066
+ releaseComposeNode(path) {
2067
+ if (!Array.isArray(path))
2068
+ return;
2069
+ let compose = this.composeCache;
2070
+ const releaseNodes = (_compose) => {
2071
+ if (_compose?.nodes) {
2072
+ for (let key in _compose) {
2073
+ if (key !== 'nodes') {
2074
+ releaseNodes(_compose[key]);
2075
+ }
2076
+ }
2077
+ _compose.nodes.forEach((node) => {
2078
+ node.update({
2079
+ composedBy: undefined
2080
+ });
2081
+ // 临时兼容性代码,后续抽离成插件化
2082
+ if (node.tag === 'u-linear-layout') {
2083
+ const attr = node.bindAttrs.find((it) => it.name === 'TableDesignerLocked');
2084
+ if (attr) {
2085
+ attr.delete();
2086
+ }
2087
+ }
2088
+ });
2089
+ _compose.nodes = [];
2090
+ }
2091
+ };
2092
+ this.emit('collect:start', {
2093
+ actionMsg: '释放节点',
2094
+ });
2095
+ path.forEach((key, index) => {
2096
+ if (index === path.length - 1) {
2097
+ releaseNodes(compose?.[key]);
2098
+ }
2099
+ else {
2100
+ compose = compose[key];
2101
+ }
2102
+ });
2103
+ this.emit('collect:end');
2104
+ }
2105
+ /**
2106
+ * 删除分组内的某一个
2107
+ */
2108
+ deleteComposeNode(path, node) {
2109
+ if (!node)
2110
+ return;
2111
+ let compose = this.composeCache;
2112
+ path.forEach((key, index) => {
2113
+ if (index === path.length - 1) {
2114
+ if (compose?.[key]?.nodes) {
2115
+ const index = compose[key].nodes.findIndex((it) => it === node);
2116
+ if (index > -1) {
2117
+ compose[key].nodes.splice(index, 1);
2118
+ }
2119
+ }
2120
+ }
2121
+ else {
2122
+ compose = compose[key];
2123
+ }
2124
+ });
2125
+ }
2126
+ /**
2127
+ * 清空某一分组
2128
+ */
2129
+ clearComposeNodes(path) {
2130
+ let compose = this.composeCache;
2131
+ path.forEach((key, index) => {
2132
+ if (index === path.length - 1) {
2133
+ if (compose?.[key]) {
2134
+ delete compose[key];
2135
+ }
2136
+ }
2137
+ else {
2138
+ compose = compose[key];
2139
+ }
2140
+ });
2141
+ }
2142
+ /**
2143
+ * 获取命名空间
2144
+ */
2145
+ getNamespace() {
2146
+ return 'app';
2147
+ }
2148
+ getTsNamespace() {
2149
+ return `app`;
2150
+ }
2151
+ findNodeByPath(nodePath) {
2152
+ return (0, jsoner_1.queryNodeByPath)(this, nodePath);
2153
+ }
2154
+ findNodeByCompleteName(originCompleteName) {
2155
+ let completeName = originCompleteName;
2156
+ // 是否是来自编辑态的自定义连接器
2157
+ const isFromEditableConnector = completeName?.endsWith(constants_1.CUSTOM_CONNECTOR_EDITABLE_SUFFIX);
2158
+ if (isFromEditableConnector) {
2159
+ // 为了查找到真实的结构,需要去掉编辑态的后缀
2160
+ completeName = completeName.replace(constants_1.CUSTOM_CONNECTOR_EDITABLE_SUFFIX, '');
2161
+ }
2162
+ const nameArr = completeName?.split('.') || [];
2163
+ let node = this;
2164
+ // 先处理平台的
2165
+ if (completeName.startsWith('nasl')) {
2166
+ node = (0, utils_1.getNaslNodeByNodeCallee)(nameArr.splice(0, nameArr.length - 1).join('.'), nameArr[nameArr.length - 1]);
2167
+ return node;
2168
+ }
2169
+ const start = nameArr.shift();
2170
+ const mod = 0;
2171
+ const modulesMap = {
2172
+ // v3.3 版本引入自定义连接器,在配置自定义连接器时需要同步支持内部数据结构使用,所以这里做扩展
2173
+ extensions: [...node.dependencies, ...(node?.integration?.connectors || [])],
2174
+ apis: node.interfaceDependencies,
2175
+ components: node.componentDependencies,
2176
+ };
2177
+ const modules = modulesMap[start];
2178
+ if (Array.isArray(modules)) {
2179
+ const moduleName = nameArr.shift();
2180
+ if (isFromEditableConnector) {
2181
+ node = modules.find((moduleItem) => moduleItem.name === moduleName && moduleItem?.parentNode?.concept === 'Integration');
2182
+ }
2183
+ else {
2184
+ node = modules.find((moduleItem) => moduleItem.name === moduleName);
2185
+ }
2186
+ }
2187
+ for (let index = 0; index < nameArr.length; index++) {
2188
+ if (!node) {
2189
+ return null;
2190
+ }
2191
+ const nameItem = nameArr[index];
2192
+ // const isKeyword = index % 2 === mod;
2193
+ // if (!isKeyword && Array.isArray(node)) {
2194
+ // node = node.find(({ name }) => name === nameItem);
2195
+ // } else {
2196
+ // node = node[nameItem];
2197
+ // }
2198
+ if (Array.isArray(node)) {
2199
+ node = node.find(({ name }) => name === nameItem);
2200
+ }
2201
+ else {
2202
+ node = node[nameItem];
2203
+ }
2204
+ }
2205
+ return node;
2206
+ }
2207
+ loadEnvList() {
2208
+ this.envList = ['dev', 'online'];
2209
+ }
2210
+ loadPackageInfo(scope) {
2211
+ const materialConfig = window.globalData.materialConfig || {};
2212
+ const { framework, ui } = materialConfig;
2213
+ const packageInfo = {
2214
+ template: { name: '', version: '', scope },
2215
+ ui: { name: '', version: '', scope },
2216
+ scope,
2217
+ };
2218
+ packageInfo.template.name = scope === 'h5' ? framework.h5 : framework.pc;
2219
+ packageInfo.template.version = framework.version;
2220
+ packageInfo.ui.name = scope === 'h5' ? ui.h5.name : ui.pc.name;
2221
+ packageInfo.ui.version = scope === 'h5'
2222
+ ? ui.h5.version
2223
+ : ui.pc.version;
2224
+ return packageInfo;
2225
+ }
2226
+ loadPackageInfos() {
2227
+ this.packageInfos = [];
2228
+ const scopes = ['pc', 'h5'];
2229
+ scopes.forEach((scope) => {
2230
+ this.packageInfos.push(this.loadPackageInfo(scope));
2231
+ });
2232
+ }
2233
+ /**
2234
+ * 根据 packageInfo 的信息生成用于 load 的 assetsInfo
2235
+ * 在环境中需要 basic 和 custom 分开 load,否则容易报错
2236
+ * @param prefix
2237
+ */
2238
+ genAllAssetsInfo(prefix, scope) {
2239
+ // const packageInfo = this.packageInfo;
2240
+ const packageInfo = this.packageInfos.find((info) => info.scope === scope);
2241
+ const result = {
2242
+ basic: {
2243
+ js: [
2244
+ `${prefix}/packages/vue@2/dist/vue.min.js`,
2245
+ // `${prefix}/packages/vue-router@3/dist/vue-router.min.js`,
2246
+ `${prefix}/packages/${packageInfo.ui.name}@${packageInfo.ui.version}/dist-theme/index.js`,
2247
+ `${prefix}/packages/${packageInfo.template.name}@${packageInfo.template.version}/cloudAdminDesigner.umd.min.js`,
2248
+ ],
2249
+ css: [
2250
+ `${prefix}/packages/${packageInfo.ui.name}@${packageInfo.ui.version}/dist-theme/index.css`,
2251
+ `${prefix}/packages/${packageInfo.template.name}@${packageInfo.template.version}/cloudAdminDesigner.css`,
2252
+ ],
2253
+ },
2254
+ custom: {
2255
+ js: [],
2256
+ css: [],
2257
+ names: [],
2258
+ },
2259
+ };
2260
+ const frontendTypes = this.frontendTypes.filter((frontendType) => frontendType.kind === scope);
2261
+ const existingSet = new Set();
2262
+ frontendTypes.forEach((frontendType) => {
2263
+ frontendType.componentDependencies.forEach((dep) => {
2264
+ const { name, version } = dep;
2265
+ const jsName = `${prefix}/packages/${name}@${version}/dist-theme/index.js`;
2266
+ if (!existingSet.has(jsName)) {
2267
+ existingSet.add(jsName);
2268
+ result.custom.js.push(jsName);
2269
+ if (utils.shouldLoadCss(name, version)) {
2270
+ result.custom.css.push(`${prefix}/packages/${name}@${version}/dist-theme/index.css`);
2271
+ }
2272
+ result.custom.names.push(name);
2273
+ }
2274
+ });
2275
+ });
2276
+ this.dependencies.forEach((dep) => {
2277
+ const { name, version, compilerInfoMap, frontends } = dep;
2278
+ const prefixPath = compilerInfoMap?.js?.prefix;
2279
+ if (name) {
2280
+ (frontends || []).forEach((frontend) => {
2281
+ if (frontend.type === scope) {
2282
+ const jsName = `${prefix}/packages/${prefixPath ? prefixPath + '/' : ''}${name}@${version}/dist-theme/index.js`;
2283
+ if (!existingSet.has(jsName)) {
2284
+ existingSet.add(jsName);
2285
+ result.custom.js.push(jsName);
2286
+ result.custom.names.push(dep.name);
2287
+ }
2288
+ }
2289
+ });
2290
+ }
2291
+ });
2292
+ return result;
2293
+ }
2294
+ onChange($event) {
2295
+ this.emit('change', $event);
2296
+ }
2297
+ addModuleInDependenciesWithDataSource(options) {
2298
+ this.emit('collect:start', {
2299
+ actionMsg: '导入依赖库',
2300
+ });
2301
+ const existSameNameNode = this.dependencies.find((l) => l.name === options.name);
2302
+ // 同名同版本的依赖库会替换 同名不同版本的依赖库会保留并设置为禁用
2303
+ // (options as Module).enable = true;
2304
+ if (existSameNameNode) {
2305
+ // const hasSameVersion = existSameNameNode.version === (options as Module).version;
2306
+ // if (hasSameVersion) {
2307
+ existSameNameNode.delete();
2308
+ // }
2309
+ // 同名的依赖库 只启用第一个
2310
+ // (options as Module).enable = hasSameVersion;
2311
+ }
2312
+ // 导入依赖库的时候如果有logic 且logic 可以被覆写 需要在app overideLogic 新增一个
2313
+ // 但是导入局部模板的时候已经手动新增了 这里就不需要了
2314
+ // 当依赖库被删除 的时候同样要删除 overideLogic
2315
+ // 支持局部模板导出导入overideLogic
2316
+ // 只复制 depLogic 输入输出参数
2317
+ const node = this.addModuleInDependencies(options);
2318
+ if (node?.logics && node?.logics.length > 0) {
2319
+ node.logics.forEach((logic) => {
2320
+ if (logic?.overridable) {
2321
+ const existing = this.overriddenLogics.find((ol) => ol.name === logic.name);
2322
+ !existing &&
2323
+ this.addOverriddenLogic({
2324
+ name: logic.name,
2325
+ description: logic.description,
2326
+ overriddenModule: node.name,
2327
+ returns: logic.returns.map((r) => r.toJSON()),
2328
+ params: logic.params.map((r) => r.toJSON()),
2329
+ });
2330
+ }
2331
+ });
2332
+ }
2333
+ // 启用的依赖库才创建数据源
2334
+ // if (node.enable && node.dataSources) {
2335
+ if (node.dataSources) {
2336
+ const dataSourceGroup = this.configuration?.getGroup('dataSource');
2337
+ const ConfigProperty = (0, decorators_1.getConceptConstructor)('ConfigProperty');
2338
+ if (dataSourceGroup) {
2339
+ node.dataSources.forEach((datasource) => {
2340
+ const body = ConfigProperty.from({
2341
+ name: datasource.name,
2342
+ description: '',
2343
+ isPrivate: false,
2344
+ values: [
2345
+ { env: 'dev', value: '', concept: 'ConfigPropertyValue' },
2346
+ { env: 'online', value: '', concept: 'ConfigPropertyValue' },
2347
+ ],
2348
+ });
2349
+ dataSourceGroup.addConfigProperty(body);
2350
+ });
2351
+ }
2352
+ }
2353
+ this.emit('collect:end');
2354
+ }
2355
+ statistics() {
2356
+ const sum = (list) => list.reduce((curr, prev) => prev + curr, 0);
2357
+ const countView = (list) => list.length + sum(list.map((view) => countView(view.children)));
2358
+ return {
2359
+ entityCount: sum(this.dataSources.map((dataSource) => dataSource.entities.length)),
2360
+ structureCount: this.structures.length,
2361
+ enumCount: this.enums.length,
2362
+ logicCount: this.logics.length,
2363
+ viewCount: sum(this.frontendTypes.map((frontendType) => sum(frontendType.frontends.map((frontend) => countView(frontend.views))))),
2364
+ processCount: this.processes.length,
2365
+ };
2366
+ }
2367
+ /**
2368
+ * 需要包含依赖库里的dataSources,不自动生成
2369
+ */
2370
+ getDataSourceExistingNames(excludedList = []) {
2371
+ const excludedSet = new Set(excludedList);
2372
+ const dependDatasources = [];
2373
+ const modules = [...this.dependencies];
2374
+ modules.forEach((module) => {
2375
+ if (Array.isArray(module.dataSources)) {
2376
+ dependDatasources.push(...module.dataSources);
2377
+ }
2378
+ });
2379
+ const dataSources = this.dataSources.concat(dependDatasources);
2380
+ return (dataSources || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2381
+ }
2382
+ /**
2383
+ * 更新全局设置 preferenceMap
2384
+ */
2385
+ updatePreferenceMap(preferences = {}) {
2386
+ this.emit('collect:start', { actionMsg: '修改实体表名列名' });
2387
+ const oldPreferenceMap = { ...this.preferenceMap };
2388
+ Object.assign(this.preferenceMap, preferences);
2389
+ // 更新实体表名和列名
2390
+ this.dataSources.forEach((ds) => {
2391
+ ds.entities.forEach((e) => {
2392
+ if (oldPreferenceMap['namingConvention.tableName'] !== preferences['namingConvention.tableName']) {
2393
+ e.formatTableName();
2394
+ }
2395
+ if (oldPreferenceMap['namingConvention.columnName'] !== preferences['namingConvention.columnName']) {
2396
+ e.formatPropertyColumnName();
2397
+ }
2398
+ });
2399
+ });
2400
+ // 使撤销生效
2401
+ Object.assign(this.preferenceMap, oldPreferenceMap);
2402
+ this.update({
2403
+ preferenceMap: preferences,
2404
+ });
2405
+ this.emit('collect:end');
2406
+ }
2407
+ /* 判断接口是否有误,需要重新导出 */
2408
+ getQualifiedInterface(interfaces = this.interfaces) {
2409
+ const errorList = [];
2410
+ interfaces.forEach((item) => {
2411
+ const logic = this.logics.find((logic) => logic.name === item.originLogicName);
2412
+ const logicParamMap = {};
2413
+ logic.params.forEach((param) => {
2414
+ logicParamMap[param.name] = param.typeAnnotation;
2415
+ });
2416
+ item.params.forEach((param) => {
2417
+ const logicTypeAnnotation = logicParamMap[param.name]?.toJSON();
2418
+ delete logicParamMap[param.name];
2419
+ if (!logicTypeAnnotation) {
2420
+ return errorList.push({
2421
+ logicName: logic.name,
2422
+ interfaceName: item.name,
2423
+ param: param.name,
2424
+ type: 1,
2425
+ message: `参数“${param.name}”已被删除,请确定请求类型无误后点击“重新导出”`,
2426
+ });
2427
+ }
2428
+ const interfaceTypeAnnotation = param.typeAnnotation.toJSON();
2429
+ let isSame = false;
2430
+ if (logicTypeAnnotation?.typeNamespace === 'app.enums') {
2431
+ if (interfaceTypeAnnotation.typeNamespace === 'nasl.core' && interfaceTypeAnnotation.typeName === 'String') {
2432
+ isSame = true;
2433
+ }
2434
+ }
2435
+ if (JSON.stringify(logicTypeAnnotation) === JSON.stringify(interfaceTypeAnnotation)) {
2436
+ isSame = true;
2437
+ }
2438
+ if (!isSame) {
2439
+ errorList.push({
2440
+ logicName: logic.name,
2441
+ interfaceName: item.name,
2442
+ param: param.name,
2443
+ type: 2,
2444
+ message: `参数“${param.name}”数据类型变更,请确定请求类型无误后点击“重新导出”`,
2445
+ });
2446
+ }
2447
+ });
2448
+ const logicReturns = logic.returns;
2449
+ const interfaceReturns = item.returns;
2450
+ if (logicReturns?.length > interfaceReturns?.length) {
2451
+ if (!logicReturns[0].typeAnnotation) {
2452
+ errorList.push({
2453
+ logicName: logic.name,
2454
+ interfaceName: item.name,
2455
+ resultName: logicReturns[0].name,
2456
+ type: 4,
2457
+ message: `输出参数发生变更,请点击“重新导出”`,
2458
+ });
2459
+ }
2460
+ else {
2461
+ errorList.push({
2462
+ logicName: logic.name,
2463
+ interfaceName: item.name,
2464
+ resultName: logicReturns[0].name,
2465
+ type: 4,
2466
+ message: `输出参数发生变更,请点击“重新导出”`,
2467
+ });
2468
+ }
2469
+ }
2470
+ else if (logicReturns?.length < interfaceReturns?.length) {
2471
+ errorList.push({
2472
+ logicName: logic.name,
2473
+ interfaceName: item.name,
2474
+ resultName: interfaceReturns[0].name,
2475
+ type: 4,
2476
+ message: `输出参数发生变更,请点击“重新导出”`,
2477
+ });
2478
+ }
2479
+ else if (logicReturns?.length === interfaceReturns?.length) {
2480
+ if (logicReturns.length !== 0) {
2481
+ if (logicReturns[0].name !== interfaceReturns[0].name) {
2482
+ errorList.push({
2483
+ logicName: logic.name,
2484
+ interfaceName: item.name,
2485
+ resultName: logicReturns[0].name,
2486
+ type: 4,
2487
+ message: `输出参数发生变更,请点击“重新导出”`,
2488
+ });
2489
+ }
2490
+ else if (!logicReturns[0].typeAnnotation) {
2491
+ if (!logicReturns[0]?.__TypeAnnotation) {
2492
+ errorList.push({
2493
+ logicName: logic.name,
2494
+ interfaceName: item.name,
2495
+ resultName: logicReturns[0].name,
2496
+ type: 7,
2497
+ message: `输出参数“${logicReturns[0].name}”没有数据类型,无法导出`,
2498
+ });
2499
+ }
2500
+ else if (!logicReturns[0]?.__TypeAnnotation.isSame(interfaceReturns[0]?.typeAnnotation)) {
2501
+ errorList.push({
2502
+ logicName: logic.name,
2503
+ interfaceName: item.name,
2504
+ resultName: logicReturns[0].name,
2505
+ type: 4,
2506
+ message: `输出参数发生变更,请点击“重新导出”`,
2507
+ });
2508
+ }
2509
+ }
2510
+ else if (JSON.stringify(logicReturns[0]?.typeAnnotation?.toJSON()) !==
2511
+ JSON.stringify(interfaceReturns[0]?.typeAnnotation?.toJSON())) {
2512
+ errorList.push({
2513
+ logicName: logic.name,
2514
+ interfaceName: item.name,
2515
+ resultName: logicReturns[0].name,
2516
+ type: 4,
2517
+ message: `输出参数发生变更,请点击“重新导出”`,
2518
+ });
2519
+ }
2520
+ }
2521
+ }
2522
+ for (const i in logicParamMap) {
2523
+ errorList.push({
2524
+ logicName: logic.name,
2525
+ param: i,
2526
+ message: `新增参数“${i}”,请确定请求类型无误后点击“重新导出”`,
2527
+ type: 3,
2528
+ });
2529
+ }
2530
+ });
2531
+ return errorList;
2532
+ }
2533
+ getFrontendExistingTitles(excludedList = []) {
2534
+ const excludedSet = new Set(excludedList);
2535
+ return (this.frontendTypes || [])
2536
+ .map((frontendType) => frontendType.frontends?.filter((item) => !excludedSet.has(item)).map((item) => item.title))
2537
+ .flat(2);
2538
+ }
2539
+ getExtensionsCallbackLogics() {
2540
+ let resultLogics = [];
2541
+ this.frontendTypes.forEach((frontendType) => {
2542
+ frontendType?.frontends?.forEach((frontend) => {
2543
+ resultLogics = [...resultLogics, ...frontend.getExtensionsCallbackLogics()];
2544
+ });
2545
+ });
2546
+ return Array.from(new Set(resultLogics));
2547
+ }
2548
+ getJavaLogicUniqueName(name = 'javalogic1') {
2549
+ return utils.unique(name, this.getLogicExistingNames(), undefined, true);
2550
+ }
2551
+ getJavaLogicClassUniqueName(name = 'Javalogic1') {
2552
+ return `${utils.unique(name, this.getLogicExistingNames(), undefined, true)}Service`;
2553
+ }
2554
+ genAllCustomComponents() {
2555
+ const compMap = {
2556
+ pc: [],
2557
+ h5: [],
2558
+ };
2559
+ const existingSet = new Set();
2560
+ this.frontendTypes.forEach((frontendType) => {
2561
+ if (frontendType.componentDependencies) {
2562
+ frontendType.componentDependencies.forEach((dep) => {
2563
+ const { name } = dep;
2564
+ if (!existingSet.has(name)) {
2565
+ compMap[frontendType.kind].push(dep);
2566
+ }
2567
+ });
2568
+ }
2569
+ });
2570
+ return compMap;
2571
+ }
2572
+ /**
2573
+ * 获取 “系统统一路径前缀”
2574
+ * @returns
2575
+ */
2576
+ get sysPrefixPath() {
2577
+ const uniformPathPrefix = this.configuration?.groups
2578
+ ?.find((item) => item.name === 'system')
2579
+ ?.properties?.find((item) => item.name === 'uniformPathPrefix')
2580
+ ?.values.find((item) => item.env === this.curDeployEnv)?.value;
2581
+ const sysPrefixPath = uniformPathPrefix && uniformPathPrefix !== '/' ? uniformPathPrefix : '';
2582
+ return sysPrefixPath;
2583
+ }
2584
+ getAuthLogicExistingNames(excludedList = []) {
2585
+ const excludedSet = new Set(excludedList);
2586
+ return (this.authLogics || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2587
+ }
2588
+ getAuthLogicUniqueName(name = 'authentication1') {
2589
+ return utils.unique(name, this.getAuthLogicExistingNames(), undefined, true);
2590
+ }
2591
+ getAuthInterfaceUniqueName(name = 'authInterface1') {
2592
+ // never used
2593
+ }
2594
+ get appTimeZone() {
2595
+ return this.configuration?.groups
2596
+ ?.find((item) => item.name === 'system')
2597
+ ?.properties?.find((item) => item.name === 'appTimeZone')
2598
+ ?.values.find((item) => item.env === this.curDeployEnv)?.value;
2599
+ }
2600
+ // FIXME: 没有设置 dontGenGetUniqueName 为什么 不会生成 唯一标识逻辑???
2601
+ getConnectorExistingNames(excludedList = []) {
2602
+ const excludedSet = new Set(excludedList);
2603
+ return (this.dependencies || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2604
+ }
2605
+ getConnectorUniqueName(name = 'connector1') {
2606
+ return utils.unique(name, this.getConnectorExistingNames(), undefined, false);
2607
+ }
2608
+ /** 根据名称获取 triggerLauncher */
2609
+ getTriggerLauncherByName(name) {
2610
+ return this.triggerLaunchers.find((item) => item.name === name);
2611
+ }
2612
+ /** 根据名称获取 Logic */
2613
+ getLogicByName(name) {
2614
+ return this.logics.find((item) => item.name === name);
2615
+ }
2616
+ /** 获取已经存在的Module title */
2617
+ getModuleExistingTitles(excludedList = []) {
2618
+ const excludedSet = new Set(excludedList);
2619
+ return (this.dependencies || []).filter((item) => !excludedSet.has(item)).map((item) => item.title);
2620
+ }
2621
+ getAuthLogicForCallInterfaceExistingNames(excludedList = []) {
2622
+ const excludedSet = new Set(excludedList);
2623
+ return (this.authLogicsForCallInterface || [])
2624
+ .filter((item) => !excludedSet.has(item))
2625
+ .map((item) => item.name);
2626
+ }
2627
+ getAuthLogicForCallInterfaceUniqueName(name = 'authLogicForCallInterface1') {
2628
+ return utils.unique(name, this.getAuthLogicForCallInterfaceExistingNames(), undefined, false);
2629
+ }
2630
+ //todo 替换生成
2631
+ getInterfaceExistingNames(excludedList = []) {
2632
+ const excludedSet = new Set(excludedList);
2633
+ return (this.interfaces || []).filter((item) => !excludedSet.has(item)).map((item) => item.name);
2634
+ }
2635
+ getInterfaceUniqueName(name = 'Interface1') {
2636
+ return utils.unique(name, this.getInterfaceExistingNames(), undefined, true);
2637
+ }
2638
+ _insertInterfaceInInterfacesAt(options, index) {
2639
+ const itfaceOptions = {};
2640
+ const relationOptions = { parentNode: this, parentKey: 'interfaces' };
2641
+ const Interface = (0, decorators_1.getConceptConstructor)('Interface');
2642
+ let itface;
2643
+ if (!options) {
2644
+ itface = Interface.from({
2645
+ ...itfaceOptions,
2646
+ name: this.getInterfaceUniqueName(),
2647
+ }, this, 'interfaces');
2648
+ }
2649
+ else if (typeof options === 'string') {
2650
+ itface = Interface.from({
2651
+ ...itfaceOptions,
2652
+ name: options,
2653
+ }, this, 'interfaces');
2654
+ }
2655
+ else if (asserts.isInterface(options)) {
2656
+ options.ensureDelete(); // 同一实例不支持多处存在
2657
+ itface = options;
2658
+ Object.assign(itface, relationOptions);
2659
+ }
2660
+ else {
2661
+ itface = Interface.from({
2662
+ ...itfaceOptions,
2663
+ ...options,
2664
+ }, this, 'interfaces');
2665
+ }
2666
+ this.interfaces.splice(index, 0, itface);
2667
+ return itface;
2668
+ }
2669
+ insertInterfaceInInterfacesAt(options, index) {
2670
+ const node = this._insertInterfaceInInterfacesAt(options, index);
2671
+ node.create({
2672
+ index,
2673
+ parentNode: this,
2674
+ parentKey: 'interfaces',
2675
+ });
2676
+ return node;
2677
+ }
2678
+ _addInterfaceInInterfaces(options) {
2679
+ const index = 0;
2680
+ return this._insertInterfaceInInterfacesAt(options, index);
2681
+ }
2682
+ addInterfaceInInterfaces(options) {
2683
+ const node = this._addInterfaceInInterfaces(options);
2684
+ const index = this.interfaces.indexOf(node);
2685
+ node.create({
2686
+ index,
2687
+ parentNode: this,
2688
+ parentKey: 'interfaces',
2689
+ });
2690
+ return node;
2691
+ }
2692
+ _insertAuthInterfaceInInterfacesAt(options, index) {
2693
+ const itfaceOptions = {};
2694
+ const relationOptions = { parentNode: this, parentKey: 'interfaces' };
2695
+ const AuthInterface = (0, decorators_1.getConceptConstructor)('AuthInterface');
2696
+ let itface;
2697
+ if (!options) {
2698
+ itface = AuthInterface.from({
2699
+ ...itfaceOptions,
2700
+ name: this.getAuthInterfaceUniqueName(),
2701
+ }, this, 'interfaces');
2702
+ }
2703
+ else if (typeof options === 'string') {
2704
+ itface = AuthInterface.from({
2705
+ ...itfaceOptions,
2706
+ name: options,
2707
+ }, this, 'interfaces');
2708
+ }
2709
+ else if (asserts.isAuthInterface(options)) {
2710
+ options.ensureDelete(); // 同一实例不支持多处存在
2711
+ itface = options;
2712
+ Object.assign(itface, relationOptions);
2713
+ }
2714
+ else {
2715
+ itface = AuthInterface.from({
2716
+ ...itfaceOptions,
2717
+ ...options,
2718
+ }, this, 'interfaces');
2719
+ }
2720
+ this.interfaces.splice(index, 0, itface);
2721
+ return itface;
2722
+ }
2723
+ insertAuthInterfaceInInterfacesAt(options, index) {
2724
+ const node = this._insertAuthInterfaceInInterfacesAt(options, index);
2725
+ node.create({
2726
+ index,
2727
+ parentNode: this,
2728
+ parentKey: 'interfaces',
2729
+ });
2730
+ return node;
2731
+ }
2732
+ _addAuthInterfaceInInterfaces(options) {
2733
+ const index = 0;
2734
+ return this._insertAuthInterfaceInInterfacesAt(options, index);
2735
+ }
2736
+ addAuthInterfaceInInterfaces(options) {
2737
+ const node = this._addAuthInterfaceInInterfaces(options);
2738
+ const index = this.interfaces.indexOf(node);
2739
+ node.create({
2740
+ index,
2741
+ parentNode: this,
2742
+ parentKey: 'interfaces',
2743
+ });
2744
+ return node;
2745
+ }
2746
+ removeAuthInterfaceInInterfaces(options) {
2747
+ let itface;
2748
+ if (typeof options === 'string') {
2749
+ itface = this.interfaces.find((item) => item.name === options);
2750
+ if (!itface) {
2751
+ throw new Error('找不到鉴权接口 ' + options);
2752
+ }
2753
+ }
2754
+ else {
2755
+ itface = options;
2756
+ }
2757
+ return itface.delete();
2758
+ }
2759
+ __removeInterface(itface) {
2760
+ const parentKey = itface.parentKey;
2761
+ const params = {
2762
+ parentNode: this,
2763
+ parentKey,
2764
+ index: -1,
2765
+ object: null,
2766
+ oldObject: itface,
2767
+ };
2768
+ if (parentKey) {
2769
+ params.parentKey = parentKey;
2770
+ if (Array.isArray(this[parentKey])) {
2771
+ const index = this[parentKey].indexOf(itface);
2772
+ ~index && this[parentKey].splice(index, 1);
2773
+ params.index = index;
2774
+ }
2775
+ else if (this[parentKey] === itface) {
2776
+ params.index = 0;
2777
+ this[parentKey] = undefined;
2778
+ }
2779
+ }
2780
+ return params;
2781
+ }
2782
+ };
2783
+ /** 类名 */
2784
+ App.ConceptName = 'App';
2785
+ /** 继承链 */
2786
+ App.inheritanceChain = ['BaseNode'];
2787
+ __decorate([
2788
+ (0, decorators_1.property)()
2789
+ ], App.prototype, "id", void 0);
2790
+ __decorate([
2791
+ (0, decorators_1.property)('concept')
2792
+ ], App.prototype, "concept", void 0);
2793
+ __decorate([
2794
+ (0, decorators_1.property)()
2795
+ ], App.prototype, "ideVersion", void 0);
2796
+ __decorate([
2797
+ (0, decorators_1.property)()
2798
+ ], App.prototype, "name", void 0);
2799
+ __decorate([
2800
+ (0, decorators_1.property)()
2801
+ ], App.prototype, "title", void 0);
2802
+ __decorate([
2803
+ (0, decorators_1.property)()
2804
+ ], App.prototype, "icon", void 0);
2805
+ __decorate([
2806
+ (0, decorators_1.property)()
2807
+ ], App.prototype, "desc", void 0);
2808
+ __decorate([
2809
+ (0, decorators_1.property)()
2810
+ ], App.prototype, "dnsAddr", void 0);
2811
+ __decorate([
2812
+ (0, decorators_1.property)()
2813
+ ], App.prototype, "hasUserCenter", void 0);
2814
+ __decorate([
2815
+ (0, decorators_1.property)()
2816
+ ], App.prototype, "hasAuth", void 0);
2817
+ __decorate([
2818
+ (0, decorators_1.property)({
2819
+ objectRef: 'DataSource',
2820
+ isArray: true,
2821
+ defaultValue: [],
2822
+ })
2823
+ ], App.prototype, "dataSources", void 0);
2824
+ __decorate([
2825
+ (0, decorators_1.property)({
2826
+ objectRef: 'Structure',
2827
+ isArray: true,
2828
+ defaultValue: [],
2829
+ })
2830
+ ], App.prototype, "structures", void 0);
2831
+ __decorate([
2832
+ (0, decorators_1.property)({
2833
+ objectRef: 'Enum',
2834
+ isArray: true,
2835
+ defaultValue: [],
2836
+ })
2837
+ ], App.prototype, "enums", void 0);
2838
+ __decorate([
2839
+ (0, decorators_1.property)({
2840
+ objectRef: 'Logic',
2841
+ isArray: true,
2842
+ defaultValue: [],
2843
+ })
2844
+ ], App.prototype, "logics", void 0);
2845
+ __decorate([
2846
+ (0, decorators_1.property)({
2847
+ objectRef: 'OverriddenLogic',
2848
+ isArray: true,
2849
+ defaultValue: [],
2850
+ })
2851
+ ], App.prototype, "overriddenLogics", void 0);
2852
+ __decorate([
2853
+ (0, decorators_1.property)({
2854
+ objectRef: 'AbstractInterface',
2855
+ isArray: true,
2856
+ defaultValue: [],
2857
+ })
2858
+ ], App.prototype, "interfaces", void 0);
2859
+ __decorate([
2860
+ (0, decorators_1.property)({
2861
+ objectRef: 'FrontendType',
2862
+ isArray: true,
2863
+ defaultValue: [],
2864
+ })
2865
+ ], App.prototype, "frontendTypes", void 0);
2866
+ __decorate([
2867
+ (0, decorators_1.property)({
2868
+ objectRef: 'Backend',
2869
+ })
2870
+ ], App.prototype, "backend", void 0);
2871
+ __decorate([
2872
+ (0, decorators_1.property)({
2873
+ objectRef: 'Process',
2874
+ isArray: true,
2875
+ defaultValue: [],
2876
+ })
2877
+ ], App.prototype, "processes", void 0);
2878
+ __decorate([
2879
+ (0, decorators_1.property)({
2880
+ objectRef: 'Role',
2881
+ isArray: true,
2882
+ defaultValue: [],
2883
+ })
2884
+ ], App.prototype, "roles", void 0);
2885
+ __decorate([
2886
+ (0, decorators_1.property)({
2887
+ objectRef: 'Configuration',
2888
+ })
2889
+ ], App.prototype, "configuration", void 0);
2890
+ __decorate([
2891
+ (0, decorators_1.property)({
2892
+ objectRef: 'Module | Connector',
2893
+ isArray: true,
2894
+ defaultValue: [],
2895
+ })
2896
+ ], App.prototype, "dependencies", void 0);
2897
+ __decorate([
2898
+ (0, decorators_1.property)({
2899
+ objectRef: 'Module',
2900
+ isArray: true,
2901
+ defaultValue: [],
2902
+ })
2903
+ ], App.prototype, "interfaceDependencies", void 0);
2904
+ __decorate([
2905
+ (0, decorators_1.property)({
2906
+ objectRef: 'Integration',
2907
+ })
2908
+ ], App.prototype, "integration", void 0);
2909
+ __decorate([
2910
+ (0, decorators_1.property)({
2911
+ objectRef: 'AuthLogic',
2912
+ isArray: true,
2913
+ defaultValue: [],
2914
+ })
2915
+ ], App.prototype, "authLogics", void 0);
2916
+ __decorate([
2917
+ (0, decorators_1.property)({
2918
+ objectRef: 'AuthLogicForCallInterface',
2919
+ isArray: true,
2920
+ defaultValue: [],
2921
+ })
2922
+ ], App.prototype, "authLogicsForCallInterface", void 0);
2923
+ __decorate([
2924
+ (0, decorators_1.property)({
2925
+ objectRef: 'Connection',
2926
+ isArray: true,
2927
+ defaultValue: [],
2928
+ })
2929
+ ], App.prototype, "connections", void 0);
2930
+ __decorate([
2931
+ (0, decorators_1.property)({
2932
+ objectRef: 'TriggerLauncher',
2933
+ isArray: true,
2934
+ defaultValue: [],
2935
+ })
2936
+ ], App.prototype, "triggerLaunchers", void 0);
2937
+ __decorate([
2938
+ (0, decorators_1.property)({
2939
+ objectRef: 'MetadataType',
2940
+ isArray: true,
2941
+ defaultValue: [],
2942
+ })
2943
+ ], App.prototype, "metadataTypes", void 0);
2944
+ __decorate([
2945
+ (0, decorators_1.excludedInJSON)()
2946
+ ], App.prototype, "officialType", void 0);
2947
+ __decorate([
2948
+ (0, decorators_1.excludedInJSON)()
2949
+ ], App.prototype, "projectId", void 0);
2950
+ __decorate([
2951
+ (0, decorators_1.excludedInJSON)()
2952
+ ], App.prototype, "tenantId", void 0);
2953
+ __decorate([
2954
+ (0, decorators_1.excludedInJSON)()
2955
+ ], App.prototype, "userGroupId", void 0);
2956
+ __decorate([
2957
+ (0, decorators_1.excludedInJSON)()
2958
+ ], App.prototype, "envs", void 0);
2959
+ __decorate([
2960
+ (0, decorators_1.excludedInJSON)()
2961
+ ], App.prototype, "envList", void 0);
2962
+ __decorate([
2963
+ (0, decorators_1.excludedInJSON)()
2964
+ ], App.prototype, "deploying", void 0);
2965
+ __decorate([
2966
+ (0, decorators_1.excludedInJSON)()
2967
+ ], App.prototype, "deploymentId", void 0);
2968
+ __decorate([
2969
+ (0, decorators_1.excludedInJSON)()
2970
+ ], App.prototype, "templateId", void 0);
2971
+ __decorate([
2972
+ (0, decorators_1.property)()
2973
+ ], App.prototype, "preferenceMap", void 0);
2974
+ App = App_1 = __decorate([
2975
+ (0, decorators_1.concept)('应用')
2976
+ ], App);
2977
+ exports.App = App;
2978
+ exports.default = App;
2979
+ //================================================================================
2980
+ // ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
2981
+ // 自动生成的代码已结束。下面可以手动编写。
2982
+ //================================================================================
2983
+ //# sourceMappingURL=App__.js.map