@emilgroup/action-sdk 1.1.1-beta.24 → 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 -10
- package/README.md +2 -2
- package/api/actions-api.ts +125 -811
- package/api.ts +0 -2
- package/dist/api/actions-api.d.ts +110 -496
- package/dist/api/actions-api.js +96 -633
- 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 -9
- package/dist/models/index.js +0 -9
- 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 -9
- 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/export-actions-as-yaml-response-class.d.ts +0 -24
- package/dist/models/export-actions-as-yaml-response-class.js +0 -15
- 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/import-actions-from-yaml-request-dto.d.ts +0 -36
- package/dist/models/import-actions-from-yaml-request-dto.js +0 -15
- package/dist/models/import-actions-from-yaml-response-class.d.ts +0 -37
- package/dist/models/import-actions-from-yaml-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/export-actions-as-yaml-response-class.ts +0 -30
- package/models/get-action-version-response-class.ts +0 -31
- package/models/import-actions-from-yaml-request-dto.ts +0 -42
- package/models/import-actions-from-yaml-response-class.ts +0 -43
- 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,17 +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
30
|
import { GetActionResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { ImportActionsFromYamlRequestDto } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { ImportActionsFromYamlResponseClass } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
import { ListActionVersionsResponseClass } from '../models';
|
|
32
|
+
import { ListActionExecutionsResponseClass } from '../models';
|
|
39
33
|
// @ts-ignore
|
|
40
34
|
import { ListActionsResponseClass } from '../models';
|
|
41
35
|
// @ts-ignore
|
|
@@ -49,7 +43,7 @@ import { UpdateActionResponseClass } from '../models';
|
|
|
49
43
|
export const ActionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
50
44
|
return {
|
|
51
45
|
/**
|
|
52
|
-
* Creates a new action configuration
|
|
46
|
+
* Creates a new action configuration
|
|
53
47
|
* @summary Create the action
|
|
54
48
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
55
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -96,7 +90,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
96
90
|
};
|
|
97
91
|
},
|
|
98
92
|
/**
|
|
99
|
-
* Deletes an action configuration by its code
|
|
93
|
+
* Deletes an action configuration by its code
|
|
100
94
|
* @summary Delete the action
|
|
101
95
|
* @param {string} code Action code
|
|
102
96
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -141,125 +135,14 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
141
135
|
};
|
|
142
136
|
},
|
|
143
137
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @summary Delete the action version
|
|
146
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
147
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
-
* @param {*} [options] Override http request option.
|
|
149
|
-
* @throws {RequiredError}
|
|
150
|
-
*/
|
|
151
|
-
deleteActionVersion: async (versionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
152
|
-
// verify required parameter 'versionCode' is not null or undefined
|
|
153
|
-
assertParamExists('deleteActionVersion', 'versionCode', versionCode)
|
|
154
|
-
const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
|
|
155
|
-
.replace(`{${"versionCode"}}`, encodeURIComponent(String(versionCode)));
|
|
156
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
158
|
-
let baseOptions;
|
|
159
|
-
let baseAccessToken;
|
|
160
|
-
if (configuration) {
|
|
161
|
-
baseOptions = configuration.baseOptions;
|
|
162
|
-
baseAccessToken = configuration.accessToken;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
166
|
-
const localVarHeaderParameter = {} as any;
|
|
167
|
-
const localVarQueryParameter = {} as any;
|
|
168
|
-
|
|
169
|
-
// authentication bearer required
|
|
170
|
-
// http bearer authentication required
|
|
171
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
172
|
-
|
|
173
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
174
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
180
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
182
|
-
|
|
183
|
-
return {
|
|
184
|
-
url: toPathString(localVarUrlObj),
|
|
185
|
-
options: localVarRequestOptions,
|
|
186
|
-
};
|
|
187
|
-
},
|
|
188
|
-
/**
|
|
189
|
-
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
190
|
-
* @summary Retrieve the entity-actions-yaml
|
|
191
|
-
* @param {string} productSlug Product slug
|
|
192
|
-
* @param {number} productVersionId Product version ID
|
|
193
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
194
|
-
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
195
|
-
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
196
|
-
* @param {*} [options] Override http request option.
|
|
197
|
-
* @throws {RequiredError}
|
|
198
|
-
*/
|
|
199
|
-
exportActionsAsYaml: async (productSlug: string, productVersionId: number, authorization?: string, actionSlugs?: Array<string>, includeDisabled?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
201
|
-
assertParamExists('exportActionsAsYaml', 'productSlug', productSlug)
|
|
202
|
-
// verify required parameter 'productVersionId' is not null or undefined
|
|
203
|
-
assertParamExists('exportActionsAsYaml', 'productVersionId', productVersionId)
|
|
204
|
-
const localVarPath = `/actionservice/v1/actions/entity-actions-yaml`;
|
|
205
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
207
|
-
let baseOptions;
|
|
208
|
-
let baseAccessToken;
|
|
209
|
-
if (configuration) {
|
|
210
|
-
baseOptions = configuration.baseOptions;
|
|
211
|
-
baseAccessToken = configuration.accessToken;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
215
|
-
const localVarHeaderParameter = {} as any;
|
|
216
|
-
const localVarQueryParameter = {} as any;
|
|
217
|
-
|
|
218
|
-
// authentication bearer required
|
|
219
|
-
// http bearer authentication required
|
|
220
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
221
|
-
|
|
222
|
-
if (productSlug !== undefined) {
|
|
223
|
-
localVarQueryParameter['productSlug'] = productSlug;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
if (productVersionId !== undefined) {
|
|
227
|
-
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
if (actionSlugs) {
|
|
231
|
-
localVarQueryParameter['actionSlugs'] = actionSlugs;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
if (includeDisabled !== undefined) {
|
|
235
|
-
localVarQueryParameter['includeDisabled'] = includeDisabled;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
239
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
245
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
246
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
247
|
-
|
|
248
|
-
return {
|
|
249
|
-
url: toPathString(localVarUrlObj),
|
|
250
|
-
options: localVarRequestOptions,
|
|
251
|
-
};
|
|
252
|
-
},
|
|
253
|
-
/**
|
|
254
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
138
|
+
* Retrieves an action configuration by its code
|
|
255
139
|
* @summary Retrieve the action
|
|
256
140
|
* @param {string} code Action code
|
|
257
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
258
|
-
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
259
142
|
* @param {*} [options] Override http request option.
|
|
260
143
|
* @throws {RequiredError}
|
|
261
144
|
*/
|
|
262
|
-
getAction: async (code: string, authorization?: string,
|
|
145
|
+
getAction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
146
|
// verify required parameter 'code' is not null or undefined
|
|
264
147
|
assertParamExists('getAction', 'code', code)
|
|
265
148
|
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
@@ -281,10 +164,6 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
281
164
|
// http bearer authentication required
|
|
282
165
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
283
166
|
|
|
284
|
-
if (expand !== undefined) {
|
|
285
|
-
localVarQueryParameter['expand'] = expand;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
167
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
289
168
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
290
169
|
}
|
|
@@ -301,19 +180,16 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
301
180
|
};
|
|
302
181
|
},
|
|
303
182
|
/**
|
|
304
|
-
*
|
|
305
|
-
* @summary Retrieve the
|
|
306
|
-
* @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
|
|
307
185
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
308
|
-
* @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)
|
|
309
188
|
* @param {*} [options] Override http request option.
|
|
310
189
|
* @throws {RequiredError}
|
|
311
190
|
*/
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
assertParamExists('getActionVersion', 'versionCode', versionCode)
|
|
315
|
-
const localVarPath = `/actionservice/v1/actions/versions/{versionCode}`
|
|
316
|
-
.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`;
|
|
317
193
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
194
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
319
195
|
let baseOptions;
|
|
@@ -331,66 +207,23 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
331
207
|
// http bearer authentication required
|
|
332
208
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
333
209
|
|
|
334
|
-
if (
|
|
335
|
-
localVarQueryParameter['
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
339
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
210
|
+
if (executionCode !== undefined) {
|
|
211
|
+
localVarQueryParameter['executionCode'] = executionCode;
|
|
340
212
|
}
|
|
341
213
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
345
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
346
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
347
|
-
|
|
348
|
-
return {
|
|
349
|
-
url: toPathString(localVarUrlObj),
|
|
350
|
-
options: localVarRequestOptions,
|
|
351
|
-
};
|
|
352
|
-
},
|
|
353
|
-
/**
|
|
354
|
-
* Imports entity actions from YAML for a product version. Validates YAML structure and workflow existence; creates or updates actions (never deletes). **Required Permissions** \"action-management.actions.create\"
|
|
355
|
-
* @summary Update the entity-actions-yaml
|
|
356
|
-
* @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
|
|
357
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
358
|
-
* @param {*} [options] Override http request option.
|
|
359
|
-
* @throws {RequiredError}
|
|
360
|
-
*/
|
|
361
|
-
importActionsFromYaml: async (importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
362
|
-
// verify required parameter 'importActionsFromYamlRequestDto' is not null or undefined
|
|
363
|
-
assertParamExists('importActionsFromYaml', 'importActionsFromYamlRequestDto', importActionsFromYamlRequestDto)
|
|
364
|
-
const localVarPath = `/actionservice/v1/actions/entity-actions-yaml`;
|
|
365
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
366
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
367
|
-
let baseOptions;
|
|
368
|
-
let baseAccessToken;
|
|
369
|
-
if (configuration) {
|
|
370
|
-
baseOptions = configuration.baseOptions;
|
|
371
|
-
baseAccessToken = configuration.accessToken;
|
|
214
|
+
if (correlationId !== undefined) {
|
|
215
|
+
localVarQueryParameter['correlationId'] = correlationId;
|
|
372
216
|
}
|
|
373
217
|
|
|
374
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
375
|
-
const localVarHeaderParameter = {} as any;
|
|
376
|
-
const localVarQueryParameter = {} as any;
|
|
377
|
-
|
|
378
|
-
// authentication bearer required
|
|
379
|
-
// http bearer authentication required
|
|
380
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
381
|
-
|
|
382
218
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
383
219
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
384
220
|
}
|
|
385
221
|
|
|
386
222
|
|
|
387
223
|
|
|
388
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
389
|
-
|
|
390
224
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
391
225
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
392
226
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
393
|
-
localVarRequestOptions.data = serializeDataIfNeeded(importActionsFromYamlRequestDto, localVarRequestOptions, configuration)
|
|
394
227
|
|
|
395
228
|
return {
|
|
396
229
|
url: toPathString(localVarUrlObj),
|
|
@@ -398,25 +231,21 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
398
231
|
};
|
|
399
232
|
},
|
|
400
233
|
/**
|
|
401
|
-
* Lists
|
|
402
|
-
* @summary List
|
|
403
|
-
* @param {string} code Action code
|
|
234
|
+
* Lists action executions (latest status per execution only) with optional filters
|
|
235
|
+
* @summary List actionExecutions
|
|
404
236
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
405
237
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
406
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.
|
|
407
|
-
* @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>
|
|
408
240
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
409
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id,
|
|
410
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
411
|
-
* @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>
|
|
412
244
|
* @param {*} [options] Override http request option.
|
|
413
245
|
* @throws {RequiredError}
|
|
414
246
|
*/
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
assertParamExists('listActionVersions', 'code', code)
|
|
418
|
-
const localVarPath = `/actionservice/v1/actions/{code}/versions`
|
|
419
|
-
.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`;
|
|
420
249
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
421
250
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
422
251
|
let baseOptions;
|
|
@@ -478,16 +307,16 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
478
307
|
};
|
|
479
308
|
},
|
|
480
309
|
/**
|
|
481
|
-
* Lists all action configurations with optional filters
|
|
310
|
+
* Lists all action configurations with optional filters
|
|
482
311
|
* @summary List actions
|
|
483
312
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
484
313
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
485
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.
|
|
486
|
-
* @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>
|
|
487
316
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
488
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code,
|
|
489
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
490
|
-
* @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>
|
|
491
320
|
* @param {*} [options] Override http request option.
|
|
492
321
|
* @throws {RequiredError}
|
|
493
322
|
*/
|
|
@@ -554,83 +383,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
554
383
|
};
|
|
555
384
|
},
|
|
556
385
|
/**
|
|
557
|
-
*
|
|
558
|
-
* @summary List action versions
|
|
559
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
560
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
561
|
-
* @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.
|
|
562
|
-
* @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>
|
|
563
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
564
|
-
* @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>
|
|
565
|
-
* @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>
|
|
566
|
-
* @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>
|
|
567
|
-
* @param {*} [options] Override http request option.
|
|
568
|
-
* @throws {RequiredError}
|
|
569
|
-
*/
|
|
570
|
-
listAllActionVersions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
571
|
-
const localVarPath = `/actionservice/v1/actions/versions`;
|
|
572
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
573
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
574
|
-
let baseOptions;
|
|
575
|
-
let baseAccessToken;
|
|
576
|
-
if (configuration) {
|
|
577
|
-
baseOptions = configuration.baseOptions;
|
|
578
|
-
baseAccessToken = configuration.accessToken;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
582
|
-
const localVarHeaderParameter = {} as any;
|
|
583
|
-
const localVarQueryParameter = {} as any;
|
|
584
|
-
|
|
585
|
-
// authentication bearer required
|
|
586
|
-
// http bearer authentication required
|
|
587
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
588
|
-
|
|
589
|
-
if (pageSize !== undefined) {
|
|
590
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
if (pageToken !== undefined) {
|
|
594
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
if (filter !== undefined) {
|
|
598
|
-
localVarQueryParameter['filter'] = filter;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
if (search !== undefined) {
|
|
602
|
-
localVarQueryParameter['search'] = search;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
if (order !== undefined) {
|
|
606
|
-
localVarQueryParameter['order'] = order;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
if (expand !== undefined) {
|
|
610
|
-
localVarQueryParameter['expand'] = expand;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
if (filters !== undefined) {
|
|
614
|
-
localVarQueryParameter['filters'] = filters;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
618
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
624
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
625
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
626
|
-
|
|
627
|
-
return {
|
|
628
|
-
url: toPathString(localVarUrlObj),
|
|
629
|
-
options: localVarRequestOptions,
|
|
630
|
-
};
|
|
631
|
-
},
|
|
632
|
-
/**
|
|
633
|
-
* 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)
|
|
634
387
|
* @summary Update the action
|
|
635
388
|
* @param {string} code Action code
|
|
636
389
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -668,57 +421,6 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
668
421
|
|
|
669
422
|
|
|
670
423
|
|
|
671
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
672
|
-
|
|
673
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
674
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
676
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
|
|
677
|
-
|
|
678
|
-
return {
|
|
679
|
-
url: toPathString(localVarUrlObj),
|
|
680
|
-
options: localVarRequestOptions,
|
|
681
|
-
};
|
|
682
|
-
},
|
|
683
|
-
/**
|
|
684
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
685
|
-
* @summary Update the action
|
|
686
|
-
* @param {string} code Action code
|
|
687
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
688
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
689
|
-
* @param {*} [options] Override http request option.
|
|
690
|
-
* @throws {RequiredError}
|
|
691
|
-
*/
|
|
692
|
-
updateAction_1: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
693
|
-
// verify required parameter 'code' is not null or undefined
|
|
694
|
-
assertParamExists('updateAction_1', 'code', code)
|
|
695
|
-
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
696
|
-
assertParamExists('updateAction_1', 'updateActionRequestDto', updateActionRequestDto)
|
|
697
|
-
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
698
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
699
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
700
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
701
|
-
let baseOptions;
|
|
702
|
-
let baseAccessToken;
|
|
703
|
-
if (configuration) {
|
|
704
|
-
baseOptions = configuration.baseOptions;
|
|
705
|
-
baseAccessToken = configuration.accessToken;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
709
|
-
const localVarHeaderParameter = {} as any;
|
|
710
|
-
const localVarQueryParameter = {} as any;
|
|
711
|
-
|
|
712
|
-
// authentication bearer required
|
|
713
|
-
// http bearer authentication required
|
|
714
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
715
|
-
|
|
716
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
717
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
424
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
723
425
|
|
|
724
426
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -742,7 +444,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
742
444
|
const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration)
|
|
743
445
|
return {
|
|
744
446
|
/**
|
|
745
|
-
* Creates a new action configuration
|
|
447
|
+
* Creates a new action configuration
|
|
746
448
|
* @summary Create the action
|
|
747
449
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
748
450
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -754,7 +456,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
754
456
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
755
457
|
},
|
|
756
458
|
/**
|
|
757
|
-
* Deletes an action configuration by its code
|
|
459
|
+
* Deletes an action configuration by its code
|
|
758
460
|
* @summary Delete the action
|
|
759
461
|
* @param {string} code Action code
|
|
760
462
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -766,100 +468,59 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
766
468
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
767
469
|
},
|
|
768
470
|
/**
|
|
769
|
-
*
|
|
770
|
-
* @summary Delete the action version
|
|
771
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
772
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
773
|
-
* @param {*} [options] Override http request option.
|
|
774
|
-
* @throws {RequiredError}
|
|
775
|
-
*/
|
|
776
|
-
async deleteActionVersion(versionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
777
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActionVersion(versionCode, authorization, options);
|
|
778
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
779
|
-
},
|
|
780
|
-
/**
|
|
781
|
-
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
782
|
-
* @summary Retrieve the entity-actions-yaml
|
|
783
|
-
* @param {string} productSlug Product slug
|
|
784
|
-
* @param {number} productVersionId Product version ID
|
|
785
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
786
|
-
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
787
|
-
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
788
|
-
* @param {*} [options] Override http request option.
|
|
789
|
-
* @throws {RequiredError}
|
|
790
|
-
*/
|
|
791
|
-
async exportActionsAsYaml(productSlug: string, productVersionId: number, authorization?: string, actionSlugs?: Array<string>, includeDisabled?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportActionsAsYamlResponseClass>> {
|
|
792
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options);
|
|
793
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
794
|
-
},
|
|
795
|
-
/**
|
|
796
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
471
|
+
* Retrieves an action configuration by its code
|
|
797
472
|
* @summary Retrieve the action
|
|
798
473
|
* @param {string} code Action code
|
|
799
474
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
800
|
-
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
801
475
|
* @param {*} [options] Override http request option.
|
|
802
476
|
* @throws {RequiredError}
|
|
803
477
|
*/
|
|
804
|
-
async getAction(code: string, authorization?: string,
|
|
805
|
-
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);
|
|
806
480
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
807
481
|
},
|
|
808
482
|
/**
|
|
809
|
-
*
|
|
810
|
-
* @summary Retrieve the
|
|
811
|
-
* @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
|
|
812
485
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
813
|
-
* @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)
|
|
814
488
|
* @param {*} [options] Override http request option.
|
|
815
489
|
* @throws {RequiredError}
|
|
816
490
|
*/
|
|
817
|
-
async
|
|
818
|
-
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);
|
|
819
493
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
820
494
|
},
|
|
821
495
|
/**
|
|
822
|
-
*
|
|
823
|
-
* @summary
|
|
824
|
-
* @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
|
|
825
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
826
|
-
* @param {*} [options] Override http request option.
|
|
827
|
-
* @throws {RequiredError}
|
|
828
|
-
*/
|
|
829
|
-
async importActionsFromYaml(importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportActionsFromYamlResponseClass>> {
|
|
830
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options);
|
|
831
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
832
|
-
},
|
|
833
|
-
/**
|
|
834
|
-
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
835
|
-
* @summary List action versions
|
|
836
|
-
* @param {string} code Action code
|
|
496
|
+
* Lists action executions (latest status per execution only) with optional filters
|
|
497
|
+
* @summary List actionExecutions
|
|
837
498
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
838
499
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
839
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.
|
|
840
|
-
* @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>
|
|
841
502
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
842
|
-
* @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,
|
|
843
|
-
* @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/>
|
|
844
|
-
* @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>
|
|
845
506
|
* @param {*} [options] Override http request option.
|
|
846
507
|
* @throws {RequiredError}
|
|
847
508
|
*/
|
|
848
|
-
async
|
|
849
|
-
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);
|
|
850
511
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
851
512
|
},
|
|
852
513
|
/**
|
|
853
|
-
* Lists all action configurations with optional filters
|
|
514
|
+
* Lists all action configurations with optional filters
|
|
854
515
|
* @summary List actions
|
|
855
516
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
856
517
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
857
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.
|
|
858
|
-
* @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>
|
|
859
520
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
860
|
-
* @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,
|
|
861
|
-
* @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/>
|
|
862
|
-
* @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>
|
|
863
524
|
* @param {*} [options] Override http request option.
|
|
864
525
|
* @throws {RequiredError}
|
|
865
526
|
*/
|
|
@@ -868,25 +529,7 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
868
529
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
869
530
|
},
|
|
870
531
|
/**
|
|
871
|
-
*
|
|
872
|
-
* @summary List action versions
|
|
873
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
874
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
875
|
-
* @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.
|
|
876
|
-
* @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>
|
|
877
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
878
|
-
* @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>
|
|
879
|
-
* @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>
|
|
880
|
-
* @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>
|
|
881
|
-
* @param {*} [options] Override http request option.
|
|
882
|
-
* @throws {RequiredError}
|
|
883
|
-
*/
|
|
884
|
-
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>> {
|
|
885
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
886
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
887
|
-
},
|
|
888
|
-
/**
|
|
889
|
-
* 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)
|
|
890
533
|
* @summary Update the action
|
|
891
534
|
* @param {string} code Action code
|
|
892
535
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -898,19 +541,6 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
898
541
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
|
|
899
542
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
900
543
|
},
|
|
901
|
-
/**
|
|
902
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
903
|
-
* @summary Update the action
|
|
904
|
-
* @param {string} code Action code
|
|
905
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
906
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
907
|
-
* @param {*} [options] Override http request option.
|
|
908
|
-
* @throws {RequiredError}
|
|
909
|
-
*/
|
|
910
|
-
async updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
911
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_1(code, updateActionRequestDto, authorization, options);
|
|
912
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
913
|
-
},
|
|
914
544
|
}
|
|
915
545
|
};
|
|
916
546
|
|
|
@@ -922,7 +552,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
922
552
|
const localVarFp = ActionsApiFp(configuration)
|
|
923
553
|
return {
|
|
924
554
|
/**
|
|
925
|
-
* Creates a new action configuration
|
|
555
|
+
* Creates a new action configuration
|
|
926
556
|
* @summary Create the action
|
|
927
557
|
* @param {CreateActionRequestDto} createActionRequestDto
|
|
928
558
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -933,7 +563,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
933
563
|
return localVarFp.createAction(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
934
564
|
},
|
|
935
565
|
/**
|
|
936
|
-
* Deletes an action configuration by its code
|
|
566
|
+
* Deletes an action configuration by its code
|
|
937
567
|
* @summary Delete the action
|
|
938
568
|
* @param {string} code Action code
|
|
939
569
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -944,94 +574,56 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
944
574
|
return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
945
575
|
},
|
|
946
576
|
/**
|
|
947
|
-
*
|
|
948
|
-
* @summary Delete the action version
|
|
949
|
-
* @param {string} versionCode Version code (e.g. acv_<nanoid>)
|
|
950
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
951
|
-
* @param {*} [options] Override http request option.
|
|
952
|
-
* @throws {RequiredError}
|
|
953
|
-
*/
|
|
954
|
-
deleteActionVersion(versionCode: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
955
|
-
return localVarFp.deleteActionVersion(versionCode, authorization, options).then((request) => request(axios, basePath));
|
|
956
|
-
},
|
|
957
|
-
/**
|
|
958
|
-
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
959
|
-
* @summary Retrieve the entity-actions-yaml
|
|
960
|
-
* @param {string} productSlug Product slug
|
|
961
|
-
* @param {number} productVersionId Product version ID
|
|
962
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
963
|
-
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
964
|
-
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
965
|
-
* @param {*} [options] Override http request option.
|
|
966
|
-
* @throws {RequiredError}
|
|
967
|
-
*/
|
|
968
|
-
exportActionsAsYaml(productSlug: string, productVersionId: number, authorization?: string, actionSlugs?: Array<string>, includeDisabled?: boolean, options?: any): AxiosPromise<ExportActionsAsYamlResponseClass> {
|
|
969
|
-
return localVarFp.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options).then((request) => request(axios, basePath));
|
|
970
|
-
},
|
|
971
|
-
/**
|
|
972
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
577
|
+
* Retrieves an action configuration by its code
|
|
973
578
|
* @summary Retrieve the action
|
|
974
579
|
* @param {string} code Action code
|
|
975
580
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
976
|
-
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
977
581
|
* @param {*} [options] Override http request option.
|
|
978
582
|
* @throws {RequiredError}
|
|
979
583
|
*/
|
|
980
|
-
getAction(code: string, authorization?: string,
|
|
981
|
-
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));
|
|
982
586
|
},
|
|
983
587
|
/**
|
|
984
|
-
*
|
|
985
|
-
* @summary Retrieve the
|
|
986
|
-
* @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
|
|
987
590
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
988
|
-
* @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)
|
|
989
593
|
* @param {*} [options] Override http request option.
|
|
990
594
|
* @throws {RequiredError}
|
|
991
595
|
*/
|
|
992
|
-
|
|
993
|
-
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));
|
|
994
598
|
},
|
|
995
599
|
/**
|
|
996
|
-
*
|
|
997
|
-
* @summary
|
|
998
|
-
* @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
|
|
999
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1000
|
-
* @param {*} [options] Override http request option.
|
|
1001
|
-
* @throws {RequiredError}
|
|
1002
|
-
*/
|
|
1003
|
-
importActionsFromYaml(importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto, authorization?: string, options?: any): AxiosPromise<ImportActionsFromYamlResponseClass> {
|
|
1004
|
-
return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1005
|
-
},
|
|
1006
|
-
/**
|
|
1007
|
-
* Lists all versions for an action by code **Required Permissions** \"action-management.actions.view\"
|
|
1008
|
-
* @summary List action versions
|
|
1009
|
-
* @param {string} code Action code
|
|
600
|
+
* Lists action executions (latest status per execution only) with optional filters
|
|
601
|
+
* @summary List actionExecutions
|
|
1010
602
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1011
603
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1012
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.
|
|
1013
|
-
* @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>
|
|
1014
606
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1015
|
-
* @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,
|
|
1016
|
-
* @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/>
|
|
1017
|
-
* @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>
|
|
1018
610
|
* @param {*} [options] Override http request option.
|
|
1019
611
|
* @throws {RequiredError}
|
|
1020
612
|
*/
|
|
1021
|
-
|
|
1022
|
-
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));
|
|
1023
615
|
},
|
|
1024
616
|
/**
|
|
1025
|
-
* Lists all action configurations with optional filters
|
|
617
|
+
* Lists all action configurations with optional filters
|
|
1026
618
|
* @summary List actions
|
|
1027
619
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1028
620
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1029
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.
|
|
1030
|
-
* @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>
|
|
1031
623
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1032
|
-
* @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,
|
|
1033
|
-
* @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/>
|
|
1034
|
-
* @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>
|
|
1035
627
|
* @param {*} [options] Override http request option.
|
|
1036
628
|
* @throws {RequiredError}
|
|
1037
629
|
*/
|
|
@@ -1039,24 +631,7 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
1039
631
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1040
632
|
},
|
|
1041
633
|
/**
|
|
1042
|
-
*
|
|
1043
|
-
* @summary List action versions
|
|
1044
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1045
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1046
|
-
* @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.
|
|
1047
|
-
* @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>
|
|
1048
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1049
|
-
* @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>
|
|
1050
|
-
* @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>
|
|
1051
|
-
* @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>
|
|
1052
|
-
* @param {*} [options] Override http request option.
|
|
1053
|
-
* @throws {RequiredError}
|
|
1054
|
-
*/
|
|
1055
|
-
listAllActionVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionVersionsResponseClass> {
|
|
1056
|
-
return localVarFp.listAllActionVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1057
|
-
},
|
|
1058
|
-
/**
|
|
1059
|
-
* 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)
|
|
1060
635
|
* @summary Update the action
|
|
1061
636
|
* @param {string} code Action code
|
|
1062
637
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
@@ -1067,18 +642,6 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
1067
642
|
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
1068
643
|
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1069
644
|
},
|
|
1070
|
-
/**
|
|
1071
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1072
|
-
* @summary Update the action
|
|
1073
|
-
* @param {string} code Action code
|
|
1074
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
1075
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1076
|
-
* @param {*} [options] Override http request option.
|
|
1077
|
-
* @throws {RequiredError}
|
|
1078
|
-
*/
|
|
1079
|
-
updateAction_1(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
1080
|
-
return localVarFp.updateAction_1(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1081
|
-
},
|
|
1082
645
|
};
|
|
1083
646
|
};
|
|
1084
647
|
|
|
@@ -1124,69 +687,6 @@ export interface ActionsApiDeleteActionRequest {
|
|
|
1124
687
|
readonly authorization?: string
|
|
1125
688
|
}
|
|
1126
689
|
|
|
1127
|
-
/**
|
|
1128
|
-
* Request parameters for deleteActionVersion operation in ActionsApi.
|
|
1129
|
-
* @export
|
|
1130
|
-
* @interface ActionsApiDeleteActionVersionRequest
|
|
1131
|
-
*/
|
|
1132
|
-
export interface ActionsApiDeleteActionVersionRequest {
|
|
1133
|
-
/**
|
|
1134
|
-
* Version code (e.g. acv_<nanoid>)
|
|
1135
|
-
* @type {string}
|
|
1136
|
-
* @memberof ActionsApiDeleteActionVersion
|
|
1137
|
-
*/
|
|
1138
|
-
readonly versionCode: string
|
|
1139
|
-
|
|
1140
|
-
/**
|
|
1141
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1142
|
-
* @type {string}
|
|
1143
|
-
* @memberof ActionsApiDeleteActionVersion
|
|
1144
|
-
*/
|
|
1145
|
-
readonly authorization?: string
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Request parameters for exportActionsAsYaml operation in ActionsApi.
|
|
1150
|
-
* @export
|
|
1151
|
-
* @interface ActionsApiExportActionsAsYamlRequest
|
|
1152
|
-
*/
|
|
1153
|
-
export interface ActionsApiExportActionsAsYamlRequest {
|
|
1154
|
-
/**
|
|
1155
|
-
* Product slug
|
|
1156
|
-
* @type {string}
|
|
1157
|
-
* @memberof ActionsApiExportActionsAsYaml
|
|
1158
|
-
*/
|
|
1159
|
-
readonly productSlug: string
|
|
1160
|
-
|
|
1161
|
-
/**
|
|
1162
|
-
* Product version ID
|
|
1163
|
-
* @type {number}
|
|
1164
|
-
* @memberof ActionsApiExportActionsAsYaml
|
|
1165
|
-
*/
|
|
1166
|
-
readonly productVersionId: number
|
|
1167
|
-
|
|
1168
|
-
/**
|
|
1169
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1170
|
-
* @type {string}
|
|
1171
|
-
* @memberof ActionsApiExportActionsAsYaml
|
|
1172
|
-
*/
|
|
1173
|
-
readonly authorization?: string
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
1177
|
-
* @type {Array<string>}
|
|
1178
|
-
* @memberof ActionsApiExportActionsAsYaml
|
|
1179
|
-
*/
|
|
1180
|
-
readonly actionSlugs?: Array<string>
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* Include draft (disabled) actions
|
|
1184
|
-
* @type {boolean}
|
|
1185
|
-
* @memberof ActionsApiExportActionsAsYaml
|
|
1186
|
-
*/
|
|
1187
|
-
readonly includeDisabled?: boolean
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
690
|
/**
|
|
1191
691
|
* Request parameters for getAction operation in ActionsApi.
|
|
1192
692
|
* @export
|
|
@@ -1206,130 +706,95 @@ export interface ActionsApiGetActionRequest {
|
|
|
1206
706
|
* @memberof ActionsApiGetAction
|
|
1207
707
|
*/
|
|
1208
708
|
readonly authorization?: string
|
|
1209
|
-
|
|
1210
|
-
/**
|
|
1211
|
-
* Expand to fetch additional information (e.g. inputValidationSchema)
|
|
1212
|
-
* @type {string}
|
|
1213
|
-
* @memberof ActionsApiGetAction
|
|
1214
|
-
*/
|
|
1215
|
-
readonly expand?: string
|
|
1216
709
|
}
|
|
1217
710
|
|
|
1218
711
|
/**
|
|
1219
|
-
* Request parameters for
|
|
712
|
+
* Request parameters for getActionExecutionStatus operation in ActionsApi.
|
|
1220
713
|
* @export
|
|
1221
|
-
* @interface
|
|
714
|
+
* @interface ActionsApiGetActionExecutionStatusRequest
|
|
1222
715
|
*/
|
|
1223
|
-
export interface
|
|
1224
|
-
/**
|
|
1225
|
-
* Version code (e.g. acv_<nanoid>)
|
|
1226
|
-
* @type {string}
|
|
1227
|
-
* @memberof ActionsApiGetActionVersion
|
|
1228
|
-
*/
|
|
1229
|
-
readonly versionCode: string
|
|
1230
|
-
|
|
716
|
+
export interface ActionsApiGetActionExecutionStatusRequest {
|
|
1231
717
|
/**
|
|
1232
718
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1233
719
|
* @type {string}
|
|
1234
|
-
* @memberof
|
|
720
|
+
* @memberof ActionsApiGetActionExecutionStatus
|
|
1235
721
|
*/
|
|
1236
722
|
readonly authorization?: string
|
|
1237
723
|
|
|
1238
724
|
/**
|
|
1239
|
-
*
|
|
725
|
+
* Action execution code
|
|
1240
726
|
* @type {string}
|
|
1241
|
-
* @memberof
|
|
1242
|
-
*/
|
|
1243
|
-
readonly expand?: string
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
/**
|
|
1247
|
-
* Request parameters for importActionsFromYaml operation in ActionsApi.
|
|
1248
|
-
* @export
|
|
1249
|
-
* @interface ActionsApiImportActionsFromYamlRequest
|
|
1250
|
-
*/
|
|
1251
|
-
export interface ActionsApiImportActionsFromYamlRequest {
|
|
1252
|
-
/**
|
|
1253
|
-
*
|
|
1254
|
-
* @type {ImportActionsFromYamlRequestDto}
|
|
1255
|
-
* @memberof ActionsApiImportActionsFromYaml
|
|
727
|
+
* @memberof ActionsApiGetActionExecutionStatus
|
|
1256
728
|
*/
|
|
1257
|
-
readonly
|
|
729
|
+
readonly executionCode?: string
|
|
1258
730
|
|
|
1259
731
|
/**
|
|
1260
|
-
*
|
|
732
|
+
* Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
1261
733
|
* @type {string}
|
|
1262
|
-
* @memberof
|
|
734
|
+
* @memberof ActionsApiGetActionExecutionStatus
|
|
1263
735
|
*/
|
|
1264
|
-
readonly
|
|
736
|
+
readonly correlationId?: string
|
|
1265
737
|
}
|
|
1266
738
|
|
|
1267
739
|
/**
|
|
1268
|
-
* Request parameters for
|
|
740
|
+
* Request parameters for listActionExecutions operation in ActionsApi.
|
|
1269
741
|
* @export
|
|
1270
|
-
* @interface
|
|
742
|
+
* @interface ActionsApiListActionExecutionsRequest
|
|
1271
743
|
*/
|
|
1272
|
-
export interface
|
|
1273
|
-
/**
|
|
1274
|
-
* Action code
|
|
1275
|
-
* @type {string}
|
|
1276
|
-
* @memberof ActionsApiListActionVersions
|
|
1277
|
-
*/
|
|
1278
|
-
readonly code: string
|
|
1279
|
-
|
|
744
|
+
export interface ActionsApiListActionExecutionsRequest {
|
|
1280
745
|
/**
|
|
1281
746
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1282
747
|
* @type {string}
|
|
1283
|
-
* @memberof
|
|
748
|
+
* @memberof ActionsApiListActionExecutions
|
|
1284
749
|
*/
|
|
1285
750
|
readonly authorization?: string
|
|
1286
751
|
|
|
1287
752
|
/**
|
|
1288
753
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1289
754
|
* @type {number}
|
|
1290
|
-
* @memberof
|
|
755
|
+
* @memberof ActionsApiListActionExecutions
|
|
1291
756
|
*/
|
|
1292
757
|
readonly pageSize?: number
|
|
1293
758
|
|
|
1294
759
|
/**
|
|
1295
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.
|
|
1296
761
|
* @type {string}
|
|
1297
|
-
* @memberof
|
|
762
|
+
* @memberof ActionsApiListActionExecutions
|
|
1298
763
|
*/
|
|
1299
764
|
readonly pageToken?: string
|
|
1300
765
|
|
|
1301
766
|
/**
|
|
1302
|
-
* 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>
|
|
1303
768
|
* @type {string}
|
|
1304
|
-
* @memberof
|
|
769
|
+
* @memberof ActionsApiListActionExecutions
|
|
1305
770
|
*/
|
|
1306
771
|
readonly filter?: string
|
|
1307
772
|
|
|
1308
773
|
/**
|
|
1309
774
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1310
775
|
* @type {string}
|
|
1311
|
-
* @memberof
|
|
776
|
+
* @memberof ActionsApiListActionExecutions
|
|
1312
777
|
*/
|
|
1313
778
|
readonly search?: string
|
|
1314
779
|
|
|
1315
780
|
/**
|
|
1316
|
-
* 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>
|
|
1317
782
|
* @type {string}
|
|
1318
|
-
* @memberof
|
|
783
|
+
* @memberof ActionsApiListActionExecutions
|
|
1319
784
|
*/
|
|
1320
785
|
readonly order?: string
|
|
1321
786
|
|
|
1322
787
|
/**
|
|
1323
|
-
* 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/>
|
|
1324
789
|
* @type {string}
|
|
1325
|
-
* @memberof
|
|
790
|
+
* @memberof ActionsApiListActionExecutions
|
|
1326
791
|
*/
|
|
1327
792
|
readonly expand?: string
|
|
1328
793
|
|
|
1329
794
|
/**
|
|
1330
|
-
* 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>
|
|
1331
796
|
* @type {string}
|
|
1332
|
-
* @memberof
|
|
797
|
+
* @memberof ActionsApiListActionExecutions
|
|
1333
798
|
*/
|
|
1334
799
|
readonly filters?: string
|
|
1335
800
|
}
|
|
@@ -1362,7 +827,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
1362
827
|
readonly pageToken?: string
|
|
1363
828
|
|
|
1364
829
|
/**
|
|
1365
|
-
* 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>
|
|
1366
831
|
* @type {string}
|
|
1367
832
|
* @memberof ActionsApiListActions
|
|
1368
833
|
*/
|
|
@@ -1376,90 +841,27 @@ export interface ActionsApiListActionsRequest {
|
|
|
1376
841
|
readonly search?: string
|
|
1377
842
|
|
|
1378
843
|
/**
|
|
1379
|
-
* 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>
|
|
1380
845
|
* @type {string}
|
|
1381
846
|
* @memberof ActionsApiListActions
|
|
1382
847
|
*/
|
|
1383
848
|
readonly order?: string
|
|
1384
849
|
|
|
1385
850
|
/**
|
|
1386
|
-
* 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/>
|
|
1387
852
|
* @type {string}
|
|
1388
853
|
* @memberof ActionsApiListActions
|
|
1389
854
|
*/
|
|
1390
855
|
readonly expand?: string
|
|
1391
856
|
|
|
1392
857
|
/**
|
|
1393
|
-
* 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>
|
|
1394
859
|
* @type {string}
|
|
1395
860
|
* @memberof ActionsApiListActions
|
|
1396
861
|
*/
|
|
1397
862
|
readonly filters?: string
|
|
1398
863
|
}
|
|
1399
864
|
|
|
1400
|
-
/**
|
|
1401
|
-
* Request parameters for listAllActionVersions operation in ActionsApi.
|
|
1402
|
-
* @export
|
|
1403
|
-
* @interface ActionsApiListAllActionVersionsRequest
|
|
1404
|
-
*/
|
|
1405
|
-
export interface ActionsApiListAllActionVersionsRequest {
|
|
1406
|
-
/**
|
|
1407
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1408
|
-
* @type {string}
|
|
1409
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1410
|
-
*/
|
|
1411
|
-
readonly authorization?: string
|
|
1412
|
-
|
|
1413
|
-
/**
|
|
1414
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1415
|
-
* @type {number}
|
|
1416
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1417
|
-
*/
|
|
1418
|
-
readonly pageSize?: number
|
|
1419
|
-
|
|
1420
|
-
/**
|
|
1421
|
-
* 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.
|
|
1422
|
-
* @type {string}
|
|
1423
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1424
|
-
*/
|
|
1425
|
-
readonly pageToken?: string
|
|
1426
|
-
|
|
1427
|
-
/**
|
|
1428
|
-
* 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>
|
|
1429
|
-
* @type {string}
|
|
1430
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1431
|
-
*/
|
|
1432
|
-
readonly filter?: string
|
|
1433
|
-
|
|
1434
|
-
/**
|
|
1435
|
-
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1436
|
-
* @type {string}
|
|
1437
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1438
|
-
*/
|
|
1439
|
-
readonly search?: string
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* 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>
|
|
1443
|
-
* @type {string}
|
|
1444
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1445
|
-
*/
|
|
1446
|
-
readonly order?: string
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
* 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>
|
|
1450
|
-
* @type {string}
|
|
1451
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1452
|
-
*/
|
|
1453
|
-
readonly expand?: string
|
|
1454
|
-
|
|
1455
|
-
/**
|
|
1456
|
-
* 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>
|
|
1457
|
-
* @type {string}
|
|
1458
|
-
* @memberof ActionsApiListAllActionVersions
|
|
1459
|
-
*/
|
|
1460
|
-
readonly filters?: string
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
865
|
/**
|
|
1464
866
|
* Request parameters for updateAction operation in ActionsApi.
|
|
1465
867
|
* @export
|
|
@@ -1488,34 +890,6 @@ export interface ActionsApiUpdateActionRequest {
|
|
|
1488
890
|
readonly authorization?: string
|
|
1489
891
|
}
|
|
1490
892
|
|
|
1491
|
-
/**
|
|
1492
|
-
* Request parameters for updateAction_1 operation in ActionsApi.
|
|
1493
|
-
* @export
|
|
1494
|
-
* @interface ActionsApiUpdateAction0Request
|
|
1495
|
-
*/
|
|
1496
|
-
export interface ActionsApiUpdateAction0Request {
|
|
1497
|
-
/**
|
|
1498
|
-
* Action code
|
|
1499
|
-
* @type {string}
|
|
1500
|
-
* @memberof ActionsApiUpdateAction0
|
|
1501
|
-
*/
|
|
1502
|
-
readonly code: string
|
|
1503
|
-
|
|
1504
|
-
/**
|
|
1505
|
-
*
|
|
1506
|
-
* @type {UpdateActionRequestDto}
|
|
1507
|
-
* @memberof ActionsApiUpdateAction0
|
|
1508
|
-
*/
|
|
1509
|
-
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
1510
|
-
|
|
1511
|
-
/**
|
|
1512
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1513
|
-
* @type {string}
|
|
1514
|
-
* @memberof ActionsApiUpdateAction0
|
|
1515
|
-
*/
|
|
1516
|
-
readonly authorization?: string
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
893
|
/**
|
|
1520
894
|
* ActionsApi - object-oriented interface
|
|
1521
895
|
* @export
|
|
@@ -1524,7 +898,7 @@ export interface ActionsApiUpdateAction0Request {
|
|
|
1524
898
|
*/
|
|
1525
899
|
export class ActionsApi extends BaseAPI {
|
|
1526
900
|
/**
|
|
1527
|
-
* Creates a new action configuration
|
|
901
|
+
* Creates a new action configuration
|
|
1528
902
|
* @summary Create the action
|
|
1529
903
|
* @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
|
|
1530
904
|
* @param {*} [options] Override http request option.
|
|
@@ -1536,7 +910,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1536
910
|
}
|
|
1537
911
|
|
|
1538
912
|
/**
|
|
1539
|
-
* Deletes an action configuration by its code
|
|
913
|
+
* Deletes an action configuration by its code
|
|
1540
914
|
* @summary Delete the action
|
|
1541
915
|
* @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
|
|
1542
916
|
* @param {*} [options] Override http request option.
|
|
@@ -1548,31 +922,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1548
922
|
}
|
|
1549
923
|
|
|
1550
924
|
/**
|
|
1551
|
-
*
|
|
1552
|
-
* @summary Delete the action version
|
|
1553
|
-
* @param {ActionsApiDeleteActionVersionRequest} requestParameters Request parameters.
|
|
1554
|
-
* @param {*} [options] Override http request option.
|
|
1555
|
-
* @throws {RequiredError}
|
|
1556
|
-
* @memberof ActionsApi
|
|
1557
|
-
*/
|
|
1558
|
-
public deleteActionVersion(requestParameters: ActionsApiDeleteActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1559
|
-
return ActionsApiFp(this.configuration).deleteActionVersion(requestParameters.versionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
/**
|
|
1563
|
-
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
1564
|
-
* @summary Retrieve the entity-actions-yaml
|
|
1565
|
-
* @param {ActionsApiExportActionsAsYamlRequest} requestParameters Request parameters.
|
|
1566
|
-
* @param {*} [options] Override http request option.
|
|
1567
|
-
* @throws {RequiredError}
|
|
1568
|
-
* @memberof ActionsApi
|
|
1569
|
-
*/
|
|
1570
|
-
public exportActionsAsYaml(requestParameters: ActionsApiExportActionsAsYamlRequest, options?: AxiosRequestConfig) {
|
|
1571
|
-
return ActionsApiFp(this.configuration).exportActionsAsYaml(requestParameters.productSlug, requestParameters.productVersionId, requestParameters.authorization, requestParameters.actionSlugs, requestParameters.includeDisabled, options).then((request) => request(this.axios, this.basePath));
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
/**
|
|
1575
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
925
|
+
* Retrieves an action configuration by its code
|
|
1576
926
|
* @summary Retrieve the action
|
|
1577
927
|
* @param {ActionsApiGetActionRequest} requestParameters Request parameters.
|
|
1578
928
|
* @param {*} [options] Override http request option.
|
|
@@ -1580,47 +930,35 @@ export class ActionsApi extends BaseAPI {
|
|
|
1580
930
|
* @memberof ActionsApi
|
|
1581
931
|
*/
|
|
1582
932
|
public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
|
|
1583
|
-
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization,
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
/**
|
|
1587
|
-
* Gets a specific action version by its version code **Required Permissions** \"action-management.actions.view\"
|
|
1588
|
-
* @summary Retrieve the action version
|
|
1589
|
-
* @param {ActionsApiGetActionVersionRequest} requestParameters Request parameters.
|
|
1590
|
-
* @param {*} [options] Override http request option.
|
|
1591
|
-
* @throws {RequiredError}
|
|
1592
|
-
* @memberof ActionsApi
|
|
1593
|
-
*/
|
|
1594
|
-
public getActionVersion(requestParameters: ActionsApiGetActionVersionRequest, options?: AxiosRequestConfig) {
|
|
1595
|
-
return ActionsApiFp(this.configuration).getActionVersion(requestParameters.versionCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
933
|
+
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1596
934
|
}
|
|
1597
935
|
|
|
1598
936
|
/**
|
|
1599
|
-
*
|
|
1600
|
-
* @summary
|
|
1601
|
-
* @param {
|
|
937
|
+
* Retrieves the latest action execution status by executionCode or correlationId
|
|
938
|
+
* @summary Retrieve the actionExecution
|
|
939
|
+
* @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
|
|
1602
940
|
* @param {*} [options] Override http request option.
|
|
1603
941
|
* @throws {RequiredError}
|
|
1604
942
|
* @memberof ActionsApi
|
|
1605
943
|
*/
|
|
1606
|
-
public
|
|
1607
|
-
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));
|
|
1608
946
|
}
|
|
1609
947
|
|
|
1610
948
|
/**
|
|
1611
|
-
* Lists
|
|
1612
|
-
* @summary List
|
|
1613
|
-
* @param {
|
|
949
|
+
* Lists action executions (latest status per execution only) with optional filters
|
|
950
|
+
* @summary List actionExecutions
|
|
951
|
+
* @param {ActionsApiListActionExecutionsRequest} requestParameters Request parameters.
|
|
1614
952
|
* @param {*} [options] Override http request option.
|
|
1615
953
|
* @throws {RequiredError}
|
|
1616
954
|
* @memberof ActionsApi
|
|
1617
955
|
*/
|
|
1618
|
-
public
|
|
1619
|
-
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));
|
|
1620
958
|
}
|
|
1621
959
|
|
|
1622
960
|
/**
|
|
1623
|
-
* Lists all action configurations with optional filters
|
|
961
|
+
* Lists all action configurations with optional filters
|
|
1624
962
|
* @summary List actions
|
|
1625
963
|
* @param {ActionsApiListActionsRequest} requestParameters Request parameters.
|
|
1626
964
|
* @param {*} [options] Override http request option.
|
|
@@ -1632,19 +970,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
1632
970
|
}
|
|
1633
971
|
|
|
1634
972
|
/**
|
|
1635
|
-
*
|
|
1636
|
-
* @summary List action versions
|
|
1637
|
-
* @param {ActionsApiListAllActionVersionsRequest} requestParameters Request parameters.
|
|
1638
|
-
* @param {*} [options] Override http request option.
|
|
1639
|
-
* @throws {RequiredError}
|
|
1640
|
-
* @memberof ActionsApi
|
|
1641
|
-
*/
|
|
1642
|
-
public listAllActionVersions(requestParameters: ActionsApiListAllActionVersionsRequest = {}, options?: AxiosRequestConfig) {
|
|
1643
|
-
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));
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
/**
|
|
1647
|
-
* 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)
|
|
1648
974
|
* @summary Update the action
|
|
1649
975
|
* @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
|
|
1650
976
|
* @param {*} [options] Override http request option.
|
|
@@ -1654,16 +980,4 @@ export class ActionsApi extends BaseAPI {
|
|
|
1654
980
|
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
1655
981
|
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1656
982
|
}
|
|
1657
|
-
|
|
1658
|
-
/**
|
|
1659
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\" **Required Permissions** \"action-management.actions.view\"
|
|
1660
|
-
* @summary Update the action
|
|
1661
|
-
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1662
|
-
* @param {*} [options] Override http request option.
|
|
1663
|
-
* @throws {RequiredError}
|
|
1664
|
-
* @memberof ActionsApi
|
|
1665
|
-
*/
|
|
1666
|
-
public updateAction_1(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
|
|
1667
|
-
return ActionsApiFp(this.configuration).updateAction_1(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1668
|
-
}
|
|
1669
983
|
}
|