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

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 (43) hide show
  1. package/.openapi-generator/FILES +0 -7
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +130 -559
  4. package/api.ts +0 -2
  5. package/dist/api/actions-api.d.ts +112 -358
  6. package/dist/api/actions-api.js +97 -427
  7. package/dist/api.d.ts +0 -1
  8. package/dist/api.js +0 -1
  9. package/dist/models/action-class.d.ts +20 -9
  10. package/dist/models/action-execution-class.d.ts +0 -36
  11. package/dist/models/create-action-request-dto.d.ts +5 -47
  12. package/dist/models/create-action-request-dto.js +0 -6
  13. package/dist/models/index.d.ts +0 -6
  14. package/dist/models/index.js +0 -6
  15. package/dist/models/update-action-request-dto.d.ts +5 -41
  16. package/dist/models/update-action-request-dto.js +0 -6
  17. package/models/action-class.ts +20 -9
  18. package/models/action-execution-class.ts +0 -36
  19. package/models/create-action-request-dto.ts +5 -50
  20. package/models/index.ts +0 -6
  21. package/models/update-action-request-dto.ts +5 -44
  22. package/package.json +1 -1
  23. package/api/executions-api.ts +0 -471
  24. package/dist/api/executions-api.d.ts +0 -272
  25. package/dist/api/executions-api.js +0 -452
  26. package/dist/models/action-ref-class.d.ts +0 -36
  27. package/dist/models/action-ref-class.js +0 -15
  28. package/dist/models/action-version-class.d.ts +0 -127
  29. package/dist/models/action-version-class.js +0 -21
  30. package/dist/models/get-action-version-response-class.d.ts +0 -25
  31. package/dist/models/get-action-version-response-class.js +0 -15
  32. package/dist/models/list-action-versions-response-class.d.ts +0 -43
  33. package/dist/models/list-action-versions-response-class.js +0 -15
  34. package/dist/models/trigger-action-request-dto.d.ts +0 -62
  35. package/dist/models/trigger-action-request-dto.js +0 -15
  36. package/dist/models/trigger-action-response-class.d.ts +0 -25
  37. package/dist/models/trigger-action-response-class.js +0 -15
  38. package/models/action-ref-class.ts +0 -42
  39. package/models/action-version-class.ts +0 -136
  40. package/models/get-action-version-response-class.ts +0 -31
  41. package/models/list-action-versions-response-class.ts +0 -49
  42. package/models/trigger-action-request-dto.ts +0 -66
  43. package/models/trigger-action-response-class.ts +0 -31
@@ -93,7 +93,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
96
+ * Creates a new action configuration
97
97
  * @summary Create the action
98
98
  * @param {CreateActionRequestDto} createActionRequestDto
99
99
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -142,7 +142,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
145
+ * Deletes an action configuration by its code
146
146
  * @summary Delete the action
147
147
  * @param {string} code Action code
148
148
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -190,63 +190,14 @@ var ActionsApiAxiosParamCreator = function (configuration) {
190
190
  });
191
191
  },
192
192
  /**
193
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
194
- * @summary Delete the action version
195
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
196
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
- * @param {*} [options] Override http request option.
198
- * @throws {RequiredError}
199
- */
200
- deleteActionVersion: function (versionCode, authorization, options) {
201
- if (options === void 0) { options = {}; }
202
- return __awaiter(_this, void 0, void 0, function () {
203
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
- return __generator(this, function (_a) {
205
- switch (_a.label) {
206
- case 0:
207
- // verify required parameter 'versionCode' is not null or undefined
208
- (0, common_1.assertParamExists)('deleteActionVersion', 'versionCode', versionCode);
209
- localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
210
- .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
211
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
- if (configuration) {
213
- baseOptions = configuration.baseOptions;
214
- baseAccessToken = configuration.accessToken;
215
- }
216
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
217
- localVarHeaderParameter = {};
218
- localVarQueryParameter = {};
219
- // authentication bearer required
220
- // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
- case 1:
223
- // authentication bearer required
224
- // http bearer authentication required
225
- _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
- }
229
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
- return [2 /*return*/, {
233
- url: (0, common_1.toPathString)(localVarUrlObj),
234
- options: localVarRequestOptions,
235
- }];
236
- }
237
- });
238
- });
239
- },
240
- /**
241
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
193
+ * Retrieves an action configuration by its code
242
194
  * @summary Retrieve the action
243
195
  * @param {string} code Action code
244
196
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
245
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
246
197
  * @param {*} [options] Override http request option.
247
198
  * @throws {RequiredError}
248
199
  */
