@emilgroup/action-sdk-node 1.0.1-beta.32 → 1.0.1-beta.35
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 +5 -0
- package/README.md +2 -2
- package/api/actions-api.ts +150 -792
- package/api/executions-api.ts +119 -12
- package/dist/api/actions-api.d.ts +102 -466
- package/dist/api/actions-api.js +89 -609
- package/dist/api/executions-api.d.ts +69 -12
- package/dist/api/executions-api.js +102 -9
- package/dist/models/action-class.d.ts +38 -2
- package/dist/models/action-execution-class.d.ts +30 -0
- package/dist/models/create-action-request-dto.d.ts +31 -1
- package/dist/models/create-action-request-dto.js +6 -0
- package/dist/models/export-actions-as-yaml-response-class.d.ts +24 -0
- package/dist/models/export-actions-as-yaml-response-class.js +15 -0
- package/dist/models/import-actions-from-yaml-request-dto.d.ts +36 -0
- package/dist/models/import-actions-from-yaml-request-dto.js +15 -0
- package/dist/models/import-actions-from-yaml-response-class.d.ts +37 -0
- package/dist/models/import-actions-from-yaml-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/trigger-action-request-dto.d.ts +62 -0
- package/dist/models/trigger-action-request-dto.js +15 -0
- package/dist/models/trigger-action-response-class.d.ts +25 -0
- package/dist/models/trigger-action-response-class.js +15 -0
- package/dist/models/update-action-request-dto.d.ts +30 -0
- package/dist/models/update-action-request-dto.js +6 -0
- package/models/action-class.ts +38 -2
- package/models/action-execution-class.ts +30 -0
- package/models/create-action-request-dto.ts +34 -1
- package/models/export-actions-as-yaml-response-class.ts +30 -0
- package/models/import-actions-from-yaml-request-dto.ts +42 -0
- package/models/import-actions-from-yaml-response-class.ts +43 -0
- package/models/index.ts +5 -0
- package/models/trigger-action-request-dto.ts +66 -0
- package/models/trigger-action-response-class.ts +31 -0
- package/models/update-action-request-dto.ts +33 -0
- package/package.json +1 -1
package/api/actions-api.ts
CHANGED
|
@@ -25,11 +25,13 @@ import { CreateActionRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateActionResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
28
|
+
import { ExportActionsAsYamlResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetActionResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { ImportActionsFromYamlRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ImportActionsFromYamlResponseClass } from '../models';
|
|
33
35
|
// @ts-ignore
|
|
34
36
|
import { ListActionsResponseClass } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
@@ -81,53 +83,6 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
81
83
|
|
|
82
84
|
|
|
83
85
|
|
|
84
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
85
|
-
|
|
86
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
87
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
89
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createActionRequestDto, localVarRequestOptions, configuration)
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
url: toPathString(localVarUrlObj),
|
|
93
|
-
options: localVarRequestOptions,
|
|
94
|
-
};
|
|
95
|
-
},
|
|
96
|
-
/**
|
|
97
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
98
|
-
* @summary Create the action
|
|
99
|
-
* @param {CreateActionRequestDto} createActionRequestDto
|
|
100
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
101
|
-
* @param {*} [options] Override http request option.
|
|
102
|
-
* @throws {RequiredError}
|
|
103
|
-
*/
|
|
104
|
-
createAction_1: async (createActionRequestDto: CreateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
-
// verify required parameter 'createActionRequestDto' is not null or undefined
|
|
106
|
-
assertParamExists('createAction_1', 'createActionRequestDto', createActionRequestDto)
|
|
107
|
-
const localVarPath = `/actionservice/v1/actions`;
|
|
108
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
-
let baseOptions;
|
|
111
|
-
let baseAccessToken;
|
|
112
|
-
if (configuration) {
|
|
113
|
-
baseOptions = configuration.baseOptions;
|
|
114
|
-
baseAccessToken = configuration.accessToken;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
118
|
-
const localVarHeaderParameter = {} as any;
|
|
119
|
-
const localVarQueryParameter = {} as any;
|
|
120
|
-
|
|
121
|
-
// authentication bearer required
|
|
122
|
-
// http bearer authentication required
|
|
123
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
|
-
|
|
125
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
86
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
87
|
|
|
133
88
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -186,63 +141,22 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
186
141
|
};
|
|
187
142
|
},
|
|
188
143
|
/**
|
|
189
|
-
*
|
|
190
|
-
* @summary
|
|
191
|
-
* @param {string}
|
|
192
|
-
* @param {
|
|
193
|
-
* @param {*} [options] Override http request option.
|
|
194
|
-
* @throws {RequiredError}
|
|
195
|
-
*/
|
|
196
|
-
deleteAction_2: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
|
-
// verify required parameter 'code' is not null or undefined
|
|
198
|
-
assertParamExists('deleteAction_2', 'code', code)
|
|
199
|
-
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
200
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
201
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
203
|
-
let baseOptions;
|
|
204
|
-
let baseAccessToken;
|
|
205
|
-
if (configuration) {
|
|
206
|
-
baseOptions = configuration.baseOptions;
|
|
207
|
-
baseAccessToken = configuration.accessToken;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
211
|
-
const localVarHeaderParameter = {} as any;
|
|
212
|
-
const localVarQueryParameter = {} as any;
|
|
213
|
-
|
|
214
|
-
// authentication bearer required
|
|
215
|
-
// http bearer authentication required
|
|
216
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
217
|
-
|
|
218
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
219
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
225
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
226
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
227
|
-
|
|
228
|
-
return {
|
|
229
|
-
url: toPathString(localVarUrlObj),
|
|
230
|
-
options: localVarRequestOptions,
|
|
231
|
-
};
|
|
232
|
-
},
|
|
233
|
-
/**
|
|
234
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
235
|
-
* @summary Retrieve the action
|
|
236
|
-
* @param {string} code Action code
|
|
144
|
+
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
145
|
+
* @summary Retrieve the entity-actions-yaml
|
|
146
|
+
* @param {string} productSlug Product slug
|
|
147
|
+
* @param {number} productVersionId Product version ID
|
|
237
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
+
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
150
|
+
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
238
151
|
* @param {*} [options] Override http request option.
|
|
239
152
|
* @throws {RequiredError}
|
|
240
153
|
*/
|
|
241
|
-
|
|
242
|
-
// verify required parameter '
|
|
243
|
-
assertParamExists('
|
|
244
|
-
|
|
245
|
-
|
|
154
|
+
exportActionsAsYaml: async (productSlug: string, productVersionId: number, authorization?: string, actionSlugs?: Array<string>, includeDisabled?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
155
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
156
|
+
assertParamExists('exportActionsAsYaml', 'productSlug', productSlug)
|
|
157
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
158
|
+
assertParamExists('exportActionsAsYaml', 'productVersionId', productVersionId)
|
|
159
|
+
const localVarPath = `/actionservice/v1/actions/entity-actions-yaml`;
|
|
246
160
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
247
161
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
248
162
|
let baseOptions;
|
|
@@ -260,55 +174,20 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
260
174
|
// http bearer authentication required
|
|
261
175
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
262
176
|
|
|
263
|
-
if (
|
|
264
|
-
|
|
177
|
+
if (productSlug !== undefined) {
|
|
178
|
+
localVarQueryParameter['productSlug'] = productSlug;
|
|
265
179
|
}
|
|
266
180
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
270
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
271
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
272
|
-
|
|
273
|
-
return {
|
|
274
|
-
url: toPathString(localVarUrlObj),
|
|
275
|
-
options: localVarRequestOptions,
|
|
276
|
-
};
|
|
277
|
-
},
|
|
278
|
-
/**
|
|
279
|
-
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
280
|
-
* @summary Retrieve the actionExecution
|
|
281
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
282
|
-
* @param {string} [executionCode] Action execution code
|
|
283
|
-
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
284
|
-
* @param {*} [options] Override http request option.
|
|
285
|
-
* @throws {RequiredError}
|
|
286
|
-
*/
|
|
287
|
-
getActionExecutionStatus: async (authorization?: string, executionCode?: string, correlationId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
288
|
-
const localVarPath = `/actionservice/v1/actions/executions/status`;
|
|
289
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
290
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
291
|
-
let baseOptions;
|
|
292
|
-
let baseAccessToken;
|
|
293
|
-
if (configuration) {
|
|
294
|
-
baseOptions = configuration.baseOptions;
|
|
295
|
-
baseAccessToken = configuration.accessToken;
|
|
181
|
+
if (productVersionId !== undefined) {
|
|
182
|
+
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
296
183
|
}
|
|
297
184
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
const localVarQueryParameter = {} as any;
|
|
301
|
-
|
|
302
|
-
// authentication bearer required
|
|
303
|
-
// http bearer authentication required
|
|
304
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
305
|
-
|
|
306
|
-
if (executionCode !== undefined) {
|
|
307
|
-
localVarQueryParameter['executionCode'] = executionCode;
|
|
185
|
+
if (actionSlugs) {
|
|
186
|
+
localVarQueryParameter['actionSlugs'] = actionSlugs;
|
|
308
187
|
}
|
|
309
188
|
|
|
310
|
-
if (
|
|
311
|
-
localVarQueryParameter['
|
|
189
|
+
if (includeDisabled !== undefined) {
|
|
190
|
+
localVarQueryParameter['includeDisabled'] = includeDisabled;
|
|
312
191
|
}
|
|
313
192
|
|
|
314
193
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
@@ -331,12 +210,13 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
331
210
|
* @summary Retrieve the action
|
|
332
211
|
* @param {string} code Action code
|
|
333
212
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
213
|
+
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
334
214
|
* @param {*} [options] Override http request option.
|
|
335
215
|
* @throws {RequiredError}
|
|
336
216
|
*/
|
|
337
|
-
|
|
217
|
+
getAction: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
338
218
|
// verify required parameter 'code' is not null or undefined
|
|
339
|
-
assertParamExists('
|
|
219
|
+
assertParamExists('getAction', 'code', code)
|
|
340
220
|
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
341
221
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
342
222
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -356,82 +236,10 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
356
236
|
// http bearer authentication required
|
|
357
237
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
358
238
|
|
|
359
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
360
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
366
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
368
|
-
|
|
369
|
-
return {
|
|
370
|
-
url: toPathString(localVarUrlObj),
|
|
371
|
-
options: localVarRequestOptions,
|
|
372
|
-
};
|
|
373
|
-
},
|
|
374
|
-
/**
|
|
375
|
-
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
376
|
-
* @summary List actionExecutions
|
|
377
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
378
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
379
|
-
* @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.
|
|
380
|
-
* @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>
|
|
381
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
382
|
-
* @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>
|
|
383
|
-
* @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/>
|
|
384
|
-
* @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>
|
|
385
|
-
* @param {*} [options] Override http request option.
|
|
386
|
-
* @throws {RequiredError}
|
|
387
|
-
*/
|
|
388
|
-
listActionExecutions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
389
|
-
const localVarPath = `/actionservice/v1/actions/executions`;
|
|
390
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
391
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
392
|
-
let baseOptions;
|
|
393
|
-
let baseAccessToken;
|
|
394
|
-
if (configuration) {
|
|
395
|
-
baseOptions = configuration.baseOptions;
|
|
396
|
-
baseAccessToken = configuration.accessToken;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
400
|
-
const localVarHeaderParameter = {} as any;
|
|
401
|
-
const localVarQueryParameter = {} as any;
|
|
402
|
-
|
|
403
|
-
// authentication bearer required
|
|
404
|
-
// http bearer authentication required
|
|
405
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
406
|
-
|
|
407
|
-
if (pageSize !== undefined) {
|
|
408
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
if (pageToken !== undefined) {
|
|
412
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
if (filter !== undefined) {
|
|
416
|
-
localVarQueryParameter['filter'] = filter;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
if (search !== undefined) {
|
|
420
|
-
localVarQueryParameter['search'] = search;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
if (order !== undefined) {
|
|
424
|
-
localVarQueryParameter['order'] = order;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
239
|
if (expand !== undefined) {
|
|
428
240
|
localVarQueryParameter['expand'] = expand;
|
|
429
241
|
}
|
|
430
242
|
|
|
431
|
-
if (filters !== undefined) {
|
|
432
|
-
localVarQueryParameter['filters'] = filters;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
243
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
436
244
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
437
245
|
}
|
|
@@ -448,21 +256,17 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
448
256
|
};
|
|
449
257
|
},
|
|
450
258
|
/**
|
|
451
|
-
*
|
|
452
|
-
* @summary
|
|
259
|
+
* 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\"
|
|
260
|
+
* @summary Update the entity-actions-yaml
|
|
261
|
+
* @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
|
|
453
262
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
454
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
455
|
-
* @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.
|
|
456
|
-
* @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>
|
|
457
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
458
|
-
* @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>
|
|
459
|
-
* @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/>
|
|
460
|
-
* @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>
|
|
461
263
|
* @param {*} [options] Override http request option.
|
|
462
264
|
* @throws {RequiredError}
|
|
463
265
|
*/
|
|
464
|
-
|
|
465
|
-
|
|
266
|
+
importActionsFromYaml: async (importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
267
|
+
// verify required parameter 'importActionsFromYamlRequestDto' is not null or undefined
|
|
268
|
+
assertParamExists('importActionsFromYaml', 'importActionsFromYamlRequestDto', importActionsFromYamlRequestDto)
|
|
269
|
+
const localVarPath = `/actionservice/v1/actions/entity-actions-yaml`;
|
|
466
270
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
467
271
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
272
|
let baseOptions;
|
|
@@ -472,7 +276,7 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
472
276
|
baseAccessToken = configuration.accessToken;
|
|
473
277
|
}
|
|
474
278
|
|
|
475
|
-
const localVarRequestOptions = { method: '
|
|
279
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
476
280
|
const localVarHeaderParameter = {} as any;
|
|
477
281
|
const localVarQueryParameter = {} as any;
|
|
478
282
|
|
|
@@ -480,43 +284,18 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
480
284
|
// http bearer authentication required
|
|
481
285
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
482
286
|
|
|
483
|
-
if (pageSize !== undefined) {
|
|
484
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
if (pageToken !== undefined) {
|
|
488
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
if (filter !== undefined) {
|
|
492
|
-
localVarQueryParameter['filter'] = filter;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
if (search !== undefined) {
|
|
496
|
-
localVarQueryParameter['search'] = search;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
if (order !== undefined) {
|
|
500
|
-
localVarQueryParameter['order'] = order;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
if (expand !== undefined) {
|
|
504
|
-
localVarQueryParameter['expand'] = expand;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
if (filters !== undefined) {
|
|
508
|
-
localVarQueryParameter['filters'] = filters;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
287
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
512
288
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
513
289
|
}
|
|
514
290
|
|
|
515
291
|
|
|
516
292
|
|
|
293
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
294
|
+
|
|
517
295
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
518
296
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
519
297
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
298
|
+
localVarRequestOptions.data = serializeDataIfNeeded(importActionsFromYamlRequestDto, localVarRequestOptions, configuration)
|
|
520
299
|
|
|
521
300
|
return {
|
|
522
301
|
url: toPathString(localVarUrlObj),
|
|
@@ -529,15 +308,15 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
529
308
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
530
309
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
531
310
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
532
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
311
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
533
312
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
534
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
535
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
536
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
313
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt</i>
|
|
314
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
|
|
315
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
537
316
|
* @param {*} [options] Override http request option.
|
|
538
317
|
* @throws {RequiredError}
|
|
539
318
|
*/
|
|
540
|
-
|
|
319
|
+
listActions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
541
320
|
const localVarPath = `/actionservice/v1/actions`;
|
|
542
321
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
543
322
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -650,71 +429,20 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
650
429
|
options: localVarRequestOptions,
|
|
651
430
|
};
|
|
652
431
|
},
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* ActionsApi - functional programming interface
|
|
437
|
+
* @export
|
|
438
|
+
*/
|
|
439
|
+
export const ActionsApiFp = function(configuration?: Configuration) {
|
|
440
|
+
const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration)
|
|
441
|
+
return {
|
|
653
442
|
/**
|
|
654
|
-
*
|
|
655
|
-
* @summary
|
|
656
|
-
* @param {
|
|
657
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
658
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
659
|
-
* @param {*} [options] Override http request option.
|
|
660
|
-
* @throws {RequiredError}
|
|
661
|
-
*/
|
|
662
|
-
updateAction_5: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
663
|
-
// verify required parameter 'code' is not null or undefined
|
|
664
|
-
assertParamExists('updateAction_5', 'code', code)
|
|
665
|
-
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
666
|
-
assertParamExists('updateAction_5', 'updateActionRequestDto', updateActionRequestDto)
|
|
667
|
-
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
668
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
669
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
670
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
671
|
-
let baseOptions;
|
|
672
|
-
let baseAccessToken;
|
|
673
|
-
if (configuration) {
|
|
674
|
-
baseOptions = configuration.baseOptions;
|
|
675
|
-
baseAccessToken = configuration.accessToken;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
679
|
-
const localVarHeaderParameter = {} as any;
|
|
680
|
-
const localVarQueryParameter = {} as any;
|
|
681
|
-
|
|
682
|
-
// authentication bearer required
|
|
683
|
-
// http bearer authentication required
|
|
684
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
685
|
-
|
|
686
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
687
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
693
|
-
|
|
694
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
695
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
696
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
697
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
|
|
698
|
-
|
|
699
|
-
return {
|
|
700
|
-
url: toPathString(localVarUrlObj),
|
|
701
|
-
options: localVarRequestOptions,
|
|
702
|
-
};
|
|
703
|
-
},
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* ActionsApi - functional programming interface
|
|
709
|
-
* @export
|
|
710
|
-
*/
|
|
711
|
-
export const ActionsApiFp = function(configuration?: Configuration) {
|
|
712
|
-
const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration)
|
|
713
|
-
return {
|
|
714
|
-
/**
|
|
715
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
716
|
-
* @summary Create the action
|
|
717
|
-
* @param {CreateActionRequestDto} createActionRequestDto
|
|
443
|
+
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
444
|
+
* @summary Create the action
|
|
445
|
+
* @param {CreateActionRequestDto} createActionRequestDto
|
|
718
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
719
447
|
* @param {*} [options] Override http request option.
|
|
720
448
|
* @throws {RequiredError}
|
|
@@ -723,18 +451,6 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
723
451
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createAction(createActionRequestDto, authorization, options);
|
|
724
452
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
725
453
|
},
|
|
726
|
-
/**
|
|
727
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
728
|
-
* @summary Create the action
|
|
729
|
-
* @param {CreateActionRequestDto} createActionRequestDto
|
|
730
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
731
|
-
* @param {*} [options] Override http request option.
|
|
732
|
-
* @throws {RequiredError}
|
|
733
|
-
*/
|
|
734
|
-
async createAction_1(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateActionResponseClass>> {
|
|
735
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createAction_1(createActionRequestDto, authorization, options);
|
|
736
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
737
|
-
},
|
|
738
454
|
/**
|
|
739
455
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
740
456
|
* @summary Delete the action
|
|
@@ -748,40 +464,18 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
748
464
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
749
465
|
},
|
|
750
466
|
/**
|
|
751
|
-
*
|
|
752
|
-
* @summary
|
|
753
|
-
* @param {string}
|
|
754
|
-
* @param {
|
|
755
|
-
* @param {*} [options] Override http request option.
|
|
756
|
-
* @throws {RequiredError}
|
|
757
|
-
*/
|
|
758
|
-
async deleteAction_2(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
759
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction_2(code, authorization, options);
|
|
760
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
761
|
-
},
|
|
762
|
-
/**
|
|
763
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
764
|
-
* @summary Retrieve the action
|
|
765
|
-
* @param {string} code Action code
|
|
766
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
767
|
-
* @param {*} [options] Override http request option.
|
|
768
|
-
* @throws {RequiredError}
|
|
769
|
-
*/
|
|
770
|
-
async getAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
|
|
771
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, options);
|
|
772
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
773
|
-
},
|
|
774
|
-
/**
|
|
775
|
-
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
776
|
-
* @summary Retrieve the actionExecution
|
|
467
|
+
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
468
|
+
* @summary Retrieve the entity-actions-yaml
|
|
469
|
+
* @param {string} productSlug Product slug
|
|
470
|
+
* @param {number} productVersionId Product version ID
|
|
777
471
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
778
|
-
* @param {string} [
|
|
779
|
-
* @param {
|
|
472
|
+
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
473
|
+
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
780
474
|
* @param {*} [options] Override http request option.
|
|
781
475
|
* @throws {RequiredError}
|
|
782
476
|
*/
|
|
783
|
-
async
|
|
784
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
477
|
+
async exportActionsAsYaml(productSlug: string, productVersionId: number, authorization?: string, actionSlugs?: Array<string>, includeDisabled?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportActionsAsYamlResponseClass>> {
|
|
478
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options);
|
|
785
479
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
786
480
|
},
|
|
787
481
|
/**
|
|
@@ -789,29 +483,24 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
789
483
|
* @summary Retrieve the action
|
|
790
484
|
* @param {string} code Action code
|
|
791
485
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
486
|
+
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
792
487
|
* @param {*} [options] Override http request option.
|
|
793
488
|
* @throws {RequiredError}
|
|
794
489
|
*/
|
|
795
|
-
async
|
|
796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
490
|
+
async getAction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
|
|
491
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, expand, options);
|
|
797
492
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
798
493
|
},
|
|
799
494
|
/**
|
|
800
|
-
*
|
|
801
|
-
* @summary
|
|
495
|
+
* 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\"
|
|
496
|
+
* @summary Update the entity-actions-yaml
|
|
497
|
+
* @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
|
|
802
498
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
803
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
804
|
-
* @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.
|
|
805
|
-
* @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>
|
|
806
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
807
|
-
* @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>
|
|
808
|
-
* @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/>
|
|
809
|
-
* @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>
|
|
810
499
|
* @param {*} [options] Override http request option.
|
|
811
500
|
* @throws {RequiredError}
|
|
812
501
|
*/
|
|
813
|
-
async
|
|
814
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
502
|
+
async importActionsFromYaml(importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportActionsFromYamlResponseClass>> {
|
|
503
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options);
|
|
815
504
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
816
505
|
},
|
|
817
506
|
/**
|
|
@@ -820,11 +509,11 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
820
509
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
821
510
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
822
511
|
* @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.
|
|
823
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
512
|
+
* @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, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
824
513
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
825
|
-
* @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>
|
|
826
|
-
* @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/>
|
|
827
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
514
|
+
* @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, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt</i>
|
|
515
|
+
* @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>
|
|
516
|
+
* @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, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
828
517
|
* @param {*} [options] Override http request option.
|
|
829
518
|
* @throws {RequiredError}
|
|
830
519
|
*/
|
|
@@ -832,24 +521,6 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
832
521
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
833
522
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
834
523
|
},
|
|
835
|
-
/**
|
|
836
|
-
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
837
|
-
* @summary List actions
|
|
838
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
839
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
840
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
841
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
842
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
843
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
844
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
845
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
846
|
-
* @param {*} [options] Override http request option.
|
|
847
|
-
* @throws {RequiredError}
|
|
848
|
-
*/
|
|
849
|
-
async listActions_4(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionsResponseClass>> {
|
|
850
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
851
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
852
|
-
},
|
|
853
524
|
/**
|
|
854
525
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
855
526
|
* @summary Update the action
|
|
@@ -863,19 +534,6 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
863
534
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
|
|
864
535
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
865
536
|
},
|
|
866
|
-
/**
|
|
867
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
868
|
-
* @summary Update the action
|
|
869
|
-
* @param {string} code Action code
|
|
870
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
871
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
872
|
-
* @param {*} [options] Override http request option.
|
|
873
|
-
* @throws {RequiredError}
|
|
874
|
-
*/
|
|
875
|
-
async updateAction_5(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
876
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction_5(code, updateActionRequestDto, authorization, options);
|
|
877
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
878
|
-
},
|
|
879
537
|
}
|
|
880
538
|
};
|
|
881
539
|
|
|
@@ -897,17 +555,6 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
897
555
|
createAction(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateActionResponseClass> {
|
|
898
556
|
return localVarFp.createAction(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
899
557
|
},
|
|
900
|
-
/**
|
|
901
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
902
|
-
* @summary Create the action
|
|
903
|
-
* @param {CreateActionRequestDto} createActionRequestDto
|
|
904
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
905
|
-
* @param {*} [options] Override http request option.
|
|
906
|
-
* @throws {RequiredError}
|
|
907
|
-
*/
|
|
908
|
-
createAction_1(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateActionResponseClass> {
|
|
909
|
-
return localVarFp.createAction_1(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
910
|
-
},
|
|
911
558
|
/**
|
|
912
559
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
913
560
|
* @summary Delete the action
|
|
@@ -920,66 +567,41 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
920
567
|
return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
921
568
|
},
|
|
922
569
|
/**
|
|
923
|
-
*
|
|
924
|
-
* @summary
|
|
925
|
-
* @param {string}
|
|
570
|
+
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
571
|
+
* @summary Retrieve the entity-actions-yaml
|
|
572
|
+
* @param {string} productSlug Product slug
|
|
573
|
+
* @param {number} productVersionId Product version ID
|
|
926
574
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
575
|
+
* @param {Array<string>} [actionSlugs] Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
576
|
+
* @param {boolean} [includeDisabled] Include draft (disabled) actions
|
|
927
577
|
* @param {*} [options] Override http request option.
|
|
928
578
|
* @throws {RequiredError}
|
|
929
579
|
*/
|
|
930
|
-
|
|
931
|
-
return localVarFp.
|
|
580
|
+
exportActionsAsYaml(productSlug: string, productVersionId: number, authorization?: string, actionSlugs?: Array<string>, includeDisabled?: boolean, options?: any): AxiosPromise<ExportActionsAsYamlResponseClass> {
|
|
581
|
+
return localVarFp.exportActionsAsYaml(productSlug, productVersionId, authorization, actionSlugs, includeDisabled, options).then((request) => request(axios, basePath));
|
|
932
582
|
},
|
|
933
583
|
/**
|
|
934
584
|
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
935
585
|
* @summary Retrieve the action
|
|
936
586
|
* @param {string} code Action code
|
|
937
587
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
588
|
+
* @param {string} [expand] Expand to fetch additional information (e.g. inputValidationSchema)
|
|
938
589
|
* @param {*} [options] Override http request option.
|
|
939
590
|
* @throws {RequiredError}
|
|
940
591
|
*/
|
|
941
|
-
getAction(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
|
|
942
|
-
return localVarFp.getAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
592
|
+
getAction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetActionResponseClass> {
|
|
593
|
+
return localVarFp.getAction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
943
594
|
},
|
|
944
595
|
/**
|
|
945
|
-
*
|
|
946
|
-
* @summary
|
|
596
|
+
* 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\"
|
|
597
|
+
* @summary Update the entity-actions-yaml
|
|
598
|
+
* @param {ImportActionsFromYamlRequestDto} importActionsFromYamlRequestDto
|
|
947
599
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
948
|
-
* @param {string} [executionCode] Action execution code
|
|
949
|
-
* @param {string} [correlationId] Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
950
600
|
* @param {*} [options] Override http request option.
|
|
951
601
|
* @throws {RequiredError}
|
|
952
602
|
*/
|
|
953
|
-
|
|
954
|
-
return localVarFp.
|
|
955
|
-
},
|
|
956
|
-
/**
|
|
957
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
958
|
-
* @summary Retrieve the action
|
|
959
|
-
* @param {string} code Action code
|
|
960
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
961
|
-
* @param {*} [options] Override http request option.
|
|
962
|
-
* @throws {RequiredError}
|
|
963
|
-
*/
|
|
964
|
-
getAction_3(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
|
|
965
|
-
return localVarFp.getAction_3(code, authorization, options).then((request) => request(axios, basePath));
|
|
966
|
-
},
|
|
967
|
-
/**
|
|
968
|
-
* Lists action executions (latest status per execution only) with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
969
|
-
* @summary List actionExecutions
|
|
970
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
971
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
972
|
-
* @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.
|
|
973
|
-
* @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>
|
|
974
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
975
|
-
* @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>
|
|
976
|
-
* @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/>
|
|
977
|
-
* @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>
|
|
978
|
-
* @param {*} [options] Override http request option.
|
|
979
|
-
* @throws {RequiredError}
|
|
980
|
-
*/
|
|
981
|
-
listActionExecutions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionExecutionsResponseClass> {
|
|
982
|
-
return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
603
|
+
importActionsFromYaml(importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto, authorization?: string, options?: any): AxiosPromise<ImportActionsFromYamlResponseClass> {
|
|
604
|
+
return localVarFp.importActionsFromYaml(importActionsFromYamlRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
983
605
|
},
|
|
984
606
|
/**
|
|
985
607
|
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
@@ -987,34 +609,17 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
987
609
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
988
610
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
989
611
|
* @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.
|
|
990
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
612
|
+
* @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, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
991
613
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
992
|
-
* @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>
|
|
993
|
-
* @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/>
|
|
994
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
614
|
+
* @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, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt</i>
|
|
615
|
+
* @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>
|
|
616
|
+
* @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, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
995
617
|
* @param {*} [options] Override http request option.
|
|
996
618
|
* @throws {RequiredError}
|
|
997
619
|
*/
|
|
998
620
|
listActions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionsResponseClass> {
|
|
999
621
|
return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1000
622
|
},
|
|
1001
|
-
/**
|
|
1002
|
-
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1003
|
-
* @summary List actions
|
|
1004
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1005
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1006
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1007
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1008
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1009
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
1010
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1011
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1012
|
-
* @param {*} [options] Override http request option.
|
|
1013
|
-
* @throws {RequiredError}
|
|
1014
|
-
*/
|
|
1015
|
-
listActions_4(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionsResponseClass> {
|
|
1016
|
-
return localVarFp.listActions_4(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1017
|
-
},
|
|
1018
623
|
/**
|
|
1019
624
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1020
625
|
* @summary Update the action
|
|
@@ -1027,18 +632,6 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
1027
632
|
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
1028
633
|
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1029
634
|
},
|
|
1030
|
-
/**
|
|
1031
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1032
|
-
* @summary Update the action
|
|
1033
|
-
* @param {string} code Action code
|
|
1034
|
-
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
1035
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1036
|
-
* @param {*} [options] Override http request option.
|
|
1037
|
-
* @throws {RequiredError}
|
|
1038
|
-
*/
|
|
1039
|
-
updateAction_5(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
1040
|
-
return localVarFp.updateAction_5(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1041
|
-
},
|
|
1042
635
|
};
|
|
1043
636
|
};
|
|
1044
637
|
|
|
@@ -1063,27 +656,6 @@ export interface ActionsApiCreateActionRequest {
|
|
|
1063
656
|
readonly authorization?: string
|
|
1064
657
|
}
|
|
1065
658
|
|
|
1066
|
-
/**
|
|
1067
|
-
* Request parameters for createAction_1 operation in ActionsApi.
|
|
1068
|
-
* @export
|
|
1069
|
-
* @interface ActionsApiCreateAction0Request
|
|
1070
|
-
*/
|
|
1071
|
-
export interface ActionsApiCreateAction0Request {
|
|
1072
|
-
/**
|
|
1073
|
-
*
|
|
1074
|
-
* @type {CreateActionRequestDto}
|
|
1075
|
-
* @memberof ActionsApiCreateAction0
|
|
1076
|
-
*/
|
|
1077
|
-
readonly createActionRequestDto: CreateActionRequestDto
|
|
1078
|
-
|
|
1079
|
-
/**
|
|
1080
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1081
|
-
* @type {string}
|
|
1082
|
-
* @memberof ActionsApiCreateAction0
|
|
1083
|
-
*/
|
|
1084
|
-
readonly authorization?: string
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
659
|
/**
|
|
1088
660
|
* Request parameters for deleteAction operation in ActionsApi.
|
|
1089
661
|
* @export
|
|
@@ -1106,24 +678,45 @@ export interface ActionsApiDeleteActionRequest {
|
|
|
1106
678
|
}
|
|
1107
679
|
|
|
1108
680
|
/**
|
|
1109
|
-
* Request parameters for
|
|
681
|
+
* Request parameters for exportActionsAsYaml operation in ActionsApi.
|
|
1110
682
|
* @export
|
|
1111
|
-
* @interface
|
|
683
|
+
* @interface ActionsApiExportActionsAsYamlRequest
|
|
1112
684
|
*/
|
|
1113
|
-
export interface
|
|
685
|
+
export interface ActionsApiExportActionsAsYamlRequest {
|
|
1114
686
|
/**
|
|
1115
|
-
*
|
|
687
|
+
* Product slug
|
|
1116
688
|
* @type {string}
|
|
1117
|
-
* @memberof
|
|
689
|
+
* @memberof ActionsApiExportActionsAsYaml
|
|
1118
690
|
*/
|
|
1119
|
-
readonly
|
|
691
|
+
readonly productSlug: string
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Product version ID
|
|
695
|
+
* @type {number}
|
|
696
|
+
* @memberof ActionsApiExportActionsAsYaml
|
|
697
|
+
*/
|
|
698
|
+
readonly productVersionId: number
|
|
1120
699
|
|
|
1121
700
|
/**
|
|
1122
701
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1123
702
|
* @type {string}
|
|
1124
|
-
* @memberof
|
|
703
|
+
* @memberof ActionsApiExportActionsAsYaml
|
|
1125
704
|
*/
|
|
1126
705
|
readonly authorization?: string
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Optional list of action slugs to export; if omitted, all actions for the product version are exported
|
|
709
|
+
* @type {Array<string>}
|
|
710
|
+
* @memberof ActionsApiExportActionsAsYaml
|
|
711
|
+
*/
|
|
712
|
+
readonly actionSlugs?: Array<string>
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Include draft (disabled) actions
|
|
716
|
+
* @type {boolean}
|
|
717
|
+
* @memberof ActionsApiExportActionsAsYaml
|
|
718
|
+
*/
|
|
719
|
+
readonly includeDisabled?: boolean
|
|
1127
720
|
}
|
|
1128
721
|
|
|
1129
722
|
/**
|
|
@@ -1145,120 +738,36 @@ export interface ActionsApiGetActionRequest {
|
|
|
1145
738
|
* @memberof ActionsApiGetAction
|
|
1146
739
|
*/
|
|
1147
740
|
readonly authorization?: string
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
/**
|
|
1151
|
-
* Request parameters for getActionExecutionStatus operation in ActionsApi.
|
|
1152
|
-
* @export
|
|
1153
|
-
* @interface ActionsApiGetActionExecutionStatusRequest
|
|
1154
|
-
*/
|
|
1155
|
-
export interface ActionsApiGetActionExecutionStatusRequest {
|
|
1156
|
-
/**
|
|
1157
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1158
|
-
* @type {string}
|
|
1159
|
-
* @memberof ActionsApiGetActionExecutionStatus
|
|
1160
|
-
*/
|
|
1161
|
-
readonly authorization?: string
|
|
1162
741
|
|
|
1163
742
|
/**
|
|
1164
|
-
*
|
|
743
|
+
* Expand to fetch additional information (e.g. inputValidationSchema)
|
|
1165
744
|
* @type {string}
|
|
1166
|
-
* @memberof
|
|
1167
|
-
*/
|
|
1168
|
-
readonly executionCode?: string
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
* Correlation ID (e.g. webhook execution code that triggered this action execution)
|
|
1172
|
-
* @type {string}
|
|
1173
|
-
* @memberof ActionsApiGetActionExecutionStatus
|
|
745
|
+
* @memberof ActionsApiGetAction
|
|
1174
746
|
*/
|
|
1175
|
-
readonly
|
|
747
|
+
readonly expand?: string
|
|
1176
748
|
}
|
|
1177
749
|
|
|
1178
750
|
/**
|
|
1179
|
-
* Request parameters for
|
|
751
|
+
* Request parameters for importActionsFromYaml operation in ActionsApi.
|
|
1180
752
|
* @export
|
|
1181
|
-
* @interface
|
|
753
|
+
* @interface ActionsApiImportActionsFromYamlRequest
|
|
1182
754
|
*/
|
|
1183
|
-
export interface
|
|
755
|
+
export interface ActionsApiImportActionsFromYamlRequest {
|
|
1184
756
|
/**
|
|
1185
|
-
*
|
|
1186
|
-
* @type {
|
|
1187
|
-
* @memberof
|
|
757
|
+
*
|
|
758
|
+
* @type {ImportActionsFromYamlRequestDto}
|
|
759
|
+
* @memberof ActionsApiImportActionsFromYaml
|
|
1188
760
|
*/
|
|
1189
|
-
readonly
|
|
761
|
+
readonly importActionsFromYamlRequestDto: ImportActionsFromYamlRequestDto
|
|
1190
762
|
|
|
1191
763
|
/**
|
|
1192
764
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1193
765
|
* @type {string}
|
|
1194
|
-
* @memberof
|
|
766
|
+
* @memberof ActionsApiImportActionsFromYaml
|
|
1195
767
|
*/
|
|
1196
768
|
readonly authorization?: string
|
|
1197
769
|
}
|
|
1198
770
|
|
|
1199
|
-
/**
|
|
1200
|
-
* Request parameters for listActionExecutions operation in ActionsApi.
|
|
1201
|
-
* @export
|
|
1202
|
-
* @interface ActionsApiListActionExecutionsRequest
|
|
1203
|
-
*/
|
|
1204
|
-
export interface ActionsApiListActionExecutionsRequest {
|
|
1205
|
-
/**
|
|
1206
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1207
|
-
* @type {string}
|
|
1208
|
-
* @memberof ActionsApiListActionExecutions
|
|
1209
|
-
*/
|
|
1210
|
-
readonly authorization?: string
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1214
|
-
* @type {number}
|
|
1215
|
-
* @memberof ActionsApiListActionExecutions
|
|
1216
|
-
*/
|
|
1217
|
-
readonly pageSize?: number
|
|
1218
|
-
|
|
1219
|
-
/**
|
|
1220
|
-
* 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.
|
|
1221
|
-
* @type {string}
|
|
1222
|
-
* @memberof ActionsApiListActionExecutions
|
|
1223
|
-
*/
|
|
1224
|
-
readonly pageToken?: string
|
|
1225
|
-
|
|
1226
|
-
/**
|
|
1227
|
-
* 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>
|
|
1228
|
-
* @type {string}
|
|
1229
|
-
* @memberof ActionsApiListActionExecutions
|
|
1230
|
-
*/
|
|
1231
|
-
readonly filter?: string
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1235
|
-
* @type {string}
|
|
1236
|
-
* @memberof ActionsApiListActionExecutions
|
|
1237
|
-
*/
|
|
1238
|
-
readonly search?: string
|
|
1239
|
-
|
|
1240
|
-
/**
|
|
1241
|
-
* 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>
|
|
1242
|
-
* @type {string}
|
|
1243
|
-
* @memberof ActionsApiListActionExecutions
|
|
1244
|
-
*/
|
|
1245
|
-
readonly order?: string
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* 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/>
|
|
1249
|
-
* @type {string}
|
|
1250
|
-
* @memberof ActionsApiListActionExecutions
|
|
1251
|
-
*/
|
|
1252
|
-
readonly expand?: string
|
|
1253
|
-
|
|
1254
|
-
/**
|
|
1255
|
-
* 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>
|
|
1256
|
-
* @type {string}
|
|
1257
|
-
* @memberof ActionsApiListActionExecutions
|
|
1258
|
-
*/
|
|
1259
|
-
readonly filters?: string
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
771
|
/**
|
|
1263
772
|
* Request parameters for listActions operation in ActionsApi.
|
|
1264
773
|
* @export
|
|
@@ -1287,7 +796,7 @@ export interface ActionsApiListActionsRequest {
|
|
|
1287
796
|
readonly pageToken?: string
|
|
1288
797
|
|
|
1289
798
|
/**
|
|
1290
|
-
* Filter the response by one or multiple fields.
|
|
799
|
+
* 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, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1291
800
|
* @type {string}
|
|
1292
801
|
* @memberof ActionsApiListActions
|
|
1293
802
|
*/
|
|
@@ -1301,90 +810,27 @@ export interface ActionsApiListActionsRequest {
|
|
|
1301
810
|
readonly search?: string
|
|
1302
811
|
|
|
1303
812
|
/**
|
|
1304
|
-
* 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>
|
|
813
|
+
* 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, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt</i>
|
|
1305
814
|
* @type {string}
|
|
1306
815
|
* @memberof ActionsApiListActions
|
|
1307
816
|
*/
|
|
1308
817
|
readonly order?: string
|
|
1309
818
|
|
|
1310
819
|
/**
|
|
1311
|
-
* 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/>
|
|
820
|
+
* 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>
|
|
1312
821
|
* @type {string}
|
|
1313
822
|
* @memberof ActionsApiListActions
|
|
1314
823
|
*/
|
|
1315
824
|
readonly expand?: string
|
|
1316
825
|
|
|
1317
826
|
/**
|
|
1318
|
-
* Filters the response by one or multiple fields.
|
|
827
|
+
* 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, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1319
828
|
* @type {string}
|
|
1320
829
|
* @memberof ActionsApiListActions
|
|
1321
830
|
*/
|
|
1322
831
|
readonly filters?: string
|
|
1323
832
|
}
|
|
1324
833
|
|
|
1325
|
-
/**
|
|
1326
|
-
* Request parameters for listActions_4 operation in ActionsApi.
|
|
1327
|
-
* @export
|
|
1328
|
-
* @interface ActionsApiListActions0Request
|
|
1329
|
-
*/
|
|
1330
|
-
export interface ActionsApiListActions0Request {
|
|
1331
|
-
/**
|
|
1332
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1333
|
-
* @type {string}
|
|
1334
|
-
* @memberof ActionsApiListActions0
|
|
1335
|
-
*/
|
|
1336
|
-
readonly authorization?: string
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1340
|
-
* @type {number}
|
|
1341
|
-
* @memberof ActionsApiListActions0
|
|
1342
|
-
*/
|
|
1343
|
-
readonly pageSize?: number
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1347
|
-
* @type {string}
|
|
1348
|
-
* @memberof ActionsApiListActions0
|
|
1349
|
-
*/
|
|
1350
|
-
readonly pageToken?: string
|
|
1351
|
-
|
|
1352
|
-
/**
|
|
1353
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1354
|
-
* @type {string}
|
|
1355
|
-
* @memberof ActionsApiListActions0
|
|
1356
|
-
*/
|
|
1357
|
-
readonly filter?: string
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1361
|
-
* @type {string}
|
|
1362
|
-
* @memberof ActionsApiListActions0
|
|
1363
|
-
*/
|
|
1364
|
-
readonly search?: string
|
|
1365
|
-
|
|
1366
|
-
/**
|
|
1367
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt</i>
|
|
1368
|
-
* @type {string}
|
|
1369
|
-
* @memberof ActionsApiListActions0
|
|
1370
|
-
*/
|
|
1371
|
-
readonly order?: string
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1375
|
-
* @type {string}
|
|
1376
|
-
* @memberof ActionsApiListActions0
|
|
1377
|
-
*/
|
|
1378
|
-
readonly expand?: string
|
|
1379
|
-
|
|
1380
|
-
/**
|
|
1381
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1382
|
-
* @type {string}
|
|
1383
|
-
* @memberof ActionsApiListActions0
|
|
1384
|
-
*/
|
|
1385
|
-
readonly filters?: string
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
834
|
/**
|
|
1389
835
|
* Request parameters for updateAction operation in ActionsApi.
|
|
1390
836
|
* @export
|
|
@@ -1413,34 +859,6 @@ export interface ActionsApiUpdateActionRequest {
|
|
|
1413
859
|
readonly authorization?: string
|
|
1414
860
|
}
|
|
1415
861
|
|
|
1416
|
-
/**
|
|
1417
|
-
* Request parameters for updateAction_5 operation in ActionsApi.
|
|
1418
|
-
* @export
|
|
1419
|
-
* @interface ActionsApiUpdateAction0Request
|
|
1420
|
-
*/
|
|
1421
|
-
export interface ActionsApiUpdateAction0Request {
|
|
1422
|
-
/**
|
|
1423
|
-
* Action code
|
|
1424
|
-
* @type {string}
|
|
1425
|
-
* @memberof ActionsApiUpdateAction0
|
|
1426
|
-
*/
|
|
1427
|
-
readonly code: string
|
|
1428
|
-
|
|
1429
|
-
/**
|
|
1430
|
-
*
|
|
1431
|
-
* @type {UpdateActionRequestDto}
|
|
1432
|
-
* @memberof ActionsApiUpdateAction0
|
|
1433
|
-
*/
|
|
1434
|
-
readonly updateActionRequestDto: UpdateActionRequestDto
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1437
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1438
|
-
* @type {string}
|
|
1439
|
-
* @memberof ActionsApiUpdateAction0
|
|
1440
|
-
*/
|
|
1441
|
-
readonly authorization?: string
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
862
|
/**
|
|
1445
863
|
* ActionsApi - object-oriented interface
|
|
1446
864
|
* @export
|
|
@@ -1460,18 +878,6 @@ export class ActionsApi extends BaseAPI {
|
|
|
1460
878
|
return ActionsApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1461
879
|
}
|
|
1462
880
|
|
|
1463
|
-
/**
|
|
1464
|
-
* Creates a new action configuration **Required Permissions** \"action-management.actions.create\"
|
|
1465
|
-
* @summary Create the action
|
|
1466
|
-
* @param {ActionsApiCreateAction0Request} requestParameters Request parameters.
|
|
1467
|
-
* @param {*} [options] Override http request option.
|
|
1468
|
-
* @throws {RequiredError}
|
|
1469
|
-
* @memberof ActionsApi
|
|
1470
|
-
*/
|
|
1471
|
-
public createAction_1(requestParameters: ActionsApiCreateAction0Request, options?: AxiosRequestConfig) {
|
|
1472
|
-
return ActionsApiFp(this.configuration).createAction_1(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
881
|
/**
|
|
1476
882
|
* Deletes an action configuration by its code **Required Permissions** \"action-management.actions.delete\"
|
|
1477
883
|
* @summary Delete the action
|
|
@@ -1485,15 +891,15 @@ export class ActionsApi extends BaseAPI {
|
|
|
1485
891
|
}
|
|
1486
892
|
|
|
1487
893
|
/**
|
|
1488
|
-
*
|
|
1489
|
-
* @summary
|
|
1490
|
-
* @param {
|
|
894
|
+
* Exports entity actions for a product version as YAML (productSlug, productVersionId, entity_actions by type). **Required Permissions** \"action-management.actions.view\"
|
|
895
|
+
* @summary Retrieve the entity-actions-yaml
|
|
896
|
+
* @param {ActionsApiExportActionsAsYamlRequest} requestParameters Request parameters.
|
|
1491
897
|
* @param {*} [options] Override http request option.
|
|
1492
898
|
* @throws {RequiredError}
|
|
1493
899
|
* @memberof ActionsApi
|
|
1494
900
|
*/
|
|
1495
|
-
public
|
|
1496
|
-
return ActionsApiFp(this.configuration).
|
|
901
|
+
public exportActionsAsYaml(requestParameters: ActionsApiExportActionsAsYamlRequest, options?: AxiosRequestConfig) {
|
|
902
|
+
return ActionsApiFp(this.configuration).exportActionsAsYaml(requestParameters.productSlug, requestParameters.productVersionId, requestParameters.authorization, requestParameters.actionSlugs, requestParameters.includeDisabled, options).then((request) => request(this.axios, this.basePath));
|
|
1497
903
|
}
|
|
1498
904
|
|
|
1499
905
|
/**
|
|
@@ -1505,43 +911,19 @@ export class ActionsApi extends BaseAPI {
|
|
|
1505
911
|
* @memberof ActionsApi
|
|
1506
912
|
*/
|
|
1507
913
|
public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
|
|
1508
|
-
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
/**
|
|
1512
|
-
* Retrieves the latest action execution status by executionCode or correlationId **Required Permissions** \"action-management.actions.view\"
|
|
1513
|
-
* @summary Retrieve the actionExecution
|
|
1514
|
-
* @param {ActionsApiGetActionExecutionStatusRequest} requestParameters Request parameters.
|
|
1515
|
-
* @param {*} [options] Override http request option.
|
|
1516
|
-
* @throws {RequiredError}
|
|
1517
|
-
* @memberof ActionsApi
|
|
1518
|
-
*/
|
|
1519
|
-
public getActionExecutionStatus(requestParameters: ActionsApiGetActionExecutionStatusRequest = {}, options?: AxiosRequestConfig) {
|
|
1520
|
-
return ActionsApiFp(this.configuration).getActionExecutionStatus(requestParameters.authorization, requestParameters.executionCode, requestParameters.correlationId, options).then((request) => request(this.axios, this.basePath));
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* Retrieves an action configuration by its code **Required Permissions** \"action-management.actions.view\"
|
|
1525
|
-
* @summary Retrieve the action
|
|
1526
|
-
* @param {ActionsApiGetAction0Request} requestParameters Request parameters.
|
|
1527
|
-
* @param {*} [options] Override http request option.
|
|
1528
|
-
* @throws {RequiredError}
|
|
1529
|
-
* @memberof ActionsApi
|
|
1530
|
-
*/
|
|
1531
|
-
public getAction_3(requestParameters: ActionsApiGetAction0Request, options?: AxiosRequestConfig) {
|
|
1532
|
-
return ActionsApiFp(this.configuration).getAction_3(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
914
|
+
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1533
915
|
}
|
|
1534
916
|
|
|
1535
917
|
/**
|
|
1536
|
-
*
|
|
1537
|
-
* @summary
|
|
1538
|
-
* @param {
|
|
918
|
+
* 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\"
|
|
919
|
+
* @summary Update the entity-actions-yaml
|
|
920
|
+
* @param {ActionsApiImportActionsFromYamlRequest} requestParameters Request parameters.
|
|
1539
921
|
* @param {*} [options] Override http request option.
|
|
1540
922
|
* @throws {RequiredError}
|
|
1541
923
|
* @memberof ActionsApi
|
|
1542
924
|
*/
|
|
1543
|
-
public
|
|
1544
|
-
return ActionsApiFp(this.configuration).
|
|
925
|
+
public importActionsFromYaml(requestParameters: ActionsApiImportActionsFromYamlRequest, options?: AxiosRequestConfig) {
|
|
926
|
+
return ActionsApiFp(this.configuration).importActionsFromYaml(requestParameters.importActionsFromYamlRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1545
927
|
}
|
|
1546
928
|
|
|
1547
929
|
/**
|
|
@@ -1556,18 +938,6 @@ export class ActionsApi extends BaseAPI {
|
|
|
1556
938
|
return ActionsApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1557
939
|
}
|
|
1558
940
|
|
|
1559
|
-
/**
|
|
1560
|
-
* Lists all action configurations with optional filters **Required Permissions** \"action-management.actions.view\"
|
|
1561
|
-
* @summary List actions
|
|
1562
|
-
* @param {ActionsApiListActions0Request} requestParameters Request parameters.
|
|
1563
|
-
* @param {*} [options] Override http request option.
|
|
1564
|
-
* @throws {RequiredError}
|
|
1565
|
-
* @memberof ActionsApi
|
|
1566
|
-
*/
|
|
1567
|
-
public listActions_4(requestParameters: ActionsApiListActions0Request = {}, options?: AxiosRequestConfig) {
|
|
1568
|
-
return ActionsApiFp(this.configuration).listActions_4(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
941
|
/**
|
|
1572
942
|
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1573
943
|
* @summary Update the action
|
|
@@ -1579,16 +949,4 @@ export class ActionsApi extends BaseAPI {
|
|
|
1579
949
|
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
1580
950
|
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1581
951
|
}
|
|
1582
|
-
|
|
1583
|
-
/**
|
|
1584
|
-
* Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
|
|
1585
|
-
* @summary Update the action
|
|
1586
|
-
* @param {ActionsApiUpdateAction0Request} requestParameters Request parameters.
|
|
1587
|
-
* @param {*} [options] Override http request option.
|
|
1588
|
-
* @throws {RequiredError}
|
|
1589
|
-
* @memberof ActionsApi
|
|
1590
|
-
*/
|
|
1591
|
-
public updateAction_5(requestParameters: ActionsApiUpdateAction0Request, options?: AxiosRequestConfig) {
|
|
1592
|
-
return ActionsApiFp(this.configuration).updateAction_5(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1593
|
-
}
|
|
1594
952
|
}
|