@emilgroup/action-sdk 1.8.1-beta.18 → 1.8.1-beta.21
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 +2 -2
- package/api/action-client-api.ts +36 -96
- package/api/actions-api.ts +27 -72
- package/api/executions-api.ts +9 -24
- package/api/health-api.ts +1 -1
- package/base.ts +43 -239
- package/common.ts +2 -3
- package/configuration.ts +0 -20
- package/dist/api/action-client-api.d.ts +12 -12
- package/dist/api/action-client-api.js +89 -152
- package/dist/api/actions-api.d.ts +9 -9
- package/dist/api/actions-api.js +67 -115
- package/dist/api/executions-api.d.ts +3 -3
- package/dist/api/executions-api.js +22 -37
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/base.d.ts +0 -26
- package/dist/base.js +60 -243
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/package.json +2 -2
|
@@ -103,10 +103,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createAction: function (createActionRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
switch (_b.label) {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
110
109
|
case 0:
|
|
111
110
|
// verify required parameter 'createActionRequestDto' is not null or undefined
|
|
112
111
|
(0, common_1.assertParamExists)('createAction', 'createActionRequestDto', createActionRequestDto);
|
|
@@ -121,19 +120,13 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
121
120
|
localVarQueryParameter = {};
|
|
122
121
|
// authentication bearer required
|
|
123
122
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
124
|
case 1:
|
|
129
125
|
// authentication bearer required
|
|
130
126
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
130
|
}
|
|
138
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,10 +152,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
159
152
|
deleteAction: function (code, authorization, options) {
|
|
160
153
|
if (options === void 0) { options = {}; }
|
|
161
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
switch (_b.label) {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
166
158
|
case 0:
|
|
167
159
|
// verify required parameter 'code' is not null or undefined
|
|
168
160
|
(0, common_1.assertParamExists)('deleteAction', 'code', code);
|
|
@@ -178,19 +170,13 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
178
170
|
localVarQueryParameter = {};
|
|
179
171
|
// authentication bearer required
|
|
180
172
|
// http bearer authentication required
|
|
181
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
-
];
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
185
174
|
case 1:
|
|
186
175
|
// authentication bearer required
|
|
187
176
|
// http bearer authentication required
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
194
180
|
}
|
|
195
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -214,10 +200,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
214
200
|
deleteActionVersion: function (versionCode, authorization, options) {
|
|
215
201
|
if (options === void 0) { options = {}; }
|
|
216
202
|
return __awaiter(_this, void 0, void 0, function () {
|
|
217
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
switch (_b.label) {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
221
206
|
case 0:
|
|
222
207
|
// verify required parameter 'versionCode' is not null or undefined
|
|
223
208
|
(0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
|
|
@@ -233,19 +218,13 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
233
218
|
localVarQueryParameter = {};
|
|
234
219
|
// authentication bearer required
|
|
235
220
|
// http bearer authentication required
|
|
236
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
237
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
238
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
239
|
-
];
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
240
222
|
case 1:
|
|
241
223
|
// authentication bearer required
|
|
242
224
|
// http bearer authentication required
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
247
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
248
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
249
228
|
}
|
|
250
229
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
251
230
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -270,10 +249,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
270
249
|
getAction: function (code, authorization, expand, options) {
|
|
271
250
|
if (options === void 0) { options = {}; }
|
|
272
251
|
return __awaiter(_this, void 0, void 0, function () {
|
|
273
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
switch (_b.label) {
|
|
252
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
253
|
+
return __generator(this, function (_a) {
|
|
254
|
+
switch (_a.label) {
|
|
277
255
|
case 0:
|
|
278
256
|
// verify required parameter 'code' is not null or undefined
|
|
279
257
|
(0, common_1.assertParamExists)('getAction', 'code', code);
|
|
@@ -293,15 +271,12 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
293
271
|
case 1:
|
|
294
272
|
// authentication bearer required
|
|
295
273
|
// http bearer authentication required
|
|
296
|
-
|
|
274
|
+
_a.sent();
|
|
297
275
|
if (expand !== undefined) {
|
|
298
276
|
localVarQueryParameter['expand'] = expand;
|
|
299
277
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
303
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
304
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
278
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
279
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
305
280
|
}
|
|
306
281
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
282
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -326,10 +301,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
326
301
|
getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
|
|
327
302
|
if (options === void 0) { options = {}; }
|
|
328
303
|
return __awaiter(_this, void 0, void 0, function () {
|
|
329
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
switch (_b.label) {
|
|
304
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
switch (_a.label) {
|
|
333
307
|
case 0:
|
|
334
308
|
localVarPath = "/actionservice/v1/actions/executions/status";
|
|
335
309
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -346,18 +320,15 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
346
320
|
case 1:
|
|
347
321
|
// authentication bearer required
|
|
348
322
|
// http bearer authentication required
|
|
349
|
-
|
|
323
|
+
_a.sent();
|
|
350
324
|
if (executionCode !== undefined) {
|
|
351
325
|
localVarQueryParameter['executionCode'] = executionCode;
|
|
352
326
|
}
|
|
353
327
|
if (correlationId !== undefined) {
|
|
354
328
|
localVarQueryParameter['correlationId'] = correlationId;
|
|
355
329
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
359
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
360
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
330
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
331
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
361
332
|
}
|
|
362
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
363
334
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -382,10 +353,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
382
353
|
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
383
354
|
if (options === void 0) { options = {}; }
|
|
384
355
|
return __awaiter(_this, void 0, void 0, function () {
|
|
385
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
switch (_b.label) {
|
|
356
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
357
|
+
return __generator(this, function (_a) {
|
|
358
|
+
switch (_a.label) {
|
|
389
359
|
case 0:
|
|
390
360
|
// verify required parameter 'versionCode' is not null or undefined
|
|
391
361
|
(0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
|
|
@@ -405,15 +375,12 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
405
375
|
case 1:
|
|
406
376
|
// authentication bearer required
|
|
407
377
|
// http bearer authentication required
|
|
408
|
-
|
|
378
|
+
_a.sent();
|
|
409
379
|
if (expand !== undefined) {
|
|
410
380
|
localVarQueryParameter['expand'] = expand;
|
|
411
381
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
415
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
416
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
382
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
383
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
417
384
|
}
|
|
418
385
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
419
386
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -443,10 +410,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
443
410
|
listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
444
411
|
if (options === void 0) { options = {}; }
|
|
445
412
|
return __awaiter(_this, void 0, void 0, function () {
|
|
446
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
switch (_b.label) {
|
|
413
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
414
|
+
return __generator(this, function (_a) {
|
|
415
|
+
switch (_a.label) {
|
|
450
416
|
case 0:
|
|
451
417
|
localVarPath = "/actionservice/v1/actions/executions";
|
|
452
418
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -463,7 +429,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
463
429
|
case 1:
|
|
464
430
|
// authentication bearer required
|
|
465
431
|
// http bearer authentication required
|
|
466
|
-
|
|
432
|
+
_a.sent();
|
|
467
433
|
if (pageSize !== undefined) {
|
|
468
434
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
469
435
|
}
|
|
@@ -485,11 +451,8 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
485
451
|
if (filters !== undefined) {
|
|
486
452
|
localVarQueryParameter['filters'] = filters;
|
|
487
453
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
491
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
492
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
454
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
455
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
493
456
|
}
|
|
494
457
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
495
458
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -520,10 +483,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
520
483
|
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
521
484
|
if (options === void 0) { options = {}; }
|
|
522
485
|
return __awaiter(_this, void 0, void 0, function () {
|
|
523
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
switch (_b.label) {
|
|
486
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
487
|
+
return __generator(this, function (_a) {
|
|
488
|
+
switch (_a.label) {
|
|
527
489
|
case 0:
|
|
528
490
|
// verify required parameter 'code' is not null or undefined
|
|
529
491
|
(0, common_1.assertParamExists)('listActionVersions', 'code', code);
|
|
@@ -543,7 +505,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
543
505
|
case 1:
|
|
544
506
|
// authentication bearer required
|
|
545
507
|
// http bearer authentication required
|
|
546
|
-
|
|
508
|
+
_a.sent();
|
|
547
509
|
if (pageSize !== undefined) {
|
|
548
510
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
549
511
|
}
|
|
@@ -565,11 +527,8 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
565
527
|
if (filters !== undefined) {
|
|
566
528
|
localVarQueryParameter['filters'] = filters;
|
|
567
529
|
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
571
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
572
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
530
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
531
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
573
532
|
}
|
|
574
533
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
575
534
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -599,10 +558,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
599
558
|
listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
600
559
|
if (options === void 0) { options = {}; }
|
|
601
560
|
return __awaiter(_this, void 0, void 0, function () {
|
|
602
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
switch (_b.label) {
|
|
561
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
562
|
+
return __generator(this, function (_a) {
|
|
563
|
+
switch (_a.label) {
|
|
606
564
|
case 0:
|
|
607
565
|
localVarPath = "/actionservice/v1/actions";
|
|
608
566
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -619,7 +577,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
619
577
|
case 1:
|
|
620
578
|
// authentication bearer required
|
|
621
579
|
// http bearer authentication required
|
|
622
|
-
|
|
580
|
+
_a.sent();
|
|
623
581
|
if (pageSize !== undefined) {
|
|
624
582
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
625
583
|
}
|
|
@@ -641,11 +599,8 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
641
599
|
if (filters !== undefined) {
|
|
642
600
|
localVarQueryParameter['filters'] = filters;
|
|
643
601
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
647
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
648
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
602
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
603
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
649
604
|
}
|
|
650
605
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
651
606
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -675,10 +630,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
675
630
|
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
676
631
|
if (options === void 0) { options = {}; }
|
|
677
632
|
return __awaiter(_this, void 0, void 0, function () {
|
|
678
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
switch (_b.label) {
|
|
633
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
634
|
+
return __generator(this, function (_a) {
|
|
635
|
+
switch (_a.label) {
|
|
682
636
|
case 0:
|
|
683
637
|
localVarPath = "/actionservice/v1/actions/versions";
|
|
684
638
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -695,7 +649,7 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
695
649
|
case 1:
|
|
696
650
|
// authentication bearer required
|
|
697
651
|
// http bearer authentication required
|
|
698
|
-
|
|
652
|
+
_a.sent();
|
|
699
653
|
if (pageSize !== undefined) {
|
|
700
654
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
701
655
|
}
|
|
@@ -717,11 +671,8 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
717
671
|
if (filters !== undefined) {
|
|
718
672
|
localVarQueryParameter['filters'] = filters;
|
|
719
673
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
723
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
724
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
674
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
675
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
725
676
|
}
|
|
726
677
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
727
678
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -745,10 +696,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
745
696
|
triggerAction: function (triggerActionRequestDto, authorization, options) {
|
|
746
697
|
if (options === void 0) { options = {}; }
|
|
747
698
|
return __awaiter(_this, void 0, void 0, function () {
|
|
748
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
switch (_b.label) {
|
|
699
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
700
|
+
return __generator(this, function (_a) {
|
|
701
|
+
switch (_a.label) {
|
|
752
702
|
case 0:
|
|
753
703
|
// verify required parameter 'triggerActionRequestDto' is not null or undefined
|
|
754
704
|
(0, common_1.assertParamExists)('triggerAction', 'triggerActionRequestDto', triggerActionRequestDto);
|
|
@@ -763,19 +713,13 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
763
713
|
localVarQueryParameter = {};
|
|
764
714
|
// authentication bearer required
|
|
765
715
|
// http bearer authentication required
|
|
766
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
767
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
768
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
769
|
-
];
|
|
716
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
770
717
|
case 1:
|
|
771
718
|
// authentication bearer required
|
|
772
719
|
// http bearer authentication required
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
777
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
778
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
720
|
+
_a.sent();
|
|
721
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
722
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
779
723
|
}
|
|
780
724
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
781
725
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -802,10 +746,9 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
802
746
|
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
803
747
|
if (options === void 0) { options = {}; }
|
|
804
748
|
return __awaiter(_this, void 0, void 0, function () {
|
|
805
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
switch (_b.label) {
|
|
749
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
750
|
+
return __generator(this, function (_a) {
|
|
751
|
+
switch (_a.label) {
|
|
809
752
|
case 0:
|
|
810
753
|
// verify required parameter 'code' is not null or undefined
|
|
811
754
|
(0, common_1.assertParamExists)('updateAction', 'code', code);
|
|
@@ -823,19 +766,13 @@ var ActionClientApiAxiosParamCreator = function (configuration) {
|
|
|
823
766
|
localVarQueryParameter = {};
|
|
824
767
|
// authentication bearer required
|
|
825
768
|
// http bearer authentication required
|
|
826
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
827
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
828
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
829
|
-
];
|
|
769
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
830
770
|
case 1:
|
|
831
771
|
// authentication bearer required
|
|
832
772
|
// http bearer authentication required
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
837
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
838
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
773
|
+
_a.sent();
|
|
774
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
775
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
839
776
|
}
|
|
840
777
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
841
778
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1336,7 +1273,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1336
1273
|
*/
|
|
1337
1274
|
ActionClientApi.prototype.createAction = function (requestParameters, options) {
|
|
1338
1275
|
var _this = this;
|
|
1339
|
-
return (0, exports.ActionClientApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization,
|
|
1276
|
+
return (0, exports.ActionClientApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1340
1277
|
};
|
|
1341
1278
|
/**
|
|
1342
1279
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
@@ -1348,7 +1285,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1348
1285
|
*/
|
|
1349
1286
|
ActionClientApi.prototype.deleteAction = function (requestParameters, options) {
|
|
1350
1287
|
var _this = this;
|
|
1351
|
-
return (0, exports.ActionClientApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization,
|
|
1288
|
+
return (0, exports.ActionClientApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1352
1289
|
};
|
|
1353
1290
|
/**
|
|
1354
1291
|
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
@@ -1360,7 +1297,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1360
1297
|
*/
|
|
1361
1298
|
ActionClientApi.prototype.deleteActionVersion = function (requestParameters, options) {
|
|
1362
1299
|
var _this = this;
|
|
1363
|
-
return (0, exports.ActionClientApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization,
|
|
1300
|
+
return (0, exports.ActionClientApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1364
1301
|
};
|
|
1365
1302
|
/**
|
|
1366
1303
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1372,7 +1309,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1372
1309
|
*/
|
|
1373
1310
|
ActionClientApi.prototype.getAction = function (requestParameters, options) {
|
|
1374
1311
|
var _this = this;
|
|
1375
|
-
return (0, exports.ActionClientApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand,
|
|
1312
|
+
return (0, exports.ActionClientApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1376
1313
|
};
|
|
1377
1314
|
/**
|
|
1378
1315
|
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1385,7 +1322,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1385
1322
|
ActionClientApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
|
|
1386
1323
|
var _this = this;
|
|
1387
1324
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1388
|
-
return (0, exports.ActionClientApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId,
|
|
1325
|
+
return (0, exports.ActionClientApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1389
1326
|
};
|
|
1390
1327
|
/**
|
|
1391
1328
|
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1397,7 +1334,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1397
1334
|
*/
|
|
1398
1335
|
ActionClientApi.prototype.getActionVersion = function (requestParameters, options) {
|
|
1399
1336
|
var _this = this;
|
|
1400
|
-
return (0, exports.ActionClientApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand,
|
|
1337
|
+
return (0, exports.ActionClientApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1401
1338
|
};
|
|
1402
1339
|
/**
|
|
1403
1340
|
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1410,7 +1347,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1410
1347
|
ActionClientApi.prototype.listActionExecutions = function (requestParameters, options) {
|
|
1411
1348
|
var _this = this;
|
|
1412
1349
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1413
|
-
return (0, exports.ActionClientApiFp)(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1350
|
+
return (0, exports.ActionClientApiFp)(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1414
1351
|
};
|
|
1415
1352
|
/**
|
|
1416
1353
|
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1422,7 +1359,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1422
1359
|
*/
|
|
1423
1360
|
ActionClientApi.prototype.listActionVersions = function (requestParameters, options) {
|
|
1424
1361
|
var _this = this;
|
|
1425
|
-
return (0, exports.ActionClientApiFp)(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1362
|
+
return (0, exports.ActionClientApiFp)(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1426
1363
|
};
|
|
1427
1364
|
/**
|
|
1428
1365
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1435,7 +1372,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1435
1372
|
ActionClientApi.prototype.listActions = function (requestParameters, options) {
|
|
1436
1373
|
var _this = this;
|
|
1437
1374
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1438
|
-
return (0, exports.ActionClientApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1375
|
+
return (0, exports.ActionClientApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1439
1376
|
};
|
|
1440
1377
|
/**
|
|
1441
1378
|
* Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1448,7 +1385,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1448
1385
|
ActionClientApi.prototype.listAllActionVersions = function (requestParameters, options) {
|
|
1449
1386
|
var _this = this;
|
|
1450
1387
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1451
|
-
return (0, exports.ActionClientApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1388
|
+
return (0, exports.ActionClientApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1452
1389
|
};
|
|
1453
1390
|
/**
|
|
1454
1391
|
* Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
|
|
@@ -1460,7 +1397,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1460
1397
|
*/
|
|
1461
1398
|
ActionClientApi.prototype.triggerAction = function (requestParameters, options) {
|
|
1462
1399
|
var _this = this;
|
|
1463
|
-
return (0, exports.ActionClientApiFp)(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization,
|
|
1400
|
+
return (0, exports.ActionClientApiFp)(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1464
1401
|
};
|
|
1465
1402
|
/**
|
|
1466
1403
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
@@ -1472,7 +1409,7 @@ var ActionClientApi = /** @class */ (function (_super) {
|
|
|
1472
1409
|
*/
|
|
1473
1410
|
ActionClientApi.prototype.updateAction = function (requestParameters, options) {
|
|
1474
1411
|
var _this = this;
|
|
1475
|
-
return (0, exports.ActionClientApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization,
|
|
1412
|
+
return (0, exports.ActionClientApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1476
1413
|
};
|
|
1477
1414
|
return ActionClientApi;
|
|
1478
1415
|
}(base_1.BaseAPI));
|