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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (832) hide show
  1. package/out/automate/engine/utils.d.ts +1 -1
  2. package/out/automate/engine/utils.js +3 -7
  3. package/out/automate/engine/utils.js.map +1 -1
  4. package/out/automate/template/myProcess.js +65 -65
  5. package/out/automate/template/myProcess.js.map +1 -1
  6. package/out/bak/translator.js +42 -12
  7. package/out/bak/translator.js.map +1 -1
  8. package/out/breakpoint/generator/BreakpointNode.d.ts +2 -0
  9. package/out/breakpoint/generator/BreakpointNode.js +7 -0
  10. package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
  11. package/out/breakpoint/shared/constants.js +1 -0
  12. package/out/breakpoint/shared/constants.js.map +1 -1
  13. package/out/breakpoint/shared/utils.js +1 -1
  14. package/out/breakpoint/shared/utils.js.map +1 -1
  15. package/out/common/BaseNode.d.ts +4 -3
  16. package/out/common/BaseNode.js +61 -10
  17. package/out/common/BaseNode.js.map +1 -1
  18. package/out/common/ComponentAPI.d.ts +5 -3
  19. package/out/common/EventEmitter.d.ts +1 -0
  20. package/out/common/EventEmitter.js.map +1 -1
  21. package/out/concepts/Abort__.d.ts +5 -4
  22. package/out/concepts/Abort__.js +5 -7
  23. package/out/concepts/Abort__.js.map +1 -1
  24. package/out/concepts/AbstractInterface__.d.ts +9 -6
  25. package/out/concepts/AbstractInterface__.js +8 -11
  26. package/out/concepts/AbstractInterface__.js.map +1 -1
  27. package/out/concepts/Anchor__.d.ts +5 -12
  28. package/out/concepts/Anchor__.js +5 -44
  29. package/out/concepts/Anchor__.js.map +1 -1
  30. package/out/concepts/AnonymousFunction__.d.ts +10 -47
  31. package/out/concepts/AnonymousFunction__.js +14 -159
  32. package/out/concepts/AnonymousFunction__.js.map +1 -1
  33. package/out/concepts/App__.d.ts +321 -437
  34. package/out/concepts/App__.js +460 -986
  35. package/out/concepts/App__.js.map +1 -1
  36. package/out/concepts/Argument__.d.ts +5 -12
  37. package/out/concepts/Argument__.js +11 -46
  38. package/out/concepts/Argument__.js.map +1 -1
  39. package/out/concepts/Assignee__.d.ts +8 -5
  40. package/out/concepts/Assignee__.js +9 -66
  41. package/out/concepts/Assignee__.js.map +1 -1
  42. package/out/concepts/AssignmentLine__.d.ts +5 -6
  43. package/out/concepts/AssignmentLine__.js +7 -11
  44. package/out/concepts/AssignmentLine__.js.map +1 -1
  45. package/out/concepts/Assignment__.d.ts +5 -26
  46. package/out/concepts/Assignment__.js +5 -64
  47. package/out/concepts/Assignment__.js.map +1 -1
  48. package/out/concepts/Attribute__.d.ts +14 -51
  49. package/out/concepts/Attribute__.js +36 -126
  50. package/out/concepts/Attribute__.js.map +1 -1
  51. package/out/concepts/AuthInterface__.d.ts +10 -10
  52. package/out/concepts/AuthInterface__.js +18 -13
  53. package/out/concepts/AuthInterface__.js.map +1 -1
  54. package/out/concepts/AuthLogicForCallInterface__.d.ts +6 -3
  55. package/out/concepts/AuthLogicForCallInterface__.js +6 -32
  56. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  57. package/out/concepts/AuthLogic__.d.ts +19 -19
  58. package/out/concepts/AuthLogic__.js +26 -25
  59. package/out/concepts/AuthLogic__.js.map +1 -1
  60. package/out/concepts/BackendVariable__.d.ts +19 -47
  61. package/out/concepts/BackendVariable__.js +43 -134
  62. package/out/concepts/BackendVariable__.js.map +1 -1
  63. package/out/concepts/Backend__.d.ts +6 -13
  64. package/out/concepts/Backend__.js +13 -50
  65. package/out/concepts/Backend__.js.map +1 -1
  66. package/out/concepts/BaseSetter__.d.ts +25 -0
  67. package/out/concepts/BaseSetter__.js +53 -0
  68. package/out/concepts/BaseSetter__.js.map +1 -0
  69. package/out/concepts/BatchAssignment__.d.ts +9 -21
  70. package/out/concepts/BatchAssignment__.js +11 -86
  71. package/out/concepts/BatchAssignment__.js.map +1 -1
  72. package/out/concepts/BinaryExpression__.d.ts +5 -22
  73. package/out/concepts/BinaryExpression__.js +32 -59
  74. package/out/concepts/BinaryExpression__.js.map +1 -1
  75. package/out/concepts/BindAttribute__.d.ts +60 -107
  76. package/out/concepts/BindAttribute__.js +144 -251
  77. package/out/concepts/BindAttribute__.js.map +1 -1
  78. package/out/concepts/BindDirective__.d.ts +26 -42
  79. package/out/concepts/BindDirective__.js +63 -105
  80. package/out/concepts/BindDirective__.js.map +1 -1
  81. package/out/concepts/BindEvent__.d.ts +27 -36
  82. package/out/concepts/BindEvent__.js +50 -109
  83. package/out/concepts/BindEvent__.js.map +1 -1
  84. package/out/concepts/BindStyle__.d.ts +24 -41
  85. package/out/concepts/BindStyle__.js +48 -88
  86. package/out/concepts/BindStyle__.js.map +1 -1
  87. package/out/concepts/Block__.d.ts +5 -2
  88. package/out/concepts/Block__.js +5 -31
  89. package/out/concepts/Block__.js.map +1 -1
  90. package/out/concepts/BooleanLiteral__.d.ts +5 -0
  91. package/out/concepts/BooleanLiteral__.js +8 -1
  92. package/out/concepts/BooleanLiteral__.js.map +1 -1
  93. package/out/concepts/BusinessComponent__.d.ts +47 -49
  94. package/out/concepts/BusinessComponent__.js +122 -444
  95. package/out/concepts/BusinessComponent__.js.map +1 -1
  96. package/out/concepts/BusinessLogic__.d.ts +5 -0
  97. package/out/concepts/BusinessLogic__.js +8 -1
  98. package/out/concepts/BusinessLogic__.js.map +1 -1
  99. package/out/concepts/CallAuthInterface__.d.ts +6 -4
  100. package/out/concepts/CallAuthInterface__.js +6 -34
  101. package/out/concepts/CallAuthInterface__.js.map +1 -1
  102. package/out/concepts/CallConnector__.d.ts +5 -0
  103. package/out/concepts/CallConnector__.js +11 -2
  104. package/out/concepts/CallConnector__.js.map +1 -1
  105. package/out/concepts/CallEvent__.d.ts +6 -7
  106. package/out/concepts/CallEvent__.js +11 -40
  107. package/out/concepts/CallEvent__.js.map +1 -1
  108. package/out/concepts/CallFunction__.d.ts +17 -9
  109. package/out/concepts/CallFunction__.js +84 -130
  110. package/out/concepts/CallFunction__.js.map +1 -1
  111. package/out/concepts/CallInterface__.d.ts +6 -7
  112. package/out/concepts/CallInterface__.js +14 -41
  113. package/out/concepts/CallInterface__.js.map +1 -1
  114. package/out/concepts/CallLogic__.d.ts +11 -24
  115. package/out/concepts/CallLogic__.js +68 -140
  116. package/out/concepts/CallLogic__.js.map +1 -1
  117. package/out/concepts/CallQueryComponent__.d.ts +70 -126
  118. package/out/concepts/CallQueryComponent__.js +134 -308
  119. package/out/concepts/CallQueryComponent__.js.map +1 -1
  120. package/out/concepts/CapsulesSetter__.d.ts +109 -0
  121. package/out/concepts/CapsulesSetter__.js +163 -0
  122. package/out/concepts/CapsulesSetter__.js.map +1 -0
  123. package/out/concepts/Comment__.d.ts +5 -0
  124. package/out/concepts/Comment__.js +8 -1
  125. package/out/concepts/Comment__.js.map +1 -1
  126. package/out/concepts/CompletionProperty__.d.ts +6 -26
  127. package/out/concepts/CompletionProperty__.js +24 -74
  128. package/out/concepts/CompletionProperty__.js.map +1 -1
  129. package/out/concepts/ConfigGroup__.d.ts +6 -13
  130. package/out/concepts/ConfigGroup__.js +13 -50
  131. package/out/concepts/ConfigGroup__.js.map +1 -1
  132. package/out/concepts/ConfigPropertyValue__.d.ts +5 -11
  133. package/out/concepts/ConfigPropertyValue__.js +11 -19
  134. package/out/concepts/ConfigPropertyValue__.js.map +1 -1
  135. package/out/concepts/ConfigProperty__.d.ts +11 -18
  136. package/out/concepts/ConfigProperty__.js +25 -58
  137. package/out/concepts/ConfigProperty__.js.map +1 -1
  138. package/out/concepts/Configuration__.d.ts +6 -13
  139. package/out/concepts/Configuration__.js +6 -49
  140. package/out/concepts/Configuration__.js.map +1 -1
  141. package/out/concepts/Connection__.d.ts +11 -18
  142. package/out/concepts/Connection__.js +25 -58
  143. package/out/concepts/Connection__.js.map +1 -1
  144. package/out/concepts/ConnectorTrigger__.d.ts +28 -34
  145. package/out/concepts/ConnectorTrigger__.js +55 -50
  146. package/out/concepts/ConnectorTrigger__.js.map +1 -1
  147. package/out/concepts/Connector__.d.ts +106 -504
  148. package/out/concepts/Connector__.js +134 -791
  149. package/out/concepts/Connector__.js.map +1 -1
  150. package/out/concepts/Constant__.d.ts +27 -55
  151. package/out/concepts/Constant__.js +45 -137
  152. package/out/concepts/Constant__.js.map +1 -1
  153. package/out/concepts/CountersignPolicy__.d.ts +6 -5
  154. package/out/concepts/CountersignPolicy__.js +8 -12
  155. package/out/concepts/CountersignPolicy__.js.map +1 -1
  156. package/out/concepts/DataSource__.d.ts +11 -18
  157. package/out/concepts/DataSource__.js +25 -58
  158. package/out/concepts/DataSource__.js.map +1 -1
  159. package/out/concepts/DatabaseTypeAnnotation__.d.ts +5 -6
  160. package/out/concepts/DatabaseTypeAnnotation__.js +11 -13
  161. package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
  162. package/out/concepts/DefaultValue__.d.ts +7 -19
  163. package/out/concepts/DefaultValue__.js +6 -56
  164. package/out/concepts/DefaultValue__.js.map +1 -1
  165. package/out/concepts/Destination__.d.ts +10 -21
  166. package/out/concepts/Destination__.js +15 -55
  167. package/out/concepts/Destination__.js.map +1 -1
  168. package/out/concepts/End__.d.ts +5 -4
  169. package/out/concepts/End__.js +7 -8
  170. package/out/concepts/End__.js.map +1 -1
  171. package/out/concepts/EntityIndex__.d.ts +20 -26
  172. package/out/concepts/EntityIndex__.js +40 -39
  173. package/out/concepts/EntityIndex__.js.map +1 -1
  174. package/out/concepts/EntityProperty__.d.ts +17 -56
  175. package/out/concepts/EntityProperty__.js +70 -181
  176. package/out/concepts/EntityProperty__.js.map +1 -1
  177. package/out/concepts/Entity__.d.ts +18 -26
  178. package/out/concepts/Entity__.js +38 -98
  179. package/out/concepts/Entity__.js.map +1 -1
  180. package/out/concepts/EnumItem__.d.ts +15 -21
  181. package/out/concepts/EnumItem__.js +27 -31
  182. package/out/concepts/EnumItem__.js.map +1 -1
  183. package/out/concepts/EnumSelectSetter__.d.ts +109 -0
  184. package/out/concepts/EnumSelectSetter__.js +163 -0
  185. package/out/concepts/EnumSelectSetter__.js.map +1 -0
  186. package/out/concepts/Enum__.d.ts +10 -28
  187. package/out/concepts/Enum__.js +35 -102
  188. package/out/concepts/Enum__.js.map +1 -1
  189. package/out/concepts/EventDeclaration__.d.ts +41 -0
  190. package/out/concepts/EventDeclaration__.js +81 -0
  191. package/out/concepts/EventDeclaration__.js.map +1 -0
  192. package/out/concepts/Event__.d.ts +16 -27
  193. package/out/concepts/Event__.js +37 -78
  194. package/out/concepts/Event__.js.map +1 -1
  195. package/out/concepts/ExternalDestination__.d.ts +8 -25
  196. package/out/concepts/ExternalDestination__.js +8 -58
  197. package/out/concepts/ExternalDestination__.js.map +1 -1
  198. package/out/concepts/ForEachStatement__.d.ts +7 -55
  199. package/out/concepts/ForEachStatement__.js +6 -128
  200. package/out/concepts/ForEachStatement__.js.map +1 -1
  201. package/out/concepts/FrontendLibrary__.d.ts +38 -46
  202. package/out/concepts/FrontendLibrary__.js +55 -121
  203. package/out/concepts/FrontendLibrary__.js.map +1 -1
  204. package/out/concepts/FrontendType__.d.ts +8 -12
  205. package/out/concepts/FrontendType__.js +15 -109
  206. package/out/concepts/FrontendType__.js.map +1 -1
  207. package/out/concepts/FrontendVariable__.d.ts +5 -0
  208. package/out/concepts/FrontendVariable__.js +8 -1
  209. package/out/concepts/FrontendVariable__.js.map +1 -1
  210. package/out/concepts/Frontend__.d.ts +9 -41
  211. package/out/concepts/Frontend__.js +36 -209
  212. package/out/concepts/Frontend__.js.map +1 -1
  213. package/out/concepts/Function__.d.ts +13 -34
  214. package/out/concepts/Function__.js +22 -194
  215. package/out/concepts/Function__.js.map +1 -1
  216. package/out/concepts/I18nInfo__.d.ts +6 -7
  217. package/out/concepts/I18nInfo__.js +14 -14
  218. package/out/concepts/I18nInfo__.js.map +1 -1
  219. package/out/concepts/IconSetter__.d.ts +29 -0
  220. package/out/concepts/IconSetter__.js +62 -0
  221. package/out/concepts/IconSetter__.js.map +1 -0
  222. package/out/concepts/Identifier__.d.ts +5 -0
  223. package/out/concepts/Identifier__.js +20 -6
  224. package/out/concepts/Identifier__.js.map +1 -1
  225. package/out/concepts/IfStatement__.d.ts +5 -12
  226. package/out/concepts/IfStatement__.js +5 -44
  227. package/out/concepts/IfStatement__.js.map +1 -1
  228. package/out/concepts/ImageSetter__.d.ts +25 -0
  229. package/out/concepts/ImageSetter__.js +53 -0
  230. package/out/concepts/ImageSetter__.js.map +1 -0
  231. package/out/concepts/ImportedInterface__.d.ts +9 -0
  232. package/out/concepts/ImportedInterface__.js +11 -1
  233. package/out/concepts/ImportedInterface__.js.map +1 -1
  234. package/out/concepts/InputSetter__.d.ts +29 -0
  235. package/out/concepts/InputSetter__.js +62 -0
  236. package/out/concepts/InputSetter__.js.map +1 -0
  237. package/out/concepts/Integration__.d.ts +7 -26
  238. package/out/concepts/Integration__.js +6 -93
  239. package/out/concepts/Integration__.js.map +1 -1
  240. package/out/concepts/InterfaceParam__.d.ts +34 -62
  241. package/out/concepts/InterfaceParam__.js +63 -147
  242. package/out/concepts/InterfaceParam__.js.map +1 -1
  243. package/out/concepts/Interface__.d.ts +42 -48
  244. package/out/concepts/Interface__.js +89 -158
  245. package/out/concepts/Interface__.js.map +1 -1
  246. package/out/concepts/JSBlock__.d.ts +5 -4
  247. package/out/concepts/JSBlock__.js +8 -8
  248. package/out/concepts/JSBlock__.js.map +1 -1
  249. package/out/concepts/JavaLogic__.d.ts +5 -0
  250. package/out/concepts/JavaLogic__.js +14 -3
  251. package/out/concepts/JavaLogic__.js.map +1 -1
  252. package/out/concepts/LogicDeclaration__.d.ts +289 -0
  253. package/out/concepts/LogicDeclaration__.js +352 -0
  254. package/out/concepts/LogicDeclaration__.js.map +1 -0
  255. package/out/concepts/LogicItem__.d.ts +39 -45
  256. package/out/concepts/LogicItem__.js +76 -62
  257. package/out/concepts/LogicItem__.js.map +1 -1
  258. package/out/concepts/Logic__.d.ts +45 -63
  259. package/out/concepts/Logic__.js +159 -280
  260. package/out/concepts/Logic__.js.map +1 -1
  261. package/out/concepts/MatchCase__.d.ts +6 -4
  262. package/out/concepts/MatchCase__.js +16 -68
  263. package/out/concepts/MatchCase__.js.map +1 -1
  264. package/out/concepts/Match__.d.ts +8 -14
  265. package/out/concepts/Match__.js +17 -49
  266. package/out/concepts/Match__.js.map +1 -1
  267. package/out/concepts/MemberExpression__.d.ts +8 -23
  268. package/out/concepts/MemberExpression__.js +85 -103
  269. package/out/concepts/MemberExpression__.js.map +1 -1
  270. package/out/concepts/MetadataType__.d.ts +36 -54
  271. package/out/concepts/MetadataType__.js +44 -119
  272. package/out/concepts/MetadataType__.js.map +1 -1
  273. package/out/concepts/MicroApp__.d.ts +5 -6
  274. package/out/concepts/MicroApp__.js +30 -18
  275. package/out/concepts/MicroApp__.js.map +1 -1
  276. package/out/concepts/Module__.d.ts +99 -128
  277. package/out/concepts/Module__.js +133 -532
  278. package/out/concepts/Module__.js.map +1 -1
  279. package/out/concepts/MsgTriggerEvent__.d.ts +31 -33
  280. package/out/concepts/MsgTriggerEvent__.js +39 -67
  281. package/out/concepts/MsgTriggerEvent__.js.map +1 -1
  282. package/out/concepts/MsgTriggerLauncher__.d.ts +11 -14
  283. package/out/concepts/MsgTriggerLauncher__.js +18 -44
  284. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  285. package/out/concepts/MultiApprovalPolicy__.d.ts +8 -9
  286. package/out/concepts/MultiApprovalPolicy__.js +7 -13
  287. package/out/concepts/MultiApprovalPolicy__.js.map +1 -1
  288. package/out/concepts/Namespace__.d.ts +112 -138
  289. package/out/concepts/Namespace__.js +122 -501
  290. package/out/concepts/Namespace__.js.map +1 -1
  291. package/out/concepts/NewComposite__.d.ts +11 -21
  292. package/out/concepts/NewComposite__.js +48 -146
  293. package/out/concepts/NewComposite__.js.map +1 -1
  294. package/out/concepts/NewList__.d.ts +6 -14
  295. package/out/concepts/NewList__.js +7 -77
  296. package/out/concepts/NewList__.js.map +1 -1
  297. package/out/concepts/NewMap__.d.ts +6 -14
  298. package/out/concepts/NewMap__.js +7 -77
  299. package/out/concepts/NewMap__.js.map +1 -1
  300. package/out/concepts/New__.d.ts +6 -0
  301. package/out/concepts/New__.js +9 -0
  302. package/out/concepts/New__.js.map +1 -1
  303. package/out/concepts/NullLiteral__.d.ts +5 -0
  304. package/out/concepts/NullLiteral__.js +5 -0
  305. package/out/concepts/NullLiteral__.js.map +1 -1
  306. package/out/concepts/NumberInputSetter__.d.ts +45 -0
  307. package/out/concepts/NumberInputSetter__.js +98 -0
  308. package/out/concepts/NumberInputSetter__.js.map +1 -0
  309. package/out/concepts/NumericLiteral__.d.ts +6 -13
  310. package/out/concepts/NumericLiteral__.js +8 -45
  311. package/out/concepts/NumericLiteral__.js.map +1 -1
  312. package/out/concepts/OqlQueryComponent__.d.ts +7 -17
  313. package/out/concepts/OqlQueryComponent__.js +16 -53
  314. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  315. package/out/concepts/OverriddenLogic__.d.ts +38 -59
  316. package/out/concepts/OverriddenLogic__.js +55 -252
  317. package/out/concepts/OverriddenLogic__.js.map +1 -1
  318. package/out/concepts/Paginate__.d.ts +59 -0
  319. package/out/concepts/Paginate__.js +158 -0
  320. package/out/concepts/Paginate__.js.map +1 -0
  321. package/out/concepts/ParamWithGroup__.d.ts +13 -10
  322. package/out/concepts/ParamWithGroup__.js +15 -6
  323. package/out/concepts/ParamWithGroup__.js.map +1 -1
  324. package/out/concepts/Param__.d.ts +33 -76
  325. package/out/concepts/Param__.js +63 -159
  326. package/out/concepts/Param__.js.map +1 -1
  327. package/out/concepts/Point__.d.ts +5 -6
  328. package/out/concepts/Point__.js +11 -13
  329. package/out/concepts/Point__.js.map +1 -1
  330. package/out/concepts/ProcessComponent__.d.ts +12 -20
  331. package/out/concepts/ProcessComponent__.js +32 -90
  332. package/out/concepts/ProcessComponent__.js.map +1 -1
  333. package/out/concepts/ProcessElement__.d.ts +21 -66
  334. package/out/concepts/ProcessElement__.js +48 -360
  335. package/out/concepts/ProcessElement__.js.map +1 -1
  336. package/out/concepts/ProcessOutcome__.d.ts +5 -4
  337. package/out/concepts/ProcessOutcome__.js +8 -8
  338. package/out/concepts/ProcessOutcome__.js.map +1 -1
  339. package/out/concepts/ProcessOutcomes__.d.ts +5 -4
  340. package/out/concepts/ProcessOutcomes__.js +6 -7
  341. package/out/concepts/ProcessOutcomes__.js.map +1 -1
  342. package/out/concepts/Process__.d.ts +16 -26
  343. package/out/concepts/Process__.js +29 -186
  344. package/out/concepts/Process__.js.map +1 -1
  345. package/out/concepts/PropDeclaration__.d.ts +99 -0
  346. package/out/concepts/PropDeclaration__.js +183 -0
  347. package/out/concepts/PropDeclaration__.js.map +1 -0
  348. package/out/concepts/PropertySelectSetter__.d.ts +25 -0
  349. package/out/concepts/PropertySelectSetter__.js +53 -0
  350. package/out/concepts/PropertySelectSetter__.js.map +1 -0
  351. package/out/concepts/QueryAggregateExpression__.d.ts +6 -13
  352. package/out/concepts/QueryAggregateExpression__.js +11 -46
  353. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  354. package/out/concepts/QueryFieldExpression__.d.ts +5 -0
  355. package/out/concepts/QueryFieldExpression__.js +17 -4
  356. package/out/concepts/QueryFieldExpression__.js.map +1 -1
  357. package/out/concepts/QueryFromExpression__.d.ts +6 -3
  358. package/out/concepts/QueryFromExpression__.js +14 -34
  359. package/out/concepts/QueryFromExpression__.js.map +1 -1
  360. package/out/concepts/QueryGroupByExpression__.d.ts +5 -12
  361. package/out/concepts/QueryGroupByExpression__.js +5 -44
  362. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  363. package/out/concepts/QueryJoinExpression__.d.ts +29 -26
  364. package/out/concepts/QueryJoinExpression__.js +34 -52
  365. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  366. package/out/concepts/QueryLimitExpression__.d.ts +5 -22
  367. package/out/concepts/QueryLimitExpression__.js +5 -57
  368. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  369. package/out/concepts/QueryOrderByExpression__.d.ts +5 -22
  370. package/out/concepts/QueryOrderByExpression__.js +5 -57
  371. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  372. package/out/concepts/QuerySelectExpression__.d.ts +37 -34
  373. package/out/concepts/QuerySelectExpression__.js +37 -59
  374. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  375. package/out/concepts/Rect__.d.ts +5 -6
  376. package/out/concepts/Rect__.js +17 -15
  377. package/out/concepts/Rect__.js.map +1 -1
  378. package/out/concepts/Return__.d.ts +28 -56
  379. package/out/concepts/Return__.js +50 -139
  380. package/out/concepts/Return__.js.map +1 -1
  381. package/out/concepts/Role__.d.ts +5 -11
  382. package/out/concepts/Role__.js +21 -21
  383. package/out/concepts/Role__.js.map +1 -1
  384. package/out/concepts/SelectMembers__.d.ts +8 -20
  385. package/out/concepts/SelectMembers__.js +10 -58
  386. package/out/concepts/SelectMembers__.js.map +1 -1
  387. package/out/concepts/SequentialPolicy__.d.ts +5 -0
  388. package/out/concepts/SequentialPolicy__.js +5 -0
  389. package/out/concepts/SequentialPolicy__.js.map +1 -1
  390. package/out/concepts/SetterOption__.d.ts +49 -0
  391. package/out/concepts/SetterOption__.js +99 -0
  392. package/out/concepts/SetterOption__.js.map +1 -0
  393. package/out/concepts/SlotDeclaration__.d.ts +213 -0
  394. package/out/concepts/SlotDeclaration__.js +287 -0
  395. package/out/concepts/SlotDeclaration__.js.map +1 -0
  396. package/out/concepts/Slot__.d.ts +7 -31
  397. package/out/concepts/Slot__.js +27 -72
  398. package/out/concepts/Slot__.js.map +1 -1
  399. package/out/concepts/SqlQueryComponent__.d.ts +6 -17
  400. package/out/concepts/SqlQueryComponent__.js +14 -54
  401. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  402. package/out/concepts/Start__.d.ts +5 -4
  403. package/out/concepts/Start__.js +5 -7
  404. package/out/concepts/Start__.js.map +1 -1
  405. package/out/concepts/StaticString__.d.ts +6 -12
  406. package/out/concepts/StaticString__.js +14 -21
  407. package/out/concepts/StaticString__.js.map +1 -1
  408. package/out/concepts/StringInterpolation__.d.ts +5 -2
  409. package/out/concepts/StringInterpolation__.js +7 -33
  410. package/out/concepts/StringInterpolation__.js.map +1 -1
  411. package/out/concepts/StringLiteral__.d.ts +6 -1
  412. package/out/concepts/StringLiteral__.js +16 -2
  413. package/out/concepts/StringLiteral__.js.map +1 -1
  414. package/out/concepts/StructureProperty__.d.ts +13 -49
  415. package/out/concepts/StructureProperty__.js +35 -137
  416. package/out/concepts/StructureProperty__.js.map +1 -1
  417. package/out/concepts/Structure__.d.ts +13 -21
  418. package/out/concepts/Structure__.js +28 -90
  419. package/out/concepts/Structure__.js.map +1 -1
  420. package/out/concepts/SwitchCase__.d.ts +6 -13
  421. package/out/concepts/SwitchCase__.js +6 -45
  422. package/out/concepts/SwitchCase__.js.map +1 -1
  423. package/out/concepts/SwitchSetter__.d.ts +25 -0
  424. package/out/concepts/SwitchSetter__.js +53 -0
  425. package/out/concepts/SwitchSetter__.js.map +1 -0
  426. package/out/concepts/SwitchStatement__.d.ts +6 -3
  427. package/out/concepts/SwitchStatement__.js +5 -31
  428. package/out/concepts/SwitchStatement__.js.map +1 -1
  429. package/out/concepts/ThemeVariable__.d.ts +29 -0
  430. package/out/concepts/ThemeVariable__.js +58 -0
  431. package/out/concepts/ThemeVariable__.js.map +1 -0
  432. package/out/concepts/Theme__.d.ts +5 -6
  433. package/out/concepts/Theme__.js +11 -13
  434. package/out/concepts/Theme__.js.map +1 -1
  435. package/out/concepts/Transactional__.d.ts +29 -35
  436. package/out/concepts/Transactional__.js +54 -56
  437. package/out/concepts/Transactional__.js.map +1 -1
  438. package/out/concepts/TriggerEvent__.d.ts +8 -20
  439. package/out/concepts/TriggerEvent__.js +13 -57
  440. package/out/concepts/TriggerEvent__.js.map +1 -1
  441. package/out/concepts/TriggerLauncher__.d.ts +12 -17
  442. package/out/concepts/TriggerLauncher__.js +30 -27
  443. package/out/concepts/TriggerLauncher__.js.map +1 -1
  444. package/out/concepts/TypeAnnotation__.d.ts +8 -11
  445. package/out/concepts/TypeAnnotation__.js +40 -89
  446. package/out/concepts/TypeAnnotation__.js.map +1 -1
  447. package/out/concepts/TypeParam__.d.ts +5 -0
  448. package/out/concepts/TypeParam__.js +12 -1
  449. package/out/concepts/TypeParam__.js.map +1 -1
  450. package/out/concepts/UnaryExpression__.d.ts +5 -12
  451. package/out/concepts/UnaryExpression__.js +8 -45
  452. package/out/concepts/UnaryExpression__.js.map +1 -1
  453. package/out/concepts/Unparsed__.d.ts +5 -0
  454. package/out/concepts/Unparsed__.js +8 -1
  455. package/out/concepts/Unparsed__.js.map +1 -1
  456. package/out/concepts/UseComponent__.d.ts +6 -7
  457. package/out/concepts/UseComponent__.js +11 -13
  458. package/out/concepts/UseComponent__.js.map +1 -1
  459. package/out/concepts/ValidationRule__.d.ts +7 -28
  460. package/out/concepts/ValidationRule__.js +18 -71
  461. package/out/concepts/ValidationRule__.js.map +1 -1
  462. package/out/concepts/Variable__.d.ts +30 -58
  463. package/out/concepts/Variable__.js +51 -140
  464. package/out/concepts/Variable__.js.map +1 -1
  465. package/out/concepts/ViewBlockWithImage__.d.ts +33 -0
  466. package/out/concepts/ViewBlockWithImage__.js +63 -0
  467. package/out/concepts/ViewBlockWithImage__.js.map +1 -0
  468. package/out/concepts/ViewBlock__.d.ts +11 -12
  469. package/out/concepts/ViewBlock__.js +22 -18
  470. package/out/concepts/ViewBlock__.js.map +1 -1
  471. package/out/concepts/ViewComponentDeclaration__.d.ts +721 -0
  472. package/out/concepts/ViewComponentDeclaration__.js +808 -0
  473. package/out/concepts/ViewComponentDeclaration__.js.map +1 -0
  474. package/out/concepts/ViewElement__.d.ts +38 -37
  475. package/out/concepts/ViewElement__.js +415 -432
  476. package/out/concepts/ViewElement__.js.map +1 -1
  477. package/out/concepts/View__.d.ts +39 -46
  478. package/out/concepts/View__.js +509 -342
  479. package/out/concepts/View__.js.map +1 -1
  480. package/out/concepts/WhileStatement__.d.ts +6 -13
  481. package/out/concepts/WhileStatement__.js +6 -45
  482. package/out/concepts/WhileStatement__.js.map +1 -1
  483. package/out/concepts/basics/stdlib/nasl.auth.js +68 -33
  484. package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
  485. package/out/concepts/basics/stdlib/nasl.process.js +101 -3
  486. package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
  487. package/out/concepts/basics/stdlib/nasl.util.js +31 -31
  488. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  489. package/out/concepts/index__.d.ts +24 -8
  490. package/out/concepts/index__.js +24 -8
  491. package/out/concepts/index__.js.map +1 -1
  492. package/out/concepts/utils/asserts.d.ts +1079 -313
  493. package/out/concepts/utils/asserts.js +1461 -441
  494. package/out/concepts/utils/asserts.js.map +1 -1
  495. package/out/concepts/utils/types.d.ts +82 -30
  496. package/out/config.d.ts +9 -0
  497. package/out/config.js +5 -0
  498. package/out/config.js.map +1 -1
  499. package/out/decorators/index.d.ts +1 -6
  500. package/out/decorators/index.js +7 -16
  501. package/out/decorators/index.js.map +1 -1
  502. package/out/enums/KEYWORDS.js +2 -0
  503. package/out/enums/KEYWORDS.js.map +1 -1
  504. package/out/generator/genBundleFiles.d.ts +2 -0
  505. package/out/generator/genBundleFiles.js +105 -25
  506. package/out/generator/genBundleFiles.js.map +1 -1
  507. package/out/generator/genReleaseBody.d.ts +2 -4
  508. package/out/generator/genReleaseBody.js +0 -1
  509. package/out/generator/genReleaseBody.js.map +1 -1
  510. package/out/generator/permission.d.ts +5 -1
  511. package/out/generator/permission.js +3 -2
  512. package/out/generator/permission.js.map +1 -1
  513. package/out/index.d.ts +1 -0
  514. package/out/index.js +3 -1
  515. package/out/index.js.map +1 -1
  516. package/out/natural/genNaturalTS.js +2 -5
  517. package/out/natural/genNaturalTS.js.map +1 -1
  518. package/out/natural/index.d.ts +2 -0
  519. package/out/natural/index.js +2 -0
  520. package/out/natural/index.js.map +1 -1
  521. package/out/natural/naslStdlibMap.d.ts +1 -2
  522. package/out/natural/naslStdlibMap.js +32 -23
  523. package/out/natural/naslStdlibMap.js.map +1 -1
  524. package/out/natural/prompt/analyzeClaims.d.ts +1 -0
  525. package/out/natural/prompt/analyzeClaims.js +21 -0
  526. package/out/natural/prompt/analyzeClaims.js.map +1 -0
  527. package/out/natural/prompt/executeClaims.d.ts +1 -0
  528. package/out/natural/prompt/executeClaims.js +73 -0
  529. package/out/natural/prompt/executeClaims.js.map +1 -0
  530. package/out/natural/transformTSCode.js +13 -2
  531. package/out/natural/transformTSCode.js.map +1 -1
  532. package/out/server/createUiTs.d.ts +2 -1
  533. package/out/server/createUiTs.js +133 -161
  534. package/out/server/createUiTs.js.map +1 -1
  535. package/out/server/entity2LogicNamespace.js +1 -15
  536. package/out/server/entity2LogicNamespace.js.map +1 -1
  537. package/out/server/extendBaseNode.js +36 -9
  538. package/out/server/extendBaseNode.js.map +1 -1
  539. package/out/server/formatTsUtils.js +9 -9
  540. package/out/server/formatTsUtils.js.map +1 -1
  541. package/out/server/getConnector.d.ts +1 -0
  542. package/out/server/getConnector.js +38 -35
  543. package/out/server/getConnector.js.map +1 -1
  544. package/out/server/getFunctions.js +3 -3
  545. package/out/server/getFunctions.js.map +1 -1
  546. package/out/server/getLogics.js +51 -15
  547. package/out/server/getLogics.js.map +1 -1
  548. package/out/server/getMemberIdentifier.js +87 -144
  549. package/out/server/getMemberIdentifier.js.map +1 -1
  550. package/out/server/naslServer.d.ts +11 -1
  551. package/out/server/naslServer.js +118 -74
  552. package/out/server/naslServer.js.map +1 -1
  553. package/out/server/translator.js +24 -5
  554. package/out/server/translator.js.map +1 -1
  555. package/out/service/storage/init.d.ts +1 -0
  556. package/out/service/storage/init.js +12 -7
  557. package/out/service/storage/init.js.map +1 -1
  558. package/out/templator/genCreateBlock.js +16 -16
  559. package/out/templator/genCreateBlock.js.map +1 -1
  560. package/out/templator/genCurdEditMultipleKeyBlock.js +23 -23
  561. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  562. package/out/templator/genCurdMultipleKeyBlock.d.ts +2 -2
  563. package/out/templator/genCurdMultipleKeyBlock.js +28 -38
  564. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  565. package/out/templator/genEditTableBlock.js +15 -15
  566. package/out/templator/genEditTableBlock.js.map +1 -1
  567. package/out/templator/genEnumSelectBlock.js +8 -8
  568. package/out/templator/genEnumSelectBlock.js.map +1 -1
  569. package/out/templator/genGridViewBlock.js +18 -20
  570. package/out/templator/genGridViewBlock.js.map +1 -1
  571. package/out/templator/genListViewBlock.js +10 -10
  572. package/out/templator/genListViewBlock.js.map +1 -1
  573. package/out/templator/genQueryComponent.js +32 -37
  574. package/out/templator/genQueryComponent.js.map +1 -1
  575. package/out/templator/genSelectBlock.js +10 -10
  576. package/out/templator/genSelectBlock.js.map +1 -1
  577. package/out/templator/genTableBlock.js +18 -10
  578. package/out/templator/genTableBlock.js.map +1 -1
  579. package/out/templator/genUpdateBlock.js +15 -15
  580. package/out/templator/genUpdateBlock.js.map +1 -1
  581. package/out/templator/utils.d.ts +19 -24
  582. package/out/templator/utils.js +20 -30
  583. package/out/templator/utils.js.map +1 -1
  584. package/out/translator/types.d.ts +2 -0
  585. package/out/utils/index.d.ts +6 -1
  586. package/out/utils/index.js +37 -4
  587. package/out/utils/index.js.map +1 -1
  588. package/out/utils/string.d.ts +12 -0
  589. package/out/utils/string.js +15 -1
  590. package/out/utils/string.js.map +1 -1
  591. package/out/utils/time-slicing/performance.js +3 -3
  592. package/out/utils/time-slicing/performance.js.map +1 -1
  593. package/package.json +1 -1
  594. package/sandbox/stdlib/nasl.auth.ts +4 -0
  595. package/sandbox/stdlib/nasl.collection.ts +5 -3
  596. package/sandbox/stdlib/nasl.core.ts +16 -1
  597. package/sandbox/stdlib/nasl.oql.ts +2 -2
  598. package/sandbox/stdlib/nasl.process.ts +18 -0
  599. package/sandbox/stdlib/nasl.ui.components.h5.ts +1751 -0
  600. package/sandbox/stdlib/nasl.ui.components.pc.ts +3479 -0
  601. package/sandbox/stdlib/nasl.ui.definition.ts +53 -2688
  602. package/sandbox/stdlib/nasl.ui.ts +2 -1
  603. package/sandbox/stdlib/nasl.util.ts +7 -5
  604. package/sandbox-natural/stdlib/nasl.core.ts +3 -0
  605. package/sandbox-natural/stdlib/nasl.oql.ts +4 -3
  606. package/src/automate/engine/utils.js +3 -7
  607. package/src/automate/template/myProcess.js +65 -65
  608. package/src/bak/translator.js +62 -29
  609. package/src/breakpoint/generator/BreakpointNode.ts +9 -0
  610. package/src/breakpoint/shared/constants.ts +1 -0
  611. package/src/breakpoint/shared/utils.ts +1 -1
  612. package/src/common/BaseNode.ts +71 -9
  613. package/src/common/ComponentAPI.ts +6 -3
  614. package/src/common/EventEmitter.ts +1 -0
  615. package/src/concepts/Abort__.ts +8 -8
  616. package/src/concepts/AbstractInterface__.ts +14 -14
  617. package/src/concepts/Anchor__.ts +8 -60
  618. package/src/concepts/AnonymousFunction__.ts +21 -198
  619. package/src/concepts/App__.ts +1151 -1837
  620. package/src/concepts/Argument__.ts +16 -64
  621. package/src/concepts/Assignee__.ts +14 -72
  622. package/src/concepts/AssignmentLine__.ts +9 -14
  623. package/src/concepts/Assignment__.ts +9 -92
  624. package/src/concepts/Attribute__.ts +49 -176
  625. package/src/concepts/AuthInterface__.ts +19 -20
  626. package/src/concepts/AuthLogicForCallInterface__.ts +9 -36
  627. package/src/concepts/AuthLogic__.ts +45 -46
  628. package/src/concepts/BackendVariable__.ts +45 -167
  629. package/src/concepts/Backend__.ts +13 -57
  630. package/src/concepts/BaseSetter__.ts +72 -0
  631. package/src/concepts/BatchAssignment__.ts +18 -105
  632. package/src/concepts/BinaryExpression__.ts +36 -89
  633. package/src/concepts/BindAttribute__.ts +194 -343
  634. package/src/concepts/BindDirective__.ts +80 -135
  635. package/src/concepts/BindEvent__.ts +62 -126
  636. package/src/concepts/BindStyle__.ts +59 -112
  637. package/src/concepts/Block__.ts +8 -34
  638. package/src/concepts/BooleanLiteral__.ts +12 -5
  639. package/src/concepts/BusinessComponent__.ts +201 -502
  640. package/src/concepts/BusinessLogic__.ts +15 -15
  641. package/src/concepts/CallAuthInterface__.ts +10 -39
  642. package/src/concepts/CallConnector__.ts +15 -6
  643. package/src/concepts/CallEvent__.ts +16 -45
  644. package/src/concepts/CallFunction__.ts +104 -134
  645. package/src/concepts/CallInterface__.ts +20 -47
  646. package/src/concepts/CallLogic__.ts +93 -175
  647. package/src/concepts/CallQueryComponent__.ts +226 -520
  648. package/src/concepts/CapsulesSetter__.ts +254 -0
  649. package/src/concepts/Comment__.ts +11 -5
  650. package/src/concepts/CompletionProperty__.ts +29 -100
  651. package/src/concepts/ConfigGroup__.ts +13 -57
  652. package/src/concepts/ConfigPropertyValue__.ts +14 -26
  653. package/src/concepts/ConfigProperty__.ts +28 -68
  654. package/src/concepts/Configuration__.ts +9 -56
  655. package/src/concepts/Connection__.ts +27 -68
  656. package/src/concepts/ConnectorTrigger__.ts +57 -65
  657. package/src/concepts/Connector__.ts +339 -1448
  658. package/src/concepts/Constant__.ts +59 -182
  659. package/src/concepts/CountersignPolicy__.ts +12 -18
  660. package/src/concepts/DataSource__.ts +29 -68
  661. package/src/concepts/DatabaseTypeAnnotation__.ts +14 -19
  662. package/src/concepts/DefaultValue__.ts +10 -74
  663. package/src/concepts/Destination__.ts +28 -80
  664. package/src/concepts/End__.ts +11 -9
  665. package/src/concepts/EntityIndex__.ts +44 -51
  666. package/src/concepts/EntityProperty__.ts +86 -238
  667. package/src/concepts/Entity__.ts +43 -111
  668. package/src/concepts/EnumItem__.ts +29 -40
  669. package/src/concepts/EnumSelectSetter__.ts +254 -0
  670. package/src/concepts/Enum__.ts +38 -129
  671. package/src/concepts/EventDeclaration__.ts +95 -0
  672. package/src/concepts/Event__.ts +43 -92
  673. package/src/concepts/ExternalDestination__.ts +17 -91
  674. package/src/concepts/ForEachStatement__.ts +15 -198
  675. package/src/concepts/FrontendLibrary__.ts +111 -161
  676. package/src/concepts/FrontendType__.ts +21 -118
  677. package/src/concepts/FrontendVariable__.ts +10 -4
  678. package/src/concepts/Frontend__.ts +44 -250
  679. package/src/concepts/Function__.ts +28 -220
  680. package/src/concepts/I18nInfo__.ts +18 -20
  681. package/src/concepts/IconSetter__.ts +72 -0
  682. package/src/concepts/Identifier__.ts +27 -16
  683. package/src/concepts/IfStatement__.ts +9 -60
  684. package/src/concepts/ImageSetter__.ts +65 -0
  685. package/src/concepts/ImportedInterface__.ts +17 -4
  686. package/src/concepts/InputSetter__.ts +72 -0
  687. package/src/concepts/Integration__.ts +10 -114
  688. package/src/concepts/InterfaceParam__.ts +67 -186
  689. package/src/concepts/Interface__.ts +106 -200
  690. package/src/concepts/JSBlock__.ts +11 -11
  691. package/src/concepts/JavaLogic__.ts +19 -9
  692. package/src/concepts/LogicDeclaration__.ts +657 -0
  693. package/src/concepts/LogicItem__.ts +91 -96
  694. package/src/concepts/Logic__.ts +287 -434
  695. package/src/concepts/MatchCase__.ts +22 -72
  696. package/src/concepts/Match__.ts +23 -67
  697. package/src/concepts/MemberExpression__.ts +136 -132
  698. package/src/concepts/MetadataType__.ts +72 -167
  699. package/src/concepts/MicroApp__.ts +34 -29
  700. package/src/concepts/Module__.ts +259 -681
  701. package/src/concepts/MsgTriggerEvent__.ts +44 -79
  702. package/src/concepts/MsgTriggerLauncher__.ts +21 -54
  703. package/src/concepts/MultiApprovalPolicy__.ts +10 -18
  704. package/src/concepts/Namespace__.ts +278 -652
  705. package/src/concepts/NewComposite__.ts +62 -170
  706. package/src/concepts/NewList__.ts +12 -94
  707. package/src/concepts/NewMap__.ts +12 -94
  708. package/src/concepts/New__.ts +13 -2
  709. package/src/concepts/NullLiteral__.ts +8 -2
  710. package/src/concepts/NumberInputSetter__.ts +104 -0
  711. package/src/concepts/NumericLiteral__.ts +13 -63
  712. package/src/concepts/OqlQueryComponent__.ts +23 -71
  713. package/src/concepts/OverriddenLogic__.ts +71 -287
  714. package/src/concepts/Paginate__.ts +185 -0
  715. package/src/concepts/ParamWithGroup__.ts +26 -17
  716. package/src/concepts/Param__.ts +70 -211
  717. package/src/concepts/Point__.ts +14 -19
  718. package/src/concepts/ProcessComponent__.ts +33 -104
  719. package/src/concepts/ProcessElement__.ts +67 -422
  720. package/src/concepts/ProcessOutcome__.ts +12 -11
  721. package/src/concepts/ProcessOutcomes__.ts +9 -9
  722. package/src/concepts/Process__.ts +36 -200
  723. package/src/concepts/PropDeclaration__.ts +209 -0
  724. package/src/concepts/PropertySelectSetter__.ts +65 -0
  725. package/src/concepts/QueryAggregateExpression__.ts +18 -65
  726. package/src/concepts/QueryFieldExpression__.ts +22 -10
  727. package/src/concepts/QueryFromExpression__.ts +21 -41
  728. package/src/concepts/QueryGroupByExpression__.ts +8 -60
  729. package/src/concepts/QueryJoinExpression__.ts +64 -101
  730. package/src/concepts/QueryLimitExpression__.ts +9 -86
  731. package/src/concepts/QueryOrderByExpression__.ts +9 -86
  732. package/src/concepts/QuerySelectExpression__.ts +70 -118
  733. package/src/concepts/Rect__.ts +22 -23
  734. package/src/concepts/Return__.ts +60 -185
  735. package/src/concepts/Role__.ts +22 -29
  736. package/src/concepts/SelectMembers__.ts +16 -77
  737. package/src/concepts/SequentialPolicy__.ts +7 -2
  738. package/src/concepts/SetterOption__.ts +111 -0
  739. package/src/concepts/SlotDeclaration__.ts +488 -0
  740. package/src/concepts/Slot__.ts +35 -105
  741. package/src/concepts/SqlQueryComponent__.ts +21 -73
  742. package/src/concepts/Start__.ts +7 -8
  743. package/src/concepts/StaticString__.ts +16 -26
  744. package/src/concepts/StringInterpolation__.ts +9 -36
  745. package/src/concepts/StringLiteral__.ts +16 -7
  746. package/src/concepts/StructureProperty__.ts +38 -176
  747. package/src/concepts/Structure__.ts +32 -102
  748. package/src/concepts/SwitchCase__.ts +10 -62
  749. package/src/concepts/SwitchSetter__.ts +65 -0
  750. package/src/concepts/SwitchStatement__.ts +9 -35
  751. package/src/concepts/ThemeVariable__.ts +71 -0
  752. package/src/concepts/Theme__.ts +15 -17
  753. package/src/concepts/Transactional__.ts +67 -77
  754. package/src/concepts/TriggerEvent__.ts +14 -76
  755. package/src/concepts/TriggerLauncher__.ts +34 -38
  756. package/src/concepts/TypeAnnotation__.ts +50 -100
  757. package/src/concepts/TypeParam__.ts +10 -5
  758. package/src/concepts/UnaryExpression__.ts +12 -62
  759. package/src/concepts/Unparsed__.ts +11 -5
  760. package/src/concepts/UseComponent__.ts +14 -19
  761. package/src/concepts/ValidationRule__.ts +26 -105
  762. package/src/concepts/Variable__.ts +71 -195
  763. package/src/concepts/ViewBlockWithImage__.ts +80 -0
  764. package/src/concepts/ViewBlock__.ts +24 -27
  765. package/src/concepts/ViewComponentDeclaration__.ts +1670 -0
  766. package/src/concepts/ViewElement__.ts +502 -486
  767. package/src/concepts/View__.ts +576 -389
  768. package/src/concepts/WhileStatement__.ts +11 -62
  769. package/src/concepts/basics/stdlib/nasl.auth.ts +97 -34
  770. package/src/concepts/basics/stdlib/nasl.process.ts +103 -7
  771. package/src/concepts/basics/stdlib/nasl.util.ts +31 -31
  772. package/src/concepts/index__.ts +24 -8
  773. package/src/concepts/utils/asserts.ts +1544 -446
  774. package/src/concepts/utils/types.ts +121 -41
  775. package/src/config.ts +6 -0
  776. package/src/decorators/index.ts +3 -8
  777. package/src/enums/KEYWORDS.ts +2 -0
  778. package/src/generator/genBundleFiles.ts +129 -29
  779. package/src/generator/genReleaseBody.ts +0 -2
  780. package/src/generator/permission.ts +2 -2
  781. package/src/index.ts +1 -0
  782. package/src/natural/genNaturalTS.ts +2 -2
  783. package/src/natural/index.ts +3 -0
  784. package/src/natural/naslStdlibMap.ts +25 -19
  785. package/src/natural/prompt/analyzeClaims.ts +16 -0
  786. package/src/natural/prompt/executeClaims.ts +69 -0
  787. package/src/natural/transformTSCode.ts +12 -2
  788. package/src/server/createUiTs.ts +121 -155
  789. package/src/server/entity2LogicNamespace.ts +1 -16
  790. package/src/server/extendBaseNode.ts +46 -15
  791. package/src/server/formatTsUtils.ts +13 -13
  792. package/src/server/getConnector.ts +43 -35
  793. package/src/server/getFunctions.ts +3 -3
  794. package/src/server/getLogics.ts +34 -17
  795. package/src/server/getMemberIdentifier.ts +101 -145
  796. package/src/server/naslServer.ts +136 -74
  797. package/src/server/translator.ts +23 -5
  798. package/src/service/storage/init.ts +15 -8
  799. package/src/templator/genCreateBlock.ts +16 -16
  800. package/src/templator/genCurdEditMultipleKeyBlock.ts +23 -23
  801. package/src/templator/genCurdMultipleKeyBlock.ts +34 -44
  802. package/src/templator/genEditTableBlock.ts +15 -15
  803. package/src/templator/genEnumSelectBlock.ts +8 -8
  804. package/src/templator/genGridViewBlock.ts +18 -20
  805. package/src/templator/genListViewBlock.ts +10 -10
  806. package/src/templator/genQueryComponent.ts +33 -38
  807. package/src/templator/genSelectBlock.ts +10 -10
  808. package/src/templator/genTableBlock.ts +20 -12
  809. package/src/templator/genUpdateBlock.ts +15 -15
  810. package/src/templator/utils.ts +21 -30
  811. package/src/translator/types.ts +4 -0
  812. package/src/utils/index.ts +40 -5
  813. package/src/utils/string.ts +14 -0
  814. package/src/utils/time-slicing/performance.ts +3 -3
  815. package/test/concepts/call-interface/__snapshots__/getQuickInfoOffset.spec.ts.snap +1 -1
  816. package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -1
  817. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +7 -8
  818. package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +5 -5
  819. package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +2 -2
  820. package/test/concepts/member-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -1
  821. package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +1 -1
  822. package/test/concepts/member-expression/fixtures/elements.table-view.data.json +363 -10
  823. package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +655 -611
  824. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +127 -6
  825. package/test/concepts/view-element/fixtures/table-data-source-calllogic-with-server-validation.json +2074 -0
  826. package/test/concepts/view-element/toEmbeddedTS.spec.ts +11 -0
  827. package/test/concepts/view-element/toVue.spec.ts +0 -1
  828. package/ts-worker/src/start.js +1 -0
  829. package/out/concepts/ViewComponent__.d.ts +0 -568
  830. package/out/concepts/ViewComponent__.js +0 -809
  831. package/out/concepts/ViewComponent__.js.map +0 -1
  832. package/src/concepts/ViewComponent__.ts +0 -1444
