@emilgroup/action-sdk-node 1.0.1-beta.41 → 1.0.1-beta.46
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 +3 -0
- package/README.md +2 -2
- package/api/actions-api.ts +486 -99
- package/dist/api/actions-api.d.ts +296 -75
- package/dist/api/actions-api.js +374 -65
- package/dist/models/action-class.d.ts +6 -59
- package/dist/models/action-execution-class.d.ts +1 -1
- package/dist/models/action-version-class.d.ts +120 -0
- package/dist/models/action-version-class.js +21 -0
- package/dist/models/create-action-request-dto.d.ts +1 -1
- 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 +3 -0
- package/dist/models/index.js +3 -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 +6 -6
- package/dist/models/update-action-request-dto.d.ts +2 -2
- package/models/action-class.ts +6 -59
- package/models/action-execution-class.ts +1 -1
- package/models/action-version-class.ts +129 -0
- package/models/create-action-request-dto.ts +1 -1
- package/models/get-action-version-response-class.ts +31 -0
- package/models/index.ts +3 -0
- package/models/list-action-versions-response-class.ts +49 -0
- package/models/trigger-action-request-dto.ts +6 -6
- package/models/update-action-request-dto.ts +2 -2
- package/package.json +1 -1
package/api/actions-api.ts
CHANGED
|
@@ -29,10 +29,14 @@ import { ExportActionsAsYamlResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetActionResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { GetActionVersionResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
32
34
|
import { ImportActionsFromYamlRequestDto } from '../models';
|
|
33
35
|
// @ts-ignore
|
|
34
36
|
import { ImportActionsFromYamlResponseClass } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
38
|
+
import { ListActionVersionsResponseClass } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
36
40
|
import { ListActionsResponseClass } from '../models';
|
|
37
41
|
// @ts-ignore
|
|
38
42
|
import { UpdateActionRequestDto } from '../models';
|
|
@@ -131,6 +135,51 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
131
135
|
|
|
132
136
|
|
|
133
137
|
|
|
138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
url: toPathString(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
};
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
149
|
+
* @summary Delete the action version
|
|
150
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
151
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
deleteActionVersion: async (versionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
156
|
+
// verify required parameter 'versionCode' is not null or undefined
|
|
157
|
+
assertParamExists('deleteActionVersion', 'versionCode', versionCode)
|
|
158
|
+
const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
|
|
159
|
+
.replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
let baseAccessToken;
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
baseAccessToken = configuration.accessToken;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
170
|
+
const localVarHeaderParameter = {} as any;
|
|
171
|
+
const localVarQueryParameter = {} as any;
|
|
172
|
+
|
|
173
|
+
// authentication bearer required
|
|
174
|
+
// http bearer authentication required
|
|
175
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
176
|
+
|
|
177
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
134
183
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
184
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
185
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -246,6 +295,56 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
246
295
|
|
|
247
296
|
|
|
248
297
|
|
|
298
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
299
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
300
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
301
|
+
|
|
302
|
+
return {
|
|
303
|
+
url: toPathString(localVarUrlObj),
|
|
304
|
+
options: localVarRequestOptions,
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
309
|
+
* @summary Retrieve the action version
|
|
310
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
311
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
312
|
+
* @param {string} [expand]
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
getActionVersion: async (versionCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
317
|
+
// verify required parameter 'versionCode' is not null or undefined
|
|
318
|
+
assertParamExists('getActionVersion', 'versionCode', versionCode)
|
|
319
|
+
const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
|
|
320
|
+
.replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
|
|
321
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
322
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
323
|
+
let baseOptions;
|
|
324
|
+
let baseAccessToken;
|
|
325
|
+
if (configuration) {
|
|
326
|
+
baseOptions = configuration.baseOptions;
|
|
327
|
+
baseAccessToken = configuration.accessToken;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
331
|
+
const localVarHeaderParameter = {} as any;
|
|
332
|
+
const localVarQueryParameter = {} as any;
|
|
333
|
+
|
|
334
|
+
// authentication bearer required
|
|
335
|
+
// http bearer authentication required
|
|
336
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
337
|
+
|
|
338
|
+
if (expand !== undefined) {
|
|
339
|
+
localVarQueryParameter['expand'] = expand;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
343
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
249
348
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
250
349
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
350
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -303,21 +402,25 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
303
402
|
};
|
|
304
403
|
},
|
|
305
404
|
/**
|
|
306
|
-
* Lists all
|
|
307
|
-
* @summary List
|
|
405
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
406
|
+
* @summary List action versions
|
|
407
|
+
* @param {string} code Action code
|
|
308
408
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
309
409
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
310
410
|
* @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.
|
|
311
|
-
* @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,
|
|
411
|
+
* @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</i>
|
|
312
412
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
313
|
-
* @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,
|
|
413
|
+
* @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>
|
|
314
414
|
* @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>
|
|
315
|
-
* @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,
|
|
415
|
+
* @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</i>
|
|
316
416
|
* @param {*} [options] Override http request option.
|
|
317
417
|
* @throws {RequiredError}
|
|
318
418
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
419
|
+
listActionVersions: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
420
|
+
// verify required parameter 'code' is not null or undefined
|
|
421
|
+
assertParamExists('listActionVersions', 'code', code)
|
|
422
|
+
const localVarPath = `/actionservice/v1/actions/{code}/versions`
|
|
423
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
321
424
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
322
425
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
323
426
|
let baseOptions;
|
|
@@ -379,22 +482,21 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
379
482
|
};
|
|
380
483
|
},
|
|
381
484
|
/**
|
|
382
|
-
* Lists
|
|
383
|
-
* @summary
|
|
384
|
-
* @param {string} entityCode Code of the entity (e.g. policy code, lead code)
|
|
385
|
-
* @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
|
|
485
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
486
|
+
* @summary List actions
|
|
386
487
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
387
|
-
* @param {
|
|
388
|
-
* @param {
|
|
488
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
489
|
+
* @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.
|
|
490
|
+
* @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</i>
|
|
491
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
492
|
+
* @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>
|
|
493
|
+
* @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>
|
|
494
|
+
* @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</i>
|
|
389
495
|
* @param {*} [options] Override http request option.
|
|
390
496
|
* @throws {RequiredError}
|
|
391
497
|
*/
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
assertParamExists('listActionsByEntity', 'entityCode', entityCode)
|
|
395
|
-
// verify required parameter 'entityType' is not null or undefined
|
|
396
|
-
assertParamExists('listActionsByEntity', 'entityType', entityType)
|
|
397
|
-
const localVarPath = `/actionservice/v1/actions/by-entity`;
|
|
498
|
+
listActions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
499
|
+
const localVarPath = `/actionservice/v1/actions`;
|
|
398
500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
399
501
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
400
502
|
let baseOptions;
|
|
@@ -412,20 +514,32 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
412
514
|
// http bearer authentication required
|
|
413
515
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
414
516
|
|
|
415
|
-
if (
|
|
416
|
-
localVarQueryParameter['
|
|
517
|
+
if (pageSize !== undefined) {
|
|
518
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
417
519
|
}
|
|
418
520
|
|
|
419
|
-
if (
|
|
420
|
-
localVarQueryParameter['
|
|
521
|
+
if (pageToken !== undefined) {
|
|
522
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
421
523
|
}
|
|
422
524
|
|
|
423
|
-
if (
|
|
424
|
-
localVarQueryParameter['
|
|
525
|
+
if (filter !== undefined) {
|
|
526
|
+
localVarQueryParameter['filter'] = filter;
|
|
425
527
|
}
|
|
426
528
|
|
|
427
|
-
if (
|
|
428
|
-
localVarQueryParameter['
|
|
529
|
+
if (search !== undefined) {
|
|
530
|
+
localVarQueryParameter['search'] = search;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
if (order !== undefined) {
|
|
534
|
+
localVarQueryParameter['order'] = order;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
if (expand !== undefined) {
|
|
538
|
+
localVarQueryParameter['expand'] = expand;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
if (filters !== undefined) {
|
|
542
|
+
localVarQueryParameter['filters'] = filters;
|
|
429
543
|
}
|
|
430
544
|
|
|
431
545
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
@@ -444,7 +558,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
444
558
|
};
|
|
445
559
|
},
|
|
446
560
|
/**
|
|
447
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
561
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
448
562
|
* @summary Update the action
|
|
449
563
|
* @param {string} code Action code
|
|
450
564
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -482,6 +596,57 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
482
596
|
|
|
483
597
|
|
|
484
598
|
|
|
599
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
600
|
+
|
|
601
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
602
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
603
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
604
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
|
|
605
|
+
|
|
606
|
+
return {
|
|
607
|
+
url: toPathString(localVarUrlObj),
|
|
608
|
+
options: localVarRequestOptions,
|
|
609
|
+
};
|
|
610
|
+
},
|
|
611
|
+
/**
|
|
612
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
613
|
+
* @summary Update the action
|
|
614
|
+
* @param {string} code Action code
|
|
615
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
616
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
updateAction_1: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
621
|
+
// verify required parameter 'code' is not null or undefined
|
|
622
|
+
assertParamExists('updateAction_1', 'code', code)
|
|
623
|
+
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
624
|
+
assertParamExists('updateAction_1', 'updateActionRequestDto', updateActionRequestDto)
|
|
625
|
+
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
626
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
628
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
629
|
+
let baseOptions;
|
|
630
|
+
let baseAccessToken;
|
|
631
|
+
if (configuration) {
|
|
632
|
+
baseOptions = configuration.baseOptions;
|
|
633
|
+
baseAccessToken = configuration.accessToken;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
637
|
+
const localVarHeaderParameter = {} as any;
|
|
638
|
+
const localVarQueryParameter = {} as any;
|
|
639
|
+
|
|
640
|
+
// authentication bearer required
|
|
641
|
+
// http bearer authentication required
|
|
642
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
643
|
+
|
|
644
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
645
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
485
650
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
486
651
|
|
|
487
652
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -528,6 +693,18 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
528
693
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction(code, authorization, options);
|
|
529
694
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
530
695
|
},
|
|
696
|
+
/**
|
|
697
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
698
|
+
* @summary Delete the action version
|
|
699
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
700
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
async deleteActionVersion(versionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
705
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options);
|
|
706
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
707
|
+
},
|
|
531
708
|
/**
|
|
532
709
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
533
710
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -556,6 +733,19 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
556
733
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, expand, options);
|
|
557
734
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
558
735
|
},
|
|
736
|
+
/**
|
|
737
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
738
|
+
* @summary Retrieve the action version
|
|
739
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
740
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
741
|
+
* @param {string} [expand]
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
async getActionVersion(versionCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionVersionResponseClass>> {
|
|
746
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options);
|
|
747
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
748
|
+
},
|
|
559
749
|
/**
|
|
560
750
|
* Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
|
|
561
751
|
* @summary Update the entity-actions-yaml
|
|
@@ -568,17 +758,36 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
568
758
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options);
|
|
569
759
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
570
760
|
},
|
|
761
|
+
/**
|
|
762
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
763
|
+
* @summary List action versions
|
|
764
|
+
* @param {string} code Action code
|
|
765
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
766
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
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</i>
|
|
769
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
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</i>
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
async listActionVersions(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionVersionsResponseClass>> {
|
|
777
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
778
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
779
|
+
},
|
|
571
780
|
/**
|
|
572
781
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
573
782
|
* @summary List actions
|
|
574
783
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
575
784
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
576
785
|
* @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.
|
|
577
|
-
* @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,
|
|
786
|
+
* @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</i>
|
|
578
787
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
579
|
-
* @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,
|
|
788
|
+
* @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>
|
|
580
789
|
* @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>
|
|
581
|
-
* @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,
|
|
790
|
+
* @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</i>
|
|
582
791
|
* @param {*} [options] Override http request option.
|
|
583
792
|
* @throws {RequiredError}
|
|
584
793
|
*/
|
|
@@ -587,22 +796,20 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
587
796
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
588
797
|
},
|
|
589
798
|
/**
|
|
590
|
-
*
|
|
591
|
-
* @summary
|
|
592
|
-
* @param {string}
|
|
593
|
-
* @param {
|
|
799
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
800
|
+
* @summary Update the action
|
|
801
|
+
* @param {string} code Action code
|
|
802
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
594
803
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
595
|
-
* @param {boolean} [includeDisabled] Include disabled (draft) actions
|
|
596
|
-
* @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
|
|
597
804
|
* @param {*} [options] Override http request option.
|
|
598
805
|
* @throws {RequiredError}
|
|
599
806
|
*/
|
|
600
|
-
async
|
|
601
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
807
|
+
async updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
|
|
602
809
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
603
810
|
},
|
|
604
811
|
/**
|
|
605
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
812
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
606
813
|
* @summary Update the action
|
|
607
814
|
* @param {string} code Action code
|
|
608
815
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -610,8 +817,8 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
610
817
|
* @param {*} [options] Override http request option.
|
|
611
818
|
* @throws {RequiredError}
|
|
612
819
|
*/
|
|
613
|
-
async
|
|
614
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
820
|
+
async updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
821
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options);
|
|
615
822
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
616
823
|
},
|
|
617
824
|
}
|
|
@@ -646,6 +853,17 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
646
853
|
deleteAction(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
647
854
|
return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
648
855
|
},
|
|
856
|
+
/**
|
|
857
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
858
|
+
* @summary Delete the action version
|
|
859
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
860
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
861
|
+
* @param {*} [options] Override http request option.
|
|
862
|
+
* @throws {RequiredError}
|
|
863
|
+
*/
|
|
864
|
+
deleteActionVersion(versionCode: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
865
|
+
return localVarFp.deleteActionVersion(versionCode, authorization, options).then((request) => request(axios, basePath));
|
|
866
|
+
},
|
|
649
867
|
/**
|
|
650
868
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
651
869
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -672,6 +890,18 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
672
890
|
getAction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionResponseClass> {
|
|
673
891
|
return localVarFp.getAction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
674
892
|
},
|
|
893
|
+
/**
|
|
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>)
|
|
897
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
898
|
+
* @param {string} [expand]
|
|
899
|
+
* @param {*} [options] Override http request option.
|
|
900
|
+
* @throws {RequiredError}
|
|
901
|
+
*/
|
|
902
|
+
getActionVersion(versionCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionVersionResponseClass> {
|
|
903
|
+
return localVarFp.getActionVersion(versionCode, authorization, expand, options).then((request) => request(axios, basePath));
|
|
904
|
+
},
|
|
675
905
|
/**
|
|
676
906
|
* Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
|
|
677
907
|
* @summary Update the entity-actions-yaml
|
|
@@ -683,17 +913,35 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
683
913
|
importActionsFromYaml(importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto, authorization?: string, options?: any): AxiosPromise<ImportActionsFromYamlResponseClass> {
|
|
684
914
|
return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
685
915
|
},
|
|
916
|
+
/**
|
|
917
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
918
|
+
* @summary List action versions
|
|
919
|
+
* @param {string} code Action code
|
|
920
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
921
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
922
|
+
* @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. 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</i>
|
|
924
|
+
* @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, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
|
|
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/> <i>Allowed values: inputValidationSchema<i>
|
|
927
|
+
* @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</i>
|
|
928
|
+
* @param {*} [options] Override http request option.
|
|
929
|
+
* @throws {RequiredError}
|
|
930
|
+
*/
|
|
931
|
+
listActionVersions(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionVersionsResponseClass> {
|
|
932
|
+
return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
933
|
+
},
|
|
686
934
|
/**
|
|
687
935
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
688
936
|
* @summary List actions
|
|
689
937
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
690
938
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
691
939
|
* @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.
|
|
692
|
-
* @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,
|
|
940
|
+
* @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</i>
|
|
693
941
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
694
|
-
* @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,
|
|
942
|
+
* @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>
|
|
695
943
|
* @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>
|
|
696
|
-
* @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,
|
|
944
|
+
* @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</i>
|
|
697
945
|
* @param {*} [options] Override http request option.
|
|
698
946
|
* @throws {RequiredError}
|
|
699
947
|
*/
|
|
@@ -701,21 +949,19 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
701
949
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
702
950
|
},
|
|
703
951
|
/**
|
|
704
|
-
*
|
|
705
|
-
* @summary
|
|
706
|
-
* @param {string}
|
|
707
|
-
* @param {
|
|
952
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
953
|
+
* @summary Update the action
|
|
954
|
+
* @param {string} code Action code
|
|
955
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
708
956
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
709
|
-
* @param {boolean} [includeDisabled] Include disabled (draft) actions
|
|
710
|
-
* @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
|
|
711
957
|
* @param {*} [options] Override http request option.
|
|
712
958
|
* @throws {RequiredError}
|
|
713
959
|
*/
|
|
714
|
-
|
|
715
|
-
return localVarFp.
|
|
960
|
+
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
961
|
+
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
716
962
|
},
|
|
717
963
|
/**
|
|
718
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
964
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
719
965
|
* @summary Update the action
|
|
720
966
|
* @param {string} code Action code
|
|
721
967
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -723,8 +969,8 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
723
969
|
* @param {*} [options] Override http request option.
|
|
724
970
|
* @throws {RequiredError}
|
|
725
971
|
*/
|
|
726
|
-
|
|
727
|
-
return localVarFp.
|
|
972
|
+
updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
973
|
+
return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
728
974
|
},
|
|
729
975
|
};
|
|
730
976
|
};
|
|
@@ -771,6 +1017,27 @@ export interface ActionsApiDeleteActionRequest {
|
|
|
771
1017
|
readonly authorization?: string
|
|
772
1018
|
}
|
|
773
1019
|
|
|
1020
|
+
/**
|
|
1021
|
+
* Request parameters for deleteActionVersion operation in ActionsApi.
|
|
1022
|
+
* @export
|
|
1023
|
+
* @interface ActionsApiDeleteActionVersionRequest
|
|
1024
|
+
*/
|
|
1025
|
+
export interface ActionsApiDeleteActionVersionRequest {
|
|
1026
|
+
/**
|
|
1027
|
+
* Version code (e.g. acv_<nanoid>)
|
|
1028
|
+
* @type {string}
|
|
1029
|
+
* @memberof ActionsApiDeleteActionVersion
|
|
1030
|
+
*/
|
|
1031
|
+
readonly versionCode: string
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1035
|
+
* @type {string}
|
|
1036
|
+
* @memberof ActionsApiDeleteActionVersion
|
|
1037
|
+
*/
|
|
1038
|
+
readonly authorization?: string
|
|
1039
|
+
}
|
|
1040
|
+
|
|
774
1041
|
/**
|
|
775
1042
|
* Request parameters for exportActionsAsYaml operation in ActionsApi.
|
|
776
1043
|
* @export
|
|
@@ -841,6 +1108,34 @@ export interface ActionsApiGetActionRequest {
|
|
|
841
1108
|
readonly expand?: string
|
|
842
1109
|
}
|
|
843
1110
|
|
|
1111
|
+
/**
|
|
1112
|
+
* Request parameters for getActionVersion operation in ActionsApi.
|
|
1113
|
+
* @export
|
|
1114
|
+
* @interface ActionsApiGetActionVersionRequest
|
|
1115
|
+
*/
|
|
1116
|
+
export interface ActionsApiGetActionVersionRequest {
|
|
1117
|
+
/**
|
|
1118
|
+
* Version code (e.g. acv_<nanoid>)
|
|
1119
|
+
* @type {string}
|
|
1120
|
+
* @memberof ActionsApiGetActionVersion
|
|
1121
|
+
*/
|
|
1122
|
+
readonly versionCode: string
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1126
|
+
* @type {string}
|
|
1127
|
+
* @memberof ActionsApiGetActionVersion
|
|
1128
|
+
*/
|
|
1129
|
+
readonly authorization?: string
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
*
|
|
1133
|
+
* @type {string}
|
|
1134
|
+
* @memberof ActionsApiGetActionVersion
|
|
1135
|
+
*/
|
|
1136
|
+
readonly expand?: string
|
|
1137
|
+
}
|
|
1138
|
+
|
|
844
1139
|
/**
|
|
845
1140
|
* Request parameters for importActionsFromYaml operation in ActionsApi.
|
|
846
1141
|
* @export
|
|
@@ -862,6 +1157,76 @@ export interface ActionsApiImportActionsFromYamlRequest {
|
|
|
862
1157
|
readonly authorization?: string
|
|
863
1158
|
}
|
|
864
1159
|
|
|
1160
|
+
/**
|
|
1161
|
+
* Request parameters for listActionVersions operation in ActionsApi.
|
|
1162
|
+
* @export
|
|
1163
|
+
* @interface ActionsApiListActionVersionsRequest
|
|
1164
|
+
*/
|
|
1165
|
+
export interface ActionsApiListActionVersionsRequest {
|
|
1166
|
+
/**
|
|
1167
|
+
* Action code
|
|
1168
|
+
* @type {string}
|
|
1169
|
+
* @memberof ActionsApiListActionVersions
|
|
1170
|
+
*/
|
|
1171
|
+
readonly code: string
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1175
|
+
* @type {string}
|
|
1176
|
+
* @memberof ActionsApiListActionVersions
|
|
1177
|
+
*/
|
|
1178
|
+
readonly authorization?: string
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1182
|
+
* @type {number}
|
|
1183
|
+
* @memberof ActionsApiListActionVersions
|
|
1184
|
+
*/
|
|
1185
|
+
readonly pageSize?: number
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* 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.
|
|
1189
|
+
* @type {string}
|
|
1190
|
+
* @memberof ActionsApiListActionVersions
|
|
1191
|
+
*/
|
|
1192
|
+
readonly pageToken?: string
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* 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</i>
|
|
1196
|
+
* @type {string}
|
|
1197
|
+
* @memberof ActionsApiListActionVersions
|
|
1198
|
+
*/
|
|
1199
|
+
readonly filter?: string
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1203
|
+
* @type {string}
|
|
1204
|
+
* @memberof ActionsApiListActionVersions
|
|
1205
|
+
*/
|
|
1206
|
+
readonly search?: string
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* 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>
|
|
1210
|
+
* @type {string}
|
|
1211
|
+
* @memberof ActionsApiListActionVersions
|
|
1212
|
+
*/
|
|
1213
|
+
readonly order?: string
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* 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>
|
|
1217
|
+
* @type {string}
|
|
1218
|
+
* @memberof ActionsApiListActionVersions
|
|
1219
|
+
*/
|
|
1220
|
+
readonly expand?: string
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* 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</i>
|
|
1224
|
+
* @type {string}
|
|
1225
|
+
* @memberof ActionsApiListActionVersions
|
|
1226
|
+
*/
|
|
1227
|
+
readonly filters?: string
|
|
1228
|
+
}
|
|
1229
|
+
|
|
865
1230
|
/**
|
|
866
1231
|
* Request parameters for listActions operation in ActionsApi.
|
|
867
1232
|
* @export
|
|
@@ -890,7 +1255,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
890
1255
|
readonly pageToken?: string
|
|
891
1256
|
|
|
892
1257
|
/**
|
|
893
|
-
* 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,
|
|
1258
|
+
* 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</i>
|
|
894
1259
|
* @type {string}
|
|
895
1260
|
* @memberof ActionsApiListActions
|
|
896
1261
|
*/
|
|
@@ -904,7 +1269,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
904
1269
|
readonly search?: string
|
|
905
1270
|
|
|
906
1271
|
/**
|
|
907
|
-
* 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,
|
|
1272
|
+
* 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>
|
|
908
1273
|
* @type {string}
|
|
909
1274
|
* @memberof ActionsApiListActions
|
|
910
1275
|
*/
|
|
@@ -918,7 +1283,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
918
1283
|
readonly expand?: string
|
|
919
1284
|
|
|
920
1285
|
/**
|
|
921
|
-
* 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,
|
|
1286
|
+
* 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</i>
|
|
922
1287
|
* @type {string}
|
|
923
1288
|
* @memberof ActionsApiListActions
|
|
924
1289
|
*/
|
|
@@ -926,71 +1291,57 @@ export interface ActionsApiListActionsRequest {
|
|
|
926
1291
|
}
|
|
927
1292
|
|
|
928
1293
|
/**
|
|
929
|
-
* Request parameters for
|
|
1294
|
+
* Request parameters for updateAction operation in ActionsApi.
|
|
930
1295
|
* @export
|
|
931
|
-
* @interface
|
|
1296
|
+
* @interface ActionsApiUpdateActionRequest
|
|
932
1297
|
*/
|
|
933
|
-
export interface
|
|
1298
|
+
export interface ActionsApiUpdateActionRequest {
|
|
934
1299
|
/**
|
|
935
|
-
*
|
|
1300
|
+
* Action code
|
|
936
1301
|
* @type {string}
|
|
937
|
-
* @memberof
|
|
1302
|
+
* @memberof ActionsApiUpdateAction
|
|
938
1303
|
*/
|
|
939
|
-
readonly
|
|
1304
|
+
readonly code: string
|
|
940
1305
|
|
|
941
1306
|
/**
|
|
942
|
-
*
|
|
943
|
-
* @type {
|
|
944
|
-
* @memberof
|
|
1307
|
+
*
|
|
1308
|
+
* @type {UpdateActionRequestDto}
|
|
1309
|
+
* @memberof ActionsApiUpdateAction
|
|
945
1310
|
*/
|
|
946
|
-
readonly
|
|
1311
|
+
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
947
1312
|
|
|
948
1313
|
/**
|
|
949
1314
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
950
1315
|
* @type {string}
|
|
951
|
-
* @memberof
|
|
1316
|
+
* @memberof ActionsApiUpdateAction
|
|
952
1317
|
*/
|
|
953
1318
|
readonly authorization?: string
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* Include disabled (draft) actions
|
|
957
|
-
* @type {boolean}
|
|
958
|
-
* @memberof ActionsApiListActionsByEntity
|
|
959
|
-
*/
|
|
960
|
-
readonly includeDisabled?: boolean
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* Include actions that are not available in UI
|
|
964
|
-
* @type {boolean}
|
|
965
|
-
* @memberof ActionsApiListActionsByEntity
|
|
966
|
-
*/
|
|
967
|
-
readonly includeNotAvailableInUi?: boolean
|
|
968
1319
|
}
|
|
969
1320
|
|
|
970
1321
|
/**
|
|
971
|
-
* Request parameters for
|
|
1322
|
+
* Request parameters for updateAction_1 operation in ActionsApi.
|
|
972
1323
|
* @export
|
|
973
|
-
* @interface
|
|
1324
|
+
* @interface ActionsApiUpdateAction0Request
|
|
974
1325
|
*/
|
|
975
|
-
export interface
|
|
1326
|
+
export interface ActionsApiUpdateAction0Request {
|
|
976
1327
|
/**
|
|
977
1328
|
* Action code
|
|
978
1329
|
* @type {string}
|
|
979
|
-
* @memberof
|
|
1330
|
+
* @memberof ActionsApiUpdateAction0
|
|
980
1331
|
*/
|
|
981
1332
|
readonly code: string
|
|
982
1333
|
|
|
983
1334
|
/**
|
|
984
1335
|
*
|
|
985
1336
|
* @type {UpdateActionRequestDto}
|
|
986
|
-
* @memberof
|
|
1337
|
+
* @memberof ActionsApiUpdateAction0
|
|
987
1338
|
*/
|
|
988
1339
|
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
989
1340
|
|
|
990
1341
|
/**
|
|
991
1342
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
992
1343
|
* @type {string}
|
|
993
|
-
* @memberof
|
|
1344
|
+
* @memberof ActionsApiUpdateAction0
|
|
994
1345
|
*/
|
|
995
1346
|
readonly authorization?: string
|
|
996
1347
|
}
|
|
@@ -1026,6 +1377,18 @@ export class ActionsApi extends BaseAPI {
|
|
|
1026
1377
|
return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1027
1378
|
}
|
|
1028
1379
|
|
|
1380
|
+
/**
|
|
1381
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
1382
|
+
* @summary Delete the action version
|
|
1383
|
+
* @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
|
|
1384
|
+
* @param {*} [options] Override http request option.
|
|
1385
|
+
* @throws {RequiredError}
|
|
1386
|
+
* @memberof ActionsApi
|
|
1387
|
+
*/
|
|
1388
|
+
public deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1389
|
+
return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1029
1392
|
/**
|
|
1030
1393
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
1031
1394
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -1050,6 +1413,18 @@ export class ActionsApi extends BaseAPI {
|
|
|
1050
1413
|
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1051
1414
|
}
|
|
1052
1415
|
|
|
1416
|
+
/**
|
|
1417
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
1418
|
+
* @summary Retrieve the action version
|
|
1419
|
+
* @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
|
|
1420
|
+
* @param {*} [options] Override http request option.
|
|
1421
|
+
* @throws {RequiredError}
|
|
1422
|
+
* @memberof ActionsApi
|
|
1423
|
+
*/
|
|
1424
|
+
public getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1425
|
+
return ActionsApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1053
1428
|
/**
|
|
1054
1429
|
* Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
|
|
1055
1430
|
* @summary Update the entity-actions-yaml
|
|
@@ -1062,6 +1437,18 @@ export class ActionsApi extends BaseAPI {
|
|
|
1062
1437
|
return ActionsApiFp(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1063
1438
|
}
|
|
1064
1439
|
|
|
1440
|
+
/**
|
|
1441
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
1442
|
+
* @summary List action versions
|
|
1443
|
+
* @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
|
|
1444
|
+
* @param {*} [options] Override http request option.
|
|
1445
|
+
* @throws {RequiredError}
|
|
1446
|
+
* @memberof ActionsApi
|
|
1447
|
+
*/
|
|
1448
|
+
public listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig) {
|
|
1449
|
+
return ActionsApiFp(this.configuration).listActionVersions(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1065
1452
|
/**
|
|
1066
1453
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1067
1454
|
* @summary List actions
|
|
@@ -1075,26 +1462,26 @@ export class ActionsApi extends BaseAPI {
|
|
|
1075
1462
|
}
|
|
1076
1463
|
|
|
1077
1464
|
/**
|
|
1078
|
-
*
|
|
1079
|
-
* @summary
|
|
1080
|
-
* @param {
|
|
1465
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1466
|
+
* @summary Update the action
|
|
1467
|
+
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
1081
1468
|
* @param {*} [options] Override http request option.
|
|
1082
1469
|
* @throws {RequiredError}
|
|
1083
1470
|
* @memberof ActionsApi
|
|
1084
1471
|
*/
|
|
1085
|
-
public
|
|
1086
|
-
return ActionsApiFp(this.configuration).
|
|
1472
|
+
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
1473
|
+
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1087
1474
|
}
|
|
1088
1475
|
|
|
1089
1476
|
/**
|
|
1090
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1477
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1091
1478
|
* @summary Update the action
|
|
1092
|
-
* @param {
|
|
1479
|
+
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1093
1480
|
* @param {*} [options] Override http request option.
|
|
1094
1481
|
* @throws {RequiredError}
|
|
1095
1482
|
* @memberof ActionsApi
|
|
1096
1483
|
*/
|
|
1097
|
-
public
|
|
1098
|
-
return ActionsApiFp(this.configuration).
|
|
1484
|
+
public updateAction_1(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
|
|
1485
|
+
return ActionsApiFp(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1099
1486
|
}
|
|
1100
1487
|
}
|