249
- getAction: function (code, authorization, expand, options) {
200
+ getAction: function (code, authorization, options) {
250
201
  if (options === void 0) { options = {}; }
251
202
  return __awaiter(_this, void 0, void 0, function () {
252
203
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -272,9 +223,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
272
223
  // authentication bearer required
273
224
  // http bearer authentication required
274
225
  _a.sent();
275
- if (expand !== undefined) {
276
- localVarQueryParameter['expand'] = expand;
277
- }
278
226
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
279
227
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
280
228
  }
@@ -290,25 +238,22 @@ var ActionsApiAxiosParamCreator = function (configuration) {
290
238
  });
291
239
  },
292
240
  /**
293
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
294
- * @summary Retrieve the action version
295
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
241
+ * Retrieves the latest action execution status by executionCode or correlationId
242
+ * @summary Retrieve the actionExecution
296
243
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
- * @param {string} [expand]
244
+ * @param {string} [executionCode] Action execution code
245
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
298
246
  * @param {*} [options] Override http request option.
299
247
  * @throws {RequiredError}
300
248
  */
301
- getActionVersion: function (versionCode, authorization, expand, options) {
249
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
302
250
  if (options === void 0) { options = {}; }
303
251
  return __awaiter(_this, void 0, void 0, function () {
304
252
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
305
253
  return __generator(this, function (_a) {
306
254
  switch (_a.label) {
307
255
  case 0:
308
- // verify required parameter 'versionCode' is not null or undefined
309
- (0, common_1.assertParamExists)('getActionVersion', 'versionCode', versionCode);
310
- localVarPath = "/actionservice/v1/actions/versions/{versionCode}"
311
- .replace("{".concat("versionCode", "}"), encodeURIComponent(String(versionCode)));
256
+ localVarPath = "/actionservice/v1/actions/executions/status";
312
257
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
313
258
  if (configuration) {
314
259
  baseOptions = configuration.baseOptions;
@@ -324,8 +269,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
324
269
  // authentication bearer required
325
270
  // http bearer authentication required
326
271
  _a.sent();
327
- if (expand !== undefined) {
328
- localVarQueryParameter['expand'] = expand;
272
+ if (executionCode !== undefined) {
273
+ localVarQueryParameter['executionCode'] = executionCode;
274
+ }
275
+ if (correlationId !== undefined) {
276
+ localVarQueryParameter['correlationId'] = correlationId;
329
277
  }
330
278
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
331
279
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
@@ -342,31 +290,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
342
290
  });
343
291
  },
344
292
  /**
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
293
+ * Lists action executions (latest status per execution only) with optional filters
294
+ * @summary List actionExecutions
348
295
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
296
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
350
297
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
351
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
298
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
352
299
  * @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
355
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
300
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
301
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
302
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
356
303
  * @param {*} [options] Override http request option.
357
304
  * @throws {RequiredError}
358
305
  */
359
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
306
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
360
307
  if (options === void 0) { options = {}; }
361
308
  return __awaiter(_this, void 0, void 0, function () {
362
309
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
363
310
  return __generator(this, function (_a) {
364
311
  switch (_a.label) {
365
312
  case 0:
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)));
313
+ localVarPath = "/actionservice/v1/actions/executions";
370
314
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
371
315
  if (configuration) {
372
316
  baseOptions = configuration.baseOptions;
@@ -418,16 +362,16 @@ var ActionsApiAxiosParamCreator = function (configuration) {
418
362
  });
419
363
  },
420
364
  /**
421
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
365
+ * Lists all action configurations with optional filters
422
366
  * @summary List actions
423
367
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
424
368
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
425
369
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
426
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
370
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
427
371
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
430
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
372
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
373
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
374
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
431
375
  * @param {*} [options] Override http request option.
432
376
  * @throws {RequiredError}
433
377
  */
@@ -490,79 +434,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
490
434
  });
491
435
  },
492
436
  /**
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
495
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
496
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
498
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
499
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
502
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
503
- * @param {*} [options] Override http request option.
504
- * @throws {RequiredError}
505
- */
506
- listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
507
- if (options === void 0) { options = {}; }
508
- return __awaiter(_this, void 0, void 0, function () {
509
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
510
- return __generator(this, function (_a) {
511
- switch (_a.label) {
512
- case 0:
513
- localVarPath = "/actionservice/v1/actions/versions";
514
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
515
- if (configuration) {
516
- baseOptions = configuration.baseOptions;
517
- baseAccessToken = configuration.accessToken;
518
- }
519
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
520
- localVarHeaderParameter = {};
521
- localVarQueryParameter = {};
522
- // authentication bearer required
523
- // http bearer authentication required
524
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
525
- case 1:
526
- // authentication bearer required
527
- // http bearer authentication required
528
- _a.sent();
529
- if (pageSize !== undefined) {
530
- localVarQueryParameter['pageSize'] = pageSize;
531
- }
532
- if (pageToken !== undefined) {
533
- localVarQueryParameter['pageToken'] = pageToken;
534
- }
535
- if (filter !== undefined) {
536
- localVarQueryParameter['filter'] = filter;
537
- }
538
- if (search !== undefined) {
539
- localVarQueryParameter['search'] = search;
540
- }
541
- if (order !== undefined) {
542
- localVarQueryParameter['order'] = order;
543
- }
544
- if (expand !== undefined) {
545
- localVarQueryParameter['expand'] = expand;
546
- }
547
- if (filters !== undefined) {
548
- localVarQueryParameter['filters'] = filters;
549
- }
550
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
551
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
552
- }
553
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
554
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
555
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
556
- return [2 /*return*/, {
557
- url: (0, common_1.toPathString)(localVarUrlObj),
558
- options: localVarRequestOptions,
559
- }];
560
- }
561
- });
562
- });
563
- },
564
- /**
565
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
437
+ * Updates an existing action configuration (patch semantics)
566
438
  * @summary Update the action
567
439
  * @param {string} code Action code
568
440
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -614,59 +486,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
614
486
  });
615
487
  });
616
488
  },
617
- /**
618
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
619
- * @summary Update the action
620
- * @param {string} code Action code
621
- * @param {UpdateActionRequestDto} updateActionRequestDto
622
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
623
- * @param {*} [options] Override http request option.
624
- * @throws {RequiredError}
625
- */
626
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
627
- if (options === void 0) { options = {}; }
628
- return __awaiter(_this, void 0, void 0, function () {
629
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
630
- return __generator(this, function (_a) {
631
- switch (_a.label) {
632
- case 0:
633
- // verify required parameter 'code' is not null or undefined
634
- (0, common_1.assertParamExists)('updateAction_1', 'code', code);
635
- // verify required parameter 'updateActionRequestDto' is not null or undefined
636
- (0, common_1.assertParamExists)('updateAction_1', 'updateActionRequestDto', updateActionRequestDto);
637
- localVarPath = "/actionservice/v1/actions/{code}"
638
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
639
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
640
- if (configuration) {
641
- baseOptions = configuration.baseOptions;
642
- baseAccessToken = configuration.accessToken;
643
- }
644
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
645
- localVarHeaderParameter = {};
646
- localVarQueryParameter = {};
647
- // authentication bearer required
648
- // http bearer authentication required
649
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
650
- case 1:
651
- // authentication bearer required
652
- // http bearer authentication required
653
- _a.sent();
654
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
655
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
656
- }
657
- localVarHeaderParameter['Content-Type'] = 'application/json';
658
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
659
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
660
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
661
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
662
- return [2 /*return*/, {
663
- url: (0, common_1.toPathString)(localVarUrlObj),
664
- options: localVarRequestOptions,
665
- }];
666
- }
667
- });
668
- });
669
- },
670
489
  };
