@emilgroup/action-sdk 1.1.1-beta.23 → 1.1.1-beta.27

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.
@@ -237,70 +237,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
237
237
  });
238
238
  });
239
239
  },
240
- /**
241
- * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
242
- * @summary Retrieve the entity-actions-yaml
243
- * @param {string} productSlug Product slug
244
- * @param {number} productVersionId Product version ID
245
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
246
- * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
247
- * @param {boolean} [includeDisabled] Include draft (disabled) actions
248
- * @param {*} [options] Override http request option.
249
- * @throws {RequiredError}
250
- */
251
- exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
252
- if (options === void 0) { options = {}; }
253
- return __awaiter(_this, void 0, void 0, function () {
254
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
255
- return __generator(this, function (_a) {
256
- switch (_a.label) {
257
- case 0:
258
- // verify required parameter 'productSlug' is not null or undefined
259
- (0, common_1.assertParamExists)('exportActionsAsYaml', 'productSlug', productSlug);
260
- // verify required parameter 'productVersionId' is not null or undefined
261
- (0, common_1.assertParamExists)('exportActionsAsYaml', 'productVersionId', productVersionId);
262
- localVarPath = "/actionservice/v1/actions/entity-actions-yaml";
263
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
264
- if (configuration) {
265
- baseOptions = configuration.baseOptions;
266
- baseAccessToken = configuration.accessToken;
267
- }
268
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
269
- localVarHeaderParameter = {};
270
- localVarQueryParameter = {};
271
- // authentication bearer required
272
- // http bearer authentication required
273
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
274
- case 1:
275
- // authentication bearer required
276
- // http bearer authentication required
277
- _a.sent();
278
- if (productSlug !== undefined) {
279
- localVarQueryParameter['productSlug'] = productSlug;
280
- }
281
- if (productVersionId !== undefined) {
282
- localVarQueryParameter['productVersionId'] = productVersionId;
283
- }
284
- if (actionSlugs) {
285
- localVarQueryParameter['actionSlugs'] = actionSlugs;
286
- }
287
- if (includeDisabled !== undefined) {
288
- localVarQueryParameter['includeDisabled'] = includeDisabled;
289
- }
290
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
291
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
292
- }
293
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
294
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
- return [2 /*return*/, {
297
- url: (0, common_1.toPathString)(localVarUrlObj),
298
- options: localVarRequestOptions,
299
- }];
300
- }
301
- });
302
- });
303
- },
304
240
  /**
305
241
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
306
242
  * @summary Retrieve the action
@@ -406,29 +342,37 @@ var ActionsApiAxiosParamCreator = function (configuration) {
406
342
  });
407
343
  },
408
344
  /**
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\"
410
- * @summary Update the entity-actions-yaml
411
- * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
345
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
346
+ * @summary List action versions
347
+ * @param {string} code Action code
412
348
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
350
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
351
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
352
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
353
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
354
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
355
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
413
356
  * @param {*} [options] Override http request option.
414
357
  * @throws {RequiredError}
415
358
  */
416
- importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
359
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
417
360
  if (options === void 0) { options = {}; }
