@emilgroup/action-sdk-node 1.0.1-beta.32 → 1.0.1-beta.36

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.
Files changed (37) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +150 -792
  4. package/api/executions-api.ts +119 -12
  5. package/dist/api/actions-api.d.ts +102 -466
  6. package/dist/api/actions-api.js +89 -609
  7. package/dist/api/executions-api.d.ts +69 -12
  8. package/dist/api/executions-api.js +102 -9
  9. package/dist/models/action-class.d.ts +38 -2
  10. package/dist/models/action-execution-class.d.ts +30 -0
  11. package/dist/models/create-action-request-dto.d.ts +31 -1
  12. package/dist/models/create-action-request-dto.js +6 -0
  13. package/dist/models/export-actions-as-yaml-response-class.d.ts +24 -0
  14. package/dist/models/export-actions-as-yaml-response-class.js +15 -0
  15. package/dist/models/import-actions-from-yaml-request-dto.d.ts +36 -0
  16. package/dist/models/import-actions-from-yaml-request-dto.js +15 -0
  17. package/dist/models/import-actions-from-yaml-response-class.d.ts +37 -0
  18. package/dist/models/import-actions-from-yaml-response-class.js +15 -0
  19. package/dist/models/index.d.ts +5 -0
  20. package/dist/models/index.js +5 -0
  21. package/dist/models/trigger-action-request-dto.d.ts +62 -0
  22. package/dist/models/trigger-action-request-dto.js +15 -0
  23. package/dist/models/trigger-action-response-class.d.ts +25 -0
  24. package/dist/models/trigger-action-response-class.js +15 -0
  25. package/dist/models/update-action-request-dto.d.ts +30 -0
  26. package/dist/models/update-action-request-dto.js +6 -0
  27. package/models/action-class.ts +38 -2
  28. package/models/action-execution-class.ts +30 -0
  29. package/models/create-action-request-dto.ts +34 -1
  30. package/models/export-actions-as-yaml-response-class.ts +30 -0
  31. package/models/import-actions-from-yaml-request-dto.ts +42 -0
  32. package/models/import-actions-from-yaml-response-class.ts +43 -0
  33. package/models/index.ts +5 -0
  34. package/models/trigger-action-request-dto.ts +66 -0
  35. package/models/trigger-action-response-class.ts +31 -0
  36. package/models/update-action-request-dto.ts +33 -0
  37. package/package.json +1 -1
@@ -145,55 +145,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
- /**
149
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
150
- * @summary Create the action
151
- * @param {CreateActionRequestDto} createActionRequestDto
152
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- createAction_1: function (createActionRequestDto, authorization, options) {
157
- if (options === void 0) { options = {}; }
158
- return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
162
- case 0:
163
- // verify required parameter 'createActionRequestDto' is not null or undefined
164
- (0, common_1.assertParamExists)('createAction_1', 'createActionRequestDto', createActionRequestDto);
165
- localVarPath = "/actionservice/v1/actions";
166
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
- if (configuration) {
168
- baseOptions = configuration.baseOptions;
169
- baseAccessToken = configuration.accessToken;
170
- }
171
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
172
- localVarHeaderParameter = {};
173
- localVarQueryParameter = {};
174
- // authentication bearer required
175
- // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
177
- case 1:
178
- // authentication bearer required
179
- // http bearer authentication required
180
- _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
- }
184
- localVarHeaderParameter['Content-Type'] = 'application/json';
185
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActionRequestDto, localVarRequestOptions, configuration);
189
- return [2 /*return*/, {
190
- url: (0, common_1.toPathString)(localVarUrlObj),
191
- options: localVarRequestOptions,
192
- }];
193
- }
194
- });
195
- });
196
- },
197
148
  /**
198
149
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
199
150
  * @summary Delete the action
@@ -243,72 +194,28 @@ var ActionsApiAxiosParamCreator = function (configuration) {
243
194
  });
244
195
  },
245
196
  /**
246
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
247
- * @summary Delete the action
248
- * @param {string} code Action code
197
+ * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
198
+ * @summary Retrieve the entity-actions-yaml
199
+ * @param {string} productSlug Product slug
200
+ * @param {number} productVersionId Product version ID
249
201
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
202
+ * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
203
+ * @param {boolean} [includeDisabled] Include draft (disabled) actions
250
204
  * @param {*} [options] Override http request option.
251
205
  * @throws {RequiredError}
252
206
  */
