@emilgroup/action-sdk-node 1.0.1-beta.47 → 1.0.1-beta.51
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 -3
- package/README.md +2 -2
- package/api/actions-api.ts +178 -249
- package/dist/api/actions-api.d.ts +125 -156
- package/dist/api/actions-api.js +107 -185
- package/dist/models/{export-actions-as-yaml-response-class.d.ts → action-ref-class.d.ts} +17 -5
- package/dist/models/action-version-class.d.ts +7 -0
- package/dist/models/index.d.ts +1 -3
- package/dist/models/index.js +1 -3
- package/models/{export-actions-as-yaml-response-class.ts → action-ref-class.ts} +17 -5
- package/models/action-version-class.ts +7 -0
- package/models/index.ts +1 -3
- package/package.json +1 -1
- package/dist/models/import-actions-from-yaml-request-dto.d.ts +0 -36
- package/dist/models/import-actions-from-yaml-request-dto.js +0 -15
- package/dist/models/import-actions-from-yaml-response-class.d.ts +0 -37
- package/dist/models/import-actions-from-yaml-response-class.js +0 -15
- package/models/import-actions-from-yaml-request-dto.ts +0 -42
- package/models/import-actions-from-yaml-response-class.ts +0 -43
- /package/dist/models/{export-actions-as-yaml-response-class.js → action-ref-class.js} +0 -0
package/dist/api/actions-api.js
CHANGED
|
@@ -241,70 +241,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
241
241
|
});
|
|
242
242
|
});
|
|
243
243
|
},
|
|
244
|
-
/**
|
|
245
|
-
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
246
|
-
* @summary Retrieve the entity-actions-yaml
|
|
247
|
-
* @param {string} productSlug Product slug
|
|
248
|
-
* @param {number} productVersionId Product version ID
|
|
249
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
|
-
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
251
|
-
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
252
|
-
* @param {*} [options] Override http request option.
|
|
253
|
-
* @throws {RequiredError}
|
|
254
|
-
*/
|
|
255
|
-
exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
|
|
256
|
-
if (options === void 0) { options = {}; }
|
|
257
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
258
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
259
|
-
return __generator(this, function (_a) {
|
|
260
|
-
switch (_a.label) {
|
|
261
|
-
case 0:
|
|
262
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
263
|
-
(0, common_1.assertParamExists)('exportActionsAsYaml', 'productSlug', productSlug);
|
|
264
|
-
// verify required parameter 'productVersionId' is not null or undefined
|
|
265
|
-
(0, common_1.assertParamExists)('exportActionsAsYaml', 'productVersionId', productVersionId);
|
|
266
|
-
localVarPath = "/actionservice/v1/actions/entity-actions-yaml";
|
|
267
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
268
|
-
if (configuration) {
|
|
269
|
-
baseOptions = configuration.baseOptions;
|
|
270
|
-
baseAccessToken = configuration.accessToken;
|
|
271
|
-
}
|
|
272
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
273
|
-
localVarHeaderParameter = {};
|
|
274
|
-
localVarQueryParameter = {};
|
|
275
|
-
// authentication bearer required
|
|
276
|
-
// http bearer authentication required
|
|
277
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
278
|
-
case 1:
|
|
279
|
-
// authentication bearer required
|
|
280
|
-
// http bearer authentication required
|
|
281
|
-
_a.sent();
|
|
282
|
-
if (productSlug !== undefined) {
|
|
283
|
-
localVarQueryParameter['productSlug'] = productSlug;
|
|
284
|
-
}
|
|
285
|
-
if (productVersionId !== undefined) {
|
|
286
|
-
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
287
|
-
}
|
|
288
|
-
if (actionSlugs) {
|
|
289
|
-
localVarQueryParameter['actionSlugs'] = actionSlugs;
|
|
290
|
-
}
|
|
291
|
-
if (includeDisabled !== undefined) {
|
|
292
|
-
localVarQueryParameter['includeDisabled'] = includeDisabled;
|
|
293
|
-
}
|
|
294
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
295
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
296
|
-
}
|
|
297
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
298
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
300
|
-
return [2 /*return*/, {
|
|
301
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
302
|
-
options: localVarRequestOptions,
|
|
303
|
-
}];
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
},
|
|
308
244
|
/**
|
|
309
245
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
310
246
|
* @summary Retrieve the action
|
|
@@ -410,29 +346,37 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
410
346
|
});
|
|
411
347
|
},
|
|
412
348
|
/**
|
|
413
|
-
*
|
|
414
|
-
* @summary
|
|
415
|
-
* @param {
|
|
349
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
350
|
+
* @summary List action versions
|
|
351
|
+
* @param {string} code Action code
|
|
416
352
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
354
|
+
* @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.
|
|
355
|
+
* @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, name, slug</i>
|
|
356
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
357
|
+
* @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>
|
|
358
|
+
* @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>
|
|
359
|
+
* @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, name, slug</i>
|
|
417
360
|
* @param {*} [options] Override http request option.
|
|
418
361
|
* @throws {RequiredError}
|
|
419
362
|
*/
|
|
420
|
-
|
|
363
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
421
364
|
if (options === void 0) { options = {}; }
|
|
422
365
|
return __awaiter(_this, void 0, void 0, function () {
|
|
423
366
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
424
367
|
return __generator(this, function (_a) {
|
|
425
368
|
switch (_a.label) {
|
|
426
369
|
case 0:
|
|
427
|
-
// verify required parameter '
|
|
428
|
-
(0, common_1.assertParamExists)('
|
|
429
|
-
localVarPath = "/actionservice/v1/actions/
|
|
370
|
+
// verify required parameter 'code' is not null or undefined
|
|
371
|
+
(0, common_1.assertParamExists)('listActionVersions', 'code', code);
|
|
372
|
+
localVarPath = "/actionservice/v1/actions/{code}/versions"
|
|
373
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
430
374
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
431
375
|
if (configuration) {
|
|
432
376
|
baseOptions = configuration.baseOptions;
|
|
433
377
|
baseAccessToken = configuration.accessToken;
|
|
434
378
|
}
|
|
435
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
379
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
436
380
|
localVarHeaderParameter = {};
|
|
437
381
|
localVarQueryParameter = {};
|
|
438
382
|
// authentication bearer required
|
|
@@ -442,14 +386,33 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
442
386
|
// authentication bearer required
|
|
443
387
|
// http bearer authentication required
|
|
444
388
|
_a.sent();
|
|
389
|
+
if (pageSize !== undefined) {
|
|
390
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
391
|
+
}
|
|
392
|
+
if (pageToken !== undefined) {
|
|
393
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
394
|
+
}
|
|
395
|
+
if (filter !== undefined) {
|
|
396
|
+
localVarQueryParameter['filter'] = filter;
|
|
397
|
+
}
|
|
398
|
+
if (search !== undefined) {
|
|
399
|
+
localVarQueryParameter['search'] = search;
|
|
400
|
+
}
|
|
401
|
+
if (order !== undefined) {
|
|
402
|
+
localVarQueryParameter['order'] = order;
|
|
403
|
+
}
|
|
404
|
+
if (expand !== undefined) {
|
|
405
|
+
localVarQueryParameter['expand'] = expand;
|
|
406
|
+
}
|
|
407
|
+
if (filters !== undefined) {
|
|
408
|
+
localVarQueryParameter['filters'] = filters;
|
|
409
|
+
}
|
|
445
410
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
446
411
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
447
412
|
}
|
|
448
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
449
413
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
450
414
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
451
415
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
452
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importActionsFromYamlRequestDto, localVarRequestOptions, configuration);
|
|
453
416
|
return [2 /*return*/, {
|
|
454
417
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
455
418
|
options: localVarRequestOptions,
|
|
@@ -459,31 +422,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
459
422
|
});
|
|
460
423
|
},
|
|
461
424
|
/**
|
|
462
|
-
* Lists all
|
|
463
|
-
* @summary List
|
|
464
|
-
* @param {string} code Action code
|
|
425
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
426
|
+
* @summary List actions
|
|
465
427
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
466
428
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
467
429
|
* @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.
|
|
468
|
-
* @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>
|
|
430
|
+
* @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, name, slug</i>
|
|
469
431
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
470
432
|
* @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>
|
|
471
433
|
* @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>
|
|
472
|
-
* @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>
|
|
434
|
+
* @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, name, slug</i>
|
|
473
435
|
* @param {*} [options] Override http request option.
|
|
474
436
|
* @throws {RequiredError}
|
|
475
437
|
*/
|
|
476
|
-
|
|
438
|
+
listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
477
439
|
if (options === void 0) { options = {}; }
|
|
478
440
|
return __awaiter(_this, void 0, void 0, function () {
|
|
479
441
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
480
442
|
return __generator(this, function (_a) {
|
|
481
443
|
switch (_a.label) {
|
|
482
444
|
case 0:
|
|
483
|
-
|
|
484
|
-
(0, common_1.assertParamExists)('listActionVersions', 'code', code);
|
|
485
|
-
localVarPath = "/actionservice/v1/actions/{code}/versions"
|
|
486
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
445
|
+
localVarPath = "/actionservice/v1/actions";
|
|
487
446
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
488
447
|
if (configuration) {
|
|
489
448
|
baseOptions = configuration.baseOptions;
|
|
@@ -535,27 +494,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
535
494
|
});
|
|
536
495
|
},
|
|
537
496
|
/**
|
|
538
|
-
* Lists all action
|
|
539
|
-
* @summary List
|
|
497
|
+
* Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
|
|
498
|
+
* @summary List action versions
|
|
540
499
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
541
500
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
542
501
|
* @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.
|
|
543
|
-
* @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>
|
|
502
|
+
* @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, name, slug</i>
|
|
544
503
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
545
504
|
* @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>
|
|
546
505
|
* @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>
|
|
547
|
-
* @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>
|
|
506
|
+
* @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, name, slug</i>
|
|
548
507
|
* @param {*} [options] Override http request option.
|
|
549
508
|
* @throws {RequiredError}
|
|
550
509
|
*/
|
|
551
|
-
|
|
510
|
+
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
552
511
|
if (options === void 0) { options = {}; }
|
|
553
512
|
return __awaiter(_this, void 0, void 0, function () {
|
|
554
513
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
555
514
|
return __generator(this, function (_a) {
|
|
556
515
|
switch (_a.label) {
|
|
557
516
|
case 0:
|
|
558
|
-
localVarPath = "/actionservice/v1/actions";
|
|
517
|
+
localVarPath = "/actionservice/v1/actions/versions";
|
|
559
518
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
560
519
|
if (configuration) {
|
|
561
520
|
baseOptions = configuration.baseOptions;
|
|
@@ -785,30 +744,6 @@ var ActionsApiFp = function (configuration) {
|
|
|
785
744
|
});
|
|
786
745
|
});
|
|
787
746
|
},
|
|
788
|
-
/**
|
|
789
|
-
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
790
|
-
* @summary Retrieve the entity-actions-yaml
|
|
791
|
-
* @param {string} productSlug Product slug
|
|
792
|
-
* @param {number} productVersionId Product version ID
|
|
793
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
794
|
-
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
795
|
-
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
796
|
-
* @param {*} [options] Override http request option.
|
|
797
|
-
* @throws {RequiredError}
|
|
798
|
-
*/
|
|
799
|
-
exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
|
|
800
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
801
|
-
var localVarAxiosArgs;
|
|
802
|
-
return __generator(this, function (_a) {
|
|
803
|
-
switch (_a.label) {
|
|
804
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options)];
|
|
805
|
-
case 1:
|
|
806
|
-
localVarAxiosArgs = _a.sent();
|
|
807
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
808
|
-
}
|
|
809
|
-
});
|
|
810
|
-
});
|
|
811
|
-
},
|
|
812
747
|
/**
|
|
813
748
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
814
749
|
* @summary Retrieve the action
|
|
@@ -854,19 +789,26 @@ var ActionsApiFp = function (configuration) {
|
|
|
854
789
|
});
|
|
855
790
|
},
|
|
856
791
|
/**
|
|
857
|
-
*
|
|
858
|
-
* @summary
|
|
859
|
-
* @param {
|
|
792
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
793
|
+
* @summary List action versions
|
|
794
|
+
* @param {string} code Action code
|
|
860
795
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
796
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
797
|
+
* @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.
|
|
798
|
+
* @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, name, slug</i>
|
|
799
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
800
|
+
* @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>
|
|
801
|
+
* @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>
|
|
802
|
+
* @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, name, slug</i>
|
|
861
803
|
* @param {*} [options] Override http request option.
|
|
862
804
|
* @throws {RequiredError}
|
|
863
805
|
*/
|
|
864
|
-
|
|
806
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
865
807
|
return __awaiter(this, void 0, void 0, function () {
|
|
866
808
|
var localVarAxiosArgs;
|
|
867
809
|
return __generator(this, function (_a) {
|
|
868
810
|
switch (_a.label) {
|
|
869
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
811
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
870
812
|
case 1:
|
|
871
813
|
localVarAxiosArgs = _a.sent();
|
|
872
814
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -875,26 +817,25 @@ var ActionsApiFp = function (configuration) {
|
|
|
875
817
|
});
|
|
876
818
|
},
|
|
877
819
|
/**
|
|
878
|
-
* Lists all
|
|
879
|
-
* @summary List
|
|
880
|
-
* @param {string} code Action code
|
|
820
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
821
|
+
* @summary List actions
|
|
881
822
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
882
823
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
883
824
|
* @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.
|
|
884
|
-
* @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>
|
|
825
|
+
* @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, name, slug</i>
|
|
885
826
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
886
827
|
* @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>
|
|
887
828
|
* @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>
|
|
888
|
-
* @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>
|
|
829
|
+
* @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, name, slug</i>
|
|
889
830
|
* @param {*} [options] Override http request option.
|
|
890
831
|
* @throws {RequiredError}
|
|
891
832
|
*/
|
|
892
|
-
|
|
833
|
+
listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
893
834
|
return __awaiter(this, void 0, void 0, function () {
|
|
894
835
|
var localVarAxiosArgs;
|
|
895
836
|
return __generator(this, function (_a) {
|
|
896
837
|
switch (_a.label) {
|
|
897
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
838
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
898
839
|
case 1:
|
|
899
840
|
localVarAxiosArgs = _a.sent();
|
|
900
841
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -903,25 +844,25 @@ var ActionsApiFp = function (configuration) {
|
|
|
903
844
|
});
|
|
904
845
|
},
|
|
905
846
|
/**
|
|
906
|
-
* Lists all action
|
|
907
|
-
* @summary List
|
|
847
|
+
* Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
|
|
848
|
+
* @summary List action versions
|
|
908
849
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
909
850
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
910
851
|
* @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.
|
|
911
|
-
* @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>
|
|
852
|
+
* @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, name, slug</i>
|
|
912
853
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
913
854
|
* @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>
|
|
914
855
|
* @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>
|
|
915
|
-
* @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>
|
|
856
|
+
* @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, name, slug</i>
|
|
916
857
|
* @param {*} [options] Override http request option.
|
|
917
858
|
* @throws {RequiredError}
|
|
918
859
|
*/
|
|
919
|
-
|
|
860
|
+
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
920
861
|
return __awaiter(this, void 0, void 0, function () {
|
|
921
862
|
var localVarAxiosArgs;
|
|
922
863
|
return __generator(this, function (_a) {
|
|
923
864
|
switch (_a.label) {
|
|
924
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
865
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
925
866
|
case 1:
|
|
926
867
|
localVarAxiosArgs = _a.sent();
|
|
927
868
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1016,20 +957,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1016
957
|
deleteActionVersion: function (versionCode, authorization, options) {
|
|
1017
958
|
return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1018
959
|
},
|
|
1019
|
-
/**
|
|
1020
|
-
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
1021
|
-
* @summary Retrieve the entity-actions-yaml
|
|
1022
|
-
* @param {string} productSlug Product slug
|
|
1023
|
-
* @param {number} productVersionId Product version ID
|
|
1024
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1025
|
-
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
1026
|
-
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
1027
|
-
* @param {*} [options] Override http request option.
|
|
1028
|
-
* @throws {RequiredError}
|
|
1029
|
-
*/
|
|
1030
|
-
exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
|
|
1031
|
-
return localVarFp.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options).then(function (request) { return request(axios, basePath); });
|
|
1032
|
-
},
|
|
1033
960
|
/**
|
|
1034
961
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
1035
962
|
* @summary Retrieve the action
|
|
@@ -1054,17 +981,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1054
981
|
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
1055
982
|
return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
1056
983
|
},
|
|
1057
|
-
/**
|
|
1058
|
-
* 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\"
|
|
1059
|
-
* @summary Update the entity-actions-yaml
|
|
1060
|
-
* @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
|
|
1061
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1062
|
-
* @param {*} [options] Override http request option.
|
|
1063
|
-
* @throws {RequiredError}
|
|
1064
|
-
*/
|
|
1065
|
-
importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
|
|
1066
|
-
return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1067
|
-
},
|
|
1068
984
|
/**
|
|
1069
985
|
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
1070
986
|
* @summary List action versions
|
|
@@ -1072,11 +988,11 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1072
988
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1073
989
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1074
990
|
* @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.
|
|
1075
|
-
* @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>
|
|
991
|
+
* @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, name, slug</i>
|
|
1076
992
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1077
993
|
* @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>
|
|
1078
994
|
* @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>
|
|
1079
|
-
* @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>
|
|
995
|
+
* @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, name, slug</i>
|
|
1080
996
|
* @param {*} [options] Override http request option.
|
|
1081
997
|
* @throws {RequiredError}
|
|
1082
998
|
*/
|
|
@@ -1089,17 +1005,34 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1089
1005
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1090
1006
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1091
1007
|
* @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.
|
|
1092
|
-
* @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>
|
|
1008
|
+
* @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, name, slug</i>
|
|
1093
1009
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1094
1010
|
* @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>
|
|
1095
1011
|
* @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>
|
|
1096
|
-
* @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>
|
|
1012
|
+
* @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, name, slug</i>
|
|
1097
1013
|
* @param {*} [options] Override http request option.
|
|
1098
1014
|
* @throws {RequiredError}
|
|
1099
1015
|
*/
|
|
1100
1016
|
listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1101
1017
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1102
1018
|
},
|
|
1019
|
+
/**
|
|
1020
|
+
* Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
|
|
1021
|
+
* @summary List action versions
|
|
1022
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1023
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1024
|
+
* @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.
|
|
1025
|
+
* @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, name, slug</i>
|
|
1026
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1027
|
+
* @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>
|
|
1028
|
+
* @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>
|
|
1029
|
+
* @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, name, slug</i>
|
|
1030
|
+
* @param {*} [options] Override http request option.
|
|
1031
|
+
* @throws {RequiredError}
|
|
1032
|
+
*/
|
|
1033
|
+
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1034
|
+
return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1035
|
+
},
|
|
1103
1036
|
/**
|
|
1104
1037
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1105
1038
|
* @summary Update the action
|
|
@@ -1174,18 +1107,6 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1174
1107
|
var _this = this;
|
|
1175
1108
|
return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1176
1109
|
};
|
|
1177
|
-
/**
|
|
1178
|
-
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
1179
|
-
* @summary Retrieve the entity-actions-yaml
|
|
1180
|
-
* @param {ActionsApiExportActionsAsYamlRequest} requestParameters Request parameters.
|
|
1181
|
-
* @param {*} [options] Override http request option.
|
|
1182
|
-
* @throws {RequiredError}
|
|
1183
|
-
* @memberof ActionsApi
|
|
1184
|
-
*/
|
|
1185
|
-
ActionsApi.prototype.exportActionsAsYaml = function (requestParameters, options) {
|
|
1186
|
-
var _this = this;
|
|
1187
|
-
return (0, exports.ActionsApiFp)(this.configuration).exportActionsAsYaml(requestParameters.productSlug, requestParameters.productVersionId, requestParameters.authorization, requestParameters.actionSlugs, requestParameters.includeDisabled, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1188
|
-
};
|
|
1189
1110
|
/**
|
|
1190
1111
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
1191
1112
|
* @summary Retrieve the action
|
|
@@ -1210,18 +1131,6 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1210
1131
|
var _this = this;
|
|
1211
1132
|
return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1212
1133
|
};
|
|
1213
|
-
/**
|
|
1214
|
-
* 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\"
|
|
1215
|
-
* @summary Update the entity-actions-yaml
|
|
1216
|
-
* @param {ActionsApiImportActionsFromYamlRequest} requestParameters Request parameters.
|
|
1217
|
-
* @param {*} [options] Override http request option.
|
|
1218
|
-
* @throws {RequiredError}
|
|
1219
|
-
* @memberof ActionsApi
|
|
1220
|
-
*/
|
|
1221
|
-
ActionsApi.prototype.importActionsFromYaml = function (requestParameters, options) {
|
|
1222
|
-
var _this = this;
|
|
1223
|
-
return (0, exports.ActionsApiFp)(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1224
|
-
};
|
|
1225
1134
|
/**
|
|
1226
1135
|
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
1227
1136
|
* @summary List action versions
|
|
@@ -1247,6 +1156,19 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1247
1156
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1248
1157
|
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); });
|
|
1249
1158
|
};
|
|
1159
|
+
/**
|
|
1160
|
+
* Lists all action versions. Use filters e.g. isActive==true, entityType==LEAD, name, slug. No parent action code required. **Required Permissions** \"action-management.actions.view\"
|
|
1161
|
+
* @summary List action versions
|
|
1162
|
+
* @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
|
|
1163
|
+
* @param {*} [options] Override http request option.
|
|
1164
|
+
* @throws {RequiredError}
|
|
1165
|
+
* @memberof ActionsApi
|
|
1166
|
+
*/
|
|
1167
|
+
ActionsApi.prototype.listAllActionVersions = function (requestParameters, options) {
|
|
1168
|
+
var _this = this;
|
|
1169
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1170
|
+
return (0, exports.ActionsApiFp)(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1171
|
+
};
|
|
1250
1172
|
/**
|
|
1251
1173
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1252
1174
|
* @summary Update the action
|
|
@@ -12,13 +12,25 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface ActionRefClass
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface ActionRefClass {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Action code
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof ActionRefClass
|
|
22
22
|
*/
|
|
23
|
-
'
|
|
23
|
+
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* Action name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ActionRefClass
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
* Action slug
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ActionRefClass
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
24
36
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ActionRefClass } from './action-ref-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -111,6 +112,12 @@ export interface ActionVersionClass {
|
|
|
111
112
|
* @memberof ActionVersionClass
|
|
112
113
|
*/
|
|
113
114
|
'updatedBy': string;
|
|
115
|
+
/**
|
|
116
|
+
* Parent action (code, name, slug). Set when listing versions so clients know which action each version belongs to.
|
|
117
|
+
* @type {ActionRefClass}
|
|
118
|
+
* @memberof ActionVersionClass
|
|
119
|
+
*/
|
|
120
|
+
'action'?: ActionRefClass;
|
|
114
121
|
}
|
|
115
122
|
export declare const ActionVersionClassEntityTypeEnum: {
|
|
116
123
|
readonly Policy: "POLICY";
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
export * from './action-class';
|
|
2
2
|
export * from './action-execution-class';
|
|
3
|
+
export * from './action-ref-class';
|
|
3
4
|
export * from './action-version-class';
|
|
4
5
|
export * from './create-action-request-dto';
|
|
5
6
|
export * from './create-action-response-class';
|
|
6
|
-
export * from './export-actions-as-yaml-response-class';
|
|
7
7
|
export * from './get-action-execution-status-response-class';
|
|
8
8
|
export * from './get-action-response-class';
|
|
9
9
|
export * from './get-action-version-response-class';
|
|
10
|
-
export * from './import-actions-from-yaml-request-dto';
|
|
11
|
-
export * from './import-actions-from-yaml-response-class';
|
|
12
10
|
export * from './inline-response200';
|
|
13
11
|
export * from './inline-response503';
|
|
14
12
|
export * from './list-action-executions-response-class';
|