@emilgroup/action-sdk-node 1.0.1-beta.31 → 1.0.1-beta.32
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/actions-api.ts +635 -28
- package/api/executions-api.ts +368 -0
- package/api.ts +2 -0
- package/dist/api/actions-api.d.ts +366 -28
- package/dist/api/actions-api.js +533 -28
- package/dist/api/executions-api.d.ts +215 -0
- package/dist/api/executions-api.js +363 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/package.json +1 -1
package/dist/api/actions-api.js
CHANGED
|
@@ -97,7 +97,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* Creates a new action configuration
|
|
100
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
101
101
|
* @summary Create the action
|
|
102
102
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -146,7 +146,56 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
150
|
+
* @summary Create the action
|
|
151
|
+
* @param {CreateActionRequestDto} createActionRequestDto
|
|
152
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
createAction_1: function (createActionRequestDto, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0:
|
|
163
|
+
// verify required parameter 'createActionRequestDto' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('createAction_1', 'createActionRequestDto', createActionRequestDto);
|
|
165
|
+
localVarPath = "/actionservice/v1/actions";
|
|
166
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
baseAccessToken = configuration.accessToken;
|
|
170
|
+
}
|
|
171
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
172
|
+
localVarHeaderParameter = {};
|
|
173
|
+
localVarQueryParameter = {};
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
|
+
case 1:
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
_a.sent();
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
|
+
}
|
|
184
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActionRequestDto, localVarRequestOptions, configuration);
|
|
189
|
+
return [2 /*return*/, {
|
|
190
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
|
+
options: localVarRequestOptions,
|
|
192
|
+
}];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
150
199
|
* @summary Delete the action
|
|
151
200
|
* @param {string} code Action code
|
|
152
201
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -194,7 +243,55 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
194
243
|
});
|
|
195
244
|
},
|
|
196
245
|
/**
|
|
197
|
-
*
|
|
246
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
247
|
+
* @summary Delete the action
|
|
248
|
+
* @param {string} code Action code
|
|
249
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
deleteAction_2: function (code, authorization, options) {
|
|
254
|
+
if (options === void 0) { options = {}; }
|
|
255
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
256
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
257
|
+
return __generator(this, function (_a) {
|
|
258
|
+
switch (_a.label) {
|
|
259
|
+
case 0:
|
|
260
|
+
// verify required parameter 'code' is not null or undefined
|
|
261
|
+
(0, common_1.assertParamExists)('deleteAction_2', 'code', code);
|
|
262
|
+
localVarPath = "/actionservice/v1/actions/{code}"
|
|
263
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
264
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
265
|
+
if (configuration) {
|
|
266
|
+
baseOptions = configuration.baseOptions;
|
|
267
|
+
baseAccessToken = configuration.accessToken;
|
|
268
|
+
}
|
|
269
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
270
|
+
localVarHeaderParameter = {};
|
|
271
|
+
localVarQueryParameter = {};
|
|
272
|
+
// authentication bearer required
|
|
273
|
+
// http bearer authentication required
|
|
274
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
275
|
+
case 1:
|
|
276
|
+
// authentication bearer required
|
|
277
|
+
// http bearer authentication required
|
|
278
|
+
_a.sent();
|
|
279
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
280
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
281
|
+
}
|
|
282
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
283
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
284
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
285
|
+
return [2 /*return*/, {
|
|
286
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
287
|
+
options: localVarRequestOptions,
|
|
288
|
+
}];
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
198
295
|
* @summary Retrieve the action
|
|
199
296
|
* @param {string} code Action code
|
|
200
297
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -242,7 +339,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
242
339
|
});
|
|
243
340
|
},
|
|
244
341
|
/**
|
|
245
|
-
* Retrieves the latest action execution status by executionCode or correlationId
|
|
342
|
+
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
246
343
|
* @summary Retrieve the actionExecution
|
|
247
344
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
345
|
* @param {string} [executionCode] Action execution code
|
|
@@ -294,7 +391,55 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
294
391
|
});
|
|
295
392
|
},
|
|
296
393
|
/**
|
|
297
|
-
*
|
|
394
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
395
|
+
* @summary Retrieve the action
|
|
396
|
+
* @param {string} code Action code
|
|
397
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
getAction_3: function (code, authorization, options) {
|
|
402
|
+
if (options === void 0) { options = {}; }
|
|
403
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
404
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
405
|
+
return __generator(this, function (_a) {
|
|
406
|
+
switch (_a.label) {
|
|
407
|
+
case 0:
|
|
408
|
+
// verify required parameter 'code' is not null or undefined
|
|
409
|
+
(0, common_1.assertParamExists)('getAction_3', 'code', code);
|
|
410
|
+
localVarPath = "/actionservice/v1/actions/{code}"
|
|
411
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
412
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
413
|
+
if (configuration) {
|
|
414
|
+
baseOptions = configuration.baseOptions;
|
|
415
|
+
baseAccessToken = configuration.accessToken;
|
|
416
|
+
}
|
|
417
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
418
|
+
localVarHeaderParameter = {};
|
|
419
|
+
localVarQueryParameter = {};
|
|
420
|
+
// authentication bearer required
|
|
421
|
+
// http bearer authentication required
|
|
422
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
423
|
+
case 1:
|
|
424
|
+
// authentication bearer required
|
|
425
|
+
// http bearer authentication required
|
|
426
|
+
_a.sent();
|
|
427
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
428
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
429
|
+
}
|
|
430
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
431
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
432
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
433
|
+
return [2 /*return*/, {
|
|
434
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
435
|
+
options: localVarRequestOptions,
|
|
436
|
+
}];
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
298
443
|
* @summary List actionExecutions
|
|
299
444
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
300
445
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -366,7 +511,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
366
511
|
});
|
|
367
512
|
},
|
|
368
513
|
/**
|
|
369
|
-
* Lists all action configurations with optional filters
|
|
514
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
370
515
|
* @summary List actions
|
|
371
516
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
372
517
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -438,7 +583,79 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
438
583
|
});
|
|
439
584
|
},
|
|
440
585
|
/**
|
|
441
|
-
*
|
|
586
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
587
|
+
* @summary List actions
|
|
588
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
589
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
590
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
591
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
592
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
593
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
594
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
595
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
600
|
+
if (options === void 0) { options = {}; }
|
|
601
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
602
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
603
|
+
return __generator(this, function (_a) {
|
|
604
|
+
switch (_a.label) {
|
|
605
|
+
case 0:
|
|
606
|
+
localVarPath = "/actionservice/v1/actions";
|
|
607
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
608
|
+
if (configuration) {
|
|
609
|
+
baseOptions = configuration.baseOptions;
|
|
610
|
+
baseAccessToken = configuration.accessToken;
|
|
611
|
+
}
|
|
612
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
613
|
+
localVarHeaderParameter = {};
|
|
614
|
+
localVarQueryParameter = {};
|
|
615
|
+
// authentication bearer required
|
|
616
|
+
// http bearer authentication required
|
|
617
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
618
|
+
case 1:
|
|
619
|
+
// authentication bearer required
|
|
620
|
+
// http bearer authentication required
|
|
621
|
+
_a.sent();
|
|
622
|
+
if (pageSize !== undefined) {
|
|
623
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
624
|
+
}
|
|
625
|
+
if (pageToken !== undefined) {
|
|
626
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
627
|
+
}
|
|
628
|
+
if (filter !== undefined) {
|
|
629
|
+
localVarQueryParameter['filter'] = filter;
|
|
630
|
+
}
|
|
631
|
+
if (search !== undefined) {
|
|
632
|
+
localVarQueryParameter['search'] = search;
|
|
633
|
+
}
|
|
634
|
+
if (order !== undefined) {
|
|
635
|
+
localVarQueryParameter['order'] = order;
|
|
636
|
+
}
|
|
637
|
+
if (expand !== undefined) {
|
|
638
|
+
localVarQueryParameter['expand'] = expand;
|
|
639
|
+
}
|
|
640
|
+
if (filters !== undefined) {
|
|
641
|
+
localVarQueryParameter['filters'] = filters;
|
|
642
|
+
}
|
|
643
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
644
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
645
|
+
}
|
|
646
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
647
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
648
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
649
|
+
return [2 /*return*/, {
|
|
650
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
651
|
+
options: localVarRequestOptions,
|
|
652
|
+
}];
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
});
|
|
656
|
+
},
|
|
657
|
+
/**
|
|
658
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
442
659
|
* @summary Update the action
|
|
443
660
|
* @param {string} code Action code
|
|
444
661
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -490,6 +707,59 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
490
707
|
});
|
|
491
708
|
});
|
|
492
709
|
},
|
|
710
|
+
/**
|
|
711
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
712
|
+
* @summary Update the action
|
|
713
|
+
* @param {string} code Action code
|
|
714
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
715
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
updateAction_5: function (code, updateActionRequestDto, authorization, options) {
|
|
720
|
+
if (options === void 0) { options = {}; }
|
|
721
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
722
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
723
|
+
return __generator(this, function (_a) {
|
|
724
|
+
switch (_a.label) {
|
|
725
|
+
case 0:
|
|
726
|
+
// verify required parameter 'code' is not null or undefined
|
|
727
|
+
(0, common_1.assertParamExists)('updateAction_5', 'code', code);
|
|
728
|
+
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
729
|
+
(0, common_1.assertParamExists)('updateAction_5', 'updateActionRequestDto', updateActionRequestDto);
|
|
730
|
+
localVarPath = "/actionservice/v1/actions/{code}"
|
|
731
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
732
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
733
|
+
if (configuration) {
|
|
734
|
+
baseOptions = configuration.baseOptions;
|
|
735
|
+
baseAccessToken = configuration.accessToken;
|
|
736
|
+
}
|
|
737
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
738
|
+
localVarHeaderParameter = {};
|
|
739
|
+
localVarQueryParameter = {};
|
|
740
|
+
// authentication bearer required
|
|
741
|
+
// http bearer authentication required
|
|
742
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
743
|
+
case 1:
|
|
744
|
+
// authentication bearer required
|
|
745
|
+
// http bearer authentication required
|
|
746
|
+
_a.sent();
|
|
747
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
748
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
749
|
+
}
|
|
750
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
751
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
752
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
753
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
754
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
|
|
755
|
+
return [2 /*return*/, {
|
|
756
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
757
|
+
options: localVarRequestOptions,
|
|
758
|
+
}];
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
});
|
|
762
|
+
},
|
|
493
763
|
};
|
|
494
764
|
};
|
|
495
765
|
exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
|
|
@@ -501,7 +771,7 @@ var ActionsApiFp = function (configuration) {
|
|
|
501
771
|
var localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
|
|
502
772
|
return {
|
|
503
773
|
/**
|
|
504
|
-
* Creates a new action configuration
|
|
774
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
505
775
|
* @summary Create the action
|
|
506
776
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
507
777
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -522,7 +792,28 @@ var ActionsApiFp = function (configuration) {
|
|
|
522
792
|
});
|
|
523
793
|
},
|
|
524
794
|
/**
|
|
525
|
-
*
|
|
795
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
796
|
+
* @summary Create the action
|
|
797
|
+
* @param {CreateActionRequestDto} createActionRequestDto
|
|
798
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
createAction_1: function (createActionRequestDto, authorization, options) {
|
|
803
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
804
|
+
var localVarAxiosArgs;
|
|
805
|
+
return __generator(this, function (_a) {
|
|
806
|
+
switch (_a.label) {
|
|
807
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAction_1(createActionRequestDto, authorization, options)];
|
|
808
|
+
case 1:
|
|
809
|
+
localVarAxiosArgs = _a.sent();
|
|
810
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
811
|
+
}
|
|
812
|
+
});
|
|
813
|
+
});
|
|
814
|
+
},
|
|
815
|
+
/**
|
|
816
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
526
817
|
* @summary Delete the action
|
|
527
818
|
* @param {string} code Action code
|
|
528
819
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -543,7 +834,28 @@ var ActionsApiFp = function (configuration) {
|
|
|
543
834
|
});
|
|
544
835
|
},
|
|
545
836
|
/**
|
|
546
|
-
*
|
|
837
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
838
|
+
* @summary Delete the action
|
|
839
|
+
* @param {string} code Action code
|
|
840
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
*/
|
|
844
|
+
deleteAction_2: function (code, authorization, options) {
|
|
845
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
846
|
+
var localVarAxiosArgs;
|
|
847
|
+
return __generator(this, function (_a) {
|
|
848
|
+
switch (_a.label) {
|
|
849
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction_2(code, authorization, options)];
|
|
850
|
+
case 1:
|
|
851
|
+
localVarAxiosArgs = _a.sent();
|
|
852
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
853
|
+
}
|
|
854
|
+
});
|
|
855
|
+
});
|
|
856
|
+
},
|
|
857
|
+
/**
|
|
858
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
547
859
|
* @summary Retrieve the action
|
|
548
860
|
* @param {string} code Action code
|
|
549
861
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -564,7 +876,7 @@ var ActionsApiFp = function (configuration) {
|
|
|
564
876
|
});
|
|
565
877
|
},
|
|
566
878
|
/**
|
|
567
|
-
* Retrieves the latest action execution status by executionCode or correlationId
|
|
879
|
+
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
568
880
|
* @summary Retrieve the actionExecution
|
|
569
881
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
570
882
|
* @param {string} [executionCode] Action execution code
|
|
@@ -586,7 +898,28 @@ var ActionsApiFp = function (configuration) {
|
|
|
586
898
|
});
|
|
587
899
|
},
|
|
588
900
|
/**
|
|
589
|
-
*
|
|
901
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
902
|
+
* @summary Retrieve the action
|
|
903
|
+
* @param {string} code Action code
|
|
904
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
getAction_3: function (code, authorization, options) {
|
|
909
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
910
|
+
var localVarAxiosArgs;
|
|
911
|
+
return __generator(this, function (_a) {
|
|
912
|
+
switch (_a.label) {
|
|
913
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction_3(code, authorization, options)];
|
|
914
|
+
case 1:
|
|
915
|
+
localVarAxiosArgs = _a.sent();
|
|
916
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
917
|
+
}
|
|
918
|
+
});
|
|
919
|
+
});
|
|
920
|
+
},
|
|
921
|
+
/**
|
|
922
|
+
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
590
923
|
* @summary List actionExecutions
|
|
591
924
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
592
925
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -613,7 +946,7 @@ var ActionsApiFp = function (configuration) {
|
|
|
613
946
|
});
|
|
614
947
|
},
|
|
615
948
|
/**
|
|
616
|
-
* Lists all action configurations with optional filters
|
|
949
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
617
950
|
* @summary List actions
|
|
618
951
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
619
952
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -640,7 +973,34 @@ var ActionsApiFp = function (configuration) {
|
|
|
640
973
|
});
|
|
641
974
|
},
|
|
642
975
|
/**
|
|
643
|
-
*
|
|
976
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
977
|
+
* @summary List actions
|
|
978
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
979
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
980
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
981
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
982
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
983
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
984
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
985
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
986
|
+
* @param {*} [options] Override http request option.
|
|
987
|
+
* @throws {RequiredError}
|
|
988
|
+
*/
|
|
989
|
+
listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
990
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
991
|
+
var localVarAxiosArgs;
|
|
992
|
+
return __generator(this, function (_a) {
|
|
993
|
+
switch (_a.label) {
|
|
994
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
995
|
+
case 1:
|
|
996
|
+
localVarAxiosArgs = _a.sent();
|
|
997
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
});
|
|
1001
|
+
},
|
|
1002
|
+
/**
|
|
1003
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
644
1004
|
* @summary Update the action
|
|
645
1005
|
* @param {string} code Action code
|
|
646
1006
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -661,6 +1021,28 @@ var ActionsApiFp = function (configuration) {
|
|
|
661
1021
|
});
|
|
662
1022
|
});
|
|
663
1023
|
},
|
|
1024
|
+
/**
|
|
1025
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1026
|
+
* @summary Update the action
|
|
1027
|
+
* @param {string} code Action code
|
|
1028
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
1029
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1030
|
+
* @param {*} [options] Override http request option.
|
|
1031
|
+
* @throws {RequiredError}
|
|
1032
|
+
*/
|
|
1033
|
+
updateAction_5: function (code, updateActionRequestDto, authorization, options) {
|
|
1034
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1035
|
+
var localVarAxiosArgs;
|
|
1036
|
+
return __generator(this, function (_a) {
|
|
1037
|
+
switch (_a.label) {
|
|
1038
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options)];
|
|
1039
|
+
case 1:
|
|
1040
|
+
localVarAxiosArgs = _a.sent();
|
|
1041
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
});
|
|
1045
|
+
},
|
|
664
1046
|
};
|
|
665
1047
|
};
|
|
666
1048
|
exports.ActionsApiFp = ActionsApiFp;
|
|
@@ -672,7 +1054,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
672
1054
|
var localVarFp = (0, exports.ActionsApiFp)(configuration);
|
|
673
1055
|
return {
|
|
674
1056
|
/**
|
|
675
|
-
* Creates a new action configuration
|
|
1057
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
676
1058
|
* @summary Create the action
|
|
677
1059
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
678
1060
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -683,7 +1065,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
683
1065
|
return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
684
1066
|
},
|
|
685
1067
|
/**
|
|
686
|
-
*
|
|
1068
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
1069
|
+
* @summary Create the action
|
|
1070
|
+
* @param {CreateActionRequestDto} createActionRequestDto
|
|
1071
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1072
|
+
* @param {*} [options] Override http request option.
|
|
1073
|
+
* @throws {RequiredError}
|
|
1074
|
+
*/
|
|
1075
|
+
createAction_1: function (createActionRequestDto, authorization, options) {
|
|
1076
|
+
return localVarFp.createAction_1(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1077
|
+
},
|
|
1078
|
+
/**
|
|
1079
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
687
1080
|
* @summary Delete the action
|
|
688
1081
|
* @param {string} code Action code
|
|
689
1082
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -694,7 +1087,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
694
1087
|
return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
695
1088
|
},
|
|
696
1089
|
/**
|
|
697
|
-
*
|
|
1090
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
1091
|
+
* @summary Delete the action
|
|
1092
|
+
* @param {string} code Action code
|
|
1093
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1094
|
+
* @param {*} [options] Override http request option.
|
|
1095
|
+
* @throws {RequiredError}
|
|
1096
|
+
*/
|
|
1097
|
+
deleteAction_2: function (code, authorization, options) {
|
|
1098
|
+
return localVarFp.deleteAction_2(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1099
|
+
},
|
|
1100
|
+
/**
|
|
1101
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
698
1102
|
* @summary Retrieve the action
|
|
699
1103
|
* @param {string} code Action code
|
|
700
1104
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -705,7 +1109,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
705
1109
|
return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
706
1110
|
},
|
|
707
1111
|
/**
|
|
708
|
-
* Retrieves the latest action execution status by executionCode or correlationId
|
|
1112
|
+
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
709
1113
|
* @summary Retrieve the actionExecution
|
|
710
1114
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
711
1115
|
* @param {string} [executionCode] Action execution code
|
|
@@ -717,7 +1121,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
717
1121
|
return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
|
|
718
1122
|
},
|
|
719
1123
|
/**
|
|
720
|
-
*
|
|
1124
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
1125
|
+
* @summary Retrieve the action
|
|
1126
|
+
* @param {string} code Action code
|
|
1127
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
*/
|
|
1131
|
+
getAction_3: function (code, authorization, options) {
|
|
1132
|
+
return localVarFp.getAction_3(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1133
|
+
},
|
|
1134
|
+
/**
|
|
1135
|
+
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
721
1136
|
* @summary List actionExecutions
|
|
722
1137
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
723
1138
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -734,7 +1149,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
734
1149
|
return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
735
1150
|
},
|
|
736
1151
|
/**
|
|
737
|
-
* Lists all action configurations with optional filters
|
|
1152
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
738
1153
|
* @summary List actions
|
|
739
1154
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
740
1155
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -751,7 +1166,24 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
751
1166
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
752
1167
|
},
|
|
753
1168
|
/**
|
|
754
|
-
*
|
|
1169
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1170
|
+
* @summary List actions
|
|
1171
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1172
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1173
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1174
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1175
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1176
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
1177
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1178
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1183
|
+
return localVarFp.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1184
|
+
},
|
|
1185
|
+
/**
|
|
1186
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
755
1187
|
* @summary Update the action
|
|
756
1188
|
* @param {string} code Action code
|
|
757
1189
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -762,6 +1194,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
762
1194
|
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
763
1195
|
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
764
1196
|
},
|
|
1197
|
+
/**
|
|
1198
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1199
|
+
* @summary Update the action
|
|
1200
|
+
* @param {string} code Action code
|
|
1201
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
1202
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1203
|
+
* @param {*} [options] Override http request option.
|
|
1204
|
+
* @throws {RequiredError}
|
|
1205
|
+
*/
|
|
1206
|
+
updateAction_5: function (code, updateActionRequestDto, authorization, options) {
|
|
1207
|
+
return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1208
|
+
},
|
|
765
1209
|
};
|
|
766
1210
|
};
|
|
767
1211
|
exports.ActionsApiFactory = ActionsApiFactory;
|
|
@@ -777,7 +1221,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
777
1221
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
778
1222
|
}
|
|
779
1223
|
/**
|
|
780
|
-
* Creates a new action configuration
|
|
1224
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
781
1225
|
* @summary Create the action
|
|
782
1226
|
* @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
|
|
783
1227
|
* @param {*} [options] Override http request option.
|
|
@@ -789,7 +1233,19 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
789
1233
|
return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
790
1234
|
};
|
|
791
1235
|
/**
|
|
792
|
-
*
|
|
1236
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
1237
|
+
* @summary Create the action
|
|
1238
|
+
* @param {ActionsApiCreateAction0Request} requestParameters Request parameters.
|
|
1239
|
+
* @param {*} [options] Override http request option.
|
|
1240
|
+
* @throws {RequiredError}
|
|
1241
|
+
* @memberof ActionsApi
|
|
1242
|
+
*/
|
|
1243
|
+
ActionsApi.prototype.createAction_1 = function (requestParameters, options) {
|
|
1244
|
+
var _this = this;
|
|
1245
|
+
return (0, exports.ActionsApiFp)(this.configuration).createAction_1(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
793
1249
|
* @summary Delete the action
|
|
794
1250
|
* @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
|
|
795
1251
|
* @param {*} [options] Override http request option.
|
|
@@ -801,7 +1257,19 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
801
1257
|
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
802
1258
|
};
|
|
803
1259
|
/**
|
|
804
|
-
*
|
|
1260
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
1261
|
+
* @summary Delete the action
|
|
1262
|
+
* @param {ActionsApiDeleteAction0Request} requestParameters Request parameters.
|
|
1263
|
+
* @param {*} [options] Override http request option.
|
|
1264
|
+
* @throws {RequiredError}
|
|
1265
|
+
* @memberof ActionsApi
|
|
1266
|
+
*/
|
|
1267
|
+
ActionsApi.prototype.deleteAction_2 = function (requestParameters, options) {
|
|
1268
|
+
var _this = this;
|
|
1269
|
+
return (0, exports.ActionsApiFp)(this.configuration).deleteAction_2(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1270
|
+
};
|
|
1271
|
+
/**
|
|
1272
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
805
1273
|
* @summary Retrieve the action
|
|
806
1274
|
* @param {ActionsApiGetActionRequest} requestParameters Request parameters.
|
|
807
1275
|
* @param {*} [options] Override http request option.
|
|
@@ -813,7 +1281,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
813
1281
|
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
814
1282
|
};
|
|
815
1283
|
/**
|
|
816
|
-
* Retrieves the latest action execution status by executionCode or correlationId
|
|
1284
|
+
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
817
1285
|
* @summary Retrieve the actionExecution
|
|
818
1286
|
* @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
|
|
819
1287
|
* @param {*} [options] Override http request option.
|
|
@@ -826,7 +1294,19 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
826
1294
|
return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
827
1295
|
};
|
|
828
1296
|
/**
|
|
829
|
-
*
|
|
1297
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
1298
|
+
* @summary Retrieve the action
|
|
1299
|
+
* @param {ActionsApiGetAction0Request} requestParameters Request parameters.
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
* @memberof ActionsApi
|
|
1303
|
+
*/
|
|
1304
|
+
ActionsApi.prototype.getAction_3 = function (requestParameters, options) {
|
|
1305
|
+
var _this = this;
|
|
1306
|
+
return (0, exports.ActionsApiFp)(this.configuration).getAction_3(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1307
|
+
};
|
|
1308
|
+
/**
|
|
1309
|
+
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
830
1310
|
* @summary List actionExecutions
|
|
831
1311
|
* @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
|
|
832
1312
|
* @param {*} [options] Override http request option.
|
|
@@ -839,7 +1319,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
839
1319
|
return (0, exports.ActionsApiFp)(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); });
|
|
840
1320
|
};
|
|
841
1321
|
/**
|
|
842
|
-
* Lists all action configurations with optional filters
|
|
1322
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
843
1323
|
* @summary List actions
|
|
844
1324
|
* @param {ActionsApiListActionsRequest} requestParameters Request parameters.
|
|
845
1325
|
* @param {*} [options] Override http request option.
|
|
@@ -852,7 +1332,20 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
852
1332
|
return (0, exports.ActionsApiFp)(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); });
|
|
853
1333
|
};
|
|
854
1334
|
/**
|
|
855
|
-
*
|
|
1335
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1336
|
+
* @summary List actions
|
|
1337
|
+
* @param {ActionsApiListActions0Request} requestParameters Request parameters.
|
|
1338
|
+
* @param {*} [options] Override http request option.
|
|
1339
|
+
* @throws {RequiredError}
|
|
1340
|
+
* @memberof ActionsApi
|
|
1341
|
+
*/
|
|
1342
|
+
ActionsApi.prototype.listActions_4 = function (requestParameters, options) {
|
|
1343
|
+
var _this = this;
|
|
1344
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1345
|
+
return (0, exports.ActionsApiFp)(this.configuration).listActions_4(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); });
|
|
1346
|
+
};
|
|
1347
|
+
/**
|
|
1348
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
856
1349
|
* @summary Update the action
|
|
857
1350
|
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
858
1351
|
* @param {*} [options] Override http request option.
|
|
@@ -863,6 +1356,18 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
863
1356
|
var _this = this;
|
|
864
1357
|
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
865
1358
|
};
|
|
1359
|
+
/**
|
|
1360
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1361
|
+
* @summary Update the action
|
|
1362
|
+
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1363
|
+
* @param {*} [options] Override http request option.
|
|
1364
|
+
* @throws {RequiredError}
|
|
1365
|
+
* @memberof ActionsApi
|
|
1366
|
+
*/
|
|
1367
|
+
ActionsApi.prototype.updateAction_5 = function (requestParameters, options) {
|
|
1368
|
+
var _this = this;
|
|
1369
|
+
return (0, exports.ActionsApiFp)(this.configuration).updateAction_5(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1370
|
+
};
|
|
866
1371
|
return ActionsApi;
|
|
867
1372
|
}(base_1.BaseAPI));
|
|
868
1373
|
exports.ActionsApi = ActionsApi;
|