671
490
  };
672
491
  exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
@@ -678,7 +497,7 @@ var ActionsApiFp = function (configuration) {
678
497
  var localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
679
498
  return {
680
499
  /**
681
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
500
+ * Creates a new action configuration
682
501
  * @summary Create the action
683
502
  * @param {CreateActionRequestDto} createActionRequestDto
684
503
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -699,7 +518,7 @@ var ActionsApiFp = function (configuration) {
699
518
  });
700
519
  },
701
520
  /**
702
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
521
+ * Deletes an action configuration by its code
703
522
  * @summary Delete the action
704
523
  * @param {string} code Action code
705
524
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -720,41 +539,19 @@ var ActionsApiFp = function (configuration) {
720
539
  });
721
540
  },
722
541
  /**
723
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
724
- * @summary Delete the action version
725
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
726
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
727
- * @param {*} [options] Override http request option.
728
- * @throws {RequiredError}
729
- */
730
- deleteActionVersion: function (versionCode, authorization, options) {
731
- return __awaiter(this, void 0, void 0, function () {
732
- var localVarAxiosArgs;
733
- return __generator(this, function (_a) {
734
- switch (_a.label) {
735
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options)];
736
- case 1:
737
- localVarAxiosArgs = _a.sent();
738
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
739
- }
740
- });
741
- });
742
- },
743
- /**
744
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
542
+ * Retrieves an action configuration by its code
745
543
  * @summary Retrieve the action
746
544
  * @param {string} code Action code
747
545
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
748
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
749
546
  * @param {*} [options] Override http request option.
750
547
  * @throws {RequiredError}
751
548
  */