253
- deleteAction_2: function (code, authorization, options) {
207
+ exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
254
208
  if (options === void 0) { options = {}; }
255
209
  return __awaiter(_this, void 0, void 0, function () {
256
210
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
257
211
  return __generator(this, function (_a) {
258
212
  switch (_a.label) {
259
213
  case 0:
260
- // verify required parameter 'code' is not null or undefined
261
- (0, common_1.assertParamExists)('deleteAction_2', 'code', code);
262
- localVarPath = "/actionservice/v1/actions/{code}"
263
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
264
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
265
- if (configuration) {
266
- baseOptions = configuration.baseOptions;
267
- baseAccessToken = configuration.accessToken;
268
- }
269
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
270
- localVarHeaderParameter = {};
271
- localVarQueryParameter = {};
272
- // authentication bearer required
273
- // http bearer authentication required
274
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
275
- case 1:
276
- // authentication bearer required
277
- // http bearer authentication required
278
- _a.sent();
279
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
281
- }
282
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
283
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
285
- return [2 /*return*/, {
286
- url: (0, common_1.toPathString)(localVarUrlObj),
287
- options: localVarRequestOptions,
288
- }];
289
- }
290
- });
291
- });
292
- },
293
- /**
294
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
295
- * @summary Retrieve the action
296
- * @param {string} code Action code
297
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
298
- * @param {*} [options] Override http request option.
299
- * @throws {RequiredError}
300
- */
301
- getAction: function (code, authorization, options) {
302
- if (options === void 0) { options = {}; }
303
- return __awaiter(_this, void 0, void 0, function () {
304
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
305
- return __generator(this, function (_a) {
306
- switch (_a.label) {
307
- case 0:
308
- // verify required parameter 'code' is not null or undefined
309
- (0, common_1.assertParamExists)('getAction', 'code', code);
310
- localVarPath = "/actionservice/v1/actions/{code}"
311
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
214
+ // verify required parameter 'productSlug' is not null or undefined
215
+ (0, common_1.assertParamExists)('exportActionsAsYaml', 'productSlug', productSlug);
216
+ // verify required parameter 'productVersionId' is not null or undefined
217
+ (0, common_1.assertParamExists)('exportActionsAsYaml', 'productVersionId', productVersionId);
218
+ localVarPath = "/actionservice/v1/actions/entity-actions-yaml";
312
219
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
313
220
  if (configuration) {
314
221
  baseOptions = configuration.baseOptions;
@@ -324,57 +231,17 @@ var ActionsApiAxiosParamCreator = function (configuration) {
324
231
  // authentication bearer required
325
232
  // http bearer authentication required
326
233
  _a.sent();
327
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
328
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ if (productSlug !== undefined) {
235
+ localVarQueryParameter['productSlug'] = productSlug;
329
236
  }
330
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
331
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
332
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
333
- return [2 /*return*/, {
334
- url: (0, common_1.toPathString)(localVarUrlObj),
335
- options: localVarRequestOptions,
336
- }];
337
- }
338
- });
339
- });
340
- },
341
- /**
342
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
343
- * @summary Retrieve the actionExecution
344
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
- * @param {string} [executionCode] Action execution code
346
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
347
- * @param {*} [options] Override http request option.
348
- * @throws {RequiredError}
349
- */
350
- getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
351
- if (options === void 0) { options = {}; }
352
- return __awaiter(_this, void 0, void 0, function () {
353
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
354
- return __generator(this, function (_a) {
355
- switch (_a.label) {
356
- case 0:
357
- localVarPath = "/actionservice/v1/actions/executions/status";
358
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
359
- if (configuration) {
360
- baseOptions = configuration.baseOptions;
361
- baseAccessToken = configuration.accessToken;
237
+ if (productVersionId !== undefined) {
238
+ localVarQueryParameter['productVersionId'] = productVersionId;
362
239
  }
363
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
364
- localVarHeaderParameter = {};
365
- localVarQueryParameter = {};
366
- // authentication bearer required
367
- // http bearer authentication required
368
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
369
- case 1:
370
- // authentication bearer required
371
- // http bearer authentication required
372
- _a.sent();
373
- if (executionCode !== undefined) {
374
- localVarQueryParameter['executionCode'] = executionCode;
240
+ if (actionSlugs) {
241
+ localVarQueryParameter['actionSlugs'] = actionSlugs;
375
242
  }
376
- if (correlationId !== undefined) {
377
- localVarQueryParameter['correlationId'] = correlationId;
243
+ if (includeDisabled !== undefined) {
244
+ localVarQueryParameter['includeDisabled'] = includeDisabled;
378
245
  }
379
246
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
380
247
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
@@ -395,10 +262,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
395
262
  * @summary Retrieve the action
396
263
  * @param {string} code Action code
397
264
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
265
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
398
266
  * @param {*} [options] Override http request option.
399
267
  * @throws {RequiredError}
400
268
  */
401
- getAction_3: function (code, authorization, options) {
269
+ getAction: function (code, authorization, expand, options) {
402
270
  if (options === void 0) { options = {}; }
403
271
  return __awaiter(_this, void 0, void 0, function () {
404
272
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -406,7 +274,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
406
274
  switch (_a.label) {
407
275
  case 0:
408
276
  // verify required parameter 'code' is not null or undefined
409
- (0, common_1.assertParamExists)('getAction_3', 'code', code);
277
+ (0, common_1.assertParamExists)('getAction', 'code', code);
410
278
  localVarPath = "/actionservice/v1/actions/{code}"
411
279
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
412
280
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -424,78 +292,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
424
292
  // authentication bearer required
425
293
  // http bearer authentication required
426
294
  _a.sent();
427
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
428
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
429
- }
430
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
431
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
432
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
433
- return [2 /*return*/, {
434
- url: (0, common_1.toPathString)(localVarUrlObj),
435
- options: localVarRequestOptions,
436
- }];
437
- }
438
- });
439
- });
440
- },
441
- /**
442
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
443
- * @summary List actionExecutions
444
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
445
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
446
- * @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.
447
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
448
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
449
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
450
- * @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;
451
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
452
- * @param {*} [options] Override http request option.
453
- * @throws {RequiredError}
454
- */
455
- listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
456
- if (options === void 0) { options = {}; }
457
- return __awaiter(_this, void 0, void 0, function () {
458
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
459
- return __generator(this, function (_a) {
460
- switch (_a.label) {
461
- case 0:
462
- localVarPath = "/actionservice/v1/actions/executions";
463
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
464
- if (configuration) {
465
- baseOptions = configuration.baseOptions;
466
- baseAccessToken = configuration.accessToken;
467
- }
468
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
469
- localVarHeaderParameter = {};
470
- localVarQueryParameter = {};
471
- // authentication bearer required
472
- // http bearer authentication required
473
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
474
- case 1:
475
- // authentication bearer required
476
- // http bearer authentication required
477
- _a.sent();
478
- if (pageSize !== undefined) {
479
- localVarQueryParameter['pageSize'] = pageSize;
480
- }
481
- if (pageToken !== undefined) {
482
- localVarQueryParameter['pageToken'] = pageToken;
483
- }
484
- if (filter !== undefined) {
485
- localVarQueryParameter['filter'] = filter;
486
- }
487
- if (search !== undefined) {
488
- localVarQueryParameter['search'] = search;
489
- }
490
- if (order !== undefined) {
491
- localVarQueryParameter['order'] = order;
492
- }
493
295
  if (expand !== undefined) {
494
296
  localVarQueryParameter['expand'] = expand;
495
297
  }
496
- if (filters !== undefined) {
497
- localVarQueryParameter['filters'] = filters;
498
- }
499
298
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
500
299
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
501
300
  }
@@ -511,33 +310,29 @@ var ActionsApiAxiosParamCreator = function (configuration) {
511
310
  });
512
311
  },
513
312
  /**
514
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
515
- * @summary List actions
313
+ * 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\"
314
+ * @summary Update the entity-actions-yaml
315
+ * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
516
316
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
517
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
518
- * @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.
519
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
520
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
521
- * @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, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
522
- * @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;
523
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
524
317
  * @param {*} [options] Override http request option.
525
318
  * @throws {RequiredError}
526
319
  */
527
- listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
320
+ importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
528
321
  if (options === void 0) { options = {}; }
529
322
  return __awaiter(_this, void 0, void 0, function () {
530
323
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
531
324
  return __generator(this, function (_a) {
532
325
  switch (_a.label) {
533
326
  case 0:
534
- localVarPath = "/actionservice/v1/actions";
327
+ // verify required parameter 'importActionsFromYamlRequestDto' is not null or undefined
328
+ (0, common_1.assertParamExists)('importActionsFromYaml', 'importActionsFromYamlRequestDto', importActionsFromYamlRequestDto);
329
+ localVarPath = "/actionservice/v1/actions/entity-actions-yaml";
535
330
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
536
331
  if (configuration) {
537
332
  baseOptions = configuration.baseOptions;
538
333
  baseAccessToken = configuration.accessToken;
539
334
  }
540
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
335
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
541
336
  localVarHeaderParameter = {};
542
337
  localVarQueryParameter = {};
543
338
  // authentication bearer required
@@ -547,33 +342,14 @@ var ActionsApiAxiosParamCreator = function (configuration) {
547
342
  // authentication bearer required
548
343
  // http bearer authentication required
549
344
  _a.sent();
550
- if (pageSize !== undefined) {
551
- localVarQueryParameter['pageSize'] = pageSize;
552
- }
553
- if (pageToken !== undefined) {
554
- localVarQueryParameter['pageToken'] = pageToken;
555
- }
556
- if (filter !== undefined) {
557
- localVarQueryParameter['filter'] = filter;
558
- }
559
- if (search !== undefined) {
560
- localVarQueryParameter['search'] = search;
561
- }
562
- if (order !== undefined) {
563
- localVarQueryParameter['order'] = order;
564
- }
565
- if (expand !== undefined) {
566
- localVarQueryParameter['expand'] = expand;
567
- }
568
- if (filters !== undefined) {
569
- localVarQueryParameter['filters'] = filters;
570
- }
571
345
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
572
346
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
573
347
  }
348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
574
349
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
575
350
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
576
351
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
352
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importActionsFromYamlRequestDto, localVarRequestOptions, configuration);
577
353
  return [2 /*return*/, {
578
354
  url: (0, common_1.toPathString)(localVarUrlObj),
579
355
  options: localVarRequestOptions,
@@ -588,15 +364,15 @@ var ActionsApiAxiosParamCreator = function (configuration) {
588
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
589
365
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
590
366
  * @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.
591
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
367
+ * @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, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
592
368
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
593
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
594
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
595
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
369
+ * @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, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
370
+ * @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;
371
+ * @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, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
596
372
  * @param {*} [options] Override http request option.
597
373
  * @throws {RequiredError}
598
374
  */
599
- listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
375
+ listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
600
376
  if (options === void 0) { options = {}; }
601
377
  return __awaiter(_this, void 0, void 0, function () {
602
378
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -707,59 +483,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
707
483
  });
708
484
  });
709
485
  },
710
- /**
711
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
712
- * @summary Update the action
713
- * @param {string} code Action code
714
- * @param {UpdateActionRequestDto} updateActionRequestDto
715
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
716
- * @param {*} [options] Override http request option.
717
- * @throws {RequiredError}
718
- */
719
- updateAction_5: function (code, updateActionRequestDto, authorization, options) {
720
- if (options === void 0) { options = {}; }
721
- return __awaiter(_this, void 0, void 0, function () {
722
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
723
- return __generator(this, function (_a) {
724
- switch (_a.label) {
725
- case 0:
726
- // verify required parameter 'code' is not null or undefined
727
- (0, common_1.assertParamExists)('updateAction_5', 'code', code);
728
- // verify required parameter 'updateActionRequestDto' is not null or undefined
729
- (0, common_1.assertParamExists)('updateAction_5', 'updateActionRequestDto', updateActionRequestDto);
730
- localVarPath = "/actionservice/v1/actions/{code}"
731
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
732
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
733
- if (configuration) {
734
- baseOptions = configuration.baseOptions;
735
- baseAccessToken = configuration.accessToken;
736
- }
737
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
738
- localVarHeaderParameter = {};
739
- localVarQueryParameter = {};
740
- // authentication bearer required
741
- // http bearer authentication required
742
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
743
- case 1:
744
- // authentication bearer required
745
- // http bearer authentication required
746
- _a.sent();
747
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
748
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
749
- }
750
- localVarHeaderParameter['Content-Type'] = 'application/json';
751
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
752
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
753
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
754
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
755
- return [2 /*return*/, {
756
- url: (0, common_1.toPathString)(localVarUrlObj),
757
- options: localVarRequestOptions,
758
- }];
759
- }
760
- });
761
- });
762
- },
763
486
  };
764
487
  };
765
488
  exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
@@ -791,27 +514,6 @@ var ActionsApiFp = function (configuration) {
791
514
  });
792
515
  });
793
516
  },
794
- /**
795
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
796
- * @summary Create the action
797
- * @param {CreateActionRequestDto} createActionRequestDto
798
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
799
- * @param {*} [options] Override http request option.
800
- * @throws {RequiredError}
801
- */
802
- createAction_1: function (createActionRequestDto, authorization, options) {
803
- return __awaiter(this, void 0, void 0, function () {
804
- var localVarAxiosArgs;
805
- return __generator(this, function (_a) {
806
- switch (_a.label) {
807
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAction_1(createActionRequestDto, authorization, options)];
808
- case 1:
809
- localVarAxiosArgs = _a.sent();
810
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
811
- }
812
- });
813
- });
814
- },
815
517
  /**
816
518
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
817
519
  * @summary Delete the action
@@ -834,62 +536,22 @@ var ActionsApiFp = function (configuration) {
834
536
  });
835
537
  },
836
538
  /**
837
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
838
- * @summary Delete the action
839
- * @param {string} code Action code
840
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
841
- * @param {*} [options] Override http request option.
842
- * @throws {RequiredError}
843
- */
844
- deleteAction_2: function (code, authorization, options) {
845
- return __awaiter(this, void 0, void 0, function () {
846
- var localVarAxiosArgs;
847
- return __generator(this, function (_a) {
848
- switch (_a.label) {
849
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction_2(code, authorization, options)];
850
- case 1:
851
- localVarAxiosArgs = _a.sent();
852
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
853
- }
854
- });
855
- });
856
- },
857
- /**
858
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
859
- * @summary Retrieve the action
860
- * @param {string} code Action code
861
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
862
- * @param {*} [options] Override http request option.
863
- * @throws {RequiredError}
864
- */
865
- getAction: function (code, authorization, options) {
866
- return __awaiter(this, void 0, void 0, function () {
867
- var localVarAxiosArgs;
868
- return __generator(this, function (_a) {
869
- switch (_a.label) {
870
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
871
- case 1:
872
- localVarAxiosArgs = _a.sent();
873
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
874
- }
875
- });
876
- });
877
- },
878
- /**
879
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
880
- * @summary Retrieve the actionExecution
539
+ * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
540
+ * @summary Retrieve the entity-actions-yaml
541
+ * @param {string} productSlug Product slug
542
+ * @param {number} productVersionId Product version ID
881
543
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
882
- * @param {string} [executionCode] Action execution code
883
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
544
+ * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
545
+ * @param {boolean} [includeDisabled] Include draft (disabled) actions
884
546
  * @param {*} [options] Override http request option.
885
547
  * @throws {RequiredError}
886
548
  */
887
- getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
549
+ exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
888
550
  return __awaiter(this, void 0, void 0, function () {
889
551
  var localVarAxiosArgs;
890
552
  return __generator(this, function (_a) {
891
553
  switch (_a.label) {
892
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options)];
554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options)];
893
555
  case 1:
894
556
  localVarAxiosArgs = _a.sent();
895
557
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -902,15 +564,16 @@ var ActionsApiFp = function (configuration) {
902
564
  * @summary Retrieve the action
903
565
  * @param {string} code Action code
904
566
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
905
568
  * @param {*} [options] Override http request option.
906
569
  * @throws {RequiredError}
907
570
  */
908
- getAction_3: function (code, authorization, options) {
571
+ getAction: function (code, authorization, expand, options) {
909
572
  return __awaiter(this, void 0, void 0, function () {
910
573
  var localVarAxiosArgs;
911
574
  return __generator(this, function (_a) {
912
575
  switch (_a.label) {
913
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction_3(code, authorization, options)];
576
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, expand, options)];
914
577
  case 1:
915
578
  localVarAxiosArgs = _a.sent();
916
579
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -919,25 +582,19 @@ var ActionsApiFp = function (configuration) {
919
582
  });
920
583
  },
921
584
  /**
922
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
923
- * @summary List actionExecutions
585
+ * 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\"
586
+ * @summary Update the entity-actions-yaml
587
+ * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
924
588
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
925
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
926
- * @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.
927
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
928
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
929
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
930
- * @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;
931
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
932
589
  * @param {*} [options] Override http request option.
933
590
  * @throws {RequiredError}
934
591
  */
935
- listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
592
+ importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
936
593
  return __awaiter(this, void 0, void 0, function () {
937
594
  var localVarAxiosArgs;
938
595
  return __generator(this, function (_a) {
939
596
  switch (_a.label) {
940
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
597
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options)];
941
598
  case 1:
942
599
  localVarAxiosArgs = _a.sent();
943
600
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -951,11 +608,11 @@ var ActionsApiFp = function (configuration) {
951
608
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
952
609
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
953
610
  * @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.
954
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
611
+ * @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, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
955
612
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
956
- * @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, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
957
- * @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;
958
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
613
+ * @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, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
614
+ * @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;
615
+ * @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, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
959
616
  * @param {*} [options] Override http request option.
960
617
  * @throws {RequiredError}
961
618
  */
@@ -972,33 +629,6 @@ var ActionsApiFp = function (configuration) {
972
629
  });
973
630
  });
974
631
  },
975
- /**
976
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
977
- * @summary List actions
978
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
979
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
980
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
981
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
982
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
983
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
984
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
985
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
986
- * @param {*} [options] Override http request option.
987
- * @throws {RequiredError}
988
- */
989
- listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
990
- return __awaiter(this, void 0, void 0, function () {
991
- var localVarAxiosArgs;
992
- return __generator(this, function (_a) {
993
- switch (_a.label) {
994
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
995
- case 1:
996
- localVarAxiosArgs = _a.sent();
997
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
998
- }
999
- });
1000
- });
1001
- },
1002
632
  /**
1003
633
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1004
634
  * @summary Update the action
@@ -1021,28 +651,6 @@ var ActionsApiFp = function (configuration) {
1021
651
  });
1022
652
  });
1023
653
  },
1024
- /**
1025
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1026
- * @summary Update the action
1027
- * @param {string} code Action code
1028
- * @param {UpdateActionRequestDto} updateActionRequestDto
1029
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1030
- * @param {*} [options] Override http request option.
1031
- * @throws {RequiredError}
1032
- */
1033
- updateAction_5: function (code, updateActionRequestDto, authorization, options) {
1034
- return __awaiter(this, void 0, void 0, function () {
1035
- var localVarAxiosArgs;
1036
- return __generator(this, function (_a) {
1037
- switch (_a.label) {
1038
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options)];
1039
- case 1:
1040
- localVarAxiosArgs = _a.sent();
1041
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1042
- }
1043
- });
1044
- });
1045
- },
1046
654
  };
1047
655
  };
1048
656
  exports.ActionsApiFp = ActionsApiFp;
@@ -1064,17 +672,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1064
672
  createAction: function (createActionRequestDto, authorization, options) {
1065
673
  return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1066
674
  },
1067
- /**
1068
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1069
- * @summary Create the action
1070
- * @param {CreateActionRequestDto} createActionRequestDto
1071
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1072
- * @param {*} [options] Override http request option.
1073
- * @throws {RequiredError}
1074
- */
1075
- createAction_1: function (createActionRequestDto, authorization, options) {
1076
- return localVarFp.createAction_1(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1077
- },
1078
675
  /**
1079
676
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1080
677
  * @summary Delete the action
@@ -1087,66 +684,41 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1087
684
  return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
1088
685
  },
1089
686
  /**
1090
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1091
- * @summary Delete the action
1092
- * @param {string} code Action code
1093
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1094
- * @param {*} [options] Override http request option.
1095
- * @throws {RequiredError}
1096
- */
1097
- deleteAction_2: function (code, authorization, options) {
1098
- return localVarFp.deleteAction_2(code, authorization, options).then(function (request) { return request(axios, basePath); });
1099
- },
1100
- /**
1101
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1102
- * @summary Retrieve the action
1103
- * @param {string} code Action code
1104
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1105
- * @param {*} [options] Override http request option.
1106
- * @throws {RequiredError}
1107
- */
1108
- getAction: function (code, authorization, options) {
1109
- return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
1110
- },
1111
- /**
1112
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1113
- * @summary Retrieve the actionExecution
687
+ * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
688
+ * @summary Retrieve the entity-actions-yaml
689
+ * @param {string} productSlug Product slug
690
+ * @param {number} productVersionId Product version ID
1114
691
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1115
- * @param {string} [executionCode] Action execution code
1116
- * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
692
+ * @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
693
+ * @param {boolean} [includeDisabled] Include draft (disabled) actions
1117
694
  * @param {*} [options] Override http request option.
1118
695
  * @throws {RequiredError}
1119
696
  */
1120
- getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
1121
- return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
697
+ exportActionsAsYaml: function (productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options) {
698
+ return localVarFp.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options).then(function (request) { return request(axios, basePath); });
1122
699
  },
1123
700
  /**
1124
701
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1125
702
  * @summary Retrieve the action
1126
703
  * @param {string} code Action code
1127
704
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
705
+ * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
1128
706
  * @param {*} [options] Override http request option.
1129
707
  * @throws {RequiredError}
1130
708
  */
1131
- getAction_3: function (code, authorization, options) {
1132
- return localVarFp.getAction_3(code, authorization, options).then(function (request) { return request(axios, basePath); });
709
+ getAction: function (code, authorization, expand, options) {
710
+ return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1133
711
  },
1134
712
  /**
1135
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1136
- * @summary List actionExecutions
713
+ * 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\"
714
+ * @summary Update the entity-actions-yaml
715
+ * @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
1137
716
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1138
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1139
- * @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.
1140
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1141
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1142
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
1143
- * @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;
1144
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1145
717
  * @param {*} [options] Override http request option.
1146
718
  * @throws {RequiredError}
1147
719
  */
1148
- listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1149
- return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
720
+ importActionsFromYaml: function (importActionsFromYamlRequestDto, authorization, options) {
721
+ return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1150
722
  },
1151
723
  /**
1152
724
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -1154,34 +726,17 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1154
726
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1155
727
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1156
728
  * @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.
1157
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
729
+ * @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, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1158
730
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1159
- * @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, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
1160
- * @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;
1161
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
731
+ * @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, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
732
+ * @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;
733
+ * @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, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1162
734
  * @param {*} [options] Override http request option.
1163
735
  * @throws {RequiredError}
1164
736
  */
1165
737
  listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1166
738
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1167
739
  },
1168
- /**
1169
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1170
- * @summary List actions
1171
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1172
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1173
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1174
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1175
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1176
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
1177
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
1178
- * @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, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1179
- * @param {*} [options] Override http request option.
1180
- * @throws {RequiredError}
1181
- */
1182
- listActions_4: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1183
- return localVarFp.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1184
- },
1185
740
  /**
1186
741
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1187
742
  * @summary Update the action
@@ -1194,18 +749,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1194
749
  updateAction: function (code, updateActionRequestDto, authorization, options) {
1195
750
  return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1196
751
  },
1197
- /**
1198
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1199
- * @summary Update the action
1200
- * @param {string} code Action code
1201
- * @param {UpdateActionRequestDto} updateActionRequestDto
1202
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1203
- * @param {*} [options] Override http request option.
1204
- * @throws {RequiredError}
1205
- */
1206
- updateAction_5: function (code, updateActionRequestDto, authorization, options) {
1207
- return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1208
- },
1209
752
  };
1210
753
  };
1211
754
  exports.ActionsApiFactory = ActionsApiFactory;
@@ -1232,18 +775,6 @@ var ActionsApi = /** @class */ (function (_super) {
1232
775
  var _this = this;
1233
776
  return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1234
777
  };
1235
- /**
1236
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
1237
- * @summary Create the action
1238
- * @param {ActionsApiCreateAction0Request} requestParameters Request parameters.
1239
- * @param {*} [options] Override http request option.
1240
- * @throws {RequiredError}
1241
- * @memberof ActionsApi
1242
- */
1243
- ActionsApi.prototype.createAction_1 = function (requestParameters, options) {
1244
- var _this = this;
1245
- return (0, exports.ActionsApiFp)(this.configuration).createAction_1(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1246
- };
1247
778
  /**
1248
779
  * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1249
780
  * @summary Delete the action
@@ -1257,16 +788,16 @@ var ActionsApi = /** @class */ (function (_super) {
1257
788
  return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1258
789
  };
1259
790
  /**
1260
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
1261
- * @summary Delete the action
1262
- * @param {ActionsApiDeleteAction0Request} requestParameters Request parameters.
791
+ * Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
792
+ * @summary Retrieve the entity-actions-yaml
793
+ * @param {ActionsApiExportActionsAsYamlRequest} requestParameters Request parameters.
1263
794
  * @param {*} [options] Override http request option.
1264
795
  * @throws {RequiredError}
1265
796
  * @memberof ActionsApi
1266
797
  */
1267
- ActionsApi.prototype.deleteAction_2 = function (requestParameters, options) {
798
+ ActionsApi.prototype.exportActionsAsYaml = function (requestParameters, options) {
1268
799
  var _this = this;
1269
- return (0, exports.ActionsApiFp)(this.configuration).deleteAction_2(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
800
+ 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); });
1270
801
  };
1271
802
  /**
1272
803
  * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
@@ -1278,45 +809,19 @@ var ActionsApi = /** @class */ (function (_super) {
1278
809
  */
1279
810
  ActionsApi.prototype.getAction = function (requestParameters, options) {
1280
811
  var _this = this;
1281
- return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1282
- };
1283
- /**
1284
- * Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
1285
- * @summary Retrieve the actionExecution
1286
- * @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
1287
- * @param {*} [options] Override http request option.
1288
- * @throws {RequiredError}
1289
- * @memberof ActionsApi
1290
- */
1291
- ActionsApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
1292
- var _this = this;
1293
- if (requestParameters === void 0) { requestParameters = {}; }
1294
- return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
812
+ return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1295
813
  };
1296
814
  /**
1297
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
1298
- * @summary Retrieve the action
1299
- * @param {ActionsApiGetAction0Request} requestParameters Request parameters.
815
+ * 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\"
816
+ * @summary Update the entity-actions-yaml
817
+ * @param {ActionsApiImportActionsFromYamlRequest} requestParameters Request parameters.
1300
818
  * @param {*} [options] Override http request option.
1301
819
  * @throws {RequiredError}
1302
820
  * @memberof ActionsApi
1303
821
  */
1304
- ActionsApi.prototype.getAction_3 = function (requestParameters, options) {
822
+ ActionsApi.prototype.importActionsFromYaml = function (requestParameters, options) {
1305
823
  var _this = this;
1306
- return (0, exports.ActionsApiFp)(this.configuration).getAction_3(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1307
- };
1308
- /**
1309
- * Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
1310
- * @summary List actionExecutions
1311
- * @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
1312
- * @param {*} [options] Override http request option.
1313
- * @throws {RequiredError}
1314
- * @memberof ActionsApi
1315
- */
1316
- ActionsApi.prototype.listActionExecutions = function (requestParameters, options) {
1317
- var _this = this;
1318
- if (requestParameters === void 0) { requestParameters = {}; }
1319
- return (0, exports.ActionsApiFp)(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
824
+ return (0, exports.ActionsApiFp)(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1320
825
  };
1321
826
  /**
1322
827
  * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
@@ -1331,19 +836,6 @@ var ActionsApi = /** @class */ (function (_super) {
1331
836
  if (requestParameters === void 0) { requestParameters = {}; }
1332
837
  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); });
1333
838
  };
1334
- /**
1335
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
1336
- * @summary List actions
1337
- * @param {ActionsApiListActions0Request} requestParameters Request parameters.
1338
- * @param {*} [options] Override http request option.
1339
- * @throws {RequiredError}
1340
- * @memberof ActionsApi
1341
- */
1342
- ActionsApi.prototype.listActions_4 = function (requestParameters, options) {
1343
- var _this = this;
1344
- if (requestParameters === void 0) { requestParameters = {}; }
1345
- return (0, exports.ActionsApiFp)(this.configuration).listActions_4(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1346
- };
1347
839
  /**
1348
840
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1349
841
  * @summary Update the action
@@ -1356,18 +848,6 @@ var ActionsApi = /** @class */ (function (_super) {
1356
848
  var _this = this;
1357
849
  return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1358
850
  };
1359
- /**
1360
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
1361
- * @summary Update the action
1362
- * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
1363
- * @param {*} [options] Override http request option.
1364
- * @throws {RequiredError}
1365
- * @memberof ActionsApi
1366
- */
1367
- ActionsApi.prototype.updateAction_5 = function (requestParameters, options) {
1368
- var _this = this;
1369
- return (0, exports.ActionsApiFp)(this.configuration).updateAction_5(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1370
- };
1371
851
  return ActionsApi;
1372
852
  }(base_1.BaseAPI));
1373
853
  exports.ActionsApi = ActionsApi;