@emilgroup/action-sdk 1.1.1-beta.27 → 1.1.1-beta.6
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 +0 -7
- package/README.md +2 -2
- package/api/actions-api.ts +130 -559
- package/api.ts +0 -2
- package/dist/api/actions-api.d.ts +112 -358
- package/dist/api/actions-api.js +97 -427
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/action-class.d.ts +20 -9
- package/dist/models/action-execution-class.d.ts +0 -36
- package/dist/models/create-action-request-dto.d.ts +5 -47
- package/dist/models/create-action-request-dto.js +0 -6
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/dist/models/update-action-request-dto.d.ts +5 -41
- package/dist/models/update-action-request-dto.js +0 -6
- package/models/action-class.ts +20 -9
- package/models/action-execution-class.ts +0 -36
- package/models/create-action-request-dto.ts +5 -50
- package/models/index.ts +0 -6
- package/models/update-action-request-dto.ts +5 -44
- package/package.json +1 -1
- package/api/executions-api.ts +0 -471
- package/dist/api/executions-api.d.ts +0 -272
- package/dist/api/executions-api.js +0 -452
- package/dist/models/action-ref-class.d.ts +0 -36
- package/dist/models/action-ref-class.js +0 -15
- package/dist/models/action-version-class.d.ts +0 -127
- package/dist/models/action-version-class.js +0 -21
- package/dist/models/get-action-version-response-class.d.ts +0 -25
- package/dist/models/get-action-version-response-class.js +0 -15
- package/dist/models/list-action-versions-response-class.d.ts +0 -43
- package/dist/models/list-action-versions-response-class.js +0 -15
- package/dist/models/trigger-action-request-dto.d.ts +0 -62
- package/dist/models/trigger-action-request-dto.js +0 -15
- package/dist/models/trigger-action-response-class.d.ts +0 -25
- package/dist/models/trigger-action-response-class.js +0 -15
- package/models/action-ref-class.ts +0 -42
- package/models/action-version-class.ts +0 -136
- package/models/get-action-version-response-class.ts +0 -31
- package/models/list-action-versions-response-class.ts +0 -49
- package/models/trigger-action-request-dto.ts +0 -66
- package/models/trigger-action-response-class.ts +0 -31
package/api/actions-api.ts
CHANGED
|
@@ -25,11 +25,11 @@ import { CreateActionRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateActionResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
28
|
+
import { GetActionExecutionStatusResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
-
import {
|
|
30
|
+
import { GetActionResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { ListActionExecutionsResponseClass } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { ListActionsResponseClass } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
@@ -43,7 +43,7 @@ import { UpdateActionResponseClass } from '../models';
|
|
|
43
43
|
export const ActionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
44
|
return {
|
|
45
45
|
/**
|
|
46
|
-
* Creates a new action configuration
|
|
46
|
+
* Creates a new action configuration
|
|
47
47
|
* @summary Create the action
|
|
48
48
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
49
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -90,7 +90,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
90
90
|
};
|
|
91
91
|
},
|
|
92
92
|
/**
|
|
93
|
-
* Deletes an action configuration by its code
|
|
93
|
+
* Deletes an action configuration by its code
|
|
94
94
|
* @summary Delete the action
|
|
95
95
|
* @param {string} code Action code
|
|
96
96
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -135,60 +135,14 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
135
135
|
};
|
|
136
136
|
},
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
139
|
-
* @summary Delete the action version
|
|
140
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
141
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
|
-
* @param {*} [options] Override http request option.
|
|
143
|
-
* @throws {RequiredError}
|
|
144
|
-
*/
|
|
145
|
-
deleteActionVersion: async (versionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146
|
-
// verify required parameter 'versionCode' is not null or undefined
|
|
147
|
-
assertParamExists('deleteActionVersion', 'versionCode', versionCode)
|
|
148
|
-
const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
|
|
149
|
-
.replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
|
|
150
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
152
|
-
let baseOptions;
|
|
153
|
-
let baseAccessToken;
|
|
154
|
-
if (configuration) {
|
|
155
|
-
baseOptions = configuration.baseOptions;
|
|
156
|
-
baseAccessToken = configuration.accessToken;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
160
|
-
const localVarHeaderParameter = {} as any;
|
|
161
|
-
const localVarQueryParameter = {} as any;
|
|
162
|
-
|
|
163
|
-
// authentication bearer required
|
|
164
|
-
// http bearer authentication required
|
|
165
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
|
-
|
|
167
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
168
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
174
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
176
|
-
|
|
177
|
-
return {
|
|
178
|
-
url: toPathString(localVarUrlObj),
|
|
179
|
-
options: localVarRequestOptions,
|
|
180
|
-
};
|
|
181
|
-
},
|
|
182
|
-
/**
|
|
183
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
138
|
+
* Retrieves an action configuration by its code
|
|
184
139
|
* @summary Retrieve the action
|
|
185
140
|
* @param {string} code Action code
|
|
186
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
|
-
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
188
142
|
* @param {*} [options] Override http request option.
|
|
189
143
|
* @throws {RequiredError}
|
|
190
144
|
*/
|
|
191
|
-
getAction: async (code: string, authorization?: string,
|
|
145
|
+
getAction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
192
146
|
// verify required parameter 'code' is not null or undefined
|
|
193
147
|
assertParamExists('getAction', 'code', code)
|
|
194
148
|
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
@@ -210,10 +164,6 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
210
164
|
// http bearer authentication required
|
|
211
165
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
212
166
|
|
|
213
|
-
if (expand !== undefined) {
|
|
214
|
-
localVarQueryParameter['expand'] = expand;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
167
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
218
168
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
219
169
|
}
|
|
@@ -230,19 +180,16 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
230
180
|
};
|
|
231
181
|
},
|
|
232
182
|
/**
|
|
233
|
-
*
|
|
234
|
-
* @summary Retrieve the
|
|
235
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
183
|
+
* Retrieves the latest action execution status by executionCode or correlationId
|
|
184
|
+
* @summary Retrieve the actionExecution
|
|
236
185
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
237
|
-
* @param {string} [
|
|
186
|
+
* @param {string} [executionCode] Action execution code
|
|
187
|
+
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
238
188
|
* @param {*} [options] Override http request option.
|
|
239
189
|
* @throws {RequiredError}
|
|
240
190
|
*/
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
assertParamExists('getActionVersion', 'versionCode', versionCode)
|
|
244
|
-
const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
|
|
245
|
-
.replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
|
|
191
|
+
getActionExecutionStatus: async (authorization?: string, executionCode?: string, correlationId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
192
|
+
const localVarPath = `/actionservice/v1/actions/executions/status`;
|
|
246
193
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
247
194
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
248
195
|
let baseOptions;
|
|
@@ -260,8 +207,12 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
260
207
|
// http bearer authentication required
|
|
261
208
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
262
209
|
|
|
263
|
-
if (
|
|
264
|
-
localVarQueryParameter['
|
|
210
|
+
if (executionCode !== undefined) {
|
|
211
|
+
localVarQueryParameter['executionCode'] = executionCode;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (correlationId !== undefined) {
|
|
215
|
+
localVarQueryParameter['correlationId'] = correlationId;
|
|
265
216
|
}
|
|
266
217
|
|
|
267
218
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
@@ -280,25 +231,21 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
280
231
|
};
|
|
281
232
|
},
|
|
282
233
|
/**
|
|
283
|
-
* Lists
|
|
284
|
-
* @summary List
|
|
285
|
-
* @param {string} code Action code
|
|
234
|
+
* Lists action executions (latest status per execution only) with optional filters
|
|
235
|
+
* @summary List actionExecutions
|
|
286
236
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
287
237
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
288
238
|
* @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.
|
|
289
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
239
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
290
240
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
291
|
-
* @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,
|
|
292
|
-
* @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/>
|
|
293
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
241
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
|
|
242
|
+
* @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/>
|
|
243
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
294
244
|
* @param {*} [options] Override http request option.
|
|
295
245
|
* @throws {RequiredError}
|
|
296
246
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
assertParamExists('listActionVersions', 'code', code)
|
|
300
|
-
const localVarPath = `/actionservice/v1/actions/{code}/versions`
|
|
301
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
247
|
+
listActionExecutions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
248
|
+
const localVarPath = `/actionservice/v1/actions/executions`;
|
|
302
249
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
303
250
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
304
251
|
let baseOptions;
|
|
@@ -360,16 +307,16 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
360
307
|
};
|
|
361
308
|
},
|
|
362
309
|
/**
|
|
363
|
-
* Lists all action configurations with optional filters
|
|
310
|
+
* Lists all action configurations with optional filters
|
|
364
311
|
* @summary List actions
|
|
365
312
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
366
313
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
367
314
|
* @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.
|
|
368
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
315
|
+
* @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>
|
|
369
316
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
370
|
-
* @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,
|
|
371
|
-
* @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/>
|
|
372
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
317
|
+
* @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>
|
|
318
|
+
* @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/>
|
|
319
|
+
* @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>
|
|
373
320
|
* @param {*} [options] Override http request option.
|
|
374
321
|
* @throws {RequiredError}
|
|
375
322
|
*/
|
|
@@ -436,83 +383,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
436
383
|
};
|
|
437
384
|
},
|
|
438
385
|
/**
|
|
439
|
-
*
|
|
440
|
-
* @summary List action versions
|
|
441
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
442
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
443
|
-
* @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.
|
|
444
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
|
|
445
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
446
|
-
* @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>
|
|
447
|
-
* @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>
|
|
448
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
|
|
449
|
-
* @param {*} [options] Override http request option.
|
|
450
|
-
* @throws {RequiredError}
|
|
451
|
-
*/
|
|
452
|
-
listAllActionVersions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
453
|
-
const localVarPath = `/actionservice/v1/actions/versions`;
|
|
454
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
455
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
456
|
-
let baseOptions;
|
|
457
|
-
let baseAccessToken;
|
|
458
|
-
if (configuration) {
|
|
459
|
-
baseOptions = configuration.baseOptions;
|
|
460
|
-
baseAccessToken = configuration.accessToken;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
464
|
-
const localVarHeaderParameter = {} as any;
|
|
465
|
-
const localVarQueryParameter = {} as any;
|
|
466
|
-
|
|
467
|
-
// authentication bearer required
|
|
468
|
-
// http bearer authentication required
|
|
469
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
470
|
-
|
|
471
|
-
if (pageSize !== undefined) {
|
|
472
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
if (pageToken !== undefined) {
|
|
476
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
if (filter !== undefined) {
|
|
480
|
-
localVarQueryParameter['filter'] = filter;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
if (search !== undefined) {
|
|
484
|
-
localVarQueryParameter['search'] = search;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
if (order !== undefined) {
|
|
488
|
-
localVarQueryParameter['order'] = order;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
if (expand !== undefined) {
|
|
492
|
-
localVarQueryParameter['expand'] = expand;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
if (filters !== undefined) {
|
|
496
|
-
localVarQueryParameter['filters'] = filters;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
500
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
506
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
508
|
-
|
|
509
|
-
return {
|
|
510
|
-
url: toPathString(localVarUrlObj),
|
|
511
|
-
options: localVarRequestOptions,
|
|
512
|
-
};
|
|
513
|
-
},
|
|
514
|
-
/**
|
|
515
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
386
|
+
* Updates an existing action configuration (patch semantics)
|
|
516
387
|
* @summary Update the action
|
|
517
388
|
* @param {string} code Action code
|
|
518
389
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -550,57 +421,6 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
550
421
|
|
|
551
422
|
|
|
552
423
|
|
|
553
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
554
|
-
|
|
555
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
556
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
557
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
558
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
|
|
559
|
-
|
|
560
|
-
return {
|
|
561
|
-
url: toPathString(localVarUrlObj),
|
|
562
|
-
options: localVarRequestOptions,
|
|
563
|
-
};
|
|
564
|
-
},
|
|
565
|
-
/**
|
|
566
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
567
|
-
* @summary Update the action
|
|
568
|
-
* @param {string} code Action code
|
|
569
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
570
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
571
|
-
* @param {*} [options] Override http request option.
|
|
572
|
-
* @throws {RequiredError}
|
|
573
|
-
*/
|
|
574
|
-
updateAction_1: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
575
|
-
// verify required parameter 'code' is not null or undefined
|
|
576
|
-
assertParamExists('updateAction_1', 'code', code)
|
|
577
|
-
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
578
|
-
assertParamExists('updateAction_1', 'updateActionRequestDto', updateActionRequestDto)
|
|
579
|
-
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
580
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
581
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
582
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
583
|
-
let baseOptions;
|
|
584
|
-
let baseAccessToken;
|
|
585
|
-
if (configuration) {
|
|
586
|
-
baseOptions = configuration.baseOptions;
|
|
587
|
-
baseAccessToken = configuration.accessToken;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
591
|
-
const localVarHeaderParameter = {} as any;
|
|
592
|
-
const localVarQueryParameter = {} as any;
|
|
593
|
-
|
|
594
|
-
// authentication bearer required
|
|
595
|
-
// http bearer authentication required
|
|
596
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
597
|
-
|
|
598
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
599
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
424
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
605
425
|
|
|
606
426
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -624,7 +444,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
624
444
|
const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration)
|
|
625
445
|
return {
|
|
626
446
|
/**
|
|
627
|
-
* Creates a new action configuration
|
|
447
|
+
* Creates a new action configuration
|
|
628
448
|
* @summary Create the action
|
|
629
449
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
630
450
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -636,7 +456,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
636
456
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
637
457
|
},
|
|
638
458
|
/**
|
|
639
|
-
* Deletes an action configuration by its code
|
|
459
|
+
* Deletes an action configuration by its code
|
|
640
460
|
* @summary Delete the action
|
|
641
461
|
* @param {string} code Action code
|
|
642
462
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -648,73 +468,59 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
648
468
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
649
469
|
},
|
|
650
470
|
/**
|
|
651
|
-
*
|
|
652
|
-
* @summary Delete the action version
|
|
653
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
654
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
655
|
-
* @param {*} [options] Override http request option.
|
|
656
|
-
* @throws {RequiredError}
|
|
657
|
-
*/
|
|
658
|
-
async deleteActionVersion(versionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
659
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options);
|
|
660
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
661
|
-
},
|
|
662
|
-
/**
|
|
663
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
471
|
+
* Retrieves an action configuration by its code
|
|
664
472
|
* @summary Retrieve the action
|
|
665
473
|
* @param {string} code Action code
|
|
666
474
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
667
|
-
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
668
475
|
* @param {*} [options] Override http request option.
|
|
669
476
|
* @throws {RequiredError}
|
|
670
477
|
*/
|
|
671
|
-
async getAction(code: string, authorization?: string,
|
|
672
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization,
|
|
478
|
+
async getAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
|
|
479
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, options);
|
|
673
480
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
674
481
|
},
|
|
675
482
|
/**
|
|
676
|
-
*
|
|
677
|
-
* @summary Retrieve the
|
|
678
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
483
|
+
* Retrieves the latest action execution status by executionCode or correlationId
|
|
484
|
+
* @summary Retrieve the actionExecution
|
|
679
485
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
680
|
-
* @param {string} [
|
|
486
|
+
* @param {string} [executionCode] Action execution code
|
|
487
|
+
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
681
488
|
* @param {*} [options] Override http request option.
|
|
682
489
|
* @throws {RequiredError}
|
|
683
490
|
*/
|
|
684
|
-
async
|
|
685
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
491
|
+
async getActionExecutionStatus(authorization?: string, executionCode?: string, correlationId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionExecutionStatusResponseClass>> {
|
|
492
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActionExecutionStatus(authorization, executionCode, correlationId, options);
|
|
686
493
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
687
494
|
},
|
|
688
495
|
/**
|
|
689
|
-
* Lists
|
|
690
|
-
* @summary List
|
|
691
|
-
* @param {string} code Action code
|
|
496
|
+
* Lists action executions (latest status per execution only) with optional filters
|
|
497
|
+
* @summary List actionExecutions
|
|
692
498
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
693
499
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
694
500
|
* @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.
|
|
695
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
501
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
696
502
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
697
|
-
* @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,
|
|
698
|
-
* @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/>
|
|
699
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
503
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
|
|
504
|
+
* @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/>
|
|
505
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
700
506
|
* @param {*} [options] Override http request option.
|
|
701
507
|
* @throws {RequiredError}
|
|
702
508
|
*/
|
|
703
|
-
async
|
|
704
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
509
|
+
async listActionExecutions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionExecutionsResponseClass>> {
|
|
510
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
705
511
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
706
512
|
},
|
|
707
513
|
/**
|
|
708
|
-
* Lists all action configurations with optional filters
|
|
514
|
+
* Lists all action configurations with optional filters
|
|
709
515
|
* @summary List actions
|
|
710
516
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
711
517
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
712
518
|
* @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.
|
|
713
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
519
|
+
* @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>
|
|
714
520
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
715
|
-
* @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,
|
|
716
|
-
* @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/>
|
|
717
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
521
|
+
* @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>
|
|
522
|
+
* @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/>
|
|
523
|
+
* @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>
|
|
718
524
|
* @param {*} [options] Override http request option.
|
|
719
525
|
* @throws {RequiredError}
|
|
720
526
|
*/
|
|
@@ -723,25 +529,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
723
529
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
724
530
|
},
|
|
725
531
|
/**
|
|
726
|
-
*
|
|
727
|
-
* @summary List action versions
|
|
728
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
729
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
730
|
-
* @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.
|
|
731
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
|
|
732
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
733
|
-
* @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>
|
|
734
|
-
* @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>
|
|
735
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
|
|
736
|
-
* @param {*} [options] Override http request option.
|
|
737
|
-
* @throws {RequiredError}
|
|
738
|
-
*/
|
|
739
|
-
async listAllActionVersions(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>> {
|
|
740
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
741
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
742
|
-
},
|
|
743
|
-
/**
|
|
744
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
532
|
+
* Updates an existing action configuration (patch semantics)
|
|
745
533
|
* @summary Update the action
|
|
746
534
|
* @param {string} code Action code
|
|
747
535
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -753,19 +541,6 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
753
541
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
|
|
754
542
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
755
543
|
},
|
|
756
|
-
/**
|
|
757
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
758
|
-
* @summary Update the action
|
|
759
|
-
* @param {string} code Action code
|
|
760
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
761
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
762
|
-
* @param {*} [options] Override http request option.
|
|
763
|
-
* @throws {RequiredError}
|
|
764
|
-
*/
|
|
765
|
-
async updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
766
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options);
|
|
767
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
768
|
-
},
|
|
769
544
|
}
|
|
770
545
|
};
|
|
771
546
|
|
|
@@ -777,7 +552,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
777
552
|
const localVarFp = ActionsApiFp(configuration)
|
|
778
553
|
return {
|
|
779
554
|
/**
|
|
780
|
-
* Creates a new action configuration
|
|
555
|
+
* Creates a new action configuration
|
|
781
556
|
* @summary Create the action
|
|
782
557
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
783
558
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -788,7 +563,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
788
563
|
return localVarFp.createAction(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
789
564
|
},
|
|
790
565
|
/**
|
|
791
|
-
* Deletes an action configuration by its code
|
|
566
|
+
* Deletes an action configuration by its code
|
|
792
567
|
* @summary Delete the action
|
|
793
568
|
* @param {string} code Action code
|
|
794
569
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -799,69 +574,56 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
799
574
|
return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
800
575
|
},
|
|
801
576
|
/**
|
|
802
|
-
*
|
|
803
|
-
* @summary Delete the action version
|
|
804
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
805
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
806
|
-
* @param {*} [options] Override http request option.
|
|
807
|
-
* @throws {RequiredError}
|
|
808
|
-
*/
|
|
809
|
-
deleteActionVersion(versionCode: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
810
|
-
return localVarFp.deleteActionVersion(versionCode, authorization, options).then((request) => request(axios, basePath));
|
|
811
|
-
},
|
|
812
|
-
/**
|
|
813
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
577
|
+
* Retrieves an action configuration by its code
|
|
814
578
|
* @summary Retrieve the action
|
|
815
579
|
* @param {string} code Action code
|
|
816
580
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
817
|
-
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
818
581
|
* @param {*} [options] Override http request option.
|
|
819
582
|
* @throws {RequiredError}
|
|
820
583
|
*/
|
|
821
|
-
getAction(code: string, authorization?: string,
|
|
822
|
-
return localVarFp.getAction(code, authorization,
|
|
584
|
+
getAction(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
|
|
585
|
+
return localVarFp.getAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
823
586
|
},
|
|
824
587
|
/**
|
|
825
|
-
*
|
|
826
|
-
* @summary Retrieve the
|
|
827
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
588
|
+
* Retrieves the latest action execution status by executionCode or correlationId
|
|
589
|
+
* @summary Retrieve the actionExecution
|
|
828
590
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
829
|
-
* @param {string} [
|
|
591
|
+
* @param {string} [executionCode] Action execution code
|
|
592
|
+
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
830
593
|
* @param {*} [options] Override http request option.
|
|
831
594
|
* @throws {RequiredError}
|
|
832
595
|
*/
|
|
833
|
-
|
|
834
|
-
return localVarFp.
|
|
596
|
+
getActionExecutionStatus(authorization?: string, executionCode?: string, correlationId?: string, options?: any): AxiosPromise<GetActionExecutionStatusResponseClass> {
|
|
597
|
+
return localVarFp.getActionExecutionStatus(authorization, executionCode, correlationId, options).then((request) => request(axios, basePath));
|
|
835
598
|
},
|
|
836
599
|
/**
|
|
837
|
-
* Lists
|
|
838
|
-
* @summary List
|
|
839
|
-
* @param {string} code Action code
|
|
600
|
+
* Lists action executions (latest status per execution only) with optional filters
|
|
601
|
+
* @summary List actionExecutions
|
|
840
602
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
841
603
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
842
604
|
* @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.
|
|
843
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
605
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
844
606
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
845
|
-
* @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,
|
|
846
|
-
* @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/>
|
|
847
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
607
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
|
|
608
|
+
* @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/>
|
|
609
|
+
* @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
848
610
|
* @param {*} [options] Override http request option.
|
|
849
611
|
* @throws {RequiredError}
|
|
850
612
|
*/
|
|
851
|
-
|
|
852
|
-
return localVarFp.
|
|
613
|
+
listActionExecutions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionExecutionsResponseClass> {
|
|
614
|
+
return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
853
615
|
},
|
|
854
616
|
/**
|
|
855
|
-
* Lists all action configurations with optional filters
|
|
617
|
+
* Lists all action configurations with optional filters
|
|
856
618
|
* @summary List actions
|
|
857
619
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
858
620
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
859
621
|
* @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.
|
|
860
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
622
|
+
* @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>
|
|
861
623
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
862
|
-
* @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,
|
|
863
|
-
* @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/>
|
|
864
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
624
|
+
* @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>
|
|
625
|
+
* @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/>
|
|
626
|
+
* @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>
|
|
865
627
|
* @param {*} [options] Override http request option.
|
|
866
628
|
* @throws {RequiredError}
|
|
867
629
|
*/
|
|
@@ -869,24 +631,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
869
631
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
870
632
|
},
|
|
871
633
|
/**
|
|
872
|
-
*
|
|
873
|
-
* @summary List action versions
|
|
874
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
875
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
876
|
-
* @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.
|
|
877
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
|
|
878
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
879
|
-
* @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>
|
|
880
|
-
* @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>
|
|
881
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
|
|
882
|
-
* @param {*} [options] Override http request option.
|
|
883
|
-
* @throws {RequiredError}
|
|
884
|
-
*/
|
|
885
|
-
listAllActionVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionVersionsResponseClass> {
|
|
886
|
-
return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
887
|
-
},
|
|
888
|
-
/**
|
|
889
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
634
|
+
* Updates an existing action configuration (patch semantics)
|
|
890
635
|
* @summary Update the action
|
|
891
636
|
* @param {string} code Action code
|
|
892
637
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -897,18 +642,6 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
897
642
|
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
898
643
|
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
899
644
|
},
|
|
900
|
-
/**
|
|
901
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
902
|
-
* @summary Update the action
|
|
903
|
-
* @param {string} code Action code
|
|
904
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
905
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
906
|
-
* @param {*} [options] Override http request option.
|
|
907
|
-
* @throws {RequiredError}
|
|
908
|
-
*/
|
|
909
|
-
updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
910
|
-
return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
911
|
-
},
|
|
912
645
|
};
|
|
913
646
|
};
|
|
914
647
|
|
|
@@ -954,27 +687,6 @@ export interface ActionsApiDeleteActionRequest {
|
|
|
954
687
|
readonly authorization?: string
|
|
955
688
|
}
|
|
956
689
|
|
|
957
|
-
/**
|
|
958
|
-
* Request parameters for deleteActionVersion operation in ActionsApi.
|
|
959
|
-
* @export
|
|
960
|
-
* @interface ActionsApiDeleteActionVersionRequest
|
|
961
|
-
*/
|
|
962
|
-
export interface ActionsApiDeleteActionVersionRequest {
|
|
963
|
-
/**
|
|
964
|
-
* Version code (e.g. acv_<nanoid>)
|
|
965
|
-
* @type {string}
|
|
966
|
-
* @memberof ActionsApiDeleteActionVersion
|
|
967
|
-
*/
|
|
968
|
-
readonly versionCode: string
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
972
|
-
* @type {string}
|
|
973
|
-
* @memberof ActionsApiDeleteActionVersion
|
|
974
|
-
*/
|
|
975
|
-
readonly authorization?: string
|
|
976
|
-
}
|
|
977
|
-
|
|
978
690
|
/**
|
|
979
691
|
* Request parameters for getAction operation in ActionsApi.
|
|
980
692
|
* @export
|
|
@@ -994,109 +706,95 @@ export interface ActionsApiGetActionRequest {
|
|
|
994
706
|
* @memberof ActionsApiGetAction
|
|
995
707
|
*/
|
|
996
708
|
readonly authorization?: string
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Expand to fetch additional information (e.g. inputValidationSchema)
|
|
1000
|
-
* @type {string}
|
|
1001
|
-
* @memberof ActionsApiGetAction
|
|
1002
|
-
*/
|
|
1003
|
-
readonly expand?: string
|
|
1004
709
|
}
|
|
1005
710
|
|
|
1006
711
|
/**
|
|
1007
|
-
* Request parameters for
|
|
712
|
+
* Request parameters for getActionExecutionStatus operation in ActionsApi.
|
|
1008
713
|
* @export
|
|
1009
|
-
* @interface
|
|
714
|
+
* @interface ActionsApiGetActionExecutionStatusRequest
|
|
1010
715
|
*/
|
|
1011
|
-
export interface
|
|
716
|
+
export interface ActionsApiGetActionExecutionStatusRequest {
|
|
1012
717
|
/**
|
|
1013
|
-
*
|
|
718
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1014
719
|
* @type {string}
|
|
1015
|
-
* @memberof
|
|
720
|
+
* @memberof ActionsApiGetActionExecutionStatus
|
|
1016
721
|
*/
|
|
1017
|
-
readonly
|
|
722
|
+
readonly authorization?: string
|
|
1018
723
|
|
|
1019
724
|
/**
|
|
1020
|
-
*
|
|
725
|
+
* Action execution code
|
|
1021
726
|
* @type {string}
|
|
1022
|
-
* @memberof
|
|
727
|
+
* @memberof ActionsApiGetActionExecutionStatus
|
|
1023
728
|
*/
|
|
1024
|
-
readonly
|
|
729
|
+
readonly executionCode?: string
|
|
1025
730
|
|
|
1026
731
|
/**
|
|
1027
|
-
*
|
|
732
|
+
* Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
1028
733
|
* @type {string}
|
|
1029
|
-
* @memberof
|
|
734
|
+
* @memberof ActionsApiGetActionExecutionStatus
|
|
1030
735
|
*/
|
|
1031
|
-
readonly
|
|
736
|
+
readonly correlationId?: string
|
|
1032
737
|
}
|
|
1033
738
|
|
|
1034
739
|
/**
|
|
1035
|
-
* Request parameters for
|
|
740
|
+
* Request parameters for listActionExecutions operation in ActionsApi.
|
|
1036
741
|
* @export
|
|
1037
|
-
* @interface
|
|
742
|
+
* @interface ActionsApiListActionExecutionsRequest
|
|
1038
743
|
*/
|
|
1039
|
-
export interface
|
|
1040
|
-
/**
|
|
1041
|
-
* Action code
|
|
1042
|
-
* @type {string}
|
|
1043
|
-
* @memberof ActionsApiListActionVersions
|
|
1044
|
-
*/
|
|
1045
|
-
readonly code: string
|
|
1046
|
-
|
|
744
|
+
export interface ActionsApiListActionExecutionsRequest {
|
|
1047
745
|
/**
|
|
1048
746
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1049
747
|
* @type {string}
|
|
1050
|
-
* @memberof
|
|
748
|
+
* @memberof ActionsApiListActionExecutions
|
|
1051
749
|
*/
|
|
1052
750
|
readonly authorization?: string
|
|
1053
751
|
|
|
1054
752
|
/**
|
|
1055
753
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1056
754
|
* @type {number}
|
|
1057
|
-
* @memberof
|
|
755
|
+
* @memberof ActionsApiListActionExecutions
|
|
1058
756
|
*/
|
|
1059
757
|
readonly pageSize?: number
|
|
1060
758
|
|
|
1061
759
|
/**
|
|
1062
760
|
* 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.
|
|
1063
761
|
* @type {string}
|
|
1064
|
-
* @memberof
|
|
762
|
+
* @memberof ActionsApiListActionExecutions
|
|
1065
763
|
*/
|
|
1066
764
|
readonly pageToken?: string
|
|
1067
765
|
|
|
1068
766
|
/**
|
|
1069
|
-
* Filter the response by one or multiple fields.
|
|
767
|
+
* 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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1070
768
|
* @type {string}
|
|
1071
|
-
* @memberof
|
|
769
|
+
* @memberof ActionsApiListActionExecutions
|
|
1072
770
|
*/
|
|
1073
771
|
readonly filter?: string
|
|
1074
772
|
|
|
1075
773
|
/**
|
|
1076
774
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1077
775
|
* @type {string}
|
|
1078
|
-
* @memberof
|
|
776
|
+
* @memberof ActionsApiListActionExecutions
|
|
1079
777
|
*/
|
|
1080
778
|
readonly search?: string
|
|
1081
779
|
|
|
1082
780
|
/**
|
|
1083
|
-
* 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,
|
|
781
|
+
* 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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt</i>
|
|
1084
782
|
* @type {string}
|
|
1085
|
-
* @memberof
|
|
783
|
+
* @memberof ActionsApiListActionExecutions
|
|
1086
784
|
*/
|
|
1087
785
|
readonly order?: string
|
|
1088
786
|
|
|
1089
787
|
/**
|
|
1090
|
-
* 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/>
|
|
788
|
+
* 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/>
|
|
1091
789
|
* @type {string}
|
|
1092
|
-
* @memberof
|
|
790
|
+
* @memberof ActionsApiListActionExecutions
|
|
1093
791
|
*/
|
|
1094
792
|
readonly expand?: string
|
|
1095
793
|
|
|
1096
794
|
/**
|
|
1097
|
-
* Filters the response by one or multiple fields.
|
|
795
|
+
* 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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1098
796
|
* @type {string}
|
|
1099
|
-
* @memberof
|
|
797
|
+
* @memberof ActionsApiListActionExecutions
|
|
1100
798
|
*/
|
|
1101
799
|
readonly filters?: string
|
|
1102
800
|
}
|
|
@@ -1129,7 +827,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
1129
827
|
readonly pageToken?: string
|
|
1130
828
|
|
|
1131
829
|
/**
|
|
1132
|
-
* Filter the response by one or multiple fields.
|
|
830
|
+
* 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>
|
|
1133
831
|
* @type {string}
|
|
1134
832
|
* @memberof ActionsApiListActions
|
|
1135
833
|
*/
|
|
@@ -1143,90 +841,27 @@ export interface ActionsApiListActionsRequest {
|
|
|
1143
841
|
readonly search?: string
|
|
1144
842
|
|
|
1145
843
|
/**
|
|
1146
|
-
* 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,
|
|
844
|
+
* 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>
|
|
1147
845
|
* @type {string}
|
|
1148
846
|
* @memberof ActionsApiListActions
|
|
1149
847
|
*/
|
|
1150
848
|
readonly order?: string
|
|
1151
849
|
|
|
1152
850
|
/**
|
|
1153
|
-
* 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/>
|
|
851
|
+
* 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/>
|
|
1154
852
|
* @type {string}
|
|
1155
853
|
* @memberof ActionsApiListActions
|
|
1156
854
|
*/
|
|
1157
855
|
readonly expand?: string
|
|
1158
856
|
|
|
1159
857
|
/**
|
|
1160
|
-
* Filters the response by one or multiple fields.
|
|
858
|
+
* 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>
|
|
1161
859
|
* @type {string}
|
|
1162
860
|
* @memberof ActionsApiListActions
|
|
1163
861
|
*/
|
|
1164
862
|
readonly filters?: string
|
|
1165
863
|
}
|
|
1166
864
|
|
|
1167
|
-
/**
|
|
1168
|
-
* Request parameters for listAllActionVersions operation in ActionsApi.
|
|
1169
|
-
* @export
|
|
1170
|
-
* @interface ActionsApiListAllActionVersionsRequest
|
|
1171
|
-
*/
|
|
1172
|
-
export interface ActionsApiListAllActionVersionsRequest {
|
|
1173
|
-
/**
|
|
1174
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1175
|
-
* @type {string}
|
|
1176
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1177
|
-
*/
|
|
1178
|
-
readonly authorization?: string
|
|
1179
|
-
|
|
1180
|
-
/**
|
|
1181
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1182
|
-
* @type {number}
|
|
1183
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1184
|
-
*/
|
|
1185
|
-
readonly pageSize?: number
|
|
1186
|
-
|
|
1187
|
-
/**
|
|
1188
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1189
|
-
* @type {string}
|
|
1190
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1191
|
-
*/
|
|
1192
|
-
readonly pageToken?: string
|
|
1193
|
-
|
|
1194
|
-
/**
|
|
1195
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
|
|
1196
|
-
* @type {string}
|
|
1197
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1198
|
-
*/
|
|
1199
|
-
readonly filter?: string
|
|
1200
|
-
|
|
1201
|
-
/**
|
|
1202
|
-
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1203
|
-
* @type {string}
|
|
1204
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1205
|
-
*/
|
|
1206
|
-
readonly search?: string
|
|
1207
|
-
|
|
1208
|
-
/**
|
|
1209
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy, owner</i>
|
|
1210
|
-
* @type {string}
|
|
1211
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1212
|
-
*/
|
|
1213
|
-
readonly order?: string
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
|
|
1217
|
-
* @type {string}
|
|
1218
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1219
|
-
*/
|
|
1220
|
-
readonly expand?: string
|
|
1221
|
-
|
|
1222
|
-
/**
|
|
1223
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, actionConfigId, code, versionNumber, isActive, isAvailableInUi, workflowCode, workflowSlug, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy, name, slug</i>
|
|
1224
|
-
* @type {string}
|
|
1225
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1226
|
-
*/
|
|
1227
|
-
readonly filters?: string
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
865
|
/**
|
|
1231
866
|
* Request parameters for updateAction operation in ActionsApi.
|
|
1232
867
|
* @export
|
|
@@ -1255,34 +890,6 @@ export interface ActionsApiUpdateActionRequest {
|
|
|
1255
890
|
readonly authorization?: string
|
|
1256
891
|
}
|
|
1257
892
|
|
|
1258
|
-
/**
|
|
1259
|
-
* Request parameters for updateAction_1 operation in ActionsApi.
|
|
1260
|
-
* @export
|
|
1261
|
-
* @interface ActionsApiUpdateAction0Request
|
|
1262
|
-
*/
|
|
1263
|
-
export interface ActionsApiUpdateAction0Request {
|
|
1264
|
-
/**
|
|
1265
|
-
* Action code
|
|
1266
|
-
* @type {string}
|
|
1267
|
-
* @memberof ActionsApiUpdateAction0
|
|
1268
|
-
*/
|
|
1269
|
-
readonly code: string
|
|
1270
|
-
|
|
1271
|
-
/**
|
|
1272
|
-
*
|
|
1273
|
-
* @type {UpdateActionRequestDto}
|
|
1274
|
-
* @memberof ActionsApiUpdateAction0
|
|
1275
|
-
*/
|
|
1276
|
-
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
1277
|
-
|
|
1278
|
-
/**
|
|
1279
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1280
|
-
* @type {string}
|
|
1281
|
-
* @memberof ActionsApiUpdateAction0
|
|
1282
|
-
*/
|
|
1283
|
-
readonly authorization?: string
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
893
|
/**
|
|
1287
894
|
* ActionsApi - object-oriented interface
|
|
1288
895
|
* @export
|
|
@@ -1291,7 +898,7 @@ export interface ActionsApiUpdateAction0Request {
|
|
|
1291
898
|
*/
|
|
1292
899
|
export class ActionsApi extends BaseAPI {
|
|
1293
900
|
/**
|
|
1294
|
-
* Creates a new action configuration
|
|
901
|
+
* Creates a new action configuration
|
|
1295
902
|
* @summary Create the action
|
|
1296
903
|
* @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
|
|
1297
904
|
* @param {*} [options] Override http request option.
|
|
@@ -1303,7 +910,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1303
910
|
}
|
|
1304
911
|
|
|
1305
912
|
/**
|
|
1306
|
-
* Deletes an action configuration by its code
|
|
913
|
+
* Deletes an action configuration by its code
|
|
1307
914
|
* @summary Delete the action
|
|
1308
915
|
* @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
|
|
1309
916
|
* @param {*} [options] Override http request option.
|
|
@@ -1315,19 +922,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1315
922
|
}
|
|
1316
923
|
|
|
1317
924
|
/**
|
|
1318
|
-
*
|
|
1319
|
-
* @summary Delete the action version
|
|
1320
|
-
* @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
|
|
1321
|
-
* @param {*} [options] Override http request option.
|
|
1322
|
-
* @throws {RequiredError}
|
|
1323
|
-
* @memberof ActionsApi
|
|
1324
|
-
*/
|
|
1325
|
-
public deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1326
|
-
return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
/**
|
|
1330
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
925
|
+
* Retrieves an action configuration by its code
|
|
1331
926
|
* @summary Retrieve the action
|
|
1332
927
|
* @param {ActionsApiGetActionRequest} requestParameters Request parameters.
|
|
1333
928
|
* @param {*} [options] Override http request option.
|
|
@@ -1335,35 +930,35 @@ export class ActionsApi extends BaseAPI {
|
|
|
1335
930
|
* @memberof ActionsApi
|
|
1336
931
|
*/
|
|
1337
932
|
public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
|
|
1338
|
-
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization,
|
|
933
|
+
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1339
934
|
}
|
|
1340
935
|
|
|
1341
936
|
/**
|
|
1342
|
-
*
|
|
1343
|
-
* @summary Retrieve the
|
|
1344
|
-
* @param {
|
|
937
|
+
* Retrieves the latest action execution status by executionCode or correlationId
|
|
938
|
+
* @summary Retrieve the actionExecution
|
|
939
|
+
* @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
|
|
1345
940
|
* @param {*} [options] Override http request option.
|
|
1346
941
|
* @throws {RequiredError}
|
|
1347
942
|
* @memberof ActionsApi
|
|
1348
943
|
*/
|
|
1349
|
-
public
|
|
1350
|
-
return ActionsApiFp(this.configuration).
|
|
944
|
+
public getActionExecutionStatus(requestParameters: ActionsApiGetActionExecutionStatusRequest = {}, options?: AxiosRequestConfig) {
|
|
945
|
+
return ActionsApiFp(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then((request) => request(this.axios, this.basePath));
|
|
1351
946
|
}
|
|
1352
947
|
|
|
1353
948
|
/**
|
|
1354
|
-
* Lists
|
|
1355
|
-
* @summary List
|
|
1356
|
-
* @param {
|
|
949
|
+
* Lists action executions (latest status per execution only) with optional filters
|
|
950
|
+
* @summary List actionExecutions
|
|
951
|
+
* @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
|
|
1357
952
|
* @param {*} [options] Override http request option.
|
|
1358
953
|
* @throws {RequiredError}
|
|
1359
954
|
* @memberof ActionsApi
|
|
1360
955
|
*/
|
|
1361
|
-
public
|
|
1362
|
-
return ActionsApiFp(this.configuration).
|
|
956
|
+
public listActionExecutions(requestParameters: ActionsApiListActionExecutionsRequest = {}, options?: AxiosRequestConfig) {
|
|
957
|
+
return ActionsApiFp(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1363
958
|
}
|
|
1364
959
|
|
|
1365
960
|
/**
|
|
1366
|
-
* Lists all action configurations with optional filters
|
|
961
|
+
* Lists all action configurations with optional filters
|
|
1367
962
|
* @summary List actions
|
|
1368
963
|
* @param {ActionsApiListActionsRequest} requestParameters Request parameters.
|
|
1369
964
|
* @param {*} [options] Override http request option.
|
|
@@ -1375,19 +970,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1375
970
|
}
|
|
1376
971
|
|
|
1377
972
|
/**
|
|
1378
|
-
*
|
|
1379
|
-
* @summary List action versions
|
|
1380
|
-
* @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
|
|
1381
|
-
* @param {*} [options] Override http request option.
|
|
1382
|
-
* @throws {RequiredError}
|
|
1383
|
-
* @memberof ActionsApi
|
|
1384
|
-
*/
|
|
1385
|
-
public listAllActionVersions(requestParameters: ActionsApiListAllActionVersionsRequest = {}, options?: AxiosRequestConfig) {
|
|
1386
|
-
return ActionsApiFp(this.configuration).listAllActionVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
973
|
+
* Updates an existing action configuration (patch semantics)
|
|
1391
974
|
* @summary Update the action
|
|
1392
975
|
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
1393
976
|
* @param {*} [options] Override http request option.
|
|
@@ -1397,16 +980,4 @@ export class ActionsApi extends BaseAPI {
|
|
|
1397
980
|
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
1398
981
|
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1399
982
|
}
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1403
|
-
* @summary Update the action
|
|
1404
|
-
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1405
|
-
* @param {*} [options] Override http request option.
|
|
1406
|
-
* @throws {RequiredError}
|
|
1407
|
-
* @memberof ActionsApi
|
|
1408
|
-
*/
|
|
1409
|
-
public updateAction_1(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
|
|
1410
|
-
return ActionsApiFp(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1411
|
-
}
|
|
1412
983
|
}
|