@lcap/nasl 2.20.0-beta.1 → 2.20.0-beta.3

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 (308) hide show
  1. package/out/automate/engine/index.d.ts +1 -1
  2. package/out/automate/engine/index.js +7 -7
  3. package/out/automate/engine/index.js.map +1 -1
  4. package/out/automate/engine/uniqueName.d.ts +1 -1
  5. package/out/automate/engine/uniqueName.js +3 -3
  6. package/out/automate/engine/uniqueName.js.map +1 -1
  7. package/out/automate/template/myProcess.js +1 -1
  8. package/out/automate/template/myProcess.js.map +1 -1
  9. package/out/bak/translator.js +38 -85
  10. package/out/bak/translator.js.map +1 -1
  11. package/out/common/BaseNode.d.ts +10 -6
  12. package/out/common/BaseNode.js +53 -7
  13. package/out/common/BaseNode.js.map +1 -1
  14. package/out/concepts/AnonymousFunction__.d.ts +1 -0
  15. package/out/concepts/AnonymousFunction__.js +40 -2
  16. package/out/concepts/AnonymousFunction__.js.map +1 -1
  17. package/out/concepts/App__.d.ts +89 -261
  18. package/out/concepts/App__.js +315 -367
  19. package/out/concepts/App__.js.map +1 -1
  20. package/out/concepts/Assignee__.js.map +1 -1
  21. package/out/concepts/AssignmentLine__.d.ts +5 -5
  22. package/out/concepts/AssignmentLine__.js +6 -6
  23. package/out/concepts/AssignmentLine__.js.map +1 -1
  24. package/out/concepts/Assignment__.js +1 -2
  25. package/out/concepts/Assignment__.js.map +1 -1
  26. package/out/concepts/BatchAssignment__.d.ts +62 -60
  27. package/out/concepts/BatchAssignment__.js +113 -42
  28. package/out/concepts/BatchAssignment__.js.map +1 -1
  29. package/out/concepts/BindAttribute__.d.ts +24 -0
  30. package/out/concepts/BindAttribute__.js +54 -4
  31. package/out/concepts/BindAttribute__.js.map +1 -1
  32. package/out/concepts/BindDirective__.d.ts +5 -0
  33. package/out/concepts/BindDirective__.js +6 -0
  34. package/out/concepts/BindDirective__.js.map +1 -1
  35. package/out/concepts/BindEvent__.d.ts +5 -0
  36. package/out/concepts/BindEvent__.js +6 -0
  37. package/out/concepts/BindEvent__.js.map +1 -1
  38. package/out/concepts/BindStyle__.d.ts +7 -2
  39. package/out/concepts/BindStyle__.js +9 -3
  40. package/out/concepts/BindStyle__.js.map +1 -1
  41. package/out/concepts/BooleanLiteral__.js +0 -8
  42. package/out/concepts/BooleanLiteral__.js.map +1 -1
  43. package/out/concepts/CallFunction__.js +90 -38
  44. package/out/concepts/CallFunction__.js.map +1 -1
  45. package/out/concepts/CallInterface__.d.ts +7 -0
  46. package/out/concepts/CallInterface__.js +54 -7
  47. package/out/concepts/CallInterface__.js.map +1 -1
  48. package/out/concepts/CallLogic__.d.ts +2 -1
  49. package/out/concepts/CallLogic__.js +171 -37
  50. package/out/concepts/CallLogic__.js.map +1 -1
  51. package/out/concepts/CallQueryComponent__.js +16 -1
  52. package/out/concepts/CallQueryComponent__.js.map +1 -1
  53. package/out/concepts/CompletionProperty__.js +3 -0
  54. package/out/concepts/CompletionProperty__.js.map +1 -1
  55. package/out/concepts/ConfigGroup__.js.map +1 -1
  56. package/out/concepts/ConfigProperty__.js.map +1 -1
  57. package/out/concepts/Configuration__.js.map +1 -1
  58. package/out/concepts/Constant__.d.ts +5 -0
  59. package/out/concepts/Constant__.js +6 -0
  60. package/out/concepts/Constant__.js.map +1 -1
  61. package/out/concepts/DataSource__.d.ts +8 -0
  62. package/out/concepts/DataSource__.js +96 -1
  63. package/out/concepts/DataSource__.js.map +1 -1
  64. package/out/concepts/Destination__.d.ts +11 -2
  65. package/out/concepts/Destination__.js +156 -51
  66. package/out/concepts/Destination__.js.map +1 -1
  67. package/out/concepts/EntityProperty__.d.ts +21 -8
  68. package/out/concepts/EntityProperty__.js +109 -23
  69. package/out/concepts/EntityProperty__.js.map +1 -1
  70. package/out/concepts/Entity__.d.ts +32 -0
  71. package/out/concepts/Entity__.js +117 -2
  72. package/out/concepts/Entity__.js.map +1 -1
  73. package/out/concepts/Enum__.js +0 -4
  74. package/out/concepts/Enum__.js.map +1 -1
  75. package/out/concepts/Event__.js.map +1 -1
  76. package/out/concepts/ExternalDestination__.d.ts +73 -0
  77. package/out/concepts/ExternalDestination__.js +264 -0
  78. package/out/concepts/ExternalDestination__.js.map +1 -0
  79. package/out/concepts/ForEachStatement__.d.ts +0 -4
  80. package/out/concepts/ForEachStatement__.js +4 -8
  81. package/out/concepts/ForEachStatement__.js.map +1 -1
  82. package/out/concepts/Frontend__.d.ts +370 -0
  83. package/out/concepts/Frontend__.js +669 -0
  84. package/out/concepts/Frontend__.js.map +1 -0
  85. package/out/concepts/Function__.js.map +1 -1
  86. package/out/concepts/Identifier__.d.ts +1 -0
  87. package/out/concepts/Identifier__.js +33 -10
  88. package/out/concepts/Identifier__.js.map +1 -1
  89. package/out/concepts/IfStatement__.d.ts +8 -0
  90. package/out/concepts/IfStatement__.js +22 -0
  91. package/out/concepts/IfStatement__.js.map +1 -1
  92. package/out/concepts/InterfaceParam__.js.map +1 -1
  93. package/out/concepts/Interface__.js.map +1 -1
  94. package/out/concepts/LogicItem__.d.ts +6 -1
  95. package/out/concepts/LogicItem__.js +6 -0
  96. package/out/concepts/LogicItem__.js.map +1 -1
  97. package/out/concepts/Logic__.d.ts +91 -80
  98. package/out/concepts/Logic__.js +178 -59
  99. package/out/concepts/Logic__.js.map +1 -1
  100. package/out/concepts/MatchCase__.d.ts +1 -1
  101. package/out/concepts/MatchCase__.js +15 -8
  102. package/out/concepts/MatchCase__.js.map +1 -1
  103. package/out/concepts/Match__.d.ts +21 -19
  104. package/out/concepts/Match__.js +118 -26
  105. package/out/concepts/Match__.js.map +1 -1
  106. package/out/concepts/MemberExpression__.d.ts +4 -1
  107. package/out/concepts/MemberExpression__.js +30 -15
  108. package/out/concepts/MemberExpression__.js.map +1 -1
  109. package/out/concepts/Module__.js.map +1 -1
  110. package/out/concepts/Namespace__.js.map +1 -1
  111. package/out/concepts/NewComposite__.d.ts +345 -0
  112. package/out/concepts/NewComposite__.js +1068 -0
  113. package/out/concepts/NewComposite__.js.map +1 -0
  114. package/out/concepts/NewList__.d.ts +130 -0
  115. package/out/concepts/NewList__.js +349 -0
  116. package/out/concepts/NewList__.js.map +1 -0
  117. package/out/concepts/NewMap__.d.ts +221 -0
  118. package/out/concepts/NewMap__.js +480 -0
  119. package/out/concepts/NewMap__.js.map +1 -0
  120. package/out/concepts/New__.d.ts +19 -0
  121. package/out/concepts/New__.js +66 -0
  122. package/out/concepts/New__.js.map +1 -0
  123. package/out/concepts/NumericLiteral__.js +1 -1
  124. package/out/concepts/NumericLiteral__.js.map +1 -1
  125. package/out/concepts/OqlQueryComponent__.d.ts +7 -3
  126. package/out/concepts/OqlQueryComponent__.js +56 -95
  127. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  128. package/out/concepts/Param__.d.ts +8 -1
  129. package/out/concepts/Param__.js +85 -6
  130. package/out/concepts/Param__.js.map +1 -1
  131. package/out/concepts/ProcessComponent__.js.map +1 -1
  132. package/out/concepts/ProcessElement__.js +42 -13
  133. package/out/concepts/ProcessElement__.js.map +1 -1
  134. package/out/concepts/ProcessOutcomes__.d.ts +30 -0
  135. package/out/concepts/ProcessOutcomes__.js +87 -0
  136. package/out/concepts/ProcessOutcomes__.js.map +1 -0
  137. package/out/concepts/Process__.d.ts +4 -20
  138. package/out/concepts/Process__.js +0 -7
  139. package/out/concepts/Process__.js.map +1 -1
  140. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  141. package/out/concepts/QueryOrderByExpression__.d.ts +3 -3
  142. package/out/concepts/QueryOrderByExpression__.js +3 -3
  143. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  144. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  145. package/out/concepts/Return__.d.ts +5 -0
  146. package/out/concepts/Return__.js +45 -2
  147. package/out/concepts/Return__.js.map +1 -1
  148. package/out/concepts/SelectMembers__.d.ts +1 -1
  149. package/out/concepts/SelectMembers__.js +5 -5
  150. package/out/concepts/SelectMembers__.js.map +1 -1
  151. package/out/concepts/SqlQueryComponent__.d.ts +2 -4
  152. package/out/concepts/SqlQueryComponent__.js +9 -88
  153. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  154. package/out/concepts/StringInterpolation__.d.ts +113 -0
  155. package/out/concepts/StringInterpolation__.js +227 -0
  156. package/out/concepts/StringInterpolation__.js.map +1 -0
  157. package/out/concepts/StringLiteral__.js +0 -7
  158. package/out/concepts/StringLiteral__.js.map +1 -1
  159. package/out/concepts/StructureProperty__.js.map +1 -1
  160. package/out/concepts/Structure__.js.map +1 -1
  161. package/out/concepts/Transactional__.d.ts +5 -0
  162. package/out/concepts/Transactional__.js +6 -0
  163. package/out/concepts/Transactional__.js.map +1 -1
  164. package/out/concepts/TypeAnnotation__.d.ts +4 -0
  165. package/out/concepts/TypeAnnotation__.js +67 -15
  166. package/out/concepts/TypeAnnotation__.js.map +1 -1
  167. package/out/concepts/TypeParam__.d.ts +1 -0
  168. package/out/concepts/TypeParam__.js +2 -0
  169. package/out/concepts/TypeParam__.js.map +1 -1
  170. package/out/concepts/UnaryExpression__.js +6 -9
  171. package/out/concepts/UnaryExpression__.js.map +1 -1
  172. package/out/concepts/ValidationRule__.js +87 -22
  173. package/out/concepts/ValidationRule__.js.map +1 -1
  174. package/out/concepts/Variable__.d.ts +5 -0
  175. package/out/concepts/Variable__.js +46 -3
  176. package/out/concepts/Variable__.js.map +1 -1
  177. package/out/concepts/ViewComponent__.js.map +1 -1
  178. package/out/concepts/ViewElement__.d.ts +35 -29
  179. package/out/concepts/ViewElement__.js +138 -54
  180. package/out/concepts/ViewElement__.js.map +1 -1
  181. package/out/concepts/View__.d.ts +10 -3
  182. package/out/concepts/View__.js +116 -86
  183. package/out/concepts/View__.js.map +1 -1
  184. package/out/concepts/WhileStatement__.js +1 -1
  185. package/out/concepts/WhileStatement__.js.map +1 -1
  186. package/out/concepts/basics/stdlib/nasl.auth.js +1 -1
  187. package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
  188. package/out/concepts/basics/stdlib/nasl.browser.js +50 -0
  189. package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
  190. package/out/concepts/basics/stdlib/nasl.logging.js +5 -0
  191. package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -1
  192. package/out/concepts/basics/stdlib/nasl.ui.js +38 -4
  193. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
  194. package/out/concepts/basics/stdlib/nasl.util.js +214 -62
  195. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  196. package/out/concepts/index__.d.ts +9 -0
  197. package/out/concepts/index__.js +9 -0
  198. package/out/concepts/index__.js.map +1 -1
  199. package/out/enums/KEYWORDS.d.ts +1 -0
  200. package/out/enums/KEYWORDS.js +9 -1
  201. package/out/enums/KEYWORDS.js.map +1 -1
  202. package/out/generator/genBundleFiles.d.ts +10 -4
  203. package/out/generator/genBundleFiles.js +127 -162
  204. package/out/generator/genBundleFiles.js.map +1 -1
  205. package/out/generator/genMetaData.d.ts +2 -11
  206. package/out/generator/genMetaData.js +185 -51
  207. package/out/generator/genMetaData.js.map +1 -1
  208. package/out/generator/genReleaseBody.d.ts +57 -0
  209. package/out/generator/genReleaseBody.js +380 -0
  210. package/out/generator/genReleaseBody.js.map +1 -0
  211. package/out/generator/index.d.ts +2 -0
  212. package/out/generator/index.js +2 -0
  213. package/out/generator/index.js.map +1 -1
  214. package/out/generator/permission.d.ts +17 -0
  215. package/out/generator/permission.js +221 -0
  216. package/out/generator/permission.js.map +1 -0
  217. package/out/index.d.ts +3 -2
  218. package/out/index.js +7 -1
  219. package/out/index.js.map +1 -1
  220. package/out/server/entity2LogicNamespace.js +100 -20
  221. package/out/server/entity2LogicNamespace.js.map +1 -1
  222. package/out/server/extendBaseNode.js +33 -20
  223. package/out/server/extendBaseNode.js.map +1 -1
  224. package/out/server/formatTsUtils.d.ts +1 -2
  225. package/out/server/formatTsUtils.js +46 -64
  226. package/out/server/formatTsUtils.js.map +1 -1
  227. package/out/server/getLogics.d.ts +2 -1
  228. package/out/server/getLogics.js +24 -6
  229. package/out/server/getLogics.js.map +1 -1
  230. package/out/server/getMemberIdentifier.js +11 -11
  231. package/out/server/getMemberIdentifier.js.map +1 -1
  232. package/out/server/getProcesses.d.ts +1 -1
  233. package/out/server/getProcesses.js +1 -1
  234. package/out/server/getProcesses.js.map +1 -1
  235. package/out/server/index.d.ts +0 -1
  236. package/out/server/index.js +2 -27
  237. package/out/server/index.js.map +1 -1
  238. package/out/server/naslServer.d.ts +50 -8
  239. package/out/server/naslServer.js +816 -429
  240. package/out/server/naslServer.js.map +1 -1
  241. package/out/server/naslStdlibMap.js +30 -28
  242. package/out/server/naslStdlibMap.js.map +1 -1
  243. package/out/server/process2LogicNamespace.js +8 -0
  244. package/out/server/process2LogicNamespace.js.map +1 -1
  245. package/out/server/translator.js +90 -12
  246. package/out/server/translator.js.map +1 -1
  247. package/out/service/creator/add.configs.js +4 -0
  248. package/out/service/creator/add.configs.js.map +1 -1
  249. package/out/service/datasource/api.d.ts +12 -0
  250. package/out/service/datasource/api.js +14 -0
  251. package/out/service/datasource/api.js.map +1 -0
  252. package/out/service/datasource/index.d.ts +2 -0
  253. package/out/service/datasource/index.js +10 -0
  254. package/out/service/datasource/index.js.map +1 -0
  255. package/out/service/defaultErrorMessage.json +97 -0
  256. package/out/service/logic/api.d.ts +9 -0
  257. package/out/service/logic/api.js +11 -0
  258. package/out/service/logic/api.js.map +1 -0
  259. package/out/service/logic/index.d.ts +2 -0
  260. package/out/service/logic/index.js +10 -0
  261. package/out/service/logic/index.js.map +1 -0
  262. package/out/service/storage/init.js +48 -7
  263. package/out/service/storage/init.js.map +1 -1
  264. package/out/templator/genCreateBlock.js +6 -4
  265. package/out/templator/genCreateBlock.js.map +1 -1
  266. package/out/templator/genCurdEditMultipleKeyBlock.js +7 -4
  267. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  268. package/out/templator/genCurdMultipleKeyBlock.js +7 -5
  269. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  270. package/out/templator/genEditTableBlock.js +4 -5
  271. package/out/templator/genEditTableBlock.js.map +1 -1
  272. package/out/templator/genEnumSelectBlock.js +5 -2
  273. package/out/templator/genEnumSelectBlock.js.map +1 -1
  274. package/out/templator/genGetBlock.js +4 -3
  275. package/out/templator/genGetBlock.js.map +1 -1
  276. package/out/templator/genGridViewBlock.js +18 -16
  277. package/out/templator/genGridViewBlock.js.map +1 -1
  278. package/out/templator/genListViewBlock.js +7 -7
  279. package/out/templator/genListViewBlock.js.map +1 -1
  280. package/out/templator/genQueryComponent.d.ts +2 -2
  281. package/out/templator/genQueryComponent.js +4 -1
  282. package/out/templator/genQueryComponent.js.map +1 -1
  283. package/out/templator/genTableBlock.js +8 -12
  284. package/out/templator/genTableBlock.js.map +1 -1
  285. package/out/templator/genUpdateBlock.js +4 -3
  286. package/out/templator/genUpdateBlock.js.map +1 -1
  287. package/out/templator/utils.js +1 -1
  288. package/out/templator/utils.js.map +1 -1
  289. package/out/test/integration/node-nasl-server.js +10 -38
  290. package/out/test/integration/node-nasl-server.js.map +1 -1
  291. package/out/translator/index.d.ts +1 -0
  292. package/out/translator/index.js +1 -1
  293. package/out/translator/index.js.map +1 -1
  294. package/out/utils/index.d.ts +1 -0
  295. package/out/utils/index.js +38 -1
  296. package/out/utils/index.js.map +1 -1
  297. package/out/utils/string.d.ts +15 -2
  298. package/out/utils/string.js +18 -3
  299. package/out/utils/string.js.map +1 -1
  300. package/package.json +1 -1
  301. package/src/concepts/App__.ts +11 -36
  302. package/src/concepts/Frontend__.ts +8 -0
  303. package/src/concepts/ViewElement__.ts +7 -28
  304. package/src/concepts/View__.ts +1 -1
  305. package/src/generator/permission.ts +1 -1
  306. package/src/server/getLogics.ts +2 -2
  307. package/src/server/naslServer.ts +8 -8
  308. package/src/service/storage/init.ts +3 -4