@@ -24,18 +24,31 @@ import type { BindAttribute } from '../BindAttribute__';
24
24
  import type { BindDirective } from '../BindDirective__';
25
25
  import type { BindEvent } from '../BindEvent__';
26
26
  import type { BindStyle } from '../BindStyle__';
27
- import type { ViewComponent } from '../ViewComponent__';
27
+ import type { ThemeVariable } from '../ThemeVariable__';
28
+ import type { BaseSetter } from '../BaseSetter__';
29
+ import type { InputSetter } from '../InputSetter__';
30
+ import type { SwitchSetter } from '../SwitchSetter__';
31
+ import type { SetterOption } from '../SetterOption__';
32
+ import type { EnumSelectSetter } from '../EnumSelectSetter__';
33
+ import type { CapsulesSetter } from '../CapsulesSetter__';
34
+ import type { NumberInputSetter } from '../NumberInputSetter__';
35
+ import type { IconSetter } from '../IconSetter__';
36
+ import type { ImageSetter } from '../ImageSetter__';
37
+ import type { PropertySelectSetter } from '../PropertySelectSetter__';
38
+ import type { ViewComponentDeclaration } from '../ViewComponentDeclaration__';
28
39
  import type { BusinessComponent } from '../BusinessComponent__';
29
40
  import type { Attribute } from '../Attribute__';
