@lcap/nasl 3.0.0-beta.5 → 3.0.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.
- package/out/concepts/CallConnector__.d.ts +42 -0
- package/out/concepts/CallConnector__.js +198 -0
- package/out/concepts/CallConnector__.js.map +1 -0
- package/out/concepts/ConnectorTrigger__.d.ts +78 -0
- package/out/concepts/ConnectorTrigger__.js +155 -0
- package/out/concepts/ConnectorTrigger__.js.map +1 -0
- package/out/concepts/Connector__.d.ts +464 -0
- package/out/concepts/Connector__.js +698 -0
- package/out/concepts/Connector__.js.map +1 -0
- package/out/concepts/MsgTriggerEvent__.d.ts +137 -0
- package/out/concepts/MsgTriggerEvent__.js +228 -0
- package/out/concepts/MsgTriggerEvent__.js.map +1 -0
- package/out/concepts/MsgTriggerLauncher__.d.ts +118 -0
- package/out/concepts/MsgTriggerLauncher__.js +204 -0
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -0
- package/out/concepts/StringLiteral__.js +5 -1
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +120 -0
- package/out/concepts/TriggerEvent__.js +222 -0
- package/out/concepts/TriggerEvent__.js.map +1 -0
- package/out/concepts/TriggerLauncher__.d.ts +88 -0
- package/out/concepts/TriggerLauncher__.js +235 -0
- package/out/concepts/TriggerLauncher__.js.map +1 -0
- package/out/concepts/types__.d.ts +124 -0
- package/out/concepts/types__.js +3 -0
- package/out/concepts/types__.js.map +1 -0
- package/out/server/getConnector.d.ts +11 -0
- package/out/server/getConnector.js +42 -0
- package/out/server/getConnector.js.map +1 -0
- package/package.json +1 -1
- package/src/concepts/StringLiteral__.ts +5 -1
- package/src/concepts/dist/StringLiteral__.js +158 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
var TriggerLauncher_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.TriggerLauncher = void 0;
|
|
14
|
+
const translator_1 = require("../translator");
|
|
15
|
+
const decorators_1 = require("../decorators");
|
|
16
|
+
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
17
|
+
const classMap_1 = __importDefault(require("../common/classMap"));
|
|
18
|
+
/**
|
|
19
|
+
* 触发器启动器
|
|
20
|
+
*/
|
|
21
|
+
let TriggerLauncher = TriggerLauncher_1 = class TriggerLauncher extends BaseNode_1.default {
|
|
22
|
+
/**
|
|
23
|
+
* 产品概念
|
|
24
|
+
*/
|
|
25
|
+
concept = 'TriggerLauncher';
|
|
26
|
+
/**
|
|
27
|
+
* 触发器启动器名称
|
|
28
|
+
*/
|
|
29
|
+
name = undefined;
|
|
30
|
+
/**
|
|
31
|
+
* calleeNamespace
|
|
32
|
+
*/
|
|
33
|
+
calleeNamespace = undefined;
|
|
34
|
+
/**
|
|
35
|
+
* calleeName
|
|
36
|
+
*/
|
|
37
|
+
calleeName = undefined;
|
|
38
|
+
/**
|
|
39
|
+
* calleeConnectorName
|
|
40
|
+
*/
|
|
41
|
+
calleeConnectorName = undefined;
|
|
42
|
+
/**
|
|
43
|
+
* callBackLogic
|
|
44
|
+
*/
|
|
45
|
+
callBackLogic = undefined;
|
|
46
|
+
/**
|
|
47
|
+
* 祖先 Module
|
|
48
|
+
*/
|
|
49
|
+
get module() {
|
|
50
|
+
return this.getAncestor('Module');
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 祖先 App
|
|
54
|
+
*/
|
|
55
|
+
get app() {
|
|
56
|
+
return this.getAncestor('App');
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param source 需要合并的部分参数
|
|
60
|
+
*/
|
|
61
|
+
constructor(source) {
|
|
62
|
+
source = Object.assign({}, TriggerLauncher_1.getDefaultOptions(), source);
|
|
63
|
+
super(source);
|
|
64
|
+
super.subConstructor(source);
|
|
65
|
+
}
|
|
66
|
+
getClassName() {
|
|
67
|
+
return 'TriggerLauncher';
|
|
68
|
+
}
|
|
69
|
+
static from(source, parentNode, parentKey) {
|
|
70
|
+
return super.from(source, parentNode, parentKey);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 从父级删除该节点
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
_delete() {
|
|
77
|
+
let params = null;
|
|
78
|
+
if (this.parentNode) {
|
|
79
|
+
params = this.parentNode?.__removeTriggerLauncher?.(this);
|
|
80
|
+
}
|
|
81
|
+
return params;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 设置触发器启动器名称
|
|
85
|
+
*/
|
|
86
|
+
setName(name) {
|
|
87
|
+
const object = {
|
|
88
|
+
name,
|
|
89
|
+
};
|
|
90
|
+
this.update({
|
|
91
|
+
...object,
|
|
92
|
+
field: 'name',
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 设置calleeNamespace
|
|
97
|
+
*/
|
|
98
|
+
setCalleeNamespace(calleeNamespace) {
|
|
99
|
+
const object = {
|
|
100
|
+
calleeNamespace,
|
|
101
|
+
};
|
|
102
|
+
this.update({
|
|
103
|
+
...object,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* 设置calleeName
|
|
108
|
+
*/
|
|
109
|
+
setCalleeName(calleeName) {
|
|
110
|
+
const object = {
|
|
111
|
+
calleeName,
|
|
112
|
+
};
|
|
113
|
+
this.update({
|
|
114
|
+
...object,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 设置calleeConnectorName
|
|
119
|
+
*/
|
|
120
|
+
setCalleeConnectorName(calleeConnectorName) {
|
|
121
|
+
const object = {
|
|
122
|
+
calleeConnectorName,
|
|
123
|
+
};
|
|
124
|
+
this.update({
|
|
125
|
+
...object,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* 设置callBackLogic
|
|
130
|
+
*/
|
|
131
|
+
setCallBackLogic(callBackLogic) {
|
|
132
|
+
const object = {
|
|
133
|
+
callBackLogic,
|
|
134
|
+
};
|
|
135
|
+
this.update({
|
|
136
|
+
...object,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
//================================================================================
|
|
140
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
141
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
142
|
+
//================================================================================
|
|
143
|
+
toEmbeddedTS(state) {
|
|
144
|
+
let code = '';
|
|
145
|
+
code += `export function ${this.name} () {\n`;
|
|
146
|
+
try {
|
|
147
|
+
// 仅仅作引用查找不需要入参校验
|
|
148
|
+
code += `${this.callBackLogicKey}`;
|
|
149
|
+
code += ';\n';
|
|
150
|
+
code += '}\n';
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
console.error('找不到目标服务端逻辑', error);
|
|
154
|
+
}
|
|
155
|
+
return code;
|
|
156
|
+
}
|
|
157
|
+
get callBackLogicKey() {
|
|
158
|
+
const { name, namespace } = this.callBackLogic;
|
|
159
|
+
return `${namespace}.${name}`;
|
|
160
|
+
}
|
|
161
|
+
toEmbeddedTSFile() {
|
|
162
|
+
let code = `namespace ${this.getTsNamespace()} {\n`;
|
|
163
|
+
const state = (0, translator_1.createCompilerState)(code, { tabSize: 1 });
|
|
164
|
+
try {
|
|
165
|
+
code += this.toEmbeddedTS(state);
|
|
166
|
+
}
|
|
167
|
+
catch (err) {
|
|
168
|
+
console.log(err, '有问题翻译失败');
|
|
169
|
+
code += '';
|
|
170
|
+
console.log(err);
|
|
171
|
+
}
|
|
172
|
+
code += '}\n';
|
|
173
|
+
return {
|
|
174
|
+
code,
|
|
175
|
+
filePath: this.getEmbeddedFilePath(),
|
|
176
|
+
sourceMap: state.sourceMap,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
getTsNamespace() {
|
|
180
|
+
if (this.parentNode) {
|
|
181
|
+
const parentNamespace = this.parentNode?.getTsNamespace();
|
|
182
|
+
const parentName = this.parentNode.tsName || this.parentNode.name;
|
|
183
|
+
const arr = [parentNamespace];
|
|
184
|
+
if (this.parentNode.concept !== 'App' && parentName) {
|
|
185
|
+
arr.push(parentName);
|
|
186
|
+
}
|
|
187
|
+
let namespace = arr.join('.');
|
|
188
|
+
namespace = `${namespace}.triggerLauncher`;
|
|
189
|
+
return namespace;
|
|
190
|
+
}
|
|
191
|
+
else
|
|
192
|
+
throw new Error('无法获取命名空间,请设置 parentNode!');
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* 生成宿主语言的文件路径
|
|
196
|
+
* @param name 一般不用传,用于 rename
|
|
197
|
+
*/
|
|
198
|
+
getEmbeddedFilePath(name = this.name) {
|
|
199
|
+
const parent = this.parentNode;
|
|
200
|
+
const _path = `/${parent.parentKey}/${parent.name}`;
|
|
201
|
+
return `/embedded/${this.app.name}${_path}/triggerLauncher/${name}.ts`;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, decorators_1.property)()
|
|
206
|
+
], TriggerLauncher.prototype, "concept", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, decorators_1.property)()
|
|
209
|
+
], TriggerLauncher.prototype, "name", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, decorators_1.property)()
|
|
212
|
+
], TriggerLauncher.prototype, "calleeNamespace", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, decorators_1.property)()
|
|
215
|
+
], TriggerLauncher.prototype, "calleeName", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, decorators_1.property)()
|
|
218
|
+
], TriggerLauncher.prototype, "calleeConnectorName", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, decorators_1.property)()
|
|
221
|
+
], TriggerLauncher.prototype, "callBackLogic", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, translator_1.withSourceMap)()
|
|
224
|
+
], TriggerLauncher.prototype, "toEmbeddedTS", null);
|
|
225
|
+
TriggerLauncher = TriggerLauncher_1 = __decorate([
|
|
226
|
+
(0, decorators_1.concept)('触发器启动器')
|
|
227
|
+
], TriggerLauncher);
|
|
228
|
+
exports.TriggerLauncher = TriggerLauncher;
|
|
229
|
+
classMap_1.default.TriggerLauncher = TriggerLauncher;
|
|
230
|
+
exports.default = TriggerLauncher;
|
|
231
|
+
//================================================================================
|
|
232
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
233
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
234
|
+
//================================================================================
|
|
235
|
+
//# sourceMappingURL=TriggerLauncher__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriggerLauncher__.js","sourceRoot":"","sources":["../../src/concepts/TriggerLauncher__.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8CAAgG;AAQhG,8CAAkE;AAIlE,kEAA0C;AAC1C,kEAA0C;AAI1C;;GAEG;AAEH,IAAa,eAAe,uBAA5B,MAAa,eAAgB,SAAQ,kBAAQ;IACzC;;OAEG;IAEH,OAA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GG;IACH,mBAAmB,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI;QAChC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAuB,CAAC;QAC5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QACpD,OAAO,aAAa,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,oBAAoB,IAAI,KAAK,CAAC;IAC3E,CAAC;CAMJ,CAAA;AAlNG;IADC,IAAA,qBAAQ,GAAE;gDAC2D;AAMtE;IADC,IAAA,qBAAQ,GAAE;6CACc;AAMzB;IADC,IAAA,qBAAQ,GAAE;wDACyB;AAMpC;IADC,IAAA,qBAAQ,GAAE;mDACoB;AAM/B;IADC,IAAA,qBAAQ,GAAE;4DAC6B;AAMxC;IADC,IAAA,qBAAQ,GAAE;sDAC2B;AAiHtC;IADC,IAAA,0BAAa,GAAE;mDAaf;AAhKQ,eAAe;IAD3B,IAAA,oBAAO,EAAC,QAAQ,CAAC;GACL,eAAe,CAuN3B;AAvNY,0CAAe;AAyN5B,kBAAQ,CAAC,eAAe,GAAG,eAAe,CAAC;AAC3C,kBAAe,eAAe,CAAC;AAC/B,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { App } from './App__';
|
|
2
|
+
import type { Module } from './Module__';
|
|
3
|
+
import type { Namespace } from './Namespace__';
|
|
4
|
+
import type { Frontend } from './Frontend__';
|
|
5
|
+
import type { Backend } from './Backend__';
|
|
6
|
+
import type { Integration } from './Integration__';
|
|
7
|
+
import type { MicroApp } from './MicroApp__';
|
|
8
|
+
import type { TypeAnnotation } from './TypeAnnotation__';
|
|
9
|
+
import type { DatabaseTypeAnnotation } from './DatabaseTypeAnnotation__';
|
|
10
|
+
import type { TypeParam } from './TypeParam__';
|
|
11
|
+
import type { Structure } from './Structure__';
|
|
12
|
+
import type { StructureProperty } from './StructureProperty__';
|
|
13
|
+
import type { Enum } from './Enum__';
|
|
14
|
+
import type { EnumItem } from './EnumItem__';
|
|
15
|
+
import type { DataElement } from './DataElement__';
|
|
16
|
+
import type { DataSource } from './DataSource__';
|
|
17
|
+
import type { Entity } from './Entity__';
|
|
18
|
+
import type { EntityProperty } from './EntityProperty__';
|
|
19
|
+
import type { EntityIndex } from './EntityIndex__';
|
|
20
|
+
import type { View } from './View__';
|
|
21
|
+
import type { ViewElement } from './ViewElement__';
|
|
22
|
+
import type { BindAttribute } from './BindAttribute__';
|
|
23
|
+
import type { BindDirective } from './BindDirective__';
|
|
24
|
+
import type { BindEvent } from './BindEvent__';
|
|
25
|
+
import type { BindStyle } from './BindStyle__';
|
|
26
|
+
import type { ViewComponent } from './ViewComponent__';
|
|
27
|
+
import type { Attribute } from './Attribute__';
|
|
28
|
+
import type { Event } from './Event__';
|
|
29
|
+
import type { Slot } from './Slot__';
|
|
30
|
+
import type { Theme } from './Theme__';
|
|
31
|
+
import type { Logic } from './Logic__';
|
|
32
|
+
import type { AuthLogic } from './AuthLogic__';
|
|
33
|
+
import type { AuthLogicForCallInterface } from './AuthLogicForCallInterface__';
|
|
34
|
+
import type { OverriddenLogic } from './OverriddenLogic__';
|
|
35
|
+
import type { Param } from './Param__';
|
|
36
|
+
import type { Return } from './Return__';
|
|
37
|
+
import type { Variable } from './Variable__';
|
|
38
|
+
import type { BackendVariable } from './BackendVariable__';
|
|
39
|
+
import type { FrontendVariable } from './FrontendVariable__';
|
|
40
|
+
import type { Constant } from './Constant__';
|
|
41
|
+
import type { LogicItem } from './LogicItem__';
|
|
42
|
+
import type { Function } from './Function__';
|
|
43
|
+
import type { AnonymousFunction } from './AnonymousFunction__';
|
|
44
|
+
import type { Interface } from './Interface__';
|
|
45
|
+
import type { InterfaceParam } from './InterfaceParam__';
|
|
46
|
+
import type { Transactional } from './Transactional__';
|
|
47
|
+
import type { Abort } from './Abort__';
|
|
48
|
+
import type { Start } from './Start__';
|
|
49
|
+
import type { End } from './End__';
|
|
50
|
+
import type { IfStatement } from './IfStatement__';
|
|
51
|
+
import type { SwitchStatement } from './SwitchStatement__';
|
|
52
|
+
import type { SwitchCase } from './SwitchCase__';
|
|
53
|
+
import type { ForEachStatement } from './ForEachStatement__';
|
|
54
|
+
import type { WhileStatement } from './WhileStatement__';
|
|
55
|
+
import type { Assignment } from './Assignment__';
|
|
56
|
+
import type { BatchAssignment } from './BatchAssignment__';
|
|
57
|
+
import type { Comment } from './Comment__';
|
|
58
|
+
import type { CallLogic } from './CallLogic__';
|
|
59
|
+
import type { CallFunction } from './CallFunction__';
|
|
60
|
+
import type { CallInterface } from './CallInterface__';
|
|
61
|
+
import type { Destination } from './Destination__';
|
|
62
|
+
import type { ExternalDestination } from './ExternalDestination__';
|
|
63
|
+
import type { ValidationRule } from './ValidationRule__';
|
|
64
|
+
import type { Argument } from './Argument__';
|
|
65
|
+
import type { Anchor } from './Anchor__';
|
|
66
|
+
import type { JSBlock } from './JSBlock__';
|
|
67
|
+
import type { JavaLogic } from './JavaLogic__';
|
|
68
|
+
import type { Identifier } from './Identifier__';
|
|
69
|
+
import type { NullLiteral } from './NullLiteral__';
|
|
70
|
+
import type { BooleanLiteral } from './BooleanLiteral__';
|
|
71
|
+
import type { StringLiteral } from './StringLiteral__';
|
|
72
|
+
import type { StringInterpolation } from './StringInterpolation__';
|
|
73
|
+
import type { NumericLiteral } from './NumericLiteral__';
|
|
74
|
+
import type { BinaryExpression } from './BinaryExpression__';
|
|
75
|
+
import type { MatchCase } from './MatchCase__';
|
|
76
|
+
import type { Match } from './Match__';
|
|
77
|
+
import type { UnaryExpression } from './UnaryExpression__';
|
|
78
|
+
import type { MemberExpression } from './MemberExpression__';
|
|
79
|
+
import type { Unparsed } from './Unparsed__';
|
|
80
|
+
import type { New } from './New__';
|
|
81
|
+
import type { NewComposite } from './NewComposite__';
|
|
82
|
+
import type { NewList } from './NewList__';
|
|
83
|
+
import type { NewMap } from './NewMap__';
|
|
84
|
+
import type { CallQueryComponent } from './CallQueryComponent__';
|
|
85
|
+
import type { QueryFromExpression } from './QueryFromExpression__';
|
|
86
|
+
import type { QueryJoinExpression } from './QueryJoinExpression__';
|
|
87
|
+
import type { QueryFieldExpression } from './QueryFieldExpression__';
|
|
88
|
+
import type { QueryAggregateExpression } from './QueryAggregateExpression__';
|
|
89
|
+
import type { QueryOrderByExpression } from './QueryOrderByExpression__';
|
|
90
|
+
import type { QueryGroupByExpression } from './QueryGroupByExpression__';
|
|
91
|
+
import type { QuerySelectExpression } from './QuerySelectExpression__';
|
|
92
|
+
import type { QueryLimitExpression } from './QueryLimitExpression__';
|
|
93
|
+
import type { SqlQueryComponent } from './SqlQueryComponent__';
|
|
94
|
+
import type { OqlQueryComponent } from './OqlQueryComponent__';
|
|
95
|
+
import type { Process } from './Process__';
|
|
96
|
+
import type { ProcessElement } from './ProcessElement__';
|
|
97
|
+
import type { ProcessComponent } from './ProcessComponent__';
|
|
98
|
+
import type { ProcessOutcome } from './ProcessOutcome__';
|
|
99
|
+
import type { Assignee } from './Assignee__';
|
|
100
|
+
import type { ProcessOutcomes } from './ProcessOutcomes__';
|
|
101
|
+
import type { Role } from './Role__';
|
|
102
|
+
import type { Configuration } from './Configuration__';
|
|
103
|
+
import type { ConfigGroup } from './ConfigGroup__';
|
|
104
|
+
import type { ConfigProperty } from './ConfigProperty__';
|
|
105
|
+
import type { ConfigPropertyValue } from './ConfigPropertyValue__';
|
|
106
|
+
import type { CompletionProperty } from './CompletionProperty__';
|
|
107
|
+
import type { UseComponent } from './UseComponent__';
|
|
108
|
+
import type { Point } from './Point__';
|
|
109
|
+
import type { Rect } from './Rect__';
|
|
110
|
+
import type { SelectMembers } from './SelectMembers__';
|
|
111
|
+
import type { AssignmentLine } from './AssignmentLine__';
|
|
112
|
+
import type { FrontendLibrary } from './FrontendLibrary__';
|
|
113
|
+
import type { ViewBlock } from './ViewBlock__';
|
|
114
|
+
import type { AuthInterface } from './AuthInterface__';
|
|
115
|
+
import type { CallAuthInterface } from './CallAuthInterface__';
|
|
116
|
+
import type { TriggerEvent } from './TriggerEvent__';
|
|
117
|
+
import type { MsgTriggerEvent } from './MsgTriggerEvent__';
|
|
118
|
+
import type { ConnectorTrigger } from './ConnectorTrigger__';
|
|
119
|
+
import type { TriggerLauncher } from './TriggerLauncher__';
|
|
120
|
+
import type { MsgTriggerLauncher } from './MsgTriggerLauncher__';
|
|
121
|
+
import type { Connector } from './Connector__';
|
|
122
|
+
import type { CallConnector } from './CallConnector__';
|
|
123
|
+
export declare type SynatxNode = App | Module | Namespace | Frontend | Backend | Integration | MicroApp | TypeAnnotation | DatabaseTypeAnnotation | TypeParam | Structure | StructureProperty | Enum | EnumItem | DataElement | DataSource | Entity | EntityProperty | EntityIndex | View | ViewElement | BindAttribute | BindDirective | BindEvent | BindStyle | ViewComponent | Attribute | Event | Slot | Theme | Logic | AuthLogic | AuthLogicForCallInterface | OverriddenLogic | Param | Return | Variable | BackendVariable | FrontendVariable | Constant | LogicItem | Function | AnonymousFunction | Interface | InterfaceParam | Transactional | Abort | Start | End | IfStatement | SwitchStatement | SwitchCase | ForEachStatement | WhileStatement | Assignment | BatchAssignment | Comment | CallLogic | CallFunction | CallInterface | Destination | ExternalDestination | ValidationRule | Argument | Anchor | JSBlock | JavaLogic | Identifier | NullLiteral | BooleanLiteral | StringLiteral | StringInterpolation | NumericLiteral | BinaryExpression | MatchCase | Match | UnaryExpression | MemberExpression | Unparsed | New | NewComposite | NewList | NewMap | CallQueryComponent | QueryFromExpression | QueryJoinExpression | QueryFieldExpression | QueryAggregateExpression | QueryOrderByExpression | QueryGroupByExpression | QuerySelectExpression | QueryLimitExpression | SqlQueryComponent | OqlQueryComponent | Process | ProcessElement | ProcessComponent | ProcessOutcome | Assignee | ProcessOutcomes | Role | Configuration | ConfigGroup | ConfigProperty | ConfigPropertyValue | CompletionProperty | UseComponent | Point | Rect | SelectMembers | AssignmentLine | FrontendLibrary | ViewBlock | AuthInterface | CallAuthInterface | TriggerEvent | MsgTriggerEvent | ConnectorTrigger | TriggerLauncher | MsgTriggerLauncher | Connector | CallConnector;
|
|
124
|
+
export declare type SynatxNodeConcept = SynatxNode['concept'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types__.js","sourceRoot":"","sources":["../../src/concepts/types__.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CallConnector from '@nasl/concepts/CallConnector__';
|
|
2
|
+
import Connector from '@nasl/concepts/Connector__';
|
|
3
|
+
export declare function getConnectors(node: CallConnector): (import("..").Module | Connector)[];
|
|
4
|
+
export declare function getConnectorTree(node: CallConnector, filterText: string): {
|
|
5
|
+
name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
unselectable: boolean;
|
|
10
|
+
children: Connector[];
|
|
11
|
+
}[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConnectorTree = exports.getConnectors = void 0;
|
|
4
|
+
function getConnectors(node) {
|
|
5
|
+
const app = node?.rootNode;
|
|
6
|
+
const source = app.dependencies.filter((dep) => dep.type === 'connector');
|
|
7
|
+
return source;
|
|
8
|
+
}
|
|
9
|
+
exports.getConnectors = getConnectors;
|
|
10
|
+
function getConnectorTree(node, filterText) {
|
|
11
|
+
const source = getConnectors(node);
|
|
12
|
+
let target = source;
|
|
13
|
+
if (filterText) {
|
|
14
|
+
target = source.filter((dep) => new RegExp(filterText).test(dep.name));
|
|
15
|
+
}
|
|
16
|
+
const tree = [];
|
|
17
|
+
const redises = target.filter((dep) => dep.connectorKind === 'redis');
|
|
18
|
+
const kafkas = target.filter((dep) => dep.connectorKind === 'kafka');
|
|
19
|
+
if (redises.length) {
|
|
20
|
+
tree.push({
|
|
21
|
+
name: 'Redis连接器',
|
|
22
|
+
title: 'Redis连接器',
|
|
23
|
+
icon: 'redis',
|
|
24
|
+
expanded: true,
|
|
25
|
+
unselectable: true,
|
|
26
|
+
children: redises,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
if (kafkas.length) {
|
|
30
|
+
tree.push({
|
|
31
|
+
name: 'Kafka连接器',
|
|
32
|
+
title: 'Kafka连接器',
|
|
33
|
+
icon: 'kafka',
|
|
34
|
+
expanded: true,
|
|
35
|
+
unselectable: true,
|
|
36
|
+
children: kafkas,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return tree;
|
|
40
|
+
}
|
|
41
|
+
exports.getConnectorTree = getConnectorTree;
|
|
42
|
+
//# sourceMappingURL=getConnector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConnector.js","sourceRoot":"","sources":["../../src/server/getConnector.ts"],"names":[],"mappings":";;;AAIA,SAAgB,aAAa,CAAC,IAAmB;IAC7C,MAAM,GAAG,GAAG,IAAI,EAAE,QAAe,CAAC;IAClC,MAAM,MAAM,GAAG,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;IAC1E,OAAO,MAAM,CAAC;AAClB,CAAC;AAJD,sCAIC;AAED,SAAgB,gBAAgB,CAAC,IAAmB,EAAE,UAAkB;IACpE,MAAM,MAAM,GAAgB,aAAa,CAAC,IAAI,CAAgB,CAAC;IAC/D,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,UAAU,EAAE;QACZ,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;KAC1E;IACD,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC;IACtE,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC;IACrE,IAAI,OAAO,CAAC,MAAM,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC;YACN,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,OAAO;SACpB,CAAC,CAAC;KACN;IACD,IAAI,MAAM,CAAC,MAAM,EAAE;QACf,IAAI,CAAC,IAAI,CAAC;YACN,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,MAAM;SACnB,CAAC,CAAC;KACN;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AA9BD,4CA8BC"}
|
package/package.json
CHANGED
|
@@ -65,7 +65,11 @@ export class StringLiteral extends LogicItem {
|
|
|
65
65
|
code = `\`${this.value}\``;
|
|
66
66
|
if (options?.finalCode !== false) {
|
|
67
67
|
code = `\`${this.value.replace(/['"`\\]/g, (m) => {
|
|
68
|
-
|
|
68
|
+
let escape = '\\\\';
|
|
69
|
+
escape = '\\\\';
|
|
70
|
+
/// #if process.env.BUILD_TARGET === 'node'
|
|
71
|
+
escape = '\\';
|
|
72
|
+
/// #endif
|
|
69
73
|
if (m === '\\') {
|
|
70
74
|
return `${escape}${escape}`;
|
|
71
75
|
} else {
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
27
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
29
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
30
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31
|
+
};
|
|
32
|
+
exports.__esModule = true;
|
|
33
|
+
exports.StringLiteral = void 0;
|
|
34
|
+
var translator_1 = require("../translator");
|
|
35
|
+
var decorators_1 = require("../decorators");
|
|
36
|
+
var classMap_1 = require("../common/classMap");
|
|
37
|
+
var LogicItem__1 = require("./LogicItem__");
|
|
38
|
+
/**
|
|
39
|
+
* 字符串字面量
|
|
40
|
+
*/
|
|
41
|
+
var StringLiteral = /** @class */ (function (_super) {
|
|
42
|
+
__extends(StringLiteral, _super);
|
|
43
|
+
/**
|
|
44
|
+
* @param source 需要合并的部分参数
|
|
45
|
+
*/
|
|
46
|
+
function StringLiteral(source) {
|
|
47
|
+
var _this = this;
|
|
48
|
+
source = Object.assign({}, StringLiteral_1.getDefaultOptions(), source);
|
|
49
|
+
_this = _super.call(this, source) || this;
|
|
50
|
+
/**
|
|
51
|
+
* 产品概念
|
|
52
|
+
*/
|
|
53
|
+
_this.concept = 'StringLiteral';
|
|
54
|
+
/**
|
|
55
|
+
* 字面量的值
|
|
56
|
+
*/
|
|
57
|
+
_this.value = '';
|
|
58
|
+
_super.prototype.subConstructor.call(_this, source);
|
|
59
|
+
return _this;
|
|
60
|
+
}
|
|
61
|
+
StringLiteral_1 = StringLiteral;
|
|
62
|
+
StringLiteral.prototype.getClassName = function () {
|
|
63
|
+
return 'StringLiteral';
|
|
64
|
+
};
|
|
65
|
+
StringLiteral.from = function (source, parentNode, parentKey) {
|
|
66
|
+
return _super.from.call(this, source, parentNode, parentKey);
|
|
67
|
+
};
|
|
68
|
+
//================================================================================
|
|
69
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
70
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
71
|
+
//================================================================================
|
|
72
|
+
StringLiteral.prototype.toVue = function (options) {
|
|
73
|
+
var code = '';
|
|
74
|
+
if (typeof this.value === 'string') {
|
|
75
|
+
code = "`" + this.value + "`";
|
|
76
|
+
if ((options === null || options === void 0 ? void 0 : options.finalCode) !== false) {
|
|
77
|
+
code = "`" + this.value.replace(/['"`\\]/g, function (m) {
|
|
78
|
+
var escape = '\\\\';
|
|
79
|
+
escape = '\\\\';
|
|
80
|
+
/// #if process.env.BUILD_TARGET === 'node'
|
|
81
|
+
escape = '\\';
|
|
82
|
+
/// #endif
|
|
83
|
+
if (m === '\\') {
|
|
84
|
+
return "" + escape + escape;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
return "" + escape + m;
|
|
88
|
+
}
|
|
89
|
+
}) + "`";
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return code;
|
|
93
|
+
};
|
|
94
|
+
StringLiteral.prototype.toUI = function () {
|
|
95
|
+
var code = '';
|
|
96
|
+
if (typeof this.value === 'string') {
|
|
97
|
+
code = "`" + this.value + "`";
|
|
98
|
+
}
|
|
99
|
+
return code;
|
|
100
|
+
};
|
|
101
|
+
StringLiteral.prototype.toJS = function () {
|
|
102
|
+
var code = "";
|
|
103
|
+
if (typeof this.value === 'string') {
|
|
104
|
+
code += "`" + this.value.replace(/['"`\\]/g, function (m) { return "\\" + m; }) + "`";
|
|
105
|
+
}
|
|
106
|
+
return code;
|
|
107
|
+
};
|
|
108
|
+
StringLiteral.prototype.toBrief = function () {
|
|
109
|
+
return "`" + this.value + "`";
|
|
110
|
+
};
|
|
111
|
+
StringLiteral.prototype.toEmbeddedTS = function (state, isRequired) {
|
|
112
|
+
var code = '';
|
|
113
|
+
if (typeof this.value === 'string') {
|
|
114
|
+
code += "new nasl.core.String('StringLiteral')";
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
code += isRequired ? '__IDENTIFIER__' : "''";
|
|
118
|
+
}
|
|
119
|
+
return code;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* 设置字符串内容
|
|
123
|
+
*/
|
|
124
|
+
StringLiteral.prototype.setValue = function (value) {
|
|
125
|
+
var object = {
|
|
126
|
+
value: value
|
|
127
|
+
};
|
|
128
|
+
this.update(__assign({}, object));
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* 获取添加时的默认选项
|
|
132
|
+
* @returns
|
|
133
|
+
*/
|
|
134
|
+
StringLiteral.getDefaultOptions = function () {
|
|
135
|
+
return { value: '' };
|
|
136
|
+
};
|
|
137
|
+
var StringLiteral_1;
|
|
138
|
+
__decorate([
|
|
139
|
+
decorators_1.property()
|
|
140
|
+
], StringLiteral.prototype, "concept");
|
|
141
|
+
__decorate([
|
|
142
|
+
decorators_1.property()
|
|
143
|
+
], StringLiteral.prototype, "value");
|
|
144
|
+
__decorate([
|
|
145
|
+
translator_1.withSourceMap()
|
|
146
|
+
], StringLiteral.prototype, "toEmbeddedTS");
|
|
147
|
+
StringLiteral = StringLiteral_1 = __decorate([
|
|
148
|
+
decorators_1.concept('字符串字面量')
|
|
149
|
+
], StringLiteral);
|
|
150
|
+
return StringLiteral;
|
|
151
|
+
}(LogicItem__1["default"]));
|
|
152
|
+
exports.StringLiteral = StringLiteral;
|
|
153
|
+
classMap_1["default"].StringLiteral = StringLiteral;
|
|
154
|
+
exports["default"] = StringLiteral;
|
|
155
|
+
//================================================================================
|
|
156
|
+
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
157
|
+
// 自动生成的代码已结束。下面可以手动编写。
|
|
158
|
+
//================================================================================
|