752
- getAction: function (code, authorization, expand, options) {
549
+ getAction: function (code, authorization, options) {
753
550
  return __awaiter(this, void 0, void 0, function () {
754
551
  var localVarAxiosArgs;
755
552
  return __generator(this, function (_a) {
756
553
  switch (_a.label) {
757
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, expand, options)];
554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
758
555
  case 1:
759
556
  localVarAxiosArgs = _a.sent();
760
557
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -763,20 +560,20 @@ var ActionsApiFp = function (configuration) {
763
560
  });
764
561
  },
765
562
  /**
766
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
767
- * @summary Retrieve the action version
768
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
563
+ * Retrieves the latest action execution status by executionCode or correlationId
564
+ * @summary Retrieve the actionExecution
769
565
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
770
- * @param {string} [expand]
566
+ * @param {string} [executionCode] Action execution code
567
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
771
568
  * @param {*} [options] Override http request option.
772
569
  * @throws {RequiredError}
773
570
  */
774
- getActionVersion: function (versionCode, authorization, expand, options) {
571
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
775
572
  return __awaiter(this, void 0, void 0, function () {
776
573
  var localVarAxiosArgs;
777
574
  return __generator(this, function (_a) {
778
575
  switch (_a.label) {
779
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
576
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options)];
780
577
  case 1:
781
578
  localVarAxiosArgs = _a.sent();
782
579
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -785,26 +582,25 @@ var ActionsApiFp = function (configuration) {
785
582
  });
786
583
  },
787
584
  /**
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
585
+ * Lists action executions (latest status per execution only) with optional filters
586
+ * @summary List actionExecutions
791
587
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
792
588
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
793
589
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
794
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
590
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
795
591
  * @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
798
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
592
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
593
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
594
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
799
595
  * @param {*} [options] Override http request option.
800
596
  * @throws {RequiredError}
801
597
  */
802
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
598
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
803
599
  return __awaiter(this, void 0, void 0, function () {
804
600
  var localVarAxiosArgs;
805
601
  return __generator(this, function (_a) {
806
602
  switch (_a.label) {
807
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
603
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
808
604
  case 1:
809
605
  localVarAxiosArgs = _a.sent();
810
606
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -813,16 +609,16 @@ var ActionsApiFp = function (configuration) {
813
609
  });
814
610
  },
815
611
  /**
816
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
612
+ * Lists all action configurations with optional filters
817
613
  * @summary List actions
818
614
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
819
615
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
820
616
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
821
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
617
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
822
618
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
825
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
619
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
620
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
621
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
826
622
  * @param {*} [options] Override http request option.
827
623
  * @throws {RequiredError}
828
624
  */
@@ -840,34 +636,7 @@ var ActionsApiFp = function (configuration) {
840
636
  });
841
637
  },
842
638
  /**
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
845
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
846
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
848
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
849
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
852
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
853
- * @param {*} [options] Override http request option.
854
- * @throws {RequiredError}
855
- */
856
- listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
857
- return __awaiter(this, void 0, void 0, function () {
858
- var localVarAxiosArgs;
859
- return __generator(this, function (_a) {
860
- switch (_a.label) {
861
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
862
- case 1:
863
- localVarAxiosArgs = _a.sent();
864
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
865
- }
866
- });
867
- });
868
- },
869
- /**
870
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
639
+ * Updates an existing action configuration (patch semantics)
871
640
  * @summary Update the action
872
641
  * @param {string} code Action code
873
642
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -888,28 +657,6 @@ var ActionsApiFp = function (configuration) {
888
657
  });
889
658
  });
890
659
  },
891
- /**
892
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
893
- * @summary Update the action
894
- * @param {string} code Action code
895
- * @param {UpdateActionRequestDto} updateActionRequestDto
896
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
897
- * @param {*} [options] Override http request option.
898
- * @throws {RequiredError}
899
- */
900
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
901
- return __awaiter(this, void 0, void 0, function () {
902
- var localVarAxiosArgs;
903
- return __generator(this, function (_a) {
904
- switch (_a.label) {
905
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options)];
906
- case 1:
907
- localVarAxiosArgs = _a.sent();
908
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
909
- }
910
- });
911
- });
912
- },
913
660
  };
914
661
  };