30
41
  import type { Event } from '../Event__';
31
- import type { Slot } from '../Slot__';
42
+ import type { PropDeclaration } from '../PropDeclaration__';
43
+ import type { EventDeclaration } from '../EventDeclaration__';
44
+ import type { SlotDeclaration } from '../SlotDeclaration__';
45
+ import type { LogicDeclaration } from '../LogicDeclaration__';
32
46
  import type { Theme } from '../Theme__';
33
- import type { StaticString } from '../StaticString__';
34
47
  import type { Logic } from '../Logic__';
35
48
  import type { AuthLogic } from '../AuthLogic__';
36
- import type { BusinessLogic } from '../BusinessLogic__';
37
49
  import type { AuthLogicForCallInterface } from '../AuthLogicForCallInterface__';
38
50
  import type { OverriddenLogic } from '../OverriddenLogic__';
51
+ import type { BusinessLogic } from '../BusinessLogic__';
39
52
  import type { AbstractInterface } from '../AbstractInterface__';
40
53
  import type { Param } from '../Param__';
41
54
  import type { ParamWithGroup } from '../ParamWithGroup__';
@@ -47,8 +60,8 @@ import type { Constant } from '../Constant__';
47
60
  import type { LogicItem } from '../LogicItem__';
48
61
  import type { Function } from '../Function__';
49
62
  import type { AnonymousFunction } from '../AnonymousFunction__';
50
- import type { Interface } from '../Interface__';
51
63
  import type { ImportedInterface } from '../ImportedInterface__';
64
+ import type { Interface } from '../Interface__';
52
65
  import type { InterfaceParam } from '../InterfaceParam__';
53
66
  import type { Transactional } from '../Transactional__';
54
67
  import type { DefaultValue } from '../DefaultValue__';
@@ -80,6 +93,7 @@ import type { NullLiteral } from '../NullLiteral__';
80
93
  import type { BooleanLiteral } from '../BooleanLiteral__';
81
94
  import type { StringLiteral } from '../StringLiteral__';
82
95
  import type { StringInterpolation } from '../StringInterpolation__';
96
+ import type { StaticString } from '../StaticString__';
83
97
  import type { NumericLiteral } from '../NumericLiteral__';
84
98
  import type { BinaryExpression } from '../BinaryExpression__';
85
99
  import type { MatchCase } from '../MatchCase__';
@@ -91,6 +105,7 @@ import type { New } from '../New__';
91
105
  import type { NewComposite } from '../NewComposite__';
92
106
  import type { NewList } from '../NewList__';
93
107
  import type { NewMap } from '../NewMap__';
108
+ import type { Paginate } from '../Paginate__';
94
109
  import type { CallQueryComponent } from '../CallQueryComponent__';
95
110
  import type { QueryFromExpression } from '../QueryFromExpression__';
96
111
  import type { QueryJoinExpression } from '../QueryJoinExpression__';
@@ -105,12 +120,12 @@ import type { OqlQueryComponent } from '../OqlQueryComponent__';
105
120
  import type { Process } from '../Process__';
106
121
  import type { ProcessElement } from '../ProcessElement__';
107
122
  import type { ProcessComponent } from '../ProcessComponent__';
108
- import type { ProcessOutcome } from '../ProcessOutcome__';
109
- import type { Assignee } from '../Assignee__';
110
- import type { ProcessOutcomes } from '../ProcessOutcomes__';
111
123
  import type { MultiApprovalPolicy } from '../MultiApprovalPolicy__';
112
124
  import type { SequentialPolicy } from '../SequentialPolicy__';
113
125
  import type { CountersignPolicy } from '../CountersignPolicy__';
126
+ import type { ProcessOutcome } from '../ProcessOutcome__';
127
+ import type { Assignee } from '../Assignee__';
128
+ import type { ProcessOutcomes } from '../ProcessOutcomes__';
114
129
  import type { Role } from '../Role__';
115
130
  import type { Configuration } from '../Configuration__';
116
131
  import type { ConfigGroup } from '../ConfigGroup__';
@@ -125,6 +140,7 @@ import type { SelectMembers } from '../SelectMembers__';
125
140
  import type { AssignmentLine } from '../AssignmentLine__';
126
141
  import type { FrontendLibrary } from '../FrontendLibrary__';
127
142
  import type { ViewBlock } from '../ViewBlock__';
143
+ import type { ViewBlockWithImage } from '../ViewBlockWithImage__';
128
144
  import type { AuthInterface } from '../AuthInterface__';
129
145
  import type { CallAuthInterface } from '../CallAuthInterface__';
130
146
  import type { TriggerEvent } from '../TriggerEvent__';
@@ -135,7 +151,7 @@ import type { MsgTriggerLauncher } from '../MsgTriggerLauncher__';
135
151
  import type { Connector } from '../Connector__';
136
152
  import type { CallConnector } from '../CallConnector__';
137
153
  import type { Connection } from '../Connection__';
138
- import type * as Type from './types';
154
+ import type * as types from './types';
139
155
  import type { BaseNode } from '../../common';
140
156
  import type { FileNode } from '../../utils';
141
157
 
@@ -564,18 +580,168 @@ export function isStrictBindStyle(node: unknown): node is BindStyle {
564
580
  }
565
581
 
566
582
  /**
567
- * 严格判断输入为 ViewComponent 节点
583
+ * 严格判断输入为 ThemeVariable 节点
584
+ *
585
+ * @description 仅判断节点本身,不包含继承类
586
+ * @example
587
+ * ```ts
588
+ * if (isStrictThemeVariable(node)) {
589
+ * // 在这个花括号内,node 的类型为 ThemeVariable
590
+ * }
591
+ * ```
592
+ */
593
+ export function isStrictThemeVariable(node: unknown): node is ThemeVariable {
594
+ return isBaseNode(node) && node.concept === 'ThemeVariable';
595
+ }
596
+
597
+ /**
598
+ * 严格判断输入为 InputSetter 节点
599
+ *
600
+ * @description 仅判断节点本身,不包含继承类
601
+ * @example
602
+ * ```ts
603
+ * if (isStrictInputSetter(node)) {
604
+ * // 在这个花括号内,node 的类型为 InputSetter
605
+ * }
606
+ * ```
607
+ */
608
+ export function isStrictInputSetter(node: unknown): node is InputSetter {
609
+ return isBaseNode(node) && node.concept === 'InputSetter';
610
+ }
611
+
612
+ /**
613
+ * 严格判断输入为 SwitchSetter 节点
614
+ *
615
+ * @description 仅判断节点本身,不包含继承类
616
+ * @example
617
+ * ```ts
618
+ * if (isStrictSwitchSetter(node)) {
619
+ * // 在这个花括号内,node 的类型为 SwitchSetter
620
+ * }
621
+ * ```
622
+ */
623
+ export function isStrictSwitchSetter(node: unknown): node is SwitchSetter {
624
+ return isBaseNode(node) && node.concept === 'SwitchSetter';
625
+ }
626
+
627
+ /**
628
+ * 严格判断输入为 SetterOption 节点
629
+ *
630
+ * @description 仅判断节点本身,不包含继承类
631
+ * @example
632
+ * ```ts
633
+ * if (isStrictSetterOption(node)) {
634
+ * // 在这个花括号内,node 的类型为 SetterOption
635
+ * }
636
+ * ```
637
+ */
638
+ export function isStrictSetterOption(node: unknown): node is SetterOption {
639
+ return isBaseNode(node) && node.concept === 'SetterOption';
640
+ }
641
+
642
+ /**
643
+ * 严格判断输入为 EnumSelectSetter 节点
644
+ *
645
+ * @description 仅判断节点本身,不包含继承类
646
+ * @example
647
+ * ```ts
648
+ * if (isStrictEnumSelectSetter(node)) {
649
+ * // 在这个花括号内,node 的类型为 EnumSelectSetter
650
+ * }
651
+ * ```
652
+ */
653
+ export function isStrictEnumSelectSetter(node: unknown): node is EnumSelectSetter {
654
+ return isBaseNode(node) && node.concept === 'EnumSelectSetter';
655
+ }
656
+
657
+ /**
658
+ * 严格判断输入为 CapsulesSetter 节点
659
+ *
660
+ * @description 仅判断节点本身,不包含继承类
661
+ * @example
662
+ * ```ts
663
+ * if (isStrictCapsulesSetter(node)) {
664
+ * // 在这个花括号内,node 的类型为 CapsulesSetter
665
+ * }
666
+ * ```
667
+ */
668
+ export function isStrictCapsulesSetter(node: unknown): node is CapsulesSetter {
669
+ return isBaseNode(node) && node.concept === 'CapsulesSetter';
670
+ }
671
+
672
+ /**
673
+ * 严格判断输入为 NumberInputSetter 节点
674
+ *
675
+ * @description 仅判断节点本身,不包含继承类
676
+ * @example
677
+ * ```ts
678
+ * if (isStrictNumberInputSetter(node)) {
679
+ * // 在这个花括号内,node 的类型为 NumberInputSetter
680
+ * }
681
+ * ```
682
+ */
683
+ export function isStrictNumberInputSetter(node: unknown): node is NumberInputSetter {
684
+ return isBaseNode(node) && node.concept === 'NumberInputSetter';
685
+ }
686
+
687
+ /**
688
+ * 严格判断输入为 IconSetter 节点
689
+ *
690
+ * @description 仅判断节点本身,不包含继承类
691
+ * @example
692
+ * ```ts
693
+ * if (isStrictIconSetter(node)) {
694
+ * // 在这个花括号内,node 的类型为 IconSetter
695
+ * }
696
+ * ```
697
+ */
698
+ export function isStrictIconSetter(node: unknown): node is IconSetter {
699
+ return isBaseNode(node) && node.concept === 'IconSetter';
700
+ }
701
+
702
+ /**
703
+ * 严格判断输入为 ImageSetter 节点
704
+ *
705
+ * @description 仅判断节点本身,不包含继承类
706
+ * @example
707
+ * ```ts
708
+ * if (isStrictImageSetter(node)) {
709
+ * // 在这个花括号内,node 的类型为 ImageSetter
710
+ * }
711
+ * ```
712
+ */
713
+ export function isStrictImageSetter(node: unknown): node is ImageSetter {
714
+ return isBaseNode(node) && node.concept === 'ImageSetter';
715
+ }
716
+
717
+ /**
718
+ * 严格判断输入为 PropertySelectSetter 节点
719
+ *
720
+ * @description 仅判断节点本身,不包含继承类
721
+ * @example
722
+ * ```ts
723
+ * if (isStrictPropertySelectSetter(node)) {
724
+ * // 在这个花括号内,node 的类型为 PropertySelectSetter
725
+ * }
726
+ * ```
727
+ */
728
+ export function isStrictPropertySelectSetter(node: unknown): node is PropertySelectSetter {
729
+ return isBaseNode(node) && node.concept === 'PropertySelectSetter';
730
+ }
731
+
732
+ /**
733
+ * 严格判断输入为 ViewComponentDeclaration 节点
568
734
  *
569
735
  * @description 仅判断节点本身,不包含继承类
570
736
  * @example
571
737
  * ```ts
572
- * if (isStrictViewComponent(node)) {
573
- * // 在这个花括号内,node 的类型为 ViewComponent
738
+ * if (isStrictViewComponentDeclaration(node)) {
739
+ * // 在这个花括号内,node 的类型为 ViewComponentDeclaration
574
740
  * }
575
741
  * ```
576
742
  */
