@trayio/cdk-dsl 3.8.1-beta → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -7
- package/dist/connector/operation/CompositeOperationHandler.js +2 -1
- package/dist/connector/operation/HttpOperationHandler.js +42 -4
- package/dist/connector/operation/OperationGlobalConfig.js +4 -1
- package/dist/connector/operation/OperationHandlerSetup.js +11 -1
- package/dist/connector/operation/OperationHandlerTest.js +49 -1
- package/dist/connector/operation/OperationHandlerValidation.js +8 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -858,14 +858,32 @@ export const myOperationHandler =
|
|
|
858
858
|
);
|
|
859
859
|
```
|
|
860
860
|
|
|
861
|
-
|
|
861
|
+
## Error Handling
|
|
862
862
|
|
|
863
|
-
|
|
863
|
+
You could use `withErrorHandling()` on the `response` to display custom error messages to the users.
|
|
864
864
|
|
|
865
865
|
```typescript
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
866
|
+
handler.usingHttp((http) =>
|
|
867
|
+
http
|
|
868
|
+
.get('<url>')
|
|
869
|
+
.handleRequest((ctx, input, request) =>
|
|
870
|
+
request.withBearerToken(ctx.auth!.user.access_token).withoutBody()
|
|
871
|
+
)
|
|
872
|
+
.handleResponse((ctx, input, response) =>
|
|
873
|
+
response
|
|
874
|
+
.withErrorHandling(() => {
|
|
875
|
+
const status = response.getStatusCode();
|
|
876
|
+
|
|
877
|
+
if (status === 404) {
|
|
878
|
+
return OperationHandlerResult.failure(
|
|
879
|
+
OperationHandlerError.userInputError('post not found')
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
return OperationHandlerResult.failure(
|
|
883
|
+
OperationHandlerError.apiError(`api error: ${status}`)
|
|
884
|
+
);
|
|
885
|
+
})
|
|
886
|
+
.parseWithBodyAsJson()
|
|
887
|
+
)
|
|
888
|
+
);
|
|
871
889
|
```
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CompositeOperationHandler = void 0;
|
|
4
4
|
class CompositeOperationHandler {
|
|
5
|
+
_tag = 'CompositeOperationHandler';
|
|
6
|
+
handlerFunction;
|
|
5
7
|
constructor(handlerFunction) {
|
|
6
|
-
this._tag = 'CompositeOperationHandler';
|
|
7
8
|
this.handlerFunction = handlerFunction;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
@@ -40,6 +40,9 @@ const readPackageVersion = () => {
|
|
|
40
40
|
};
|
|
41
41
|
const packageVersion = readPackageVersion();
|
|
42
42
|
class HttpOperationRequestBuilder {
|
|
43
|
+
path;
|
|
44
|
+
method;
|
|
45
|
+
request;
|
|
43
46
|
constructor(method, path, request) {
|
|
44
47
|
this.method = method;
|
|
45
48
|
this.path = path;
|
|
@@ -74,10 +77,22 @@ class HttpOperationRequestBuilder {
|
|
|
74
77
|
return new HttpOperationRequest(this.path, this.method, this.request, O.none, undefined);
|
|
75
78
|
}
|
|
76
79
|
addPathParameter(name, value) {
|
|
77
|
-
return new HttpOperationRequestBuilder(this.method, this.path,
|
|
80
|
+
return new HttpOperationRequestBuilder(this.method, this.path, {
|
|
81
|
+
...this.request,
|
|
82
|
+
pathParams: {
|
|
83
|
+
...this.request.pathParams,
|
|
84
|
+
[name]: value,
|
|
85
|
+
},
|
|
86
|
+
});
|
|
78
87
|
}
|
|
79
88
|
addQueryString(name, value) {
|
|
80
|
-
return new HttpOperationRequestBuilder(this.method, this.path,
|
|
89
|
+
return new HttpOperationRequestBuilder(this.method, this.path, {
|
|
90
|
+
...this.request,
|
|
91
|
+
queryString: {
|
|
92
|
+
...this.request.queryString,
|
|
93
|
+
[name]: value,
|
|
94
|
+
},
|
|
95
|
+
});
|
|
81
96
|
}
|
|
82
97
|
withMethod(method) {
|
|
83
98
|
return new HttpOperationRequestBuilder(method, this.path, this.request);
|
|
@@ -89,11 +104,22 @@ class HttpOperationRequestBuilder {
|
|
|
89
104
|
return this.addHeader(Http_1.HttpHeader.Authorization, `Bearer ${token}`);
|
|
90
105
|
}
|
|
91
106
|
addHeader(name, value) {
|
|
92
|
-
return new HttpOperationRequestBuilder(this.method, this.path,
|
|
107
|
+
return new HttpOperationRequestBuilder(this.method, this.path, {
|
|
108
|
+
...this.request,
|
|
109
|
+
headers: {
|
|
110
|
+
...this.request.headers,
|
|
111
|
+
[name]: value,
|
|
112
|
+
},
|
|
113
|
+
});
|
|
93
114
|
}
|
|
94
115
|
}
|
|
95
116
|
exports.HttpOperationRequestBuilder = HttpOperationRequestBuilder;
|
|
96
117
|
class HttpOperationRequest {
|
|
118
|
+
path;
|
|
119
|
+
method;
|
|
120
|
+
request;
|
|
121
|
+
contentType;
|
|
122
|
+
body;
|
|
97
123
|
constructor(path, method, request, contentType, body) {
|
|
98
124
|
this.path = path;
|
|
99
125
|
this.method = method;
|
|
@@ -104,6 +130,8 @@ class HttpOperationRequest {
|
|
|
104
130
|
}
|
|
105
131
|
exports.HttpOperationRequest = HttpOperationRequest;
|
|
106
132
|
class HttpOperationResponseBuilder {
|
|
133
|
+
response;
|
|
134
|
+
errorHandling;
|
|
107
135
|
constructor(response, errorHandling) {
|
|
108
136
|
this.response = response;
|
|
109
137
|
this.errorHandling = errorHandling;
|
|
@@ -135,6 +163,10 @@ class HttpOperationResponseBuilder {
|
|
|
135
163
|
}
|
|
136
164
|
exports.HttpOperationResponseBuilder = HttpOperationResponseBuilder;
|
|
137
165
|
class HttpOperationResponse {
|
|
166
|
+
response;
|
|
167
|
+
errorHandling;
|
|
168
|
+
contentType;
|
|
169
|
+
responseParser;
|
|
138
170
|
constructor(response, errorHandling, contentType, responseParser) {
|
|
139
171
|
this.response = response;
|
|
140
172
|
this.errorHandling = errorHandling;
|
|
@@ -144,8 +176,11 @@ class HttpOperationResponse {
|
|
|
144
176
|
}
|
|
145
177
|
exports.HttpOperationResponse = HttpOperationResponse;
|
|
146
178
|
class HttpOperationHandler {
|
|
179
|
+
_tag = 'HttpOperationHandler';
|
|
180
|
+
request;
|
|
181
|
+
requestHandler;
|
|
182
|
+
responseHandler;
|
|
147
183
|
constructor(request, requestHandler, responseHandler) {
|
|
148
|
-
this._tag = 'HttpOperationHandler';
|
|
149
184
|
this.request = request;
|
|
150
185
|
this.requestHandler = requestHandler;
|
|
151
186
|
this.responseHandler = responseHandler;
|
|
@@ -153,6 +188,8 @@ class HttpOperationHandler {
|
|
|
153
188
|
}
|
|
154
189
|
exports.HttpOperationHandler = HttpOperationHandler;
|
|
155
190
|
class HttpOperationHandlerResponseConfiguration {
|
|
191
|
+
request;
|
|
192
|
+
requestHandler;
|
|
156
193
|
constructor(request, requestHandler) {
|
|
157
194
|
this.request = request;
|
|
158
195
|
this.requestHandler = requestHandler;
|
|
@@ -163,6 +200,7 @@ class HttpOperationHandlerResponseConfiguration {
|
|
|
163
200
|
}
|
|
164
201
|
exports.HttpOperationHandlerResponseConfiguration = HttpOperationHandlerResponseConfiguration;
|
|
165
202
|
class HttpOperationHandlerRequestConfiguration {
|
|
203
|
+
request;
|
|
166
204
|
constructor(request) {
|
|
167
205
|
this.request = request;
|
|
168
206
|
}
|
|
@@ -27,11 +27,14 @@ exports.OperationGlobalConfigHttp = void 0;
|
|
|
27
27
|
const O = __importStar(require("fp-ts/Option"));
|
|
28
28
|
const function_1 = require("fp-ts/function");
|
|
29
29
|
class OperationGlobalConfigHttp {
|
|
30
|
+
baseUrl;
|
|
31
|
+
bearerToken;
|
|
32
|
+
headers;
|
|
33
|
+
_tag = 'OperationGlobalConfigHttp';
|
|
30
34
|
static create() {
|
|
31
35
|
return new OperationGlobalConfigHttp(O.none, O.none, []);
|
|
32
36
|
}
|
|
33
37
|
constructor(baseUrl, bearerToken, headers) {
|
|
34
|
-
this._tag = 'OperationGlobalConfigHttp';
|
|
35
38
|
this.baseUrl = baseUrl;
|
|
36
39
|
this.bearerToken = bearerToken;
|
|
37
40
|
this.headers = headers;
|
|
@@ -33,6 +33,11 @@ const CompositeOperationHandler_1 = require("./CompositeOperationHandler");
|
|
|
33
33
|
const HttpOperationHandler_1 = require("./HttpOperationHandler");
|
|
34
34
|
const OperationHandlerValidation_1 = require("./OperationHandlerValidation");
|
|
35
35
|
class OperationHandler {
|
|
36
|
+
name;
|
|
37
|
+
isPrivate;
|
|
38
|
+
validation;
|
|
39
|
+
implementation;
|
|
40
|
+
globalConfiguration;
|
|
36
41
|
constructor(name, isPrivate, validation, implementation, globalConfiguration) {
|
|
37
42
|
this.name = name;
|
|
38
43
|
this.isPrivate = isPrivate;
|
|
@@ -46,6 +51,10 @@ class OperationHandlerConfiguration {
|
|
|
46
51
|
static withName(name) {
|
|
47
52
|
return new OperationHandlerConfiguration(name, false, O.none, O.none);
|
|
48
53
|
}
|
|
54
|
+
name;
|
|
55
|
+
isPrivate;
|
|
56
|
+
validation;
|
|
57
|
+
globalConfiguration;
|
|
49
58
|
constructor(name, isPrivate, validation, globalConfiguration) {
|
|
50
59
|
this.name = name;
|
|
51
60
|
this.isPrivate = isPrivate;
|
|
@@ -79,12 +88,14 @@ class OperationHandlerConfiguration {
|
|
|
79
88
|
}
|
|
80
89
|
exports.OperationHandlerConfiguration = OperationHandlerConfiguration;
|
|
81
90
|
class OperationHandlerRegistry {
|
|
91
|
+
static instance = new OperationHandlerRegistry();
|
|
82
92
|
static register(handler) {
|
|
83
93
|
return OperationHandlerRegistry.instance.register(handler);
|
|
84
94
|
}
|
|
85
95
|
static resolve(reference) {
|
|
86
96
|
return OperationHandlerRegistry.instance.resolve(reference);
|
|
87
97
|
}
|
|
98
|
+
registry;
|
|
88
99
|
constructor() {
|
|
89
100
|
this.registry = new Map();
|
|
90
101
|
}
|
|
@@ -100,7 +111,6 @@ class OperationHandlerRegistry {
|
|
|
100
111
|
}
|
|
101
112
|
}
|
|
102
113
|
exports.OperationHandlerRegistry = OperationHandlerRegistry;
|
|
103
|
-
OperationHandlerRegistry.instance = new OperationHandlerRegistry();
|
|
104
114
|
const readOperationDescriptorFile = () => {
|
|
105
115
|
const operationDescriptorOpt = (0, function_1.pipe)(O.fromNullable(CallSite_1.CallSite.getCurrentCallSites()[1]), // skip the last caller because it is a function within this file
|
|
106
116
|
O.map((caller) => pathLib.join(caller.folderPath, 'operation.json')), O.chain((operationDescriptorPath) => O.fromEither(DynamicType_1.DynamicType.readFromFile(operationDescriptorPath))));
|
|
@@ -40,6 +40,13 @@ const readContextJsonFile = (ctxName) => {
|
|
|
40
40
|
return operationDescriptor;
|
|
41
41
|
};
|
|
42
42
|
class OperationHandlerTestCase {
|
|
43
|
+
description;
|
|
44
|
+
ctx;
|
|
45
|
+
testContext;
|
|
46
|
+
givenFunction;
|
|
47
|
+
whenFunction;
|
|
48
|
+
thenFunction;
|
|
49
|
+
finallyFunction;
|
|
43
50
|
constructor(description, ctx, testContext, givenFunction, whenFunction, thenFunction, finallyFunction) {
|
|
44
51
|
this.description = description;
|
|
45
52
|
this.ctx = ctx;
|
|
@@ -52,6 +59,12 @@ class OperationHandlerTestCase {
|
|
|
52
59
|
}
|
|
53
60
|
exports.OperationHandlerTestCase = OperationHandlerTestCase;
|
|
54
61
|
class OperationHandlerTestCaseFinallyConfiguration {
|
|
62
|
+
description;
|
|
63
|
+
ctx;
|
|
64
|
+
testContext;
|
|
65
|
+
givenFunction;
|
|
66
|
+
whenFunction;
|
|
67
|
+
thenFunction;
|
|
55
68
|
constructor(description, ctx, testContext, givenFunction, whenFunction, thenFunction) {
|
|
56
69
|
this.description = description;
|
|
57
70
|
this.ctx = ctx;
|
|
@@ -69,6 +82,11 @@ class OperationHandlerTestCaseFinallyConfiguration {
|
|
|
69
82
|
}
|
|
70
83
|
exports.OperationHandlerTestCaseFinallyConfiguration = OperationHandlerTestCaseFinallyConfiguration;
|
|
71
84
|
class OperationHandlerTestCaseThenConfiguration {
|
|
85
|
+
description;
|
|
86
|
+
ctx;
|
|
87
|
+
testContext;
|
|
88
|
+
givenFunction;
|
|
89
|
+
whenFunction;
|
|
72
90
|
constructor(description, ctx, testContext, givenFunction, whenFunction) {
|
|
73
91
|
this.description = description;
|
|
74
92
|
this.ctx = ctx;
|
|
@@ -82,6 +100,10 @@ class OperationHandlerTestCaseThenConfiguration {
|
|
|
82
100
|
}
|
|
83
101
|
exports.OperationHandlerTestCaseThenConfiguration = OperationHandlerTestCaseThenConfiguration;
|
|
84
102
|
class OperationHandlerTestCaseWhenConfiguration {
|
|
103
|
+
description;
|
|
104
|
+
ctx;
|
|
105
|
+
testContext;
|
|
106
|
+
givenFunction;
|
|
85
107
|
constructor(description, ctx, testContext, givenFunction) {
|
|
86
108
|
this.description = description;
|
|
87
109
|
this.ctx = ctx;
|
|
@@ -94,6 +116,9 @@ class OperationHandlerTestCaseWhenConfiguration {
|
|
|
94
116
|
}
|
|
95
117
|
exports.OperationHandlerTestCaseWhenConfiguration = OperationHandlerTestCaseWhenConfiguration;
|
|
96
118
|
class OperationHandlerTestCaseGivenConfiguration {
|
|
119
|
+
description;
|
|
120
|
+
ctx;
|
|
121
|
+
testContext;
|
|
97
122
|
constructor(description, ctx, testContext) {
|
|
98
123
|
this.description = description;
|
|
99
124
|
this.ctx = ctx;
|
|
@@ -108,6 +133,9 @@ class OperationHandlerTestCaseGivenConfiguration {
|
|
|
108
133
|
}
|
|
109
134
|
exports.OperationHandlerTestCaseGivenConfiguration = OperationHandlerTestCaseGivenConfiguration;
|
|
110
135
|
class OperationHandlerTestCaseAuthConfiguration {
|
|
136
|
+
description;
|
|
137
|
+
defaultCtx;
|
|
138
|
+
testContext;
|
|
111
139
|
constructor(description, defaultCtx, testContext) {
|
|
112
140
|
this.description = description;
|
|
113
141
|
this.defaultCtx = defaultCtx;
|
|
@@ -125,6 +153,9 @@ class OperationHandlerTestCaseAuthConfiguration {
|
|
|
125
153
|
}
|
|
126
154
|
exports.OperationHandlerTestCaseAuthConfiguration = OperationHandlerTestCaseAuthConfiguration;
|
|
127
155
|
class OperationHandlerTestCaseFactory {
|
|
156
|
+
description;
|
|
157
|
+
ctx;
|
|
158
|
+
testCaseSetup;
|
|
128
159
|
constructor(description, ctx, testCaseSetup) {
|
|
129
160
|
this.description = description;
|
|
130
161
|
this.ctx = ctx;
|
|
@@ -136,6 +167,11 @@ class OperationHandlerTestCaseFactory {
|
|
|
136
167
|
}
|
|
137
168
|
exports.OperationHandlerTestCaseFactory = OperationHandlerTestCaseFactory;
|
|
138
169
|
class OperationHandlerTest {
|
|
170
|
+
handlerReference;
|
|
171
|
+
ctx;
|
|
172
|
+
beforeAllFunction;
|
|
173
|
+
testCaseFactories;
|
|
174
|
+
afterAllFunction;
|
|
139
175
|
constructor(handlerReference, ctx, beforeAllFunction, testCaseFactories, afterAllFunction) {
|
|
140
176
|
this.handlerReference = handlerReference;
|
|
141
177
|
this.ctx = ctx;
|
|
@@ -146,6 +182,10 @@ class OperationHandlerTest {
|
|
|
146
182
|
}
|
|
147
183
|
exports.OperationHandlerTest = OperationHandlerTest;
|
|
148
184
|
class OperationHandlerTestAfterAllConfiguration {
|
|
185
|
+
handlerReference;
|
|
186
|
+
ctx;
|
|
187
|
+
beforeAllFunction;
|
|
188
|
+
testCaseFactories;
|
|
149
189
|
constructor(handlerReference, ctx, beforeAllFunction, testCaseFactories) {
|
|
150
190
|
this.handlerReference = handlerReference;
|
|
151
191
|
this.ctx = ctx;
|
|
@@ -165,6 +205,9 @@ class OperationHandlerTestAfterAllConfiguration {
|
|
|
165
205
|
}
|
|
166
206
|
exports.OperationHandlerTestAfterAllConfiguration = OperationHandlerTestAfterAllConfiguration;
|
|
167
207
|
class OperationHandlerTestMandatoryTestCaseConfiguration {
|
|
208
|
+
handlerReference;
|
|
209
|
+
ctx;
|
|
210
|
+
beforeAllFunction;
|
|
168
211
|
constructor(handlerReference, ctx, beforeAllFunction) {
|
|
169
212
|
this.handlerReference = handlerReference;
|
|
170
213
|
this.ctx = ctx;
|
|
@@ -177,6 +220,8 @@ class OperationHandlerTestMandatoryTestCaseConfiguration {
|
|
|
177
220
|
}
|
|
178
221
|
exports.OperationHandlerTestMandatoryTestCaseConfiguration = OperationHandlerTestMandatoryTestCaseConfiguration;
|
|
179
222
|
class OperationHandlerTestBeforeAllConfiguration {
|
|
223
|
+
handlerReference;
|
|
224
|
+
ctx;
|
|
180
225
|
constructor(handlerReference, ctx) {
|
|
181
226
|
this.handlerReference = handlerReference;
|
|
182
227
|
this.ctx = ctx;
|
|
@@ -190,6 +235,7 @@ class OperationHandlerTestBeforeAllConfiguration {
|
|
|
190
235
|
}
|
|
191
236
|
exports.OperationHandlerTestBeforeAllConfiguration = OperationHandlerTestBeforeAllConfiguration;
|
|
192
237
|
class OperationHandlerTestAuthConfiguration {
|
|
238
|
+
handlerReference;
|
|
193
239
|
constructor(handlerReference) {
|
|
194
240
|
this.handlerReference = handlerReference;
|
|
195
241
|
}
|
|
@@ -199,6 +245,7 @@ class OperationHandlerTestAuthConfiguration {
|
|
|
199
245
|
}
|
|
200
246
|
exports.OperationHandlerTestAuthConfiguration = OperationHandlerTestAuthConfiguration;
|
|
201
247
|
class OperationHandlerTestRegistry {
|
|
248
|
+
static instance = new OperationHandlerTestRegistry();
|
|
202
249
|
static register(handlerTest) {
|
|
203
250
|
OperationHandlerTestRegistry.instance.register(handlerTest);
|
|
204
251
|
}
|
|
@@ -208,6 +255,8 @@ class OperationHandlerTestRegistry {
|
|
|
208
255
|
static onRegistration(onRegistrationFunction) {
|
|
209
256
|
OperationHandlerTestRegistry.instance.onRegistration(onRegistrationFunction);
|
|
210
257
|
}
|
|
258
|
+
registry;
|
|
259
|
+
observers;
|
|
211
260
|
constructor() {
|
|
212
261
|
this.registry = new Map();
|
|
213
262
|
this.observers = [];
|
|
@@ -229,7 +278,6 @@ class OperationHandlerTestRegistry {
|
|
|
229
278
|
}
|
|
230
279
|
}
|
|
231
280
|
exports.OperationHandlerTestRegistry = OperationHandlerTestRegistry;
|
|
232
|
-
OperationHandlerTestRegistry.instance = new OperationHandlerTestRegistry();
|
|
233
281
|
exports.OperationHandlerTestSetup = {
|
|
234
282
|
configureHandlerTest: (handlerReference, handlerTestSetup) => {
|
|
235
283
|
const handlerTest = handlerTestSetup(new OperationHandlerTestAuthConfiguration(handlerReference));
|
|
@@ -5,6 +5,8 @@ class OperationHandlerValidation {
|
|
|
5
5
|
static emptyValidation() {
|
|
6
6
|
return new OperationHandlerValidation([], []);
|
|
7
7
|
}
|
|
8
|
+
inputValidation;
|
|
9
|
+
outputValidation;
|
|
8
10
|
constructor(inputValidation, outputValidation) {
|
|
9
11
|
this.inputValidation = inputValidation;
|
|
10
12
|
this.outputValidation = outputValidation;
|
|
@@ -18,6 +20,8 @@ class OperationHandlerValidation {
|
|
|
18
20
|
}
|
|
19
21
|
exports.OperationHandlerValidation = OperationHandlerValidation;
|
|
20
22
|
class OperationHandlerInputValidation {
|
|
23
|
+
condition;
|
|
24
|
+
errorMessage;
|
|
21
25
|
constructor(condition, errorMessage) {
|
|
22
26
|
this.condition = condition;
|
|
23
27
|
this.errorMessage = errorMessage;
|
|
@@ -25,6 +29,7 @@ class OperationHandlerInputValidation {
|
|
|
25
29
|
}
|
|
26
30
|
exports.OperationHandlerInputValidation = OperationHandlerInputValidation;
|
|
27
31
|
class OperationHandlerInputValidationErrorMessageConfiguration {
|
|
32
|
+
condition;
|
|
28
33
|
constructor(condition) {
|
|
29
34
|
this.condition = condition;
|
|
30
35
|
}
|
|
@@ -40,6 +45,8 @@ class OperationHandlerInputValidationConditionConfiguration {
|
|
|
40
45
|
}
|
|
41
46
|
exports.OperationHandlerInputValidationConditionConfiguration = OperationHandlerInputValidationConditionConfiguration;
|
|
42
47
|
class OperationHandlerOutputValidation {
|
|
48
|
+
condition;
|
|
49
|
+
errorMessage;
|
|
43
50
|
constructor(condition, errorMessage) {
|
|
44
51
|
this.condition = condition;
|
|
45
52
|
this.errorMessage = errorMessage;
|
|
@@ -47,6 +54,7 @@ class OperationHandlerOutputValidation {
|
|
|
47
54
|
}
|
|
48
55
|
exports.OperationHandlerOutputValidation = OperationHandlerOutputValidation;
|
|
49
56
|
class OperationHandlerOutputValidationErrorMessageConfiguration {
|
|
57
|
+
condition;
|
|
50
58
|
constructor(condition) {
|
|
51
59
|
this.condition = condition;
|
|
52
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trayio/cdk-dsl",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "A DSL for connector development",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": "./dist/*.js"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@trayio/commons": "3.
|
|
17
|
+
"@trayio/commons": "3.9.1"
|
|
18
18
|
},
|
|
19
19
|
"typesVersions": {
|
|
20
20
|
"*": {
|