@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.
- package/out/automate/engine/index.d.ts +1 -1
- package/out/automate/engine/index.js +7 -7
- package/out/automate/engine/index.js.map +1 -1
- package/out/automate/engine/uniqueName.d.ts +1 -1
- package/out/automate/engine/uniqueName.js +3 -3
- package/out/automate/engine/uniqueName.js.map +1 -1
- package/out/automate/template/myProcess.js +1 -1
- package/out/automate/template/myProcess.js.map +1 -1
- package/out/bak/translator.js +38 -85
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.d.ts +10 -6
- package/out/common/BaseNode.js +53 -7
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +1 -0
- package/out/concepts/AnonymousFunction__.js +40 -2
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +89 -261
- package/out/concepts/App__.js +315 -367
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +5 -5
- package/out/concepts/AssignmentLine__.js +6 -6
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js +1 -2
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +62 -60
- package/out/concepts/BatchAssignment__.js +113 -42
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +24 -0
- package/out/concepts/BindAttribute__.js +54 -4
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +5 -0
- package/out/concepts/BindDirective__.js +6 -0
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +5 -0
- package/out/concepts/BindEvent__.js +6 -0
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +7 -2
- package/out/concepts/BindStyle__.js +9 -3
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js +0 -8
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallFunction__.js +90 -38
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +7 -0
- package/out/concepts/CallInterface__.js +54 -7
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +2 -1
- package/out/concepts/CallLogic__.js +171 -37
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js +16 -1
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +3 -0
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +5 -0
- package/out/concepts/Constant__.js +6 -0
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +8 -0
- package/out/concepts/DataSource__.js +96 -1
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +11 -2
- package/out/concepts/Destination__.js +156 -51
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +21 -8
- package/out/concepts/EntityProperty__.js +109 -23
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +32 -0
- package/out/concepts/Entity__.js +117 -2
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Enum__.js +0 -4
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +73 -0
- package/out/concepts/ExternalDestination__.js +264 -0
- package/out/concepts/ExternalDestination__.js.map +1 -0
- package/out/concepts/ForEachStatement__.d.ts +0 -4
- package/out/concepts/ForEachStatement__.js +4 -8
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +370 -0
- package/out/concepts/Frontend__.js +669 -0
- package/out/concepts/Frontend__.js.map +1 -0
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +1 -0
- package/out/concepts/Identifier__.js +33 -10
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +8 -0
- package/out/concepts/IfStatement__.js +22 -0
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +6 -1
- package/out/concepts/LogicItem__.js +6 -0
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +91 -80
- package/out/concepts/Logic__.js +178 -59
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +1 -1
- package/out/concepts/MatchCase__.js +15 -8
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +21 -19
- package/out/concepts/Match__.js +118 -26
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +4 -1
- package/out/concepts/MemberExpression__.js +30 -15
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +345 -0
- package/out/concepts/NewComposite__.js +1068 -0
- package/out/concepts/NewComposite__.js.map +1 -0
- package/out/concepts/NewList__.d.ts +130 -0
- package/out/concepts/NewList__.js +349 -0
- package/out/concepts/NewList__.js.map +1 -0
- package/out/concepts/NewMap__.d.ts +221 -0
- package/out/concepts/NewMap__.js +480 -0
- package/out/concepts/NewMap__.js.map +1 -0
- package/out/concepts/New__.d.ts +19 -0
- package/out/concepts/New__.js +66 -0
- package/out/concepts/New__.js.map +1 -0
- package/out/concepts/NumericLiteral__.js +1 -1
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +7 -3
- package/out/concepts/OqlQueryComponent__.js +56 -95
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.d.ts +8 -1
- package/out/concepts/Param__.js +85 -6
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +42 -13
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +30 -0
- package/out/concepts/ProcessOutcomes__.js +87 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -0
- package/out/concepts/Process__.d.ts +4 -20
- package/out/concepts/Process__.js +0 -7
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +3 -3
- package/out/concepts/QueryOrderByExpression__.js +3 -3
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Return__.d.ts +5 -0
- package/out/concepts/Return__.js +45 -2
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +1 -1
- package/out/concepts/SelectMembers__.js +5 -5
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +2 -4
- package/out/concepts/SqlQueryComponent__.js +9 -88
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +113 -0
- package/out/concepts/StringInterpolation__.js +227 -0
- package/out/concepts/StringInterpolation__.js.map +1 -0
- package/out/concepts/StringLiteral__.js +0 -7
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +5 -0
- package/out/concepts/Transactional__.js +6 -0
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +4 -0
- package/out/concepts/TypeAnnotation__.js +67 -15
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +1 -0
- package/out/concepts/TypeParam__.js +2 -0
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +6 -9
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +87 -22
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +5 -0
- package/out/concepts/Variable__.js +46 -3
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +35 -29
- package/out/concepts/ViewElement__.js +138 -54
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +10 -3
- package/out/concepts/View__.js +116 -86
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.js +1 -1
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.auth.js +1 -1
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.browser.js +50 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.logging.js +5 -0
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +38 -4
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +214 -62
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/index__.d.ts +9 -0
- package/out/concepts/index__.js +9 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/enums/KEYWORDS.d.ts +1 -0
- package/out/enums/KEYWORDS.js +9 -1
- package/out/enums/KEYWORDS.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +10 -4
- package/out/generator/genBundleFiles.js +127 -162
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.d.ts +2 -11
- package/out/generator/genMetaData.js +185 -51
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/genReleaseBody.d.ts +57 -0
- package/out/generator/genReleaseBody.js +380 -0
- package/out/generator/genReleaseBody.js.map +1 -0
- package/out/generator/index.d.ts +2 -0
- package/out/generator/index.js +2 -0
- package/out/generator/index.js.map +1 -1
- package/out/generator/permission.d.ts +17 -0
- package/out/generator/permission.js +221 -0
- package/out/generator/permission.js.map +1 -0
- package/out/index.d.ts +3 -2
- package/out/index.js +7 -1
- package/out/index.js.map +1 -1
- package/out/server/entity2LogicNamespace.js +100 -20
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/extendBaseNode.js +33 -20
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +1 -2
- package/out/server/formatTsUtils.js +46 -64
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getLogics.d.ts +2 -1
- package/out/server/getLogics.js +24 -6
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +11 -11
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcesses.d.ts +1 -1
- package/out/server/getProcesses.js +1 -1
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/index.d.ts +0 -1
- package/out/server/index.js +2 -27
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +50 -8
- package/out/server/naslServer.js +816 -429
- package/out/server/naslServer.js.map +1 -1
- package/out/server/naslStdlibMap.js +30 -28
- package/out/server/naslStdlibMap.js.map +1 -1
- package/out/server/process2LogicNamespace.js +8 -0
- package/out/server/process2LogicNamespace.js.map +1 -1
- package/out/server/translator.js +90 -12
- package/out/server/translator.js.map +1 -1
- package/out/service/creator/add.configs.js +4 -0
- package/out/service/creator/add.configs.js.map +1 -1
- package/out/service/datasource/api.d.ts +12 -0
- package/out/service/datasource/api.js +14 -0
- package/out/service/datasource/api.js.map +1 -0
- package/out/service/datasource/index.d.ts +2 -0
- package/out/service/datasource/index.js +10 -0
- package/out/service/datasource/index.js.map +1 -0
- package/out/service/defaultErrorMessage.json +97 -0
- package/out/service/logic/api.d.ts +9 -0
- package/out/service/logic/api.js +11 -0
- package/out/service/logic/api.js.map +1 -0
- package/out/service/logic/index.d.ts +2 -0
- package/out/service/logic/index.js +10 -0
- package/out/service/logic/index.js.map +1 -0
- package/out/service/storage/init.js +48 -7
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +6 -4
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +7 -4
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +7 -5
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +4 -5
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genEnumSelectBlock.js +5 -2
- package/out/templator/genEnumSelectBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +4 -3
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +18 -16
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +7 -7
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genQueryComponent.d.ts +2 -2
- package/out/templator/genQueryComponent.js +4 -1
- package/out/templator/genQueryComponent.js.map +1 -1
- package/out/templator/genTableBlock.js +8 -12
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +4 -3
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.js +1 -1
- package/out/templator/utils.js.map +1 -1
- package/out/test/integration/node-nasl-server.js +10 -38
- package/out/test/integration/node-nasl-server.js.map +1 -1
- package/out/translator/index.d.ts +1 -0
- package/out/translator/index.js +1 -1
- package/out/translator/index.js.map +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.js +38 -1
- package/out/utils/index.js.map +1 -1
- package/out/utils/string.d.ts +15 -2
- package/out/utils/string.js +18 -3
- package/out/utils/string.js.map +1 -1
- package/package.json +1 -1
- package/src/concepts/App__.ts +11 -36
- package/src/concepts/Frontend__.ts +8 -0
- package/src/concepts/ViewElement__.ts +7 -28
- package/src/concepts/View__.ts +1 -1
- package/src/generator/permission.ts +1 -1
- package/src/server/getLogics.ts +2 -2
- package/src/server/naslServer.ts +8 -8
- package/src/service/storage/init.ts +3 -4
package/out/concepts/App__.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
495
|
-
|
|
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
|
-
|
|
476
|
+
_insertFrontendAt(name: string, index: number): Frontend;
|
|
502
477
|
/**
|
|
503
|
-
*
|
|
478
|
+
* 插入端
|
|
504
479
|
* @internal
|
|
505
|
-
* @param
|
|
480
|
+
* @param frontendOptions 端参数
|
|
506
481
|
*/
|
|
507
|
-
|
|
482
|
+
_insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
|
|
508
483
|
/**
|
|
509
|
-
*
|
|
484
|
+
* 插入端
|
|
510
485
|
* @internal
|
|
511
|
-
* @param
|
|
486
|
+
* @param frontend 已有的端实例
|
|
512
487
|
*/
|
|
513
|
-
|
|
488
|
+
_insertFrontendAt(frontend: Frontend, index: number): Frontend;
|
|
514
489
|
/**
|
|
515
|
-
*
|
|
516
|
-
* @param name
|
|
490
|
+
* 插入端
|
|
491
|
+
* @param name 端名称,如果不填会自动生成一个唯一名称
|
|
517
492
|
*/
|
|
518
|
-
|
|
493
|
+
insertFrontendAt(name: string, index: number): Frontend;
|
|
519
494
|
/**
|
|
520
|
-
*
|
|
521
|
-
* @param
|
|
495
|
+
* 插入端
|
|
496
|
+
* @param frontendOptions 端参数
|
|
522
497
|
*/
|
|
523
|
-
|
|
498
|
+
insertFrontendAt(frontendOptions: Partial<Frontend>, index: number): Frontend;
|
|
524
499
|
/**
|
|
525
|
-
*
|
|
526
|
-
* @param
|
|
500
|
+
* 插入端
|
|
501
|
+
* @param frontend 已有的端实例
|
|
527
502
|
*/
|
|
528
|
-
|
|
503
|
+
insertFrontendAt(frontend: Frontend, index: number): Frontend;
|
|
529
504
|
/**
|
|
530
|
-
*
|
|
505
|
+
* 添加端
|
|
531
506
|
* @internal
|
|
532
|
-
* @param name
|
|
507
|
+
* @param name 端名称,如果不填会自动生成一个唯一名称
|
|
533
508
|
*/
|
|
534
|
-
|
|
509
|
+
_addFrontend(name?: string): Frontend;
|
|
535
510
|
/**
|
|
536
|
-
*
|
|
511
|
+
* 添加端
|
|
537
512
|
* @internal
|
|
538
|
-
* @param
|
|
513
|
+
* @param frontendOptions 端参数
|
|
539
514
|
*/
|
|
540
|
-
|
|
515
|
+
_addFrontend(frontendOptions: Partial<Frontend>): Frontend;
|
|
541
516
|
/**
|
|
542
|
-
*
|
|
517
|
+
* 添加端
|
|
543
518
|
* @internal
|
|
544
|
-
* @param
|
|
519
|
+
* @param frontend 已有的端实例
|
|
545
520
|
*/
|
|
546
|
-
|
|
521
|
+
_addFrontend(frontend: Frontend): Frontend;
|
|
547
522
|
/**
|
|
548
|
-
*
|
|
523
|
+
* 添加端
|
|
549
524
|
* @internal
|
|
550
|
-
* @param name
|
|
525
|
+
* @param name 端名称,如果不填会自动生成一个唯一名称
|
|
551
526
|
*/
|
|
552
|
-
|
|
527
|
+
addFrontend(name?: string): Frontend;
|
|
553
528
|
/**
|
|
554
|
-
*
|
|
555
|
-
* @param
|
|
529
|
+
* 添加端
|
|
530
|
+
* @param frontendOptions 端参数
|
|
556
531
|
*/
|
|
557
|
-
|
|
532
|
+
addFrontend(frontendOptions: Partial<Frontend>): Frontend;
|
|
558
533
|
/**
|
|
559
|
-
*
|
|
560
|
-
* @param
|
|
534
|
+
* 添加端
|
|
535
|
+
* @param frontend 已有的端实例
|
|
561
536
|
*/
|
|
562
|
-
|
|
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
|
-
|
|
871
|
+
removeFrontend(name: string): void;
|
|
1033
872
|
/**
|
|
1034
|
-
*
|
|
1035
|
-
* @param
|
|
873
|
+
* 删除端
|
|
874
|
+
* @param frontend 已有的端实例
|
|
1036
875
|
*/
|
|
1037
|
-
|
|
1038
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|