577
- export function isStrictViewComponent(node: unknown): node is ViewComponent {
578
- return isBaseNode(node) && node.concept === 'ViewComponent';
743
+ export function isStrictViewComponentDeclaration(node: unknown): node is ViewComponentDeclaration {
744
+ return isBaseNode(node) && node.concept === 'ViewComponentDeclaration';
579
745
  }
580
746
 
581
747
  /**
@@ -624,93 +790,108 @@ export function isStrictEvent(node: unknown): node is Event {
624
790
  }
625
791
 
626
792
  /**
627
- * 严格判断输入为 Slot 节点
793
+ * 严格判断输入为 PropDeclaration 节点
628
794
  *
629
795
  * @description 仅判断节点本身,不包含继承类
630
796
  * @example
631
797
  * ```ts
632
- * if (isStrictSlot(node)) {
633
- * // 在这个花括号内,node 的类型为 Slot
798
+ * if (isStrictPropDeclaration(node)) {
799
+ * // 在这个花括号内,node 的类型为 PropDeclaration
634
800
  * }
635
801
  * ```
636
802
  */
637
- export function isStrictSlot(node: unknown): node is Slot {
638
- return isBaseNode(node) && node.concept === 'Slot';
803
+ export function isStrictPropDeclaration(node: unknown): node is PropDeclaration {
804
+ return isBaseNode(node) && node.concept === 'PropDeclaration';
639
805
  }
640
806
 
641
807
  /**
642
- * 严格判断输入为 Theme 节点
808
+ * 严格判断输入为 EventDeclaration 节点
643
809
  *
644
810
  * @description 仅判断节点本身,不包含继承类
645
811
  * @example
646
812
  * ```ts
647
- * if (isStrictTheme(node)) {
648
- * // 在这个花括号内,node 的类型为 Theme
813
+ * if (isStrictEventDeclaration(node)) {
814
+ * // 在这个花括号内,node 的类型为 EventDeclaration
649
815
  * }
650
816
  * ```
651
817
  */
652
- export function isStrictTheme(node: unknown): node is Theme {
653
- return isBaseNode(node) && node.concept === 'Theme';
818
+ export function isStrictEventDeclaration(node: unknown): node is EventDeclaration {
819
+ return isBaseNode(node) && node.concept === 'EventDeclaration';
654
820
  }
655
821
 
656
822
  /**
657
- * 严格判断输入为 StaticString 节点
823
+ * 严格判断输入为 SlotDeclaration 节点
658
824
  *
659
825
  * @description 仅判断节点本身,不包含继承类
660
826
  * @example
661
827
  * ```ts
662
- * if (isStrictStaticString(node)) {
663
- * // 在这个花括号内,node 的类型为 StaticString
828
+ * if (isStrictSlotDeclaration(node)) {
829
+ * // 在这个花括号内,node 的类型为 SlotDeclaration
664
830
  * }
665
831
  * ```
666
832
  */
667
- export function isStrictStaticString(node: unknown): node is StaticString {
668
- return isBaseNode(node) && node.concept === 'StaticString';
833
+ export function isStrictSlotDeclaration(node: unknown): node is SlotDeclaration {
834
+ return isBaseNode(node) && node.concept === 'SlotDeclaration';
669
835
  }
670
836
 
671
837
  /**
672
- * 严格判断输入为 Logic 节点
838
+ * 严格判断输入为 LogicDeclaration 节点
673
839
  *
674
840
  * @description 仅判断节点本身,不包含继承类
675
841
  * @example
676
842
  * ```ts
677
- * if (isStrictLogic(node)) {
678
- * // 在这个花括号内,node 的类型为 Logic
843
+ * if (isStrictLogicDeclaration(node)) {
844
+ * // 在这个花括号内,node 的类型为 LogicDeclaration
679
845
  * }
680
846
  * ```
681
847
  */
682
- export function isStrictLogic(node: unknown): node is Logic {
683
- return isBaseNode(node) && node.concept === 'Logic';
848
+ export function isStrictLogicDeclaration(node: unknown): node is LogicDeclaration {
849
+ return isBaseNode(node) && node.concept === 'LogicDeclaration';
684
850
  }
685
851
 
686
852
  /**
687
- * 严格判断输入为 AuthLogic 节点
853
+ * 严格判断输入为 Theme 节点
688
854
  *
689
855
  * @description 仅判断节点本身,不包含继承类
690
856
  * @example
691
857
  * ```ts
692
- * if (isStrictAuthLogic(node)) {
693
- * // 在这个花括号内,node 的类型为 AuthLogic
858
+ * if (isStrictTheme(node)) {
859
+ * // 在这个花括号内,node 的类型为 Theme
694
860
  * }
695
861
  * ```
696
862
  */
697
- export function isStrictAuthLogic(node: unknown): node is AuthLogic {
698
- return isBaseNode(node) && node.concept === 'AuthLogic';
863
+ export function isStrictTheme(node: unknown): node is Theme {
864
+ return isBaseNode(node) && node.concept === 'Theme';
699
865
  }
700
866
 
701
867
  /**
702
- * 严格判断输入为 BusinessLogic 节点
868
+ * 严格判断输入为 Logic 节点
703
869
  *
704
870
  * @description 仅判断节点本身,不包含继承类
705
871
  * @example
706
872
  * ```ts
707
- * if (isStrictBusinessLogic(node)) {
708
- * // 在这个花括号内,node 的类型为 BusinessLogic
873
+ * if (isStrictLogic(node)) {
874
+ * // 在这个花括号内,node 的类型为 Logic
709
875
  * }
710
876
  * ```
711
877
  */
712
- export function isStrictBusinessLogic(node: unknown): node is BusinessLogic {
713
- return isBaseNode(node) && node.concept === 'BusinessLogic';
878
+ export function isStrictLogic(node: unknown): node is Logic {
879
+ return isBaseNode(node) && node.concept === 'Logic';
880
+ }
881
+
882
+ /**
883
+ * 严格判断输入为 AuthLogic 节点
884
+ *
885
+ * @description 仅判断节点本身,不包含继承类
886
+ * @example
887
+ * ```ts
888
+ * if (isStrictAuthLogic(node)) {
889
+ * // 在这个花括号内,node 的类型为 AuthLogic
890
+ * }
891
+ * ```
892
+ */
893
+ export function isStrictAuthLogic(node: unknown): node is AuthLogic {
894
+ return isBaseNode(node) && node.concept === 'AuthLogic';
714
895
  }
715
896
 
716
897
  /**
@@ -743,6 +924,21 @@ export function isStrictOverriddenLogic(node: unknown): node is OverriddenLogic
743
924
  return isBaseNode(node) && node.concept === 'OverriddenLogic';
744
925
  }
745
926
 
927
+ /**
928
+ * 严格判断输入为 BusinessLogic 节点
929
+ *
930
+ * @description 仅判断节点本身,不包含继承类
931
+ * @example
932
+ * ```ts
933
+ * if (isStrictBusinessLogic(node)) {
934
+ * // 在这个花括号内,node 的类型为 BusinessLogic
935
+ * }
936
+ * ```
937
+ */
938
+ export function isStrictBusinessLogic(node: unknown): node is BusinessLogic {
939
+ return isBaseNode(node) && node.concept === 'BusinessLogic';
940
+ }
941
+
746
942
  /**
747
943
  * 严格判断输入为 Param 节点
748
944
  *
@@ -1358,6 +1554,21 @@ export function isStrictStringInterpolation(node: unknown): node is StringInterp
1358
1554
  return isBaseNode(node) && node.concept === 'StringInterpolation';
1359
1555
  }
1360
1556
 
1557
+ /**
1558
+ * 严格判断输入为 StaticString 节点
1559
+ *
1560
+ * @description 仅判断节点本身,不包含继承类
1561
+ * @example
1562
+ * ```ts
1563
+ * if (isStrictStaticString(node)) {
1564
+ * // 在这个花括号内,node 的类型为 StaticString
1565
+ * }
1566
+ * ```
1567
+ */
1568
+ export function isStrictStaticString(node: unknown): node is StaticString {
1569
+ return isBaseNode(node) && node.concept === 'StaticString';
1570
+ }
1571
+
1361
1572
  /**
1362
1573
  * 严格判断输入为 NumericLiteral 节点
1363
1574
  *
@@ -1523,6 +1734,21 @@ export function isStrictNewMap(node: unknown): node is NewMap {
1523
1734
  return isBaseNode(node) && node.concept === 'NewMap';
1524
1735
  }
1525
1736
 
1737
+ /**
1738
+ * 严格判断输入为 Paginate 节点
1739
+ *
1740
+ * @description 仅判断节点本身,不包含继承类
1741
+ * @example
1742
+ * ```ts
1743
+ * if (isStrictPaginate(node)) {
1744
+ * // 在这个花括号内,node 的类型为 Paginate
1745
+ * }
1746
+ * ```
1747
+ */
1748
+ export function isStrictPaginate(node: unknown): node is Paginate {
1749
+ return isBaseNode(node) && node.concept === 'Paginate';
1750
+ }
1751
+
1526
1752
  /**
1527
1753
  * 严格判断输入为 CallQueryComponent 节点
1528
1754
  *
@@ -1733,6 +1959,36 @@ export function isStrictProcessComponent(node: unknown): node is ProcessComponen
1733
1959
  return isBaseNode(node) && node.concept === 'ProcessComponent';
1734
1960
  }
1735
1961
 
1962
+ /**
1963
+ * 严格判断输入为 SequentialPolicy 节点
1964
+ *
1965
+ * @description 仅判断节点本身,不包含继承类
1966
+ * @example
1967
+ * ```ts
1968
+ * if (isStrictSequentialPolicy(node)) {
1969
+ * // 在这个花括号内,node 的类型为 SequentialPolicy
1970
+ * }
1971
+ * ```
1972
+ */
1973
+ export function isStrictSequentialPolicy(node: unknown): node is SequentialPolicy {
1974
+ return isBaseNode(node) && node.concept === 'SequentialPolicy';
1975
+ }
1976
+
1977
+ /**
1978
+ * 严格判断输入为 CountersignPolicy 节点
1979
+ *
1980
+ * @description 仅判断节点本身,不包含继承类
1981
+ * @example
1982
+ * ```ts
1983
+ * if (isStrictCountersignPolicy(node)) {
1984
+ * // 在这个花括号内,node 的类型为 CountersignPolicy
1985
+ * }
1986
+ * ```
1987
+ */
1988
+ export function isStrictCountersignPolicy(node: unknown): node is CountersignPolicy {
1989
+ return isBaseNode(node) && node.concept === 'CountersignPolicy';
1990
+ }
1991
+
1736
1992
  /**
1737
1993
  * 严格判断输入为 ProcessOutcome 节点
1738
1994
  *
@@ -1779,88 +2035,43 @@ export function isStrictProcessOutcomes(node: unknown): node is ProcessOutcomes
1779
2035
  }
1780
2036
 
1781
2037
  /**
1782
- * 严格判断输入为 MultiApprovalPolicy 节点
2038
+ * 严格判断输入为 Role 节点
1783
2039
  *
1784
2040
  * @description 仅判断节点本身,不包含继承类
1785
2041
  * @example
1786
2042
  * ```ts
1787
- * if (isStrictMultiApprovalPolicy(node)) {
1788
- * // 在这个花括号内,node 的类型为 MultiApprovalPolicy
2043
+ * if (isStrictRole(node)) {
2044
+ * // 在这个花括号内,node 的类型为 Role
1789
2045
  * }
1790
2046
  * ```
1791
2047
  */
1792
- export function isStrictMultiApprovalPolicy(node: unknown): node is MultiApprovalPolicy {
1793
- return isBaseNode(node) && node.concept === 'MultiApprovalPolicy';
2048
+ export function isStrictRole(node: unknown): node is Role {
2049
+ return isBaseNode(node) && node.concept === 'Role';
1794
2050
  }
1795
2051
 
1796
2052
  /**
1797
- * 严格判断输入为 SequentialPolicy 节点
2053
+ * 严格判断输入为 Configuration 节点
1798
2054
  *
1799
2055
  * @description 仅判断节点本身,不包含继承类
1800
2056
  * @example
1801
2057
  * ```ts
1802
- * if (isStrictSequentialPolicy(node)) {
1803
- * // 在这个花括号内,node 的类型为 SequentialPolicy
2058
+ * if (isStrictConfiguration(node)) {
2059
+ * // 在这个花括号内,node 的类型为 Configuration
1804
2060
  * }
1805
2061
  * ```
1806
2062
  */
1807
- export function isStrictSequentialPolicy(node: unknown): node is SequentialPolicy {
1808
- return isBaseNode(node) && node.concept === 'SequentialPolicy';
2063
+ export function isStrictConfiguration(node: unknown): node is Configuration {
2064
+ return isBaseNode(node) && node.concept === 'Configuration';
1809
2065
  }
1810
2066
 
1811
2067
  /**
1812
- * 严格判断输入为 CountersignPolicy 节点
2068
+ * 严格判断输入为 ConfigGroup 节点
1813
2069
  *
1814
2070
  * @description 仅判断节点本身,不包含继承类
1815
2071
  * @example
1816
2072
  * ```ts
1817
- * if (isStrictCountersignPolicy(node)) {
1818
- * // 在这个花括号内,node 的类型为 CountersignPolicy
1819
- * }
1820
- * ```
1821
- */
1822
- export function isStrictCountersignPolicy(node: unknown): node is CountersignPolicy {
1823
- return isBaseNode(node) && node.concept === 'CountersignPolicy';
1824
- }
1825
-
1826
- /**
1827
- * 严格判断输入为 Role 节点
1828
- *
1829
- * @description 仅判断节点本身,不包含继承类
1830
- * @example
1831
- * ```ts
1832
- * if (isStrictRole(node)) {
1833
- * // 在这个花括号内,node 的类型为 Role
1834
- * }
1835
- * ```
1836
- */
1837
- export function isStrictRole(node: unknown): node is Role {
1838
- return isBaseNode(node) && node.concept === 'Role';
1839
- }
1840
-
1841
- /**
1842
- * 严格判断输入为 Configuration 节点
1843
- *
1844
- * @description 仅判断节点本身,不包含继承类
1845
- * @example
1846
- * ```ts
1847
- * if (isStrictConfiguration(node)) {
1848
- * // 在这个花括号内,node 的类型为 Configuration
1849
- * }
1850
- * ```
1851
- */
1852
- export function isStrictConfiguration(node: unknown): node is Configuration {
1853
- return isBaseNode(node) && node.concept === 'Configuration';
1854
- }
1855
-
1856
- /**
1857
- * 严格判断输入为 ConfigGroup 节点
1858
- *
1859
- * @description 仅判断节点本身,不包含继承类
1860
- * @example
1861
- * ```ts
1862
- * if (isStrictConfigGroup(node)) {
1863
- * // 在这个花括号内,node 的类型为 ConfigGroup
2073
+ * if (isStrictConfigGroup(node)) {
2074
+ * // 在这个花括号内,node 的类型为 ConfigGroup
1864
2075
  * }
1865
2076
  * ```
1866
2077
  */
@@ -2033,6 +2244,21 @@ export function isStrictViewBlock(node: unknown): node is ViewBlock {
2033
2244
  return isBaseNode(node) && node.concept === 'ViewBlock';
2034
2245
  }
2035
2246
 
2247
+ /**
2248
+ * 严格判断输入为 ViewBlockWithImage 节点
2249
+ *
2250
+ * @description 仅判断节点本身,不包含继承类
2251
+ * @example
2252
+ * ```ts
2253
+ * if (isStrictViewBlockWithImage(node)) {
2254
+ * // 在这个花括号内,node 的类型为 ViewBlockWithImage
2255
+ * }
2256
+ * ```
2257
+ */
2258
+ export function isStrictViewBlockWithImage(node: unknown): node is ViewBlockWithImage {
2259
+ return isBaseNode(node) && node.concept === 'ViewBlockWithImage';
2260
+ }
2261
+
2036
2262
  /**
2037
2263
  * 严格判断输入为 AuthInterface 节点
2038
2264
  *
@@ -2220,7 +2446,7 @@ export function isApp(node: unknown): node is App {
2220
2446
  * }
2221
2447
  * ```
2222
2448
  */
2223
- export function isModule(node: unknown): node is Type.ModuleNode {
2449
+ export function isModule(node: unknown): node is types.ModuleNode {
2224
2450
  return (
2225
2451
  isBaseNode(node) &&
2226
2452
  (
@@ -2735,22 +2961,261 @@ export function isBindStyle(node: unknown): node is BindStyle {
2735
2961
  }
2736
2962
 
2737
2963
  /**
2738
- * 判断输入为 ViewComponent 节点实例
2964
+ * 判断输入为 ThemeVariable 节点实例
2965
+ *
2966
+ * @description 包含节点类以及节点继承类的判断
2967
+ * @description 等价于`instanceof`运算,ThemeVariable 节点没有继承类,此判断等价于`isStrictThemeVariable`
2968
+ * @example
2969
+ * ```ts
2970
+ * if (isThemeVariable(node)) {
2971
+ * // 在这个花括号内,node 的类型是 ThemeVariable 或者 ThemeVariable 继承类型
2972
+ * }
2973
+ * ```
2974
+ */
2975
+ export function isThemeVariable(node: unknown): node is ThemeVariable {
2976
+ return (
2977
+ isBaseNode(node) &&
2978
+ (
2979
+ node.concept === 'ThemeVariable'
2980
+ )
2981
+ );
2982
+ }
2983
+
2984
+ /**
2985
+ * 判断输入为 BaseSetter 节点实例
2986
+ *
2987
+ * @description 包含节点类以及节点继承类的判断
2988
+ * @description 等价于`instanceof`运算
2989
+ * @example
2990
+ * ```ts
2991
+ * if (isBaseSetter(node)) {
2992
+ * // 在这个花括号内,node 的类型是 BaseSetter 或者 BaseSetter 继承类型
2993
+ * }
2994
+ * ```
2995
+ */
2996
+ export function isBaseSetter(node: unknown): node is types.BaseSetterNode {
2997
+ return (
2998
+ isBaseNode(node) &&
2999
+ (
3000
+ node.concept === 'BaseSetter' ||
3001
+ node.concept === 'InputSetter' ||
3002
+ node.concept === 'SwitchSetter' ||
3003
+ node.concept === 'EnumSelectSetter' ||
3004
+ node.concept === 'CapsulesSetter' ||
3005
+ node.concept === 'NumberInputSetter' ||
3006
+ node.concept === 'IconSetter' ||
3007
+ node.concept === 'ImageSetter' ||
3008
+ node.concept === 'PropertySelectSetter'
3009
+ )
3010
+ );
3011
+ }
3012
+
3013
+ /**
3014
+ * 判断输入为 InputSetter 节点实例
3015
+ *
3016
+ * @description 包含节点类以及节点继承类的判断
3017
+ * @description 等价于`instanceof`运算,InputSetter 节点没有继承类,此判断等价于`isStrictInputSetter`
3018
+ * @example
3019
+ * ```ts
3020
+ * if (isInputSetter(node)) {
3021
+ * // 在这个花括号内,node 的类型是 InputSetter 或者 InputSetter 继承类型
3022
+ * }
3023
+ * ```
3024
+ */
3025
+ export function isInputSetter(node: unknown): node is InputSetter {
3026
+ return (
3027
+ isBaseNode(node) &&
3028
+ (
3029
+ node.concept === 'InputSetter'
3030
+ )
3031
+ );
3032
+ }
3033
+
3034
+ /**
3035
+ * 判断输入为 SwitchSetter 节点实例
3036
+ *
3037
+ * @description 包含节点类以及节点继承类的判断
3038
+ * @description 等价于`instanceof`运算,SwitchSetter 节点没有继承类,此判断等价于`isStrictSwitchSetter`
3039
+ * @example
3040
+ * ```ts
3041
+ * if (isSwitchSetter(node)) {
3042
+ * // 在这个花括号内,node 的类型是 SwitchSetter 或者 SwitchSetter 继承类型
3043
+ * }
3044
+ * ```
3045
+ */
3046
+ export function isSwitchSetter(node: unknown): node is SwitchSetter {
3047
+ return (
3048
+ isBaseNode(node) &&
3049
+ (
3050
+ node.concept === 'SwitchSetter'
3051
+ )
3052
+ );
3053
+ }
3054
+
3055
+ /**
3056
+ * 判断输入为 SetterOption 节点实例
3057
+ *
3058
+ * @description 包含节点类以及节点继承类的判断
3059
+ * @description 等价于`instanceof`运算,SetterOption 节点没有继承类,此判断等价于`isStrictSetterOption`
3060
+ * @example
3061
+ * ```ts
3062
+ * if (isSetterOption(node)) {
3063
+ * // 在这个花括号内,node 的类型是 SetterOption 或者 SetterOption 继承类型
3064
+ * }
3065
+ * ```
3066
+ */
3067
+ export function isSetterOption(node: unknown): node is SetterOption {
3068
+ return (
3069
+ isBaseNode(node) &&
3070
+ (
3071
+ node.concept === 'SetterOption'
3072
+ )
3073
+ );
3074
+ }
3075
+
3076
+ /**
3077
+ * 判断输入为 EnumSelectSetter 节点实例
3078
+ *
3079
+ * @description 包含节点类以及节点继承类的判断
3080
+ * @description 等价于`instanceof`运算,EnumSelectSetter 节点没有继承类,此判断等价于`isStrictEnumSelectSetter`
3081
+ * @example
3082
+ * ```ts
3083
+ * if (isEnumSelectSetter(node)) {
3084
+ * // 在这个花括号内,node 的类型是 EnumSelectSetter 或者 EnumSelectSetter 继承类型
3085
+ * }
3086
+ * ```
3087
+ */
3088
+ export function isEnumSelectSetter(node: unknown): node is EnumSelectSetter {
3089
+ return (
3090
+ isBaseNode(node) &&
3091
+ (
3092
+ node.concept === 'EnumSelectSetter'
3093
+ )
3094
+ );
3095
+ }
3096
+
3097
+ /**
3098
+ * 判断输入为 CapsulesSetter 节点实例
3099
+ *
3100
+ * @description 包含节点类以及节点继承类的判断
3101
+ * @description 等价于`instanceof`运算,CapsulesSetter 节点没有继承类,此判断等价于`isStrictCapsulesSetter`
3102
+ * @example
3103
+ * ```ts
3104
+ * if (isCapsulesSetter(node)) {
3105
+ * // 在这个花括号内,node 的类型是 CapsulesSetter 或者 CapsulesSetter 继承类型
3106
+ * }
3107
+ * ```
3108
+ */
3109
+ export function isCapsulesSetter(node: unknown): node is CapsulesSetter {
3110
+ return (
3111
+ isBaseNode(node) &&
3112
+ (
3113
+ node.concept === 'CapsulesSetter'
3114
+ )
3115
+ );
3116
+ }
3117
+
3118
+ /**
3119
+ * 判断输入为 NumberInputSetter 节点实例
3120
+ *
3121
+ * @description 包含节点类以及节点继承类的判断
3122
+ * @description 等价于`instanceof`运算,NumberInputSetter 节点没有继承类,此判断等价于`isStrictNumberInputSetter`
3123
+ * @example
3124
+ * ```ts
3125
+ * if (isNumberInputSetter(node)) {
3126
+ * // 在这个花括号内,node 的类型是 NumberInputSetter 或者 NumberInputSetter 继承类型
3127
+ * }
3128
+ * ```
3129
+ */
3130
+ export function isNumberInputSetter(node: unknown): node is NumberInputSetter {
3131
+ return (
3132
+ isBaseNode(node) &&
3133
+ (
3134
+ node.concept === 'NumberInputSetter'
3135
+ )
3136
+ );
3137
+ }
3138
+
3139
+ /**
3140
+ * 判断输入为 IconSetter 节点实例
3141
+ *
3142
+ * @description 包含节点类以及节点继承类的判断
3143
+ * @description 等价于`instanceof`运算,IconSetter 节点没有继承类,此判断等价于`isStrictIconSetter`
3144
+ * @example
3145
+ * ```ts
3146
+ * if (isIconSetter(node)) {
3147
+ * // 在这个花括号内,node 的类型是 IconSetter 或者 IconSetter 继承类型
3148
+ * }
3149
+ * ```
3150
+ */
3151
+ export function isIconSetter(node: unknown): node is IconSetter {
3152
+ return (
3153
+ isBaseNode(node) &&
3154
+ (
3155
+ node.concept === 'IconSetter'
3156
+ )
3157
+ );
3158
+ }
3159
+
3160
+ /**
3161
+ * 判断输入为 ImageSetter 节点实例
3162
+ *
3163
+ * @description 包含节点类以及节点继承类的判断
3164
+ * @description 等价于`instanceof`运算,ImageSetter 节点没有继承类,此判断等价于`isStrictImageSetter`
3165
+ * @example
3166
+ * ```ts
3167
+ * if (isImageSetter(node)) {
3168
+ * // 在这个花括号内,node 的类型是 ImageSetter 或者 ImageSetter 继承类型
3169
+ * }
3170
+ * ```
3171
+ */
3172
+ export function isImageSetter(node: unknown): node is ImageSetter {
3173
+ return (
3174
+ isBaseNode(node) &&
3175
+ (
3176
+ node.concept === 'ImageSetter'
3177
+ )
3178
+ );
3179
+ }
3180
+
3181
+ /**
3182
+ * 判断输入为 PropertySelectSetter 节点实例
2739
3183
  *
2740
3184
  * @description 包含节点类以及节点继承类的判断
2741
- * @description 等价于`instanceof`运算,ViewComponent 节点没有继承类,此判断等价于`isStrictViewComponent`
3185
+ * @description 等价于`instanceof`运算,PropertySelectSetter 节点没有继承类,此判断等价于`isStrictPropertySelectSetter`
2742
3186
  * @example
2743
3187
  * ```ts
2744
- * if (isViewComponent(node)) {
2745
- * // 在这个花括号内,node 的类型是 ViewComponent 或者 ViewComponent 继承类型
3188
+ * if (isPropertySelectSetter(node)) {
3189
+ * // 在这个花括号内,node 的类型是 PropertySelectSetter 或者 PropertySelectSetter 继承类型
2746
3190
  * }
2747
3191
  * ```
2748
3192
  */
2749
- export function isViewComponent(node: unknown): node is ViewComponent {
3193
+ export function isPropertySelectSetter(node: unknown): node is PropertySelectSetter {
2750
3194
  return (
2751
3195
  isBaseNode(node) &&
2752
3196
  (
2753
- node.concept === 'ViewComponent'
3197
+ node.concept === 'PropertySelectSetter'
3198
+ )
3199
+ );
3200
+ }
3201
+
3202
+ /**
3203
+ * 判断输入为 ViewComponentDeclaration 节点实例
3204
+ *
3205
+ * @description 包含节点类以及节点继承类的判断
3206
+ * @description 等价于`instanceof`运算,ViewComponentDeclaration 节点没有继承类,此判断等价于`isStrictViewComponentDeclaration`
3207
+ * @example
3208
+ * ```ts
3209
+ * if (isViewComponentDeclaration(node)) {
3210
+ * // 在这个花括号内,node 的类型是 ViewComponentDeclaration 或者 ViewComponentDeclaration 继承类型
3211
+ * }
3212
+ * ```
3213
+ */
3214
+ export function isViewComponentDeclaration(node: unknown): node is ViewComponentDeclaration {
3215
+ return (
3216
+ isBaseNode(node) &&
3217
+ (
3218
+ node.concept === 'ViewComponentDeclaration'
2754
3219
  )
2755
3220
  );
2756
3221
  }
@@ -2819,131 +3284,152 @@ export function isEvent(node: unknown): node is Event {
2819
3284
  }
2820
3285
 
2821
3286
  /**
2822
- * 判断输入为 Slot 节点实例
3287
+ * 判断输入为 PropDeclaration 节点实例
2823
3288
  *
2824
3289
  * @description 包含节点类以及节点继承类的判断
2825
- * @description 等价于`instanceof`运算,Slot 节点没有继承类,此判断等价于`isStrictSlot`
3290
+ * @description 等价于`instanceof`运算,PropDeclaration 节点没有继承类,此判断等价于`isStrictPropDeclaration`
2826
3291
  * @example
2827
3292
  * ```ts
2828
- * if (isSlot(node)) {
2829
- * // 在这个花括号内,node 的类型是 Slot 或者 Slot 继承类型
3293
+ * if (isPropDeclaration(node)) {
3294
+ * // 在这个花括号内,node 的类型是 PropDeclaration 或者 PropDeclaration 继承类型
2830
3295
  * }
2831
3296
  * ```
2832
3297
  */
2833
- export function isSlot(node: unknown): node is Slot {
3298
+ export function isPropDeclaration(node: unknown): node is PropDeclaration {
2834
3299
  return (
2835
3300
  isBaseNode(node) &&
2836
3301
  (
2837
- node.concept === 'Slot'
3302
+ node.concept === 'PropDeclaration'
2838
3303
  )
2839
3304
  );
2840
3305
  }
2841
3306
 
2842
3307
  /**
2843
- * 判断输入为 Theme 节点实例
3308
+ * 判断输入为 EventDeclaration 节点实例
2844
3309
  *
2845
3310
  * @description 包含节点类以及节点继承类的判断
2846
- * @description 等价于`instanceof`运算,Theme 节点没有继承类,此判断等价于`isStrictTheme`
3311
+ * @description 等价于`instanceof`运算,EventDeclaration 节点没有继承类,此判断等价于`isStrictEventDeclaration`
2847
3312
  * @example
2848
3313
  * ```ts
2849
- * if (isTheme(node)) {
2850
- * // 在这个花括号内,node 的类型是 Theme 或者 Theme 继承类型
3314
+ * if (isEventDeclaration(node)) {
3315
+ * // 在这个花括号内,node 的类型是 EventDeclaration 或者 EventDeclaration 继承类型
2851
3316
  * }
2852
3317
  * ```
2853
3318
  */
2854
- export function isTheme(node: unknown): node is Theme {
3319
+ export function isEventDeclaration(node: unknown): node is EventDeclaration {
2855
3320
  return (
2856
3321
  isBaseNode(node) &&
2857
3322
  (
2858
- node.concept === 'Theme'
3323
+ node.concept === 'EventDeclaration'
2859
3324
  )
2860
3325
  );
2861
3326
  }
2862
3327
 
2863
3328
  /**
2864
- * 判断输入为 StaticString 节点实例
3329
+ * 判断输入为 SlotDeclaration 节点实例
2865
3330
  *
2866
3331
  * @description 包含节点类以及节点继承类的判断
2867
- * @description 等价于`instanceof`运算,StaticString 节点没有继承类,此判断等价于`isStrictStaticString`
3332
+ * @description 等价于`instanceof`运算,SlotDeclaration 节点没有继承类,此判断等价于`isStrictSlotDeclaration`
2868
3333
  * @example
2869
3334
  * ```ts
2870
- * if (isStaticString(node)) {
2871
- * // 在这个花括号内,node 的类型是 StaticString 或者 StaticString 继承类型
3335
+ * if (isSlotDeclaration(node)) {
3336
+ * // 在这个花括号内,node 的类型是 SlotDeclaration 或者 SlotDeclaration 继承类型
2872
3337
  * }
2873
3338
  * ```
2874
3339
  */
2875
- export function isStaticString(node: unknown): node is StaticString {
3340
+ export function isSlotDeclaration(node: unknown): node is SlotDeclaration {
2876
3341
  return (
2877
3342
  isBaseNode(node) &&
2878
3343
  (
2879
- node.concept === 'StaticString'
3344
+ node.concept === 'SlotDeclaration'
2880
3345
  )
2881
3346
  );
2882
3347
  }
2883
3348
 
2884
3349
  /**
2885
- * 判断输入为 Logic 节点实例
3350
+ * 判断输入为 LogicDeclaration 节点实例
2886
3351
  *
2887
3352
  * @description 包含节点类以及节点继承类的判断
2888
- * @description 等价于`instanceof`运算
3353
+ * @description 等价于`instanceof`运算,LogicDeclaration 节点没有继承类,此判断等价于`isStrictLogicDeclaration`
2889
3354
  * @example
2890
3355
  * ```ts
2891
- * if (isLogic(node)) {
2892
- * // 在这个花括号内,node 的类型是 Logic 或者 Logic 继承类型
3356
+ * if (isLogicDeclaration(node)) {
3357
+ * // 在这个花括号内,node 的类型是 LogicDeclaration 或者 LogicDeclaration 继承类型
2893
3358
  * }
2894
3359
  * ```
2895
3360
  */
2896
- export function isLogic(node: unknown): node is Type.LogicNode {
3361
+ export function isLogicDeclaration(node: unknown): node is LogicDeclaration {
2897
3362
  return (
2898
3363
  isBaseNode(node) &&
2899
3364
  (
2900
- node.concept === 'Logic' ||
2901
- node.concept === 'AuthLogic' ||
2902
- node.concept === 'BusinessLogic' ||
2903
- node.concept === 'AuthLogicForCallInterface'
3365
+ node.concept === 'LogicDeclaration'
2904
3366
  )
2905
3367
  );
2906
3368
  }
2907
3369
 
2908
3370
  /**
2909
- * 判断输入为 AuthLogic 节点实例
3371
+ * 判断输入为 Theme 节点实例
3372
+ *
3373
+ * @description 包含节点类以及节点继承类的判断
3374
+ * @description 等价于`instanceof`运算,Theme 节点没有继承类,此判断等价于`isStrictTheme`
3375
+ * @example
3376
+ * ```ts
3377
+ * if (isTheme(node)) {
3378
+ * // 在这个花括号内,node 的类型是 Theme 或者 Theme 继承类型
3379
+ * }
3380
+ * ```
3381
+ */
3382
+ export function isTheme(node: unknown): node is Theme {
3383
+ return (
3384
+ isBaseNode(node) &&
3385
+ (
3386
+ node.concept === 'Theme'
3387
+ )
3388
+ );
3389
+ }
3390
+
3391
+ /**
3392
+ * 判断输入为 Logic 节点实例
2910
3393
  *
2911
3394
  * @description 包含节点类以及节点继承类的判断
2912
3395
  * @description 等价于`instanceof`运算
2913
3396
  * @example
2914
3397
  * ```ts
2915
- * if (isAuthLogic(node)) {
2916
- * // 在这个花括号内,node 的类型是 AuthLogic 或者 AuthLogic 继承类型
3398
+ * if (isLogic(node)) {
3399
+ * // 在这个花括号内,node 的类型是 Logic 或者 Logic 继承类型
2917
3400
  * }
2918
3401
  * ```
2919
3402
  */
2920
- export function isAuthLogic(node: unknown): node is Type.AuthLogicNode {
3403
+ export function isLogic(node: unknown): node is types.LogicNode {
2921
3404
  return (
2922
3405
  isBaseNode(node) &&
2923
3406
  (
3407
+ node.concept === 'Logic' ||
2924
3408
  node.concept === 'AuthLogic' ||
2925
- node.concept === 'AuthLogicForCallInterface'
3409
+ node.concept === 'AuthLogicForCallInterface' ||
3410
+ node.concept === 'BusinessLogic'
2926
3411
  )
2927
3412
  );
2928
3413
  }
2929
3414
 
2930
3415
  /**
2931
- * 判断输入为 BusinessLogic 节点实例
3416
+ * 判断输入为 AuthLogic 节点实例
2932
3417
  *
2933
3418
  * @description 包含节点类以及节点继承类的判断
2934
- * @description 等价于`instanceof`运算,BusinessLogic 节点没有继承类,此判断等价于`isStrictBusinessLogic`
3419
+ * @description 等价于`instanceof`运算
2935
3420
  * @example
2936
3421
  * ```ts
2937
- * if (isBusinessLogic(node)) {
2938
- * // 在这个花括号内,node 的类型是 BusinessLogic 或者 BusinessLogic 继承类型
3422
+ * if (isAuthLogic(node)) {
3423
+ * // 在这个花括号内,node 的类型是 AuthLogic 或者 AuthLogic 继承类型
2939
3424
  * }
2940
3425
  * ```
2941
3426
  */
2942
- export function isBusinessLogic(node: unknown): node is BusinessLogic {
3427
+ export function isAuthLogic(node: unknown): node is types.AuthLogicNode {
2943
3428
  return (
2944
3429
  isBaseNode(node) &&
2945
3430
  (
2946
- node.concept === 'BusinessLogic'
3431
+ node.concept === 'AuthLogic' ||
3432
+ node.concept === 'AuthLogicForCallInterface'
2947
3433
  )
2948
3434
  );
2949
3435
  }
@@ -2990,6 +3476,27 @@ export function isOverriddenLogic(node: unknown): node is OverriddenLogic {
2990
3476
  );
2991
3477
  }
2992
3478
 
3479
+ /**
3480
+ * 判断输入为 BusinessLogic 节点实例
3481
+ *
3482
+ * @description 包含节点类以及节点继承类的判断
3483
+ * @description 等价于`instanceof`运算,BusinessLogic 节点没有继承类,此判断等价于`isStrictBusinessLogic`
3484
+ * @example
3485
+ * ```ts
3486
+ * if (isBusinessLogic(node)) {
3487
+ * // 在这个花括号内,node 的类型是 BusinessLogic 或者 BusinessLogic 继承类型
3488
+ * }
3489
+ * ```
3490
+ */
3491
+ export function isBusinessLogic(node: unknown): node is BusinessLogic {
3492
+ return (
3493
+ isBaseNode(node) &&
3494
+ (
3495
+ node.concept === 'BusinessLogic'
3496
+ )
3497
+ );
3498
+ }
3499
+
2993
3500
  /**
2994
3501
  * 判断输入为 AbstractInterface 节点实例
2995
3502
  *
@@ -3002,7 +3509,7 @@ export function isOverriddenLogic(node: unknown): node is OverriddenLogic {
3002
3509
  * }
3003
3510
  * ```
3004
3511
  */
3005
- export function isAbstractInterface(node: unknown): node is Type.AbstractInterfaceNode {
3512
+ export function isAbstractInterface(node: unknown): node is types.AbstractInterfaceNode {
3006
3513
  return (
3007
3514
  isBaseNode(node) &&
3008
3515
  (
@@ -3026,7 +3533,7 @@ export function isAbstractInterface(node: unknown): node is Type.AbstractInterfa
3026
3533
  * }
3027
3534
  * ```
3028
3535
  */
3029
- export function isParam(node: unknown): node is Type.ParamNode {
3536
+ export function isParam(node: unknown): node is types.ParamNode {
3030
3537
  return (
3031
3538
  isBaseNode(node) &&
3032
3539
  (
@@ -3090,7 +3597,7 @@ export function isReturn(node: unknown): node is Return {
3090
3597
  * }
3091
3598
  * ```
3092
3599
  */
3093
- export function isVariable(node: unknown): node is Type.VariableNode {
3600
+ export function isVariable(node: unknown): node is types.VariableNode {
3094
3601
  return (
3095
3602
  isBaseNode(node) &&
3096
3603
  (
@@ -3175,7 +3682,7 @@ export function isConstant(node: unknown): node is Constant {
3175
3682
  * }
3176
3683
  * ```
3177
3684
  */
3178
- export function isLogicItem(node: unknown): node is Type.LogicItemNode {
3685
+ export function isLogicItem(node: unknown): node is types.LogicItemNode {
3179
3686
  return (
3180
3687
  isBaseNode(node) &&
3181
3688
  (
@@ -3193,9 +3700,11 @@ export function isLogicItem(node: unknown): node is Type.LogicItemNode {
3193
3700
  node.concept === 'BatchAssignment' ||
3194
3701
  node.concept === 'Comment' ||
3195
3702
  node.concept === 'CallLogic' ||
3703
+ node.concept === 'CallConnector' ||
3196
3704
  node.concept === 'CallEvent' ||
3197
3705
  node.concept === 'CallFunction' ||
3198
3706
  node.concept === 'CallInterface' ||
3707
+ node.concept === 'CallAuthInterface' ||
3199
3708
  node.concept === 'Destination' ||
3200
3709
  node.concept === 'ExternalDestination' ||
3201
3710
  node.concept === 'ValidationRule' ||
@@ -3220,6 +3729,7 @@ export function isLogicItem(node: unknown): node is Type.LogicItemNode {
3220
3729
  node.concept === 'NewComposite' ||
3221
3730
  node.concept === 'NewList' ||
3222
3731
  node.concept === 'NewMap' ||
3732
+ node.concept === 'Paginate' ||
3223
3733
  node.concept === 'CallQueryComponent' ||
3224
3734
  node.concept === 'QueryFromExpression' ||
3225
3735
  node.concept === 'QueryJoinExpression' ||
@@ -3233,9 +3743,7 @@ export function isLogicItem(node: unknown): node is Type.LogicItemNode {
3233
3743
  node.concept === 'OqlQueryComponent' ||
3234
3744
  node.concept === 'ProcessOutcome' ||
3235
3745
  node.concept === 'Assignee' ||
3236
- node.concept === 'ProcessOutcomes' ||
3237
- node.concept === 'CallAuthInterface' ||
3238
- node.concept === 'CallConnector'
3746
+ node.concept === 'ProcessOutcomes'
3239
3747
  )
3240
3748
  );
3241
3749
  }
@@ -3283,21 +3791,22 @@ export function isAnonymousFunction(node: unknown): node is AnonymousFunction {
3283
3791
  }
3284
3792
 
3285
3793
  /**
3286
- * 判断输入为 Interface 节点实例
3794
+ * 判断输入为 ImportedInterface 节点实例
3287
3795
  *
3288
3796
  * @description 包含节点类以及节点继承类的判断
3289
3797
  * @description 等价于`instanceof`运算
3290
3798
  * @example
3291
3799
  * ```ts
3292
- * if (isInterface(node)) {
3293
- * // 在这个花括号内,node 的类型是 Interface 或者 Interface 继承类型
3800
+ * if (isImportedInterface(node)) {
3801
+ * // 在这个花括号内,node 的类型是 ImportedInterface 或者 ImportedInterface 继承类型
3294
3802
  * }
3295
3803
  * ```
3296
3804
  */
3297
- export function isInterface(node: unknown): node is Type.InterfaceNode {
3805
+ export function isImportedInterface(node: unknown): node is types.ImportedInterfaceNode {
3298
3806
  return (
3299
3807
  isBaseNode(node) &&
3300
3808
  (
3809
+ node.concept === 'ImportedInterface' ||
3301
3810
  node.concept === 'Interface' ||
3302
3811
  node.concept === 'AuthInterface'
3303
3812
  )
@@ -3305,22 +3814,21 @@ export function isInterface(node: unknown): node is Type.InterfaceNode {
3305
3814
  }
3306
3815
 
3307
3816
  /**
3308
- * 判断输入为 ImportedInterface 节点实例
3817
+ * 判断输入为 Interface 节点实例
3309
3818
  *
3310
3819
  * @description 包含节点类以及节点继承类的判断
3311
3820
  * @description 等价于`instanceof`运算
3312
3821
  * @example
3313
3822
  * ```ts
3314
- * if (isImportedInterface(node)) {
3315
- * // 在这个花括号内,node 的类型是 ImportedInterface 或者 ImportedInterface 继承类型
3823
+ * if (isInterface(node)) {
3824
+ * // 在这个花括号内,node 的类型是 Interface 或者 Interface 继承类型
3316
3825
  * }
3317
3826
  * ```
3318
3827
  */
3319
- export function isImportedInterface(node: unknown): node is Type.ImportedInterfaceNode {
3828
+ export function isInterface(node: unknown): node is types.InterfaceNode {
3320
3829
  return (
3321
3830
  isBaseNode(node) &&
3322
3831
  (
3323
- node.concept === 'ImportedInterface' ||
3324
3832
  node.concept === 'Interface' ||
3325
3833
  node.concept === 'AuthInterface'
3326
3834
  )
@@ -3633,7 +4141,7 @@ export function isComment(node: unknown): node is Comment {
3633
4141
  * }
3634
4142
  * ```
3635
4143
  */
3636
- export function isCallLogic(node: unknown): node is Type.CallLogicNode {
4144
+ export function isCallLogic(node: unknown): node is types.CallLogicNode {
3637
4145
  return (
3638
4146
  isBaseNode(node) &&
3639
4147
  (
@@ -3697,7 +4205,7 @@ export function isCallFunction(node: unknown): node is CallFunction {
3697
4205
  * }
3698
4206
  * ```
3699
4207
  */
3700
- export function isCallInterface(node: unknown): node is Type.CallInterfaceNode {
4208
+ export function isCallInterface(node: unknown): node is types.CallInterfaceNode {
3701
4209
  return (
3702
4210
  isBaseNode(node) &&
3703
4211
  (
@@ -3980,6 +4488,27 @@ export function isStringInterpolation(node: unknown): node is StringInterpolatio
3980
4488
  );
3981
4489
  }
3982
4490
 
4491
+ /**
4492
+ * 判断输入为 StaticString 节点实例
4493
+ *
4494
+ * @description 包含节点类以及节点继承类的判断
4495
+ * @description 等价于`instanceof`运算,StaticString 节点没有继承类,此判断等价于`isStrictStaticString`
4496
+ * @example
4497
+ * ```ts
4498
+ * if (isStaticString(node)) {
4499
+ * // 在这个花括号内,node 的类型是 StaticString 或者 StaticString 继承类型
4500
+ * }
4501
+ * ```
4502
+ */
4503
+ export function isStaticString(node: unknown): node is StaticString {
4504
+ return (
4505
+ isBaseNode(node) &&
4506
+ (
4507
+ node.concept === 'StaticString'
4508
+ )
4509
+ );
4510
+ }
4511
+
3983
4512
  /**
3984
4513
  * 判断输入为 NumericLiteral 节点实例
3985
4514
  *
@@ -4211,6 +4740,27 @@ export function isNewMap(node: unknown): node is NewMap {
4211
4740
  );
4212
4741
  }
4213
4742
 
4743
+ /**
4744
+ * 判断输入为 Paginate 节点实例
4745
+ *
4746
+ * @description 包含节点类以及节点继承类的判断
4747
+ * @description 等价于`instanceof`运算,Paginate 节点没有继承类,此判断等价于`isStrictPaginate`
4748
+ * @example
4749
+ * ```ts
4750
+ * if (isPaginate(node)) {
4751
+ * // 在这个花括号内,node 的类型是 Paginate 或者 Paginate 继承类型
4752
+ * }
4753
+ * ```
4754
+ */
4755
+ export function isPaginate(node: unknown): node is Paginate {
4756
+ return (
4757
+ isBaseNode(node) &&
4758
+ (
4759
+ node.concept === 'Paginate'
4760
+ )
4761
+ );
4762
+ }
4763
+
4214
4764
  /**
4215
4765
  * 判断输入为 CallQueryComponent 节点实例
4216
4766
  *
@@ -4506,129 +5056,129 @@ export function isProcessComponent(node: unknown): node is ProcessComponent {
4506
5056
  }
4507
5057
 
4508
5058
  /**
4509
- * 判断输入为 ProcessOutcome 节点实例
5059
+ * 判断输入为 MultiApprovalPolicy 节点实例
4510
5060
  *
4511
5061
  * @description 包含节点类以及节点继承类的判断
4512
- * @description 等价于`instanceof`运算,ProcessOutcome 节点没有继承类,此判断等价于`isStrictProcessOutcome`
5062
+ * @description 等价于`instanceof`运算
4513
5063
  * @example
4514
5064
  * ```ts
4515
- * if (isProcessOutcome(node)) {
4516
- * // 在这个花括号内,node 的类型是 ProcessOutcome 或者 ProcessOutcome 继承类型
5065
+ * if (isMultiApprovalPolicy(node)) {
5066
+ * // 在这个花括号内,node 的类型是 MultiApprovalPolicy 或者 MultiApprovalPolicy 继承类型
4517
5067
  * }
4518
5068
  * ```
4519
5069
  */
4520
- export function isProcessOutcome(node: unknown): node is ProcessOutcome {
5070
+ export function isMultiApprovalPolicy(node: unknown): node is types.MultiApprovalPolicyNode {
4521
5071
  return (
4522
5072
  isBaseNode(node) &&
4523
5073
  (
4524
- node.concept === 'ProcessOutcome'
5074
+ node.concept === 'MultiApprovalPolicy' ||
5075
+ node.concept === 'SequentialPolicy' ||
5076
+ node.concept === 'CountersignPolicy'
4525
5077
  )
4526
5078
  );
4527
5079
  }
4528
5080
 
4529
5081
  /**
4530
- * 判断输入为 Assignee 节点实例
5082
+ * 判断输入为 SequentialPolicy 节点实例
4531
5083
  *
4532
5084
  * @description 包含节点类以及节点继承类的判断
4533
- * @description 等价于`instanceof`运算,Assignee 节点没有继承类,此判断等价于`isStrictAssignee`
5085
+ * @description 等价于`instanceof`运算,SequentialPolicy 节点没有继承类,此判断等价于`isStrictSequentialPolicy`
4534
5086
  * @example
4535
5087
  * ```ts
4536
- * if (isAssignee(node)) {
4537
- * // 在这个花括号内,node 的类型是 Assignee 或者 Assignee 继承类型
5088
+ * if (isSequentialPolicy(node)) {
5089
+ * // 在这个花括号内,node 的类型是 SequentialPolicy 或者 SequentialPolicy 继承类型
4538
5090
  * }
4539
5091
  * ```
4540
5092
  */
4541
- export function isAssignee(node: unknown): node is Assignee {
5093
+ export function isSequentialPolicy(node: unknown): node is SequentialPolicy {
4542
5094
  return (
4543
5095
  isBaseNode(node) &&
4544
5096
  (
4545
- node.concept === 'Assignee'
5097
+ node.concept === 'SequentialPolicy'
4546
5098
  )
4547
5099
  );
4548
5100
  }
4549
5101
 
4550
5102
  /**
4551
- * 判断输入为 ProcessOutcomes 节点实例
5103
+ * 判断输入为 CountersignPolicy 节点实例
4552
5104
  *
4553
5105
  * @description 包含节点类以及节点继承类的判断
4554
- * @description 等价于`instanceof`运算,ProcessOutcomes 节点没有继承类,此判断等价于`isStrictProcessOutcomes`
5106
+ * @description 等价于`instanceof`运算,CountersignPolicy 节点没有继承类,此判断等价于`isStrictCountersignPolicy`
4555
5107
  * @example
4556
5108
  * ```ts
4557
- * if (isProcessOutcomes(node)) {
4558
- * // 在这个花括号内,node 的类型是 ProcessOutcomes 或者 ProcessOutcomes 继承类型
5109
+ * if (isCountersignPolicy(node)) {
5110
+ * // 在这个花括号内,node 的类型是 CountersignPolicy 或者 CountersignPolicy 继承类型
4559
5111
  * }
4560
5112
  * ```
4561
5113
  */
4562
- export function isProcessOutcomes(node: unknown): node is ProcessOutcomes {
5114
+ export function isCountersignPolicy(node: unknown): node is CountersignPolicy {
4563
5115
  return (
4564
5116
  isBaseNode(node) &&
4565
5117
  (
4566
- node.concept === 'ProcessOutcomes'
5118
+ node.concept === 'CountersignPolicy'
4567
5119
  )
4568
5120
  );
4569
5121
  }
4570
5122
 
4571
5123
  /**
4572
- * 判断输入为 MultiApprovalPolicy 节点实例
5124
+ * 判断输入为 ProcessOutcome 节点实例
4573
5125
  *
4574
5126
  * @description 包含节点类以及节点继承类的判断
4575
- * @description 等价于`instanceof`运算
5127
+ * @description 等价于`instanceof`运算,ProcessOutcome 节点没有继承类,此判断等价于`isStrictProcessOutcome`
4576
5128
  * @example
4577
5129
  * ```ts
4578
- * if (isMultiApprovalPolicy(node)) {
4579
- * // 在这个花括号内,node 的类型是 MultiApprovalPolicy 或者 MultiApprovalPolicy 继承类型
5130
+ * if (isProcessOutcome(node)) {
5131
+ * // 在这个花括号内,node 的类型是 ProcessOutcome 或者 ProcessOutcome 继承类型
4580
5132
  * }
4581
5133
  * ```
4582
5134
  */
4583
- export function isMultiApprovalPolicy(node: unknown): node is Type.MultiApprovalPolicyNode {
5135
+ export function isProcessOutcome(node: unknown): node is ProcessOutcome {
4584
5136
  return (
4585
5137
  isBaseNode(node) &&
4586
5138
  (
4587
- node.concept === 'MultiApprovalPolicy' ||
4588
- node.concept === 'SequentialPolicy' ||
4589
- node.concept === 'CountersignPolicy'
5139
+ node.concept === 'ProcessOutcome'
4590
5140
  )
4591
5141
  );
4592
5142
  }
4593
5143
 
4594
5144
  /**
4595
- * 判断输入为 SequentialPolicy 节点实例
5145
+ * 判断输入为 Assignee 节点实例
4596
5146
  *
4597
5147
  * @description 包含节点类以及节点继承类的判断
4598
- * @description 等价于`instanceof`运算,SequentialPolicy 节点没有继承类,此判断等价于`isStrictSequentialPolicy`
5148
+ * @description 等价于`instanceof`运算,Assignee 节点没有继承类,此判断等价于`isStrictAssignee`
4599
5149
  * @example
4600
5150
  * ```ts
4601
- * if (isSequentialPolicy(node)) {
4602
- * // 在这个花括号内,node 的类型是 SequentialPolicy 或者 SequentialPolicy 继承类型
5151
+ * if (isAssignee(node)) {
5152
+ * // 在这个花括号内,node 的类型是 Assignee 或者 Assignee 继承类型
4603
5153
  * }
4604
5154
  * ```
4605
5155
  */
4606
- export function isSequentialPolicy(node: unknown): node is SequentialPolicy {
5156
+ export function isAssignee(node: unknown): node is Assignee {
4607
5157
  return (
4608
5158
  isBaseNode(node) &&
4609
5159
  (
4610
- node.concept === 'SequentialPolicy'
5160
+ node.concept === 'Assignee'
4611
5161
  )
4612
5162
  );
4613
5163
  }
4614
5164
 
4615
5165
  /**
4616
- * 判断输入为 CountersignPolicy 节点实例
5166
+ * 判断输入为 ProcessOutcomes 节点实例
4617
5167
  *
4618
5168
  * @description 包含节点类以及节点继承类的判断
4619
- * @description 等价于`instanceof`运算,CountersignPolicy 节点没有继承类,此判断等价于`isStrictCountersignPolicy`
5169
+ * @description 等价于`instanceof`运算,ProcessOutcomes 节点没有继承类,此判断等价于`isStrictProcessOutcomes`
4620
5170
  * @example
4621
5171
  * ```ts
4622
- * if (isCountersignPolicy(node)) {
4623
- * // 在这个花括号内,node 的类型是 CountersignPolicy 或者 CountersignPolicy 继承类型
5172
+ * if (isProcessOutcomes(node)) {
5173
+ * // 在这个花括号内,node 的类型是 ProcessOutcomes 或者 ProcessOutcomes 继承类型
4624
5174
  * }
4625
5175
  * ```
4626
5176
  */
4627
- export function isCountersignPolicy(node: unknown): node is CountersignPolicy {
5177
+ export function isProcessOutcomes(node: unknown): node is ProcessOutcomes {
4628
5178
  return (
4629
5179
  isBaseNode(node) &&
4630
5180
  (
4631
- node.concept === 'CountersignPolicy'
5181
+ node.concept === 'ProcessOutcomes'
4632
5182
  )
4633
5183
  );
4634
5184
  }
@@ -4910,7 +5460,7 @@ export function isFrontendLibrary(node: unknown): node is FrontendLibrary {
4910
5460
  * 判断输入为 ViewBlock 节点实例
4911
5461
  *
4912
5462
  * @description 包含节点类以及节点继承类的判断
4913
- * @description 等价于`instanceof`运算,ViewBlock 节点没有继承类,此判断等价于`isStrictViewBlock`
5463
+ * @description 等价于`instanceof`运算
4914
5464
  * @example
4915
5465
  * ```ts
4916
5466
  * if (isViewBlock(node)) {
@@ -4918,11 +5468,33 @@ export function isFrontendLibrary(node: unknown): node is FrontendLibrary {
4918
5468
  * }
4919
5469
  * ```
4920
5470
  */
4921
- export function isViewBlock(node: unknown): node is ViewBlock {
5471
+ export function isViewBlock(node: unknown): node is types.ViewBlockNode {
5472
+ return (
5473
+ isBaseNode(node) &&
5474
+ (
5475
+ node.concept === 'ViewBlock' ||
5476
+ node.concept === 'ViewBlockWithImage'
5477
+ )
5478
+ );
5479
+ }
5480
+
5481
+ /**
5482
+ * 判断输入为 ViewBlockWithImage 节点实例
5483
+ *
5484
+ * @description 包含节点类以及节点继承类的判断
5485
+ * @description 等价于`instanceof`运算,ViewBlockWithImage 节点没有继承类,此判断等价于`isStrictViewBlockWithImage`
5486
+ * @example
5487
+ * ```ts
5488
+ * if (isViewBlockWithImage(node)) {
5489
+ * // 在这个花括号内,node 的类型是 ViewBlockWithImage 或者 ViewBlockWithImage 继承类型
5490
+ * }
5491
+ * ```
5492
+ */
5493
+ export function isViewBlockWithImage(node: unknown): node is ViewBlockWithImage {
4922
5494
  return (
4923
5495
  isBaseNode(node) &&
4924
5496
  (
4925
- node.concept === 'ViewBlock'
5497
+ node.concept === 'ViewBlockWithImage'
4926
5498
  )
4927
5499
  );
4928
5500
  }
@@ -4981,7 +5553,7 @@ export function isCallAuthInterface(node: unknown): node is CallAuthInterface {
4981
5553
  * }
4982
5554
  * ```
4983
5555
  */
4984
- export function isTriggerEvent(node: unknown): node is Type.TriggerEventNode {
5556
+ export function isTriggerEvent(node: unknown): node is types.TriggerEventNode {
4985
5557
  return (
4986
5558
  isBaseNode(node) &&
4987
5559
  (
@@ -5045,7 +5617,7 @@ export function isConnectorTrigger(node: unknown): node is ConnectorTrigger {
5045
5617
  * }
5046
5618
  * ```
5047
5619
  */
5048
- export function isTriggerLauncher(node: unknown): node is Type.TriggerLauncherNode {
5620
+ export function isTriggerLauncher(node: unknown): node is types.TriggerLauncherNode {
5049
5621
  return (
5050
5622
  isBaseNode(node) &&
5051
5623
  (
@@ -5586,19 +6158,189 @@ export function assertStrictBindStyle(node: unknown): asserts node is BindStyle
5586
6158
  }
5587
6159
 
5588
6160
  /**
5589
- * 严格断言为 ViewComponent 节点
6161
+ * 严格断言为 ThemeVariable 节点
6162
+ *
6163
+ * @description 仅断言节点本身,不包含继承类
6164
+ * @example
6165
+ * ```ts
6166
+ * assertStrictThemeVariable(node);
6167
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ThemeVariable 类型
6168
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6169
+ * ```
6170
+ */
6171
+ export function assertStrictThemeVariable(node: unknown): asserts node is ThemeVariable {
6172
+ if (!isStrictThemeVariable(node)) {
6173
+ throw new Error(`ThemeVariable 节点严格断言失败`);
6174
+ }
6175
+ }
6176
+
6177
+ /**
6178
+ * 严格断言为 InputSetter 节点
6179
+ *
6180
+ * @description 仅断言节点本身,不包含继承类
6181
+ * @example
6182
+ * ```ts
6183
+ * assertStrictInputSetter(node);
6184
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InputSetter 类型
6185
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6186
+ * ```
6187
+ */
6188
+ export function assertStrictInputSetter(node: unknown): asserts node is InputSetter {
6189
+ if (!isStrictInputSetter(node)) {
6190
+ throw new Error(`InputSetter 节点严格断言失败`);
6191
+ }
6192
+ }
6193
+
6194
+ /**
6195
+ * 严格断言为 SwitchSetter 节点
6196
+ *
6197
+ * @description 仅断言节点本身,不包含继承类
6198
+ * @example
6199
+ * ```ts
6200
+ * assertStrictSwitchSetter(node);
6201
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SwitchSetter 类型
6202
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6203
+ * ```
6204
+ */
6205
+ export function assertStrictSwitchSetter(node: unknown): asserts node is SwitchSetter {
6206
+ if (!isStrictSwitchSetter(node)) {
6207
+ throw new Error(`SwitchSetter 节点严格断言失败`);
6208
+ }
6209
+ }
6210
+
6211
+ /**
6212
+ * 严格断言为 SetterOption 节点
6213
+ *
6214
+ * @description 仅断言节点本身,不包含继承类
6215
+ * @example
6216
+ * ```ts
6217
+ * assertStrictSetterOption(node);
6218
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SetterOption 类型
6219
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6220
+ * ```
6221
+ */
6222
+ export function assertStrictSetterOption(node: unknown): asserts node is SetterOption {
6223
+ if (!isStrictSetterOption(node)) {
6224
+ throw new Error(`SetterOption 节点严格断言失败`);
6225
+ }
6226
+ }
6227
+
6228
+ /**
6229
+ * 严格断言为 EnumSelectSetter 节点
6230
+ *
6231
+ * @description 仅断言节点本身,不包含继承类
6232
+ * @example
6233
+ * ```ts
6234
+ * assertStrictEnumSelectSetter(node);
6235
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EnumSelectSetter 类型
6236
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6237
+ * ```
6238
+ */
6239
+ export function assertStrictEnumSelectSetter(node: unknown): asserts node is EnumSelectSetter {
6240
+ if (!isStrictEnumSelectSetter(node)) {
6241
+ throw new Error(`EnumSelectSetter 节点严格断言失败`);
6242
+ }
6243
+ }
6244
+
6245
+ /**
6246
+ * 严格断言为 CapsulesSetter 节点
6247
+ *
6248
+ * @description 仅断言节点本身,不包含继承类
6249
+ * @example
6250
+ * ```ts
6251
+ * assertStrictCapsulesSetter(node);
6252
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CapsulesSetter 类型
6253
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6254
+ * ```
6255
+ */
6256
+ export function assertStrictCapsulesSetter(node: unknown): asserts node is CapsulesSetter {
6257
+ if (!isStrictCapsulesSetter(node)) {
6258
+ throw new Error(`CapsulesSetter 节点严格断言失败`);
6259
+ }
6260
+ }
6261
+
6262
+ /**
6263
+ * 严格断言为 NumberInputSetter 节点
6264
+ *
6265
+ * @description 仅断言节点本身,不包含继承类
6266
+ * @example
6267
+ * ```ts
6268
+ * assertStrictNumberInputSetter(node);
6269
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 NumberInputSetter 类型
6270
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6271
+ * ```
6272
+ */
6273
+ export function assertStrictNumberInputSetter(node: unknown): asserts node is NumberInputSetter {
6274
+ if (!isStrictNumberInputSetter(node)) {
6275
+ throw new Error(`NumberInputSetter 节点严格断言失败`);
6276
+ }
6277
+ }
6278
+
6279
+ /**
6280
+ * 严格断言为 IconSetter 节点
6281
+ *
6282
+ * @description 仅断言节点本身,不包含继承类
6283
+ * @example
6284
+ * ```ts
6285
+ * assertStrictIconSetter(node);
6286
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 IconSetter 类型
6287
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6288
+ * ```
6289
+ */
6290
+ export function assertStrictIconSetter(node: unknown): asserts node is IconSetter {
6291
+ if (!isStrictIconSetter(node)) {
6292
+ throw new Error(`IconSetter 节点严格断言失败`);
6293
+ }
6294
+ }
6295
+
6296
+ /**
6297
+ * 严格断言为 ImageSetter 节点
6298
+ *
6299
+ * @description 仅断言节点本身,不包含继承类
6300
+ * @example
6301
+ * ```ts
6302
+ * assertStrictImageSetter(node);
6303
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImageSetter 类型
6304
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6305
+ * ```
6306
+ */
6307
+ export function assertStrictImageSetter(node: unknown): asserts node is ImageSetter {
6308
+ if (!isStrictImageSetter(node)) {
6309
+ throw new Error(`ImageSetter 节点严格断言失败`);
6310
+ }
6311
+ }
6312
+
6313
+ /**
6314
+ * 严格断言为 PropertySelectSetter 节点
6315
+ *
6316
+ * @description 仅断言节点本身,不包含继承类
6317
+ * @example
6318
+ * ```ts
6319
+ * assertStrictPropertySelectSetter(node);
6320
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropertySelectSetter 类型
6321
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6322
+ * ```
6323
+ */
6324
+ export function assertStrictPropertySelectSetter(node: unknown): asserts node is PropertySelectSetter {
6325
+ if (!isStrictPropertySelectSetter(node)) {
6326
+ throw new Error(`PropertySelectSetter 节点严格断言失败`);
6327
+ }
6328
+ }
6329
+
6330
+ /**
6331
+ * 严格断言为 ViewComponentDeclaration 节点
5590
6332
  *
5591
6333
  * @description 仅断言节点本身,不包含继承类
5592
6334
  * @example
5593
6335
  * ```ts
5594
- * assertStrictViewComponent(node);
5595
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponent 类型
6336
+ * assertStrictViewComponentDeclaration(node);
6337
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponentDeclaration 类型
5596
6338
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5597
6339
  * ```
5598
6340
  */
5599
- export function assertStrictViewComponent(node: unknown): asserts node is ViewComponent {
5600
- if (!isStrictViewComponent(node)) {
5601
- throw new Error(`ViewComponent 节点严格断言失败`);
6341
+ export function assertStrictViewComponentDeclaration(node: unknown): asserts node is ViewComponentDeclaration {
6342
+ if (!isStrictViewComponentDeclaration(node)) {
6343
+ throw new Error(`ViewComponentDeclaration 节点严格断言失败`);
5602
6344
  }
5603
6345
  }
5604
6346
 
@@ -5654,53 +6396,87 @@ export function assertStrictEvent(node: unknown): asserts node is Event {
5654
6396
  }
5655
6397
 
5656
6398
  /**
5657
- * 严格断言为 Slot 节点
6399
+ * 严格断言为 PropDeclaration 节点
5658
6400
  *
5659
6401
  * @description 仅断言节点本身,不包含继承类
5660
6402
  * @example
5661
6403
  * ```ts
5662
- * assertStrictSlot(node);
5663
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Slot 类型
6404
+ * assertStrictPropDeclaration(node);
6405
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropDeclaration 类型
5664
6406
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5665
6407
  * ```
5666
6408
  */
5667
- export function assertStrictSlot(node: unknown): asserts node is Slot {
5668
- if (!isStrictSlot(node)) {
5669
- throw new Error(`Slot 节点严格断言失败`);
6409
+ export function assertStrictPropDeclaration(node: unknown): asserts node is PropDeclaration {
6410
+ if (!isStrictPropDeclaration(node)) {
6411
+ throw new Error(`PropDeclaration 节点严格断言失败`);
5670
6412
  }
5671
6413
  }
5672
6414
 
5673
6415
  /**
5674
- * 严格断言为 Theme 节点
6416
+ * 严格断言为 EventDeclaration 节点
5675
6417
  *
5676
6418
  * @description 仅断言节点本身,不包含继承类
5677
6419
  * @example
5678
6420
  * ```ts
5679
- * assertStrictTheme(node);
5680
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Theme 类型
6421
+ * assertStrictEventDeclaration(node);
6422
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EventDeclaration 类型
5681
6423
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5682
6424
  * ```
5683
6425
  */
5684
- export function assertStrictTheme(node: unknown): asserts node is Theme {
5685
- if (!isStrictTheme(node)) {
5686
- throw new Error(`Theme 节点严格断言失败`);
6426
+ export function assertStrictEventDeclaration(node: unknown): asserts node is EventDeclaration {
6427
+ if (!isStrictEventDeclaration(node)) {
6428
+ throw new Error(`EventDeclaration 节点严格断言失败`);
5687
6429
  }
5688
6430
  }
5689
6431
 
5690
6432
  /**
5691
- * 严格断言为 StaticString 节点
6433
+ * 严格断言为 SlotDeclaration 节点
5692
6434
  *
5693
6435
  * @description 仅断言节点本身,不包含继承类
5694
6436
  * @example
5695
6437
  * ```ts
5696
- * assertStrictStaticString(node);
5697
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 StaticString 类型
6438
+ * assertStrictSlotDeclaration(node);
6439
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SlotDeclaration 类型
5698
6440
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5699
6441
  * ```
5700
6442
  */
5701
- export function assertStrictStaticString(node: unknown): asserts node is StaticString {
5702
- if (!isStrictStaticString(node)) {
5703
- throw new Error(`StaticString 节点严格断言失败`);
6443
+ export function assertStrictSlotDeclaration(node: unknown): asserts node is SlotDeclaration {
6444
+ if (!isStrictSlotDeclaration(node)) {
6445
+ throw new Error(`SlotDeclaration 节点严格断言失败`);
6446
+ }
6447
+ }
6448
+
6449
+ /**
6450
+ * 严格断言为 LogicDeclaration 节点
6451
+ *
6452
+ * @description 仅断言节点本身,不包含继承类
6453
+ * @example
6454
+ * ```ts
6455
+ * assertStrictLogicDeclaration(node);
6456
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 LogicDeclaration 类型
6457
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6458
+ * ```
6459
+ */
6460
+ export function assertStrictLogicDeclaration(node: unknown): asserts node is LogicDeclaration {
6461
+ if (!isStrictLogicDeclaration(node)) {
6462
+ throw new Error(`LogicDeclaration 节点严格断言失败`);
6463
+ }
6464
+ }
6465
+
6466
+ /**
6467
+ * 严格断言为 Theme 节点
6468
+ *
6469
+ * @description 仅断言节点本身,不包含继承类
6470
+ * @example
6471
+ * ```ts
6472
+ * assertStrictTheme(node);
6473
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Theme 类型
6474
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6475
+ * ```
6476
+ */
6477
+ export function assertStrictTheme(node: unknown): asserts node is Theme {
6478
+ if (!isStrictTheme(node)) {
6479
+ throw new Error(`Theme 节点严格断言失败`);
5704
6480
  }
5705
6481
  }
5706
6482
 
@@ -5738,23 +6514,6 @@ export function assertStrictAuthLogic(node: unknown): asserts node is AuthLogic
5738
6514
  }
5739
6515
  }
5740
6516
 
5741
- /**
5742
- * 严格断言为 BusinessLogic 节点
5743
- *
5744
- * @description 仅断言节点本身,不包含继承类
5745
- * @example
5746
- * ```ts
5747
- * assertStrictBusinessLogic(node);
5748
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 类型
5749
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5750
- * ```
5751
- */
5752
- export function assertStrictBusinessLogic(node: unknown): asserts node is BusinessLogic {
5753
- if (!isStrictBusinessLogic(node)) {
5754
- throw new Error(`BusinessLogic 节点严格断言失败`);
5755
- }
5756
- }
5757
-
5758
6517
  /**
5759
6518
  * 严格断言为 AuthLogicForCallInterface 节点
5760
6519
  *
@@ -5789,6 +6548,23 @@ export function assertStrictOverriddenLogic(node: unknown): asserts node is Over
5789
6548
  }
5790
6549
  }
5791
6550
 
6551
+ /**
6552
+ * 严格断言为 BusinessLogic 节点
6553
+ *
6554
+ * @description 仅断言节点本身,不包含继承类
6555
+ * @example
6556
+ * ```ts
6557
+ * assertStrictBusinessLogic(node);
6558
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 类型
6559
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6560
+ * ```
6561
+ */
6562
+ export function assertStrictBusinessLogic(node: unknown): asserts node is BusinessLogic {
6563
+ if (!isStrictBusinessLogic(node)) {
6564
+ throw new Error(`BusinessLogic 节点严格断言失败`);
6565
+ }
6566
+ }
6567
+
5792
6568
  /**
5793
6569
  * 严格断言为 Param 节点
5794
6570
  *
@@ -6475,14 +7251,31 @@ export function assertStrictStringLiteral(node: unknown): asserts node is String
6475
7251
  * @description 仅断言节点本身,不包含继承类
6476
7252
  * @example
6477
7253
  * ```ts
6478
- * assertStrictStringInterpolation(node);
6479
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 StringInterpolation 类型
7254
+ * assertStrictStringInterpolation(node);
7255
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 StringInterpolation 类型
7256
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7257
+ * ```
7258
+ */
7259
+ export function assertStrictStringInterpolation(node: unknown): asserts node is StringInterpolation {
7260
+ if (!isStrictStringInterpolation(node)) {
7261
+ throw new Error(`StringInterpolation 节点严格断言失败`);
7262
+ }
7263
+ }
7264
+
7265
+ /**
7266
+ * 严格断言为 StaticString 节点
7267
+ *
7268
+ * @description 仅断言节点本身,不包含继承类
7269
+ * @example
7270
+ * ```ts
7271
+ * assertStrictStaticString(node);
7272
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 StaticString 类型
6480
7273
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6481
7274
  * ```
6482
7275
  */
6483
- export function assertStrictStringInterpolation(node: unknown): asserts node is StringInterpolation {
6484
- if (!isStrictStringInterpolation(node)) {
6485
- throw new Error(`StringInterpolation 节点严格断言失败`);
7276
+ export function assertStrictStaticString(node: unknown): asserts node is StaticString {
7277
+ if (!isStrictStaticString(node)) {
7278
+ throw new Error(`StaticString 节点严格断言失败`);
6486
7279
  }
6487
7280
  }
6488
7281
 
@@ -6673,6 +7466,23 @@ export function assertStrictNewMap(node: unknown): asserts node is NewMap {
6673
7466
  }
6674
7467
  }
6675
7468
 
7469
+ /**
7470
+ * 严格断言为 Paginate 节点
7471
+ *
7472
+ * @description 仅断言节点本身,不包含继承类
7473
+ * @example
7474
+ * ```ts
7475
+ * assertStrictPaginate(node);
7476
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Paginate 类型
7477
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7478
+ * ```
7479
+ */
7480
+ export function assertStrictPaginate(node: unknown): asserts node is Paginate {
7481
+ if (!isStrictPaginate(node)) {
7482
+ throw new Error(`Paginate 节点严格断言失败`);
7483
+ }
7484
+ }
7485
+
6676
7486
  /**
6677
7487
  * 严格断言为 CallQueryComponent 节点
6678
7488
  *
@@ -6912,104 +7722,87 @@ export function assertStrictProcessComponent(node: unknown): asserts node is Pro
6912
7722
  }
6913
7723
 
6914
7724
  /**
6915
- * 严格断言为 ProcessOutcome 节点
6916
- *
6917
- * @description 仅断言节点本身,不包含继承类
6918
- * @example
6919
- * ```ts
6920
- * assertStrictProcessOutcome(node);
6921
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcome 类型
6922
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6923
- * ```
6924
- */
6925
- export function assertStrictProcessOutcome(node: unknown): asserts node is ProcessOutcome {
6926
- if (!isStrictProcessOutcome(node)) {
6927
- throw new Error(`ProcessOutcome 节点严格断言失败`);
6928
- }
6929
- }
6930
-
6931
- /**
6932
- * 严格断言为 Assignee 节点
7725
+ * 严格断言为 SequentialPolicy 节点
6933
7726
  *
6934
7727
  * @description 仅断言节点本身,不包含继承类
6935
7728
  * @example
6936
7729
  * ```ts
6937
- * assertStrictAssignee(node);
6938
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Assignee 类型
7730
+ * assertStrictSequentialPolicy(node);
7731
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SequentialPolicy 类型
6939
7732
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6940
7733
  * ```
6941
7734
  */
6942
- export function assertStrictAssignee(node: unknown): asserts node is Assignee {
6943
- if (!isStrictAssignee(node)) {
6944
- throw new Error(`Assignee 节点严格断言失败`);
7735
+ export function assertStrictSequentialPolicy(node: unknown): asserts node is SequentialPolicy {
7736
+ if (!isStrictSequentialPolicy(node)) {
7737
+ throw new Error(`SequentialPolicy 节点严格断言失败`);
6945
7738
  }
6946
7739
  }
6947
7740
 
6948
7741
  /**
6949
- * 严格断言为 ProcessOutcomes 节点
7742
+ * 严格断言为 CountersignPolicy 节点
6950
7743
  *
6951
7744
  * @description 仅断言节点本身,不包含继承类
6952
7745
  * @example
6953
7746
  * ```ts
6954
- * assertStrictProcessOutcomes(node);
6955
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcomes 类型
7747
+ * assertStrictCountersignPolicy(node);
7748
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CountersignPolicy 类型
6956
7749
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6957
7750
  * ```
6958
7751
  */
6959
- export function assertStrictProcessOutcomes(node: unknown): asserts node is ProcessOutcomes {
6960
- if (!isStrictProcessOutcomes(node)) {
6961
- throw new Error(`ProcessOutcomes 节点严格断言失败`);
7752
+ export function assertStrictCountersignPolicy(node: unknown): asserts node is CountersignPolicy {
7753
+ if (!isStrictCountersignPolicy(node)) {
7754
+ throw new Error(`CountersignPolicy 节点严格断言失败`);
6962
7755
  }
6963
7756
  }
6964
7757
 
6965
7758
  /**
6966
- * 严格断言为 MultiApprovalPolicy 节点
7759
+ * 严格断言为 ProcessOutcome 节点
6967
7760
  *
6968
7761
  * @description 仅断言节点本身,不包含继承类
6969
7762
  * @example
6970
7763
  * ```ts
6971
- * assertStrictMultiApprovalPolicy(node);
6972
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 MultiApprovalPolicy 类型
7764
+ * assertStrictProcessOutcome(node);
7765
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcome 类型
6973
7766
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6974
7767
  * ```
6975
7768
  */
6976
- export function assertStrictMultiApprovalPolicy(node: unknown): asserts node is MultiApprovalPolicy {
6977
- if (!isStrictMultiApprovalPolicy(node)) {
6978
- throw new Error(`MultiApprovalPolicy 节点严格断言失败`);
7769
+ export function assertStrictProcessOutcome(node: unknown): asserts node is ProcessOutcome {
7770
+ if (!isStrictProcessOutcome(node)) {
7771
+ throw new Error(`ProcessOutcome 节点严格断言失败`);
6979
7772
  }
6980
7773
  }
6981
7774
 
6982
7775
  /**
6983
- * 严格断言为 SequentialPolicy 节点
7776
+ * 严格断言为 Assignee 节点
6984
7777
  *
6985
7778
  * @description 仅断言节点本身,不包含继承类
6986
7779
  * @example
6987
7780
  * ```ts
6988
- * assertStrictSequentialPolicy(node);
6989
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SequentialPolicy 类型
7781
+ * assertStrictAssignee(node);
7782
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Assignee 类型
6990
7783
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6991
7784
  * ```
6992
7785
  */
6993
- export function assertStrictSequentialPolicy(node: unknown): asserts node is SequentialPolicy {
6994
- if (!isStrictSequentialPolicy(node)) {
6995
- throw new Error(`SequentialPolicy 节点严格断言失败`);
7786
+ export function assertStrictAssignee(node: unknown): asserts node is Assignee {
7787
+ if (!isStrictAssignee(node)) {
7788
+ throw new Error(`Assignee 节点严格断言失败`);
6996
7789
  }
6997
7790
  }
6998
7791
 
6999
7792
  /**
7000
- * 严格断言为 CountersignPolicy 节点
7793
+ * 严格断言为 ProcessOutcomes 节点
7001
7794
  *
7002
7795
  * @description 仅断言节点本身,不包含继承类
7003
7796
  * @example
7004
7797
  * ```ts
7005
- * assertStrictCountersignPolicy(node);
7006
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CountersignPolicy 类型
7798
+ * assertStrictProcessOutcomes(node);
7799
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcomes 类型
7007
7800
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7008
7801
  * ```
7009
7802
  */
7010
- export function assertStrictCountersignPolicy(node: unknown): asserts node is CountersignPolicy {
7011
- if (!isStrictCountersignPolicy(node)) {
7012
- throw new Error(`CountersignPolicy 节点严格断言失败`);
7803
+ export function assertStrictProcessOutcomes(node: unknown): asserts node is ProcessOutcomes {
7804
+ if (!isStrictProcessOutcomes(node)) {
7805
+ throw new Error(`ProcessOutcomes 节点严格断言失败`);
7013
7806
  }
7014
7807
  }
7015
7808
 
@@ -7251,6 +8044,23 @@ export function assertStrictViewBlock(node: unknown): asserts node is ViewBlock
7251
8044
  }
7252
8045
  }
7253
8046
 
8047
+ /**
8048
+ * 严格断言为 ViewBlockWithImage 节点
8049
+ *
8050
+ * @description 仅断言节点本身,不包含继承类
8051
+ * @example
8052
+ * ```ts
8053
+ * assertStrictViewBlockWithImage(node);
8054
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewBlockWithImage 类型
8055
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8056
+ * ```
8057
+ */
8058
+ export function assertStrictViewBlockWithImage(node: unknown): asserts node is ViewBlockWithImage {
8059
+ if (!isStrictViewBlockWithImage(node)) {
8060
+ throw new Error(`ViewBlockWithImage 节点严格断言失败`);
8061
+ }
8062
+ }
8063
+
7254
8064
  /**
7255
8065
  * 严格断言为 AuthInterface 节点
7256
8066
  *
@@ -7455,7 +8265,7 @@ export function assertApp(node: unknown): asserts node is App {
7455
8265
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7456
8266
  * ```
7457
8267
  */
7458
- export function assertModule(node: unknown): asserts node is Type.ModuleNode {
8268
+ export function assertModule(node: unknown): asserts node is types.ModuleNode {
7459
8269
  if (!isModule(node)) {
7460
8270
  throw new Error(`Module 节点断言失败`);
7461
8271
  }
@@ -7815,99 +8625,297 @@ export function assertView(node: unknown): asserts node is View {
7815
8625
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7816
8626
  * ```
7817
8627
  */
7818
- export function assertViewElement(node: unknown): asserts node is ViewElement {
7819
- if (!isViewElement(node)) {
7820
- throw new Error(`ViewElement 节点断言失败`);
8628
+ export function assertViewElement(node: unknown): asserts node is ViewElement {
8629
+ if (!isViewElement(node)) {
8630
+ throw new Error(`ViewElement 节点断言失败`);
8631
+ }
8632
+ }
8633
+
8634
+ /**
8635
+ * 断言为 BindAttribute 节点
8636
+ *
8637
+ * @description 包含节点类以及节点继承类的判断
8638
+ * @description 节点没有继承类时,等价于`assertStrictBindAttribute`方法
8639
+ * @example
8640
+ * ```ts
8641
+ * assertBindAttribute(node);
8642
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindAttribute 或者 BindAttribute 继承类型
8643
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8644
+ * ```
8645
+ */
8646
+ export function assertBindAttribute(node: unknown): asserts node is BindAttribute {
8647
+ if (!isBindAttribute(node)) {
8648
+ throw new Error(`BindAttribute 节点断言失败`);
8649
+ }
8650
+ }
8651
+
8652
+ /**
8653
+ * 断言为 BindDirective 节点
8654
+ *
8655
+ * @description 包含节点类以及节点继承类的判断
8656
+ * @description 节点没有继承类时,等价于`assertStrictBindDirective`方法
8657
+ * @example
8658
+ * ```ts
8659
+ * assertBindDirective(node);
8660
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindDirective 或者 BindDirective 继承类型
8661
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8662
+ * ```
8663
+ */
8664
+ export function assertBindDirective(node: unknown): asserts node is BindDirective {
8665
+ if (!isBindDirective(node)) {
8666
+ throw new Error(`BindDirective 节点断言失败`);
8667
+ }
8668
+ }
8669
+
8670
+ /**
8671
+ * 断言为 BindEvent 节点
8672
+ *
8673
+ * @description 包含节点类以及节点继承类的判断
8674
+ * @description 节点没有继承类时,等价于`assertStrictBindEvent`方法
8675
+ * @example
8676
+ * ```ts
8677
+ * assertBindEvent(node);
8678
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindEvent 或者 BindEvent 继承类型
8679
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8680
+ * ```
8681
+ */
8682
+ export function assertBindEvent(node: unknown): asserts node is BindEvent {
8683
+ if (!isBindEvent(node)) {
8684
+ throw new Error(`BindEvent 节点断言失败`);
8685
+ }
8686
+ }
8687
+
8688
+ /**
8689
+ * 断言为 BindStyle 节点
8690
+ *
8691
+ * @description 包含节点类以及节点继承类的判断
8692
+ * @description 节点没有继承类时,等价于`assertStrictBindStyle`方法
8693
+ * @example
8694
+ * ```ts
8695
+ * assertBindStyle(node);
8696
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindStyle 或者 BindStyle 继承类型
8697
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8698
+ * ```
8699
+ */
8700
+ export function assertBindStyle(node: unknown): asserts node is BindStyle {
8701
+ if (!isBindStyle(node)) {
8702
+ throw new Error(`BindStyle 节点断言失败`);
8703
+ }
8704
+ }
8705
+
8706
+ /**
8707
+ * 断言为 ThemeVariable 节点
8708
+ *
8709
+ * @description 包含节点类以及节点继承类的判断
8710
+ * @description 节点没有继承类时,等价于`assertStrictThemeVariable`方法
8711
+ * @example
8712
+ * ```ts
8713
+ * assertThemeVariable(node);
8714
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ThemeVariable 或者 ThemeVariable 继承类型
8715
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8716
+ * ```
8717
+ */
8718
+ export function assertThemeVariable(node: unknown): asserts node is ThemeVariable {
8719
+ if (!isThemeVariable(node)) {
8720
+ throw new Error(`ThemeVariable 节点断言失败`);
8721
+ }
8722
+ }
8723
+
8724
+ /**
8725
+ * 断言为 BaseSetter 节点
8726
+ *
8727
+ * @description 包含节点类以及节点继承类的判断
8728
+ * @description 节点没有继承类时,等价于`assertStrictBaseSetter`方法
8729
+ * @example
8730
+ * ```ts
8731
+ * assertBaseSetter(node);
8732
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BaseSetter 或者 BaseSetter 继承类型
8733
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8734
+ * ```
8735
+ */
8736
+ export function assertBaseSetter(node: unknown): asserts node is types.BaseSetterNode {
8737
+ if (!isBaseSetter(node)) {
8738
+ throw new Error(`BaseSetter 节点断言失败`);
8739
+ }
8740
+ }
8741
+
8742
+ /**
8743
+ * 断言为 InputSetter 节点
8744
+ *
8745
+ * @description 包含节点类以及节点继承类的判断
8746
+ * @description 节点没有继承类时,等价于`assertStrictInputSetter`方法
8747
+ * @example
8748
+ * ```ts
8749
+ * assertInputSetter(node);
8750
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InputSetter 或者 InputSetter 继承类型
8751
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8752
+ * ```
8753
+ */
8754
+ export function assertInputSetter(node: unknown): asserts node is InputSetter {
8755
+ if (!isInputSetter(node)) {
8756
+ throw new Error(`InputSetter 节点断言失败`);
8757
+ }
8758
+ }
8759
+
8760
+ /**
8761
+ * 断言为 SwitchSetter 节点
8762
+ *
8763
+ * @description 包含节点类以及节点继承类的判断
8764
+ * @description 节点没有继承类时,等价于`assertStrictSwitchSetter`方法
8765
+ * @example
8766
+ * ```ts
8767
+ * assertSwitchSetter(node);
8768
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SwitchSetter 或者 SwitchSetter 继承类型
8769
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8770
+ * ```
8771
+ */
8772
+ export function assertSwitchSetter(node: unknown): asserts node is SwitchSetter {
8773
+ if (!isSwitchSetter(node)) {
8774
+ throw new Error(`SwitchSetter 节点断言失败`);
8775
+ }
8776
+ }
8777
+
8778
+ /**
8779
+ * 断言为 SetterOption 节点
8780
+ *
8781
+ * @description 包含节点类以及节点继承类的判断
8782
+ * @description 节点没有继承类时,等价于`assertStrictSetterOption`方法
8783
+ * @example
8784
+ * ```ts
8785
+ * assertSetterOption(node);
8786
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SetterOption 或者 SetterOption 继承类型
8787
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8788
+ * ```
8789
+ */
8790
+ export function assertSetterOption(node: unknown): asserts node is SetterOption {
8791
+ if (!isSetterOption(node)) {
8792
+ throw new Error(`SetterOption 节点断言失败`);
8793
+ }
8794
+ }
8795
+
8796
+ /**
8797
+ * 断言为 EnumSelectSetter 节点
8798
+ *
8799
+ * @description 包含节点类以及节点继承类的判断
8800
+ * @description 节点没有继承类时,等价于`assertStrictEnumSelectSetter`方法
8801
+ * @example
8802
+ * ```ts
8803
+ * assertEnumSelectSetter(node);
8804
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EnumSelectSetter 或者 EnumSelectSetter 继承类型
8805
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8806
+ * ```
8807
+ */
8808
+ export function assertEnumSelectSetter(node: unknown): asserts node is EnumSelectSetter {
8809
+ if (!isEnumSelectSetter(node)) {
8810
+ throw new Error(`EnumSelectSetter 节点断言失败`);
8811
+ }
8812
+ }
8813
+
8814
+ /**
8815
+ * 断言为 CapsulesSetter 节点
8816
+ *
8817
+ * @description 包含节点类以及节点继承类的判断
8818
+ * @description 节点没有继承类时,等价于`assertStrictCapsulesSetter`方法
8819
+ * @example
8820
+ * ```ts
8821
+ * assertCapsulesSetter(node);
8822
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CapsulesSetter 或者 CapsulesSetter 继承类型
8823
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8824
+ * ```
8825
+ */
8826
+ export function assertCapsulesSetter(node: unknown): asserts node is CapsulesSetter {
8827
+ if (!isCapsulesSetter(node)) {
8828
+ throw new Error(`CapsulesSetter 节点断言失败`);
7821
8829
  }
7822
8830
  }
7823
8831
 
7824
8832
  /**
7825
- * 断言为 BindAttribute 节点
8833
+ * 断言为 NumberInputSetter 节点
7826
8834
  *
7827
8835
  * @description 包含节点类以及节点继承类的判断
7828
- * @description 节点没有继承类时,等价于`assertStrictBindAttribute`方法
8836
+ * @description 节点没有继承类时,等价于`assertStrictNumberInputSetter`方法
7829
8837
  * @example
7830
8838
  * ```ts
7831
- * assertBindAttribute(node);
7832
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindAttribute 或者 BindAttribute 继承类型
8839
+ * assertNumberInputSetter(node);
8840
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 NumberInputSetter 或者 NumberInputSetter 继承类型
7833
8841
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7834
8842
  * ```
7835
8843
  */
7836
- export function assertBindAttribute(node: unknown): asserts node is BindAttribute {
7837
- if (!isBindAttribute(node)) {
7838
- throw new Error(`BindAttribute 节点断言失败`);
8844
+ export function assertNumberInputSetter(node: unknown): asserts node is NumberInputSetter {
8845
+ if (!isNumberInputSetter(node)) {
8846
+ throw new Error(`NumberInputSetter 节点断言失败`);
7839
8847
  }
7840
8848
  }
7841
8849
 
7842
8850
  /**
7843
- * 断言为 BindDirective 节点
8851
+ * 断言为 IconSetter 节点
7844
8852
  *
7845
8853
  * @description 包含节点类以及节点继承类的判断
7846
- * @description 节点没有继承类时,等价于`assertStrictBindDirective`方法
8854
+ * @description 节点没有继承类时,等价于`assertStrictIconSetter`方法
7847
8855
  * @example
7848
8856
  * ```ts
7849
- * assertBindDirective(node);
7850
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindDirective 或者 BindDirective 继承类型
8857
+ * assertIconSetter(node);
8858
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 IconSetter 或者 IconSetter 继承类型
7851
8859
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7852
8860
  * ```
7853
8861
  */
7854
- export function assertBindDirective(node: unknown): asserts node is BindDirective {
7855
- if (!isBindDirective(node)) {
7856
- throw new Error(`BindDirective 节点断言失败`);
8862
+ export function assertIconSetter(node: unknown): asserts node is IconSetter {
8863
+ if (!isIconSetter(node)) {
8864
+ throw new Error(`IconSetter 节点断言失败`);
7857
8865
  }
7858
8866
  }
7859
8867
 
7860
8868
  /**
7861
- * 断言为 BindEvent 节点
8869
+ * 断言为 ImageSetter 节点
7862
8870
  *
7863
8871
  * @description 包含节点类以及节点继承类的判断
7864
- * @description 节点没有继承类时,等价于`assertStrictBindEvent`方法
8872
+ * @description 节点没有继承类时,等价于`assertStrictImageSetter`方法
7865
8873
  * @example
7866
8874
  * ```ts
7867
- * assertBindEvent(node);
7868
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindEvent 或者 BindEvent 继承类型
8875
+ * assertImageSetter(node);
8876
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImageSetter 或者 ImageSetter 继承类型
7869
8877
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7870
8878
  * ```
7871
8879
  */
7872
- export function assertBindEvent(node: unknown): asserts node is BindEvent {
7873
- if (!isBindEvent(node)) {
7874
- throw new Error(`BindEvent 节点断言失败`);
8880
+ export function assertImageSetter(node: unknown): asserts node is ImageSetter {
8881
+ if (!isImageSetter(node)) {
8882
+ throw new Error(`ImageSetter 节点断言失败`);
7875
8883
  }
7876
8884
  }
7877
8885
 
7878
8886
  /**
7879
- * 断言为 BindStyle 节点
8887
+ * 断言为 PropertySelectSetter 节点
7880
8888
  *
7881
8889
  * @description 包含节点类以及节点继承类的判断
7882
- * @description 节点没有继承类时,等价于`assertStrictBindStyle`方法
8890
+ * @description 节点没有继承类时,等价于`assertStrictPropertySelectSetter`方法
7883
8891
  * @example
7884
8892
  * ```ts
7885
- * assertBindStyle(node);
7886
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindStyle 或者 BindStyle 继承类型
8893
+ * assertPropertySelectSetter(node);
8894
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropertySelectSetter 或者 PropertySelectSetter 继承类型
7887
8895
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7888
8896
  * ```
7889
8897
  */
7890
- export function assertBindStyle(node: unknown): asserts node is BindStyle {
7891
- if (!isBindStyle(node)) {
7892
- throw new Error(`BindStyle 节点断言失败`);
8898
+ export function assertPropertySelectSetter(node: unknown): asserts node is PropertySelectSetter {
8899
+ if (!isPropertySelectSetter(node)) {
8900
+ throw new Error(`PropertySelectSetter 节点断言失败`);
7893
8901
  }
7894
8902
  }
7895
8903
 
7896
8904
  /**
7897
- * 断言为 ViewComponent 节点
8905
+ * 断言为 ViewComponentDeclaration 节点
7898
8906
  *
7899
8907
  * @description 包含节点类以及节点继承类的判断
7900
- * @description 节点没有继承类时,等价于`assertStrictViewComponent`方法
8908
+ * @description 节点没有继承类时,等价于`assertStrictViewComponentDeclaration`方法
7901
8909
  * @example
7902
8910
  * ```ts
7903
- * assertViewComponent(node);
7904
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponent 或者 ViewComponent 继承类型
8911
+ * assertViewComponentDeclaration(node);
8912
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponentDeclaration 或者 ViewComponentDeclaration 继承类型
7905
8913
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7906
8914
  * ```
7907
8915
  */
7908
- export function assertViewComponent(node: unknown): asserts node is ViewComponent {
7909
- if (!isViewComponent(node)) {
7910
- throw new Error(`ViewComponent 节点断言失败`);
8916
+ export function assertViewComponentDeclaration(node: unknown): asserts node is ViewComponentDeclaration {
8917
+ if (!isViewComponentDeclaration(node)) {
8918
+ throw new Error(`ViewComponentDeclaration 节点断言失败`);
7911
8919
  }
7912
8920
  }
7913
8921
 
@@ -7966,56 +8974,92 @@ export function assertEvent(node: unknown): asserts node is Event {
7966
8974
  }
7967
8975
 
7968
8976
  /**
7969
- * 断言为 Slot 节点
8977
+ * 断言为 PropDeclaration 节点
7970
8978
  *
7971
8979
  * @description 包含节点类以及节点继承类的判断
7972
- * @description 节点没有继承类时,等价于`assertStrictSlot`方法
8980
+ * @description 节点没有继承类时,等价于`assertStrictPropDeclaration`方法
7973
8981
  * @example
7974
8982
  * ```ts
7975
- * assertSlot(node);
7976
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Slot 或者 Slot 继承类型
8983
+ * assertPropDeclaration(node);
8984
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropDeclaration 或者 PropDeclaration 继承类型
7977
8985
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7978
8986
  * ```
7979
8987
  */
7980
- export function assertSlot(node: unknown): asserts node is Slot {
7981
- if (!isSlot(node)) {
7982
- throw new Error(`Slot 节点断言失败`);
8988
+ export function assertPropDeclaration(node: unknown): asserts node is PropDeclaration {
8989
+ if (!isPropDeclaration(node)) {
8990
+ throw new Error(`PropDeclaration 节点断言失败`);
7983
8991
  }
7984
8992
  }
7985
8993
 
7986
8994
  /**
7987
- * 断言为 Theme 节点
8995
+ * 断言为 EventDeclaration 节点
7988
8996
  *
7989
8997
  * @description 包含节点类以及节点继承类的判断
7990
- * @description 节点没有继承类时,等价于`assertStrictTheme`方法
8998
+ * @description 节点没有继承类时,等价于`assertStrictEventDeclaration`方法
7991
8999
  * @example
7992
9000
  * ```ts
7993
- * assertTheme(node);
7994
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Theme 或者 Theme 继承类型
9001
+ * assertEventDeclaration(node);
9002
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EventDeclaration 或者 EventDeclaration 继承类型
7995
9003
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
7996
9004
  * ```
7997
9005
  */
7998
- export function assertTheme(node: unknown): asserts node is Theme {
7999
- if (!isTheme(node)) {
8000
- throw new Error(`Theme 节点断言失败`);
9006
+ export function assertEventDeclaration(node: unknown): asserts node is EventDeclaration {
9007
+ if (!isEventDeclaration(node)) {
9008
+ throw new Error(`EventDeclaration 节点断言失败`);
8001
9009
  }
8002
9010
  }
8003
9011
 
8004
9012
  /**
8005
- * 断言为 StaticString 节点
9013
+ * 断言为 SlotDeclaration 节点
8006
9014
  *
8007
9015
  * @description 包含节点类以及节点继承类的判断
8008
- * @description 节点没有继承类时,等价于`assertStrictStaticString`方法
9016
+ * @description 节点没有继承类时,等价于`assertStrictSlotDeclaration`方法
8009
9017
  * @example
8010
9018
  * ```ts
8011
- * assertStaticString(node);
8012
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 StaticString 或者 StaticString 继承类型
9019
+ * assertSlotDeclaration(node);
9020
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SlotDeclaration 或者 SlotDeclaration 继承类型
8013
9021
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8014
9022
  * ```
8015
9023
  */
8016
- export function assertStaticString(node: unknown): asserts node is StaticString {
8017
- if (!isStaticString(node)) {
8018
- throw new Error(`StaticString 节点断言失败`);
9024
+ export function assertSlotDeclaration(node: unknown): asserts node is SlotDeclaration {
9025
+ if (!isSlotDeclaration(node)) {
9026
+ throw new Error(`SlotDeclaration 节点断言失败`);
9027
+ }
9028
+ }
9029
+
9030
+ /**
9031
+ * 断言为 LogicDeclaration 节点
9032
+ *
9033
+ * @description 包含节点类以及节点继承类的判断
9034
+ * @description 节点没有继承类时,等价于`assertStrictLogicDeclaration`方法
9035
+ * @example
9036
+ * ```ts
9037
+ * assertLogicDeclaration(node);
9038
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 LogicDeclaration 或者 LogicDeclaration 继承类型
9039
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9040
+ * ```
9041
+ */
9042
+ export function assertLogicDeclaration(node: unknown): asserts node is LogicDeclaration {
9043
+ if (!isLogicDeclaration(node)) {
9044
+ throw new Error(`LogicDeclaration 节点断言失败`);
9045
+ }
9046
+ }
9047
+
9048
+ /**
9049
+ * 断言为 Theme 节点
9050
+ *
9051
+ * @description 包含节点类以及节点继承类的判断
9052
+ * @description 节点没有继承类时,等价于`assertStrictTheme`方法
9053
+ * @example
9054
+ * ```ts
9055
+ * assertTheme(node);
9056
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Theme 或者 Theme 继承类型
9057
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9058
+ * ```
9059
+ */
9060
+ export function assertTheme(node: unknown): asserts node is Theme {
9061
+ if (!isTheme(node)) {
9062
+ throw new Error(`Theme 节点断言失败`);
8019
9063
  }
8020
9064
  }
8021
9065
 
@@ -8031,7 +9075,7 @@ export function assertStaticString(node: unknown): asserts node is StaticString
8031
9075
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8032
9076
  * ```
8033
9077
  */
8034
- export function assertLogic(node: unknown): asserts node is Type.LogicNode {
9078
+ export function assertLogic(node: unknown): asserts node is types.LogicNode {
8035
9079
  if (!isLogic(node)) {
8036
9080
  throw new Error(`Logic 节点断言失败`);
8037
9081
  }
@@ -8049,30 +9093,12 @@ export function assertLogic(node: unknown): asserts node is Type.LogicNode {
8049
9093
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8050
9094
  * ```
8051
9095
  */
8052
- export function assertAuthLogic(node: unknown): asserts node is Type.AuthLogicNode {
9096
+ export function assertAuthLogic(node: unknown): asserts node is types.AuthLogicNode {
8053
9097
  if (!isAuthLogic(node)) {
8054
9098
  throw new Error(`AuthLogic 节点断言失败`);
8055
9099
  }
8056
9100
  }
8057
9101
 
8058
- /**
8059
- * 断言为 BusinessLogic 节点
8060
- *
8061
- * @description 包含节点类以及节点继承类的判断
8062
- * @description 节点没有继承类时,等价于`assertStrictBusinessLogic`方法
8063
- * @example
8064
- * ```ts
8065
- * assertBusinessLogic(node);
8066
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 或者 BusinessLogic 继承类型
8067
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8068
- * ```
8069
- */
8070
- export function assertBusinessLogic(node: unknown): asserts node is BusinessLogic {
8071
- if (!isBusinessLogic(node)) {
8072
- throw new Error(`BusinessLogic 节点断言失败`);
8073
- }
8074
- }
8075
-
8076
9102
  /**
8077
9103
  * 断言为 AuthLogicForCallInterface 节点
8078
9104
  *
@@ -8109,6 +9135,24 @@ export function assertOverriddenLogic(node: unknown): asserts node is Overridden
8109
9135
  }
8110
9136
  }
8111
9137
 
9138
+ /**
9139
+ * 断言为 BusinessLogic 节点
9140
+ *
9141
+ * @description 包含节点类以及节点继承类的判断
9142
+ * @description 节点没有继承类时,等价于`assertStrictBusinessLogic`方法
9143
+ * @example
9144
+ * ```ts
9145
+ * assertBusinessLogic(node);
9146
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 或者 BusinessLogic 继承类型
9147
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9148
+ * ```
9149
+ */
9150
+ export function assertBusinessLogic(node: unknown): asserts node is BusinessLogic {
9151
+ if (!isBusinessLogic(node)) {
9152
+ throw new Error(`BusinessLogic 节点断言失败`);
9153
+ }
9154
+ }
9155
+
8112
9156
  /**
8113
9157
  * 断言为 AbstractInterface 节点
8114
9158
  *
@@ -8121,7 +9165,7 @@ export function assertOverriddenLogic(node: unknown): asserts node is Overridden
8121
9165
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8122
9166
  * ```
8123
9167
  */
8124
- export function assertAbstractInterface(node: unknown): asserts node is Type.AbstractInterfaceNode {
9168
+ export function assertAbstractInterface(node: unknown): asserts node is types.AbstractInterfaceNode {
8125
9169
  if (!isAbstractInterface(node)) {
8126
9170
  throw new Error(`AbstractInterface 节点断言失败`);
8127
9171
  }
@@ -8139,7 +9183,7 @@ export function assertAbstractInterface(node: unknown): asserts node is Type.Abs
8139
9183
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8140
9184
  * ```
8141
9185
  */
8142
- export function assertParam(node: unknown): asserts node is Type.ParamNode {
9186
+ export function assertParam(node: unknown): asserts node is types.ParamNode {
8143
9187
  if (!isParam(node)) {
8144
9188
  throw new Error(`Param 节点断言失败`);
8145
9189
  }
@@ -8193,7 +9237,7 @@ export function assertReturn(node: unknown): asserts node is Return {
8193
9237
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8194
9238
  * ```
8195
9239
  */
8196
- export function assertVariable(node: unknown): asserts node is Type.VariableNode {
9240
+ export function assertVariable(node: unknown): asserts node is types.VariableNode {
8197
9241
  if (!isVariable(node)) {
8198
9242
  throw new Error(`Variable 节点断言失败`);
8199
9243
  }
@@ -8265,7 +9309,7 @@ export function assertConstant(node: unknown): asserts node is Constant {
8265
9309
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8266
9310
  * ```
8267
9311
  */
8268
- export function assertLogicItem(node: unknown): asserts node is Type.LogicItemNode {
9312
+ export function assertLogicItem(node: unknown): asserts node is types.LogicItemNode {
8269
9313
  if (!isLogicItem(node)) {
8270
9314
  throw new Error(`LogicItem 节点断言失败`);
8271
9315
  }
@@ -8308,38 +9352,38 @@ export function assertAnonymousFunction(node: unknown): asserts node is Anonymou
8308
9352
  }
8309
9353
 
8310
9354
  /**
8311
- * 断言为 Interface 节点
9355
+ * 断言为 ImportedInterface 节点
8312
9356
  *
8313
9357
  * @description 包含节点类以及节点继承类的判断
8314
- * @description 节点没有继承类时,等价于`assertStrictInterface`方法
9358
+ * @description 节点没有继承类时,等价于`assertStrictImportedInterface`方法
8315
9359
  * @example
8316
9360
  * ```ts
8317
- * assertInterface(node);
8318
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Interface 或者 Interface 继承类型
9361
+ * assertImportedInterface(node);
9362
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImportedInterface 或者 ImportedInterface 继承类型
8319
9363
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8320
9364
  * ```
8321
9365
  */
8322
- export function assertInterface(node: unknown): asserts node is Type.InterfaceNode {
8323
- if (!isInterface(node)) {
8324
- throw new Error(`Interface 节点断言失败`);
9366
+ export function assertImportedInterface(node: unknown): asserts node is types.ImportedInterfaceNode {
9367
+ if (!isImportedInterface(node)) {
9368
+ throw new Error(`ImportedInterface 节点断言失败`);
8325
9369
  }
8326
9370
  }
8327
9371
 
8328
9372
  /**
8329
- * 断言为 ImportedInterface 节点
9373
+ * 断言为 Interface 节点
8330
9374
  *
8331
9375
  * @description 包含节点类以及节点继承类的判断
8332
- * @description 节点没有继承类时,等价于`assertStrictImportedInterface`方法
9376
+ * @description 节点没有继承类时,等价于`assertStrictInterface`方法
8333
9377
  * @example
8334
9378
  * ```ts
8335
- * assertImportedInterface(node);
8336
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImportedInterface 或者 ImportedInterface 继承类型
9379
+ * assertInterface(node);
9380
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Interface 或者 Interface 继承类型
8337
9381
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8338
9382
  * ```
8339
9383
  */
8340
- export function assertImportedInterface(node: unknown): asserts node is Type.ImportedInterfaceNode {
8341
- if (!isImportedInterface(node)) {
8342
- throw new Error(`ImportedInterface 节点断言失败`);
9384
+ export function assertInterface(node: unknown): asserts node is types.InterfaceNode {
9385
+ if (!isInterface(node)) {
9386
+ throw new Error(`Interface 节点断言失败`);
8343
9387
  }
8344
9388
  }
8345
9389
 
@@ -8607,7 +9651,7 @@ export function assertComment(node: unknown): asserts node is Comment {
8607
9651
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8608
9652
  * ```
8609
9653
  */
8610
- export function assertCallLogic(node: unknown): asserts node is Type.CallLogicNode {
9654
+ export function assertCallLogic(node: unknown): asserts node is types.CallLogicNode {
8611
9655
  if (!isCallLogic(node)) {
8612
9656
  throw new Error(`CallLogic 节点断言失败`);
8613
9657
  }
@@ -8661,7 +9705,7 @@ export function assertCallFunction(node: unknown): asserts node is CallFunction
8661
9705
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
8662
9706
  * ```
8663
9707
  */
8664
- export function assertCallInterface(node: unknown): asserts node is Type.CallInterfaceNode {
9708
+ export function assertCallInterface(node: unknown): asserts node is types.CallInterfaceNode {
8665
9709
  if (!isCallInterface(node)) {
8666
9710
  throw new Error(`CallInterface 节点断言失败`);
8667
9711
  }
@@ -8901,6 +9945,24 @@ export function assertStringInterpolation(node: unknown): asserts node is String
8901
9945
  }
8902
9946
  }
8903
9947
 
9948
+ /**
9949
+ * 断言为 StaticString 节点
9950
+ *
9951
+ * @description 包含节点类以及节点继承类的判断
9952
+ * @description 节点没有继承类时,等价于`assertStrictStaticString`方法
9953
+ * @example
9954
+ * ```ts
9955
+ * assertStaticString(node);
9956
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 StaticString 或者 StaticString 继承类型
9957
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9958
+ * ```
9959
+ */
9960
+ export function assertStaticString(node: unknown): asserts node is StaticString {
9961
+ if (!isStaticString(node)) {
9962
+ throw new Error(`StaticString 节点断言失败`);
9963
+ }
9964
+ }
9965
+
8904
9966
  /**
8905
9967
  * 断言为 NumericLiteral 节点
8906
9968
  *
@@ -9099,6 +10161,24 @@ export function assertNewMap(node: unknown): asserts node is NewMap {
9099
10161
  }
9100
10162
  }
9101
10163
 
10164
+ /**
10165
+ * 断言为 Paginate 节点
10166
+ *
10167
+ * @description 包含节点类以及节点继承类的判断
10168
+ * @description 节点没有继承类时,等价于`assertStrictPaginate`方法
10169
+ * @example
10170
+ * ```ts
10171
+ * assertPaginate(node);
10172
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Paginate 或者 Paginate 继承类型
10173
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
10174
+ * ```
10175
+ */
10176
+ export function assertPaginate(node: unknown): asserts node is Paginate {
10177
+ if (!isPaginate(node)) {
10178
+ throw new Error(`Paginate 节点断言失败`);
10179
+ }
10180
+ }
10181
+
9102
10182
  /**
9103
10183
  * 断言为 CallQueryComponent 节点
9104
10184
  *
@@ -9352,110 +10432,110 @@ export function assertProcessComponent(node: unknown): asserts node is ProcessCo
9352
10432
  }
9353
10433
 
9354
10434
  /**
9355
- * 断言为 ProcessOutcome 节点
10435
+ * 断言为 MultiApprovalPolicy 节点
9356
10436
  *
9357
10437
  * @description 包含节点类以及节点继承类的判断
9358
- * @description 节点没有继承类时,等价于`assertStrictProcessOutcome`方法
10438
+ * @description 节点没有继承类时,等价于`assertStrictMultiApprovalPolicy`方法
9359
10439
  * @example
9360
10440
  * ```ts
9361
- * assertProcessOutcome(node);
9362
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcome 或者 ProcessOutcome 继承类型
10441
+ * assertMultiApprovalPolicy(node);
10442
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 MultiApprovalPolicy 或者 MultiApprovalPolicy 继承类型
9363
10443
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9364
10444
  * ```
9365
10445
  */
9366
- export function assertProcessOutcome(node: unknown): asserts node is ProcessOutcome {
9367
- if (!isProcessOutcome(node)) {
9368
- throw new Error(`ProcessOutcome 节点断言失败`);
10446
+ export function assertMultiApprovalPolicy(node: unknown): asserts node is types.MultiApprovalPolicyNode {
10447
+ if (!isMultiApprovalPolicy(node)) {
10448
+ throw new Error(`MultiApprovalPolicy 节点断言失败`);
9369
10449
  }
9370
10450
  }
9371
10451
 
9372
10452
  /**
9373
- * 断言为 Assignee 节点
10453
+ * 断言为 SequentialPolicy 节点
9374
10454
  *
9375
10455
  * @description 包含节点类以及节点继承类的判断
9376
- * @description 节点没有继承类时,等价于`assertStrictAssignee`方法
10456
+ * @description 节点没有继承类时,等价于`assertStrictSequentialPolicy`方法
9377
10457
  * @example
9378
10458
  * ```ts
9379
- * assertAssignee(node);
9380
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Assignee 或者 Assignee 继承类型
10459
+ * assertSequentialPolicy(node);
10460
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SequentialPolicy 或者 SequentialPolicy 继承类型
9381
10461
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9382
10462
  * ```
9383
10463
  */
9384
- export function assertAssignee(node: unknown): asserts node is Assignee {
9385
- if (!isAssignee(node)) {
9386
- throw new Error(`Assignee 节点断言失败`);
10464
+ export function assertSequentialPolicy(node: unknown): asserts node is SequentialPolicy {
10465
+ if (!isSequentialPolicy(node)) {
10466
+ throw new Error(`SequentialPolicy 节点断言失败`);
9387
10467
  }
9388
10468
  }
9389
10469
 
9390
10470
  /**
9391
- * 断言为 ProcessOutcomes 节点
10471
+ * 断言为 CountersignPolicy 节点
9392
10472
  *
9393
10473
  * @description 包含节点类以及节点继承类的判断
9394
- * @description 节点没有继承类时,等价于`assertStrictProcessOutcomes`方法
10474
+ * @description 节点没有继承类时,等价于`assertStrictCountersignPolicy`方法
9395
10475
  * @example
9396
10476
  * ```ts
9397
- * assertProcessOutcomes(node);
9398
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcomes 或者 ProcessOutcomes 继承类型
10477
+ * assertCountersignPolicy(node);
10478
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CountersignPolicy 或者 CountersignPolicy 继承类型
9399
10479
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9400
10480
  * ```
9401
10481
  */
9402
- export function assertProcessOutcomes(node: unknown): asserts node is ProcessOutcomes {
9403
- if (!isProcessOutcomes(node)) {
9404
- throw new Error(`ProcessOutcomes 节点断言失败`);
10482
+ export function assertCountersignPolicy(node: unknown): asserts node is CountersignPolicy {
10483
+ if (!isCountersignPolicy(node)) {
10484
+ throw new Error(`CountersignPolicy 节点断言失败`);
9405
10485
  }
9406
10486
  }
9407
10487
 
9408
10488
  /**
9409
- * 断言为 MultiApprovalPolicy 节点
10489
+ * 断言为 ProcessOutcome 节点
9410
10490
  *
9411
10491
  * @description 包含节点类以及节点继承类的判断
9412
- * @description 节点没有继承类时,等价于`assertStrictMultiApprovalPolicy`方法
10492
+ * @description 节点没有继承类时,等价于`assertStrictProcessOutcome`方法
9413
10493
  * @example
9414
10494
  * ```ts
9415
- * assertMultiApprovalPolicy(node);
9416
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 MultiApprovalPolicy 或者 MultiApprovalPolicy 继承类型
10495
+ * assertProcessOutcome(node);
10496
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcome 或者 ProcessOutcome 继承类型
9417
10497
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9418
10498
  * ```
9419
10499
  */
9420
- export function assertMultiApprovalPolicy(node: unknown): asserts node is Type.MultiApprovalPolicyNode {
9421
- if (!isMultiApprovalPolicy(node)) {
9422
- throw new Error(`MultiApprovalPolicy 节点断言失败`);
10500
+ export function assertProcessOutcome(node: unknown): asserts node is ProcessOutcome {
10501
+ if (!isProcessOutcome(node)) {
10502
+ throw new Error(`ProcessOutcome 节点断言失败`);
9423
10503
  }
9424
10504
  }
9425
10505
 
9426
10506
  /**
9427
- * 断言为 SequentialPolicy 节点
10507
+ * 断言为 Assignee 节点
9428
10508
  *
9429
10509
  * @description 包含节点类以及节点继承类的判断
9430
- * @description 节点没有继承类时,等价于`assertStrictSequentialPolicy`方法
10510
+ * @description 节点没有继承类时,等价于`assertStrictAssignee`方法
9431
10511
  * @example
9432
10512
  * ```ts
9433
- * assertSequentialPolicy(node);
9434
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SequentialPolicy 或者 SequentialPolicy 继承类型
10513
+ * assertAssignee(node);
10514
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Assignee 或者 Assignee 继承类型
9435
10515
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9436
10516
  * ```
9437
10517
  */
9438
- export function assertSequentialPolicy(node: unknown): asserts node is SequentialPolicy {
9439
- if (!isSequentialPolicy(node)) {
9440
- throw new Error(`SequentialPolicy 节点断言失败`);
10518
+ export function assertAssignee(node: unknown): asserts node is Assignee {
10519
+ if (!isAssignee(node)) {
10520
+ throw new Error(`Assignee 节点断言失败`);
9441
10521
  }
9442
10522
  }
9443
10523
 
9444
10524
  /**
9445
- * 断言为 CountersignPolicy 节点
10525
+ * 断言为 ProcessOutcomes 节点
9446
10526
  *
9447
10527
  * @description 包含节点类以及节点继承类的判断
9448
- * @description 节点没有继承类时,等价于`assertStrictCountersignPolicy`方法
10528
+ * @description 节点没有继承类时,等价于`assertStrictProcessOutcomes`方法
9449
10529
  * @example
9450
10530
  * ```ts
9451
- * assertCountersignPolicy(node);
9452
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CountersignPolicy 或者 CountersignPolicy 继承类型
10531
+ * assertProcessOutcomes(node);
10532
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcomes 或者 ProcessOutcomes 继承类型
9453
10533
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9454
10534
  * ```
9455
10535
  */
9456
- export function assertCountersignPolicy(node: unknown): asserts node is CountersignPolicy {
9457
- if (!isCountersignPolicy(node)) {
9458
- throw new Error(`CountersignPolicy 节点断言失败`);
10536
+ export function assertProcessOutcomes(node: unknown): asserts node is ProcessOutcomes {
10537
+ if (!isProcessOutcomes(node)) {
10538
+ throw new Error(`ProcessOutcomes 节点断言失败`);
9459
10539
  }
9460
10540
  }
9461
10541
 
@@ -9705,12 +10785,30 @@ export function assertFrontendLibrary(node: unknown): asserts node is FrontendLi
9705
10785
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9706
10786
  * ```
9707
10787
  */
9708
- export function assertViewBlock(node: unknown): asserts node is ViewBlock {
10788
+ export function assertViewBlock(node: unknown): asserts node is types.ViewBlockNode {
9709
10789
  if (!isViewBlock(node)) {
9710
10790
  throw new Error(`ViewBlock 节点断言失败`);
9711
10791
  }
9712
10792
  }
9713
10793
 
10794
+ /**
10795
+ * 断言为 ViewBlockWithImage 节点
10796
+ *
10797
+ * @description 包含节点类以及节点继承类的判断
10798
+ * @description 节点没有继承类时,等价于`assertStrictViewBlockWithImage`方法
10799
+ * @example
10800
+ * ```ts
10801
+ * assertViewBlockWithImage(node);
10802
+ * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewBlockWithImage 或者 ViewBlockWithImage 继承类型
10803
+ * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
10804
+ * ```
10805
+ */
10806
+ export function assertViewBlockWithImage(node: unknown): asserts node is ViewBlockWithImage {
10807
+ if (!isViewBlockWithImage(node)) {
10808
+ throw new Error(`ViewBlockWithImage 节点断言失败`);
10809
+ }
10810
+ }
10811
+
9714
10812
  /**
9715
10813
  * 断言为 AuthInterface 节点
9716
10814
  *
@@ -9759,7 +10857,7 @@ export function assertCallAuthInterface(node: unknown): asserts node is CallAuth
9759
10857
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9760
10858
  * ```
9761
10859
  */
9762
- export function assertTriggerEvent(node: unknown): asserts node is Type.TriggerEventNode {
10860
+ export function assertTriggerEvent(node: unknown): asserts node is types.TriggerEventNode {
9763
10861
  if (!isTriggerEvent(node)) {
9764
10862
  throw new Error(`TriggerEvent 节点断言失败`);
9765
10863
  }
@@ -9813,7 +10911,7 @@ export function assertConnectorTrigger(node: unknown): asserts node is Connector
9813
10911
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
9814
10912
  * ```
9815
10913
  */
9816
- export function assertTriggerLauncher(node: unknown): asserts node is Type.TriggerLauncherNode {
10914
+ export function assertTriggerLauncher(node: unknown): asserts node is types.TriggerLauncherNode {
9817
10915
  if (!isTriggerLauncher(node)) {
9818
10916
  throw new Error(`TriggerLauncher 节点断言失败`);
9819
10917
  }