@lcap/nasl 3.3.2-beta.3 → 3.3.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1265) hide show
  1. package/.nyc_output/{d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json → 4f2d526f-9422-4abc-993d-0857e05a5009.json} +1 -1
  2. package/.nyc_output/processinfo/4f2d526f-9422-4abc-993d-0857e05a5009.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/coverage/index.html +108 -108
  5. package/coverage/src/automate/engine/index.html +1 -1
  6. package/coverage/src/automate/engine/utils.js.html +36 -36
  7. package/coverage/src/bak/index.html +15 -15
  8. package/coverage/src/bak/translator.js.html +183 -60
  9. package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
  10. package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
  11. package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +1 -1
  12. package/coverage/src/breakpoint/generator/CallbackNode.ts.html +1 -1
  13. package/coverage/src/breakpoint/generator/index.html +1 -1
  14. package/coverage/src/breakpoint/generator/index.ts.html +1 -1
  15. package/coverage/src/breakpoint/index.html +1 -1
  16. package/coverage/src/breakpoint/index.ts.html +1 -1
  17. package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
  18. package/coverage/src/breakpoint/shared/index.html +1 -1
  19. package/coverage/src/breakpoint/shared/index.ts.html +1 -1
  20. package/coverage/src/breakpoint/shared/operations.ts.html +1 -1
  21. package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
  22. package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
  23. package/coverage/src/breakpoint/store/core.ts.html +1 -1
  24. package/coverage/src/breakpoint/store/dock.ts.html +1 -1
  25. package/coverage/src/breakpoint/store/index.html +1 -1
  26. package/coverage/src/breakpoint/store/index.ts.html +1 -1
  27. package/coverage/src/common/BaseNode.ts.html +92 -62
  28. package/coverage/src/common/Command.ts.html +1 -1
  29. package/coverage/src/common/EventEmitter.ts.html +1 -1
  30. package/coverage/src/common/Messager.ts.html +1 -1
  31. package/coverage/src/common/asyncFuncMap.ts.html +1 -1
  32. package/coverage/src/common/index.html +14 -14
  33. package/coverage/src/common/index.ts.html +1 -1
  34. package/coverage/src/concepts/Abort__.ts.html +9 -6
  35. package/coverage/src/concepts/Anchor__.ts.html +36 -21
  36. package/coverage/src/concepts/AnonymousFunction__.ts.html +62 -20
  37. package/coverage/src/concepts/App__.ts.html +917 -74
  38. package/coverage/src/concepts/Argument__.ts.html +41 -26
  39. package/coverage/src/concepts/Assignee__.ts.html +40 -13
  40. package/coverage/src/concepts/AssignmentLine__.ts.html +9 -6
  41. package/coverage/src/concepts/Assignment__.ts.html +61 -22
  42. package/coverage/src/concepts/Attribute__.ts.html +25 -10
  43. package/coverage/src/concepts/AuthInterface__.ts.html +9 -6
  44. package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +25 -10
  45. package/coverage/src/concepts/AuthLogic__.ts.html +18 -6
  46. package/coverage/src/concepts/BackendVariable__.ts.html +25 -10
  47. package/coverage/src/concepts/Backend__.ts.html +25 -10
  48. package/coverage/src/concepts/BatchAssignment__.ts.html +61 -16
  49. package/coverage/src/concepts/BinaryExpression__.ts.html +141 -39
  50. package/coverage/src/concepts/BindAttribute__.ts.html +134 -41
  51. package/coverage/src/concepts/BindDirective__.ts.html +79 -16
  52. package/coverage/src/concepts/BindEvent__.ts.html +80 -23
  53. package/coverage/src/concepts/BindStyle__.ts.html +25 -10
  54. package/coverage/src/concepts/BooleanLiteral__.ts.html +9 -6
  55. package/coverage/src/concepts/CallAuthInterface__.ts.html +25 -10
  56. package/coverage/src/concepts/CallConnector__.ts.html +9 -6
  57. package/coverage/src/concepts/CallFunction__.ts.html +56 -38
  58. package/coverage/src/concepts/CallInterface__.ts.html +81 -36
  59. package/coverage/src/concepts/CallLogic__.ts.html +195 -264
  60. package/coverage/src/concepts/CallQueryComponent__.ts.html +40 -13
  61. package/coverage/src/concepts/Comment__.ts.html +11 -8
  62. package/coverage/src/concepts/CompletionProperty__.ts.html +25 -10
  63. package/coverage/src/concepts/ConfigGroup__.ts.html +25 -10
  64. package/coverage/src/concepts/ConfigPropertyValue__.ts.html +9 -6
  65. package/coverage/src/concepts/ConfigProperty__.ts.html +25 -10
  66. package/coverage/src/concepts/Configuration__.ts.html +25 -10
  67. package/coverage/src/concepts/Connection__.ts.html +26 -11
  68. package/coverage/src/concepts/ConnectorTrigger__.ts.html +9 -6
  69. package/coverage/src/concepts/Connector__.ts.html +85 -22
  70. package/coverage/src/concepts/Constant__.ts.html +25 -10
  71. package/coverage/src/concepts/DataSource__.ts.html +26 -11
  72. package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +9 -6
  73. package/coverage/src/concepts/Destination__.ts.html +24 -12
  74. package/coverage/src/concepts/End__.ts.html +9 -6
  75. package/coverage/src/concepts/EntityIndex__.ts.html +9 -6
  76. package/coverage/src/concepts/EntityProperty__.ts.html +62 -14
  77. package/coverage/src/concepts/Entity__.ts.html +41 -14
  78. package/coverage/src/concepts/EnumItem__.ts.html +9 -6
  79. package/coverage/src/concepts/Enum__.ts.html +25 -10
  80. package/coverage/src/concepts/Event__.ts.html +25 -10
  81. package/coverage/src/concepts/ExternalDestination__.ts.html +25 -10
  82. package/coverage/src/concepts/ForEachStatement__.ts.html +68 -47
  83. package/coverage/src/concepts/FrontendLibrary__.ts.html +40 -13
  84. package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
  85. package/coverage/src/concepts/Frontend__.ts.html +86 -23
  86. package/coverage/src/concepts/Function__.ts.html +92 -26
  87. package/coverage/src/concepts/Identifier__.ts.html +28 -25
  88. package/coverage/src/concepts/IfStatement__.ts.html +83 -56
  89. package/coverage/src/concepts/Integration__.ts.html +40 -13
  90. package/coverage/src/concepts/InterfaceParam__.ts.html +25 -10
  91. package/coverage/src/concepts/Interface__.ts.html +61 -22
  92. package/coverage/src/concepts/JSBlock__.ts.html +188 -8
  93. package/coverage/src/concepts/JavaLogic__.ts.html +9 -6
  94. package/coverage/src/concepts/LogicItem__.ts.html +15 -12
  95. package/coverage/src/concepts/Logic__.ts.html +117 -81
  96. package/coverage/src/concepts/MatchCase__.ts.html +100 -61
  97. package/coverage/src/concepts/Match__.ts.html +48 -27
  98. package/coverage/src/concepts/MemberExpression__.ts.html +72 -66
  99. package/coverage/src/concepts/MetadataType__.ts.html +1996 -0
  100. package/coverage/src/concepts/MicroApp__.ts.html +9 -6
  101. package/coverage/src/concepts/Module__.ts.html +672 -18
  102. package/coverage/src/concepts/MsgTriggerEvent__.ts.html +25 -10
  103. package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +25 -10
  104. package/coverage/src/concepts/Namespace__.ts.html +175 -40
  105. package/coverage/src/concepts/NewComposite__.ts.html +93 -27
  106. package/coverage/src/concepts/NewList__.ts.html +44 -14
  107. package/coverage/src/concepts/NewMap__.ts.html +44 -14
  108. package/coverage/src/concepts/New__.ts.html +1 -1
  109. package/coverage/src/concepts/NullLiteral__.ts.html +9 -6
  110. package/coverage/src/concepts/NumericLiteral__.ts.html +27 -12
  111. package/coverage/src/concepts/OqlQueryComponent__.ts.html +103 -13
  112. package/coverage/src/concepts/OverriddenLogic__.ts.html +100 -25
  113. package/coverage/src/concepts/Param__.ts.html +24 -15
  114. package/coverage/src/concepts/Point__.ts.html +9 -6
  115. package/coverage/src/concepts/ProcessComponent__.ts.html +40 -13
  116. package/coverage/src/concepts/ProcessElement__.ts.html +128 -29
  117. package/coverage/src/concepts/ProcessOutcome__.ts.html +9 -6
  118. package/coverage/src/concepts/ProcessOutcomes__.ts.html +9 -6
  119. package/coverage/src/concepts/Process__.ts.html +85 -22
  120. package/coverage/src/concepts/QueryAggregateExpression__.ts.html +25 -10
  121. package/coverage/src/concepts/QueryFieldExpression__.ts.html +9 -6
  122. package/coverage/src/concepts/QueryFromExpression__.ts.html +25 -10
  123. package/coverage/src/concepts/QueryGroupByExpression__.ts.html +25 -10
  124. package/coverage/src/concepts/QueryJoinExpression__.ts.html +25 -10
  125. package/coverage/src/concepts/QueryLimitExpression__.ts.html +25 -10
  126. package/coverage/src/concepts/QueryOrderByExpression__.ts.html +25 -10
  127. package/coverage/src/concepts/QuerySelectExpression__.ts.html +25 -10
  128. package/coverage/src/concepts/Rect__.ts.html +9 -6
  129. package/coverage/src/concepts/Return__.ts.html +25 -10
  130. package/coverage/src/concepts/Role__.ts.html +9 -6
  131. package/coverage/src/concepts/SelectMembers__.ts.html +25 -10
  132. package/coverage/src/concepts/Slot__.ts.html +25 -10
  133. package/coverage/src/concepts/SqlQueryComponent__.ts.html +25 -10
  134. package/coverage/src/concepts/Start__.ts.html +9 -6
  135. package/coverage/src/concepts/StringInterpolation__.ts.html +40 -19
  136. package/coverage/src/concepts/StringLiteral__.ts.html +9 -6
  137. package/coverage/src/concepts/StructureProperty__.ts.html +25 -10
  138. package/coverage/src/concepts/Structure__.ts.html +40 -13
  139. package/coverage/src/concepts/SwitchCase__.ts.html +33 -18
  140. package/coverage/src/concepts/SwitchStatement__.ts.html +38 -23
  141. package/coverage/src/concepts/Theme__.ts.html +9 -6
  142. package/coverage/src/concepts/Transactional__.ts.html +9 -6
  143. package/coverage/src/concepts/TriggerEvent__.ts.html +25 -10
  144. package/coverage/src/concepts/TriggerLauncher__.ts.html +9 -6
  145. package/coverage/src/concepts/TypeAnnotation__.ts.html +223 -61
  146. package/coverage/src/concepts/TypeParam__.ts.html +10 -7
  147. package/coverage/src/concepts/UnaryExpression__.ts.html +40 -13
  148. package/coverage/src/concepts/Unparsed__.ts.html +11 -8
  149. package/coverage/src/concepts/UseComponent__.ts.html +9 -6
  150. package/coverage/src/concepts/ValidationRule__.ts.html +30 -15
  151. package/coverage/src/concepts/Variable__.ts.html +61 -16
  152. package/coverage/src/concepts/ViewBlock__.ts.html +9 -6
  153. package/coverage/src/concepts/ViewComponent__.ts.html +99 -24
  154. package/coverage/src/concepts/ViewElement__.ts.html +334 -181
  155. package/coverage/src/concepts/View__.ts.html +326 -71
  156. package/coverage/src/concepts/WhileStatement__.ts.html +78 -45
  157. package/coverage/src/concepts/basics/stdlib/index.html +1 -1
  158. package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
  159. package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
  160. package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
  161. package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
  162. package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
  163. package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
  164. package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
  165. package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
  166. package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
  167. package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
  168. package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
  169. package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +1 -1
  170. package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
  171. package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +1 -1
  172. package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
  173. package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
  174. package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
  175. package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
  176. package/coverage/src/concepts/basics/types/index.html +1 -1
  177. package/coverage/src/concepts/basics/types/index.ts.html +1 -1
  178. package/coverage/src/concepts/index.html +823 -808
  179. package/coverage/src/concepts/index.ts.html +1 -1
  180. package/coverage/src/concepts/index__.ts.html +7 -4
  181. package/coverage/src/config.ts.html +1 -1
  182. package/coverage/src/decorators/index.html +1 -1
  183. package/coverage/src/decorators/index.ts.html +24 -24
  184. package/coverage/src/decorators/promise.ts.html +1 -1
  185. package/coverage/src/eventBus.ts.html +1 -1
  186. package/coverage/src/generator/compileComponent.ts.html +1 -1
  187. package/coverage/src/generator/genBundleFiles.ts.html +13 -19
  188. package/coverage/src/generator/genHash.ts.html +1 -1
  189. package/coverage/src/generator/genMetaData.ts.html +103 -16
  190. package/coverage/src/generator/genReleaseBody.ts.html +1 -1
  191. package/coverage/src/generator/icestark.ts.html +1 -1
  192. package/coverage/src/generator/index.html +15 -15
  193. package/coverage/src/generator/index.ts.html +1 -1
  194. package/coverage/src/generator/microApp.ts.html +1 -1
  195. package/coverage/src/generator/permission.ts.html +1 -1
  196. package/coverage/src/generator/qiankun.ts.html +1 -1
  197. package/coverage/src/generator/styleReplacer.ts.html +1 -1
  198. package/coverage/src/index.html +7 -7
  199. package/coverage/src/index.ts.html +4 -4
  200. package/coverage/src/manager/diagnostic.ts.html +1 -1
  201. package/coverage/src/manager/index.html +1 -1
  202. package/coverage/src/manager/stepRecorder.ts.html +1 -1
  203. package/coverage/src/natural/genNaturalTS.ts.html +1 -1
  204. package/coverage/src/natural/index.html +15 -15
  205. package/coverage/src/natural/index.ts.html +1 -1
  206. package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
  207. package/coverage/src/natural/transformTSCode.ts.html +78 -18
  208. package/coverage/src/sentry/index.html +1 -1
  209. package/coverage/src/sentry/index.ts.html +21 -21
  210. package/coverage/src/server/createUiTs.ts.html +15 -6
  211. package/coverage/src/server/entity2LogicNamespace.ts.html +1 -1
  212. package/coverage/src/server/event.js.html +1 -1
  213. package/coverage/src/server/extendBaseNode.ts.html +7 -4
  214. package/coverage/src/server/formatTsUtils.ts.html +1 -1
  215. package/coverage/src/server/getConnector.ts.html +1 -1
  216. package/coverage/src/server/getExtensionModules.ts.html +1 -1
  217. package/coverage/src/server/getFunctions.ts.html +1 -1
  218. package/coverage/src/server/getInterfaces.ts.html +1 -1
  219. package/coverage/src/server/getLogging.ts.html +1 -1
  220. package/coverage/src/server/getLogics.ts.html +1 -1
  221. package/coverage/src/server/getMemberIdentifier.ts.html +161 -113
  222. package/coverage/src/server/getProcessComponents.ts.html +1 -1
  223. package/coverage/src/server/getProcesses.ts.html +1 -1
  224. package/coverage/src/server/getValidates.ts.html +1 -1
  225. package/coverage/src/server/index.html +25 -25
  226. package/coverage/src/server/index.ts.html +1 -1
  227. package/coverage/src/server/naslServer.ts.html +470 -59
  228. package/coverage/src/server/naslStdlibMap.ts.html +1 -1
  229. package/coverage/src/server/process2LogicNamespace.ts.html +1 -1
  230. package/coverage/src/server/translator.ts.html +3 -3
  231. package/coverage/src/service/creator/add.configs.js.html +26 -8
  232. package/coverage/src/service/creator/errHandles.js.html +19 -37
  233. package/coverage/src/service/creator/index.html +22 -22
  234. package/coverage/src/service/creator/index.js.html +1 -1
  235. package/coverage/src/service/datasource/api.js.html +1 -1
  236. package/coverage/src/service/datasource/index.html +1 -1
  237. package/coverage/src/service/datasource/index.js.html +1 -1
  238. package/coverage/src/service/logic/api.js.html +1 -1
  239. package/coverage/src/service/logic/index.html +1 -1
  240. package/coverage/src/service/logic/index.js.html +1 -1
  241. package/coverage/src/service/storage/api.js.html +1 -1
  242. package/coverage/src/service/storage/index.html +19 -19
  243. package/coverage/src/service/storage/index.ts.html +1 -1
  244. package/coverage/src/service/storage/init.ts.html +1498 -598
  245. package/coverage/src/service/storage/jsoner.ts.html +3 -3
  246. package/coverage/src/service/storage/map.ts.html +1 -1
  247. package/coverage/src/service/storage/service.ts.html +1 -1
  248. package/coverage/src/service/storage/storagePoint.ts.html +1 -1
  249. package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
  250. package/coverage/src/templator/genCreateBlock.ts.html +47 -56
  251. package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +49 -31
  252. package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +81 -93
  253. package/coverage/src/templator/genEditTableBlock.ts.html +80 -11
  254. package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
  255. package/coverage/src/templator/genGetBlock.ts.html +1 -1
  256. package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
  257. package/coverage/src/templator/genListViewBlock.ts.html +1 -1
  258. package/coverage/src/templator/genQueryComponent.ts.html +1 -1
  259. package/coverage/src/templator/genSelectBlock.ts.html +1 -1
  260. package/coverage/src/templator/genTableBlock.ts.html +66 -3
  261. package/coverage/src/templator/genUpdateBlock.ts.html +48 -36
  262. package/coverage/src/templator/index.html +39 -39
  263. package/coverage/src/templator/index.ts.html +1 -1
  264. package/coverage/src/templator/utils.ts.html +77 -11
  265. package/coverage/src/translator/constant.ts.html +1 -1
  266. package/coverage/src/translator/index.html +20 -20
  267. package/coverage/src/translator/index.ts.html +1 -1
  268. package/coverage/src/translator/utils.ts.html +87 -30
  269. package/coverage/src/utils/cookie.ts.html +1 -1
  270. package/coverage/src/utils/env.ts.html +1 -1
  271. package/coverage/src/utils/index.html +27 -27
  272. package/coverage/src/utils/index.ts.html +115 -22
  273. package/coverage/src/utils/logger.ts.html +1 -1
  274. package/coverage/src/utils/sortTsString.ts.html +1 -1
  275. package/coverage/src/utils/string.ts.html +110 -8
  276. package/coverage/src/utils/time-slicing.ts.html +1 -1
  277. package/coverage/src/utils/traverse.ts.html +1 -1
  278. package/coverage/src/utils/window.ts.html +1 -1
  279. package/package.json +7 -7
  280. package/sandbox/stdlib/nasl.core.ts +187 -185
  281. package/src/bak/translator.js +100 -47
  282. package/src/common/BaseNode.ts +64 -13
  283. package/src/concepts/Abort__.ts +1 -0
  284. package/src/concepts/Anchor__.ts +19 -14
  285. package/src/concepts/AnonymousFunction__.ts +26 -12
  286. package/src/concepts/App__.ts +359 -76
  287. package/src/concepts/Argument__.ts +8 -3
  288. package/src/concepts/Assignee__.ts +15 -6
  289. package/src/concepts/AssignmentLine__.ts +1 -0
  290. package/src/concepts/Assignment__.ts +27 -14
  291. package/src/concepts/Attribute__.ts +8 -3
  292. package/src/concepts/AuthInterface__.ts +1 -0
  293. package/src/concepts/AuthLogicForCallInterface__.ts +8 -3
  294. package/src/concepts/AuthLogic__.ts +4 -0
  295. package/src/concepts/BackendVariable__.ts +30 -6
  296. package/src/concepts/Backend__.ts +8 -3
  297. package/src/concepts/BatchAssignment__.ts +28 -13
  298. package/src/concepts/BinaryExpression__.ts +56 -22
  299. package/src/concepts/BindAttribute__.ts +50 -18
  300. package/src/concepts/BindDirective__.ts +26 -5
  301. package/src/concepts/BindEvent__.ts +34 -15
  302. package/src/concepts/BindStyle__.ts +8 -3
  303. package/src/concepts/BooleanLiteral__.ts +1 -0
  304. package/src/concepts/CallAuthInterface__.ts +8 -3
  305. package/src/concepts/CallConnector__.ts +1 -0
  306. package/src/concepts/CallFunction__.ts +27 -24
  307. package/src/concepts/CallInterface__.ts +43 -28
  308. package/src/concepts/CallLogic__.ts +86 -108
  309. package/src/concepts/CallQueryComponent__.ts +15 -6
  310. package/src/concepts/Comment__.ts +2 -1
  311. package/src/concepts/CompletionProperty__.ts +8 -3
  312. package/src/concepts/ConfigGroup__.ts +8 -3
  313. package/src/concepts/ConfigPropertyValue__.ts +1 -0
  314. package/src/concepts/ConfigProperty__.ts +8 -3
  315. package/src/concepts/Configuration__.ts +8 -3
  316. package/src/concepts/Connection__.ts +9 -4
  317. package/src/concepts/ConnectorTrigger__.ts +1 -0
  318. package/src/concepts/Connector__.ts +36 -15
  319. package/src/concepts/Constant__.ts +8 -3
  320. package/src/concepts/DataSource__.ts +8 -3
  321. package/src/concepts/DatabaseTypeAnnotation__.ts +1 -0
  322. package/src/concepts/Destination__.ts +8 -4
  323. package/src/concepts/End__.ts +1 -0
  324. package/src/concepts/EntityIndex__.ts +1 -0
  325. package/src/concepts/EntityProperty__.ts +23 -7
  326. package/src/concepts/Entity__.ts +15 -6
  327. package/src/concepts/EnumItem__.ts +1 -0
  328. package/src/concepts/Enum__.ts +8 -3
  329. package/src/concepts/Event__.ts +8 -3
  330. package/src/concepts/ExternalDestination__.ts +8 -3
  331. package/src/concepts/ForEachStatement__.ts +43 -36
  332. package/src/concepts/FrontendLibrary__.ts +15 -6
  333. package/src/concepts/Frontend__.ts +36 -15
  334. package/src/concepts/Function__.ts +40 -18
  335. package/src/concepts/Identifier__.ts +1 -0
  336. package/src/concepts/IfStatement__.ts +29 -20
  337. package/src/concepts/Integration__.ts +15 -6
  338. package/src/concepts/InterfaceParam__.ts +8 -3
  339. package/src/concepts/Interface__.ts +28 -15
  340. package/src/concepts/JSBlock__.ts +60 -0
  341. package/src/concepts/JavaLogic__.ts +1 -0
  342. package/src/concepts/LogicItem__.ts +5 -4
  343. package/src/concepts/Logic__.ts +70 -58
  344. package/src/concepts/MatchCase__.ts +42 -29
  345. package/src/concepts/Match__.ts +23 -16
  346. package/src/concepts/MemberExpression__.ts +26 -21
  347. package/src/concepts/MetadataType__.ts +637 -0
  348. package/src/concepts/MicroApp__.ts +1 -0
  349. package/src/concepts/Module__.ts +227 -9
  350. package/src/concepts/MsgTriggerEvent__.ts +8 -3
  351. package/src/concepts/MsgTriggerLauncher__.ts +8 -3
  352. package/src/concepts/Namespace__.ts +78 -33
  353. package/src/concepts/NewComposite__.ts +41 -19
  354. package/src/concepts/NewList__.ts +17 -7
  355. package/src/concepts/NewMap__.ts +17 -7
  356. package/src/concepts/NullLiteral__.ts +1 -0
  357. package/src/concepts/NumericLiteral__.ts +9 -4
  358. package/src/concepts/OqlQueryComponent__.ts +35 -5
  359. package/src/concepts/OverriddenLogic__.ts +44 -19
  360. package/src/concepts/Param__.ts +38 -15
  361. package/src/concepts/Point__.ts +1 -0
  362. package/src/concepts/ProcessComponent__.ts +15 -6
  363. package/src/concepts/ProcessElement__.ts +57 -24
  364. package/src/concepts/ProcessOutcome__.ts +1 -0
  365. package/src/concepts/ProcessOutcomes__.ts +1 -0
  366. package/src/concepts/Process__.ts +36 -15
  367. package/src/concepts/QueryAggregateExpression__.ts +8 -3
  368. package/src/concepts/QueryFieldExpression__.ts +1 -0
  369. package/src/concepts/QueryFromExpression__.ts +8 -3
  370. package/src/concepts/QueryGroupByExpression__.ts +8 -3
  371. package/src/concepts/QueryJoinExpression__.ts +8 -3
  372. package/src/concepts/QueryLimitExpression__.ts +8 -3
  373. package/src/concepts/QueryOrderByExpression__.ts +8 -3
  374. package/src/concepts/QuerySelectExpression__.ts +8 -3
  375. package/src/concepts/Rect__.ts +1 -0
  376. package/src/concepts/Return__.ts +31 -6
  377. package/src/concepts/Role__.ts +1 -0
  378. package/src/concepts/SelectMembers__.ts +8 -3
  379. package/src/concepts/Slot__.ts +8 -3
  380. package/src/concepts/SqlQueryComponent__.ts +8 -3
  381. package/src/concepts/Start__.ts +1 -0
  382. package/src/concepts/StringInterpolation__.ts +14 -7
  383. package/src/concepts/StringLiteral__.ts +1 -0
  384. package/src/concepts/StructureProperty__.ts +8 -3
  385. package/src/concepts/Structure__.ts +15 -6
  386. package/src/concepts/SwitchCase__.ts +14 -9
  387. package/src/concepts/SwitchStatement__.ts +21 -16
  388. package/src/concepts/Theme__.ts +1 -0
  389. package/src/concepts/Transactional__.ts +1 -0
  390. package/src/concepts/TriggerEvent__.ts +8 -3
  391. package/src/concepts/TriggerLauncher__.ts +1 -0
  392. package/src/concepts/TypeAnnotation__.ts +82 -28
  393. package/src/concepts/TypeParam__.ts +2 -1
  394. package/src/concepts/UnaryExpression__.ts +15 -6
  395. package/src/concepts/Unparsed__.ts +2 -1
  396. package/src/concepts/UseComponent__.ts +1 -0
  397. package/src/concepts/ValidationRule__.ts +10 -5
  398. package/src/concepts/Variable__.ts +32 -8
  399. package/src/concepts/ViewBlock__.ts +1 -0
  400. package/src/concepts/ViewComponent__.ts +43 -18
  401. package/src/concepts/ViewElement__.ts +198 -124
  402. package/src/concepts/View__.ts +150 -56
  403. package/src/concepts/WhileStatement__.ts +26 -15
  404. package/src/concepts/basics/stdlib/nasl.util.ts +2 -2
  405. package/src/concepts/index__.ts +1 -0
  406. package/src/concepts/types__.ts +2 -0
  407. package/src/generator/genBundleFiles.ts +11 -13
  408. package/src/generator/genMetaData.ts +37 -8
  409. package/src/generator/permission.ts +33 -9
  410. package/src/index.ts +1 -1
  411. package/src/natural/transformTSCode.ts +22 -3
  412. package/src/sentry/index.ts +3 -1
  413. package/src/server/extendBaseNode.ts +2 -1
  414. package/src/server/getMemberIdentifier.ts +122 -121
  415. package/src/server/naslServer.ts +141 -5
  416. package/src/server/translator.ts +2 -2
  417. package/src/service/creator/add.configs.js +6 -0
  418. package/src/service/storage/init.ts +317 -11
  419. package/src/templator/genCreateBlock.ts +35 -38
  420. package/src/templator/genCurdEditMultipleKeyBlock.ts +31 -25
  421. package/src/templator/genCurdMultipleKeyBlock.ts +67 -71
  422. package/src/templator/genEditTableBlock.ts +7 -6
  423. package/src/templator/genUpdateBlock.ts +30 -26
  424. package/src/templator/utils.ts +23 -1
  425. package/src/translator/utils.ts +20 -0
  426. package/src/utils/index.ts +31 -0
  427. package/src/utils/string.ts +34 -0
  428. package/test/concepts/call-interface/__snapshots__/toJS.spec.ts.snap +2 -2
  429. package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +3 -3
  430. package/test/concepts/match/__snapshots__/toJS.spec.ts.snap +1 -1
  431. package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +1 -1
  432. package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +1 -1
  433. package/test/concepts/numeric-literal/__snapshots__/toJS.spec.ts.snap +1 -1
  434. package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +3 -3
  435. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +5 -22
  436. package/.nyc_output/processinfo/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +0 -1
  437. package/out/automate/engine/index.d.ts +0 -4
  438. package/out/automate/engine/index.js +0 -443
  439. package/out/automate/engine/index.js.map +0 -1
  440. package/out/automate/engine/operators.d.ts +0 -24
  441. package/out/automate/engine/operators.js +0 -252
  442. package/out/automate/engine/operators.js.map +0 -1
  443. package/out/automate/engine/uniqueName.d.ts +0 -12
  444. package/out/automate/engine/uniqueName.js +0 -112
  445. package/out/automate/engine/uniqueName.js.map +0 -1
  446. package/out/automate/engine/utils.d.ts +0 -25
  447. package/out/automate/engine/utils.js +0 -444
  448. package/out/automate/engine/utils.js.map +0 -1
  449. package/out/automate/engine/viewCache.d.ts +0 -19
  450. package/out/automate/engine/viewCache.js +0 -45
  451. package/out/automate/engine/viewCache.js.map +0 -1
  452. package/out/automate/template/myProcess.d.ts +0 -10
  453. package/out/automate/template/myProcess.js +0 -11498
  454. package/out/automate/template/myProcess.js.map +0 -1
  455. package/out/automate/upgrader/2.12.d.ts +0 -7
  456. package/out/automate/upgrader/2.12.js +0 -63
  457. package/out/automate/upgrader/2.12.js.map +0 -1
  458. package/out/automate/upgrader/2.14-components.d.ts +0 -1115
  459. package/out/automate/upgrader/2.14-components.js +0 -1087
  460. package/out/automate/upgrader/2.14-components.js.map +0 -1
  461. package/out/automate/upgrader/2.14.d.ts +0 -10
  462. package/out/automate/upgrader/2.14.js +0 -236
  463. package/out/automate/upgrader/2.14.js.map +0 -1
  464. package/out/automate/upgrader/2.14.old.d.ts +0 -1
  465. package/out/automate/upgrader/2.14.old.js +0 -125
  466. package/out/automate/upgrader/2.14.old.js.map +0 -1
  467. package/out/automate/upgrader/2.16.d.ts +0 -10
  468. package/out/automate/upgrader/2.16.js +0 -75
  469. package/out/automate/upgrader/2.16.js.map +0 -1
  470. package/out/automate/upgrader/2.17.d.ts +0 -21
  471. package/out/automate/upgrader/2.17.js +0 -557
  472. package/out/automate/upgrader/2.17.js.map +0 -1
  473. package/out/automate/upgrader/2.18.d.ts +0 -10
  474. package/out/automate/upgrader/2.18.js +0 -107
  475. package/out/automate/upgrader/2.18.js.map +0 -1
  476. package/out/automate/upgrader/2.20.d.ts +0 -17
  477. package/out/automate/upgrader/2.20.js +0 -68
  478. package/out/automate/upgrader/2.20.js.map +0 -1
  479. package/out/bak/translator.d.ts +0 -1
  480. package/out/bak/translator.js +0 -167
  481. package/out/bak/translator.js.map +0 -1
  482. package/out/breakpoint/generator/AfterStartNode.d.ts +0 -7
  483. package/out/breakpoint/generator/AfterStartNode.js +0 -30
  484. package/out/breakpoint/generator/AfterStartNode.js.map +0 -1
  485. package/out/breakpoint/generator/BeforeEndNode.d.ts +0 -7
  486. package/out/breakpoint/generator/BeforeEndNode.js +0 -28
  487. package/out/breakpoint/generator/BeforeEndNode.js.map +0 -1
  488. package/out/breakpoint/generator/BreakpointNode.d.ts +0 -15
  489. package/out/breakpoint/generator/BreakpointNode.js +0 -284
  490. package/out/breakpoint/generator/BreakpointNode.js.map +0 -1
  491. package/out/breakpoint/generator/CallbackNode.d.ts +0 -4
  492. package/out/breakpoint/generator/CallbackNode.js +0 -22
  493. package/out/breakpoint/generator/CallbackNode.js.map +0 -1
  494. package/out/breakpoint/generator/FragmentNode.d.ts +0 -4
  495. package/out/breakpoint/generator/FragmentNode.js +0 -18
  496. package/out/breakpoint/generator/FragmentNode.js.map +0 -1
  497. package/out/breakpoint/generator/index.d.ts +0 -4
  498. package/out/breakpoint/generator/index.js +0 -119
  499. package/out/breakpoint/generator/index.js.map +0 -1
  500. package/out/breakpoint/index.d.ts +0 -3
  501. package/out/breakpoint/index.js +0 -20
  502. package/out/breakpoint/index.js.map +0 -1
  503. package/out/breakpoint/shared/constants.d.ts +0 -37
  504. package/out/breakpoint/shared/constants.js +0 -106
  505. package/out/breakpoint/shared/constants.js.map +0 -1
  506. package/out/breakpoint/shared/index.d.ts +0 -3
  507. package/out/breakpoint/shared/index.js +0 -33
  508. package/out/breakpoint/shared/index.js.map +0 -1
  509. package/out/breakpoint/shared/operations.d.ts +0 -10
  510. package/out/breakpoint/shared/operations.js +0 -25
  511. package/out/breakpoint/shared/operations.js.map +0 -1
  512. package/out/breakpoint/shared/socket.d.ts +0 -48
  513. package/out/breakpoint/shared/socket.js +0 -257
  514. package/out/breakpoint/shared/socket.js.map +0 -1
  515. package/out/breakpoint/shared/utils.d.ts +0 -27
  516. package/out/breakpoint/shared/utils.js +0 -229
  517. package/out/breakpoint/shared/utils.js.map +0 -1
  518. package/out/breakpoint/store/core.d.ts +0 -80
  519. package/out/breakpoint/store/core.js +0 -416
  520. package/out/breakpoint/store/core.js.map +0 -1
  521. package/out/breakpoint/store/dock.d.ts +0 -1
  522. package/out/breakpoint/store/dock.js +0 -160
  523. package/out/breakpoint/store/dock.js.map +0 -1
  524. package/out/breakpoint/store/index.d.ts +0 -2
  525. package/out/breakpoint/store/index.js +0 -19
  526. package/out/breakpoint/store/index.js.map +0 -1
  527. package/out/common/BaseNode.d.ts +0 -330
  528. package/out/common/BaseNode.js +0 -1260
  529. package/out/common/BaseNode.js.map +0 -1
  530. package/out/common/Command.d.ts +0 -21
  531. package/out/common/Command.js +0 -79
  532. package/out/common/Command.js.map +0 -1
  533. package/out/common/ComponentAPI.d.ts +0 -110
  534. package/out/common/ComponentAPI.js +0 -3
  535. package/out/common/ComponentAPI.js.map +0 -1
  536. package/out/common/EventEmitter.d.ts +0 -59
  537. package/out/common/EventEmitter.js +0 -69
  538. package/out/common/EventEmitter.js.map +0 -1
  539. package/out/common/Messager.d.ts +0 -91
  540. package/out/common/Messager.js +0 -207
  541. package/out/common/Messager.js.map +0 -1
  542. package/out/common/asyncFuncMap.d.ts +0 -2
  543. package/out/common/asyncFuncMap.js +0 -16
  544. package/out/common/asyncFuncMap.js.map +0 -1
  545. package/out/common/index.d.ts +0 -3
  546. package/out/common/index.js +0 -20
  547. package/out/common/index.js.map +0 -1
  548. package/out/concepts/Abort__.d.ts +0 -26
  549. package/out/concepts/Abort__.js +0 -80
  550. package/out/concepts/Abort__.js.map +0 -1
  551. package/out/concepts/Anchor__.d.ts +0 -46
  552. package/out/concepts/Anchor__.js +0 -198
  553. package/out/concepts/Anchor__.js.map +0 -1
  554. package/out/concepts/AnonymousFunction__.d.ts +0 -173
  555. package/out/concepts/AnonymousFunction__.js +0 -519
  556. package/out/concepts/AnonymousFunction__.js.map +0 -1
  557. package/out/concepts/App__.d.ts +0 -1687
  558. package/out/concepts/App__.js +0 -2529
  559. package/out/concepts/App__.js.map +0 -1
  560. package/out/concepts/Argument__.d.ts +0 -67
  561. package/out/concepts/Argument__.js +0 -302
  562. package/out/concepts/Argument__.js.map +0 -1
  563. package/out/concepts/Assignee__.d.ts +0 -289
  564. package/out/concepts/Assignee__.js +0 -425
  565. package/out/concepts/Assignee__.js.map +0 -1
  566. package/out/concepts/AssignmentLine__.d.ts +0 -42
  567. package/out/concepts/AssignmentLine__.js +0 -111
  568. package/out/concepts/AssignmentLine__.js.map +0 -1
  569. package/out/concepts/Assignment__.d.ts +0 -75
  570. package/out/concepts/Assignment__.js +0 -310
  571. package/out/concepts/Assignment__.js.map +0 -1
  572. package/out/concepts/Attribute__.d.ts +0 -98
  573. package/out/concepts/Attribute__.js +0 -206
  574. package/out/concepts/Attribute__.js.map +0 -1
  575. package/out/concepts/AuthInterface__.d.ts +0 -36
  576. package/out/concepts/AuthInterface__.js +0 -83
  577. package/out/concepts/AuthInterface__.js.map +0 -1
  578. package/out/concepts/AuthLogicForCallInterface__.d.ts +0 -139
  579. package/out/concepts/AuthLogicForCallInterface__.js +0 -523
  580. package/out/concepts/AuthLogicForCallInterface__.js.map +0 -1
  581. package/out/concepts/AuthLogic__.d.ts +0 -67
  582. package/out/concepts/AuthLogic__.js +0 -219
  583. package/out/concepts/AuthLogic__.js.map +0 -1
  584. package/out/concepts/BackendVariable__.d.ts +0 -138
  585. package/out/concepts/BackendVariable__.js +0 -424
  586. package/out/concepts/BackendVariable__.js.map +0 -1
  587. package/out/concepts/Backend__.d.ts +0 -135
  588. package/out/concepts/Backend__.js +0 -275
  589. package/out/concepts/Backend__.js.map +0 -1
  590. package/out/concepts/BatchAssignment__.d.ts +0 -253
  591. package/out/concepts/BatchAssignment__.js +0 -856
  592. package/out/concepts/BatchAssignment__.js.map +0 -1
  593. package/out/concepts/BinaryExpression__.d.ts +0 -72
  594. package/out/concepts/BinaryExpression__.js +0 -386
  595. package/out/concepts/BinaryExpression__.js.map +0 -1
  596. package/out/concepts/BindAttribute__.d.ts +0 -324
  597. package/out/concepts/BindAttribute__.js +0 -1046
  598. package/out/concepts/BindAttribute__.js.map +0 -1
  599. package/out/concepts/BindDirective__.d.ts +0 -163
  600. package/out/concepts/BindDirective__.js +0 -540
  601. package/out/concepts/BindDirective__.js.map +0 -1
  602. package/out/concepts/BindEvent__.d.ts +0 -253
  603. package/out/concepts/BindEvent__.js +0 -922
  604. package/out/concepts/BindEvent__.js.map +0 -1
  605. package/out/concepts/BindStyle__.d.ts +0 -140
  606. package/out/concepts/BindStyle__.js +0 -433
  607. package/out/concepts/BindStyle__.js.map +0 -1
  608. package/out/concepts/BooleanLiteral__.d.ts +0 -36
  609. package/out/concepts/BooleanLiteral__.js +0 -106
  610. package/out/concepts/BooleanLiteral__.js.map +0 -1
  611. package/out/concepts/CallAuthInterface__.d.ts +0 -126
  612. package/out/concepts/CallAuthInterface__.js +0 -405
  613. package/out/concepts/CallAuthInterface__.js.map +0 -1
  614. package/out/concepts/CallConnector__.d.ts +0 -47
  615. package/out/concepts/CallConnector__.js +0 -264
  616. package/out/concepts/CallConnector__.js.map +0 -1
  617. package/out/concepts/CallFunction__.d.ts +0 -159
  618. package/out/concepts/CallFunction__.js +0 -549
  619. package/out/concepts/CallFunction__.js.map +0 -1
  620. package/out/concepts/CallInterface__.d.ts +0 -130
  621. package/out/concepts/CallInterface__.js +0 -790
  622. package/out/concepts/CallInterface__.js.map +0 -1
  623. package/out/concepts/CallLogic__.d.ts +0 -231
  624. package/out/concepts/CallLogic__.js +0 -1366
  625. package/out/concepts/CallLogic__.js.map +0 -1
  626. package/out/concepts/CallQueryComponent__.d.ts +0 -433
  627. package/out/concepts/CallQueryComponent__.js +0 -1283
  628. package/out/concepts/CallQueryComponent__.js.map +0 -1
  629. package/out/concepts/Comment__.d.ts +0 -33
  630. package/out/concepts/Comment__.js +0 -102
  631. package/out/concepts/Comment__.js.map +0 -1
  632. package/out/concepts/CompletionProperty__.d.ts +0 -105
  633. package/out/concepts/CompletionProperty__.js +0 -269
  634. package/out/concepts/CompletionProperty__.js.map +0 -1
  635. package/out/concepts/ConfigGroup__.d.ts +0 -125
  636. package/out/concepts/ConfigGroup__.js +0 -254
  637. package/out/concepts/ConfigGroup__.js.map +0 -1
  638. package/out/concepts/ConfigPropertyValue__.d.ts +0 -45
  639. package/out/concepts/ConfigPropertyValue__.js +0 -107
  640. package/out/concepts/ConfigPropertyValue__.js.map +0 -1
  641. package/out/concepts/ConfigProperty__.d.ts +0 -154
  642. package/out/concepts/ConfigProperty__.js +0 -325
  643. package/out/concepts/ConfigProperty__.js.map +0 -1
  644. package/out/concepts/Configuration__.d.ts +0 -124
  645. package/out/concepts/Configuration__.js +0 -227
  646. package/out/concepts/Configuration__.js.map +0 -1
  647. package/out/concepts/Connection__.d.ts +0 -166
  648. package/out/concepts/Connection__.js +0 -335
  649. package/out/concepts/Connection__.js.map +0 -1
  650. package/out/concepts/ConnectorTrigger__.d.ts +0 -79
  651. package/out/concepts/ConnectorTrigger__.js +0 -157
  652. package/out/concepts/ConnectorTrigger__.js.map +0 -1
  653. package/out/concepts/Connector__.d.ts +0 -570
  654. package/out/concepts/Connector__.js +0 -856
  655. package/out/concepts/Connector__.js.map +0 -1
  656. package/out/concepts/Constant__.d.ts +0 -111
  657. package/out/concepts/Constant__.js +0 -255
  658. package/out/concepts/Constant__.js.map +0 -1
  659. package/out/concepts/DataSource__.d.ts +0 -169
  660. package/out/concepts/DataSource__.js +0 -465
  661. package/out/concepts/DataSource__.js.map +0 -1
  662. package/out/concepts/DatabaseTypeAnnotation__.d.ts +0 -32
  663. package/out/concepts/DatabaseTypeAnnotation__.js +0 -79
  664. package/out/concepts/DatabaseTypeAnnotation__.js.map +0 -1
  665. package/out/concepts/Destination__.d.ts +0 -158
  666. package/out/concepts/Destination__.js +0 -796
  667. package/out/concepts/Destination__.js.map +0 -1
  668. package/out/concepts/End__.d.ts +0 -25
  669. package/out/concepts/End__.js +0 -114
  670. package/out/concepts/End__.js.map +0 -1
  671. package/out/concepts/EntityIndex__.d.ts +0 -96
  672. package/out/concepts/EntityIndex__.js +0 -221
  673. package/out/concepts/EntityIndex__.js.map +0 -1
  674. package/out/concepts/EntityProperty__.d.ts +0 -275
  675. package/out/concepts/EntityProperty__.js +0 -819
  676. package/out/concepts/EntityProperty__.js.map +0 -1
  677. package/out/concepts/Entity__.d.ts +0 -340
  678. package/out/concepts/Entity__.js +0 -738
  679. package/out/concepts/Entity__.js.map +0 -1
  680. package/out/concepts/EnumItem__.d.ts +0 -65
  681. package/out/concepts/EnumItem__.js +0 -152
  682. package/out/concepts/EnumItem__.js.map +0 -1
  683. package/out/concepts/Enum__.d.ts +0 -139
  684. package/out/concepts/Enum__.js +0 -334
  685. package/out/concepts/Enum__.js.map +0 -1
  686. package/out/concepts/Event__.d.ts +0 -144
  687. package/out/concepts/Event__.js +0 -249
  688. package/out/concepts/Event__.js.map +0 -1
  689. package/out/concepts/ExternalDestination__.d.ts +0 -76
  690. package/out/concepts/ExternalDestination__.js +0 -286
  691. package/out/concepts/ExternalDestination__.js.map +0 -1
  692. package/out/concepts/ForEachStatement__.d.ts +0 -171
  693. package/out/concepts/ForEachStatement__.js +0 -508
  694. package/out/concepts/ForEachStatement__.js.map +0 -1
  695. package/out/concepts/FrontendLibrary__.d.ts +0 -214
  696. package/out/concepts/FrontendLibrary__.js +0 -353
  697. package/out/concepts/FrontendLibrary__.js.map +0 -1
  698. package/out/concepts/FrontendVariable__.d.ts +0 -22
  699. package/out/concepts/FrontendVariable__.js +0 -65
  700. package/out/concepts/FrontendVariable__.js.map +0 -1
  701. package/out/concepts/Frontend__.d.ts +0 -478
  702. package/out/concepts/Frontend__.js +0 -845
  703. package/out/concepts/Frontend__.js.map +0 -1
  704. package/out/concepts/Function__.d.ts +0 -418
  705. package/out/concepts/Function__.js +0 -757
  706. package/out/concepts/Function__.js.map +0 -1
  707. package/out/concepts/Identifier__.d.ts +0 -52
  708. package/out/concepts/Identifier__.js +0 -302
  709. package/out/concepts/Identifier__.js.map +0 -1
  710. package/out/concepts/IfStatement__.d.ts +0 -159
  711. package/out/concepts/IfStatement__.js +0 -333
  712. package/out/concepts/IfStatement__.js.map +0 -1
  713. package/out/concepts/Integration__.d.ts +0 -144
  714. package/out/concepts/Integration__.js +0 -282
  715. package/out/concepts/Integration__.js.map +0 -1
  716. package/out/concepts/InterfaceParam__.d.ts +0 -136
  717. package/out/concepts/InterfaceParam__.js +0 -296
  718. package/out/concepts/InterfaceParam__.js.map +0 -1
  719. package/out/concepts/Interface__.d.ts +0 -331
  720. package/out/concepts/Interface__.js +0 -881
  721. package/out/concepts/Interface__.js.map +0 -1
  722. package/out/concepts/JSBlock__.d.ts +0 -35
  723. package/out/concepts/JSBlock__.js +0 -112
  724. package/out/concepts/JSBlock__.js.map +0 -1
  725. package/out/concepts/JavaLogic__.d.ts +0 -43
  726. package/out/concepts/JavaLogic__.js +0 -124
  727. package/out/concepts/JavaLogic__.js.map +0 -1
  728. package/out/concepts/LogicItem__.d.ts +0 -152
  729. package/out/concepts/LogicItem__.js +0 -286
  730. package/out/concepts/LogicItem__.js.map +0 -1
  731. package/out/concepts/Logic__.d.ts +0 -644
  732. package/out/concepts/Logic__.js +0 -1819
  733. package/out/concepts/Logic__.js.map +0 -1
  734. package/out/concepts/MatchCase__.d.ts +0 -259
  735. package/out/concepts/MatchCase__.js +0 -683
  736. package/out/concepts/MatchCase__.js.map +0 -1
  737. package/out/concepts/Match__.d.ts +0 -125
  738. package/out/concepts/Match__.js +0 -683
  739. package/out/concepts/Match__.js.map +0 -1
  740. package/out/concepts/MemberExpression__.d.ts +0 -75
  741. package/out/concepts/MemberExpression__.js +0 -484
  742. package/out/concepts/MemberExpression__.js.map +0 -1
  743. package/out/concepts/MicroApp__.d.ts +0 -52
  744. package/out/concepts/MicroApp__.js +0 -119
  745. package/out/concepts/MicroApp__.js.map +0 -1
  746. package/out/concepts/Module__.d.ts +0 -1236
  747. package/out/concepts/Module__.js +0 -1692
  748. package/out/concepts/Module__.js.map +0 -1
  749. package/out/concepts/MsgTriggerEvent__.d.ts +0 -138
  750. package/out/concepts/MsgTriggerEvent__.js +0 -227
  751. package/out/concepts/MsgTriggerEvent__.js.map +0 -1
  752. package/out/concepts/MsgTriggerLauncher__.d.ts +0 -127
  753. package/out/concepts/MsgTriggerLauncher__.js +0 -222
  754. package/out/concepts/MsgTriggerLauncher__.js.map +0 -1
  755. package/out/concepts/Namespace__.d.ts +0 -1070
  756. package/out/concepts/Namespace__.js +0 -1394
  757. package/out/concepts/Namespace__.js.map +0 -1
  758. package/out/concepts/NewComposite__.d.ts +0 -349
  759. package/out/concepts/NewComposite__.js +0 -1221
  760. package/out/concepts/NewComposite__.js.map +0 -1
  761. package/out/concepts/NewList__.d.ts +0 -136
  762. package/out/concepts/NewList__.js +0 -423
  763. package/out/concepts/NewList__.js.map +0 -1
  764. package/out/concepts/NewMap__.d.ts +0 -226
  765. package/out/concepts/NewMap__.js +0 -550
  766. package/out/concepts/NewMap__.js.map +0 -1
  767. package/out/concepts/New__.d.ts +0 -21
  768. package/out/concepts/New__.js +0 -70
  769. package/out/concepts/New__.js.map +0 -1
  770. package/out/concepts/NullLiteral__.d.ts +0 -27
  771. package/out/concepts/NullLiteral__.js +0 -81
  772. package/out/concepts/NullLiteral__.js.map +0 -1
  773. package/out/concepts/NumericLiteral__.d.ts +0 -57
  774. package/out/concepts/NumericLiteral__.js +0 -180
  775. package/out/concepts/NumericLiteral__.js.map +0 -1
  776. package/out/concepts/OqlQueryComponent__.d.ts +0 -74
  777. package/out/concepts/OqlQueryComponent__.js +0 -335
  778. package/out/concepts/OqlQueryComponent__.js.map +0 -1
  779. package/out/concepts/OverriddenLogic__.d.ts +0 -635
  780. package/out/concepts/OverriddenLogic__.js +0 -1634
  781. package/out/concepts/OverriddenLogic__.js.map +0 -1
  782. package/out/concepts/Param__.d.ts +0 -173
  783. package/out/concepts/Param__.js +0 -489
  784. package/out/concepts/Param__.js.map +0 -1
  785. package/out/concepts/Point__.d.ts +0 -32
  786. package/out/concepts/Point__.js +0 -79
  787. package/out/concepts/Point__.js.map +0 -1
  788. package/out/concepts/ProcessComponent__.d.ts +0 -220
  789. package/out/concepts/ProcessComponent__.js +0 -339
  790. package/out/concepts/ProcessComponent__.js.map +0 -1
  791. package/out/concepts/ProcessElement__.d.ts +0 -647
  792. package/out/concepts/ProcessElement__.js +0 -1227
  793. package/out/concepts/ProcessElement__.js.map +0 -1
  794. package/out/concepts/ProcessOutcome__.d.ts +0 -32
  795. package/out/concepts/ProcessOutcome__.js +0 -90
  796. package/out/concepts/ProcessOutcome__.js.map +0 -1
  797. package/out/concepts/ProcessOutcomes__.d.ts +0 -32
  798. package/out/concepts/ProcessOutcomes__.js +0 -89
  799. package/out/concepts/ProcessOutcomes__.js.map +0 -1
  800. package/out/concepts/Process__.d.ts +0 -614
  801. package/out/concepts/Process__.js +0 -1037
  802. package/out/concepts/Process__.js.map +0 -1
  803. package/out/concepts/QueryAggregateExpression__.d.ts +0 -52
  804. package/out/concepts/QueryAggregateExpression__.js +0 -149
  805. package/out/concepts/QueryAggregateExpression__.js.map +0 -1
  806. package/out/concepts/QueryFieldExpression__.d.ts +0 -54
  807. package/out/concepts/QueryFieldExpression__.js +0 -160
  808. package/out/concepts/QueryFieldExpression__.js.map +0 -1
  809. package/out/concepts/QueryFromExpression__.d.ts +0 -99
  810. package/out/concepts/QueryFromExpression__.js +0 -208
  811. package/out/concepts/QueryFromExpression__.js.map +0 -1
  812. package/out/concepts/QueryGroupByExpression__.d.ts +0 -47
  813. package/out/concepts/QueryGroupByExpression__.js +0 -140
  814. package/out/concepts/QueryGroupByExpression__.js.map +0 -1
  815. package/out/concepts/QueryJoinExpression__.d.ts +0 -186
  816. package/out/concepts/QueryJoinExpression__.js +0 -331
  817. package/out/concepts/QueryJoinExpression__.js.map +0 -1
  818. package/out/concepts/QueryLimitExpression__.d.ts +0 -58
  819. package/out/concepts/QueryLimitExpression__.js +0 -160
  820. package/out/concepts/QueryLimitExpression__.js.map +0 -1
  821. package/out/concepts/QueryOrderByExpression__.d.ts +0 -69
  822. package/out/concepts/QueryOrderByExpression__.js +0 -173
  823. package/out/concepts/QueryOrderByExpression__.js.map +0 -1
  824. package/out/concepts/QuerySelectExpression__.d.ts +0 -204
  825. package/out/concepts/QuerySelectExpression__.js +0 -299
  826. package/out/concepts/QuerySelectExpression__.js.map +0 -1
  827. package/out/concepts/Rect__.d.ts +0 -40
  828. package/out/concepts/Rect__.js +0 -95
  829. package/out/concepts/Rect__.js.map +0 -1
  830. package/out/concepts/Return__.d.ts +0 -135
  831. package/out/concepts/Return__.js +0 -370
  832. package/out/concepts/Return__.js.map +0 -1
  833. package/out/concepts/Role__.d.ts +0 -63
  834. package/out/concepts/Role__.js +0 -169
  835. package/out/concepts/Role__.js.map +0 -1
  836. package/out/concepts/SelectMembers__.d.ts +0 -143
  837. package/out/concepts/SelectMembers__.js +0 -293
  838. package/out/concepts/SelectMembers__.js.map +0 -1
  839. package/out/concepts/Slot__.d.ts +0 -75
  840. package/out/concepts/Slot__.js +0 -165
  841. package/out/concepts/Slot__.js.map +0 -1
  842. package/out/concepts/SqlQueryComponent__.d.ts +0 -72
  843. package/out/concepts/SqlQueryComponent__.js +0 -281
  844. package/out/concepts/SqlQueryComponent__.js.map +0 -1
  845. package/out/concepts/Start__.d.ts +0 -25
  846. package/out/concepts/Start__.js +0 -73
  847. package/out/concepts/Start__.js.map +0 -1
  848. package/out/concepts/StringInterpolation__.d.ts +0 -116
  849. package/out/concepts/StringInterpolation__.js +0 -263
  850. package/out/concepts/StringInterpolation__.js.map +0 -1
  851. package/out/concepts/StringLiteral__.d.ts +0 -39
  852. package/out/concepts/StringLiteral__.js +0 -138
  853. package/out/concepts/StringLiteral__.js.map +0 -1
  854. package/out/concepts/StructureProperty__.d.ts +0 -136
  855. package/out/concepts/StructureProperty__.js +0 -320
  856. package/out/concepts/StructureProperty__.js.map +0 -1
  857. package/out/concepts/Structure__.d.ts +0 -248
  858. package/out/concepts/Structure__.js +0 -475
  859. package/out/concepts/Structure__.js.map +0 -1
  860. package/out/concepts/SwitchCase__.d.ts +0 -95
  861. package/out/concepts/SwitchCase__.js +0 -273
  862. package/out/concepts/SwitchCase__.js.map +0 -1
  863. package/out/concepts/SwitchStatement__.d.ts +0 -85
  864. package/out/concepts/SwitchStatement__.js +0 -200
  865. package/out/concepts/SwitchStatement__.js.map +0 -1
  866. package/out/concepts/Theme__.d.ts +0 -38
  867. package/out/concepts/Theme__.js +0 -88
  868. package/out/concepts/Theme__.js.map +0 -1
  869. package/out/concepts/Transactional__.d.ts +0 -88
  870. package/out/concepts/Transactional__.js +0 -168
  871. package/out/concepts/Transactional__.js.map +0 -1
  872. package/out/concepts/TriggerEvent__.d.ts +0 -121
  873. package/out/concepts/TriggerEvent__.js +0 -224
  874. package/out/concepts/TriggerEvent__.js.map +0 -1
  875. package/out/concepts/TriggerLauncher__.d.ts +0 -82
  876. package/out/concepts/TriggerLauncher__.js +0 -220
  877. package/out/concepts/TriggerLauncher__.js.map +0 -1
  878. package/out/concepts/TypeAnnotation__.d.ts +0 -299
  879. package/out/concepts/TypeAnnotation__.js +0 -995
  880. package/out/concepts/TypeAnnotation__.js.map +0 -1
  881. package/out/concepts/TypeParam__.d.ts +0 -26
  882. package/out/concepts/TypeParam__.js +0 -79
  883. package/out/concepts/TypeParam__.js.map +0 -1
  884. package/out/concepts/UnaryExpression__.d.ts +0 -50
  885. package/out/concepts/UnaryExpression__.js +0 -186
  886. package/out/concepts/UnaryExpression__.js.map +0 -1
  887. package/out/concepts/Unparsed__.d.ts +0 -33
  888. package/out/concepts/Unparsed__.js +0 -100
  889. package/out/concepts/Unparsed__.js.map +0 -1
  890. package/out/concepts/UseComponent__.d.ts +0 -32
  891. package/out/concepts/UseComponent__.js +0 -79
  892. package/out/concepts/UseComponent__.js.map +0 -1
  893. package/out/concepts/ValidationRule__.d.ts +0 -148
  894. package/out/concepts/ValidationRule__.js +0 -489
  895. package/out/concepts/ValidationRule__.js.map +0 -1
  896. package/out/concepts/Variable__.d.ts +0 -155
  897. package/out/concepts/Variable__.js +0 -420
  898. package/out/concepts/Variable__.js.map +0 -1
  899. package/out/concepts/ViewBlock__.d.ts +0 -36
  900. package/out/concepts/ViewBlock__.js +0 -87
  901. package/out/concepts/ViewBlock__.js.map +0 -1
  902. package/out/concepts/ViewComponent__.d.ts +0 -566
  903. package/out/concepts/ViewComponent__.js +0 -762
  904. package/out/concepts/ViewComponent__.js.map +0 -1
  905. package/out/concepts/ViewElement__.d.ts +0 -628
  906. package/out/concepts/ViewElement__.js +0 -2241
  907. package/out/concepts/ViewElement__.js.map +0 -1
  908. package/out/concepts/View__.d.ts +0 -722
  909. package/out/concepts/View__.js +0 -2114
  910. package/out/concepts/View__.js.map +0 -1
  911. package/out/concepts/WhileStatement__.d.ts +0 -98
  912. package/out/concepts/WhileStatement__.js +0 -235
  913. package/out/concepts/WhileStatement__.js.map +0 -1
  914. package/out/concepts/basics/stdlib/index.d.ts +0 -4
  915. package/out/concepts/basics/stdlib/index.js +0 -45
  916. package/out/concepts/basics/stdlib/index.js.map +0 -1
  917. package/out/concepts/basics/stdlib/nasl.auth.d.ts +0 -7
  918. package/out/concepts/basics/stdlib/nasl.auth.js +0 -164
  919. package/out/concepts/basics/stdlib/nasl.auth.js.map +0 -1
  920. package/out/concepts/basics/stdlib/nasl.browser.d.ts +0 -3
  921. package/out/concepts/basics/stdlib/nasl.browser.js +0 -149
  922. package/out/concepts/basics/stdlib/nasl.browser.js.map +0 -1
  923. package/out/concepts/basics/stdlib/nasl.collection.d.ts +0 -7
  924. package/out/concepts/basics/stdlib/nasl.collection.js +0 -52
  925. package/out/concepts/basics/stdlib/nasl.collection.js.map +0 -1
  926. package/out/concepts/basics/stdlib/nasl.configuration.d.ts +0 -3
  927. package/out/concepts/basics/stdlib/nasl.configuration.js +0 -33
  928. package/out/concepts/basics/stdlib/nasl.configuration.js.map +0 -1
  929. package/out/concepts/basics/stdlib/nasl.core.d.ts +0 -5
  930. package/out/concepts/basics/stdlib/nasl.core.js +0 -49
  931. package/out/concepts/basics/stdlib/nasl.core.js.map +0 -1
  932. package/out/concepts/basics/stdlib/nasl.event.d.ts +0 -3
  933. package/out/concepts/basics/stdlib/nasl.event.js +0 -25
  934. package/out/concepts/basics/stdlib/nasl.event.js.map +0 -1
  935. package/out/concepts/basics/stdlib/nasl.http.d.ts +0 -7
  936. package/out/concepts/basics/stdlib/nasl.http.js +0 -169
  937. package/out/concepts/basics/stdlib/nasl.http.js.map +0 -1
  938. package/out/concepts/basics/stdlib/nasl.interface.d.ts +0 -7
  939. package/out/concepts/basics/stdlib/nasl.interface.js +0 -43
  940. package/out/concepts/basics/stdlib/nasl.interface.js.map +0 -1
  941. package/out/concepts/basics/stdlib/nasl.io.d.ts +0 -3
  942. package/out/concepts/basics/stdlib/nasl.io.js +0 -52
  943. package/out/concepts/basics/stdlib/nasl.io.js.map +0 -1
  944. package/out/concepts/basics/stdlib/nasl.logging.d.ts +0 -3
  945. package/out/concepts/basics/stdlib/nasl.logging.js +0 -56
  946. package/out/concepts/basics/stdlib/nasl.logging.js.map +0 -1
  947. package/out/concepts/basics/stdlib/nasl.process.d.ts +0 -7
  948. package/out/concepts/basics/stdlib/nasl.process.js +0 -638
  949. package/out/concepts/basics/stdlib/nasl.process.js.map +0 -1
  950. package/out/concepts/basics/stdlib/nasl.ui.d.ts +0 -7
  951. package/out/concepts/basics/stdlib/nasl.ui.js +0 -1063
  952. package/out/concepts/basics/stdlib/nasl.ui.js.map +0 -1
  953. package/out/concepts/basics/stdlib/nasl.util.d.ts +0 -5
  954. package/out/concepts/basics/stdlib/nasl.util.js +0 -2255
  955. package/out/concepts/basics/stdlib/nasl.util.js.map +0 -1
  956. package/out/concepts/basics/stdlib/nasl.validation.d.ts +0 -3
  957. package/out/concepts/basics/stdlib/nasl.validation.js +0 -565
  958. package/out/concepts/basics/stdlib/nasl.validation.js.map +0 -1
  959. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -5
  960. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +0 -26
  961. package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +0 -1
  962. package/out/concepts/basics/stdlib/timeZone.d.ts +0 -5
  963. package/out/concepts/basics/stdlib/timeZone.js +0 -196
  964. package/out/concepts/basics/stdlib/timeZone.js.map +0 -1
  965. package/out/concepts/basics/types/coreTypeList.d.ts +0 -2
  966. package/out/concepts/basics/types/coreTypeList.js +0 -15
  967. package/out/concepts/basics/types/coreTypeList.js.map +0 -1
  968. package/out/concepts/basics/types/index.d.ts +0 -16
  969. package/out/concepts/basics/types/index.js +0 -35
  970. package/out/concepts/basics/types/index.js.map +0 -1
  971. package/out/concepts/index.d.ts +0 -6
  972. package/out/concepts/index.js +0 -25
  973. package/out/concepts/index.js.map +0 -1
  974. package/out/concepts/index__.d.ts +0 -122
  975. package/out/concepts/index__.js +0 -139
  976. package/out/concepts/index__.js.map +0 -1
  977. package/out/concepts/types__.d.ts +0 -124
  978. package/out/concepts/types__.js +0 -3
  979. package/out/concepts/types__.js.map +0 -1
  980. package/out/config.d.ts +0 -43
  981. package/out/config.js +0 -72
  982. package/out/config.js.map +0 -1
  983. package/out/decorators/index.d.ts +0 -57
  984. package/out/decorators/index.js +0 -170
  985. package/out/decorators/index.js.map +0 -1
  986. package/out/decorators/promise.d.ts +0 -7
  987. package/out/decorators/promise.js +0 -28
  988. package/out/decorators/promise.js.map +0 -1
  989. package/out/enums/KEYWORDS.d.ts +0 -6
  990. package/out/enums/KEYWORDS.js +0 -1244
  991. package/out/enums/KEYWORDS.js.map +0 -1
  992. package/out/enums/LEVEL_NAME_MAP.d.ts +0 -26
  993. package/out/enums/LEVEL_NAME_MAP.js +0 -30
  994. package/out/enums/LEVEL_NAME_MAP.js.map +0 -1
  995. package/out/eventBus.d.ts +0 -3
  996. package/out/eventBus.js +0 -7
  997. package/out/eventBus.js.map +0 -1
  998. package/out/generator/compileComponent.d.ts +0 -11
  999. package/out/generator/compileComponent.js +0 -12
  1000. package/out/generator/compileComponent.js.map +0 -1
  1001. package/out/generator/genBundleFiles.d.ts +0 -34
  1002. package/out/generator/genBundleFiles.js +0 -547
  1003. package/out/generator/genBundleFiles.js.map +0 -1
  1004. package/out/generator/genHash.d.ts +0 -7
  1005. package/out/generator/genHash.js +0 -39
  1006. package/out/generator/genHash.js.map +0 -1
  1007. package/out/generator/genMetaData.d.ts +0 -31
  1008. package/out/generator/genMetaData.js +0 -286
  1009. package/out/generator/genMetaData.js.map +0 -1
  1010. package/out/generator/genReleaseBody.d.ts +0 -72
  1011. package/out/generator/genReleaseBody.js +0 -322
  1012. package/out/generator/genReleaseBody.js.map +0 -1
  1013. package/out/generator/icestark.d.ts +0 -2
  1014. package/out/generator/icestark.js +0 -48
  1015. package/out/generator/icestark.js.map +0 -1
  1016. package/out/generator/index.d.ts +0 -7
  1017. package/out/generator/index.js +0 -24
  1018. package/out/generator/index.js.map +0 -1
  1019. package/out/generator/microApp.d.ts +0 -2
  1020. package/out/generator/microApp.js +0 -36
  1021. package/out/generator/microApp.js.map +0 -1
  1022. package/out/generator/permission.d.ts +0 -10
  1023. package/out/generator/permission.js +0 -270
  1024. package/out/generator/permission.js.map +0 -1
  1025. package/out/generator/qiankun.d.ts +0 -2
  1026. package/out/generator/qiankun.js +0 -52
  1027. package/out/generator/qiankun.js.map +0 -1
  1028. package/out/generator/styleReplacer.d.ts +0 -3
  1029. package/out/generator/styleReplacer.js +0 -68
  1030. package/out/generator/styleReplacer.js.map +0 -1
  1031. package/out/index.d.ts +0 -13
  1032. package/out/index.js +0 -63
  1033. package/out/index.js.map +0 -1
  1034. package/out/manager/diagnostic.d.ts +0 -35
  1035. package/out/manager/diagnostic.js +0 -63
  1036. package/out/manager/diagnostic.js.map +0 -1
  1037. package/out/manager/stepRecorder.d.ts +0 -20
  1038. package/out/manager/stepRecorder.js +0 -114
  1039. package/out/manager/stepRecorder.js.map +0 -1
  1040. package/out/natural/componentData.d.ts +0 -31
  1041. package/out/natural/componentData.js +0 -85
  1042. package/out/natural/componentData.js.map +0 -1
  1043. package/out/natural/genNaturalTS.d.ts +0 -3
  1044. package/out/natural/genNaturalTS.js +0 -90
  1045. package/out/natural/genNaturalTS.js.map +0 -1
  1046. package/out/natural/index.d.ts +0 -2
  1047. package/out/natural/index.js +0 -19
  1048. package/out/natural/index.js.map +0 -1
  1049. package/out/natural/naslStdlibMap.d.ts +0 -2
  1050. package/out/natural/naslStdlibMap.js +0 -26
  1051. package/out/natural/naslStdlibMap.js.map +0 -1
  1052. package/out/natural/transformTSCode.d.ts +0 -7
  1053. package/out/natural/transformTSCode.js +0 -900
  1054. package/out/natural/transformTSCode.js.map +0 -1
  1055. package/out/sentry/index.d.ts +0 -34
  1056. package/out/sentry/index.js +0 -148
  1057. package/out/sentry/index.js.map +0 -1
  1058. package/out/server/createUiTs.d.ts +0 -16
  1059. package/out/server/createUiTs.js +0 -296
  1060. package/out/server/createUiTs.js.map +0 -1
  1061. package/out/server/entity2LogicNamespace.d.ts +0 -10
  1062. package/out/server/entity2LogicNamespace.js +0 -382
  1063. package/out/server/entity2LogicNamespace.js.map +0 -1
  1064. package/out/server/event.d.ts +0 -30
  1065. package/out/server/event.js +0 -151
  1066. package/out/server/event.js.map +0 -1
  1067. package/out/server/extendBaseNode.d.ts +0 -1
  1068. package/out/server/extendBaseNode.js +0 -544
  1069. package/out/server/extendBaseNode.js.map +0 -1
  1070. package/out/server/formatTsUtils.d.ts +0 -37
  1071. package/out/server/formatTsUtils.js +0 -852
  1072. package/out/server/formatTsUtils.js.map +0 -1
  1073. package/out/server/getConnector.d.ts +0 -14
  1074. package/out/server/getConnector.js +0 -78
  1075. package/out/server/getConnector.js.map +0 -1
  1076. package/out/server/getExtensionModules.d.ts +0 -3
  1077. package/out/server/getExtensionModules.js +0 -34
  1078. package/out/server/getExtensionModules.js.map +0 -1
  1079. package/out/server/getFunctions.d.ts +0 -3
  1080. package/out/server/getFunctions.js +0 -20
  1081. package/out/server/getFunctions.js.map +0 -1
  1082. package/out/server/getInterfaces.d.ts +0 -2
  1083. package/out/server/getInterfaces.js +0 -48
  1084. package/out/server/getInterfaces.js.map +0 -1
  1085. package/out/server/getLogging.d.ts +0 -1
  1086. package/out/server/getLogging.js +0 -9
  1087. package/out/server/getLogging.js.map +0 -1
  1088. package/out/server/getLogics.d.ts +0 -4
  1089. package/out/server/getLogics.js +0 -381
  1090. package/out/server/getLogics.js.map +0 -1
  1091. package/out/server/getMemberIdentifier.d.ts +0 -17
  1092. package/out/server/getMemberIdentifier.js +0 -482
  1093. package/out/server/getMemberIdentifier.js.map +0 -1
  1094. package/out/server/getProcessComponents.d.ts +0 -2
  1095. package/out/server/getProcessComponents.js +0 -13
  1096. package/out/server/getProcessComponents.js.map +0 -1
  1097. package/out/server/getProcesses.d.ts +0 -33
  1098. package/out/server/getProcesses.js +0 -597
  1099. package/out/server/getProcesses.js.map +0 -1
  1100. package/out/server/getScope.d.ts +0 -13
  1101. package/out/server/getScope.js +0 -61
  1102. package/out/server/getScope.js.map +0 -1
  1103. package/out/server/getValidates.d.ts +0 -3
  1104. package/out/server/getValidates.js +0 -14
  1105. package/out/server/getValidates.js.map +0 -1
  1106. package/out/server/index.d.ts +0 -5
  1107. package/out/server/index.js +0 -42
  1108. package/out/server/index.js.map +0 -1
  1109. package/out/server/naslServer.d.ts +0 -381
  1110. package/out/server/naslServer.js +0 -4591
  1111. package/out/server/naslServer.js.map +0 -1
  1112. package/out/server/naslStdlibMap.d.ts +0 -2
  1113. package/out/server/naslStdlibMap.js +0 -54
  1114. package/out/server/naslStdlibMap.js.map +0 -1
  1115. package/out/server/process2LogicNamespace.d.ts +0 -26
  1116. package/out/server/process2LogicNamespace.js +0 -109
  1117. package/out/server/process2LogicNamespace.js.map +0 -1
  1118. package/out/server/translator.d.ts +0 -26
  1119. package/out/server/translator.js +0 -806
  1120. package/out/server/translator.js.map +0 -1
  1121. package/out/service/creator/add.configs.d.ts +0 -1
  1122. package/out/service/creator/add.configs.js +0 -100
  1123. package/out/service/creator/add.configs.js.map +0 -1
  1124. package/out/service/creator/errHandles.d.ts +0 -18
  1125. package/out/service/creator/errHandles.js +0 -68
  1126. package/out/service/creator/errHandles.js.map +0 -1
  1127. package/out/service/creator/index.d.ts +0 -1
  1128. package/out/service/creator/index.js +0 -87
  1129. package/out/service/creator/index.js.map +0 -1
  1130. package/out/service/datasource/api.d.ts +0 -12
  1131. package/out/service/datasource/api.js +0 -14
  1132. package/out/service/datasource/api.js.map +0 -1
  1133. package/out/service/datasource/index.d.ts +0 -2
  1134. package/out/service/datasource/index.js +0 -10
  1135. package/out/service/datasource/index.js.map +0 -1
  1136. package/out/service/defaultErrorMessage.json +0 -98
  1137. package/out/service/logic/api.d.ts +0 -9
  1138. package/out/service/logic/api.js +0 -11
  1139. package/out/service/logic/api.js.map +0 -1
  1140. package/out/service/logic/checktypeSocket.d.ts +0 -5
  1141. package/out/service/logic/checktypeSocket.js +0 -55
  1142. package/out/service/logic/checktypeSocket.js.map +0 -1
  1143. package/out/service/logic/index.d.ts +0 -2
  1144. package/out/service/logic/index.js +0 -10
  1145. package/out/service/logic/index.js.map +0 -1
  1146. package/out/service/storage/api.d.ts +0 -54
  1147. package/out/service/storage/api.js +0 -42
  1148. package/out/service/storage/api.js.map +0 -1
  1149. package/out/service/storage/index.d.ts +0 -2
  1150. package/out/service/storage/index.js +0 -10
  1151. package/out/service/storage/index.js.map +0 -1
  1152. package/out/service/storage/init.d.ts +0 -82
  1153. package/out/service/storage/init.js +0 -851
  1154. package/out/service/storage/init.js.map +0 -1
  1155. package/out/service/storage/jsoner.d.ts +0 -36
  1156. package/out/service/storage/jsoner.js +0 -129
  1157. package/out/service/storage/jsoner.js.map +0 -1
  1158. package/out/service/storage/map.d.ts +0 -4
  1159. package/out/service/storage/map.js +0 -54
  1160. package/out/service/storage/map.js.map +0 -1
  1161. package/out/service/storage/service.d.ts +0 -25
  1162. package/out/service/storage/service.js +0 -80
  1163. package/out/service/storage/service.js.map +0 -1
  1164. package/out/service/storage/storagePoint.d.ts +0 -17
  1165. package/out/service/storage/storagePoint.js +0 -76
  1166. package/out/service/storage/storagePoint.js.map +0 -1
  1167. package/out/service/video/BaseService.d.ts +0 -7
  1168. package/out/service/video/BaseService.js +0 -61
  1169. package/out/service/video/BaseService.js.map +0 -1
  1170. package/out/service/video/MainCallbackService.d.ts +0 -12
  1171. package/out/service/video/MainCallbackService.js +0 -183
  1172. package/out/service/video/MainCallbackService.js.map +0 -1
  1173. package/out/service/video/VideoTranscribe.d.ts +0 -15
  1174. package/out/service/video/VideoTranscribe.js +0 -96
  1175. package/out/service/video/VideoTranscribe.js.map +0 -1
  1176. package/out/service/video/publishService.d.ts +0 -1
  1177. package/out/service/video/publishService.js +0 -58
  1178. package/out/service/video/publishService.js.map +0 -1
  1179. package/out/templator/genCallComponentLogic.d.ts +0 -17
  1180. package/out/templator/genCallComponentLogic.js +0 -29
  1181. package/out/templator/genCallComponentLogic.js.map +0 -1
  1182. package/out/templator/genCreateBlock.d.ts +0 -10
  1183. package/out/templator/genCreateBlock.js +0 -343
  1184. package/out/templator/genCreateBlock.js.map +0 -1
  1185. package/out/templator/genCurdEditMultipleKeyBlock.d.ts +0 -8
  1186. package/out/templator/genCurdEditMultipleKeyBlock.js +0 -527
  1187. package/out/templator/genCurdEditMultipleKeyBlock.js.map +0 -1
  1188. package/out/templator/genCurdMultipleKeyBlock.d.ts +0 -34
  1189. package/out/templator/genCurdMultipleKeyBlock.js +0 -704
  1190. package/out/templator/genCurdMultipleKeyBlock.js.map +0 -1
  1191. package/out/templator/genEditTableBlock.d.ts +0 -51
  1192. package/out/templator/genEditTableBlock.js +0 -326
  1193. package/out/templator/genEditTableBlock.js.map +0 -1
  1194. package/out/templator/genEnumSelectBlock.d.ts +0 -10
  1195. package/out/templator/genEnumSelectBlock.js +0 -26
  1196. package/out/templator/genEnumSelectBlock.js.map +0 -1
  1197. package/out/templator/genGetBlock.d.ts +0 -6
  1198. package/out/templator/genGetBlock.js +0 -138
  1199. package/out/templator/genGetBlock.js.map +0 -1
  1200. package/out/templator/genGridViewBlock.d.ts +0 -55
  1201. package/out/templator/genGridViewBlock.js +0 -359
  1202. package/out/templator/genGridViewBlock.js.map +0 -1
  1203. package/out/templator/genListViewBlock.d.ts +0 -19
  1204. package/out/templator/genListViewBlock.js +0 -148
  1205. package/out/templator/genListViewBlock.js.map +0 -1
  1206. package/out/templator/genQueryComponent.d.ts +0 -34
  1207. package/out/templator/genQueryComponent.js +0 -349
  1208. package/out/templator/genQueryComponent.js.map +0 -1
  1209. package/out/templator/genSelectBlock.d.ts +0 -45
  1210. package/out/templator/genSelectBlock.js +0 -388
  1211. package/out/templator/genSelectBlock.js.map +0 -1
  1212. package/out/templator/genTableBlock.d.ts +0 -53
  1213. package/out/templator/genTableBlock.js +0 -304
  1214. package/out/templator/genTableBlock.js.map +0 -1
  1215. package/out/templator/genUpdateBlock.d.ts +0 -6
  1216. package/out/templator/genUpdateBlock.js +0 -385
  1217. package/out/templator/genUpdateBlock.js.map +0 -1
  1218. package/out/templator/index.d.ts +0 -19
  1219. package/out/templator/index.js +0 -38
  1220. package/out/templator/index.js.map +0 -1
  1221. package/out/templator/utils.d.ts +0 -683
  1222. package/out/templator/utils.js +0 -459
  1223. package/out/templator/utils.js.map +0 -1
  1224. package/out/translator/constant.d.ts +0 -6
  1225. package/out/translator/constant.js +0 -10
  1226. package/out/translator/constant.js.map +0 -1
  1227. package/out/translator/index.d.ts +0 -3
  1228. package/out/translator/index.js +0 -20
  1229. package/out/translator/index.js.map +0 -1
  1230. package/out/translator/types.d.ts +0 -33
  1231. package/out/translator/types.js +0 -3
  1232. package/out/translator/types.js.map +0 -1
  1233. package/out/translator/utils.d.ts +0 -17
  1234. package/out/translator/utils.js +0 -111
  1235. package/out/translator/utils.js.map +0 -1
  1236. package/out/utils/cookie.d.ts +0 -9
  1237. package/out/utils/cookie.js +0 -62
  1238. package/out/utils/cookie.js.map +0 -1
  1239. package/out/utils/env.d.ts +0 -2
  1240. package/out/utils/env.js +0 -6
  1241. package/out/utils/env.js.map +0 -1
  1242. package/out/utils/index.d.ts +0 -43
  1243. package/out/utils/index.js +0 -188
  1244. package/out/utils/index.js.map +0 -1
  1245. package/out/utils/logger.d.ts +0 -7
  1246. package/out/utils/logger.js +0 -23
  1247. package/out/utils/logger.js.map +0 -1
  1248. package/out/utils/sortTsString.d.ts +0 -1
  1249. package/out/utils/sortTsString.js +0 -38
  1250. package/out/utils/sortTsString.js.map +0 -1
  1251. package/out/utils/string.d.ts +0 -51
  1252. package/out/utils/string.js +0 -107
  1253. package/out/utils/string.js.map +0 -1
  1254. package/out/utils/time-slicing.d.ts +0 -41
  1255. package/out/utils/time-slicing.js +0 -82
  1256. package/out/utils/time-slicing.js.map +0 -1
  1257. package/out/utils/traverse.d.ts +0 -36
  1258. package/out/utils/traverse.js +0 -143
  1259. package/out/utils/traverse.js.map +0 -1
  1260. package/out/utils/types.d.ts +0 -1
  1261. package/out/utils/types.js +0 -3
  1262. package/out/utils/types.js.map +0 -1
  1263. package/out/utils/window.d.ts +0 -7
  1264. package/out/utils/window.js +0 -14
  1265. package/out/utils/window.js.map +0 -1
