@emilgroup/action-sdk 1.1.1-beta.17 → 1.1.1-beta.23
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 +3 -0
- package/README.md +2 -2
- package/api/actions-api.ts +486 -99
- package/api/executions-api.ts +12 -12
- package/dist/api/actions-api.d.ts +296 -75
- package/dist/api/actions-api.js +374 -65
- package/dist/api/executions-api.d.ts +12 -12
- package/dist/api/executions-api.js +9 -9
- package/dist/models/action-class.d.ts +6 -59
- package/dist/models/action-execution-class.d.ts +7 -1
- package/dist/models/action-version-class.d.ts +120 -0
- package/dist/models/action-version-class.js +21 -0
- package/dist/models/create-action-request-dto.d.ts +1 -1
- package/dist/models/get-action-version-response-class.d.ts +25 -0
- package/dist/models/get-action-version-response-class.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/list-action-versions-response-class.d.ts +43 -0
- package/dist/models/list-action-versions-response-class.js +15 -0
- package/dist/models/trigger-action-request-dto.d.ts +6 -6
- package/dist/models/update-action-request-dto.d.ts +2 -2
- package/models/action-class.ts +6 -59
- package/models/action-execution-class.ts +7 -1
- package/models/action-version-class.ts +129 -0
- package/models/create-action-request-dto.ts +1 -1
- package/models/get-action-version-response-class.ts +31 -0
- package/models/index.ts +3 -0
- package/models/list-action-versions-response-class.ts +49 -0
- package/models/trigger-action-request-dto.ts +6 -6
- package/models/update-action-request-dto.ts +2 -2
- package/package.json +1 -1
package/dist/api/actions-api.js
CHANGED
|
@@ -189,6 +189,54 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
|
+
/**
|
|
193
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
194
|
+
* @summary Delete the action version
|
|
195
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
196
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
deleteActionVersion: function (versionCode, authorization, options) {
|
|
201
|
+
if (options === void 0) { options = {}; }
|
|
202
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0:
|
|
207
|
+
// verify required parameter 'versionCode' is not null or undefined
|
|
208
|
+
(0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
|
|
209
|
+
localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
|
|
210
|
+
.replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
|
|
211
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
217
|
+
localVarHeaderParameter = {};
|
|
218
|
+
localVarQueryParameter = {};
|
|
219
|
+
// authentication bearer required
|
|
220
|
+
// http bearer authentication required
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
222
|
+
case 1:
|
|
223
|
+
// authentication bearer required
|
|
224
|
+
// http bearer authentication required
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
|
+
}
|
|
229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
return [2 /*return*/, {
|
|
233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions,
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
},
|
|
192
240
|
/**
|
|
193
241
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
194
242
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -305,6 +353,58 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
305
353
|
});
|
|
306
354
|
});
|
|
307
355
|
},
|
|
356
|
+
/**
|
|
357
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
358
|
+
* @summary Retrieve the action version
|
|
359
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
360
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
|
+
* @param {string} [expand]
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
366
|
+
if (options === void 0) { options = {}; }
|
|
367
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
368
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
369
|
+
return __generator(this, function (_a) {
|
|
370
|
+
switch (_a.label) {
|
|
371
|
+
case 0:
|
|
372
|
+
// verify required parameter 'versionCode' is not null or undefined
|
|
373
|
+
(0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
|
|
374
|
+
localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
|
|
375
|
+
.replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
|
|
376
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
377
|
+
if (configuration) {
|
|
378
|
+
baseOptions = configuration.baseOptions;
|
|
379
|
+
baseAccessToken = configuration.accessToken;
|
|
380
|
+
}
|
|
381
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
382
|
+
localVarHeaderParameter = {};
|
|
383
|
+
localVarQueryParameter = {};
|
|
384
|
+
// authentication bearer required
|
|
385
|
+
// http bearer authentication required
|
|
386
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
387
|
+
case 1:
|
|
388
|
+
// authentication bearer required
|
|
389
|
+
// http bearer authentication required
|
|
390
|
+
_a.sent();
|
|
391
|
+
if (expand !== undefined) {
|
|
392
|
+
localVarQueryParameter['expand'] = expand;
|
|
393
|
+
}
|
|
394
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
395
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
396
|
+
}
|
|
397
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
398
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
399
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
400
|
+
return [2 /*return*/, {
|
|
401
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
402
|
+
options: localVarRequestOptions,
|
|
403
|
+
}];
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
});
|
|
407
|
+
},
|
|
308
408
|
/**
|
|
309
409
|
* Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
|
|
310
410
|
* @summary Update the entity-actions-yaml
|
|
@@ -355,27 +455,31 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
355
455
|
});
|
|
356
456
|
},
|
|
357
457
|
/**
|
|
358
|
-
* Lists all
|
|
359
|
-
* @summary List
|
|
458
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
459
|
+
* @summary List action versions
|
|
460
|
+
* @param {string} code Action code
|
|
360
461
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
462
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
362
463
|
* @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.
|
|
363
|
-
* @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,
|
|
464
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
364
465
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
365
|
-
* @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,
|
|
466
|
+
* @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
|
|
366
467
|
* @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/> <i>Allowed values: inputValidationSchema<i>
|
|
367
|
-
* @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,
|
|
468
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
368
469
|
* @param {*} [options] Override http request option.
|
|
369
470
|
* @throws {RequiredError}
|
|
370
471
|
*/
|
|
371
|
-
|
|
472
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
372
473
|
if (options === void 0) { options = {}; }
|
|
373
474
|
return __awaiter(_this, void 0, void 0, function () {
|
|
374
475
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
375
476
|
return __generator(this, function (_a) {
|
|
376
477
|
switch (_a.label) {
|
|
377
478
|
case 0:
|
|
378
|
-
|
|
479
|
+
// verify required parameter 'code' is not null or undefined
|
|
480
|
+
(0, common_1.assertParamExists)('listActionVersions', 'code', code);
|
|
481
|
+
localVarPath = "/actionservice/v1/actions/{code}/versions"
|
|
482
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
379
483
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
380
484
|
if (configuration) {
|
|
381
485
|
baseOptions = configuration.baseOptions;
|
|
@@ -427,28 +531,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
427
531
|
});
|
|
428
532
|
},
|
|
429
533
|
/**
|
|
430
|
-
* Lists
|
|
431
|
-
* @summary
|
|
432
|
-
* @param {string} entityCode Code of the entity (e.g. policy code, lead code)
|
|
433
|
-
* @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
|
|
534
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
535
|
+
* @summary List actions
|
|
434
536
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
435
|
-
* @param {
|
|
436
|
-
* @param {
|
|
537
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
538
|
+
* @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.
|
|
539
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
540
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
541
|
+
* @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
|
|
542
|
+
* @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/> <i>Allowed values: inputValidationSchema<i>
|
|
543
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
437
544
|
* @param {*} [options] Override http request option.
|
|
438
545
|
* @throws {RequiredError}
|
|
439
546
|
*/
|
|
440
|
-
|
|
547
|
+
listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
441
548
|
if (options === void 0) { options = {}; }
|
|
442
549
|
return __awaiter(_this, void 0, void 0, function () {
|
|
443
550
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
444
551
|
return __generator(this, function (_a) {
|
|
445
552
|
switch (_a.label) {
|
|
446
553
|
case 0:
|
|
447
|
-
|
|
448
|
-
(0, common_1.assertParamExists)('listActionsByEntity', 'entityCode', entityCode);
|
|
449
|
-
// verify required parameter 'entityType' is not null or undefined
|
|
450
|
-
(0, common_1.assertParamExists)('listActionsByEntity', 'entityType', entityType);
|
|
451
|
-
localVarPath = "/actionservice/v1/actions/by-entity";
|
|
554
|
+
localVarPath = "/actionservice/v1/actions";
|
|
452
555
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
453
556
|
if (configuration) {
|
|
454
557
|
baseOptions = configuration.baseOptions;
|
|
@@ -464,17 +567,26 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
464
567
|
// authentication bearer required
|
|
465
568
|
// http bearer authentication required
|
|
466
569
|
_a.sent();
|
|
467
|
-
if (
|
|
468
|
-
localVarQueryParameter['
|
|
570
|
+
if (pageSize !== undefined) {
|
|
571
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
469
572
|
}
|
|
470
|
-
if (
|
|
471
|
-
localVarQueryParameter['
|
|
573
|
+
if (pageToken !== undefined) {
|
|
574
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
472
575
|
}
|
|
473
|
-
if (
|
|
474
|
-
localVarQueryParameter['
|
|
576
|
+
if (filter !== undefined) {
|
|
577
|
+
localVarQueryParameter['filter'] = filter;
|
|
475
578
|
}
|
|
476
|
-
if (
|
|
477
|
-
localVarQueryParameter['
|
|
579
|
+
if (search !== undefined) {
|
|
580
|
+
localVarQueryParameter['search'] = search;
|
|
581
|
+
}
|
|
582
|
+
if (order !== undefined) {
|
|
583
|
+
localVarQueryParameter['order'] = order;
|
|
584
|
+
}
|
|
585
|
+
if (expand !== undefined) {
|
|
586
|
+
localVarQueryParameter['expand'] = expand;
|
|
587
|
+
}
|
|
588
|
+
if (filters !== undefined) {
|
|
589
|
+
localVarQueryParameter['filters'] = filters;
|
|
478
590
|
}
|
|
479
591
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
480
592
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
@@ -491,7 +603,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
491
603
|
});
|
|
492
604
|
},
|
|
493
605
|
/**
|
|
494
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
606
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
495
607
|
* @summary Update the action
|
|
496
608
|
* @param {string} code Action code
|
|
497
609
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -543,6 +655,59 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
543
655
|
});
|
|
544
656
|
});
|
|
545
657
|
},
|
|
658
|
+
/**
|
|
659
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
660
|
+
* @summary Update the action
|
|
661
|
+
* @param {string} code Action code
|
|
662
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
663
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
*/
|
|
667
|
+
updateAction_1: function (code, updateActionRequestDto, authorization, options) {
|
|
668
|
+
if (options === void 0) { options = {}; }
|
|
669
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
670
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
671
|
+
return __generator(this, function (_a) {
|
|
672
|
+
switch (_a.label) {
|
|
673
|
+
case 0:
|
|
674
|
+
// verify required parameter 'code' is not null or undefined
|
|
675
|
+
(0, common_1.assertParamExists)('updateAction_1', 'code', code);
|
|
676
|
+
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
677
|
+
(0, common_1.assertParamExists)('updateAction_1', 'updateActionRequestDto', updateActionRequestDto);
|
|
678
|
+
localVarPath = "/actionservice/v1/actions/{code}"
|
|
679
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
680
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
681
|
+
if (configuration) {
|
|
682
|
+
baseOptions = configuration.baseOptions;
|
|
683
|
+
baseAccessToken = configuration.accessToken;
|
|
684
|
+
}
|
|
685
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
686
|
+
localVarHeaderParameter = {};
|
|
687
|
+
localVarQueryParameter = {};
|
|
688
|
+
// authentication bearer required
|
|
689
|
+
// http bearer authentication required
|
|
690
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
691
|
+
case 1:
|
|
692
|
+
// authentication bearer required
|
|
693
|
+
// http bearer authentication required
|
|
694
|
+
_a.sent();
|
|
695
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
696
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
697
|
+
}
|
|
698
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
699
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
700
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
701
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
702
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
|
|
703
|
+
return [2 /*return*/, {
|
|
704
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
705
|
+
options: localVarRequestOptions,
|
|
706
|
+
}];
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
});
|
|
710
|
+
},
|
|
546
711
|
};
|
|
547
712
|
};
|
|
548
713
|
exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
|
|
@@ -595,6 +760,27 @@ var ActionsApiFp = function (configuration) {
|
|
|
595
760
|
});
|
|
596
761
|
});
|
|
597
762
|
},
|
|
763
|
+
/**
|
|
764
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
765
|
+
* @summary Delete the action version
|
|
766
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
767
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
768
|
+
* @param {*} [options] Override http request option.
|
|
769
|
+
* @throws {RequiredError}
|
|
770
|
+
*/
|
|
771
|
+
deleteActionVersion: function (versionCode, authorization, options) {
|
|
772
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
773
|
+
var localVarAxiosArgs;
|
|
774
|
+
return __generator(this, function (_a) {
|
|
775
|
+
switch (_a.label) {
|
|
776
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options)];
|
|
777
|
+
case 1:
|
|
778
|
+
localVarAxiosArgs = _a.sent();
|
|
779
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
});
|
|
783
|
+
},
|
|
598
784
|
/**
|
|
599
785
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
600
786
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -641,6 +827,28 @@ var ActionsApiFp = function (configuration) {
|
|
|
641
827
|
});
|
|
642
828
|
});
|
|
643
829
|
},
|
|
830
|
+
/**
|
|
831
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
832
|
+
* @summary Retrieve the action version
|
|
833
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
834
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
835
|
+
* @param {string} [expand]
|
|
836
|
+
* @param {*} [options] Override http request option.
|
|
837
|
+
* @throws {RequiredError}
|
|
838
|
+
*/
|
|
839
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
841
|
+
var localVarAxiosArgs;
|
|
842
|
+
return __generator(this, function (_a) {
|
|
843
|
+
switch (_a.label) {
|
|
844
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
|
|
845
|
+
case 1:
|
|
846
|
+
localVarAxiosArgs = _a.sent();
|
|
847
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
});
|
|
851
|
+
},
|
|
644
852
|
/**
|
|
645
853
|
* Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
|
|
646
854
|
* @summary Update the entity-actions-yaml
|
|
@@ -662,17 +870,45 @@ var ActionsApiFp = function (configuration) {
|
|
|
662
870
|
});
|
|
663
871
|
});
|
|
664
872
|
},
|
|
873
|
+
/**
|
|
874
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
875
|
+
* @summary List action versions
|
|
876
|
+
* @param {string} code Action code
|
|
877
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
878
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
879
|
+
* @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.
|
|
880
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
881
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
882
|
+
* @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
|
|
883
|
+
* @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/> <i>Allowed values: inputValidationSchema<i>
|
|
884
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
*/
|
|
888
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
889
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
890
|
+
var localVarAxiosArgs;
|
|
891
|
+
return __generator(this, function (_a) {
|
|
892
|
+
switch (_a.label) {
|
|
893
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
894
|
+
case 1:
|
|
895
|
+
localVarAxiosArgs = _a.sent();
|
|
896
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
});
|
|
900
|
+
},
|
|
665
901
|
/**
|
|
666
902
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
667
903
|
* @summary List actions
|
|
668
904
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
669
905
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
670
906
|
* @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.
|
|
671
|
-
* @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,
|
|
907
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
672
908
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
673
|
-
* @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,
|
|
909
|
+
* @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
|
|
674
910
|
* @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/> <i>Allowed values: inputValidationSchema<i>
|
|
675
|
-
* @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,
|
|
911
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
676
912
|
* @param {*} [options] Override http request option.
|
|
677
913
|
* @throws {RequiredError}
|
|
678
914
|
*/
|
|
@@ -690,22 +926,20 @@ var ActionsApiFp = function (configuration) {
|
|
|
690
926
|
});
|
|
691
927
|
},
|
|
692
928
|
/**
|
|
693
|
-
*
|
|
694
|
-
* @summary
|
|
695
|
-
* @param {string}
|
|
696
|
-
* @param {
|
|
929
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
930
|
+
* @summary Update the action
|
|
931
|
+
* @param {string} code Action code
|
|
932
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
697
933
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
698
|
-
* @param {boolean} [includeDisabled] Include disabled (draft) actions
|
|
699
|
-
* @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
|
|
700
934
|
* @param {*} [options] Override http request option.
|
|
701
935
|
* @throws {RequiredError}
|
|
702
936
|
*/
|
|
703
|
-
|
|
937
|
+
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
704
938
|
return __awaiter(this, void 0, void 0, function () {
|
|
705
939
|
var localVarAxiosArgs;
|
|
706
940
|
return __generator(this, function (_a) {
|
|
707
941
|
switch (_a.label) {
|
|
708
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
942
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options)];
|
|
709
943
|
case 1:
|
|
710
944
|
localVarAxiosArgs = _a.sent();
|
|
711
945
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -714,7 +948,7 @@ var ActionsApiFp = function (configuration) {
|
|
|
714
948
|
});
|
|
715
949
|
},
|
|
716
950
|
/**
|
|
717
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
951
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
718
952
|
* @summary Update the action
|
|
719
953
|
* @param {string} code Action code
|
|
720
954
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -722,12 +956,12 @@ var ActionsApiFp = function (configuration) {
|
|
|
722
956
|
* @param {*} [options] Override http request option.
|
|
723
957
|
* @throws {RequiredError}
|
|
724
958
|
*/
|
|
725
|
-
|
|
959
|
+
updateAction_1: function (code, updateActionRequestDto, authorization, options) {
|
|
726
960
|
return __awaiter(this, void 0, void 0, function () {
|
|
727
961
|
var localVarAxiosArgs;
|
|
728
962
|
return __generator(this, function (_a) {
|
|
729
963
|
switch (_a.label) {
|
|
730
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
964
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options)];
|
|
731
965
|
case 1:
|
|
732
966
|
localVarAxiosArgs = _a.sent();
|
|
733
967
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -767,6 +1001,17 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
767
1001
|
deleteAction: function (code, authorization, options) {
|
|
768
1002
|
return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
769
1003
|
},
|
|
1004
|
+
/**
|
|
1005
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
1006
|
+
* @summary Delete the action version
|
|
1007
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
1008
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
deleteActionVersion: function (versionCode, authorization, options) {
|
|
1013
|
+
return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1014
|
+
},
|
|
770
1015
|
/**
|
|
771
1016
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
772
1017
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -793,6 +1038,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
793
1038
|
getAction: function (code, authorization, expand, options) {
|
|
794
1039
|
return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
795
1040
|
},
|
|
1041
|
+
/**
|
|
1042
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
1043
|
+
* @summary Retrieve the action version
|
|
1044
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
1045
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1046
|
+
* @param {string} [expand]
|
|
1047
|
+
* @param {*} [options] Override http request option.
|
|
1048
|
+
* @throws {RequiredError}
|
|
1049
|
+
*/
|
|
1050
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
1051
|
+
return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
1052
|
+
},
|
|
796
1053
|
/**
|
|
797
1054
|
* Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
|
|
798
1055
|
* @summary Update the entity-actions-yaml
|
|
@@ -804,17 +1061,35 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
804
1061
|
importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
|
|
805
1062
|
return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
806
1063
|
},
|
|
1064
|
+
/**
|
|
1065
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
1066
|
+
* @summary List action versions
|
|
1067
|
+
* @param {string} code Action code
|
|
1068
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1069
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1070
|
+
* @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.
|
|
1071
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1072
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1073
|
+
* @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
|
|
1074
|
+
* @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/> <i>Allowed values: inputValidationSchema<i>
|
|
1075
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
*/
|
|
1079
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1080
|
+
return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1081
|
+
},
|
|
807
1082
|
/**
|
|
808
1083
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
809
1084
|
* @summary List actions
|
|
810
1085
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
811
1086
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
812
1087
|
* @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.
|
|
813
|
-
* @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,
|
|
1088
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
814
1089
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
815
|
-
* @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,
|
|
1090
|
+
* @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, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
|
|
816
1091
|
* @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/> <i>Allowed values: inputValidationSchema<i>
|
|
817
|
-
* @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,
|
|
1092
|
+
* @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, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
818
1093
|
* @param {*} [options] Override http request option.
|
|
819
1094
|
* @throws {RequiredError}
|
|
820
1095
|
*/
|
|
@@ -822,21 +1097,19 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
822
1097
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
823
1098
|
},
|
|
824
1099
|
/**
|
|
825
|
-
*
|
|
826
|
-
* @summary
|
|
827
|
-
* @param {string}
|
|
828
|
-
* @param {
|
|
1100
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1101
|
+
* @summary Update the action
|
|
1102
|
+
* @param {string} code Action code
|
|
1103
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
829
1104
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
830
|
-
* @param {boolean} [includeDisabled] Include disabled (draft) actions
|
|
831
|
-
* @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
|
|
832
1105
|
* @param {*} [options] Override http request option.
|
|
833
1106
|
* @throws {RequiredError}
|
|
834
1107
|
*/
|
|
835
|
-
|
|
836
|
-
return localVarFp.
|
|
1108
|
+
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
1109
|
+
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
837
1110
|
},
|
|
838
1111
|
/**
|
|
839
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1112
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
840
1113
|
* @summary Update the action
|
|
841
1114
|
* @param {string} code Action code
|
|
842
1115
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -844,8 +1117,8 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
844
1117
|
* @param {*} [options] Override http request option.
|
|
845
1118
|
* @throws {RequiredError}
|
|
846
1119
|
*/
|
|
847
|
-
|
|
848
|
-
return localVarFp.
|
|
1120
|
+
updateAction_1: function (code, updateActionRequestDto, authorization, options) {
|
|
1121
|
+
return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
849
1122
|
},
|
|
850
1123
|
};
|
|
851
1124
|
};
|
|
@@ -885,6 +1158,18 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
885
1158
|
var _this = this;
|
|
886
1159
|
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
887
1160
|
};
|
|
1161
|
+
/**
|
|
1162
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
1163
|
+
* @summary Delete the action version
|
|
1164
|
+
* @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
* @memberof ActionsApi
|
|
1168
|
+
*/
|
|
1169
|
+
ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
|
|
1170
|
+
var _this = this;
|
|
1171
|
+
return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1172
|
+
};
|
|
888
1173
|
/**
|
|
889
1174
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
890
1175
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -909,6 +1194,18 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
909
1194
|
var _this = this;
|
|
910
1195
|
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
911
1196
|
};
|
|
1197
|
+
/**
|
|
1198
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
1199
|
+
* @summary Retrieve the action version
|
|
1200
|
+
* @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
|
|
1201
|
+
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @throws {RequiredError}
|
|
1203
|
+
* @memberof ActionsApi
|
|
1204
|
+
*/
|
|
1205
|
+
ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
|
|
1206
|
+
var _this = this;
|
|
1207
|
+
return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1208
|
+
};
|
|
912
1209
|
/**
|
|
913
1210
|
* Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
|
|
914
1211
|
* @summary Update the entity-actions-yaml
|
|
@@ -921,6 +1218,18 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
921
1218
|
var _this = this;
|
|
922
1219
|
return (0, exports.ActionsApiFp)(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
923
1220
|
};
|
|
1221
|
+
/**
|
|
1222
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
1223
|
+
* @summary List action versions
|
|
1224
|
+
* @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
|
|
1225
|
+
* @param {*} [options] Override http request option.
|
|
1226
|
+
* @throws {RequiredError}
|
|
1227
|
+
* @memberof ActionsApi
|
|
1228
|
+
*/
|
|
1229
|
+
ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
|
|
1230
|
+
var _this = this;
|
|
1231
|
+
return (0, exports.ActionsApiFp)(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); });
|
|
1232
|
+
};
|
|
924
1233
|
/**
|
|
925
1234
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
926
1235
|
* @summary List actions
|
|
@@ -935,28 +1244,28 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
935
1244
|
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); });
|
|
936
1245
|
};
|
|
937
1246
|
/**
|
|
938
|
-
*
|
|
939
|
-
* @summary
|
|
940
|
-
* @param {
|
|
1247
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1248
|
+
* @summary Update the action
|
|
1249
|
+
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
941
1250
|
* @param {*} [options] Override http request option.
|
|
942
1251
|
* @throws {RequiredError}
|
|
943
1252
|
* @memberof ActionsApi
|
|
944
1253
|
*/
|
|
945
|
-
ActionsApi.prototype.
|
|
1254
|
+
ActionsApi.prototype.updateAction = function (requestParameters, options) {
|
|
946
1255
|
var _this = this;
|
|
947
|
-
return (0, exports.ActionsApiFp)(this.configuration).
|
|
1256
|
+
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
948
1257
|
};
|
|
949
1258
|
/**
|
|
950
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1259
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
951
1260
|
* @summary Update the action
|
|
952
|
-
* @param {
|
|
1261
|
+
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
953
1262
|
* @param {*} [options] Override http request option.
|
|
954
1263
|
* @throws {RequiredError}
|
|
955
1264
|
* @memberof ActionsApi
|
|
956
1265
|
*/
|
|
957
|
-
ActionsApi.prototype.
|
|
1266
|
+
ActionsApi.prototype.updateAction_1 = function (requestParameters, options) {
|
|
958
1267
|
var _this = this;
|
|
959
|
-
return (0, exports.ActionsApiFp)(this.configuration).
|
|
1268
|
+
return (0, exports.ActionsApiFp)(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
960
1269
|
};
|
|
961
1270
|
return ActionsApi;
|
|
962
1271
|
}(base_1.BaseAPI));
|