@emilgroup/action-sdk 1.1.1-beta.7 → 1.2.1-beta.10
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 +8 -1
- package/README.md +2 -2
- package/api/action-client-api.ts +1709 -0
- package/api/actions-api.ts +201 -495
- package/api/executions-api.ts +119 -12
- package/api/{default-api.ts → health-api.ts} +13 -13
- package/api.ts +4 -2
- package/base.ts +1 -0
- package/dist/api/action-client-api.d.ts +973 -0
- package/dist/api/action-client-api.js +1416 -0
- package/dist/api/actions-api.d.ts +165 -321
- package/dist/api/actions-api.js +136 -410
- package/dist/api/executions-api.d.ts +69 -12
- package/dist/api/executions-api.js +102 -9
- package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
- package/dist/api/{default-api.js → health-api.js} +22 -22
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +2 -1
- package/dist/base.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-executions-response-class.d.ts +10 -10
- 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/list-actions-response-class.d.ts +10 -10
- 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-executions-response-class.ts +10 -10
- package/models/list-action-versions-response-class.ts +49 -0
- package/models/list-actions-response-class.ts +10 -10
- 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 +2 -2
package/dist/api/actions-api.js
CHANGED
|
@@ -141,55 +141,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
-
/**
|
|
145
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
146
|
-
* @summary Create the action
|
|
147
|
-
* @param {CreateActionRequestDto} createActionRequestDto
|
|
148
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
-
* @param {*} [options] Override http request option.
|
|
150
|
-
* @throws {RequiredError}
|
|
151
|
-
*/
|
|
152
|
-
createAction_1: function (createActionRequestDto, authorization, options) {
|
|
153
|
-
if (options === void 0) { options = {}; }
|
|
154
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
return __generator(this, function (_a) {
|
|
157
|
-
switch (_a.label) {
|
|
158
|
-
case 0:
|
|
159
|
-
// verify required parameter 'createActionRequestDto' is not null or undefined
|
|
160
|
-
(0, common_1.assertParamExists)('createAction_1', 'createActionRequestDto', createActionRequestDto);
|
|
161
|
-
localVarPath = "/actionservice/v1/actions";
|
|
162
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
-
if (configuration) {
|
|
164
|
-
baseOptions = configuration.baseOptions;
|
|
165
|
-
baseAccessToken = configuration.accessToken;
|
|
166
|
-
}
|
|
167
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
168
|
-
localVarHeaderParameter = {};
|
|
169
|
-
localVarQueryParameter = {};
|
|
170
|
-
// authentication bearer required
|
|
171
|
-
// http bearer authentication required
|
|
172
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
-
case 1:
|
|
174
|
-
// authentication bearer required
|
|
175
|
-
// http bearer authentication required
|
|
176
|
-
_a.sent();
|
|
177
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
179
|
-
}
|
|
180
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActionRequestDto, localVarRequestOptions, configuration);
|
|
185
|
-
return [2 /*return*/, {
|
|
186
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
|
-
options: localVarRequestOptions,
|
|
188
|
-
}];
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
},
|
|
193
144
|
/**
|
|
194
145
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
195
146
|
* @summary Delete the action
|
|
@@ -239,24 +190,24 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
239
190
|
});
|
|
240
191
|
},
|
|
241
192
|
/**
|
|
242
|
-
* Deletes
|
|
243
|
-
* @summary Delete the action
|
|
244
|
-
* @param {string} code
|
|
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>)
|
|
245
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
246
197
|
* @param {*} [options] Override http request option.
|
|
247
198
|
* @throws {RequiredError}
|
|
248
199
|
*/
|
|
249
|
-
|
|
200
|
+
deleteActionVersion: function (versionCode, 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;
|
|
253
204
|
return __generator(this, function (_a) {
|
|
254
205
|
switch (_a.label) {
|
|
255
206
|
case 0:
|
|
256
|
-
// verify required parameter '
|
|
257
|
-
(0, common_1.assertParamExists)('
|
|
258
|
-
localVarPath = "/actionservice/v1/actions/{
|
|
259
|
-
.replace("{".concat("
|
|
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)));
|
|
260
211
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
261
212
|
if (configuration) {
|
|
262
213
|
baseOptions = configuration.baseOptions;
|
|
@@ -291,10 +242,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
291
242
|
* @summary Retrieve the action
|
|
292
243
|
* @param {string} code Action code
|
|
293
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)
|
|
294
246
|
* @param {*} [options] Override http request option.
|
|
295
247
|
* @throws {RequiredError}
|
|
296
248
|
*/
|
|
297
|
-
getAction: function (code, authorization, options) {
|
|
249
|
+
getAction: function (code, authorization, expand, options) {
|
|
298
250
|
if (options === void 0) { options = {}; }
|
|
299
251
|
return __awaiter(_this, void 0, void 0, function () {
|
|
300
252
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -320,6 +272,9 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
320
272
|
// authentication bearer required
|
|
321
273
|
// http bearer authentication required
|
|
322
274
|
_a.sent();
|
|
275
|
+
if (expand !== undefined) {
|
|
276
|
+
localVarQueryParameter['expand'] = expand;
|
|
277
|
+
}
|
|
323
278
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
324
279
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
325
280
|
}
|
|
@@ -335,22 +290,25 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
335
290
|
});
|
|
336
291
|
},
|
|
337
292
|
/**
|
|
338
|
-
*
|
|
339
|
-
* @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>)
|
|
340
296
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
341
|
-
* @param {string} [
|
|
342
|
-
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
297
|
+
* @param {string} [expand]
|
|
343
298
|
* @param {*} [options] Override http request option.
|
|
344
299
|
* @throws {RequiredError}
|
|
345
300
|
*/
|
|
346
|
-
|
|
301
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
347
302
|
if (options === void 0) { options = {}; }
|
|
348
303
|
return __awaiter(_this, void 0, void 0, function () {
|
|
349
304
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
350
305
|
return __generator(this, function (_a) {
|
|
351
306
|
switch (_a.label) {
|
|
352
307
|
case 0:
|
|
353
|
-
|
|
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)));
|
|
354
312
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
355
313
|
if (configuration) {
|
|
356
314
|
baseOptions = configuration.baseOptions;
|
|
@@ -366,11 +324,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
366
324
|
// authentication bearer required
|
|
367
325
|
// http bearer authentication required
|
|
368
326
|
_a.sent();
|
|
369
|
-
if (
|
|
370
|
-
localVarQueryParameter['
|
|
371
|
-
}
|
|
372
|
-
if (correlationId !== undefined) {
|
|
373
|
-
localVarQueryParameter['correlationId'] = correlationId;
|
|
327
|
+
if (expand !== undefined) {
|
|
328
|
+
localVarQueryParameter['expand'] = expand;
|
|
374
329
|
}
|
|
375
330
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
376
331
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
@@ -387,75 +342,31 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
387
342
|
});
|
|
388
343
|
},
|
|
389
344
|
/**
|
|
390
|
-
*
|
|
391
|
-
* @summary
|
|
345
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
346
|
+
* @summary List action versions
|
|
392
347
|
* @param {string} code Action code
|
|
393
348
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
394
|
-
* @param {*} [options] Override http request option.
|
|
395
|
-
* @throws {RequiredError}
|
|
396
|
-
*/
|
|
397
|
-
getAction_3: function (code, authorization, options) {
|
|
398
|
-
if (options === void 0) { options = {}; }
|
|
399
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
400
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
401
|
-
return __generator(this, function (_a) {
|
|
402
|
-
switch (_a.label) {
|
|
403
|
-
case 0:
|
|
404
|
-
// verify required parameter 'code' is not null or undefined
|
|
405
|
-
(0, common_1.assertParamExists)('getAction_3', 'code', code);
|
|
406
|
-
localVarPath = "/actionservice/v1/actions/{code}"
|
|
407
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
408
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
409
|
-
if (configuration) {
|
|
410
|
-
baseOptions = configuration.baseOptions;
|
|
411
|
-
baseAccessToken = configuration.accessToken;
|
|
412
|
-
}
|
|
413
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
414
|
-
localVarHeaderParameter = {};
|
|
415
|
-
localVarQueryParameter = {};
|
|
416
|
-
// authentication bearer required
|
|
417
|
-
// http bearer authentication required
|
|
418
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
419
|
-
case 1:
|
|
420
|
-
// authentication bearer required
|
|
421
|
-
// http bearer authentication required
|
|
422
|
-
_a.sent();
|
|
423
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
424
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
425
|
-
}
|
|
426
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
427
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
428
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
429
|
-
return [2 /*return*/, {
|
|
430
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
431
|
-
options: localVarRequestOptions,
|
|
432
|
-
}];
|
|
433
|
-
}
|
|
434
|
-
});
|
|
435
|
-
});
|
|
436
|
-
},
|
|
437
|
-
/**
|
|
438
|
-
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
439
|
-
* @summary List actionExecutions
|
|
440
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
441
349
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
442
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.
|
|
443
|
-
* @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>
|
|
444
352
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
445
|
-
* @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,
|
|
446
|
-
* @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/>
|
|
447
|
-
* @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>
|
|
448
356
|
* @param {*} [options] Override http request option.
|
|
449
357
|
* @throws {RequiredError}
|
|
450
358
|
*/
|
|
451
|
-
|
|
359
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
452
360
|
if (options === void 0) { options = {}; }
|
|
453
361
|
return __awaiter(_this, void 0, void 0, function () {
|
|
454
362
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
455
363
|
return __generator(this, function (_a) {
|
|
456
364
|
switch (_a.label) {
|
|
457
365
|
case 0:
|
|
458
|
-
|
|
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)));
|
|
459
370
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
460
371
|
if (configuration) {
|
|
461
372
|
baseOptions = configuration.baseOptions;
|
|
@@ -512,11 +423,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
512
423
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
513
424
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
514
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.
|
|
515
|
-
* @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>
|
|
516
427
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
517
|
-
* @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,
|
|
518
|
-
* @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/>
|
|
519
|
-
* @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>
|
|
520
431
|
* @param {*} [options] Override http request option.
|
|
521
432
|
* @throws {RequiredError}
|
|
522
433
|
*/
|
|
@@ -579,27 +490,27 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
579
490
|
});
|
|
580
491
|
},
|
|
581
492
|
/**
|
|
582
|
-
* Lists all action
|
|
583
|
-
* @summary List
|
|
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
|
|
584
495
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
585
496
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
586
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.
|
|
587
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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>
|
|
588
499
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
589
|
-
* @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,
|
|
590
|
-
* @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/>
|
|
591
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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>
|
|
592
503
|
* @param {*} [options] Override http request option.
|
|
593
504
|
* @throws {RequiredError}
|
|
594
505
|
*/
|
|
595
|
-
|
|
506
|
+
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
596
507
|
if (options === void 0) { options = {}; }
|
|
597
508
|
return __awaiter(_this, void 0, void 0, function () {
|
|
598
509
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
599
510
|
return __generator(this, function (_a) {
|
|
600
511
|
switch (_a.label) {
|
|
601
512
|
case 0:
|
|
602
|
-
localVarPath = "/actionservice/v1/actions";
|
|
513
|
+
localVarPath = "/actionservice/v1/actions/versions";
|
|
603
514
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
604
515
|
if (configuration) {
|
|
605
516
|
baseOptions = configuration.baseOptions;
|
|
@@ -703,59 +614,6 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
703
614
|
});
|
|
704
615
|
});
|
|
705
616
|
},
|
|
706
|
-
/**
|
|
707
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
708
|
-
* @summary Update the action
|
|
709
|
-
* @param {string} code Action code
|
|
710
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
711
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
712
|
-
* @param {*} [options] Override http request option.
|
|
713
|
-
* @throws {RequiredError}
|
|
714
|
-
*/
|
|
715
|
-
updateAction_5: function (code, updateActionRequestDto, authorization, options) {
|
|
716
|
-
if (options === void 0) { options = {}; }
|
|
717
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
718
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
719
|
-
return __generator(this, function (_a) {
|
|
720
|
-
switch (_a.label) {
|
|
721
|
-
case 0:
|
|
722
|
-
// verify required parameter 'code' is not null or undefined
|
|
723
|
-
(0, common_1.assertParamExists)('updateAction_5', 'code', code);
|
|
724
|
-
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
725
|
-
(0, common_1.assertParamExists)('updateAction_5', 'updateActionRequestDto', updateActionRequestDto);
|
|
726
|
-
localVarPath = "/actionservice/v1/actions/{code}"
|
|
727
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
728
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
729
|
-
if (configuration) {
|
|
730
|
-
baseOptions = configuration.baseOptions;
|
|
731
|
-
baseAccessToken = configuration.accessToken;
|
|
732
|
-
}
|
|
733
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
734
|
-
localVarHeaderParameter = {};
|
|
735
|
-
localVarQueryParameter = {};
|
|
736
|
-
// authentication bearer required
|
|
737
|
-
// http bearer authentication required
|
|
738
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
739
|
-
case 1:
|
|
740
|
-
// authentication bearer required
|
|
741
|
-
// http bearer authentication required
|
|
742
|
-
_a.sent();
|
|
743
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
744
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
745
|
-
}
|
|
746
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
747
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
748
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
749
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
750
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateActionRequestDto, localVarRequestOptions, configuration);
|
|
751
|
-
return [2 /*return*/, {
|
|
752
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
753
|
-
options: localVarRequestOptions,
|
|
754
|
-
}];
|
|
755
|
-
}
|
|
756
|
-
});
|
|
757
|
-
});
|
|
758
|
-
},
|
|
759
617
|
};
|
|
760
618
|
};
|
|
761
619
|
exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
|
|
@@ -787,27 +645,6 @@ var ActionsApiFp = function (configuration) {
|
|
|
787
645
|
});
|
|
788
646
|
});
|
|
789
647
|
},
|
|
790
|
-
/**
|
|
791
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
792
|
-
* @summary Create the action
|
|
793
|
-
* @param {CreateActionRequestDto} createActionRequestDto
|
|
794
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
795
|
-
* @param {*} [options] Override http request option.
|
|
796
|
-
* @throws {RequiredError}
|
|
797
|
-
*/
|
|
798
|
-
createAction_1: function (createActionRequestDto, authorization, options) {
|
|
799
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
800
|
-
var localVarAxiosArgs;
|
|
801
|
-
return __generator(this, function (_a) {
|
|
802
|
-
switch (_a.label) {
|
|
803
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAction_1(createActionRequestDto, authorization, options)];
|
|
804
|
-
case 1:
|
|
805
|
-
localVarAxiosArgs = _a.sent();
|
|
806
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
807
|
-
}
|
|
808
|
-
});
|
|
809
|
-
});
|
|
810
|
-
},
|
|
811
648
|
/**
|
|
812
649
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
813
650
|
* @summary Delete the action
|
|
@@ -830,19 +667,19 @@ var ActionsApiFp = function (configuration) {
|
|
|
830
667
|
});
|
|
831
668
|
},
|
|
832
669
|
/**
|
|
833
|
-
* Deletes
|
|
834
|
-
* @summary Delete the action
|
|
835
|
-
* @param {string} code
|
|
670
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
671
|
+
* @summary Delete the action version
|
|
672
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
836
673
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
837
674
|
* @param {*} [options] Override http request option.
|
|
838
675
|
* @throws {RequiredError}
|
|
839
676
|
*/
|
|
840
|
-
|
|
677
|
+
deleteActionVersion: function (versionCode, authorization, options) {
|
|
841
678
|
return __awaiter(this, void 0, void 0, function () {
|
|
842
679
|
var localVarAxiosArgs;
|
|
843
680
|
return __generator(this, function (_a) {
|
|
844
681
|
switch (_a.label) {
|
|
845
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
682
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options)];
|
|
846
683
|
case 1:
|
|
847
684
|
localVarAxiosArgs = _a.sent();
|
|
848
685
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -855,15 +692,16 @@ var ActionsApiFp = function (configuration) {
|
|
|
855
692
|
* @summary Retrieve the action
|
|
856
693
|
* @param {string} code Action code
|
|
857
694
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
695
|
+
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
858
696
|
* @param {*} [options] Override http request option.
|
|
859
697
|
* @throws {RequiredError}
|
|
860
698
|
*/
|
|
861
|
-
getAction: function (code, authorization, options) {
|
|
699
|
+
getAction: function (code, authorization, expand, options) {
|
|
862
700
|
return __awaiter(this, void 0, void 0, function () {
|
|
863
701
|
var localVarAxiosArgs;
|
|
864
702
|
return __generator(this, function (_a) {
|
|
865
703
|
switch (_a.label) {
|
|
866
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
|
|
704
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, expand, options)];
|
|
867
705
|
case 1:
|
|
868
706
|
localVarAxiosArgs = _a.sent();
|
|
869
707
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -872,20 +710,20 @@ var ActionsApiFp = function (configuration) {
|
|
|
872
710
|
});
|
|
873
711
|
},
|
|
874
712
|
/**
|
|
875
|
-
*
|
|
876
|
-
* @summary Retrieve the
|
|
713
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
714
|
+
* @summary Retrieve the action version
|
|
715
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
877
716
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
878
|
-
* @param {string} [
|
|
879
|
-
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
717
|
+
* @param {string} [expand]
|
|
880
718
|
* @param {*} [options] Override http request option.
|
|
881
719
|
* @throws {RequiredError}
|
|
882
720
|
*/
|
|
883
|
-
|
|
721
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
884
722
|
return __awaiter(this, void 0, void 0, function () {
|
|
885
723
|
var localVarAxiosArgs;
|
|
886
724
|
return __generator(this, function (_a) {
|
|
887
725
|
switch (_a.label) {
|
|
888
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
726
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options)];
|
|
889
727
|
case 1:
|
|
890
728
|
localVarAxiosArgs = _a.sent();
|
|
891
729
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -894,46 +732,26 @@ var ActionsApiFp = function (configuration) {
|
|
|
894
732
|
});
|
|
895
733
|
},
|
|
896
734
|
/**
|
|
897
|
-
*
|
|
898
|
-
* @summary
|
|
735
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
736
|
+
* @summary List action versions
|
|
899
737
|
* @param {string} code Action code
|
|
900
738
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
901
|
-
* @param {*} [options] Override http request option.
|
|
902
|
-
* @throws {RequiredError}
|
|
903
|
-
*/
|
|
904
|
-
getAction_3: function (code, authorization, options) {
|
|
905
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
906
|
-
var localVarAxiosArgs;
|
|
907
|
-
return __generator(this, function (_a) {
|
|
908
|
-
switch (_a.label) {
|
|
909
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction_3(code, authorization, options)];
|
|
910
|
-
case 1:
|
|
911
|
-
localVarAxiosArgs = _a.sent();
|
|
912
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
913
|
-
}
|
|
914
|
-
});
|
|
915
|
-
});
|
|
916
|
-
},
|
|
917
|
-
/**
|
|
918
|
-
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
919
|
-
* @summary List actionExecutions
|
|
920
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
921
739
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
922
740
|
* @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.
|
|
923
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
741
|
+
* @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>
|
|
924
742
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
925
|
-
* @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,
|
|
926
|
-
* @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/>
|
|
927
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
743
|
+
* @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>
|
|
744
|
+
* @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>
|
|
745
|
+
* @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>
|
|
928
746
|
* @param {*} [options] Override http request option.
|
|
929
747
|
* @throws {RequiredError}
|
|
930
748
|
*/
|
|
931
|
-
|
|
749
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
932
750
|
return __awaiter(this, void 0, void 0, function () {
|
|
933
751
|
var localVarAxiosArgs;
|
|
934
752
|
return __generator(this, function (_a) {
|
|
935
753
|
switch (_a.label) {
|
|
936
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
754
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
937
755
|
case 1:
|
|
938
756
|
localVarAxiosArgs = _a.sent();
|
|
939
757
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -947,11 +765,11 @@ var ActionsApiFp = function (configuration) {
|
|
|
947
765
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
948
766
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
949
767
|
* @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.
|
|
950
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
768
|
+
* @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>
|
|
951
769
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
952
|
-
* @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,
|
|
953
|
-
* @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/>
|
|
954
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
770
|
+
* @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>
|
|
771
|
+
* @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>
|
|
772
|
+
* @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>
|
|
955
773
|
* @param {*} [options] Override http request option.
|
|
956
774
|
* @throws {RequiredError}
|
|
957
775
|
*/
|
|
@@ -969,25 +787,25 @@ var ActionsApiFp = function (configuration) {
|
|
|
969
787
|
});
|
|
970
788
|
},
|
|
971
789
|
/**
|
|
972
|
-
* Lists all action
|
|
973
|
-
* @summary List
|
|
790
|
+
* 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\"
|
|
791
|
+
* @summary List action versions
|
|
974
792
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
975
793
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
976
794
|
* @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.
|
|
977
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
795
|
+
* @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>
|
|
978
796
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
979
|
-
* @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,
|
|
980
|
-
* @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/>
|
|
981
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
797
|
+
* @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>
|
|
798
|
+
* @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>
|
|
799
|
+
* @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>
|
|
982
800
|
* @param {*} [options] Override http request option.
|
|
983
801
|
* @throws {RequiredError}
|
|
984
802
|
*/
|
|
985
|
-
|
|
803
|
+
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
986
804
|
return __awaiter(this, void 0, void 0, function () {
|
|
987
805
|
var localVarAxiosArgs;
|
|
988
806
|
return __generator(this, function (_a) {
|
|
989
807
|
switch (_a.label) {
|
|
990
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
808
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
991
809
|
case 1:
|
|
992
810
|
localVarAxiosArgs = _a.sent();
|
|
993
811
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1017,28 +835,6 @@ var ActionsApiFp = function (configuration) {
|
|
|
1017
835
|
});
|
|
1018
836
|
});
|
|
1019
837
|
},
|
|
1020
|
-
/**
|
|
1021
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1022
|
-
* @summary Update the action
|
|
1023
|
-
* @param {string} code Action code
|
|
1024
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
1025
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1026
|
-
* @param {*} [options] Override http request option.
|
|
1027
|
-
* @throws {RequiredError}
|
|
1028
|
-
*/
|
|
1029
|
-
updateAction_5: function (code, updateActionRequestDto, authorization, options) {
|
|
1030
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1031
|
-
var localVarAxiosArgs;
|
|
1032
|
-
return __generator(this, function (_a) {
|
|
1033
|
-
switch (_a.label) {
|
|
1034
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options)];
|
|
1035
|
-
case 1:
|
|
1036
|
-
localVarAxiosArgs = _a.sent();
|
|
1037
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1038
|
-
}
|
|
1039
|
-
});
|
|
1040
|
-
});
|
|
1041
|
-
},
|
|
1042
838
|
};
|
|
1043
839
|
};
|
|
1044
840
|
exports.ActionsApiFp = ActionsApiFp;
|
|
@@ -1060,17 +856,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1060
856
|
createAction: function (createActionRequestDto, authorization, options) {
|
|
1061
857
|
return localVarFp.createAction(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1062
858
|
},
|
|
1063
|
-
/**
|
|
1064
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
1065
|
-
* @summary Create the action
|
|
1066
|
-
* @param {CreateActionRequestDto} createActionRequestDto
|
|
1067
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1068
|
-
* @param {*} [options] Override http request option.
|
|
1069
|
-
* @throws {RequiredError}
|
|
1070
|
-
*/
|
|
1071
|
-
createAction_1: function (createActionRequestDto, authorization, options) {
|
|
1072
|
-
return localVarFp.createAction_1(createActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1073
|
-
},
|
|
1074
859
|
/**
|
|
1075
860
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
1076
861
|
* @summary Delete the action
|
|
@@ -1083,66 +868,57 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1083
868
|
return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1084
869
|
},
|
|
1085
870
|
/**
|
|
1086
|
-
* Deletes
|
|
1087
|
-
* @summary Delete the action
|
|
1088
|
-
* @param {string} code
|
|
871
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
872
|
+
* @summary Delete the action version
|
|
873
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
1089
874
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1090
875
|
* @param {*} [options] Override http request option.
|
|
1091
876
|
* @throws {RequiredError}
|
|
1092
877
|
*/
|
|
1093
|
-
|
|
1094
|
-
return localVarFp.
|
|
878
|
+
deleteActionVersion: function (versionCode, authorization, options) {
|
|
879
|
+
return localVarFp.deleteActionVersion(versionCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1095
880
|
},
|
|
1096
881
|
/**
|
|
1097
882
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
1098
883
|
* @summary Retrieve the action
|
|
1099
884
|
* @param {string} code Action code
|
|
1100
885
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
886
|
+
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
1101
887
|
* @param {*} [options] Override http request option.
|
|
1102
888
|
* @throws {RequiredError}
|
|
1103
889
|
*/
|
|
1104
|
-
getAction: function (code, authorization, options) {
|
|
1105
|
-
return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
890
|
+
getAction: function (code, authorization, expand, options) {
|
|
891
|
+
return localVarFp.getAction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
1106
892
|
},
|
|
1107
893
|
/**
|
|
1108
|
-
*
|
|
1109
|
-
* @summary Retrieve the
|
|
894
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
895
|
+
* @summary Retrieve the action version
|
|
896
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
1110
897
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1111
|
-
* @param {string} [
|
|
1112
|
-
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
898
|
+
* @param {string} [expand]
|
|
1113
899
|
* @param {*} [options] Override http request option.
|
|
1114
900
|
* @throws {RequiredError}
|
|
1115
901
|
*/
|
|
1116
|
-
|
|
1117
|
-
return localVarFp.
|
|
902
|
+
getActionVersion: function (versionCode, authorization, expand, options) {
|
|
903
|
+
return localVarFp.getActionVersion(versionCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
1118
904
|
},
|
|
1119
905
|
/**
|
|
1120
|
-
*
|
|
1121
|
-
* @summary
|
|
906
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
907
|
+
* @summary List action versions
|
|
1122
908
|
* @param {string} code Action code
|
|
1123
909
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1124
|
-
* @param {*} [options] Override http request option.
|
|
1125
|
-
* @throws {RequiredError}
|
|
1126
|
-
*/
|
|
1127
|
-
getAction_3: function (code, authorization, options) {
|
|
1128
|
-
return localVarFp.getAction_3(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1129
|
-
},
|
|
1130
|
-
/**
|
|
1131
|
-
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1132
|
-
* @summary List actionExecutions
|
|
1133
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1134
910
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1135
911
|
* @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.
|
|
1136
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
912
|
+
* @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>
|
|
1137
913
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1138
|
-
* @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,
|
|
1139
|
-
* @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/>
|
|
1140
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
914
|
+
* @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>
|
|
915
|
+
* @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>
|
|
916
|
+
* @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>
|
|
1141
917
|
* @param {*} [options] Override http request option.
|
|
1142
918
|
* @throws {RequiredError}
|
|
1143
919
|
*/
|
|
1144
|
-
|
|
1145
|
-
return localVarFp.
|
|
920
|
+
listActionVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
921
|
+
return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1146
922
|
},
|
|
1147
923
|
/**
|
|
1148
924
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1150,11 +926,11 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1150
926
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1151
927
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1152
928
|
* @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.
|
|
1153
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
929
|
+
* @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>
|
|
1154
930
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1155
|
-
* @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,
|
|
1156
|
-
* @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/>
|
|
1157
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
931
|
+
* @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>
|
|
932
|
+
* @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>
|
|
933
|
+
* @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>
|
|
1158
934
|
* @param {*} [options] Override http request option.
|
|
1159
935
|
* @throws {RequiredError}
|
|
1160
936
|
*/
|
|
@@ -1162,21 +938,21 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1162
938
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1163
939
|
},
|
|
1164
940
|
/**
|
|
1165
|
-
* Lists all action
|
|
1166
|
-
* @summary List
|
|
941
|
+
* 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\"
|
|
942
|
+
* @summary List action versions
|
|
1167
943
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1168
944
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1169
945
|
* @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.
|
|
1170
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
946
|
+
* @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>
|
|
1171
947
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1172
|
-
* @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,
|
|
1173
|
-
* @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/>
|
|
1174
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
948
|
+
* @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>
|
|
949
|
+
* @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>
|
|
950
|
+
* @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>
|
|
1175
951
|
* @param {*} [options] Override http request option.
|
|
1176
952
|
* @throws {RequiredError}
|
|
1177
953
|
*/
|
|
1178
|
-
|
|
1179
|
-
return localVarFp.
|
|
954
|
+
listAllActionVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
955
|
+
return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1180
956
|
},
|
|
1181
957
|
/**
|
|
1182
958
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
@@ -1190,18 +966,6 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1190
966
|
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
1191
967
|
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1192
968
|
},
|
|
1193
|
-
/**
|
|
1194
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1195
|
-
* @summary Update the action
|
|
1196
|
-
* @param {string} code Action code
|
|
1197
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
1198
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1199
|
-
* @param {*} [options] Override http request option.
|
|
1200
|
-
* @throws {RequiredError}
|
|
1201
|
-
*/
|
|
1202
|
-
updateAction_5: function (code, updateActionRequestDto, authorization, options) {
|
|
1203
|
-
return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1204
|
-
},
|
|
1205
969
|
};
|
|
1206
970
|
};
|
|
1207
971
|
exports.ActionsApiFactory = ActionsApiFactory;
|
|
@@ -1228,18 +992,6 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1228
992
|
var _this = this;
|
|
1229
993
|
return (0, exports.ActionsApiFp)(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1230
994
|
};
|
|
1231
|
-
/**
|
|
1232
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
1233
|
-
* @summary Create the action
|
|
1234
|
-
* @param {ActionsApiCreateAction0Request} requestParameters Request parameters.
|
|
1235
|
-
* @param {*} [options] Override http request option.
|
|
1236
|
-
* @throws {RequiredError}
|
|
1237
|
-
* @memberof ActionsApi
|
|
1238
|
-
*/
|
|
1239
|
-
ActionsApi.prototype.createAction_1 = function (requestParameters, options) {
|
|
1240
|
-
var _this = this;
|
|
1241
|
-
return (0, exports.ActionsApiFp)(this.configuration).createAction_1(requestParameters.createActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1242
|
-
};
|
|
1243
995
|
/**
|
|
1244
996
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
1245
997
|
* @summary Delete the action
|
|
@@ -1253,16 +1005,16 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1253
1005
|
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1254
1006
|
};
|
|
1255
1007
|
/**
|
|
1256
|
-
* Deletes
|
|
1257
|
-
* @summary Delete the action
|
|
1258
|
-
* @param {
|
|
1008
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
1009
|
+
* @summary Delete the action version
|
|
1010
|
+
* @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
|
|
1259
1011
|
* @param {*} [options] Override http request option.
|
|
1260
1012
|
* @throws {RequiredError}
|
|
1261
1013
|
* @memberof ActionsApi
|
|
1262
1014
|
*/
|
|
1263
|
-
ActionsApi.prototype.
|
|
1015
|
+
ActionsApi.prototype.deleteActionVersion = function (requestParameters, options) {
|
|
1264
1016
|
var _this = this;
|
|
1265
|
-
return (0, exports.ActionsApiFp)(this.configuration).
|
|
1017
|
+
return (0, exports.ActionsApiFp)(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1266
1018
|
};
|
|
1267
1019
|
/**
|
|
1268
1020
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1274,45 +1026,31 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1274
1026
|
*/
|
|
1275
1027
|
ActionsApi.prototype.getAction = function (requestParameters, options) {
|
|
1276
1028
|
var _this = this;
|
|
1277
|
-
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1029
|
+
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1278
1030
|
};
|
|
1279
1031
|
/**
|
|
1280
|
-
*
|
|
1281
|
-
* @summary Retrieve the
|
|
1282
|
-
* @param {
|
|
1032
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
1033
|
+
* @summary Retrieve the action version
|
|
1034
|
+
* @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
|
|
1283
1035
|
* @param {*} [options] Override http request option.
|
|
1284
1036
|
* @throws {RequiredError}
|
|
1285
1037
|
* @memberof ActionsApi
|
|
1286
1038
|
*/
|
|
1287
|
-
ActionsApi.prototype.
|
|
1039
|
+
ActionsApi.prototype.getActionVersion = function (requestParameters, options) {
|
|
1288
1040
|
var _this = this;
|
|
1289
|
-
|
|
1290
|
-
return (0, exports.ActionsApiFp)(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1041
|
+
return (0, exports.ActionsApiFp)(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1291
1042
|
};
|
|
1292
1043
|
/**
|
|
1293
|
-
*
|
|
1294
|
-
* @summary
|
|
1295
|
-
* @param {
|
|
1044
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
1045
|
+
* @summary List action versions
|
|
1046
|
+
* @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
|
|
1296
1047
|
* @param {*} [options] Override http request option.
|
|
1297
1048
|
* @throws {RequiredError}
|
|
1298
1049
|
* @memberof ActionsApi
|
|
1299
1050
|
*/
|
|
1300
|
-
ActionsApi.prototype.
|
|
1051
|
+
ActionsApi.prototype.listActionVersions = function (requestParameters, options) {
|
|
1301
1052
|
var _this = this;
|
|
1302
|
-
return (0, exports.ActionsApiFp)(this.configuration).
|
|
1303
|
-
};
|
|
1304
|
-
/**
|
|
1305
|
-
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1306
|
-
* @summary List actionExecutions
|
|
1307
|
-
* @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
|
|
1308
|
-
* @param {*} [options] Override http request option.
|
|
1309
|
-
* @throws {RequiredError}
|
|
1310
|
-
* @memberof ActionsApi
|
|
1311
|
-
*/
|
|
1312
|
-
ActionsApi.prototype.listActionExecutions = function (requestParameters, options) {
|
|
1313
|
-
var _this = this;
|
|
1314
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1315
|
-
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); });
|
|
1053
|
+
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); });
|
|
1316
1054
|
};
|
|
1317
1055
|
/**
|
|
1318
1056
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
@@ -1328,17 +1066,17 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1328
1066
|
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); });
|
|
1329
1067
|
};
|
|
1330
1068
|
/**
|
|
1331
|
-
* Lists all action
|
|
1332
|
-
* @summary List
|
|
1333
|
-
* @param {
|
|
1069
|
+
* 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\"
|
|
1070
|
+
* @summary List action versions
|
|
1071
|
+
* @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
|
|
1334
1072
|
* @param {*} [options] Override http request option.
|
|
1335
1073
|
* @throws {RequiredError}
|
|
1336
1074
|
* @memberof ActionsApi
|
|
1337
1075
|
*/
|
|
1338
|
-
ActionsApi.prototype.
|
|
1076
|
+
ActionsApi.prototype.listAllActionVersions = function (requestParameters, options) {
|
|
1339
1077
|
var _this = this;
|
|
1340
1078
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1341
|
-
return (0, exports.ActionsApiFp)(this.configuration).
|
|
1079
|
+
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); });
|
|
1342
1080
|
};
|
|
1343
1081
|
/**
|
|
1344
1082
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
@@ -1352,18 +1090,6 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
1352
1090
|
var _this = this;
|
|
1353
1091
|
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1354
1092
|
};
|
|
1355
|
-
/**
|
|
1356
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1357
|
-
* @summary Update the action
|
|
1358
|
-
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1359
|
-
* @param {*} [options] Override http request option.
|
|
1360
|
-
* @throws {RequiredError}
|
|
1361
|
-
* @memberof ActionsApi
|
|
1362
|
-
*/
|
|
1363
|
-
ActionsApi.prototype.updateAction_5 = function (requestParameters, options) {
|
|
1364
|
-
var _this = this;
|
|
1365
|
-
return (0, exports.ActionsApiFp)(this.configuration).updateAction_5(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1366
|
-
};
|
|
1367
1093
|
return ActionsApi;
|
|
1368
1094
|
}(base_1.BaseAPI));
|
|
1369
1095
|
exports.ActionsApi = ActionsApi;
|