@emilgroup/action-sdk-node 1.0.1-beta.26 → 1.0.1-beta.32
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 +1 -0
- package/README.md +2 -2
- package/api/actions-api.ts +635 -28
- package/api/executions-api.ts +368 -0
- package/api.ts +2 -0
- package/dist/api/actions-api.d.ts +366 -28
- package/dist/api/actions-api.js +533 -28
- package/dist/api/executions-api.d.ts +215 -0
- package/dist/api/executions-api.js +363 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/package.json +1 -1
package/api/actions-api.ts
CHANGED
|
@@ -47,7 +47,7 @@ const FormData = require('form-data');
|
|
|
47
47
|
export const ActionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
48
48
|
return {
|
|
49
49
|
/**
|
|
50
|
-
* Creates a new action configuration
|
|
50
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
51
51
|
* @summary Create the action
|
|
52
52
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
53
53
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -94,7 +94,54 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
98
|
+
* @summary Create the action
|
|
99
|
+
* @param {CreateActionRequestDto} createActionRequestDto
|
|
100
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
createAction_1: async (createActionRequestDto: CreateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
+
// verify required parameter 'createActionRequestDto' is not null or undefined
|
|
106
|
+
assertParamExists('createAction_1', 'createActionRequestDto', createActionRequestDto)
|
|
107
|
+
const localVarPath = `/actionservice/v1/actions`;
|
|
108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
+
let baseOptions;
|
|
111
|
+
let baseAccessToken;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
baseAccessToken = configuration.accessToken;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
118
|
+
const localVarHeaderParameter = {} as any;
|
|
119
|
+
const localVarQueryParameter = {} as any;
|
|
120
|
+
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
|
+
|
|
125
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
136
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createActionRequestDto, localVarRequestOptions, configuration)
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
url: toPathString(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
98
145
|
* @summary Delete the action
|
|
99
146
|
* @param {string} code Action code
|
|
100
147
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -139,7 +186,52 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
139
186
|
};
|
|
140
187
|
},
|
|
141
188
|
/**
|
|
142
|
-
*
|
|
189
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
190
|
+
* @summary Delete the action
|
|
191
|
+
* @param {string} code Action code
|
|
192
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
deleteAction_2: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
|
+
// verify required parameter 'code' is not null or undefined
|
|
198
|
+
assertParamExists('deleteAction_2', 'code', code)
|
|
199
|
+
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
200
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
203
|
+
let baseOptions;
|
|
204
|
+
let baseAccessToken;
|
|
205
|
+
if (configuration) {
|
|
206
|
+
baseOptions = configuration.baseOptions;
|
|
207
|
+
baseAccessToken = configuration.accessToken;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
211
|
+
const localVarHeaderParameter = {} as any;
|
|
212
|
+
const localVarQueryParameter = {} as any;
|
|
213
|
+
|
|
214
|
+
// authentication bearer required
|
|
215
|
+
// http bearer authentication required
|
|
216
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
217
|
+
|
|
218
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
219
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
225
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
226
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
227
|
+
|
|
228
|
+
return {
|
|
229
|
+
url: toPathString(localVarUrlObj),
|
|
230
|
+
options: localVarRequestOptions,
|
|
231
|
+
};
|
|
232
|
+
},
|
|
233
|
+
/**
|
|
234
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
143
235
|
* @summary Retrieve the action
|
|
144
236
|
* @param {string} code Action code
|
|
145
237
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -184,7 +276,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
184
276
|
};
|
|
185
277
|
},
|
|
186
278
|
/**
|
|
187
|
-
* Retrieves the latest action execution status by executionCode or correlationId
|
|
279
|
+
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
188
280
|
* @summary Retrieve the actionExecution
|
|
189
281
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
190
282
|
* @param {string} [executionCode] Action execution code
|
|
@@ -235,7 +327,52 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
235
327
|
};
|
|
236
328
|
},
|
|
237
329
|
/**
|
|
238
|
-
*
|
|
330
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
331
|
+
* @summary Retrieve the action
|
|
332
|
+
* @param {string} code Action code
|
|
333
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
getAction_3: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
338
|
+
// verify required parameter 'code' is not null or undefined
|
|
339
|
+
assertParamExists('getAction_3', 'code', code)
|
|
340
|
+
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
341
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
342
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
343
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
344
|
+
let baseOptions;
|
|
345
|
+
let baseAccessToken;
|
|
346
|
+
if (configuration) {
|
|
347
|
+
baseOptions = configuration.baseOptions;
|
|
348
|
+
baseAccessToken = configuration.accessToken;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
352
|
+
const localVarHeaderParameter = {} as any;
|
|
353
|
+
const localVarQueryParameter = {} as any;
|
|
354
|
+
|
|
355
|
+
// authentication bearer required
|
|
356
|
+
// http bearer authentication required
|
|
357
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
358
|
+
|
|
359
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
360
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
366
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
368
|
+
|
|
369
|
+
return {
|
|
370
|
+
url: toPathString(localVarUrlObj),
|
|
371
|
+
options: localVarRequestOptions,
|
|
372
|
+
};
|
|
373
|
+
},
|
|
374
|
+
/**
|
|
375
|
+
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
239
376
|
* @summary List actionExecutions
|
|
240
377
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
241
378
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -311,7 +448,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
311
448
|
};
|
|
312
449
|
},
|
|
313
450
|
/**
|
|
314
|
-
* Lists all action configurations with optional filters
|
|
451
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
315
452
|
* @summary List actions
|
|
316
453
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
317
454
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -387,7 +524,83 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
387
524
|
};
|
|
388
525
|
},
|
|
389
526
|
/**
|
|
390
|
-
*
|
|
527
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
528
|
+
* @summary List actions
|
|
529
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
530
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
531
|
+
* @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.
|
|
532
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
533
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
534
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
535
|
+
* @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/>
|
|
536
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
listActions_4: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
541
|
+
const localVarPath = `/actionservice/v1/actions`;
|
|
542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
|
+
let baseOptions;
|
|
545
|
+
let baseAccessToken;
|
|
546
|
+
if (configuration) {
|
|
547
|
+
baseOptions = configuration.baseOptions;
|
|
548
|
+
baseAccessToken = configuration.accessToken;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
552
|
+
const localVarHeaderParameter = {} as any;
|
|
553
|
+
const localVarQueryParameter = {} as any;
|
|
554
|
+
|
|
555
|
+
// authentication bearer required
|
|
556
|
+
// http bearer authentication required
|
|
557
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
558
|
+
|
|
559
|
+
if (pageSize !== undefined) {
|
|
560
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
if (pageToken !== undefined) {
|
|
564
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
if (filter !== undefined) {
|
|
568
|
+
localVarQueryParameter['filter'] = filter;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
if (search !== undefined) {
|
|
572
|
+
localVarQueryParameter['search'] = search;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
if (order !== undefined) {
|
|
576
|
+
localVarQueryParameter['order'] = order;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
if (expand !== undefined) {
|
|
580
|
+
localVarQueryParameter['expand'] = expand;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
if (filters !== undefined) {
|
|
584
|
+
localVarQueryParameter['filters'] = filters;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
588
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
594
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
595
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
596
|
+
|
|
597
|
+
return {
|
|
598
|
+
url: toPathString(localVarUrlObj),
|
|
599
|
+
options: localVarRequestOptions,
|
|
600
|
+
};
|
|
601
|
+
},
|
|
602
|
+
/**
|
|
603
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
391
604
|
* @summary Update the action
|
|
392
605
|
* @param {string} code Action code
|
|
393
606
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -425,6 +638,57 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
425
638
|
|
|
426
639
|
|
|
427
640
|
|
|
641
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
642
|
+
|
|
643
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
644
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
645
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
646
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
|
|
647
|
+
|
|
648
|
+
return {
|
|
649
|
+
url: toPathString(localVarUrlObj),
|
|
650
|
+
options: localVarRequestOptions,
|
|
651
|
+
};
|
|
652
|
+
},
|
|
653
|
+
/**
|
|
654
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
655
|
+
* @summary Update the action
|
|
656
|
+
* @param {string} code Action code
|
|
657
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
658
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
updateAction_5: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
663
|
+
// verify required parameter 'code' is not null or undefined
|
|
664
|
+
assertParamExists('updateAction_5', 'code', code)
|
|
665
|
+
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
666
|
+
assertParamExists('updateAction_5', 'updateActionRequestDto', updateActionRequestDto)
|
|
667
|
+
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
668
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
669
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
670
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
671
|
+
let baseOptions;
|
|
672
|
+
let baseAccessToken;
|
|
673
|
+
if (configuration) {
|
|
674
|
+
baseOptions = configuration.baseOptions;
|
|
675
|
+
baseAccessToken = configuration.accessToken;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
679
|
+
const localVarHeaderParameter = {} as any;
|
|
680
|
+
const localVarQueryParameter = {} as any;
|
|
681
|
+
|
|
682
|
+
// authentication bearer required
|
|
683
|
+
// http bearer authentication required
|
|
684
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
685
|
+
|
|
686
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
687
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
428
692
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
429
693
|
|
|
430
694
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -448,7 +712,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
448
712
|
const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration)
|
|
449
713
|
return {
|
|
450
714
|
/**
|
|
451
|
-
* Creates a new action configuration
|
|
715
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
452
716
|
* @summary Create the action
|
|
453
717
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
454
718
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -460,7 +724,19 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
460
724
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
461
725
|
},
|
|
462
726
|
/**
|
|
463
|
-
*
|
|
727
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
728
|
+
* @summary Create the action
|
|
729
|
+
* @param {CreateActionRequestDto} createActionRequestDto
|
|
730
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
async createAction_1(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateActionResponseClass>> {
|
|
735
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAction_1(createActionRequestDto, authorization, options);
|
|
736
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
737
|
+
},
|
|
738
|
+
/**
|
|
739
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
464
740
|
* @summary Delete the action
|
|
465
741
|
* @param {string} code Action code
|
|
466
742
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -472,7 +748,19 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
472
748
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
473
749
|
},
|
|
474
750
|
/**
|
|
475
|
-
*
|
|
751
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
752
|
+
* @summary Delete the action
|
|
753
|
+
* @param {string} code Action code
|
|
754
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
async deleteAction_2(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction_2(code, authorization, options);
|
|
760
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
761
|
+
},
|
|
762
|
+
/**
|
|
763
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
476
764
|
* @summary Retrieve the action
|
|
477
765
|
* @param {string} code Action code
|
|
478
766
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -484,7 +772,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
484
772
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
485
773
|
},
|
|
486
774
|
/**
|
|
487
|
-
* Retrieves the latest action execution status by executionCode or correlationId
|
|
775
|
+
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
488
776
|
* @summary Retrieve the actionExecution
|
|
489
777
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
490
778
|
* @param {string} [executionCode] Action execution code
|
|
@@ -497,7 +785,19 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
497
785
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
498
786
|
},
|
|
499
787
|
/**
|
|
500
|
-
*
|
|
788
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
789
|
+
* @summary Retrieve the action
|
|
790
|
+
* @param {string} code Action code
|
|
791
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
async getAction_3(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
|
|
796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction_3(code, authorization, options);
|
|
797
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
798
|
+
},
|
|
799
|
+
/**
|
|
800
|
+
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
501
801
|
* @summary List actionExecutions
|
|
502
802
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
503
803
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -515,7 +815,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
515
815
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
516
816
|
},
|
|
517
817
|
/**
|
|
518
|
-
* Lists all action configurations with optional filters
|
|
818
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
519
819
|
* @summary List actions
|
|
520
820
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
821
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -533,7 +833,25 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
533
833
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
534
834
|
},
|
|
535
835
|
/**
|
|
536
|
-
*
|
|
836
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
837
|
+
* @summary List actions
|
|
838
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
839
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
840
|
+
* @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.
|
|
841
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
842
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
843
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
844
|
+
* @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/>
|
|
845
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
async listActions_4(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionsResponseClass>> {
|
|
850
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
851
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
852
|
+
},
|
|
853
|
+
/**
|
|
854
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
537
855
|
* @summary Update the action
|
|
538
856
|
* @param {string} code Action code
|
|
539
857
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -545,6 +863,19 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
545
863
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
|
|
546
864
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
547
865
|
},
|
|
866
|
+
/**
|
|
867
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
868
|
+
* @summary Update the action
|
|
869
|
+
* @param {string} code Action code
|
|
870
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
871
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
872
|
+
* @param {*} [options] Override http request option.
|
|
873
|
+
* @throws {RequiredError}
|
|
874
|
+
*/
|
|
875
|
+
async updateAction_5(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
876
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options);
|
|
877
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
878
|
+
},
|
|
548
879
|
}
|
|
549
880
|
};
|
|
550
881
|
|
|
@@ -556,7 +887,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
556
887
|
const localVarFp = ActionsApiFp(configuration)
|
|
557
888
|
return {
|
|
558
889
|
/**
|
|
559
|
-
* Creates a new action configuration
|
|
890
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
560
891
|
* @summary Create the action
|
|
561
892
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
562
893
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -567,7 +898,18 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
567
898
|
return localVarFp.createAction(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
568
899
|
},
|
|
569
900
|
/**
|
|
570
|
-
*
|
|
901
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
902
|
+
* @summary Create the action
|
|
903
|
+
* @param {CreateActionRequestDto} createActionRequestDto
|
|
904
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
createAction_1(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateActionResponseClass> {
|
|
909
|
+
return localVarFp.createAction_1(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
910
|
+
},
|
|
911
|
+
/**
|
|
912
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
571
913
|
* @summary Delete the action
|
|
572
914
|
* @param {string} code Action code
|
|
573
915
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -578,7 +920,18 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
578
920
|
return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
579
921
|
},
|
|
580
922
|
/**
|
|
581
|
-
*
|
|
923
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
924
|
+
* @summary Delete the action
|
|
925
|
+
* @param {string} code Action code
|
|
926
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
deleteAction_2(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
931
|
+
return localVarFp.deleteAction_2(code, authorization, options).then((request) => request(axios, basePath));
|
|
932
|
+
},
|
|
933
|
+
/**
|
|
934
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
582
935
|
* @summary Retrieve the action
|
|
583
936
|
* @param {string} code Action code
|
|
584
937
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -589,7 +942,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
589
942
|
return localVarFp.getAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
590
943
|
},
|
|
591
944
|
/**
|
|
592
|
-
* Retrieves the latest action execution status by executionCode or correlationId
|
|
945
|
+
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
593
946
|
* @summary Retrieve the actionExecution
|
|
594
947
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
595
948
|
* @param {string} [executionCode] Action execution code
|
|
@@ -601,7 +954,18 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
601
954
|
return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then((request) => request(axios, basePath));
|
|
602
955
|
},
|
|
603
956
|
/**
|
|
604
|
-
*
|
|
957
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
958
|
+
* @summary Retrieve the action
|
|
959
|
+
* @param {string} code Action code
|
|
960
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
961
|
+
* @param {*} [options] Override http request option.
|
|
962
|
+
* @throws {RequiredError}
|
|
963
|
+
*/
|
|
964
|
+
getAction_3(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
|
|
965
|
+
return localVarFp.getAction_3(code, authorization, options).then((request) => request(axios, basePath));
|
|
966
|
+
},
|
|
967
|
+
/**
|
|
968
|
+
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
605
969
|
* @summary List actionExecutions
|
|
606
970
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
607
971
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -618,7 +982,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
618
982
|
return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
619
983
|
},
|
|
620
984
|
/**
|
|
621
|
-
* Lists all action configurations with optional filters
|
|
985
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
622
986
|
* @summary List actions
|
|
623
987
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
624
988
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -635,7 +999,24 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
635
999
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
636
1000
|
},
|
|
637
1001
|
/**
|
|
638
|
-
*
|
|
1002
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1003
|
+
* @summary List actions
|
|
1004
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1005
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1006
|
+
* @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.
|
|
1007
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1008
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1009
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
1010
|
+
* @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/>
|
|
1011
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1012
|
+
* @param {*} [options] Override http request option.
|
|
1013
|
+
* @throws {RequiredError}
|
|
1014
|
+
*/
|
|
1015
|
+
listActions_4(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionsResponseClass> {
|
|
1016
|
+
return localVarFp.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1017
|
+
},
|
|
1018
|
+
/**
|
|
1019
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
639
1020
|
* @summary Update the action
|
|
640
1021
|
* @param {string} code Action code
|
|
641
1022
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -646,6 +1027,18 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
646
1027
|
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
647
1028
|
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
648
1029
|
},
|
|
1030
|
+
/**
|
|
1031
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1032
|
+
* @summary Update the action
|
|
1033
|
+
* @param {string} code Action code
|
|
1034
|
+
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
1035
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1036
|
+
* @param {*} [options] Override http request option.
|
|
1037
|
+
* @throws {RequiredError}
|
|
1038
|
+
*/
|
|
1039
|
+
updateAction_5(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
1040
|
+
return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1041
|
+
},
|
|
649
1042
|
};
|
|
650
1043
|
};
|
|
651
1044
|
|
|
@@ -670,6 +1063,27 @@ export interface ActionsApiCreateActionRequest {
|
|
|
670
1063
|
readonly authorization?: string
|
|
671
1064
|
}
|
|
672
1065
|
|
|
1066
|
+
/**
|
|
1067
|
+
* Request parameters for createAction_1 operation in ActionsApi.
|
|
1068
|
+
* @export
|
|
1069
|
+
* @interface ActionsApiCreateAction0Request
|
|
1070
|
+
*/
|
|
1071
|
+
export interface ActionsApiCreateAction0Request {
|
|
1072
|
+
/**
|
|
1073
|
+
*
|
|
1074
|
+
* @type {CreateActionRequestDto}
|
|
1075
|
+
* @memberof ActionsApiCreateAction0
|
|
1076
|
+
*/
|
|
1077
|
+
readonly createActionRequestDto: CreateActionRequestDto
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1081
|
+
* @type {string}
|
|
1082
|
+
* @memberof ActionsApiCreateAction0
|
|
1083
|
+
*/
|
|
1084
|
+
readonly authorization?: string
|
|
1085
|
+
}
|
|
1086
|
+
|
|
673
1087
|
/**
|
|
674
1088
|
* Request parameters for deleteAction operation in ActionsApi.
|
|
675
1089
|
* @export
|
|
@@ -691,6 +1105,27 @@ export interface ActionsApiDeleteActionRequest {
|
|
|
691
1105
|
readonly authorization?: string
|
|
692
1106
|
}
|
|
693
1107
|
|
|
1108
|
+
/**
|
|
1109
|
+
* Request parameters for deleteAction_2 operation in ActionsApi.
|
|
1110
|
+
* @export
|
|
1111
|
+
* @interface ActionsApiDeleteAction0Request
|
|
1112
|
+
*/
|
|
1113
|
+
export interface ActionsApiDeleteAction0Request {
|
|
1114
|
+
/**
|
|
1115
|
+
* Action code
|
|
1116
|
+
* @type {string}
|
|
1117
|
+
* @memberof ActionsApiDeleteAction0
|
|
1118
|
+
*/
|
|
1119
|
+
readonly code: string
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1123
|
+
* @type {string}
|
|
1124
|
+
* @memberof ActionsApiDeleteAction0
|
|
1125
|
+
*/
|
|
1126
|
+
readonly authorization?: string
|
|
1127
|
+
}
|
|
1128
|
+
|
|
694
1129
|
/**
|
|
695
1130
|
* Request parameters for getAction operation in ActionsApi.
|
|
696
1131
|
* @export
|
|
@@ -740,6 +1175,27 @@ export interface ActionsApiGetActionExecutionStatusRequest {
|
|
|
740
1175
|
readonly correlationId?: string
|
|
741
1176
|
}
|
|
742
1177
|
|
|
1178
|
+
/**
|
|
1179
|
+
* Request parameters for getAction_3 operation in ActionsApi.
|
|
1180
|
+
* @export
|
|
1181
|
+
* @interface ActionsApiGetAction0Request
|
|
1182
|
+
*/
|
|
1183
|
+
export interface ActionsApiGetAction0Request {
|
|
1184
|
+
/**
|
|
1185
|
+
* Action code
|
|
1186
|
+
* @type {string}
|
|
1187
|
+
* @memberof ActionsApiGetAction0
|
|
1188
|
+
*/
|
|
1189
|
+
readonly code: string
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1193
|
+
* @type {string}
|
|
1194
|
+
* @memberof ActionsApiGetAction0
|
|
1195
|
+
*/
|
|
1196
|
+
readonly authorization?: string
|
|
1197
|
+
}
|
|
1198
|
+
|
|
743
1199
|
/**
|
|
744
1200
|
* Request parameters for listActionExecutions operation in ActionsApi.
|
|
745
1201
|
* @export
|
|
@@ -866,6 +1322,69 @@ export interface ActionsApiListActionsRequest {
|
|
|
866
1322
|
readonly filters?: string
|
|
867
1323
|
}
|
|
868
1324
|
|
|
1325
|
+
/**
|
|
1326
|
+
* Request parameters for listActions_4 operation in ActionsApi.
|
|
1327
|
+
* @export
|
|
1328
|
+
* @interface ActionsApiListActions0Request
|
|
1329
|
+
*/
|
|
1330
|
+
export interface ActionsApiListActions0Request {
|
|
1331
|
+
/**
|
|
1332
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1333
|
+
* @type {string}
|
|
1334
|
+
* @memberof ActionsApiListActions0
|
|
1335
|
+
*/
|
|
1336
|
+
readonly authorization?: string
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1340
|
+
* @type {number}
|
|
1341
|
+
* @memberof ActionsApiListActions0
|
|
1342
|
+
*/
|
|
1343
|
+
readonly pageSize?: number
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* 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.
|
|
1347
|
+
* @type {string}
|
|
1348
|
+
* @memberof ActionsApiListActions0
|
|
1349
|
+
*/
|
|
1350
|
+
readonly pageToken?: string
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1354
|
+
* @type {string}
|
|
1355
|
+
* @memberof ActionsApiListActions0
|
|
1356
|
+
*/
|
|
1357
|
+
readonly filter?: string
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1361
|
+
* @type {string}
|
|
1362
|
+
* @memberof ActionsApiListActions0
|
|
1363
|
+
*/
|
|
1364
|
+
readonly search?: string
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
1368
|
+
* @type {string}
|
|
1369
|
+
* @memberof ActionsApiListActions0
|
|
1370
|
+
*/
|
|
1371
|
+
readonly order?: string
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* 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/>
|
|
1375
|
+
* @type {string}
|
|
1376
|
+
* @memberof ActionsApiListActions0
|
|
1377
|
+
*/
|
|
1378
|
+
readonly expand?: string
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1382
|
+
* @type {string}
|
|
1383
|
+
* @memberof ActionsApiListActions0
|
|
1384
|
+
*/
|
|
1385
|
+
readonly filters?: string
|
|
1386
|
+
}
|
|
1387
|
+
|
|
869
1388
|
/**
|
|
870
1389
|
* Request parameters for updateAction operation in ActionsApi.
|
|
871
1390
|
* @export
|
|
@@ -894,6 +1413,34 @@ export interface ActionsApiUpdateActionRequest {
|
|
|
894
1413
|
readonly authorization?: string
|
|
895
1414
|
}
|
|
896
1415
|
|
|
1416
|
+
/**
|
|
1417
|
+
* Request parameters for updateAction_5 operation in ActionsApi.
|
|
1418
|
+
* @export
|
|
1419
|
+
* @interface ActionsApiUpdateAction0Request
|
|
1420
|
+
*/
|
|
1421
|
+
export interface ActionsApiUpdateAction0Request {
|
|
1422
|
+
/**
|
|
1423
|
+
* Action code
|
|
1424
|
+
* @type {string}
|
|
1425
|
+
* @memberof ActionsApiUpdateAction0
|
|
1426
|
+
*/
|
|
1427
|
+
readonly code: string
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
*
|
|
1431
|
+
* @type {UpdateActionRequestDto}
|
|
1432
|
+
* @memberof ActionsApiUpdateAction0
|
|
1433
|
+
*/
|
|
1434
|
+
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1438
|
+
* @type {string}
|
|
1439
|
+
* @memberof ActionsApiUpdateAction0
|
|
1440
|
+
*/
|
|
1441
|
+
readonly authorization?: string
|
|
1442
|
+
}
|
|
1443
|
+
|
|
897
1444
|
/**
|
|
898
1445
|
* ActionsApi - object-oriented interface
|
|
899
1446
|
* @export
|
|
@@ -902,7 +1449,7 @@ export interface ActionsApiUpdateActionRequest {
|
|
|
902
1449
|
*/
|
|
903
1450
|
export class ActionsApi extends BaseAPI {
|
|
904
1451
|
/**
|
|
905
|
-
* Creates a new action configuration
|
|
1452
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
906
1453
|
* @summary Create the action
|
|
907
1454
|
* @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
|
|
908
1455
|
* @param {*} [options] Override http request option.
|
|
@@ -914,7 +1461,19 @@ export class ActionsApi extends BaseAPI {
|
|
|
914
1461
|
}
|
|
915
1462
|
|
|
916
1463
|
/**
|
|
917
|
-
*
|
|
1464
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
1465
|
+
* @summary Create the action
|
|
1466
|
+
* @param {ActionsApiCreateAction0Request} requestParameters Request parameters.
|
|
1467
|
+
* @param {*} [options] Override http request option.
|
|
1468
|
+
* @throws {RequiredError}
|
|
1469
|
+
* @memberof ActionsApi
|
|
1470
|
+
*/
|
|
1471
|
+
public createAction_1(requestParameters: ActionsApiCreateAction0Request, options?: AxiosRequestConfig) {
|
|
1472
|
+
return ActionsApiFp(this.configuration).createAction_1(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
918
1477
|
* @summary Delete the action
|
|
919
1478
|
* @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
|
|
920
1479
|
* @param {*} [options] Override http request option.
|
|
@@ -926,7 +1485,19 @@ export class ActionsApi extends BaseAPI {
|
|
|
926
1485
|
}
|
|
927
1486
|
|
|
928
1487
|
/**
|
|
929
|
-
*
|
|
1488
|
+
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
1489
|
+
* @summary Delete the action
|
|
1490
|
+
* @param {ActionsApiDeleteAction0Request} requestParameters Request parameters.
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
* @memberof ActionsApi
|
|
1494
|
+
*/
|
|
1495
|
+
public deleteAction_2(requestParameters: ActionsApiDeleteAction0Request, options?: AxiosRequestConfig) {
|
|
1496
|
+
return ActionsApiFp(this.configuration).deleteAction_2(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
930
1501
|
* @summary Retrieve the action
|
|
931
1502
|
* @param {ActionsApiGetActionRequest} requestParameters Request parameters.
|
|
932
1503
|
* @param {*} [options] Override http request option.
|
|
@@ -938,7 +1509,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
938
1509
|
}
|
|
939
1510
|
|
|
940
1511
|
/**
|
|
941
|
-
* Retrieves the latest action execution status by executionCode or correlationId
|
|
1512
|
+
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
942
1513
|
* @summary Retrieve the actionExecution
|
|
943
1514
|
* @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
|
|
944
1515
|
* @param {*} [options] Override http request option.
|
|
@@ -950,7 +1521,19 @@ export class ActionsApi extends BaseAPI {
|
|
|
950
1521
|
}
|
|
951
1522
|
|
|
952
1523
|
/**
|
|
953
|
-
*
|
|
1524
|
+
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
1525
|
+
* @summary Retrieve the action
|
|
1526
|
+
* @param {ActionsApiGetAction0Request} requestParameters Request parameters.
|
|
1527
|
+
* @param {*} [options] Override http request option.
|
|
1528
|
+
* @throws {RequiredError}
|
|
1529
|
+
* @memberof ActionsApi
|
|
1530
|
+
*/
|
|
1531
|
+
public getAction_3(requestParameters: ActionsApiGetAction0Request, options?: AxiosRequestConfig) {
|
|
1532
|
+
return ActionsApiFp(this.configuration).getAction_3(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
954
1537
|
* @summary List actionExecutions
|
|
955
1538
|
* @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
|
|
956
1539
|
* @param {*} [options] Override http request option.
|
|
@@ -962,7 +1545,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
962
1545
|
}
|
|
963
1546
|
|
|
964
1547
|
/**
|
|
965
|
-
* Lists all action configurations with optional filters
|
|
1548
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
966
1549
|
* @summary List actions
|
|
967
1550
|
* @param {ActionsApiListActionsRequest} requestParameters Request parameters.
|
|
968
1551
|
* @param {*} [options] Override http request option.
|
|
@@ -974,7 +1557,19 @@ export class ActionsApi extends BaseAPI {
|
|
|
974
1557
|
}
|
|
975
1558
|
|
|
976
1559
|
/**
|
|
977
|
-
*
|
|
1560
|
+
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1561
|
+
* @summary List actions
|
|
1562
|
+
* @param {ActionsApiListActions0Request} requestParameters Request parameters.
|
|
1563
|
+
* @param {*} [options] Override http request option.
|
|
1564
|
+
* @throws {RequiredError}
|
|
1565
|
+
* @memberof ActionsApi
|
|
1566
|
+
*/
|
|
1567
|
+
public listActions_4(requestParameters: ActionsApiListActions0Request = {}, options?: AxiosRequestConfig) {
|
|
1568
|
+
return ActionsApiFp(this.configuration).listActions_4(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
978
1573
|
* @summary Update the action
|
|
979
1574
|
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
980
1575
|
* @param {*} [options] Override http request option.
|
|
@@ -984,4 +1579,16 @@ export class ActionsApi extends BaseAPI {
|
|
|
984
1579
|
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
985
1580
|
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
986
1581
|
}
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1585
|
+
* @summary Update the action
|
|
1586
|
+
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1587
|
+
* @param {*} [options] Override http request option.
|
|
1588
|
+
* @throws {RequiredError}
|
|
1589
|
+
* @memberof ActionsApi
|
|
1590
|
+
*/
|
|
1591
|
+
public updateAction_5(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
|
|
1592
|
+
return ActionsApiFp(this.configuration).updateAction_5(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1593
|
+
}
|
|
987
1594
|
}
|