@emilgroup/action-sdk 1.1.1-beta.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -0
- package/README.md +2 -2
- package/api/actions-api.ts +559 -130
- package/api/executions-api.ts +471 -0
- package/api.ts +2 -0
- package/dist/api/actions-api.d.ts +358 -112
- package/dist/api/actions-api.js +427 -97
- package/dist/api/executions-api.d.ts +272 -0
- package/dist/api/executions-api.js +452 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/action-class.d.ts +9 -20
- package/dist/models/action-execution-class.d.ts +36 -0
- package/dist/models/action-ref-class.d.ts +36 -0
- package/dist/models/action-ref-class.js +15 -0
- package/dist/models/action-version-class.d.ts +127 -0
- package/dist/models/action-version-class.js +21 -0
- package/dist/models/create-action-request-dto.d.ts +47 -5
- package/dist/models/create-action-request-dto.js +6 -0
- package/dist/models/get-action-version-response-class.d.ts +25 -0
- package/dist/models/get-action-version-response-class.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/list-action-versions-response-class.d.ts +43 -0
- package/dist/models/list-action-versions-response-class.js +15 -0
- package/dist/models/trigger-action-request-dto.d.ts +62 -0
- package/dist/models/trigger-action-request-dto.js +15 -0
- package/dist/models/trigger-action-response-class.d.ts +25 -0
- package/dist/models/trigger-action-response-class.js +15 -0
- package/dist/models/update-action-request-dto.d.ts +41 -5
- package/dist/models/update-action-request-dto.js +6 -0
- package/models/action-class.ts +9 -20
- package/models/action-execution-class.ts +36 -0
- package/models/action-ref-class.ts +42 -0
- package/models/action-version-class.ts +136 -0
- package/models/create-action-request-dto.ts +50 -5
- package/models/get-action-version-response-class.ts +31 -0
- package/models/index.ts +6 -0
- package/models/list-action-versions-response-class.ts +49 -0
- package/models/trigger-action-request-dto.ts +66 -0
- package/models/trigger-action-response-class.ts +31 -0
- package/models/update-action-request-dto.ts +44 -5
- package/package.json +1 -1
package/dist/api/actions-api.js
CHANGED
|
@@ -93,7 +93,7 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Creates a new action configuration
|
|
96
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
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
|
|
145
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
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,14 +190,63 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
|
-
*
|
|
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\"
|
|
194
242
|
* @summary Retrieve the action
|
|
195
243
|
* @param {string} code Action code
|
|
196
244
|
* @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)
|
|
197
246
|
* @param {*} [options] Override http request option.
|
|
198
247
|
* @throws {RequiredError}
|
|
199
248
|
*/
|
|
200
|
-
getAction: function (code, authorization, options) {
|
|
249
|
+
getAction: function (code, authorization, expand, options) {
|
|
201
250
|
if (options === void 0) { options = {}; }
|
|
202
251
|
return __awaiter(_this, void 0, void 0, function () {
|
|
203
252
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -223,6 +272,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
223
272
|
// authentication bearer required
|
|
224
273
|
// http bearer authentication required
|
|
225
274
|
_a.sent();
|
|
275
|
+
if (expand !== undefined) {
|
|
276
|
+
localVarQueryParameter['expand'] = expand;
|
|
277
|
+
}
|
|
226
278
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
279
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
280
|
}
|
|
@@ -238,22 +290,25 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
238
290
|
});
|
|
239
291
|
},
|
|
240
292
|
/**
|
|
241
|
-
*
|
|
242
|
-
* @summary Retrieve the
|
|
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>)
|
|
243
296
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
|
-
* @param {string} [
|
|
245
|
-
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
297
|
+
* @param {string} [expand]
|
|
246
298
|
* @param {*} [options] Override http request option.
|
|
247
299
|
* @throws {RequiredError}
|
|
248
300
|
*/
|
|
249
|
-
|
|
301
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
250
302
|
if (options === void 0) { options = {}; }
|
|
251
303
|
return __awaiter(_this, void 0, void 0, function () {
|
|
252
304
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
253
305
|
return __generator(this, function (_a) {
|
|
254
306
|
switch (_a.label) {
|
|
255
307
|
case 0:
|
|
256
|
-
|
|
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)));
|
|
257
312
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
258
313
|
if (configuration) {
|
|
259
314
|
baseOptions = configuration.baseOptions;
|
|
@@ -269,11 +324,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
269
324
|
// authentication bearer required
|
|
270
325
|
// http bearer authentication required
|
|
271
326
|
_a.sent();
|
|
272
|
-
if (
|
|
273
|
-
localVarQueryParameter['
|
|
274
|
-
}
|
|
275
|
-
if (correlationId !== undefined) {
|
|
276
|
-
localVarQueryParameter['correlationId'] = correlationId;
|
|
327
|
+
if (expand !== undefined) {
|
|
328
|
+
localVarQueryParameter['expand'] = expand;
|
|
277
329
|
}
|
|
278
330
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
279
331
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
@@ -290,27 +342,31 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
290
342
|
});
|
|
291
343
|
},
|
|
292
344
|
/**
|
|
293
|
-
* Lists
|
|
294
|
-
* @summary List
|
|
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
|
|
295
348
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
296
349
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
297
350
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
298
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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>
|
|
299
352
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
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,
|
|
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.
|
|
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>
|
|
303
356
|
* @param {*} [options] Override http request option.
|
|
304
357
|
* @throws {RequiredError}
|
|
305
358
|
*/
|
|
306
|
-
|
|
359
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
307
360
|
if (options === void 0) { options = {}; }
|
|
308
361
|
return __awaiter(_this, void 0, void 0, function () {
|
|
309
362
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
310
363
|
return __generator(this, function (_a) {
|
|
311
364
|
switch (_a.label) {
|
|
312
365
|
case 0:
|
|
313
|
-
|
|
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)));
|
|
314
370
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
371
|
if (configuration) {
|
|
316
372
|
baseOptions = configuration.baseOptions;
|
|
@@ -362,16 +418,16 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
362
418
|
});
|
|
363
419
|
},
|
|
364
420
|
/**
|
|
365
|
-
* Lists all action configurations with optional filters
|
|
421
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
366
422
|
* @summary List actions
|
|
367
423
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
368
424
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
369
425
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
370
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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>
|
|
371
427
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
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,
|
|
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.
|
|
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>
|
|
375
431
|
* @param {*} [options] Override http request option.
|
|
376
432
|
* @throws {RequiredError}
|
|
377
433
|
*/
|
|
@@ -434,7 +490,79 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
434
490
|
});
|
|
435
491
|
},
|
|
436
492
|
/**
|
|
437
|
-
*
|
|
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\"
|
|
438
566
|
* @summary Update the action
|
|
439
567
|
* @param {string} code Action code
|
|
440
568
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -486,6 +614,59 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
486
614
|
});
|
|
487
615
|
});
|
|
488
616
|
},
|
|
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
|
+
},
|
|
489
670
|
};
|
|
490
671
|
};
|
|
491
672
|
exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
|
|
@@ -497,7 +678,7 @@ var ActionsApiFp = function (configuration) {
|
|
|
497
678
|
var localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
|
|
498
679
|
return {
|
|
499
680
|
/**
|
|
500
|
-
* Creates a new action configuration
|
|
681
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
501
682
|
* @summary Create the action
|
|
502
683
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
503
684
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -518,7 +699,7 @@ var ActionsApiFp = function (configuration) {
|
|
|
518
699
|
});
|
|
519
700
|
},
|
|
520
701
|
/**
|
|
521
|
-
* Deletes an action configuration by its code
|
|
702
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
522
703
|
* @summary Delete the action
|
|
523
704
|
* @param {string} code Action code
|
|
524
705
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -539,19 +720,41 @@ var ActionsApiFp = function (configuration) {
|
|
|
539
720
|
});
|
|
540
721
|
},
|
|
541
722
|
/**
|
|
542
|
-
*
|
|
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\"
|
|
543
745
|
* @summary Retrieve the action
|
|
544
746
|
* @param {string} code Action code
|
|
545
747
|
* @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)
|
|
546
749
|
* @param {*} [options] Override http request option.
|
|
547
750
|
* @throws {RequiredError}
|
|
548
751
|
*/
|
|
549
|
-
getAction: function (code, authorization, options) {
|
|
752
|
+
getAction: function (code, authorization, expand, options) {
|
|
550
753
|
return __awaiter(this, void 0, void 0, function () {
|
|
551
754
|
var localVarAxiosArgs;
|
|
552
755
|
return __generator(this, function (_a) {
|
|
553
756
|
switch (_a.label) {
|
|
554
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
|
|
757
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, expand, options)];
|
|
555
758
|
case 1:
|
|
556
759
|
localVarAxiosArgs = _a.sent();
|
|
557
760
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -560,20 +763,20 @@ var ActionsApiFp = function (configuration) {
|
|
|
560
763
|
});
|
|
561
764
|
},
|
|
562
765
|
/**
|
|
563
|
-
*
|
|
564
|
-
* @summary Retrieve the
|
|
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>)
|
|
565
769
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
566
|
-
* @param {string} [
|
|
567
|
-
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
770
|
+
* @param {string} [expand]
|
|
568
771
|
* @param {*} [options] Override http request option.
|
|
569
772
|
* @throws {RequiredError}
|
|
570
773
|
*/
|
|
571
|
-
|
|
774
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
572
775
|
return __awaiter(this, void 0, void 0, function () {
|
|
573
776
|
var localVarAxiosArgs;
|
|
574
777
|
return __generator(this, function (_a) {
|
|
575
778
|
switch (_a.label) {
|
|
576
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
779
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
|
|
577
780
|
case 1:
|
|
578
781
|
localVarAxiosArgs = _a.sent();
|
|
579
782
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -582,25 +785,26 @@ var ActionsApiFp = function (configuration) {
|
|
|
582
785
|
});
|
|
583
786
|
},
|
|
584
787
|
/**
|
|
585
|
-
* Lists
|
|
586
|
-
* @summary List
|
|
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
|
|
587
791
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
588
792
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
589
793
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
590
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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>
|
|
591
795
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
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,
|
|
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.
|
|
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>
|
|
595
799
|
* @param {*} [options] Override http request option.
|
|
596
800
|
* @throws {RequiredError}
|
|
597
801
|
*/
|
|
598
|
-
|
|
802
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
599
803
|
return __awaiter(this, void 0, void 0, function () {
|
|
600
804
|
var localVarAxiosArgs;
|
|
601
805
|
return __generator(this, function (_a) {
|
|
602
806
|
switch (_a.label) {
|
|
603
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
807
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
604
808
|
case 1:
|
|
605
809
|
localVarAxiosArgs = _a.sent();
|
|
606
810
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -609,16 +813,16 @@ var ActionsApiFp = function (configuration) {
|
|
|
609
813
|
});
|
|
610
814
|
},
|
|
611
815
|
/**
|
|
612
|
-
* Lists all action configurations with optional filters
|
|
816
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
613
817
|
* @summary List actions
|
|
614
818
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
615
819
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
616
820
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
617
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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>
|
|
618
822
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
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,
|
|
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.
|
|
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>
|
|
622
826
|
* @param {*} [options] Override http request option.
|
|
623
827
|
* @throws {RequiredError}
|
|
624
828
|
*/
|
|
@@ -636,7 +840,34 @@ var ActionsApiFp = function (configuration) {
|
|
|
636
840
|
});
|
|
637
841
|
},
|
|
638
842
|
/**
|
|
639
|
-
*
|
|
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\"
|
|
640
871
|
* @summary Update the action
|
|
641
872
|
* @param {string} code Action code
|
|
642
873
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -657,6 +888,28 @@ var ActionsApiFp = function (configuration) {
|
|
|
657
888
|
});
|
|
658
889
|
});
|
|
659
890
|
},
|
|
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
|
+
},
|
|
660
913
|
};
|
|
661
914
|
};
|
|
662
915
|
exports.ActionsApiFp = ActionsApiFp;
|
|
@@ -668,7 +921,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
668
921
|
var localVarFp = (0, exports.ActionsApiFp)(configuration);
|
|
669
922
|
return {
|
|
670
923
|
/**
|
|
671
|
-
* Creates a new action configuration
|
|
924
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
672
925
|
* @summary Create the action
|
|
673
926
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
674
927
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -679,7 +932,7 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
679
932
|
return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
680
933
|
},
|
|
681
934
|
/**
|
|
682
|
-
* Deletes an action configuration by its code
|
|
935
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
683
936
|
* @summary Delete the action
|
|
684
937
|
* @param {string} code Action code
|
|
685
938
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -690,56 +943,69 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
690
943
|
return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
691
944
|
},
|
|
692
945
|
/**
|
|
693
|
-
*
|
|
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\"
|
|
694
958
|
* @summary Retrieve the action
|
|
695
959
|
* @param {string} code Action code
|
|
696
960
|
* @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)
|
|
697
962
|
* @param {*} [options] Override http request option.
|
|
698
963
|
* @throws {RequiredError}
|
|
699
964
|
*/
|
|
700
|
-
getAction: function (code, authorization, options) {
|
|
701
|
-
return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
965
|
+
getAction: function (code, authorization, expand, options) {
|
|
966
|
+
return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
702
967
|
},
|
|
703
968
|
/**
|
|
704
|
-
*
|
|
705
|
-
* @summary Retrieve the
|
|
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>)
|
|
706
972
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
707
|
-
* @param {string} [
|
|
708
|
-
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
973
|
+
* @param {string} [expand]
|
|
709
974
|
* @param {*} [options] Override http request option.
|
|
710
975
|
* @throws {RequiredError}
|
|
711
976
|
*/
|
|
712
|
-
|
|
713
|
-
return localVarFp.
|
|
977
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
978
|
+
return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
714
979
|
},
|
|
715
980
|
/**
|
|
716
|
-
* Lists
|
|
717
|
-
* @summary List
|
|
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
|
|
718
984
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
719
985
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
720
986
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
721
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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>
|
|
722
988
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
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,
|
|
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.
|
|
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>
|
|
726
992
|
* @param {*} [options] Override http request option.
|
|
727
993
|
* @throws {RequiredError}
|
|
728
994
|
*/
|
|
729
|
-
|
|
730
|
-
return localVarFp.
|
|
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); });
|
|
731
997
|
},
|
|
732
998
|
/**
|
|
733
|
-
* Lists all action configurations with optional filters
|
|
999
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
734
1000
|
* @summary List actions
|
|
735
1001
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
736
1002
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
737
1003
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
738
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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>
|
|
739
1005
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
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,
|
|
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.
|
|
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>
|
|
743
1009
|
* @param {*} [options] Override http request option.
|
|
744
1010
|
* @throws {RequiredError}
|
|
745
1011
|
*/
|
|
@@ -747,7 +1013,24 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
747
1013
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
748
1014
|
},
|
|
749
1015
|
/**
|
|
750
|
-
*
|
|
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\"
|
|
751
1034
|
* @summary Update the action
|
|
752
1035
|
* @param {string} code Action code
|
|
753
1036
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -758,6 +1041,18 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
758
1041
|
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
759
1042
|
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
760
1043
|
},
|
|
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
|
+
},
|
|
761
1056
|
};
|
|
762
1057
|
};
|
|
763
1058
|
exports.ActionsApiFactory = ActionsApiFactory;
|
|
@@ -773,7 +1068,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
773
1068
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
774
1069
|
}
|
|
775
1070
|
/**
|
|
776
|
-
* Creates a new action configuration
|
|
1071
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
777
1072
|
* @summary Create the action
|
|
778
1073
|
* @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
|
|
779
1074
|
* @param {*} [options] Override http request option.
|
|
@@ -785,7 +1080,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
785
1080
|
return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
786
1081
|
};
|
|
787
1082
|
/**
|
|
788
|
-
* Deletes an action configuration by its code
|
|
1083
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
789
1084
|
* @summary Delete the action
|
|
790
1085
|
* @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
|
|
791
1086
|
* @param {*} [options] Override http request option.
|
|
@@ -797,7 +1092,19 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
797
1092
|
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
798
1093
|
};
|
|
799
1094
|
/**
|
|
800
|
-
*
|
|
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\"
|
|
801
1108
|
* @summary Retrieve the action
|
|
802
1109
|
* @param {ActionsApiGetActionRequest} requestParameters Request parameters.
|
|
803
1110
|
* @param {*} [options] Override http request option.
|
|
@@ -806,36 +1113,34 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
806
1113
|
*/
|
|
807
1114
|
ActionsApi.prototype.getAction = function (requestParameters, options) {
|
|
808
1115
|
var _this = this;
|
|
809
|
-
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1116
|
+
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
810
1117
|
};
|
|
811
1118
|
/**
|
|
812
|
-
*
|
|
813
|
-
* @summary Retrieve the
|
|
814
|
-
* @param {
|
|
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.
|
|
815
1122
|
* @param {*} [options] Override http request option.
|
|
816
1123
|
* @throws {RequiredError}
|
|
817
1124
|
* @memberof ActionsApi
|
|
818
1125
|
*/
|
|
819
|
-
ActionsApi.prototype.
|
|
1126
|
+
ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
|
|
820
1127
|
var _this = this;
|
|
821
|
-
|
|
822
|
-
return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1128
|
+
return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
823
1129
|
};
|
|
824
1130
|
/**
|
|
825
|
-
* Lists
|
|
826
|
-
* @summary List
|
|
827
|
-
* @param {
|
|
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.
|
|
828
1134
|
* @param {*} [options] Override http request option.
|
|
829
1135
|
* @throws {RequiredError}
|
|
830
1136
|
* @memberof ActionsApi
|
|
831
1137
|
*/
|
|
832
|
-
ActionsApi.prototype.
|
|
1138
|
+
ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
|
|
833
1139
|
var _this = this;
|
|
834
|
-
|
|
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); });
|
|
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); });
|
|
836
1141
|
};
|
|
837
1142
|
/**
|
|
838
|
-
* Lists all action configurations with optional filters
|
|
1143
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
839
1144
|
* @summary List actions
|
|
840
1145
|
* @param {ActionsApiListActionsRequest} requestParameters Request parameters.
|
|
841
1146
|
* @param {*} [options] Override http request option.
|
|
@@ -848,7 +1153,20 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
848
1153
|
return (0, exports.ActionsApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
849
1154
|
};
|
|
850
1155
|
/**
|
|
851
|
-
*
|
|
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\"
|
|
852
1170
|
* @summary Update the action
|
|
853
1171
|
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
854
1172
|
* @param {*} [options] Override http request option.
|
|
@@ -859,6 +1177,18 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
859
1177
|
var _this = this;
|
|
860
1178
|
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
861
1179
|
};
|
|
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
|
+
};
|
|
862
1192
|
return ActionsApi;
|
|
863
1193
|
}(base_1.BaseAPI));
|
|
864
1194
|
exports.ActionsApi = ActionsApi;
|