@lcap/nasl 3.7.0-beta.4 → 3.7.0-beta.6

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 (657) hide show
  1. package/dist/README.md +97 -0
  2. package/dist/index.d.ts +26 -0
  3. package/dist/index.js +397 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/package.json +91 -0
  6. package/dist/src/automate/engine/index.d.ts +4 -0
  7. package/dist/src/automate/engine/operators.d.ts +26 -0
  8. package/dist/src/automate/engine/uniqueName.d.ts +12 -0
  9. package/dist/src/automate/engine/utils.d.ts +25 -0
  10. package/dist/src/automate/engine/viewCache.d.ts +19 -0
  11. package/dist/src/automate/template/myProcess.d.ts +10 -0
  12. package/dist/src/automate/upgrader/2.12.d.ts +7 -0
  13. package/dist/src/automate/upgrader/2.14-components.d.ts +1115 -0
  14. package/dist/src/automate/upgrader/2.14.d.ts +10 -0
  15. package/dist/src/automate/upgrader/2.14.old.d.ts +1 -0
  16. package/dist/src/automate/upgrader/2.16.d.ts +10 -0
  17. package/dist/src/automate/upgrader/2.17.d.ts +21 -0
  18. package/dist/src/automate/upgrader/2.18.d.ts +10 -0
  19. package/dist/src/automate/upgrader/2.20.d.ts +17 -0
  20. package/dist/src/bak/translator.d.ts +1 -0
  21. package/dist/src/breakpoint/generator/AfterStartNode.d.ts +7 -0
  22. package/dist/src/breakpoint/generator/BeforeEndNode.d.ts +7 -0
  23. package/dist/src/breakpoint/generator/BreakpointNode.d.ts +20 -0
  24. package/dist/src/breakpoint/generator/CallbackNode.d.ts +4 -0
  25. package/dist/src/breakpoint/generator/FragmentNode.d.ts +4 -0
  26. package/dist/src/breakpoint/generator/index.d.ts +4 -0
  27. package/dist/src/breakpoint/index.d.ts +3 -0
  28. package/dist/src/breakpoint/shared/constants.d.ts +37 -0
  29. package/dist/src/breakpoint/shared/index.d.ts +3 -0
  30. package/dist/src/breakpoint/shared/operations.d.ts +10 -0
  31. package/dist/src/breakpoint/shared/socket.d.ts +48 -0
  32. package/dist/src/breakpoint/shared/utils.d.ts +27 -0
  33. package/dist/src/breakpoint/store/core.d.ts +80 -0
  34. package/dist/src/breakpoint/store/dock.d.ts +1 -0
  35. package/dist/src/breakpoint/store/index.d.ts +2 -0
  36. package/dist/src/common/BaseNode.d.ts +384 -0
  37. package/dist/src/common/Command.d.ts +21 -0
  38. package/dist/src/common/ComponentAPI.d.ts +112 -0
  39. package/dist/src/common/EventEmitter.d.ts +61 -0
  40. package/dist/src/common/Messager.d.ts +91 -0
  41. package/dist/src/common/asyncFuncMap.d.ts +2 -0
  42. package/dist/src/common/index.d.ts +4 -0
  43. package/dist/src/common/utils.d.ts +2 -0
  44. package/dist/src/concepts/Abort__.d.ts +31 -0
  45. package/dist/src/concepts/AbstractInterface__.d.ts +25 -0
  46. package/dist/src/concepts/Anchor__.d.ts +42 -0
  47. package/dist/src/concepts/AnonymousFunction__.d.ts +144 -0
  48. package/dist/src/concepts/App__.d.ts +1711 -0
  49. package/dist/src/concepts/Argument__.d.ts +64 -0
  50. package/dist/src/concepts/Assignee__.d.ts +294 -0
  51. package/dist/src/concepts/AssignmentLine__.d.ts +43 -0
  52. package/dist/src/concepts/Assignment__.d.ts +57 -0
  53. package/dist/src/concepts/Attribute__.d.ts +75 -0
  54. package/dist/src/concepts/AuthInterface__.d.ts +38 -0
  55. package/dist/src/concepts/AuthLogicForCallInterface__.d.ts +145 -0
  56. package/dist/src/concepts/AuthLogic__.d.ts +69 -0
  57. package/dist/src/concepts/BackendVariable__.d.ts +118 -0
  58. package/dist/src/concepts/Backend__.d.ts +127 -0
  59. package/dist/src/concepts/BaseSetter__.d.ts +25 -0
  60. package/dist/src/concepts/BatchAssignment__.d.ts +244 -0
  61. package/dist/src/concepts/BinaryExpression__.d.ts +61 -0
  62. package/dist/src/concepts/BindAttribute__.d.ts +284 -0
  63. package/dist/src/concepts/BindDirective__.d.ts +156 -0
  64. package/dist/src/concepts/BindEvent__.d.ts +246 -0
  65. package/dist/src/concepts/BindStyle__.d.ts +127 -0
  66. package/dist/src/concepts/Block__.d.ts +88 -0
  67. package/dist/src/concepts/BooleanLiteral__.d.ts +44 -0
  68. package/dist/src/concepts/BusinessComponent__.d.ts +640 -0
  69. package/dist/src/concepts/BusinessLogic__.d.ts +44 -0
  70. package/dist/src/concepts/CallAuthInterface__.d.ts +132 -0
  71. package/dist/src/concepts/CallConnector__.d.ts +55 -0
  72. package/dist/src/concepts/CallEvent__.d.ts +100 -0
  73. package/dist/src/concepts/CallFunction__.d.ts +171 -0
  74. package/dist/src/concepts/CallInterface__.d.ts +143 -0
  75. package/dist/src/concepts/CallLogic__.d.ts +224 -0
  76. package/dist/src/concepts/CallQueryComponent__.d.ts +383 -0
  77. package/dist/src/concepts/CapsulesSetter__.d.ts +109 -0
  78. package/dist/src/concepts/Comment__.d.ts +41 -0
  79. package/dist/src/concepts/CompletionProperty__.d.ts +87 -0
  80. package/dist/src/concepts/ConfigGroup__.d.ts +121 -0
  81. package/dist/src/concepts/ConfigPropertyValue__.d.ts +42 -0
  82. package/dist/src/concepts/ConfigProperty__.d.ts +147 -0
  83. package/dist/src/concepts/Configuration__.d.ts +120 -0
  84. package/dist/src/concepts/Connection__.d.ts +159 -0
  85. package/dist/src/concepts/ConnectorLogic__.d.ts +33 -0
  86. package/dist/src/concepts/ConnectorTriggerLauncher__.d.ts +44 -0
  87. package/dist/src/concepts/ConnectorTrigger__.d.ts +76 -0
  88. package/dist/src/concepts/Connector__.d.ts +532 -0
  89. package/dist/src/concepts/Constant__.d.ts +94 -0
  90. package/dist/src/concepts/CountersignPolicy__.d.ts +29 -0
  91. package/dist/src/concepts/DataSource__.d.ts +163 -0
  92. package/dist/src/concepts/DatabaseTypeAnnotation__.d.ts +35 -0
  93. package/dist/src/concepts/DefaultValue__.d.ts +94 -0
  94. package/dist/src/concepts/Destination__.d.ts +150 -0
  95. package/dist/src/concepts/End__.d.ts +30 -0
  96. package/dist/src/concepts/EntityIndex__.d.ts +93 -0
  97. package/dist/src/concepts/EntityProperty__.d.ts +255 -0
  98. package/dist/src/concepts/Entity__.d.ts +332 -0
  99. package/dist/src/concepts/EnumItem__.d.ts +83 -0
  100. package/dist/src/concepts/EnumSelectSetter__.d.ts +109 -0
  101. package/dist/src/concepts/Enum__.d.ts +133 -0
  102. package/dist/src/concepts/EventDeclaration__.d.ts +41 -0
  103. package/dist/src/concepts/Event__.d.ts +149 -0
  104. package/dist/src/concepts/ExternalDestination__.d.ts +63 -0
  105. package/dist/src/concepts/ForEachStatement__.d.ts +126 -0
  106. package/dist/src/concepts/FrontendLibrary__.d.ts +208 -0
  107. package/dist/src/concepts/FrontendType__.d.ts +304 -0
  108. package/dist/src/concepts/FrontendVariable__.d.ts +41 -0
  109. package/dist/src/concepts/Frontend__.d.ts +389 -0
  110. package/dist/src/concepts/Function__.d.ts +399 -0
  111. package/dist/src/concepts/I18nInfo__.d.ts +47 -0
  112. package/dist/src/concepts/IconSetter__.d.ts +29 -0
  113. package/dist/src/concepts/Identifier__.d.ts +66 -0
  114. package/dist/src/concepts/IfStatement__.d.ts +155 -0
  115. package/dist/src/concepts/ImageSetter__.d.ts +25 -0
  116. package/dist/src/concepts/ImportedInterface__.d.ts +29 -0
  117. package/dist/src/concepts/InputSetter__.d.ts +29 -0
  118. package/dist/src/concepts/Integration__.d.ts +127 -0
  119. package/dist/src/concepts/InterfaceParam__.d.ts +119 -0
  120. package/dist/src/concepts/InterfaceTriggerEvent__.d.ts +34 -0
  121. package/dist/src/concepts/Interface__.d.ts +323 -0
  122. package/dist/src/concepts/JSBlock__.d.ts +38 -0
  123. package/dist/src/concepts/JavaLogic__.d.ts +50 -0
  124. package/dist/src/concepts/LogicDeclaration__.d.ts +289 -0
  125. package/dist/src/concepts/LogicItem__.d.ts +171 -0
  126. package/dist/src/concepts/Logic__.d.ts +632 -0
  127. package/dist/src/concepts/MatchCase__.d.ts +264 -0
  128. package/dist/src/concepts/Match__.d.ts +122 -0
  129. package/dist/src/concepts/MemberExpression__.d.ts +64 -0
  130. package/dist/src/concepts/MetadataType__.d.ts +220 -0
  131. package/dist/src/concepts/MicroApp__.d.ts +53 -0
  132. package/dist/src/concepts/Module__.d.ts +1142 -0
  133. package/dist/src/concepts/MsgTriggerEvent__.d.ts +138 -0
  134. package/dist/src/concepts/MsgTriggerLauncher__.d.ts +119 -0
  135. package/dist/src/concepts/MultiApprovalPolicy__.d.ts +25 -0
  136. package/dist/src/concepts/Namespace__.d.ts +1060 -0
  137. package/dist/src/concepts/NewComposite__.d.ts +346 -0
  138. package/dist/src/concepts/NewList__.d.ts +135 -0
  139. package/dist/src/concepts/NewMap__.d.ts +226 -0
  140. package/dist/src/concepts/New__.d.ts +30 -0
  141. package/dist/src/concepts/NullLiteral__.d.ts +36 -0
  142. package/dist/src/concepts/NumberInputSetter__.d.ts +45 -0
  143. package/dist/src/concepts/NumericLiteral__.d.ts +53 -0
  144. package/dist/src/concepts/OqlQueryComponent__.d.ts +67 -0
  145. package/dist/src/concepts/OverriddenLogic__.d.ts +615 -0
  146. package/dist/src/concepts/Paginate__.d.ts +59 -0
  147. package/dist/src/concepts/ParamWithGroup__.d.ts +44 -0
  148. package/dist/src/concepts/Param__.d.ts +140 -0
  149. package/dist/src/concepts/Point__.d.ts +33 -0
  150. package/dist/src/concepts/ProcessComponent__.d.ts +214 -0
  151. package/dist/src/concepts/ProcessElement__.d.ts +620 -0
  152. package/dist/src/concepts/ProcessOutcome__.d.ts +35 -0
  153. package/dist/src/concepts/ProcessOutcomes__.d.ts +35 -0
  154. package/dist/src/concepts/Process__.d.ts +605 -0
  155. package/dist/src/concepts/PropDeclaration__.d.ts +99 -0
  156. package/dist/src/concepts/PropertySelectSetter__.d.ts +25 -0
  157. package/dist/src/concepts/QueryAggregateExpression__.d.ts +50 -0
  158. package/dist/src/concepts/QueryFieldExpression__.d.ts +66 -0
  159. package/dist/src/concepts/QueryFromExpression__.d.ts +107 -0
  160. package/dist/src/concepts/QueryGroupByExpression__.d.ts +46 -0
  161. package/dist/src/concepts/QueryJoinExpression__.d.ts +194 -0
  162. package/dist/src/concepts/QueryLimitExpression__.d.ts +46 -0
  163. package/dist/src/concepts/QueryOrderByExpression__.d.ts +57 -0
  164. package/dist/src/concepts/QuerySelectExpression__.d.ts +213 -0
  165. package/dist/src/concepts/Rect__.d.ts +41 -0
  166. package/dist/src/concepts/Return__.d.ts +120 -0
  167. package/dist/src/concepts/Role__.d.ts +58 -0
  168. package/dist/src/concepts/SelectMembers__.d.ts +134 -0
  169. package/dist/src/concepts/SequentialPolicy__.d.ts +25 -0
  170. package/dist/src/concepts/SetterOption__.d.ts +49 -0
  171. package/dist/src/concepts/SlotDeclaration__.d.ts +213 -0
  172. package/dist/src/concepts/Slot__.d.ts +53 -0
  173. package/dist/src/concepts/SqlQueryComponent__.d.ts +63 -0
  174. package/dist/src/concepts/Start__.d.ts +30 -0
  175. package/dist/src/concepts/StaticString__.d.ts +49 -0
  176. package/dist/src/concepts/StringInterpolation__.d.ts +122 -0
  177. package/dist/src/concepts/StringLiteral__.d.ts +51 -0
  178. package/dist/src/concepts/StructureProperty__.d.ts +119 -0
  179. package/dist/src/concepts/Structure__.d.ts +243 -0
  180. package/dist/src/concepts/SwitchCase__.d.ts +91 -0
  181. package/dist/src/concepts/SwitchSetter__.d.ts +25 -0
  182. package/dist/src/concepts/SwitchStatement__.d.ts +90 -0
  183. package/dist/src/concepts/ThemeVariable__.d.ts +29 -0
  184. package/dist/src/concepts/Theme__.d.ts +39 -0
  185. package/dist/src/concepts/Transactional__.d.ts +85 -0
  186. package/dist/src/concepts/TriggerEvent__.d.ts +42 -0
  187. package/dist/src/concepts/TriggerLauncher__.d.ts +76 -0
  188. package/dist/src/concepts/TypeAnnotation__.d.ts +303 -0
  189. package/dist/src/concepts/TypeParam__.d.ts +34 -0
  190. package/dist/src/concepts/UnaryExpression__.d.ts +45 -0
  191. package/dist/src/concepts/Unparsed__.d.ts +41 -0
  192. package/dist/src/concepts/UseComponent__.d.ts +33 -0
  193. package/dist/src/concepts/ValidationRule__.d.ts +133 -0
  194. package/dist/src/concepts/Variable__.d.ts +137 -0
  195. package/dist/src/concepts/ViewBlockWithImage__.d.ts +33 -0
  196. package/dist/src/concepts/ViewBlock__.d.ts +37 -0
  197. package/dist/src/concepts/ViewComponentDeclaration__.d.ts +721 -0
  198. package/dist/src/concepts/ViewElement__.d.ts +652 -0
  199. package/dist/src/concepts/View__.d.ts +728 -0
  200. package/dist/src/concepts/WhileStatement__.d.ts +94 -0
  201. package/dist/src/concepts/basics/constants.d.ts +1 -0
  202. package/dist/src/concepts/basics/stdlib/index.d.ts +16 -0
  203. package/dist/src/concepts/basics/stdlib/nasl.auth.d.ts +9 -0
  204. package/dist/src/concepts/basics/stdlib/nasl.browser.d.ts +5 -0
  205. package/dist/src/concepts/basics/stdlib/nasl.collection.d.ts +9 -0
  206. package/dist/src/concepts/basics/stdlib/nasl.configuration.d.ts +9 -0
  207. package/dist/src/concepts/basics/stdlib/nasl.core.d.ts +7 -0
  208. package/dist/src/concepts/basics/stdlib/nasl.event.d.ts +5 -0
  209. package/dist/src/concepts/basics/stdlib/nasl.http.d.ts +9 -0
  210. package/dist/src/concepts/basics/stdlib/nasl.interface.d.ts +9 -0
  211. package/dist/src/concepts/basics/stdlib/nasl.io.d.ts +5 -0
  212. package/dist/src/concepts/basics/stdlib/nasl.logging.d.ts +5 -0
  213. package/dist/src/concepts/basics/stdlib/nasl.process.d.ts +9 -0
  214. package/dist/src/concepts/basics/stdlib/nasl.ui.d.ts +9 -0
  215. package/dist/src/concepts/basics/stdlib/nasl.util.d.ts +6 -0
  216. package/dist/src/concepts/basics/stdlib/nasl.validation.d.ts +5 -0
  217. package/dist/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +4 -0
  218. package/dist/src/concepts/basics/stdlib/timeZone.d.ts +5 -0
  219. package/dist/src/concepts/basics/types/coreTypeList.d.ts +2 -0
  220. package/dist/src/concepts/basics/types/index.d.ts +17 -0
  221. package/dist/src/concepts/index.d.ts +7 -0
  222. package/dist/src/concepts/index__.d.ts +156 -0
  223. package/dist/src/concepts/utils/asserts.d.ts +7825 -0
  224. package/dist/src/concepts/utils/quick-info.d.ts +13 -0
  225. package/dist/src/concepts/utils/types.d.ts +510 -0
  226. package/dist/src/config.d.ts +52 -0
  227. package/dist/src/decorators/index.d.ts +67 -0
  228. package/dist/src/decorators/promise.d.ts +7 -0
  229. package/dist/src/enums/KEYWORDS.d.ts +6 -0
  230. package/dist/src/enums/LEVEL_NAME_MAP.d.ts +26 -0
  231. package/dist/src/eventBus.d.ts +3 -0
  232. package/dist/src/generator/compileComponent.d.ts +11 -0
  233. package/dist/src/generator/genBundleFiles.d.ts +37 -0
  234. package/dist/src/generator/genHash.d.ts +7 -0
  235. package/dist/src/generator/genMetaData.d.ts +31 -0
  236. package/dist/src/generator/icestark.d.ts +2 -0
  237. package/dist/src/generator/index.d.ts +7 -0
  238. package/dist/src/generator/microApp.d.ts +2 -0
  239. package/dist/src/generator/permission.d.ts +14 -0
  240. package/dist/src/generator/qiankun.d.ts +2 -0
  241. package/dist/src/generator/release-body/body.d.ts +42 -0
  242. package/dist/src/generator/release-body/data.d.ts +45 -0
  243. package/dist/src/generator/release-body/index.d.ts +2 -0
  244. package/dist/src/generator/release-body/internal.d.ts +622 -0
  245. package/dist/src/generator/release-body/types.d.ts +57 -0
  246. package/dist/src/generator/release-body/utils.d.ts +418 -0
  247. package/dist/src/generator/release-body/validation.d.ts +3 -0
  248. package/dist/src/generator/styleReplacer.d.ts +3 -0
  249. package/dist/src/index.d.ts +14 -0
  250. package/dist/src/manager/diagnostic.d.ts +39 -0
  251. package/dist/src/manager/stepRecorder.d.ts +20 -0
  252. package/dist/src/natural/componentData.d.ts +31 -0
  253. package/dist/src/natural/genNaturalTS.d.ts +241 -0
  254. package/dist/src/natural/index.d.ts +6 -0
  255. package/dist/src/natural/naslStdlibMap.d.ts +1 -0
  256. package/dist/src/natural/prompt/analyzeClaims.d.ts +1 -0
  257. package/dist/src/natural/prompt/analyzeFormatOutput.d.ts +1 -0
  258. package/dist/src/natural/prompt/analyzeTasks.d.ts +1 -0
  259. package/dist/src/natural/prompt/executeClaims.d.ts +1 -0
  260. package/dist/src/natural/transformTSCode.d.ts +7 -0
  261. package/dist/src/sentry/index.d.ts +34 -0
  262. package/dist/src/server/createUiTs.d.ts +17 -0
  263. package/dist/src/server/entity2LogicNamespace.d.ts +10 -0
  264. package/dist/src/server/event.d.ts +30 -0
  265. package/dist/src/server/extendBaseNode.d.ts +1 -0
  266. package/dist/src/server/formatTsUtils.d.ts +36 -0
  267. package/dist/src/server/getConnector.d.ts +15 -0
  268. package/dist/src/server/getExtensionModules.d.ts +3 -0
  269. package/dist/src/server/getFunctions.d.ts +3 -0
  270. package/dist/src/server/getInterfaces.d.ts +2 -0
  271. package/dist/src/server/getLogging.d.ts +1 -0
  272. package/dist/src/server/getLogics.d.ts +5 -0
  273. package/dist/src/server/getMemberIdentifier.d.ts +17 -0
  274. package/dist/src/server/getProcessComponents.d.ts +2 -0
  275. package/dist/src/server/getProcesses.d.ts +33 -0
  276. package/dist/src/server/getScope.d.ts +13 -0
  277. package/dist/src/server/getValidates.d.ts +3 -0
  278. package/dist/src/server/index.d.ts +5 -0
  279. package/dist/src/server/naslServer.d.ts +391 -0
  280. package/dist/src/server/naslStdlibMap.d.ts +2 -0
  281. package/dist/src/server/process2LogicNamespace.d.ts +26 -0
  282. package/dist/src/server/translator.d.ts +26 -0
  283. package/dist/src/service/creator/add.configs.d.ts +1 -0
  284. package/dist/src/service/creator/errHandles.d.ts +18 -0
  285. package/dist/src/service/creator/index.d.ts +1 -0
  286. package/dist/src/service/datasource/api.d.ts +12 -0
  287. package/dist/src/service/datasource/index.d.ts +2 -0
  288. package/dist/src/service/logic/api.d.ts +9 -0
  289. package/dist/src/service/logic/checktypeSocket.d.ts +5 -0
  290. package/dist/src/service/logic/index.d.ts +2 -0
  291. package/dist/src/service/storage/api.d.ts +54 -0
  292. package/dist/src/service/storage/index.d.ts +2 -0
  293. package/dist/src/service/storage/init.d.ts +105 -0
  294. package/dist/src/service/storage/jsoner.d.ts +36 -0
  295. package/dist/src/service/storage/map.d.ts +4 -0
  296. package/dist/src/service/storage/service.d.ts +25 -0
  297. package/dist/src/service/storage/storagePoint.d.ts +17 -0
  298. package/dist/src/service/video/BaseService.d.ts +7 -0
  299. package/dist/src/service/video/MainCallbackService.d.ts +12 -0
  300. package/dist/src/service/video/VideoTranscribe.d.ts +15 -0
  301. package/dist/src/service/video/publishService.d.ts +1 -0
  302. package/dist/src/templator/genCallComponentLogic.d.ts +17 -0
  303. package/dist/src/templator/genCreateBlock.d.ts +10 -0
  304. package/dist/src/templator/genCurdEditMultipleKeyBlock.d.ts +8 -0
  305. package/dist/src/templator/genCurdMultipleKeyBlock.d.ts +61 -0
  306. package/dist/src/templator/genEditTableBlock.d.ts +51 -0
  307. package/dist/src/templator/genEnumSelectBlock.d.ts +10 -0
  308. package/dist/src/templator/genGetBlock.d.ts +6 -0
  309. package/dist/src/templator/genGridViewBlock.d.ts +55 -0
  310. package/dist/src/templator/genListViewBlock.d.ts +19 -0
  311. package/dist/src/templator/genQueryComponent.d.ts +34 -0
  312. package/dist/src/templator/genSelectBlock.d.ts +45 -0
  313. package/dist/src/templator/genTableBlock.d.ts +55 -0
  314. package/dist/src/templator/genUpdateBlock.d.ts +6 -0
  315. package/dist/src/templator/index.d.ts +19 -0
  316. package/dist/src/templator/utils.d.ts +683 -0
  317. package/dist/src/translator/constant.d.ts +6 -0
  318. package/dist/src/translator/index.d.ts +3 -0
  319. package/dist/src/translator/types.d.ts +85 -0
  320. package/dist/src/translator/utils.d.ts +47 -0
  321. package/dist/src/utils/cookie.d.ts +9 -0
  322. package/dist/src/utils/create.d.ts +2 -0
  323. package/dist/src/utils/env.d.ts +2 -0
  324. package/dist/src/utils/file.d.ts +33 -0
  325. package/dist/src/utils/i18nInfo.d.ts +5 -0
  326. package/dist/src/utils/index.d.ts +72 -0
  327. package/dist/src/utils/logger.d.ts +8 -0
  328. package/dist/src/utils/sortTsString.d.ts +1 -0
  329. package/dist/src/utils/string.d.ts +64 -0
  330. package/dist/src/utils/time-slicing/constant.d.ts +35 -0
  331. package/dist/src/utils/time-slicing/controller.d.ts +53 -0
  332. package/dist/src/utils/time-slicing/index.d.ts +5 -0
  333. package/dist/src/utils/time-slicing/page-state.d.ts +2 -0
  334. package/dist/src/utils/time-slicing/performance.d.ts +11 -0
  335. package/dist/src/utils/time-slicing/runner.d.ts +12 -0
  336. package/dist/src/utils/time-slicing/tool.d.ts +24 -0
  337. package/dist/src/utils/time-slicing/utils.d.ts +62 -0
  338. package/dist/src/utils/time-slicing/wrapper.d.ts +18 -0
  339. package/dist/src/utils/traverse.d.ts +36 -0
  340. package/dist/src/utils/types.d.ts +13 -0
  341. package/dist/src/utils/window.d.ts +7 -0
  342. package/dist/test/concepts/anonymous-function/constant.d.ts +2 -0
  343. package/dist/test/concepts/anonymous-function/toEmbeddedTS.spec.d.ts +1 -0
  344. package/dist/test/concepts/anonymous-function/toJS.spec.d.ts +1 -0
  345. package/dist/test/concepts/anonymous-function/toVue.spec.d.ts +1 -0
  346. package/dist/test/concepts/assignment/constant.d.ts +2 -0
  347. package/dist/test/concepts/assignment/toEmbeddedTS.spec.d.ts +1 -0
  348. package/dist/test/concepts/assignment/toJS.spec.d.ts +1 -0
  349. package/dist/test/concepts/assignment/toVue.spec.d.ts +1 -0
  350. package/dist/test/concepts/batch-assignment/constant.d.ts +2 -0
  351. package/dist/test/concepts/batch-assignment/toEmbeddedTS.spec.d.ts +1 -0
  352. package/dist/test/concepts/batch-assignment/toJS.spec.d.ts +1 -0
  353. package/dist/test/concepts/batch-assignment/toVue.spec.d.ts +1 -0
  354. package/dist/test/concepts/binary-expression/constant.d.ts +2 -0
  355. package/dist/test/concepts/binary-expression/getQuickInfoOffset.spec.d.ts +1 -0
  356. package/dist/test/concepts/binary-expression/toEmbeddedTS.spec.d.ts +1 -0
  357. package/dist/test/concepts/binary-expression/toJS.spec.d.ts +1 -0
  358. package/dist/test/concepts/binary-expression/toVue.spec.d.ts +1 -0
  359. package/dist/test/concepts/boolean-literal/constant.d.ts +2 -0
  360. package/dist/test/concepts/boolean-literal/toEmbeddedTS.spec.d.ts +1 -0
  361. package/dist/test/concepts/boolean-literal/toJS.spec.d.ts +1 -0
  362. package/dist/test/concepts/boolean-literal/toVue.spec.d.ts +1 -0
  363. package/dist/test/concepts/call-function/constant.d.ts +2 -0
  364. package/dist/test/concepts/call-function/getQuickInfoOffset.spec.d.ts +1 -0
  365. package/dist/test/concepts/call-function/toEmbeddedTS.spec.d.ts +1 -0
  366. package/dist/test/concepts/call-function/toJS.spec.d.ts +1 -0
  367. package/dist/test/concepts/call-interface/constant.d.ts +2 -0
  368. package/dist/test/concepts/call-interface/getQuickInfoOffset.spec.d.ts +1 -0
  369. package/dist/test/concepts/call-interface/toEmbeddedTS.spec.d.ts +1 -0
  370. package/dist/test/concepts/call-interface/toJS.spec.d.ts +1 -0
  371. package/dist/test/concepts/call-logic/constant.d.ts +2 -0
  372. package/dist/test/concepts/call-logic/getQuickInfoOffset.spec.d.ts +1 -0
  373. package/dist/test/concepts/call-logic/toEmbeddedTS.spec.d.ts +1 -0
  374. package/dist/test/concepts/call-logic/toJS.spec.d.ts +1 -0
  375. package/dist/test/concepts/call-logic/toUI.spec.d.ts +1 -0
  376. package/dist/test/concepts/call-logic/toVue.spec.d.ts +1 -0
  377. package/dist/test/concepts/call-logic/toVueDesigner.spec.d.ts +1 -0
  378. package/dist/test/concepts/data-source/constant.d.ts +2 -0
  379. package/dist/test/concepts/data-source/toEmbeddedTS.spec.d.ts +1 -0
  380. package/dist/test/concepts/data-source/toEmbeddedTSFile.spec.d.ts +1 -0
  381. package/dist/test/concepts/entity/constant.d.ts +2 -0
  382. package/dist/test/concepts/entity/toEmbeddedTS.spec.d.ts +1 -0
  383. package/dist/test/concepts/entity/toEmbeddedTSFile.spec.d.ts +1 -0
  384. package/dist/test/concepts/identifier/constant.d.ts +2 -0
  385. package/dist/test/concepts/identifier/toEmbeddedTS.spec.d.ts +1 -0
  386. package/dist/test/concepts/identifier/toJS.spec.d.ts +1 -0
  387. package/dist/test/concepts/identifier/toVue.spec.d.ts +1 -0
  388. package/dist/test/concepts/match/constant.d.ts +2 -0
  389. package/dist/test/concepts/match/toEmbeddedTS.spec.d.ts +1 -0
  390. package/dist/test/concepts/match/toJS.spec.d.ts +1 -0
  391. package/dist/test/concepts/member-expression/constant.d.ts +2 -0
  392. package/dist/test/concepts/member-expression/toEmbeddedTS.spec.d.ts +1 -0
  393. package/dist/test/concepts/member-expression/toJS.spec.d.ts +1 -0
  394. package/dist/test/concepts/member-expression/toVue.spec.d.ts +1 -0
  395. package/dist/test/concepts/new-composite/constant.d.ts +2 -0
  396. package/dist/test/concepts/new-composite/getQuickInfoOffset.spec.d.ts +1 -0
  397. package/dist/test/concepts/new-composite/toEmbeddedTS.spec.d.ts +1 -0
  398. package/dist/test/concepts/new-composite/toJS.spec.d.ts +1 -0
  399. package/dist/test/concepts/new-list/constant.d.ts +2 -0
  400. package/dist/test/concepts/new-list/getQuickInfoOffset.spec.d.ts +1 -0
  401. package/dist/test/concepts/new-list/toEmbeddedTS.spec.d.ts +1 -0
  402. package/dist/test/concepts/new-list/toJS.spec.d.ts +1 -0
  403. package/dist/test/concepts/new-map/constant.d.ts +2 -0
  404. package/dist/test/concepts/new-map/getQuickInfoOffset.spec.d.ts +1 -0
  405. package/dist/test/concepts/new-map/toEmbeddedTS.spec.d.ts +1 -0
  406. package/dist/test/concepts/new-map/toJS.spec.d.ts +1 -0
  407. package/dist/test/concepts/null-literal/constant.d.ts +2 -0
  408. package/dist/test/concepts/null-literal/toEmbeddedTS.spec.d.ts +1 -0
  409. package/dist/test/concepts/null-literal/toJS.spec.d.ts +1 -0
  410. package/dist/test/concepts/null-literal/toVue.spec.d.ts +1 -0
  411. package/dist/test/concepts/numeric-literal/constant.d.ts +2 -0
  412. package/dist/test/concepts/numeric-literal/toEmbeddedTS.spec.d.ts +1 -0
  413. package/dist/test/concepts/numeric-literal/toJS.spec.d.ts +1 -0
  414. package/dist/test/concepts/numeric-literal/toVue.spec.d.ts +1 -0
  415. package/dist/test/concepts/string-literal/constant.d.ts +2 -0
  416. package/dist/test/concepts/string-literal/toEmbeddedTS.spec.d.ts +1 -0
  417. package/dist/test/concepts/string-literal/toJS.spec.d.ts +1 -0
  418. package/dist/test/concepts/string-literal/toVue.spec.d.ts +1 -0
  419. package/dist/test/concepts/utils.d.ts +13 -0
  420. package/dist/test/concepts/validation-rule/constant.d.ts +2 -0
  421. package/dist/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +1 -0
  422. package/dist/test/concepts/validation-rule/toJS.spec.d.ts +1 -0
  423. package/dist/test/concepts/validation-rule/validation-rule.spec.d.ts +1 -0
  424. package/dist/test/concepts/view-element/constant.d.ts +2 -0
  425. package/dist/test/concepts/view-element/toEmbeddedTS.spec.d.ts +1 -0
  426. package/dist/test/concepts/view-element/toVue.spec.d.ts +1 -0
  427. package/dist/test/setup.d.ts +1 -0
  428. package/dist/test/time-slicing/runner.spec.d.ts +1 -0
  429. package/dist/test/time-slicing/time-slicing-nodejs.spec.d.ts +1 -0
  430. package/dist/test/time-slicing/utils.d.ts +1 -0
  431. package/dist/test/time-slicing/wrapper.spec.d.ts +1 -0
  432. package/out/automate/engine/utils.js +1 -1
  433. package/out/automate/engine/utils.js.map +1 -1
  434. package/out/bak/translator.js +12 -12
  435. package/out/bak/translator.js.map +1 -1
  436. package/out/common/BaseNode.js +3 -3
  437. package/out/common/BaseNode.js.map +1 -1
  438. package/out/concepts/App__.d.ts +6 -2
  439. package/out/concepts/App__.js +32 -16
  440. package/out/concepts/App__.js.map +1 -1
  441. package/out/concepts/Argument__.js +5 -0
  442. package/out/concepts/Argument__.js.map +1 -1
  443. package/out/concepts/AuthLogicForCallInterface__.d.ts +1 -0
  444. package/out/concepts/AuthLogicForCallInterface__.js +15 -4
  445. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  446. package/out/concepts/CallAuthInterface__.d.ts +1 -0
  447. package/out/concepts/CallAuthInterface__.js +14 -1
  448. package/out/concepts/CallAuthInterface__.js.map +1 -1
  449. package/out/concepts/CallInterface__.d.ts +9 -1
  450. package/out/concepts/CallInterface__.js +105 -16
  451. package/out/concepts/CallInterface__.js.map +1 -1
  452. package/out/concepts/CallLogic__.js +12 -6
  453. package/out/concepts/CallLogic__.js.map +1 -1
  454. package/out/concepts/Connection__.d.ts +2 -1
  455. package/out/concepts/ConnectorLogic__.d.ts +33 -0
  456. package/out/concepts/ConnectorLogic__.js +69 -0
  457. package/out/concepts/ConnectorLogic__.js.map +1 -0
  458. package/out/concepts/ConnectorTriggerLauncher__.d.ts +44 -0
  459. package/out/concepts/ConnectorTriggerLauncher__.js +99 -0
  460. package/out/concepts/ConnectorTriggerLauncher__.js.map +1 -0
  461. package/out/concepts/ConnectorTrigger__.d.ts +5 -4
  462. package/out/concepts/ConnectorTrigger__.js +39 -4
  463. package/out/concepts/ConnectorTrigger__.js.map +1 -1
  464. package/out/concepts/Connector__.d.ts +1 -0
  465. package/out/concepts/Connector__.js +5 -0
  466. package/out/concepts/Connector__.js.map +1 -1
  467. package/out/concepts/End__.js +1 -0
  468. package/out/concepts/End__.js.map +1 -1
  469. package/out/concepts/Frontend__.js +1 -0
  470. package/out/concepts/Frontend__.js.map +1 -1
  471. package/out/concepts/Integration__.d.ts +1 -0
  472. package/out/concepts/Integration__.js +4 -0
  473. package/out/concepts/Integration__.js.map +1 -1
  474. package/out/concepts/InterfaceTriggerEvent__.d.ts +34 -0
  475. package/out/concepts/InterfaceTriggerEvent__.js +72 -0
  476. package/out/concepts/InterfaceTriggerEvent__.js.map +1 -0
  477. package/out/concepts/Interface__.d.ts +3 -3
  478. package/out/concepts/Interface__.js +7 -6
  479. package/out/concepts/Interface__.js.map +1 -1
  480. package/out/concepts/LogicItem__.d.ts +5 -0
  481. package/out/concepts/LogicItem__.js +7 -1
  482. package/out/concepts/LogicItem__.js.map +1 -1
  483. package/out/concepts/Logic__.d.ts +1 -1
  484. package/out/concepts/Logic__.js +4 -4
  485. package/out/concepts/Logic__.js.map +1 -1
  486. package/out/concepts/MatchCase__.js.map +1 -1
  487. package/out/concepts/Module__.js +1 -0
  488. package/out/concepts/Module__.js.map +1 -1
  489. package/out/concepts/MsgTriggerLauncher__.d.ts +3 -10
  490. package/out/concepts/MsgTriggerLauncher__.js +6 -19
  491. package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
  492. package/out/concepts/OqlQueryComponent__.js +2 -1
  493. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  494. package/out/concepts/Param__.js +3 -1
  495. package/out/concepts/Param__.js.map +1 -1
  496. package/out/concepts/Structure__.js +4 -4
  497. package/out/concepts/Structure__.js.map +1 -1
  498. package/out/concepts/TriggerEvent__.d.ts +2 -2
  499. package/out/concepts/TriggerEvent__.js +1 -1
  500. package/out/concepts/TriggerEvent__.js.map +1 -1
  501. package/out/concepts/TriggerLauncher__.d.ts +1 -1
  502. package/out/concepts/TriggerLauncher__.js +18 -1
  503. package/out/concepts/TriggerLauncher__.js.map +1 -1
  504. package/out/concepts/ViewElement__.d.ts +1 -0
  505. package/out/concepts/ViewElement__.js +7 -0
  506. package/out/concepts/ViewElement__.js.map +1 -1
  507. package/out/concepts/View__.d.ts +3 -2
  508. package/out/concepts/View__.js +11 -18
  509. package/out/concepts/View__.js.map +1 -1
  510. package/out/concepts/basics/stdlib/nasl.browser.js +42 -0
  511. package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
  512. package/out/concepts/basics/stdlib/nasl.configuration.js +8 -0
  513. package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -1
  514. package/out/concepts/index__.d.ts +3 -0
  515. package/out/concepts/index__.js +3 -0
  516. package/out/concepts/index__.js.map +1 -1
  517. package/out/concepts/utils/asserts.d.ts +145 -17
  518. package/out/concepts/utils/asserts.js +212 -39
  519. package/out/concepts/utils/asserts.js.map +1 -1
  520. package/out/concepts/utils/types.d.ts +15 -4
  521. package/out/generator/genBundleFiles.js +15 -2
  522. package/out/generator/genBundleFiles.js.map +1 -1
  523. package/out/generator/genMetaData.js +1 -0
  524. package/out/generator/genMetaData.js.map +1 -1
  525. package/out/generator/permission.js +1 -0
  526. package/out/generator/permission.js.map +1 -1
  527. package/out/generator/release-body/body.d.ts +1 -0
  528. package/out/generator/release-body/body.js +8 -6
  529. package/out/generator/release-body/body.js.map +1 -1
  530. package/out/generator/release-body/data.d.ts +1 -0
  531. package/out/generator/release-body/data.js +11 -8
  532. package/out/generator/release-body/data.js.map +1 -1
  533. package/out/generator/release-body/internal.d.ts +1 -0
  534. package/out/generator/release-body/internal.js.map +1 -1
  535. package/out/generator/release-body/types.d.ts +3 -1
  536. package/out/manager/diagnostic.d.ts +6 -2
  537. package/out/manager/diagnostic.js +28 -23
  538. package/out/manager/diagnostic.js.map +1 -1
  539. package/out/natural/genNaturalTS.d.ts +8 -8
  540. package/out/natural/genNaturalTS.js +41 -41
  541. package/out/natural/prompt/analyzeClaims.js +4 -3
  542. package/out/natural/prompt/analyzeClaims.js.map +1 -1
  543. package/out/natural/prompt/analyzeFormatOutput.js +1 -1
  544. package/out/natural/prompt/analyzeTasks.js +2 -2
  545. package/out/natural/transformTSCode.js +31 -3
  546. package/out/natural/transformTSCode.js.map +1 -1
  547. package/out/server/extendBaseNode.js +36 -3
  548. package/out/server/extendBaseNode.js.map +1 -1
  549. package/out/server/formatTsUtils.d.ts +1 -1
  550. package/out/server/formatTsUtils.js +7 -3
  551. package/out/server/formatTsUtils.js.map +1 -1
  552. package/out/server/getConnector.d.ts +4 -4
  553. package/out/server/getConnector.js +3 -3
  554. package/out/server/getConnector.js.map +1 -1
  555. package/out/server/getExtensionModules.d.ts +1 -1
  556. package/out/server/getLogics.js +20 -6
  557. package/out/server/getLogics.js.map +1 -1
  558. package/out/server/naslServer.d.ts +5 -4
  559. package/out/server/naslServer.js +94 -61
  560. package/out/server/naslServer.js.map +1 -1
  561. package/out/service/storage/init.js +1 -1
  562. package/out/service/storage/init.js.map +1 -1
  563. package/out/templator/genCreateBlock.js +2 -2
  564. package/out/templator/genCreateBlock.js.map +1 -1
  565. package/out/templator/genCurdEditMultipleKeyBlock.js +1 -1
  566. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  567. package/out/templator/genCurdMultipleKeyBlock.js +2 -3
  568. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  569. package/out/templator/genUpdateBlock.js +5 -4
  570. package/out/templator/genUpdateBlock.js.map +1 -1
  571. package/out/utils/delay/index.d.ts +0 -0
  572. package/out/utils/delay/index.js +1 -0
  573. package/out/utils/delay/index.js.map +1 -0
  574. package/out/utils/delay.d.ts +9 -0
  575. package/out/utils/delay.js +41 -0
  576. package/out/utils/delay.js.map +1 -0
  577. package/out/utils/env.d.ts +4 -0
  578. package/out/utils/env.js +6 -1
  579. package/out/utils/env.js.map +1 -1
  580. package/out/utils/index.d.ts +5 -0
  581. package/out/utils/index.js +36 -1
  582. package/out/utils/index.js.map +1 -1
  583. package/out/utils/time-slicing/controller.js +4 -2
  584. package/out/utils/time-slicing/controller.js.map +1 -1
  585. package/out/utils/time-slicing/page-state.d.ts +1 -1
  586. package/out/utils/time-slicing/page-state.js +3 -9
  587. package/out/utils/time-slicing/page-state.js.map +1 -1
  588. package/package.json +1 -1
  589. package/sandbox/stdlib/nasl.browser.ts +5 -0
  590. package/sandbox-natural/stdlib/nasl.core.ts +0 -2
  591. package/src/automate/engine/utils.js +1 -1
  592. package/src/bak/translator.js +13 -13
  593. package/src/common/BaseNode.ts +3 -3
  594. package/src/concepts/App__.ts +34 -18
  595. package/src/concepts/Argument__.ts +6 -0
  596. package/src/concepts/AuthLogicForCallInterface__.ts +15 -4
  597. package/src/concepts/CallAuthInterface__.ts +18 -1
  598. package/src/concepts/CallInterface__.ts +121 -16
  599. package/src/concepts/CallLogic__.ts +14 -7
  600. package/src/concepts/Connection__.ts +1 -1
  601. package/src/concepts/ConnectorLogic__.ts +84 -0
  602. package/src/concepts/ConnectorTriggerLauncher__.ts +117 -0
  603. package/src/concepts/ConnectorTrigger__.ts +38 -5
  604. package/src/concepts/Connector__.ts +6 -0
  605. package/src/concepts/End__.ts +1 -0
  606. package/src/concepts/Frontend__.ts +1 -0
  607. package/src/concepts/Integration__.ts +6 -0
  608. package/src/concepts/InterfaceTriggerEvent__.ts +88 -0
  609. package/src/concepts/Interface__.ts +9 -8
  610. package/src/concepts/LogicItem__.ts +8 -1
  611. package/src/concepts/Logic__.ts +6 -5
  612. package/src/concepts/MatchCase__.ts +1 -0
  613. package/src/concepts/Module__.ts +2 -1
  614. package/src/concepts/MsgTriggerLauncher__.ts +7 -23
  615. package/src/concepts/OqlQueryComponent__.ts +18 -17
  616. package/src/concepts/Param__.ts +3 -1
  617. package/src/concepts/Structure__.ts +4 -4
  618. package/src/concepts/TriggerEvent__.ts +3 -3
  619. package/src/concepts/TriggerLauncher__.ts +19 -2
  620. package/src/concepts/ViewElement__.ts +11 -1
  621. package/src/concepts/View__.ts +12 -20
  622. package/src/concepts/basics/stdlib/nasl.browser.ts +42 -0
  623. package/src/concepts/basics/stdlib/nasl.configuration.ts +8 -0
  624. package/src/concepts/index__.ts +3 -0
  625. package/src/concepts/utils/asserts.ts +212 -24
  626. package/src/concepts/utils/types.ts +25 -6
  627. package/src/generator/genBundleFiles.ts +14 -4
  628. package/src/generator/genMetaData.ts +1 -0
  629. package/src/generator/permission.ts +1 -0
  630. package/src/generator/release-body/body.ts +10 -7
  631. package/src/generator/release-body/data.ts +11 -8
  632. package/src/generator/release-body/internal.ts +1 -0
  633. package/src/generator/release-body/types.ts +3 -1
  634. package/src/manager/diagnostic.ts +35 -31
  635. package/src/natural/genNaturalTS.ts +41 -41
  636. package/src/natural/prompt/analyzeClaims.ts +4 -3
  637. package/src/natural/prompt/analyzeFormatOutput.ts +1 -1
  638. package/src/natural/prompt/analyzeTasks.ts +2 -2
  639. package/src/natural/transformTSCode.ts +32 -4
  640. package/src/server/extendBaseNode.ts +35 -4
  641. package/src/server/formatTsUtils.ts +6 -3
  642. package/src/server/getConnector.ts +7 -7
  643. package/src/server/getLogics.ts +21 -6
  644. package/src/server/naslServer.ts +107 -64
  645. package/src/service/storage/init.ts +1 -1
  646. package/src/templator/genCreateBlock.ts +2 -2
  647. package/src/templator/genCurdEditMultipleKeyBlock.ts +1 -1
  648. package/src/templator/genCurdMultipleKeyBlock.ts +2 -3
  649. package/src/templator/genUpdateBlock.ts +5 -4
  650. package/src/utils/delay/index.ts +0 -0
  651. package/src/utils/delay.ts +41 -0
  652. package/src/utils/env.ts +7 -0
  653. package/src/utils/index.ts +36 -1
  654. package/src/utils/time-slicing/controller.ts +5 -3
  655. package/src/utils/time-slicing/page-state.ts +1 -9
  656. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +2 -2
  657. package/ts-worker/src/index.js +4 -3