915
662
  exports.ActionsApiFp = ActionsApiFp;
@@ -921,7 +668,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
921
668
  var localVarFp = (0, exports.ActionsApiFp)(configuration);
922
669
  return {
923
670
  /**
924
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
671
+ * Creates a new action configuration
925
672
  * @summary Create the action
926
673
  * @param {CreateActionRequestDto} createActionRequestDto
927
674
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -932,7 +679,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
932
679
  return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
933
680
  },
934
681
  /**
935
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
682
+ * Deletes an action configuration by its code
936
683
  * @summary Delete the action
937
684
  * @param {string} code Action code
938
685
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -943,69 +690,56 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
943
690
  return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
944
691
  },
945
692
  /**
946
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
947
- * @summary Delete the action version
948
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
949
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
950
- * @param {*} [options] Override http request option.
951
- * @throws {RequiredError}
952
- */
953
- deleteActionVersion: function (versionCode, authorization, options) {
954
- return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
955
- },
956
- /**
957
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
693
+ * Retrieves an action configuration by its code
958
694
  * @summary Retrieve the action
959
695
  * @param {string} code Action code
960
696
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
961
- * @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
962
697
  * @param {*} [options] Override http request option.
963
698
  * @throws {RequiredError}
964
699
  */
965
- getAction: function (code, authorization, expand, options) {
966
- return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
700
+ getAction: function (code, authorization, options) {
701
+ return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
967
702
  },
968
703
  /**
969
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
970
- * @summary Retrieve the action version
971
- * @param {string} versionCode Version code (e.g. acv_<nanoid>)
704
+ * Retrieves the latest action execution status by executionCode or correlationId
705
+ * @summary Retrieve the actionExecution
972
706
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
973
- * @param {string} [expand]
707
+ * @param {string} [executionCode] Action execution code
708
+ * @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
974
709
  * @param {*} [options] Override http request option.
975
710
  * @throws {RequiredError}
976
711
  */
977
- getActionVersion: function (versionCode, authorization, expand, options) {
978
- return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
712
+ getActionExecutionStatus: function (authorization, executionCode, correlationId, options) {
713
+ return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then(function (request) { return request(axios, basePath); });
979
714
  },
980
715
  /**
981
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
982
- * @summary List action versions
983
- * @param {string} code Action code
716
+ * Lists action executions (latest status per execution only) with optional filters
717
+ * @summary List actionExecutions
984
718
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
985
719
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
986
720
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
987
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
721
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
988
722
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
991
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
723
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
724
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
725
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
992
726
  * @param {*} [options] Override http request option.
993
727
  * @throws {RequiredError}
994
728
  */
995
- listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
996
- return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
729
+ listActionExecutions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
730
+ return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
997
731
  },
998
732
  /**
999
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
733
+ * Lists all action configurations with optional filters
1000
734
  * @summary List actions
1001
735
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1002
736
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1003
737
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
1004
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
738
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
1005
739
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
1008
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
740
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
741
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
742
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
1009
743
  * @param {*} [options] Override http request option.
1010
744
  * @throws {RequiredError}
1011
745
  */
@@ -1013,24 +747,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1013
747
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1014
748
  },
1015
749
  /**
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
1022
- * @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
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.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
1025
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
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
- },
1032
- /**
1033
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
750
+ * Updates an existing action configuration (patch semantics)
1034
751
  * @summary Update the action
1035
752
  * @param {string} code Action code
1036
753
  * @param {UpdateActionRequestDto} updateActionRequestDto
@@ -1041,18 +758,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
1041
758
  updateAction: function (code, updateActionRequestDto, authorization, options) {
1042
759
  return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1043
760
  },
1044
- /**
1045
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1046
- * @summary Update the action
1047
- * @param {string} code Action code
1048
- * @param {UpdateActionRequestDto} updateActionRequestDto
1049
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1050
- * @param {*} [options] Override http request option.
1051
- * @throws {RequiredError}
1052
- */
1053
- updateAction_1: function (code, updateActionRequestDto, authorization, options) {
1054
- return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1055
- },
1056
761
  };
1057
762
  };
1058
763
  exports.ActionsApiFactory = ActionsApiFactory;