@@ -3,6 +3,15 @@ export interface AssetsInfo {
3
3
  css: Array<string>;
4
4
  names?: Array<string>;
5
5
  }
6
+ import TypeAnnotation from './TypeAnnotation__';
7
+ interface MessageData {
8
+ logicName: string;
9
+ param?: string;
10
+ interfaceName?: string;
11
+ message: string;
12
+ type: number;
13
+ resultName?: string;
14
+ }
6
15
  import { EventPayload, Params } from '../common/EventEmitter';
7
16
  import BaseNode from '../common/BaseNode';
8
17
  import DataSource from './DataSource__';
@@ -10,11 +19,9 @@ import Structure from './Structure__';
10
19
  import Enum from './Enum__';
11
20
  import Logic from './Logic__';
12
21
  import Interface from './Interface__';
13
- import View from './View__';
14
- import Variable from './Variable__';
22
+ import Frontend from './Frontend__';
15
23
  import Process from './Process__';
16
24
  import Role from './Role__';
17
- import Theme from './Theme__';
18
25
  import Configuration from './Configuration__';
19
26
  import Module from './Module__';
20
27
  /**
@@ -53,18 +60,6 @@ export declare class App extends BaseNode {
53
60
  * 域名
54
61
  */
55
62
  dnsAddr: string;