@@ -25,7 +25,6 @@ import Module from './Module__';
25
25
  import App from './App__';
26
26
  import Frontend from './Frontend__';
27
27
  import Process from './Process__';
28
- import Identifier from './Identifier__';
29
28
 
30
29
  /**
31
30
  * 元素绑定属性
@@ -40,6 +39,7 @@ export class BindAttribute extends BaseNode {
40
39
  /**
41
40
  * 产品概念
42
41
  */
42
+ @property('concept')
43
43
  // @ts-ignore
44
44
  readonly concept!: 'BindAttribute';
45
45
 
@@ -669,11 +669,15 @@ export class BindAttribute extends BaseNode {
669
669
  };
670
670
  if (parentKey) {
671
671
  params.parentKey = parentKey;
672
- if (Array.isArray((this as any)[parentKey])) {
673
- const index = (this as any)[parentKey].indexOf(logicItem);
672
+ // @ts-ignore
673
+ const t = this.__v_raw || this;
674
+ // @ts-ignore
675
+ const n = logicItem.__v_raw || logicItem;
676
+ if (Array.isArray((t as any)[parentKey])) {
677
+ const index = (t as any)[parentKey].indexOf(n);
674
678
  ~index && (this as any)[parentKey].splice(index, 1);
675
679
  params.index = index;
676
- } else if ((this as any)[parentKey] === logicItem) {
680
+ } else if ((t as any)[parentKey] === n) {
677
681
  params.index = 0;
678
682
  (this as any)[parentKey] = undefined;
679
683
  }
@@ -1004,7 +1008,23 @@ export class BindAttribute extends BaseNode {
1004
1008
  // 文本默认要经过toString转换
1005
1009
  if (options?.finalCode !== false && name === 'text' && !this.sync && this.type === 'dynamic') {
1006
1010
  const expTypeAnnotation = (this.expression as any)?.typeAnnotation || this.expression?.__TypeAnnotation;
1007
- value = `$utils['ToString']('${expTypeAnnotation?.sortedTypeKey}', ${value})`;
1011
+ // 针对union类型,typeAnntatation拿不到app数据,暂时先在这里处理
1012
+ if (expTypeAnnotation?.typeKind === 'union' && expTypeAnnotation?.typeArguments?.length) {
1013
+ expTypeAnnotation?.typeArguments?.forEach((typeArg: any) => {
1014
+ if (typeArg.typeNamespace?.endsWith('.metadataTypes')) {
1015
+ const referenceNode = this.app.findNodeByCompleteName(typeArg.typeNamespace + '.' + typeArg.typeName)?.typeAnnotation || {};
1016
+ typeArg.typeName = referenceNode.typeName
1017
+ typeArg.typeKind = referenceNode.typeKind
1018
+ typeArg.typeNamespace = referenceNode.typeNamespace
1019
+ }
1020
+ })
1021
+ }
1022
+ if (expTypeAnnotation?.typeNamespace?.endsWith('.metadataTypes')) {
1023
+ const referenceNode = this.app.findNodeByCompleteName(expTypeAnnotation.typeNamespace + '.' + expTypeAnnotation.typeName)?.typeAnnotation || {};
1024
+ value = `$utils['ToString']('${referenceNode?.typeNamespace}.${referenceNode.typeName}', ${value})`;
1025
+ } else {
1026
+ value = `$utils['ToString']('${expTypeAnnotation?.sortedTypeKey}', ${value})`;
1027
+ }
1008
1028
  }
1009
1029
  if (this.type === 'string' && name !== 'rules') {
1010
1030
  if (options?.finalCode !== false) {
@@ -1088,22 +1108,25 @@ export class BindAttribute extends BaseNode {
1088
1108
  return code;
1089
1109
  }
1090
1110
 
1091
- toEmbeddedTSVariableDefinition(state?: TranslatorState, attrList?: string[], elementName?: string, currentLevel?: string): string {
1111
+ toEmbeddedTSVariableDefinition(
1112
+ state?: TranslatorState,
1113
+ attrList?: string[],
1114
+ elementName?: string,
1115
+ currentLevel?: string,
1116
+ ): string {
1092
1117
  let code = '';
1093
1118
  let arrCode = '';
1094
1119
  code += indent((state?.tabSize || 0) + 3);
1095
1120
  code += `${attrConvertCamelCase(this.name)}: `;
1096
1121
  if (this.expression) {
1097
1122
  if (this.name === 'data-source') {
1098
- code += `ReturnType<typeof __elements_stashFunctionVariable.${elementName}_${attrConvertCamelCase(
1099
- this.name,
1100
- )}>`;
1123
+ code += `ReturnType<typeof __elements_stashFunctionVariable.${elementName}_${attrConvertCamelCase(this.name)}>`;
1101
1124
  } else {
1102
1125
  code += `ReturnType<typeof __elements_stashFunctionVariable.${elementName}_${attrConvertCamelCase(this.name)}>`;
1103
1126
  }
1104
1127
  arrCode = `() => {
1105
1128
  return __elements_variable_function.${currentLevel}?.${attrConvertCamelCase(this.name)}?.()
1106
- }`
1129
+ }`;
1107
1130
  } else if (this.name === 'sorting') {
1108
1131
  code += `{
1109
1132
  field: nasl.core.String
@@ -1144,24 +1167,34 @@ export class BindAttribute extends BaseNode {
1144
1167
  } else {
1145
1168
  stashVariable = `${this.expression.toEmbeddedTS()}`;
1146
1169
  }
1147
- code += `() => {\n`
1170
+ code += `() => {\n`;
1148
1171
  code += indent((state?.tabSize || 0) + 5);
1149
- code += `return ${stashVariable}\n`
1172
+ code += `return ${stashVariable}\n`;
1150
1173
  code += indent((state?.tabSize || 0) + 4);
1151
- code += `},\n`
1174
+ code += `},\n`;
1152
1175
  }
1153
1176
  return code;
1154
1177
  }
1155
1178
 
1156
1179
  findCurrentElementParent(node: any): ViewElement | undefined {
1157
1180
  if (node.parentNode instanceof ViewElement) {
1158
- if (['u-table-view', 'u-list-view', 'u-grid-view', 'u-list-components', 'van-list-view', 'van-grid-view', 'van-for-components'].includes(node.parentNode.tag)) {
1159
- return node.parentNode
1181
+ if (
1182
+ [
1183
+ 'u-table-view',
1184
+ 'u-list-view',
1185
+ 'u-grid-view',
1186
+ 'u-list-components',
1187
+ 'van-list-view',
1188
+ 'van-grid-view',
1189
+ 'van-for-components',
1190
+ ].includes(node.parentNode.tag)
1191
+ ) {
1192
+ return node.parentNode;
1160
1193
  } else {
1161
- return this.findCurrentElementParent(node.parentNode)
1194
+ return this.findCurrentElementParent(node.parentNode);
1162
1195
  }
1163
1196
  } else {
1164
- return undefined
1197
+ return undefined;
1165
1198
  }
1166
1199
  }
1167
1200
  @withSourceMap()
@@ -1247,4 +1280,3 @@ export function attrConvertCamelCase(str: string) {
1247
1280
  });
1248
1281
  return strList.join('');
1249
1282
  }
1250
-
@@ -31,6 +31,7 @@ export class BindDirective extends BaseNode {
31
31
  /**
32
32
  * 产品概念
33
33
  */
34
+ @property('concept')
34
35
  // @ts-ignore
35
36
  readonly concept!: 'BindDirective';
36
37
 
@@ -306,11 +307,15 @@ export class BindDirective extends BaseNode {
306
307
  };
307
308
  if (parentKey) {
308
309
  params.parentKey = parentKey;
309
- if (Array.isArray((this as any)[parentKey])) {
310
- const index = (this as any)[parentKey].indexOf(logicItem);
310
+ // @ts-ignore
311
+ const t = this.__v_raw || this;
312
+ // @ts-ignore
313
+ const n = logicItem.__v_raw || logicItem;
314
+ if (Array.isArray((t as any)[parentKey])) {
315
+ const index = (t as any)[parentKey].indexOf(n);
311
316
  ~index && (this as any)[parentKey].splice(index, 1);
312
317
  params.index = index;
313
- } else if ((this as any)[parentKey] === logicItem) {
318
+ } else if ((t as any)[parentKey] === n) {
314
319
  params.index = 0;
315
320
  (this as any)[parentKey] = undefined;
316
321
  }
@@ -526,7 +531,21 @@ export class BindDirective extends BaseNode {
526
531
  toVue(options?: ElementToVueOptions) {
527
532
  let str = '';
528
533
  // eslint-disable-next-line no-nested-ternary
529
- let value = (this.type ?? 'string') !== 'string' ? this.value : this.value ? `'${this.value}'` : '';
534
+ let value = this.value;
535
+ if(this.type === 'string') {
536
+ value = value.replace(/['"`\\]/g, (m) => {
537
+ let escape = '\\\\';
538
+ escape = '\\\\';
539
+ /// #if process.env.BUILD_TARGET === 'node'
540
+ escape = '\\';
541
+ /// #endif
542
+ if (m === '\\') {
543
+ return `${escape}${escape}`;
544
+ }
545
+ return `${escape}${m}`;
546
+ });
547
+ }
548
+ value = (this.type ?? 'string') !== 'string' ? this.value : value ? `\`${value}\`` : '';
530
549
  // 需要用标识符替换
531
550
  // if (options.finalCode !== false && this.needReplaceWithIdentifier) {
532
551
  // const argsList = this.getArgsList();
@@ -537,7 +556,9 @@ export class BindDirective extends BaseNode {
537
556
  if (this.expression.concept === 'StringLiteral') {
538
557
  value = `${value}`;
539
558
  }
540
- value = value?.replace(/"/g, "'");
559
+ }
560
+ if (value !== undefined && value !== null && typeof value === 'string') {
561
+ value = value?.replace(/"/g, "'");
541
562
  }
542
563
  if (this.name === 'auth' && !!this.value) {
543
564
  const regex = /(.\w+\[name=\w+\])/g;
@@ -38,6 +38,7 @@ export class BindEvent extends BaseNode {
38
38
  /**
39
39
  * 产品概念
40
40
  */
41
+ @property('concept')
41
42
  // @ts-ignore
42
43
  readonly concept!: 'BindEvent';
43
44
 
@@ -455,11 +456,15 @@ export class BindEvent extends BaseNode {
455
456
  };
456
457
  if (parentKey) {
457
458
  params.parentKey = parentKey;
458
- if (Array.isArray((this as any)[parentKey])) {
459
- const index = (this as any)[parentKey].indexOf(logic);
459
+ // @ts-ignore
460
+ const t = this.__v_raw || this;
461
+ // @ts-ignore
462
+ const n = logic.__v_raw || logic;
463
+ if (Array.isArray((t as any)[parentKey])) {
464
+ const index = (t as any)[parentKey].indexOf(n);
460
465
  ~index && (this as any)[parentKey].splice(index, 1);
461
466
  params.index = index;
462
- } else if ((this as any)[parentKey] === logic) {
467
+ } else if ((t as any)[parentKey] === n) {
463
468
  params.index = 0;
464
469
  (this as any)[parentKey] = undefined;
465
470
  }
@@ -489,11 +494,15 @@ export class BindEvent extends BaseNode {
489
494
  };
490
495
  if (parentKey) {
491
496
  params.parentKey = parentKey;
492
- if (Array.isArray((this as any)[parentKey])) {
493
- const index = (this as any)[parentKey].indexOf(logicItem);
497
+ // @ts-ignore
498
+ const t = this.__v_raw || this;
499
+ // @ts-ignore
500
+ const n = logicItem.__v_raw || logicItem;
501
+ if (Array.isArray((t as any)[parentKey])) {
502
+ const index = (t as any)[parentKey].indexOf(n);
494
503
  ~index && (this as any)[parentKey].splice(index, 1);
495
504
  params.index = index;
496
- } else if ((this as any)[parentKey] === logicItem) {
505
+ } else if ((t as any)[parentKey] === n) {
497
506
  params.index = 0;
498
507
  (this as any)[parentKey] = undefined;
499
508
  }
@@ -677,9 +686,13 @@ export class BindEvent extends BaseNode {
677
686
  this.logics.forEach((logic, index) => {
678
687
  const logicName = `viewLogic_${logic.name}${index}`;
679
688
  // logic.name = logic.view.name + logic.name + index;
680
- code += logic.toNaturalTS(shiftState(state, code, {
681
- tabSize: state.tabSize,
682
- }), 'noExport', logicName);
689
+ code += logic.toNaturalTS(
690
+ shiftState(state, code, {
691
+ tabSize: state.tabSize,
692
+ }),
693
+ 'noExport',
694
+ logicName,
695
+ );
683
696
 
684
697
  // logic.name = logicName;
685
698
  // code += indent(state.tabSize);
@@ -704,17 +717,23 @@ export class BindEvent extends BaseNode {
704
717
  // logic.name = '__' + logic.view.name + (logic.parentNode as BindEvent).element.name + logic.name;
705
718
  logic.name = logic.name.replace(/-/g, '');
706
719
  try {
707
- code += logic.toNaturalTS(shiftState(state, code, {
708
- tabSize: state.tabSize,
709
- }), 'noExport');
720
+ code += logic.toNaturalTS(
721
+ shiftState(state, code, {
722
+ tabSize: state.tabSize,
723
+ }),
724
+ 'noExport',
725
+ );
710
726
  } finally {
711
727
  // 翻译logic可能出错
712
728
  logic.name = logicName;
713
729
  }
714
730
  } else {
715
- code += logic.toNaturalTS(shiftState(state, code, {
716
- tabSize: state.tabSize,
717
- }), 'noExport');
731
+ code += logic.toNaturalTS(
732
+ shiftState(state, code, {
733
+ tabSize: state.tabSize,
734
+ }),
735
+ 'noExport',
736
+ );
718
737
  }
719
738
 
720
739
  code += indent(state.tabSize);
@@ -31,6 +31,7 @@ export class BindStyle extends BaseNode {
31
31
  /**
32
32
  * 产品概念
33
33
  */
34
+ @property('concept')
34
35
  // @ts-ignore
35
36
  readonly concept!: 'BindStyle';
36
37
 
@@ -271,11 +272,15 @@ export class BindStyle extends BaseNode {
271
272
  };
272
273
  if (parentKey) {
273
274
  params.parentKey = parentKey;
274
- if (Array.isArray((this as any)[parentKey])) {
275
- const index = (this as any)[parentKey].indexOf(logicItem);
275
+ // @ts-ignore
276
+ const t = this.__v_raw || this;
277
+ // @ts-ignore
278
+ const n = logicItem.__v_raw || logicItem;
279
+ if (Array.isArray((t as any)[parentKey])) {
280
+ const index = (t as any)[parentKey].indexOf(n);
276
281
  ~index && (this as any)[parentKey].splice(index, 1);
277
282
  params.index = index;
278
- } else if ((this as any)[parentKey] === logicItem) {
283
+ } else if ((t as any)[parentKey] === n) {
279
284
  params.index = 0;
280
285
  (this as any)[parentKey] = undefined;
281
286
  }
@@ -25,6 +25,7 @@ export class BooleanLiteral extends LogicItem {
25
25
  /**
26
26
  * 产品概念
27
27
  */
28
+ @property('concept')
28
29
  // @ts-ignore
29
30
  readonly concept!: 'BooleanLiteral';
30
31
 
@@ -30,6 +30,7 @@ export class CallAuthInterface extends CallInterface {
30
30
  /**
31
31
  * 产品概念
32
32
  */
33
+ @property('concept')
33
34
  // @ts-ignore
34
35
  readonly concept!: 'CallAuthInterface';
35
36
 
@@ -241,11 +242,15 @@ export class CallAuthInterface extends CallInterface {
241
242
  };
242
243
  if (parentKey) {
243
244
  params.parentKey = parentKey;
244
- if (Array.isArray((this as any)[parentKey])) {
245
- const index = (this as any)[parentKey].indexOf(logicItem);
245
+ // @ts-ignore
246
+ const t = this.__v_raw || this;
247
+ // @ts-ignore
248
+ const n = logicItem.__v_raw || logicItem;
249
+ if (Array.isArray((t as any)[parentKey])) {
250
+ const index = (t as any)[parentKey].indexOf(n);
246
251
  ~index && (this as any)[parentKey].splice(index, 1);
247
252
  params.index = index;
248
- } else if ((this as any)[parentKey] === logicItem) {
253
+ } else if ((t as any)[parentKey] === n) {
249
254
  params.index = 0;
250
255
  (this as any)[parentKey] = undefined;
251
256
  }
@@ -33,6 +33,7 @@ export class CallConnector extends CallLogic {
33
33
  /**
34
34
  * 产品概念
35
35
  */
36
+ @property('concept')
36
37
  // @ts-ignore
37
38
  readonly concept!: 'CallConnector';
38
39
 
@@ -1,4 +1,4 @@
1
- import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
1
+ import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState, transfromMetadataType } from '../translator';
2
2
  import Function from './Function__';
3
3
  import { ElementToVueOptions } from './ViewElement__';
4
4
  import Identifier from './Identifier__';
@@ -20,7 +20,6 @@ import BaseNode from '../common/BaseNode';
20
20
  import TypeAnnotation from './TypeAnnotation__';
21
21
  import Argument from './Argument__';
22
22
  import LogicItem from './LogicItem__';
23
- import StringLiteral from './StringLiteral__';
24
23
 
25
24
  /**
26
25
  * 调用函数
@@ -35,6 +34,7 @@ export class CallFunction extends LogicItem {
35
34
  /**
36
35
  * 产品概念
37
36
  */
37
+ @property('concept')
38
38
  // @ts-ignore
39
39
  readonly concept!: 'CallFunction';
40
40
 
@@ -312,11 +312,15 @@ export class CallFunction extends LogicItem {
312
312
  };
313
313
  if (parentKey) {
314
314
  params.parentKey = parentKey;
315
- if (Array.isArray((this as any)[parentKey])) {
316
- const index = (this as any)[parentKey].indexOf(typeAnnotation);
315
+ // @ts-ignore
316
+ const t = this.__v_raw || this;
317
+ // @ts-ignore
318
+ const n = typeAnnotation.__v_raw || typeAnnotation;
319
+ if (Array.isArray((t as any)[parentKey])) {
320
+ const index = (t as any)[parentKey].indexOf(n);
317
321
  ~index && (this as any)[parentKey].splice(index, 1);
318
322
  params.index = index;
319
- } else if ((this as any)[parentKey] === typeAnnotation) {
323
+ } else if ((t as any)[parentKey] === n) {
320
324
  params.index = 0;
321
325
  (this as any)[parentKey] = undefined;
322
326
  }
@@ -346,11 +350,15 @@ export class CallFunction extends LogicItem {
346
350
  };
347
351
  if (parentKey) {
348
352
  params.parentKey = parentKey;
349
- if (Array.isArray((this as any)[parentKey])) {
350
- const index = (this as any)[parentKey].indexOf(logicItem);
353
+ // @ts-ignore
354
+ const t = this.__v_raw || this;
355
+ // @ts-ignore
356
+ const n = logicItem.__v_raw || logicItem;
357
+ if (Array.isArray((t as any)[parentKey])) {
358
+ const index = (t as any)[parentKey].indexOf(n);
351
359
  ~index && (this as any)[parentKey].splice(index, 1);
352
360
  params.index = index;
353
- } else if ((this as any)[parentKey] === logicItem) {
361
+ } else if ((t as any)[parentKey] === n) {
354
362
  params.index = 0;
355
363
  (this as any)[parentKey] = undefined;
356
364
  }
@@ -373,11 +381,11 @@ export class CallFunction extends LogicItem {
373
381
  this.arguments?.forEach((arg: any, index) => {
374
382
  let argStr = arg?.toVue(options);
375
383
  const argTypeAnnotation = arg.typeAnnotation || arg.__TypeAnnotation;
376
-
384
+ const { sortedTypeKey } = transfromMetadataType(argTypeAnnotation, this.app)
377
385
  if (needToString) {
378
- argStr = `$utils['ToString']('${argTypeAnnotation?.sortedTypeKey}', ${argStr})`;
386
+ argStr = `$utils['ToString']('${sortedTypeKey}', ${argStr})`;
379
387
  } else if (['HasValue'].includes(this.calleeName)) {
380
- argStr = `{ type: '${argTypeAnnotation?.sortedTypeKey}', value: ${argStr} }`;
388
+ argStr = `{ type: '${sortedTypeKey}', value: ${argStr} }`;
381
389
  }
382
390
  code += argStr;
383
391
  if (index !== this.arguments?.length - 1) code += ', ';
@@ -426,7 +434,6 @@ export class CallFunction extends LogicItem {
426
434
  code += `this.$utils['${calleeName}']`;
427
435
  code += '(';
428
436
 
429
-
430
437
  let argTyAnno;
431
438
  if (this.calleeName === 'ToString') {
432
439
  const arg0 = this.arguments[0];
@@ -435,11 +442,10 @@ export class CallFunction extends LogicItem {
435
442
  argTyAnno = this.typeArguments?.[0];
436
443
  }
437
444
 
438
-
439
445
  // 调整 ToString 的 typeKey 到第一个参数,剩下的以后重构。
440
446
  // 事实上,大部分编译器都会选择把 type tag 放到前端来做运行时匹配,而非末位。
441
447
  if (this.calleeName === 'ToString' && argTyAnno) {
442
- code += `'${argTyAnno?.sortedTypeKey}', `
448
+ code += `'${argTyAnno?.sortedTypeKey}', `;
443
449
  }
444
450
 
445
451
  if (Array.isArray(this.arguments) && this.arguments.length) {
@@ -448,11 +454,11 @@ export class CallFunction extends LogicItem {
448
454
  this.arguments.forEach((arg: any, index) => {
449
455
  let argStr = arg?.toJS(shiftState(state, code));
450
456
  const argTypeAnnotation = arg.typeAnnotation || arg.__TypeAnnotation;
451
-
457
+ const { sortedTypeKey } = transfromMetadataType(argTypeAnnotation, this.app)
452
458
  if (needToString) {
453
- argStr = `this.$utils['ToString']('${argTypeAnnotation?.sortedTypeKey}', ${argStr})`;
459
+ argStr = `this.$utils['ToString']('${sortedTypeKey}', ${argStr})`;
454
460
  } else if (['HasValue'].includes(this.calleeName)) {
455
- argStr = `{ type: '${argTypeAnnotation?.sortedTypeKey}', value: ${argStr} }`;
461
+ argStr = `{ type: '${sortedTypeKey}', value: ${argStr} }`;
456
462
  }
457
463
  code += argStr;
458
464
  if (index !== this.arguments?.length - 1) code += ', ';
@@ -460,7 +466,7 @@ export class CallFunction extends LogicItem {
460
466
  }
461
467
 
462
468
  if (this.calleeName === 'fromString' && argTyAnno) {
463
- code += `, '${argTyAnno?.sortedTypeKey}'`
469
+ code += `, '${argTyAnno?.sortedTypeKey}'`;
464
470
  }
465
471
  // 用作做语义控制。后面这段代码没完全理解,需要保持进入条件不变。
466
472
  const flagControl = ['ToString', 'fromString'].includes(this.calleeName) && argTyAnno;
@@ -476,8 +482,7 @@ export class CallFunction extends LogicItem {
476
482
  code += ')';
477
483
  const tyAnno = (this as any).typeAnnotation || this.__TypeAnnotation;
478
484
  const needGenInitFromSchema =
479
- tyAnno &&
480
- (!['primitive', 'union'].includes(tyAnno.typeKind) || tyAnno.typeName === 'DateTime');
485
+ tyAnno && (!['primitive', 'union'].includes(tyAnno.typeKind) || tyAnno.typeName === 'DateTime');
481
486
  if (needGenInitFromSchema) {
482
487
  code = `this.$genInitFromSchema('${tyAnno?.sortedTypeKey}', ${code})`;
483
488
  }
@@ -634,12 +639,10 @@ export class CallFunction extends LogicItem {
634
639
  code += '(';
635
640
  this.arguments.forEach((arg, index) => {
636
641
  code += arg.toNaturalTS(shiftState(state, code, { tabSize: 0 }));
637
- if (index !== this.arguments.length - 1)
638
- code += ', ';
642
+ if (index !== this.arguments.length - 1) code += ', ';
639
643
  });
640
644
  if (this?.typeArguments?.[0]?.typeKind === 'reference') {
641
- if (this.arguments?.length > 0)
642
- code += ', ';
645
+ if (this.arguments?.length > 0) code += ', ';
643
646
  code += `{ typeNamespace: '${this.typeArguments[0].typeNamespace}' }`;
644
647
  }
645
648
  code += `)`;
@@ -1,4 +1,4 @@
1
- import { TranslatorState, shiftState, withSourceMap, createCompilerState } from '../translator';
1
+ import { TranslatorState, shiftState, withSourceMap, createCompilerState } from '../translator';
2
2
  import Interface from './Interface__';
3
3
  import { ElementToVueOptions } from './ViewElement__';
4
4
  import { getNodeByNodeCallee } from '../automate/engine/utils';
@@ -35,6 +35,7 @@ export class CallInterface extends LogicItem {
35
35
  /**
36
36
  * 产品概念
37
37
  */
38
+ @property('concept')
38
39
  // @ts-ignore
39
40
  readonly concept!: 'CallInterface' | 'CallAuthInterface';
40
41
 
@@ -206,11 +207,15 @@ export class CallInterface extends LogicItem {
206
207
  };
207
208
  if (parentKey) {
208
209
  params.parentKey = parentKey;
209
- if (Array.isArray((this as any)[parentKey])) {
210
- const index = (this as any)[parentKey].indexOf(logicItem);
210
+ // @ts-ignore
211
+ const t = this.__v_raw || this;
212
+ // @ts-ignore
213
+ const n = logicItem.__v_raw || logicItem;
214
+ if (Array.isArray((t as any)[parentKey])) {
215
+ const index = (t as any)[parentKey].indexOf(n);
211
216
  ~index && (this as any)[parentKey].splice(index, 1);
212
217
  params.index = index;
213
- } else if ((this as any)[parentKey] === logicItem) {
218
+ } else if ((t as any)[parentKey] === n) {
214
219
  params.index = 0;
215
220
  (this as any)[parentKey] = undefined;
216
221
  }
@@ -264,12 +269,12 @@ export class CallInterface extends LogicItem {
264
269
  this.app.emit('collect:start', { actionMsg: '删除接口' });
265
270
  const parentModule = oldItf.module || oldItf.connector;
266
271
  if (oldItf.module) {
267
- const shouldDeleteStructures: Structure[] = []
272
+ const shouldDeleteStructures: Structure[] = [];
268
273
  oldItf.module.getInterfaceStructureMap().forEach((itfs, stru) => {
269
274
  if (itfs.size === 1 && itfs.has(oldItf)) {
270
- shouldDeleteStructures.push(stru)
275
+ shouldDeleteStructures.push(stru);
271
276
  }
272
- })
277
+ });
273
278
  shouldDeleteStructures.forEach((s: Structure) => s.delete());
274
279
  } else {
275
280
  const shouldDeleteStructures = oldItf.getRefStructures(parentModule.structures);
@@ -618,23 +623,33 @@ export class CallInterface extends LogicItem {
618
623
  const calleeNamespace = _interface.getNamespace();
619
624
  const calleeName = _interface.name;
620
625
  const params = _interface.params.map((param) => {
621
- const oldArgument = this.arguments.find((node) => node.keyword === param.name)
622
- return Argument.from({
623
- keyword: param.name,
624
- expression: oldArgument ? oldArgument.expression : undefined
625
- }, this, 'arguments');
626
+ const oldArgument = this.arguments.find((node) => node.keyword === param.name);
627
+ return Argument.from(
628
+ {
629
+ keyword: param.name,
630
+ expression: oldArgument ? oldArgument.expression : undefined,
631
+ },
632
+ this,
633
+ 'arguments',
634
+ );
626
635
  });
627
636
  const oldArguments = this.arguments.reduce((res, argumentNode) => {
628
- const targetParam = _interface.params.find((item) => item.name === argumentNode.keyword)
637
+ const targetParam = _interface.params.find((item) => item.name === argumentNode.keyword);
629
638
  if (!targetParam) {
630
- res.push(Argument.from({
631
- keyword: argumentNode.keyword,
632
- expression: argumentNode ? argumentNode.expression : undefined
633
- }, this, 'arguments'))
639
+ res.push(
640
+ Argument.from(
641
+ {
642
+ keyword: argumentNode.keyword,
643
+ expression: argumentNode ? argumentNode.expression : undefined,
644
+ },
645
+ this,
646
+ 'arguments',
647
+ ),
648
+ );
634
649
  }
635
- return res
636
- }, [])
637
- params.push(...oldArguments)
650
+ return res;
651
+ }, []);
652
+ params.push(...oldArguments);
638
653
 
639
654
  if (this.app) {
640
655
  this.app.emit('collect:start', {
@@ -833,13 +848,13 @@ export class CallInterface extends LogicItem {
833
848
  // 仅被自己引用则删除
834
849
  if (!isSameItf && isSelfRef && refCount === 1) {
835
850
  // 删除旧的数据结构
836
- const shouldDeleteStructures: Structure[] = []
837
- const structureMap = oldItf.module.getInterfaceStructureMap()
851
+ const shouldDeleteStructures: Structure[] = [];
852
+ const structureMap = oldItf.module.getInterfaceStructureMap();
838
853
  structureMap.forEach((itfs, stru) => {
839
854
  if (itfs.size === 1 && itfs.has(oldItf)) {
840
- shouldDeleteStructures.push(stru)
855
+ shouldDeleteStructures.push(stru);
841
856
  }
842
- })
857
+ });
843
858
  shouldDeleteStructures.forEach((s: Structure) => s.delete());
844
859
  oldItf.delete();
845
860
  oldItf.afterDelete();
@@ -854,12 +869,12 @@ export class CallInterface extends LogicItem {
854
869
  // 递归找出 response/request 的 Body/Returns 引用的数据结构
855
870
  const newStructuresSet = targetItf.getRefStructures(moduleData.structures);
856
871
  // 新导入的数据结构在系统中已存在时 提前进行删除
857
- newStructuresSet.forEach(stru => {
858
- const target = targetItf.module.structures.find(node => node.name === stru.name)
872
+ newStructuresSet.forEach((stru) => {
873
+ const target = targetItf.module.structures.find((node) => node.name === stru.name);
859
874
  if (target) {
860
- oldStructuresSet.add(target)
875
+ oldStructuresSet.add(target);
861
876
  }
862
- })
877
+ });
863
878
  // 删除旧的数据结构
864
879
  oldStructuresSet.forEach((s) => s.delete());
865
880
  newStructuresSet.forEach((s) => module.addStructure(Structure.from(s)));