@@ -1068,7 +773,7 @@ var ActionsApi = /** @class */ (function (_super) {
1068
773
  return _super !== null && _super.apply(this, arguments) || this;
1069
774
  }
1070
775
  /**
1071
- * Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
776
+ * Creates a new action configuration
1072
777
  * @summary Create the action
1073
778
  * @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
1074
779
  * @param {*} [options] Override http request option.
@@ -1080,7 +785,7 @@ var ActionsApi = /** @class */ (function (_super) {
1080
785
  return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1081
786
  };
1082
787
  /**
1083
- * Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
788
+ * Deletes an action configuration by its code
1084
789
  * @summary Delete the action
1085
790
  * @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
1086
791
  * @param {*} [options] Override http request option.
@@ -1092,19 +797,7 @@ var ActionsApi = /** @class */ (function (_super) {
1092
797
  return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1093
798
  };
1094
799
  /**
1095
- * Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
1096
- * @summary Delete the action version
1097
- * @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
1098
- * @param {*} [options] Override http request option.
1099
- * @throws {RequiredError}
1100
- * @memberof ActionsApi
1101
- */
1102
- ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
1103
- var _this = this;
1104
- return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1105
- };
1106
- /**
1107
- * Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
800
+ * Retrieves an action configuration by its code
1108
801
  * @summary Retrieve the action
1109
802
  * @param {ActionsApiGetActionRequest} requestParameters Request parameters.
1110
803
  * @param {*} [options] Override http request option.
@@ -1113,34 +806,36 @@ var ActionsApi = /** @class */ (function (_super) {
1113
806
  */
1114
807
  ActionsApi.prototype.getAction = function (requestParameters, options) {
1115
808
  var _this = this;
1116
- return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
809
+ return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1117
810
  };
1118
811
  /**
1119
- * Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
1120
- * @summary Retrieve the action version
1121
- * @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
812
+ * Retrieves the latest action execution status by executionCode or correlationId
813
+ * @summary Retrieve the actionExecution
814
+ * @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
1122
815
  * @param {*} [options] Override http request option.
1123
816
  * @throws {RequiredError}
1124
817
  * @memberof ActionsApi
1125
818
  */
1126
- ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
819
+ ActionsApi.prototype.getActionExecutionStatus = function (requestParameters, options) {
1127
820
  var _this = this;
1128
- return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
821
+ if (requestParameters === void 0) { requestParameters = {}; }
822
+ return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1129
823
  };
1130
824
  /**
1131
- * Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
1132
- * @summary List action versions
1133
- * @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
825
+ * Lists action executions (latest status per execution only) with optional filters
826
+ * @summary List actionExecutions
827
+ * @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
1134
828
  * @param {*} [options] Override http request option.
1135
829
  * @throws {RequiredError}
1136
830
  * @memberof ActionsApi
1137
831
  */
1138
- ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
832
+ ActionsApi.prototype.listActionExecutions = function (requestParameters, options) {
1139
833
  var _this = this;
1140
- return (0, exports.ActionsApiFp)(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
834
+ if (requestParameters === void 0) { requestParameters = {}; }
835
+ 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); });
1141
836
  };
1142
837
  /**
1143
- * Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
838
+ * Lists all action configurations with optional filters
1144
839
  * @summary List actions
1145
840
  * @param {ActionsApiListActionsRequest} requestParameters Request parameters.
1146
841
  * @param {*} [options] Override http request option.
@@ -1153,20 +848,7 @@ var ActionsApi = /** @class */ (function (_super) {
1153
848
  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); });
1154
849
  };
1155
850
  /**
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
- };
1168
- /**
1169
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
851
+ * Updates an existing action configuration (patch semantics)
1170
852
  * @summary Update the action
1171
853
  * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
1172
854
  * @param {*} [options] Override http request option.
@@ -1177,18 +859,6 @@ var ActionsApi = /** @class */ (function (_super) {
1177
859
  var _this = this;
1178
860
  return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1179
861
  };
1180
- /**
1181
- * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
1182
- * @summary Update the action
1183
- * @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
1184
- * @param {*} [options] Override http request option.
1185
- * @throws {RequiredError}
1186
- * @memberof ActionsApi
1187
- */
1188
- ActionsApi.prototype.updateAction_1 = function (requestParameters, options) {
1189
- var _this = this;
1190
- return (0, exports.ActionsApiFp)(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1191
- };
1192
862
  return ActionsApi;
1193
863
  }(base_1.BaseAPI));
1194
864
  exports.ActionsApi = ActionsApi;