@emilgroup/action-sdk 1.1.1-beta.17 → 1.1.1-beta.22
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';
|
|
@@ -127,6 +131,51 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
127
131
|
|
|
128
132
|
|
|
129
133
|
|
|
134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
url: toPathString(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
145
|
+
* @summary Delete the action version
|
|
146
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
deleteActionVersion: async (versionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
152
|
+
// verify required parameter 'versionCode' is not null or undefined
|
|
153
|
+
assertParamExists('deleteActionVersion', 'versionCode', versionCode)
|
|
154
|
+
const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
|
|
155
|
+
.replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
|
|
156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
158
|
+
let baseOptions;
|
|
159
|
+
let baseAccessToken;
|
|
160
|
+
if (configuration) {
|
|
161
|
+
baseOptions = configuration.baseOptions;
|
|
162
|
+
baseAccessToken = configuration.accessToken;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
166
|
+
const localVarHeaderParameter = {} as any;
|
|
167
|
+
const localVarQueryParameter = {} as any;
|
|
168
|
+
|
|
169
|
+
// authentication bearer required
|
|
170
|
+
// http bearer authentication required
|
|
171
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
172
|
+
|
|
173
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
174
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
130
179
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
131
180
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
181
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -242,6 +291,56 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
242
291
|
|
|
243
292
|
|
|
244
293
|
|
|
294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
297
|
+
|
|
298
|
+
return {
|
|
299
|
+
url: toPathString(localVarUrlObj),
|
|
300
|
+
options: localVarRequestOptions,
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
305
|
+
* @summary Retrieve the action version
|
|
306
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
307
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
308
|
+
* @param {string} [expand]
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
getActionVersion: async (versionCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
313
|
+
// verify required parameter 'versionCode' is not null or undefined
|
|
314
|
+
assertParamExists('getActionVersion', 'versionCode', versionCode)
|
|
315
|
+
const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
|
|
316
|
+
.replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
|
|
317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
319
|
+
let baseOptions;
|
|
320
|
+
let baseAccessToken;
|
|
321
|
+
if (configuration) {
|
|
322
|
+
baseOptions = configuration.baseOptions;
|
|
323
|
+
baseAccessToken = configuration.accessToken;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
327
|
+
const localVarHeaderParameter = {} as any;
|
|
328
|
+
const localVarQueryParameter = {} as any;
|
|
329
|
+
|
|
330
|
+
// authentication bearer required
|
|
331
|
+
// http bearer authentication required
|
|
332
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
333
|
+
|
|
334
|
+
if (expand !== undefined) {
|
|
335
|
+
localVarQueryParameter['expand'] = expand;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
339
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
245
344
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
345
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
346
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -299,21 +398,25 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
299
398
|
};
|
|
300
399
|
},
|
|
301
400
|
/**
|
|
302
|
-
* Lists all
|
|
303
|
-
* @summary List
|
|
401
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
402
|
+
* @summary List action versions
|
|
403
|
+
* @param {string} code Action code
|
|
304
404
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
305
405
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
306
406
|
* @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.
|
|
307
|
-
* @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,
|
|
407
|
+
* @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>
|
|
308
408
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
309
|
-
* @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,
|
|
409
|
+
* @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>
|
|
310
410
|
* @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>
|
|
311
|
-
* @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,
|
|
411
|
+
* @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>
|
|
312
412
|
* @param {*} [options] Override http request option.
|
|
313
413
|
* @throws {RequiredError}
|
|
314
414
|
*/
|
|
315
|
-
|
|
316
|
-
|
|
415
|
+
listActionVersions: async (code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
416
|
+
// verify required parameter 'code' is not null or undefined
|
|
417
|
+
assertParamExists('listActionVersions', 'code', code)
|
|
418
|
+
const localVarPath = `/actionservice/v1/actions/{code}/versions`
|
|
419
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
317
420
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
421
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
319
422
|
let baseOptions;
|
|
@@ -375,22 +478,21 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
375
478
|
};
|
|
376
479
|
},
|
|
377
480
|
/**
|
|
378
|
-
* Lists
|
|
379
|
-
* @summary
|
|
380
|
-
* @param {string} entityCode Code of the entity (e.g. policy code, lead code)
|
|
381
|
-
* @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
|
|
481
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
482
|
+
* @summary List actions
|
|
382
483
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
383
|
-
* @param {
|
|
384
|
-
* @param {
|
|
484
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
485
|
+
* @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.
|
|
486
|
+
* @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>
|
|
487
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
488
|
+
* @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>
|
|
489
|
+
* @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>
|
|
490
|
+
* @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>
|
|
385
491
|
* @param {*} [options] Override http request option.
|
|
386
492
|
* @throws {RequiredError}
|
|
387
493
|
*/
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
assertParamExists('listActionsByEntity', 'entityCode', entityCode)
|
|
391
|
-
// verify required parameter 'entityType' is not null or undefined
|
|
392
|
-
assertParamExists('listActionsByEntity', 'entityType', entityType)
|
|
393
|
-
const localVarPath = `/actionservice/v1/actions/by-entity`;
|
|
494
|
+
listActions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
495
|
+
const localVarPath = `/actionservice/v1/actions`;
|
|
394
496
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
395
497
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
396
498
|
let baseOptions;
|
|
@@ -408,20 +510,32 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
408
510
|
// http bearer authentication required
|
|
409
511
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
410
512
|
|
|
411
|
-
if (
|
|
412
|
-
localVarQueryParameter['
|
|
513
|
+
if (pageSize !== undefined) {
|
|
514
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
413
515
|
}
|
|
414
516
|
|
|
415
|
-
if (
|
|
416
|
-
localVarQueryParameter['
|
|
517
|
+
if (pageToken !== undefined) {
|
|
518
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
417
519
|
}
|
|
418
520
|
|
|
419
|
-
if (
|
|
420
|
-
localVarQueryParameter['
|
|
521
|
+
if (filter !== undefined) {
|
|
522
|
+
localVarQueryParameter['filter'] = filter;
|
|
421
523
|
}
|
|
422
524
|
|
|
423
|
-
if (
|
|
424
|
-
localVarQueryParameter['
|
|
525
|
+
if (search !== undefined) {
|
|
526
|
+
localVarQueryParameter['search'] = search;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
if (order !== undefined) {
|
|
530
|
+
localVarQueryParameter['order'] = order;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
if (expand !== undefined) {
|
|
534
|
+
localVarQueryParameter['expand'] = expand;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
if (filters !== undefined) {
|
|
538
|
+
localVarQueryParameter['filters'] = filters;
|
|
425
539
|
}
|
|
426
540
|
|
|
427
541
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
@@ -440,7 +554,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
440
554
|
};
|
|
441
555
|
},
|
|
442
556
|
/**
|
|
443
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
557
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
444
558
|
* @summary Update the action
|
|
445
559
|
* @param {string} code Action code
|
|
446
560
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -478,6 +592,57 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
478
592
|
|
|
479
593
|
|
|
480
594
|
|
|
595
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
596
|
+
|
|
597
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
599
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
600
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
|
|
601
|
+
|
|
602
|
+
return {
|
|
603
|
+
url: toPathString(localVarUrlObj),
|
|
604
|
+
options: localVarRequestOptions,
|
|
605
|
+
};
|
|
606
|
+
},
|
|
607
|
+
/**
|
|
608
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
609
|
+
* @summary Update the action
|
|
610
|
+
* @param {string} code Action code
|
|
611
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
612
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
updateAction_1: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
617
|
+
// verify required parameter 'code' is not null or undefined
|
|
618
|
+
assertParamExists('updateAction_1', 'code', code)
|
|
619
|
+
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
620
|
+
assertParamExists('updateAction_1', 'updateActionRequestDto', updateActionRequestDto)
|
|
621
|
+
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
622
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
623
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
624
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
625
|
+
let baseOptions;
|
|
626
|
+
let baseAccessToken;
|
|
627
|
+
if (configuration) {
|
|
628
|
+
baseOptions = configuration.baseOptions;
|
|
629
|
+
baseAccessToken = configuration.accessToken;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
633
|
+
const localVarHeaderParameter = {} as any;
|
|
634
|
+
const localVarQueryParameter = {} as any;
|
|
635
|
+
|
|
636
|
+
// authentication bearer required
|
|
637
|
+
// http bearer authentication required
|
|
638
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
639
|
+
|
|
640
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
641
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
481
646
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
482
647
|
|
|
483
648
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -524,6 +689,18 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
524
689
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction(code, authorization, options);
|
|
525
690
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
526
691
|
},
|
|
692
|
+
/**
|
|
693
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
694
|
+
* @summary Delete the action version
|
|
695
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
696
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
async deleteActionVersion(versionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
701
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options);
|
|
702
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
703
|
+
},
|
|
527
704
|
/**
|
|
528
705
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
529
706
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -552,6 +729,19 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
552
729
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, expand, options);
|
|
553
730
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
554
731
|
},
|
|
732
|
+
/**
|
|
733
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
734
|
+
* @summary Retrieve the action version
|
|
735
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
736
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
737
|
+
* @param {string} [expand]
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
*/
|
|
741
|
+
async getActionVersion(versionCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionVersionResponseClass>> {
|
|
742
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActionVersion(versionCode, authorization, expand, options);
|
|
743
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
744
|
+
},
|
|
555
745
|
/**
|
|
556
746
|
* 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\"
|
|
557
747
|
* @summary Update the entity-actions-yaml
|
|
@@ -564,17 +754,36 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
564
754
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options);
|
|
565
755
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
566
756
|
},
|
|
757
|
+
/**
|
|
758
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
759
|
+
* @summary List action versions
|
|
760
|
+
* @param {string} code Action code
|
|
761
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
762
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
763
|
+
* @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.
|
|
764
|
+
* @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>
|
|
765
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
766
|
+
* @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>
|
|
767
|
+
* @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>
|
|
768
|
+
* @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>
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
*/
|
|
772
|
+
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>> {
|
|
773
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
774
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
775
|
+
},
|
|
567
776
|
/**
|
|
568
777
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
569
778
|
* @summary List actions
|
|
570
779
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
571
780
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
572
781
|
* @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.
|
|
573
|
-
* @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,
|
|
782
|
+
* @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>
|
|
574
783
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
575
|
-
* @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,
|
|
784
|
+
* @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>
|
|
576
785
|
* @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>
|
|
577
|
-
* @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,
|
|
786
|
+
* @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>
|
|
578
787
|
* @param {*} [options] Override http request option.
|
|
579
788
|
* @throws {RequiredError}
|
|
580
789
|
*/
|
|
@@ -583,22 +792,20 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
583
792
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
584
793
|
},
|
|
585
794
|
/**
|
|
586
|
-
*
|
|
587
|
-
* @summary
|
|
588
|
-
* @param {string}
|
|
589
|
-
* @param {
|
|
795
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
796
|
+
* @summary Update the action
|
|
797
|
+
* @param {string} code Action code
|
|
798
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
590
799
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
591
|
-
* @param {boolean} [includeDisabled] Include disabled (draft) actions
|
|
592
|
-
* @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
|
|
593
800
|
* @param {*} [options] Override http request option.
|
|
594
801
|
* @throws {RequiredError}
|
|
595
802
|
*/
|
|
596
|
-
async
|
|
597
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
803
|
+
async updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
804
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
|
|
598
805
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
599
806
|
},
|
|
600
807
|
/**
|
|
601
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
808
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
602
809
|
* @summary Update the action
|
|
603
810
|
* @param {string} code Action code
|
|
604
811
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -606,8 +813,8 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
606
813
|
* @param {*} [options] Override http request option.
|
|
607
814
|
* @throws {RequiredError}
|
|
608
815
|
*/
|
|
609
|
-
async
|
|
610
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
816
|
+
async updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
817
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options);
|
|
611
818
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
612
819
|
},
|
|
613
820
|
}
|
|
@@ -642,6 +849,17 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
642
849
|
deleteAction(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
643
850
|
return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
644
851
|
},
|
|
852
|
+
/**
|
|
853
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
854
|
+
* @summary Delete the action version
|
|
855
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
856
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
*/
|
|
860
|
+
deleteActionVersion(versionCode: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
861
|
+
return localVarFp.deleteActionVersion(versionCode, authorization, options).then((request) => request(axios, basePath));
|
|
862
|
+
},
|
|
645
863
|
/**
|
|
646
864
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
647
865
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -668,6 +886,18 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
668
886
|
getAction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionResponseClass> {
|
|
669
887
|
return localVarFp.getAction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
670
888
|
},
|
|
889
|
+
/**
|
|
890
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
891
|
+
* @summary Retrieve the action version
|
|
892
|
+
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
893
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
894
|
+
* @param {string} [expand]
|
|
895
|
+
* @param {*} [options] Override http request option.
|
|
896
|
+
* @throws {RequiredError}
|
|
897
|
+
*/
|
|
898
|
+
getActionVersion(versionCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionVersionResponseClass> {
|
|
899
|
+
return localVarFp.getActionVersion(versionCode, authorization, expand, options).then((request) => request(axios, basePath));
|
|
900
|
+
},
|
|
671
901
|
/**
|
|
672
902
|
* 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\"
|
|
673
903
|
* @summary Update the entity-actions-yaml
|
|
@@ -679,17 +909,35 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
679
909
|
importActionsFromYaml(importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto, authorization?: string, options?: any): AxiosPromise<ImportActionsFromYamlResponseClass> {
|
|
680
910
|
return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
681
911
|
},
|
|
912
|
+
/**
|
|
913
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
914
|
+
* @summary List action versions
|
|
915
|
+
* @param {string} code Action code
|
|
916
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
917
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
918
|
+
* @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.
|
|
919
|
+
* @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>
|
|
920
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
921
|
+
* @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>
|
|
922
|
+
* @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>
|
|
923
|
+
* @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>
|
|
924
|
+
* @param {*} [options] Override http request option.
|
|
925
|
+
* @throws {RequiredError}
|
|
926
|
+
*/
|
|
927
|
+
listActionVersions(code: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionVersionsResponseClass> {
|
|
928
|
+
return localVarFp.listActionVersions(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
929
|
+
},
|
|
682
930
|
/**
|
|
683
931
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
684
932
|
* @summary List actions
|
|
685
933
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
686
934
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
687
935
|
* @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.
|
|
688
|
-
* @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,
|
|
936
|
+
* @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>
|
|
689
937
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
690
|
-
* @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,
|
|
938
|
+
* @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>
|
|
691
939
|
* @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>
|
|
692
|
-
* @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,
|
|
940
|
+
* @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>
|
|
693
941
|
* @param {*} [options] Override http request option.
|
|
694
942
|
* @throws {RequiredError}
|
|
695
943
|
*/
|
|
@@ -697,21 +945,19 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
697
945
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
698
946
|
},
|
|
699
947
|
/**
|
|
700
|
-
*
|
|
701
|
-
* @summary
|
|
702
|
-
* @param {string}
|
|
703
|
-
* @param {
|
|
948
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
949
|
+
* @summary Update the action
|
|
950
|
+
* @param {string} code Action code
|
|
951
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
704
952
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
705
|
-
* @param {boolean} [includeDisabled] Include disabled (draft) actions
|
|
706
|
-
* @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
|
|
707
953
|
* @param {*} [options] Override http request option.
|
|
708
954
|
* @throws {RequiredError}
|
|
709
955
|
*/
|
|
710
|
-
|
|
711
|
-
return localVarFp.
|
|
956
|
+
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
957
|
+
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
712
958
|
},
|
|
713
959
|
/**
|
|
714
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
960
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
715
961
|
* @summary Update the action
|
|
716
962
|
* @param {string} code Action code
|
|
717
963
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -719,8 +965,8 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
719
965
|
* @param {*} [options] Override http request option.
|
|
720
966
|
* @throws {RequiredError}
|
|
721
967
|
*/
|
|
722
|
-
|
|
723
|
-
return localVarFp.
|
|
968
|
+
updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
969
|
+
return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
724
970
|
},
|
|
725
971
|
};
|
|
726
972
|
};
|
|
@@ -767,6 +1013,27 @@ export interface ActionsApiDeleteActionRequest {
|
|
|
767
1013
|
readonly authorization?: string
|
|
768
1014
|
}
|
|
769
1015
|
|
|
1016
|
+
/**
|
|
1017
|
+
* Request parameters for deleteActionVersion operation in ActionsApi.
|
|
1018
|
+
* @export
|
|
1019
|
+
* @interface ActionsApiDeleteActionVersionRequest
|
|
1020
|
+
*/
|
|
1021
|
+
export interface ActionsApiDeleteActionVersionRequest {
|
|
1022
|
+
/**
|
|
1023
|
+
* Version code (e.g. acv_<nanoid>)
|
|
1024
|
+
* @type {string}
|
|
1025
|
+
* @memberof ActionsApiDeleteActionVersion
|
|
1026
|
+
*/
|
|
1027
|
+
readonly versionCode: string
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1031
|
+
* @type {string}
|
|
1032
|
+
* @memberof ActionsApiDeleteActionVersion
|
|
1033
|
+
*/
|
|
1034
|
+
readonly authorization?: string
|
|
1035
|
+
}
|
|
1036
|
+
|
|
770
1037
|
/**
|
|
771
1038
|
* Request parameters for exportActionsAsYaml operation in ActionsApi.
|
|
772
1039
|
* @export
|
|
@@ -837,6 +1104,34 @@ export interface ActionsApiGetActionRequest {
|
|
|
837
1104
|
readonly expand?: string
|
|
838
1105
|
}
|
|
839
1106
|
|
|
1107
|
+
/**
|
|
1108
|
+
* Request parameters for getActionVersion operation in ActionsApi.
|
|
1109
|
+
* @export
|
|
1110
|
+
* @interface ActionsApiGetActionVersionRequest
|
|
1111
|
+
*/
|
|
1112
|
+
export interface ActionsApiGetActionVersionRequest {
|
|
1113
|
+
/**
|
|
1114
|
+
* Version code (e.g. acv_<nanoid>)
|
|
1115
|
+
* @type {string}
|
|
1116
|
+
* @memberof ActionsApiGetActionVersion
|
|
1117
|
+
*/
|
|
1118
|
+
readonly versionCode: string
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1122
|
+
* @type {string}
|
|
1123
|
+
* @memberof ActionsApiGetActionVersion
|
|
1124
|
+
*/
|
|
1125
|
+
readonly authorization?: string
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
*
|
|
1129
|
+
* @type {string}
|
|
1130
|
+
* @memberof ActionsApiGetActionVersion
|
|
1131
|
+
*/
|
|
1132
|
+
readonly expand?: string
|
|
1133
|
+
}
|
|
1134
|
+
|
|
840
1135
|
/**
|
|
841
1136
|
* Request parameters for importActionsFromYaml operation in ActionsApi.
|
|
842
1137
|
* @export
|
|
@@ -858,6 +1153,76 @@ export interface ActionsApiImportActionsFromYamlRequest {
|
|
|
858
1153
|
readonly authorization?: string
|
|
859
1154
|
}
|
|
860
1155
|
|
|
1156
|
+
/**
|
|
1157
|
+
* Request parameters for listActionVersions operation in ActionsApi.
|
|
1158
|
+
* @export
|
|
1159
|
+
* @interface ActionsApiListActionVersionsRequest
|
|
1160
|
+
*/
|
|
1161
|
+
export interface ActionsApiListActionVersionsRequest {
|
|
1162
|
+
/**
|
|
1163
|
+
* Action code
|
|
1164
|
+
* @type {string}
|
|
1165
|
+
* @memberof ActionsApiListActionVersions
|
|
1166
|
+
*/
|
|
1167
|
+
readonly code: string
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1171
|
+
* @type {string}
|
|
1172
|
+
* @memberof ActionsApiListActionVersions
|
|
1173
|
+
*/
|
|
1174
|
+
readonly authorization?: string
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1178
|
+
* @type {number}
|
|
1179
|
+
* @memberof ActionsApiListActionVersions
|
|
1180
|
+
*/
|
|
1181
|
+
readonly pageSize?: number
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* 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.
|
|
1185
|
+
* @type {string}
|
|
1186
|
+
* @memberof ActionsApiListActionVersions
|
|
1187
|
+
*/
|
|
1188
|
+
readonly pageToken?: string
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* 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>
|
|
1192
|
+
* @type {string}
|
|
1193
|
+
* @memberof ActionsApiListActionVersions
|
|
1194
|
+
*/
|
|
1195
|
+
readonly filter?: string
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1199
|
+
* @type {string}
|
|
1200
|
+
* @memberof ActionsApiListActionVersions
|
|
1201
|
+
*/
|
|
1202
|
+
readonly search?: string
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* 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>
|
|
1206
|
+
* @type {string}
|
|
1207
|
+
* @memberof ActionsApiListActionVersions
|
|
1208
|
+
*/
|
|
1209
|
+
readonly order?: string
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* 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>
|
|
1213
|
+
* @type {string}
|
|
1214
|
+
* @memberof ActionsApiListActionVersions
|
|
1215
|
+
*/
|
|
1216
|
+
readonly expand?: string
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* 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>
|
|
1220
|
+
* @type {string}
|
|
1221
|
+
* @memberof ActionsApiListActionVersions
|
|
1222
|
+
*/
|
|
1223
|
+
readonly filters?: string
|
|
1224
|
+
}
|
|
1225
|
+
|
|
861
1226
|
/**
|
|
862
1227
|
* Request parameters for listActions operation in ActionsApi.
|
|
863
1228
|
* @export
|
|
@@ -886,7 +1251,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
886
1251
|
readonly pageToken?: string
|
|
887
1252
|
|
|
888
1253
|
/**
|
|
889
|
-
* 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,
|
|
1254
|
+
* 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>
|
|
890
1255
|
* @type {string}
|
|
891
1256
|
* @memberof ActionsApiListActions
|
|
892
1257
|
*/
|
|
@@ -900,7 +1265,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
900
1265
|
readonly search?: string
|
|
901
1266
|
|
|
902
1267
|
/**
|
|
903
|
-
* 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,
|
|
1268
|
+
* 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>
|
|
904
1269
|
* @type {string}
|
|
905
1270
|
* @memberof ActionsApiListActions
|
|
906
1271
|
*/
|
|
@@ -914,7 +1279,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
914
1279
|
readonly expand?: string
|
|
915
1280
|
|
|
916
1281
|
/**
|
|
917
|
-
* 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,
|
|
1282
|
+
* 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>
|
|
918
1283
|
* @type {string}
|
|
919
1284
|
* @memberof ActionsApiListActions
|
|
920
1285
|
*/
|
|
@@ -922,71 +1287,57 @@ export interface ActionsApiListActionsRequest {
|
|
|
922
1287
|
}
|
|
923
1288
|
|
|
924
1289
|
/**
|
|
925
|
-
* Request parameters for
|
|
1290
|
+
* Request parameters for updateAction operation in ActionsApi.
|
|
926
1291
|
* @export
|
|
927
|
-
* @interface
|
|
1292
|
+
* @interface ActionsApiUpdateActionRequest
|
|
928
1293
|
*/
|
|
929
|
-
export interface
|
|
1294
|
+
export interface ActionsApiUpdateActionRequest {
|
|
930
1295
|
/**
|
|
931
|
-
*
|
|
1296
|
+
* Action code
|
|
932
1297
|
* @type {string}
|
|
933
|
-
* @memberof
|
|
1298
|
+
* @memberof ActionsApiUpdateAction
|
|
934
1299
|
*/
|
|
935
|
-
readonly
|
|
1300
|
+
readonly code: string
|
|
936
1301
|
|
|
937
1302
|
/**
|
|
938
|
-
*
|
|
939
|
-
* @type {
|
|
940
|
-
* @memberof
|
|
1303
|
+
*
|
|
1304
|
+
* @type {UpdateActionRequestDto}
|
|
1305
|
+
* @memberof ActionsApiUpdateAction
|
|
941
1306
|
*/
|
|
942
|
-
readonly
|
|
1307
|
+
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
943
1308
|
|
|
944
1309
|
/**
|
|
945
1310
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
946
1311
|
* @type {string}
|
|
947
|
-
* @memberof
|
|
1312
|
+
* @memberof ActionsApiUpdateAction
|
|
948
1313
|
*/
|
|
949
1314
|
readonly authorization?: string
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
* Include disabled (draft) actions
|
|
953
|
-
* @type {boolean}
|
|
954
|
-
* @memberof ActionsApiListActionsByEntity
|
|
955
|
-
*/
|
|
956
|
-
readonly includeDisabled?: boolean
|
|
957
|
-
|
|
958
|
-
/**
|
|
959
|
-
* Include actions that are not available in UI
|
|
960
|
-
* @type {boolean}
|
|
961
|
-
* @memberof ActionsApiListActionsByEntity
|
|
962
|
-
*/
|
|
963
|
-
readonly includeNotAvailableInUi?: boolean
|
|
964
1315
|
}
|
|
965
1316
|
|
|
966
1317
|
/**
|
|
967
|
-
* Request parameters for
|
|
1318
|
+
* Request parameters for updateAction_1 operation in ActionsApi.
|
|
968
1319
|
* @export
|
|
969
|
-
* @interface
|
|
1320
|
+
* @interface ActionsApiUpdateAction0Request
|
|
970
1321
|
*/
|
|
971
|
-
export interface
|
|
1322
|
+
export interface ActionsApiUpdateAction0Request {
|
|
972
1323
|
/**
|
|
973
1324
|
* Action code
|
|
974
1325
|
* @type {string}
|
|
975
|
-
* @memberof
|
|
1326
|
+
* @memberof ActionsApiUpdateAction0
|
|
976
1327
|
*/
|
|
977
1328
|
readonly code: string
|
|
978
1329
|
|
|
979
1330
|
/**
|
|
980
1331
|
*
|
|
981
1332
|
* @type {UpdateActionRequestDto}
|
|
982
|
-
* @memberof
|
|
1333
|
+
* @memberof ActionsApiUpdateAction0
|
|
983
1334
|
*/
|
|
984
1335
|
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
985
1336
|
|
|
986
1337
|
/**
|
|
987
1338
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
988
1339
|
* @type {string}
|
|
989
|
-
* @memberof
|
|
1340
|
+
* @memberof ActionsApiUpdateAction0
|
|
990
1341
|
*/
|
|
991
1342
|
readonly authorization?: string
|
|
992
1343
|
}
|
|
@@ -1022,6 +1373,18 @@ export class ActionsApi extends BaseAPI {
|
|
|
1022
1373
|
return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1023
1374
|
}
|
|
1024
1375
|
|
|
1376
|
+
/**
|
|
1377
|
+
* Deletes a specific action version by its version code **Required Permissions** \"action-management.actions.delete\"
|
|
1378
|
+
* @summary Delete the action version
|
|
1379
|
+
* @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
|
|
1380
|
+
* @param {*} [options] Override http request option.
|
|
1381
|
+
* @throws {RequiredError}
|
|
1382
|
+
* @memberof ActionsApi
|
|
1383
|
+
*/
|
|
1384
|
+
public deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1385
|
+
return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1025
1388
|
/**
|
|
1026
1389
|
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
1027
1390
|
* @summary Retrieve the entity-actions-yaml
|
|
@@ -1046,6 +1409,18 @@ export class ActionsApi extends BaseAPI {
|
|
|
1046
1409
|
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1047
1410
|
}
|
|
1048
1411
|
|
|
1412
|
+
/**
|
|
1413
|
+
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
1414
|
+
* @summary Retrieve the action version
|
|
1415
|
+
* @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
|
|
1416
|
+
* @param {*} [options] Override http request option.
|
|
1417
|
+
* @throws {RequiredError}
|
|
1418
|
+
* @memberof ActionsApi
|
|
1419
|
+
*/
|
|
1420
|
+
public getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1421
|
+
return ActionsApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1049
1424
|
/**
|
|
1050
1425
|
* 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\"
|
|
1051
1426
|
* @summary Update the entity-actions-yaml
|
|
@@ -1058,6 +1433,18 @@ export class ActionsApi extends BaseAPI {
|
|
|
1058
1433
|
return ActionsApiFp(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1059
1434
|
}
|
|
1060
1435
|
|
|
1436
|
+
/**
|
|
1437
|
+
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
1438
|
+
* @summary List action versions
|
|
1439
|
+
* @param {ActionsApiListActionVersionsRequest} requestParameters Request parameters.
|
|
1440
|
+
* @param {*} [options] Override http request option.
|
|
1441
|
+
* @throws {RequiredError}
|
|
1442
|
+
* @memberof ActionsApi
|
|
1443
|
+
*/
|
|
1444
|
+
public listActionVersions(requestParameters: ActionsApiListActionVersionsRequest, options?: AxiosRequestConfig) {
|
|
1445
|
+
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));
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1061
1448
|
/**
|
|
1062
1449
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1063
1450
|
* @summary List actions
|
|
@@ -1071,26 +1458,26 @@ export class ActionsApi extends BaseAPI {
|
|
|
1071
1458
|
}
|
|
1072
1459
|
|
|
1073
1460
|
/**
|
|
1074
|
-
*
|
|
1075
|
-
* @summary
|
|
1076
|
-
* @param {
|
|
1461
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1462
|
+
* @summary Update the action
|
|
1463
|
+
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
1077
1464
|
* @param {*} [options] Override http request option.
|
|
1078
1465
|
* @throws {RequiredError}
|
|
1079
1466
|
* @memberof ActionsApi
|
|
1080
1467
|
*/
|
|
1081
|
-
public
|
|
1082
|
-
return ActionsApiFp(this.configuration).
|
|
1468
|
+
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
1469
|
+
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1083
1470
|
}
|
|
1084
1471
|
|
|
1085
1472
|
/**
|
|
1086
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1473
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1087
1474
|
* @summary Update the action
|
|
1088
|
-
* @param {
|
|
1475
|
+
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1089
1476
|
* @param {*} [options] Override http request option.
|
|
1090
1477
|
* @throws {RequiredError}
|
|
1091
1478
|
* @memberof ActionsApi
|
|
1092
1479
|
*/
|
|
1093
|
-
public
|
|
1094
|
-
return ActionsApiFp(this.configuration).
|
|
1480
|
+
public updateAction_1(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
|
|
1481
|
+
return ActionsApiFp(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1095
1482
|
}
|
|
1096
1483
|
}
|