@@ -0,0 +1,615 @@
1
+ import type { EmbeddedTSFileGenerator } from '../utils';
2
+ import { TranslatorState, TranslatorGenerator } from '../translator';
3
+ import type ForEachStatement from './ForEachStatement__';
4
+ import type Assignment from './Assignment__';
5
+ import type BatchAssignment from './BatchAssignment__';
6
+ import type MatchCase from './MatchCase__';
7
+ import type Logic from './Logic__';
8
+ import Module from './Module__';
9
+ import View from './View__';
10
+ import Frontend from './Frontend__';
11
+ import ProcessElement from './ProcessElement__';
12
+ import Process from './Process__';
13
+ import { EventPayload } from '../common/EventEmitter';
14
+ import BaseNode from '../common/BaseNode';
15
+ import Transactional from './Transactional__';
16
+ import TypeParam from './TypeParam__';
17
+ import Param from './Param__';
18
+ import Return from './Return__';
19
+ import Variable from './Variable__';
20
+ import LogicItem from './LogicItem__';
21
+ /**
22
+ * 覆写逻辑
23
+ */
24
+ export declare class OverriddenLogic extends BaseNode {
25
+ /** 类名 */
26
+ static readonly ConceptName: string;
27
+ /**
28
+ * 是否为抽象类
29
+ * 抽象类不能产生 concept: string
30
+ */
31
+ static isAbstract: boolean;
32
+ /** 继承链 */
33
+ static readonly inheritanceChain: string[];
34
+ /**
35
+ * 产品概念
36
+ */
37
+ readonly concept: 'OverriddenLogic';
38
+ /**
39
+ * 覆写的模块
40
+ */
41
+ overriddenModule: string;
42
+ /**
43
+ * 覆写逻辑名称
44
+ */
45
+ name: string;
46
+ /**
47
+ * 覆写逻辑描述
48
+ */
49
+ description: string;
50
+ /**
51
+ * 触发方式
52
+ */
53
+ triggerType: string;
54
+ /**
55
+ * 定时任务表达式
56
+ */
57
+ cron: string;
58
+ /**
59
+ * 事务
60
+ */
61
+ transactional: Transactional;
62
+ /**
63
+ * 类型参数列表
64
+ */
65
+ typeParams?: Array<TypeParam>;
66
+ /**
67
+ * 输入参数列表
68
+ */
69
+ params: Array<Param>;
70
+ /**
71
+ * 输出参数列表
72
+ */
73
+ returns: Array<Return>;
74
+ /**
75
+ * 变量列表
76
+ */
77
+ variables: Array<Variable>;
78
+ /**
79
+ * 逻辑项列表
80
+ */
81
+ body: Array<LogicItem>;
82
+ /**
83
+ * 逻辑项列表
84
+ */
85
+ playground: Array<LogicItem>;
86
+ /**
87
+ * @param source 需要合并的部分参数
88
+ */
89
+ constructor(source?: Partial<OverriddenLogic>);
90
+ static from(source: any, parentNode?: any, parentKey?: string): OverriddenLogic;
91
+ /**
92
+ * 设置覆写的模块
93
+ */
94
+ setOverriddenModule(overriddenModule: string): void;
95
+ /**
96
+ * 设置覆写逻辑名称
97
+ */
98
+ setName(name: string): void;
99
+ /**
100
+ * 设置覆写逻辑描述
101
+ */
102
+ setDescription(description: string): void;
103
+ /**
104
+ * 设置触发方式
105
+ */
106
+ setTriggerType(triggerType: string): void;
107
+ /**
108
+ * 设置定时任务表达式
109
+ */
110
+ setCron(cron: string): void;
111
+ /**
112
+ * 设置事务
113
+ */
114
+ setTransactional(transactional: Transactional): void;
115
+ getTypeParamExistingNames(excludedList?: Array<TypeParam>): string[];
116
+ getTypeParamUniqueName(name?: string): string;
117
+ /**
118
+ * 插入类型参数
119
+ * @internal
120
+ * @param name 类型参数名称,如果不填会自动生成一个唯一名称
121
+ */
122
+ _insertTypeParamAt(name: string, index: number): TypeParam;
123
+ /**
124
+ * 插入类型参数
125
+ * @internal
126
+ * @param typeParamOptions 类型参数参数
127
+ */
128
+ _insertTypeParamAt(typeParamOptions: Partial<TypeParam>, index: number): TypeParam;
129
+ /**
130
+ * 插入类型参数
131
+ * @internal
132
+ * @param typeParam 已有的类型参数实例
133
+ */
134
+ _insertTypeParamAt(typeParam: TypeParam, index: number): TypeParam;
135
+ /**
136
+ * 插入类型参数
137
+ * @param name 类型参数名称,如果不填会自动生成一个唯一名称
138
+ */
139
+ insertTypeParamAt(name: string, index: number): TypeParam;
140
+ /**
141
+ * 插入类型参数
142
+ * @param typeParamOptions 类型参数参数
143
+ */
144
+ insertTypeParamAt(typeParamOptions: Partial<TypeParam>, index: number): TypeParam;
145
+ /**
146
+ * 插入类型参数
147
+ * @param typeParam 已有的类型参数实例
148
+ */
149
+ insertTypeParamAt(typeParam: TypeParam, index: number): TypeParam;
150
+ /**
151
+ * 添加类型参数
152
+ * @internal
153
+ * @param name 类型参数名称,如果不填会自动生成一个唯一名称
154
+ */
155
+ _addTypeParam(name?: string): TypeParam;
156
+ /**
157
+ * 添加类型参数
158
+ * @internal
159
+ * @param typeParamOptions 类型参数参数
160
+ */
161
+ _addTypeParam(typeParamOptions: Partial<TypeParam>): TypeParam;
162
+ /**
163
+ * 添加类型参数
164
+ * @internal
165
+ * @param typeParam 已有的类型参数实例
166
+ */
167
+ _addTypeParam(typeParam: TypeParam): TypeParam;
168
+ /**
169
+ * 添加类型参数
170
+ * @internal
171
+ * @param name 类型参数名称,如果不填会自动生成一个唯一名称
172
+ */
173
+ addTypeParam(name?: string): TypeParam;
174
+ /**
175
+ * 添加类型参数
176
+ * @param typeParamOptions 类型参数参数
177
+ */
178
+ addTypeParam(typeParamOptions: Partial<TypeParam>): TypeParam;
179
+ /**
180
+ * 添加类型参数
181
+ * @param typeParam 已有的类型参数实例
182
+ */
183
+ addTypeParam(typeParam: TypeParam): TypeParam;
184
+ getParamUniqueName(name?: string): string;
185
+ /**
186
+ * 插入输入参数
187
+ * @internal
188
+ * @param name 输入参数名称,如果不填会自动生成一个唯一名称
189
+ */
190
+ _insertParamAt(name: string, index: number): Param;
191
+ /**
192
+ * 插入输入参数
193
+ * @internal
194
+ * @param paramOptions 输入参数参数
195
+ */
196
+ _insertParamAt(paramOptions: Partial<Param>, index: number): Param;
197
+ /**
198
+ * 插入输入参数
199
+ * @internal
200
+ * @param param 已有的输入参数实例
201
+ */
202
+ _insertParamAt(param: Param, index: number): Param;
203
+ /**
204
+ * 插入输入参数
205
+ * @param name 输入参数名称,如果不填会自动生成一个唯一名称
206
+ */
207
+ insertParamAt(name: string, index: number): Param;
208
+ /**
209
+ * 插入输入参数
210
+ * @param paramOptions 输入参数参数
211
+ */
212
+ insertParamAt(paramOptions: Partial<Param>, index: number): Param;
213
+ /**
214
+ * 插入输入参数
215
+ * @param param 已有的输入参数实例
216
+ */
217
+ insertParamAt(param: Param, index: number): Param;
218
+ /**
219
+ * 添加输入参数
220
+ * @internal
221
+ * @param name 输入参数名称,如果不填会自动生成一个唯一名称
222
+ */
223
+ _addParam(name?: string): Param;
224
+ /**
225
+ * 添加输入参数
226
+ * @internal
227
+ * @param paramOptions 输入参数参数
228
+ */
229
+ _addParam(paramOptions: Partial<Param>): Param;
230
+ /**
231
+ * 添加输入参数
232
+ * @internal
233
+ * @param param 已有的输入参数实例
234
+ */
235
+ _addParam(param: Param): Param;
236
+ /**
237
+ * 添加输入参数
238
+ * @internal
239
+ * @param name 输入参数名称,如果不填会自动生成一个唯一名称
240
+ */
241
+ addParam(name?: string): Param;
242
+ /**
243
+ * 添加输入参数
244
+ * @param paramOptions 输入参数参数
245
+ */
246
+ addParam(paramOptions: Partial<Param>): Param;
247
+ /**
248
+ * 添加输入参数
249
+ * @param param 已有的输入参数实例
250
+ */
251
+ addParam(param: Param): Param;
252
+ getReturnUniqueName(name?: string): string;
253
+ /**
254
+ * 插入输出参数
255
+ * @internal
256
+ * @param name 输出参数名称,如果不填会自动生成一个唯一名称
257
+ */
258
+ _insertReturnAt(name: string, index: number): Return;
259
+ /**
260
+ * 插入输出参数
261
+ * @internal
262
+ * @param retOptions 输出参数参数
263
+ */
264
+ _insertReturnAt(retOptions: Partial<Return>, index: number): Return;
265
+ /**
266
+ * 插入输出参数
267
+ * @internal
268
+ * @param ret 已有的输出参数实例
269
+ */
270
+ _insertReturnAt(ret: Return, index: number): Return;
271
+ /**
272
+ * 插入输出参数
273
+ * @param name 输出参数名称,如果不填会自动生成一个唯一名称
274
+ */
275
+ insertReturnAt(name: string, index: number): Return;
276
+ /**
277
+ * 插入输出参数
278
+ * @param retOptions 输出参数参数
279
+ */
280
+ insertReturnAt(retOptions: Partial<Return>, index: number): Return;
281
+ /**
282
+ * 插入输出参数
283
+ * @param ret 已有的输出参数实例
284
+ */
285
+ insertReturnAt(ret: Return, index: number): Return;
286
+ /**
287
+ * 添加输出参数
288
+ * @internal
289
+ * @param name 输出参数名称,如果不填会自动生成一个唯一名称
290
+ */
291
+ _addReturn(name?: string): Return;
292
+ /**
293
+ * 添加输出参数
294
+ * @internal
295
+ * @param retOptions 输出参数参数
296
+ */
297
+ _addReturn(retOptions: Partial<Return>): Return;
298
+ /**
299
+ * 添加输出参数
300
+ * @internal
301
+ * @param ret 已有的输出参数实例
302
+ */
303
+ _addReturn(ret: Return): Return;
304
+ /**
305
+ * 添加输出参数
306
+ * @internal
307
+ * @param name 输出参数名称,如果不填会自动生成一个唯一名称
308
+ */
309
+ addReturn(name?: string): Return;
310
+ /**
311
+ * 添加输出参数
312
+ * @param retOptions 输出参数参数
313
+ */
314
+ addReturn(retOptions: Partial<Return>): Return;
315
+ /**
316
+ * 添加输出参数
317
+ * @param ret 已有的输出参数实例
318
+ */
319
+ addReturn(ret: Return): Return;
320
+ getVariableUniqueName(name?: string): string;
321
+ /**
322
+ * 插入变量
323
+ * @internal
324
+ * @param name 变量名称,如果不填会自动生成一个唯一名称
325
+ */
326
+ _insertVariableAt(name: string, index: number): Variable;
327
+ /**
328
+ * 插入变量
329
+ * @internal
330
+ * @param variableOptions 变量参数
331
+ */
332
+ _insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
333
+ /**
334
+ * 插入变量
335
+ * @internal
336
+ * @param variable 已有的变量实例
337
+ */
338
+ _insertVariableAt(variable: Variable, index: number): Variable;
339
+ /**
340
+ * 插入变量
341
+ * @param name 变量名称,如果不填会自动生成一个唯一名称
342
+ */
343
+ insertVariableAt(name: string, index: number): Variable;
344
+ /**
345
+ * 插入变量
346
+ * @param variableOptions 变量参数
347
+ */
348
+ insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
349
+ /**
350
+ * 插入变量
351
+ * @param variable 已有的变量实例
352
+ */
353
+ insertVariableAt(variable: Variable, index: number): Variable;
354
+ /**
355
+ * 添加变量
356
+ * @internal
357
+ * @param name 变量名称,如果不填会自动生成一个唯一名称
358
+ */
359
+ _addVariable(name?: string): Variable;
360
+ /**
361
+ * 添加变量
362
+ * @internal
363
+ * @param variableOptions 变量参数
364
+ */
365
+ _addVariable(variableOptions: Partial<Variable>): Variable;
366
+ /**
367
+ * 添加变量
368
+ * @internal
369
+ * @param variable 已有的变量实例
370
+ */
371
+ _addVariable(variable: Variable): Variable;
372
+ /**
373
+ * 添加变量
374
+ * @internal
375
+ * @param name 变量名称,如果不填会自动生成一个唯一名称
376
+ */
377
+ addVariable(name?: string): Variable;
378
+ /**
379
+ * 添加变量
380
+ * @param variableOptions 变量参数
381
+ */
382
+ addVariable(variableOptions: Partial<Variable>): Variable;
383
+ /**
384
+ * 添加变量
385
+ * @param variable 已有的变量实例
386
+ */
387
+ addVariable(variable: Variable): Variable;
388
+ /**
389
+ * 插入逻辑项
390
+ * @internal
391
+ * @param logicItemOptions 逻辑项参数
392
+ */
393
+ _insertItemInBodyAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
394
+ /**
395
+ * 插入逻辑项
396
+ * @internal
397
+ * @param logicItem 已有的逻辑项实例
398
+ */
399
+ _insertItemInBodyAt(logicItem: LogicItem, index: number): LogicItem;
400
+ /**
401
+ * 插入逻辑项
402
+ * @param logicItemOptions 逻辑项参数
403
+ */
404
+ insertItemInBodyAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
405
+ /**
406
+ * 插入逻辑项
407
+ * @param logicItem 已有的逻辑项实例
408
+ */
409
+ insertItemInBodyAt(logicItem: LogicItem, index: number): LogicItem;
410
+ /**
411
+ * 添加逻辑项
412
+ * @internal
413
+ * @param logicItemOptions 逻辑项参数
414
+ */
415
+ _addItemInBody(logicItemOptions: Partial<LogicItem>): LogicItem;
416
+ /**
417
+ * 添加逻辑项
418
+ * @internal
419
+ * @param logicItem 已有的逻辑项实例
420
+ */
421
+ _addItemInBody(logicItem: LogicItem): LogicItem;
422
+ /**
423
+ * 添加逻辑项
424
+ * @param logicItemOptions 逻辑项参数
425
+ */
426
+ addItemInBody(logicItemOptions: Partial<LogicItem>): LogicItem;
427
+ /**
428
+ * 添加逻辑项
429
+ * @param logicItem 已有的逻辑项实例
430
+ */
431
+ addItemInBody(logicItem: LogicItem): LogicItem;
432
+ /**
433
+ * 插入逻辑项
434
+ * @internal
435
+ * @param logicItemOptions 逻辑项参数
436
+ */
437
+ _insertItemInPlaygroundAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
438
+ /**
439
+ * 插入逻辑项
440
+ * @internal
441
+ * @param logicItem 已有的逻辑项实例
442
+ */
443
+ _insertItemInPlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
444
+ /**
445
+ * 插入逻辑项
446
+ * @param logicItemOptions 逻辑项参数
447
+ */
448
+ insertItemInPlaygroundAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
449
+ /**
450
+ * 插入逻辑项
451
+ * @param logicItem 已有的逻辑项实例
452
+ */
453
+ insertItemInPlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
454
+ /**
455
+ * 添加逻辑项
456
+ * @internal
457
+ * @param logicItemOptions 逻辑项参数
458
+ */
459
+ _addItemInPlayground(logicItemOptions: Partial<LogicItem>): LogicItem;
460
+ /**
461
+ * 添加逻辑项
462
+ * @internal
463
+ * @param logicItem 已有的逻辑项实例
464
+ */
465
+ _addItemInPlayground(logicItem: LogicItem): LogicItem;
466
+ /**
467
+ * 添加逻辑项
468
+ * @param logicItemOptions 逻辑项参数
469
+ */
470
+ addItemInPlayground(logicItemOptions: Partial<LogicItem>): LogicItem;
471
+ /**
472
+ * 添加逻辑项
473
+ * @param logicItem 已有的逻辑项实例
474
+ */
475
+ addItemInPlayground(logicItem: LogicItem): LogicItem;
476
+ /**
477
+ * 删除类型参数
478
+ * @param name 类型参数名称
479
+ */
480
+ removeTypeParam(name: string): void;
481
+ /**
482
+ * 删除类型参数
483
+ * @param typeParam 已有的类型参数实例
484
+ */
485
+ removeTypeParam(typeParam: TypeParam): void;
486
+ /**
487
+ * 删除输入参数
488
+ * @param name 输入参数名称
489
+ */
490
+ removeParam(name: string): void;
491
+ /**
492
+ * 删除输入参数
493
+ * @param param 已有的输入参数实例
494
+ */
495
+ removeParam(param: Param): void;
496
+ /**
497
+ * 删除输出参数
498
+ * @param name 输出参数名称
499
+ */
500
+ removeReturn(name: string): void;
501
+ /**
502
+ * 删除输出参数
503
+ * @param ret 已有的输出参数实例
504
+ */
505
+ removeReturn(ret: Return): void;
506
+ /**
507
+ * 删除变量
508
+ * @param name 变量名称
509
+ */
510
+ removeVariable(name: string): void;
511
+ /**
512
+ * 删除变量
513
+ * @param variable 已有的变量实例
514
+ */
515
+ removeVariable(variable: Variable): void;
516
+ /**
517
+ * 删除逻辑项
518
+ * @param logicItem 已有的逻辑项实例
519
+ */
520
+ removeItemInBody(logicItem: LogicItem): void;
521
+ /**
522
+ * 删除逻辑项
523
+ * @param logicItem 已有的逻辑项实例
524
+ */
525
+ removeItemInPlayground(logicItem: LogicItem): void;
526
+ /**
527
+ * 祖先 Module
528
+ */
529
+ get module(): Module;
530
+ /**
531
+ * 祖先 View
532
+ */
533
+ get view(): View;
534
+ /**
535
+ * 祖先 Frontend
536
+ */
537
+ get frontend(): Frontend;
538
+ /**
539
+ * 祖先 ProcessElement
540
+ */
541
+ get processElement(): ProcessElement;
542
+ /**
543
+ * 祖先 Process
544
+ */
545
+ get process(): Process;
546
+ get calleewholeKey(): string;
547
+ setCronAndTriggerType(cron: string, triggerType: string): void;
548
+ /**
549
+ * 创建的时候 打开事务 通过开关设置数据库事务
550
+ */
551
+ openTransactional(flag: boolean): void;
552
+ findLogicItemByConcept(concept: string): LogicItem;
553
+ onChange($event?: EventPayload): void;
554
+ getVarExistingNames(excludedList?: Array<Param | Return | Variable>): any[];
555
+ toJSContent(code: string, state?: TranslatorState): string;
556
+ toJS(state?: TranslatorState, type?: string): string;
557
+ toProcessService(): {
558
+ config: {
559
+ serviceType: string;
560
+ };
561
+ url: {
562
+ method: string;
563
+ path: string;
564
+ };
565
+ };
566
+ toService(): {
567
+ config: {
568
+ serviceType: string;
569
+ };
570
+ url: {
571
+ method: string;
572
+ path: string;
573
+ };
574
+ };
575
+ toEmbeddedTSInProcess(state?: TranslatorState, prependCode?: string, noName?: boolean, prefix?: boolean): TranslatorGenerator;
576
+ toEmbeddedTSNoExport(state?: TranslatorState): string;
577
+ toEmbeddedTS(state?: TranslatorState, prefix?: string): TranslatorGenerator;
578
+ toNaturalTS(state?: TranslatorState): string;
579
+ toTextualNASL(state?: TranslatorState, prefix?: string, logicName?: string, currentNode?: BaseNode): string;
580
+ getRightCode(code: string, assignment: Assignment | BatchAssignment, rightNode: any): Generator<any, string, any>;
581
+ handleReplaceCode(code: string, variable: string, replaceCode: string): string;
582
+ handleForEachCode(code: string, forEachStatement: ForEachStatement): Generator<any, string, any>;
583
+ handleMatchCaseCode(code: string, matchCase: MatchCase): Generator<any, string, any>;
584
+ getNamespace(): string;
585
+ getTsNamespace(): string;
586
+ /**
587
+ * 生成宿主语言的文件路径
588
+ * @param name 一般不用传,用于 rename
589
+ */
590
+ getEmbeddedFilePath(name?: string): string;
591
+ toEmbeddedTSFile(): EmbeddedTSFileGenerator;
592
+ static getDefaultOptions(): {
593
+ body: {
594
+ concept: string;
595
+ label: string;
596
+ kind: string;
597
+ type: string;
598
+ }[];
599
+ };
600
+ saveStructureOfCallQueryComponents(root?: BaseNode | Logic): Promise<void>;
601
+ setTransactionEnabled(flag: boolean): void;
602
+ fake: boolean;
603
+ getPath: () => string;
604
+ delete(): void;
605
+ haveError: boolean;
606
+ isSmpty: boolean;
607
+ get pathName(): string;
608
+ getEventLogicName(type?: string): string;
609
+ virtualParams: Array<Param>;
610
+ get getLogicBelongTo(): string;
611
+ static checkLogicReturnTypeHasError(logic: Logic): boolean;
612
+ get getIsEmptyLogic(): boolean;
613
+ getOverriddenDepLogic(): Logic;
614
+ }
615
+ export default OverriddenLogic;
@@ -0,0 +1,59 @@
1
+ import { TranslatorGenerator } from '../translator';
2
+ import { Range, GetCode } from './utils/quick-info';
3
+ import LogicItem from './LogicItem__';
4
+ import TypeAnnotation from './TypeAnnotation__';
5
+ /**
6
+ * 分页
7
+ */
8
+ export declare class Paginate extends LogicItem {
9
+ /** 类名 */
10
+ static readonly ConceptName: string;
11
+ /**
12
+ * 是否为抽象类
13
+ * 抽象类不能产生 concept: string
14
+ */
15
+ static isAbstract: boolean;
16
+ /** 继承链 */
17
+ static readonly inheritanceChain: string[];
18
+ /**
19
+ * 产品概念
20
+ */
21
+ readonly concept: 'Paginate';
22
+ /**
23
+ * 分页对象
24
+ */
25
+ list: LogicItem;
26
+ /**
27
+ * 页数
28
+ */
29
+ page: LogicItem;
30
+ /**
31
+ * 每页记录数
32
+ */
33
+ size: LogicItem;
34
+ /**
35
+ * 类型
36
+ */
37
+ typeAnnotation: TypeAnnotation;
38
+ /**
39
+ * @param source 需要合并的部分参数
40
+ */
41
+ constructor(source?: Partial<Paginate>);
42
+ static from(source: any, parentNode?: any, parentKey?: string): Paginate;
43
+ /**
44
+ * 设置分页对象
45
+ */
46
+ setList(list: LogicItem): void;
47
+ /**
48
+ * 设置页数
49
+ */
50
+ setPage(page: LogicItem): void;
51
+ /**
52
+ * 设置每页记录数
53
+ */
54
+ setSize(size: LogicItem): void;
55
+ toNaturalTS(state?: import("../translator").TranslatorState): string;
56
+ toEmbeddedTS(state?: import("../translator").TranslatorState): TranslatorGenerator;
57
+ getQuickInfoOffset(range: Range, getCode: GetCode): import("./utils/quick-info").QuickInfoData;
58
+ }
59
+ export default Paginate;
@@ -0,0 +1,44 @@
1
+ import { TranslatorState } from '../translator';
2
+ import Param from './Param__';
3
+ /**
4
+ * 带分组的参数
5
+ */
6
+ export declare class ParamWithGroup extends Param {
7
+ /** 类名 */
8
+ static readonly ConceptName: string;
9
+ /**
10
+ * 是否为抽象类
11
+ * 抽象类不能产生 concept: string
12
+ */
13
+ static isAbstract: boolean;
14
+ /** 继承链 */
15
+ static readonly inheritanceChain: string[];
16
+ /**
17
+ * 产品概念
18
+ */
19
+ readonly concept: 'ParamWithGroup';
20
+ /**
21
+ * 标题
22
+ */
23
+ title: string;
24
+ /**
25
+ * 分组
26
+ */
27
+ group: string;
28
+ /**
29
+ * @param source 需要合并的部分参数
30
+ */
31
+ constructor(source?: Partial<ParamWithGroup>);
32
+ static from(source: any, parentNode?: any, parentKey?: string): ParamWithGroup;
33
+ /**
34
+ * 设置标题
35
+ */
36
+ setTitle(title: string): void;
37
+ /**
38
+ * 设置分组
39
+ */
40
+ setGroup(group: string): void;
41
+ static getDefaultOptions(): any;
42
+ toTextualNASL(state?: TranslatorState, dontType?: boolean): string;
43
+ }
44
+ export default ParamWithGroup;