418
361
  return __awaiter(_this, void 0, void 0, function () {
419
362
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
420
363
  return __generator(this, function (_a) {
421
364
  switch (_a.label) {
422
365
  case 0:
423
- // verify required parameter 'importActionsFromYamlRequestDto' is not null or undefined
424
- (0, common_1.assertParamExists)('importActionsFromYaml', 'importActionsFromYamlRequestDto', importActionsFromYamlRequestDto);
425
- localVarPath = "/actionservice/v1/actions/entity-actions-yaml";
366
+ // verify required parameter 'code' is not null or undefined
367
+ (0, common_1.assertParamExists)('listActionVersions', 'code', code);
368
+ localVarPath = "/actionservice/v1/actions/{code}/versions"
369
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
426
370
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
427
371
  if (configuration) {
428
372
  baseOptions = configuration.baseOptions;
429
373
  baseAccessToken = configuration.accessToken;
430
374
  }
431
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
375
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
432
376
  localVarHeaderParameter = {};
433
377
  localVarQueryParameter = {};
434
378
  // authentication bearer required
@@ -438,14 +382,33 @@ var ActionsApiAxiosParamCreator = function (configuration) {
438
382
  // authentication bearer required
439
383
  // http bearer authentication required
440
384
  _a.sent();
385
+ if (pageSize !== undefined) {
386
+ localVarQueryParameter['pageSize'] = pageSize;
387
+ }
388
+ if (pageToken !== undefined) {
389
+ localVarQueryParameter['pageToken'] = pageToken;
390
+ }
391
+ if (filter !== undefined) {
392
+ localVarQueryParameter['filter'] = filter;
393
+ }
394
+ if (search !== undefined) {
395
+ localVarQueryParameter['search'] = search;
396
+ }
397
+ if (order !== undefined) {
398
+ localVarQueryParameter['order'] = order;
399
+ }
400
+ if (expand !== undefined) {
401
+ localVarQueryParameter['expand'] = expand;
402
+ }
403
+ if (filters !== undefined) {
404
+ localVarQueryParameter['filters'] = filters;
405
+ }
441
406
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
442
407
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
443
408
  }
444
- localVarHeaderParameter['Content-Type'] = 'application/json';
445
409
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
446
410
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
447
411
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
448
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importActionsFromYamlRequestDto, localVarRequestOptions, configuration);
449
412
  return [2 /*return*/, {
450
413
  url: (0, common_1.toPathString)(localVarUrlObj),
451
414
  options: localVarRequestOptions,
@@ -455,31 +418,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
455
418
  });
456
419
  },
457
420
  /**
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
421
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
422
+ * @summary List actions
461
423
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
462
424
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
463
425
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
464
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
426
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
465
427
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
466
428
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
467
429
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
468
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
430
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
469
431
  * @param {*} [options] Override http request option.
470
432
  * @throws {RequiredError}
471
433
  */
472
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
434
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
473
435
  if (options === void 0) { options = {}; }
474
436
  return __awaiter(_this, void 0, void 0, function () {
475
437
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
476
438
  return __generator(this, function (_a) {
477
439
  switch (_a.label) {
478
440
  case 0:
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)));
441
+ localVarPath = "/actionservice/v1/actions";
483
442
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
484
443
  if (configuration) {
485
444
  baseOptions = configuration.baseOptions;
@@ -531,27 +490,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
531
490
  });
532
491
  },
533
492
  /**
534
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
535
- * @summary List actions
493
+ * 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\"
494
+ * @summary List action versions
536
495
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
537
496
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
538
497
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
498
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
540
499
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
541
500
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
542
501
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
543
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
502
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
544
503
  * @param {*} [options] Override http request option.
545
504
  * @throws {RequiredError}
546
505
  */
547
- listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
506
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
548
507
  if (options === void 0) { options = {}; }
549
508
  return __awaiter(_this, void 0, void 0, function () {
550
509
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
551
510
  return __generator(this, function (_a) {
552
511
  switch (_a.label) {
553
512
  case 0:
554
- localVarPath = "/actionservice/v1/actions";
513
+ localVarPath = "/actionservice/v1/actions/versions";
555
514
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
556
515
  if (configuration) {
557
516
  baseOptions = configuration.baseOptions;
@@ -781,30 +740,6 @@ var ActionsApiFp = function (configuration) {
781
740
  });
782
741
  });
783
742
  },
784
- /**
785
- * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
786
- * @summary Retrieve the entity-actions-yaml
787
- * @param {string} productSlug Product slug
788
- * @param {number} productVersionId Product version ID
789
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
790
- * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
791
- * @param {boolean} [includeDisabled] Include draft (disabled) actions
792
- * @param {*} [options] Override http request option.
793
- * @throws {RequiredError}
794
- */
795
- exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
796
- return __awaiter(this, void 0, void 0, function () {
797
- var localVarAxiosArgs;
798
- return __generator(this, function (_a) {
799
- switch (_a.label) {
800
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options)];
801
- case 1:
802
- localVarAxiosArgs = _a.sent();
803
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
804
- }
805
- });
806
- });
807
- },
808
743
  /**
809
744
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
810
745
  * @summary Retrieve the action
@@ -850,19 +785,26 @@ var ActionsApiFp = function (configuration) {
850
785
  });
851
786
  },
852
787
  /**
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\"
854
- * @summary Update the entity-actions-yaml
855
- * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
788
+ * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
789
+ * @summary List action versions
790
+ * @param {string} code Action code
856
791
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
792
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
793
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
794
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
795
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
796
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
797
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
798
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
857
799
  * @param {*} [options] Override http request option.
858
800
  * @throws {RequiredError}
859
801
  */
860
- importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
802
+ listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
861
803
  return __awaiter(this, void 0, void 0, function () {
862
804
  var localVarAxiosArgs;
863
805
  return __generator(this, function (_a) {
864
806
  switch (_a.label) {
865
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options)];
807
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
866
808
  case 1:
867
809
  localVarAxiosArgs = _a.sent();
868
810
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -871,26 +813,25 @@ var ActionsApiFp = function (configuration) {
871
813
  });
872
814
  },
873
815
  /**
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
816
+ * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
817
+ * @summary List actions
877
818
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
878
819
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
879
820
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
821
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
881
822
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
882
823
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
883
824
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
884
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
825
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
885
826
  * @param {*} [options] Override http request option.
886
827
  * @throws {RequiredError}
887
828
  */
888
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
829
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
889
830
  return __awaiter(this, void 0, void 0, function () {
890
831
  var localVarAxiosArgs;
891
832
  return __generator(this, function (_a) {
892
833
  switch (_a.label) {
893
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
834
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
894
835
  case 1:
895
836
  localVarAxiosArgs = _a.sent();
896
837
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -899,25 +840,25 @@ var ActionsApiFp = function (configuration) {
899
840
  });
900
841
  },
901
842
  /**
902
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
903
- * @summary List actions
843
+ * 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\"
844
+ * @summary List action versions
904
845
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
905
846
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
906
847
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
907
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
848
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
908
849
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
909
850
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
910
851
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
911
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
852
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
912
853
  * @param {*} [options] Override http request option.
913
854
  * @throws {RequiredError}
914
855
  */
915
- listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
856
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
916
857
  return __awaiter(this, void 0, void 0, function () {
917
858
  var localVarAxiosArgs;
918
859
  return __generator(this, function (_a) {
919
860
  switch (_a.label) {
920
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
861
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
921
862
  case 1:
922
863
  localVarAxiosArgs = _a.sent();
923
864
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1012,20 +953,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1012
953
  deleteActionVersion: function (versionCode, authorization, options) {
1013
954
  return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
1014
955
  },
1015
- /**
1016
- * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
1017
- * @summary Retrieve the entity-actions-yaml
1018
- * @param {string} productSlug Product slug
1019
- * @param {number} productVersionId Product version ID
1020
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1021
- * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
1022
- * @param {boolean} [includeDisabled] Include draft (disabled) actions
1023
- * @param {*} [options] Override http request option.
1024
- * @throws {RequiredError}
1025
- */
1026
- exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
1027
- return localVarFp.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options).then(function (request) { return request(axios, basePath); });
1028
- },
1029
956
  /**
1030
957
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1031
958
  * @summary Retrieve the action
@@ -1050,17 +977,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1050
977
  getActionVersion: function (versionCode, authorization, expand, options) {
1051
978
  return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1052
979
  },
1053
- /**
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\"
1055
- * @summary Update the entity-actions-yaml
1056
- * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
1057
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1058
- * @param {*} [options] Override http request option.
1059
- * @throws {RequiredError}
1060
- */
1061
- importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
1062
- return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1063
- },
1064
980
  /**
1065
981
  * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1066
982
  * @summary List action versions
@@ -1068,11 +984,11 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1068
984
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1069
985
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1070
986
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
987
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1072
988
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1073
989
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1074
990
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1075
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
991
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1076
992
  * @param {*} [options] Override http request option.
1077
993
  * @throws {RequiredError}
1078
994
  */
@@ -1085,17 +1001,34 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1085
1001
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1086
1002
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1087
1003
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1088
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1004
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1089
1005
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1090
1006
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1091
1007
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1092
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1008
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1093
1009
  * @param {*} [options] Override http request option.
1094
1010
  * @throws {RequiredError}
1095
1011
  */
1096
1012
  listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1097
1013
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1098
1014
  },
1015
+ /**
1016
+ * 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\"
1017
+ * @summary List action versions
1018
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1019
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1020
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1021
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1022
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1023
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner&lt;/i&gt;
1024
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
1025
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug&lt;/i&gt;
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1030
+ return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1031
+ },
1099
1032
  /**
1100
1033
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1101
1034
  * @summary Update the action
@@ -1170,18 +1103,6 @@ var ActionsApi = /** @class */ (function (_super) {
1170
1103
  var _this = this;
1171
1104
  return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1172
1105
  };
1173
- /**
1174
- * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
1175
- * @summary Retrieve the entity-actions-yaml
1176
- * @param {ActionsApiExportActionsAsYamlRequest} requestParameters Request parameters.
1177
- * @param {*} [options] Override http request option.
1178
- * @throws {RequiredError}
1179
- * @memberof ActionsApi
1180
- */
1181
- ActionsApi.prototype.exportActionsAsYaml = function (requestParameters, options) {
1182
- var _this = this;
1183
- 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); });
1184
- };
1185
1106
  /**
1186
1107
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1187
1108
  * @summary Retrieve the action
@@ -1206,18 +1127,6 @@ var ActionsApi = /** @class */ (function (_super) {
1206
1127
  var _this = this;
1207
1128
  return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1208
1129
  };
1209
- /**
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\"
1211
- * @summary Update the entity-actions-yaml
1212
- * @param {ActionsApiImportActionsFromYamlRequest} requestParameters Request parameters.
1213
- * @param {*} [options] Override http request option.
1214
- * @throws {RequiredError}
1215
- * @memberof ActionsApi
1216
- */
1217
- ActionsApi.prototype.importActionsFromYaml = function (requestParameters, options) {
1218
- var _this = this;
1219
- return (0, exports.ActionsApiFp)(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1220
- };
1221
1130
  /**
1222
1131
  * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1223
1132
  * @summary List action versions
@@ -1243,6 +1152,19 @@ var ActionsApi = /** @class */ (function (_super) {
1243
1152
  if (requestParameters === void 0) { requestParameters = {}; }
1244
1153
  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); });
1245
1154
  };
1155
+ /**
1156
+ * 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\"
1157
+ * @summary List action versions
1158
+ * @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
1159
+ * @param {*} [options] Override http request option.
1160
+ * @throws {RequiredError}
1161
+ * @memberof ActionsApi
1162
+ */
1163
+ ActionsApi.prototype.listAllActionVersions = function (requestParameters, options) {
1164
+ var _this = this;
1165
+ if (requestParameters === void 0) { requestParameters = {}; }
1166
+ 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); });
1167
+ };
1246
1168
  /**
1247
1169
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1248
1170
  * @summary Update the action
@@ -12,13 +12,25 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface ExportActionsAsYamlResponseClass
15
+ * @interface ActionRefClass
16
16
  */
17
- export interface ExportActionsAsYamlResponseClass {
17
+ export interface ActionRefClass {
18
18
  /**
19
- * Serialized YAML for the product version (all entity types)
19
+ * Action code
20
20
  * @type {string}
21
- * @memberof ExportActionsAsYamlResponseClass
21
+ * @memberof ActionRefClass
22
22
  */
23
- 'yamlContent': string;
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";
@@ -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';