56
- /**
57
- * PC/H5 端
58
- */
59
- scope: 'pc' | 'h5';
60
- /**
61
- * 制品应用标题
62
- */
63
- documentTitle: string;
64
- /**
65
- * 制品应用图标
66
- */
67
- documentIcon: string;
68
63
  /**
69
64
  * 是否有用户中心
70
65
  */
@@ -94,13 +89,9 @@ export declare class App extends BaseNode {
94
89
  */
95
90
  interfaces: Array<Interface>;
96
91
  /**
97
- * 页面列表
98
- */
99
- views: Array<View>;
100
- /**
101
- * 变量列表
92
+ * 端列表
102
93
  */
103
- frontendVariables: Array<Variable>;
94
+ frontends: Array<Frontend>;
104
95
  /**
105
96
  * 流程列表
106
97
  */
@@ -109,10 +100,6 @@ export declare class App extends BaseNode {
109
100
  * 角色列表
110
101
  */
111
102
  roles: Array<Role>;
112
- /**
113
- * 主题配置
114
- */
115
- theme: Theme;
116
103
  /**
117
104
  * 配置管理
118
105
  */
@@ -125,10 +112,6 @@ export declare class App extends BaseNode {
125
112
  * 接口应用列表(兼容老版)
126
113
  */
127
114
  interfaceDependencies: Array<Module>;
128
- /**
129
- * 扩展组件列表(兼容老版)
130
- */
131
- componentDependencies: Array<Module>;
132
115
  /**
133
116
  * @param source 需要合并的部分参数
134
117
  */
@@ -139,14 +122,6 @@ export declare class App extends BaseNode {
139
122
  * @internal
140
123
  */
141
124
  _delete(): Params;
142
- /**
143
- * 设置制品应用标题
144
- */
145
- setDocumentTitle(documentTitle: string): void;
146
- /**
147
- * 设置制品应用图标
148
- */
149
- setDocumentIcon(documentIcon: string): void;
150
125
  getDataSourceUniqueName(name?: string): string;
151
126
  /**
152
127
  * 插入数据源
@@ -491,144 +466,75 @@ export declare class App extends BaseNode {
491
466
  * @param itface 已有的接口实例
492
467
  */
493
468
  addInterface(itface: Interface): Interface;
494
- getViewExistingNames(excludedList?: Array<View>): string[];
495
- getViewUniqueName(name?: string): string;
469
+ getFrontendExistingNames(excludedList?: Array<Frontend>): string[];
470
+ getFrontendUniqueName(name?: string): string;
496
471
  /**
497
- * 插入页面
472
+ * 插入端
498
473
  * @internal
499
- * @param name 页面名称,如果不填会自动生成一个唯一名称
474
+ * @param name 端名称,如果不填会自动生成一个唯一名称
500
475
  */
501
- _insertViewAt(name: string, index: number): View;
476
+ _insertFrontendAt(name: string, index: number): Frontend;
502
477
  /**
503
- * 插入页面
478
+ * 插入端
504
479
  * @internal
505
- * @param viewOptions 页面参数
480
+ * @param frontendOptions 端参数
506
481
  */
507
- _insertViewAt(viewOptions: Partial<View>, index: number): View;
482
+ _insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
508
483
  /**
509
- * 插入页面
484
+ * 插入端
510
485
  * @internal
511
- * @param view 已有的页面实例
486
+ * @param frontend 已有的端实例
512
487
  */
513
- _insertViewAt(view: View, index: number): View;
488
+ _insertFrontendAt(frontend: Frontend, index: number): Frontend;
514
489
  /**
515
- * 插入页面
516
- * @param name 页面名称,如果不填会自动生成一个唯一名称
490
+ * 插入端
491
+ * @param name 端名称,如果不填会自动生成一个唯一名称
517
492
  */
518
- insertViewAt(name: string, index: number): View;
493
+ insertFrontendAt(name: string, index: number): Frontend;
519
494
  /**
520
- * 插入页面
521
- * @param viewOptions 页面参数
495
+ * 插入端
496
+ * @param frontendOptions 端参数
522
497
  */
523
- insertViewAt(viewOptions: Partial<View>, index: number): View;
498
+ insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
524
499
  /**
525
- * 插入页面
526
- * @param view 已有的页面实例
500
+ * 插入端
501
+ * @param frontend 已有的端实例
527
502
  */
528
- insertViewAt(view: View, index: number): View;
503
+ insertFrontendAt(frontend: Frontend, index: number): Frontend;
529
504
  /**
530
- * 添加页面
505
+ * 添加端
531
506
  * @internal
532
- * @param name 页面名称,如果不填会自动生成一个唯一名称
507
+ * @param name 端名称,如果不填会自动生成一个唯一名称
533
508
  */
534
- _addView(name?: string): View;
509
+ _addFrontend(name?: string): Frontend;
535
510
  /**
536
- * 添加页面
511
+ * 添加端
537
512
  * @internal
538
- * @param viewOptions 页面参数
513
+ * @param frontendOptions 端参数
539
514
  */
540
- _addView(viewOptions: Partial<View>): View;
515
+ _addFrontend(frontendOptions: Partial<Frontend>): Frontend;
541
516
  /**
542
- * 添加页面
517
+ * 添加端
543
518
  * @internal
544
- * @param view 已有的页面实例
519
+ * @param frontend 已有的端实例
545
520
  */
546
- _addView(view: View): View;
521
+ _addFrontend(frontend: Frontend): Frontend;
547
522
  /**
548
- * 添加页面
523
+ * 添加端
549
524
  * @internal
550
- * @param name 页面名称,如果不填会自动生成一个唯一名称
525
+ * @param name 端名称,如果不填会自动生成一个唯一名称
551
526
  */
552
- addView(name?: string): View;
527
+ addFrontend(name?: string): Frontend;
553
528
  /**
554
- * 添加页面
555
- * @param viewOptions 页面参数
529
+ * 添加端
530
+ * @param frontendOptions 端参数
556
531
  */
557
- addView(viewOptions: Partial<View>): View;
532
+ addFrontend(frontendOptions: Partial<Frontend>): Frontend;
558
533
  /**
559
- * 添加页面
560
- * @param view 已有的页面实例
534
+ * 添加端
535
+ * @param frontend 已有的端实例
561
536
  */
562
- addView(view: View): View;
563
- getVarExistingNames(excludedList?: Array<Variable>): string[];
564
- getVariableUniqueName(name?: string): string;
565
- /**
566
- * 插入变量
567
- * @internal
568
- * @param name 变量名称,如果不填会自动生成一个唯一名称
569
- */
570
- _insertVariableAt(name: string, index: number): Variable;
571
- /**
572
- * 插入变量
573
- * @internal
574
- * @param variableOptions 变量参数
575
- */
576
- _insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
577
- /**
578
- * 插入变量
579
- * @internal
580
- * @param variable 已有的变量实例
581
- */
582
- _insertVariableAt(variable: Variable, index: number): Variable;
583
- /**
584
- * 插入变量
585
- * @param name 变量名称,如果不填会自动生成一个唯一名称
586
- */
587
- insertVariableAt(name: string, index: number): Variable;
588
- /**
589
- * 插入变量
590
- * @param variableOptions 变量参数
591
- */
592
- insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
593
- /**
594
- * 插入变量
595
- * @param variable 已有的变量实例
596
- */
597
- insertVariableAt(variable: Variable, index: number): Variable;
598
- /**
599
- * 添加变量
600
- * @internal
601
- * @param name 变量名称,如果不填会自动生成一个唯一名称
602
- */
603
- _addVariable(name?: string): Variable;
604
- /**
605
- * 添加变量
606
- * @internal
607
- * @param variableOptions 变量参数
608
- */
609
- _addVariable(variableOptions: Partial<Variable>): Variable;
610
- /**
611
- * 添加变量
612
- * @internal
613
- * @param variable 已有的变量实例
614
- */
615
- _addVariable(variable: Variable): Variable;
616
- /**
617
- * 添加变量
618
- * @internal
619
- * @param name 变量名称,如果不填会自动生成一个唯一名称
620
- */
621
- addVariable(name?: string): Variable;
622
- /**
623
- * 添加变量
624
- * @param variableOptions 变量参数
625
- */
626
- addVariable(variableOptions: Partial<Variable>): Variable;
627
- /**
628
- * 添加变量
629
- * @param variable 已有的变量实例
630
- */
631
- addVariable(variable: Variable): Variable;
537
+ addFrontend(frontend: Frontend): Frontend;
632
538
  getProcessExistingNames(excludedList?: Array<Process>): string[];
633
539
  getProcessUniqueName(name?: string): string;
634
540
  /**
@@ -904,73 +810,6 @@ export declare class App extends BaseNode {
904
810
  */
905
811
  addModuleInInterfaceDependencies(module: Module): Module;
906
812
  /**
907
- * 插入模块
908
- * @internal
909
- * @param name 模块名称,如果不填会自动生成一个唯一名称
910
- */
911
- _insertModuleInComponentDependenciesAt(name: string, index: number): Module;
912
- /**
913
- * 插入模块
914
- * @internal
915
- * @param moduleOptions 模块参数
916
- */
917
- _insertModuleInComponentDependenciesAt(moduleOptions: Partial<Module>, index: number): Module;
918
- /**
919
- * 插入模块
920
- * @internal
921
- * @param module 已有的模块实例
922
- */
923
- _insertModuleInComponentDependenciesAt(module: Module, index: number): Module;
924
- /**
925
- * 插入模块
926
- * @param name 模块名称,如果不填会自动生成一个唯一名称
927
- */
928
- insertModuleInComponentDependenciesAt(name: string, index: number): Module;
929
- /**
930
- * 插入模块
931
- * @param moduleOptions 模块参数
932
- */
933
- insertModuleInComponentDependenciesAt(moduleOptions: Partial<Module>, index: number): Module;
934
- /**
935
- * 插入模块
936
- * @param module 已有的模块实例
937
- */
938
- insertModuleInComponentDependenciesAt(module: Module, index: number): Module;
939
- /**
940
- * 添加模块
941
- * @internal
942
- * @param name 模块名称,如果不填会自动生成一个唯一名称
943
- */
944
- _addModuleInComponentDependencies(name?: string): Module;
945
- /**
946
- * 添加模块
947
- * @internal
948
- * @param moduleOptions 模块参数
949
- */
950
- _addModuleInComponentDependencies(moduleOptions: Partial<Module>): Module;
951
- /**
952
- * 添加模块
953
- * @internal
954
- * @param module 已有的模块实例
955
- */
956
- _addModuleInComponentDependencies(module: Module): Module;
957
- /**
958
- * 添加模块
959
- * @internal
960
- * @param name 模块名称,如果不填会自动生成一个唯一名称
961
- */
962
- addModuleInComponentDependencies(name?: string): Module;
963
- /**
964
- * 添加模块
965
- * @param moduleOptions 模块参数
966
- */
967
- addModuleInComponentDependencies(moduleOptions: Partial<Module>): Module;
968
- /**
969
- * 添加模块
970
- * @param module 已有的模块实例
971
- */
972
- addModuleInComponentDependencies(module: Module): Module;
973
- /**
974
813
  * 删除数据源
975
814
  * @param name 数据源名称
976
815
  */
@@ -1026,27 +865,16 @@ export declare class App extends BaseNode {
1026
865
  removeInterface(itface: Interface): void;
1027
866
  __removeInterface(itface: Interface): Params;
1028
867
  /**
1029
- * 删除页面
1030
- * @param name 页面名称
868
+ * 删除端
869
+ * @param name 端名称
1031
870
  */
1032
- removeView(name: string): void;
871
+ removeFrontend(name: string): void;
1033
872
  /**
1034
- * 删除页面
1035
- * @param view 已有的页面实例
873
+ * 删除端
874
+ * @param frontend 已有的端实例
1036
875
  */
1037
- removeView(view: View): void;
1038
- __removeView(view: View): Params;
1039
- /**
1040
- * 删除变量
1041
- * @param name 变量名称
1042
- */
1043
- removeVariable(name: string): void;
1044
- /**
1045
- * 删除变量
1046
- * @param variable 已有的变量实例
1047
- */
1048
- removeVariable(variable: Variable): void;
1049
- __removeVariable(variable: Variable): Params;
876
+ removeFrontend(frontend: Frontend): void;
877
+ __removeFrontend(frontend: Frontend): Params;
1050
878
  /**
1051
879
  * 删除流程
1052
880
  * @param name 流程名称
@@ -1070,17 +898,6 @@ export declare class App extends BaseNode {
1070
898
  removeRole(role: Role): void;
1071
899
  __removeRole(role: Role): Params;
1072
900
  /**
1073
- * 删除主题
1074
- * @param name 主题名称
1075
- */
1076
- removeTheme(name: string): void;
1077
- /**
1078
- * 删除主题
1079
- * @param theme 已有的主题实例
1080
- */
1081
- removeTheme(theme: Theme): void;
1082
- __removeTheme(theme: Theme): Params;
1083
- /**
1084
901
  * 删除配置管理
1085
902
  * @param name 配置管理名称
1086
903
  */
@@ -1111,18 +928,7 @@ export declare class App extends BaseNode {
1111
928
  * @param module 已有的模块实例
1112
929
  */
1113
930
  removeModuleInInterfaceDependencies(module: Module): void;
1114
- /**
1115
- * 删除模块
1116
- * @param name 模块名称
1117
- */
1118
- removeModuleInComponentDependencies(name: string): void;
1119
- /**
1120
- * 删除模块
1121
- * @param module 已有的模块实例
1122
- */
1123
- removeModuleInComponentDependencies(module: Module): void;
1124
931
  __removeModule(module: Module): Params;
1125
- findComponentDependencyByName(name: string): Module;
1126
932
  findDataSourceByName(name: string): DataSource;
1127
933
  get defaultDS(): DataSource;
1128
934
  findEnumByName(name: string): Enum;
@@ -1164,6 +970,10 @@ export declare class App extends BaseNode {
1164
970
  * 从模板创建的模板 Id
1165
971
  */
1166
972
  templateId: number;
973
+ /**
974
+ * 全局设置
975
+ */
976
+ preferenceMap: Record<string, string>;
1167
977
  /**
1168
978
  * 获取命名空间
1169
979
  */
@@ -1171,34 +981,43 @@ export declare class App extends BaseNode {
1171
981
  getTsNamespace(): string;
1172
982
  findNodeByPath(nodePath: string): any;
1173
983
  findNodeByCompleteName(completeName: string): any;
1174
- /**
1175
- * @param path 路径
1176
- * path 为要查找路径:如 /dashboard/student/list、/dashboard/student/list
1177
- */
1178
- findViewByPath(path: string): View;
1179
- findViewByName(name: string): View;
1180
984
  loadEnvList(): void;
1181
- packageInfo: {
985
+ loadPackageInfo(scope: string): {
1182
986
  template: {
1183
987
  name: string;
1184
988
  version: string;
989
+ scope: string;
1185
990
  };
1186
991
  ui: {
1187
992
  name: string;
1188
993
  version: string;
994
+ scope: string;
1189
995
  };
996
+ scope: string;
1190
997
  };
1191
- loadPackageInfo(): void;
998
+ packageInfos: Array<{
999
+ template: {
1000
+ name: string;
1001
+ version: string;
1002
+ scope: string;
1003
+ };
1004
+ ui: {
1005
+ name: string;
1006
+ version: string;
1007
+ scope: string;
1008
+ };
1009
+ scope: string;
1010
+ }>;
1011
+ loadPackageInfos(): void;
1192
1012
  /**
1193
1013
  * 根据 packageInfo 的信息生成用于 load 的 assetsInfo
1194
1014
  * 在环境中需要 basic 和 custom 分开 load,否则容易报错
1195
1015
  * @param prefix
1196
1016
  */
1197
- genAllAssetsInfo(prefix: string): {
1017
+ genAllAssetsInfo(prefix: string, scope: string): {
1198
1018
  basic: AssetsInfo;
1199
1019
  custom?: AssetsInfo;
1200
1020
  };
1201
- genThemeCSS(): string;
1202
1021
  onChange($event?: EventPayload): void;
1203
1022
  addModuleInDependenciesWithDataSource(options?: string | Partial<Module> | Module): void;
1204
1023
  statistics(): {
@@ -1213,5 +1032,14 @@ export declare class App extends BaseNode {
1213
1032
  * 需要包含依赖库里的dataSources,不自动生成
1214
1033
  */
1215
1034
  getDataSourceExistingNames(excludedList?: Array<DataSource>): string[];
1035
+ /**
1036
+ * 更新全局设置 preferenceMap
1037
+ */
1038
+ updatePreferenceMap(preferences?: Record<string, string>): void;
1039
+ getSelectRef(newTypeAnnotation: TypeAnnotation): any;
1040
+ getQualifiedInterface(interfaces?: Interface[]): MessageData[];
1041
+ addFrontendForType(options?: string | Partial<Frontend> | Frontend): Frontend;
1042
+ getFrontendExistingTitles(excludedList?: Array<Frontend>): string[];
1043
+ getExtensionsCallbackLogics(): string[];
1216
1044
  }
1217
1045
  export default App;