@emilgroup/action-sdk 1.0.1-beta.20 → 1.0.1-beta.21

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.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +716 -0
  4. package/api.ts +2 -0
  5. package/dist/api/actions-api.d.ts +411 -0
  6. package/dist/api/actions-api.js +654 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/action-class.d.ts +84 -0
  10. package/dist/models/action-class.js +15 -0
  11. package/dist/models/create-action-request-dto.d.ts +48 -0
  12. package/dist/models/create-action-request-dto.js +15 -0
  13. package/dist/models/create-action-response-class.d.ts +25 -0
  14. package/dist/models/create-action-response-class.js +15 -0
  15. package/dist/models/get-action-response-class.d.ts +25 -0
  16. package/dist/models/get-action-response-class.js +15 -0
  17. package/dist/models/index.d.ts +7 -0
  18. package/dist/models/index.js +7 -0
  19. package/dist/models/list-actions-response-class.d.ts +43 -0
  20. package/dist/models/list-actions-response-class.js +15 -0
  21. package/dist/models/update-action-request-dto.d.ts +54 -0
  22. package/dist/models/update-action-request-dto.js +15 -0
  23. package/dist/models/update-action-response-class.d.ts +25 -0
  24. package/dist/models/update-action-response-class.js +15 -0
  25. package/models/action-class.ts +90 -0
  26. package/models/create-action-request-dto.ts +54 -0
  27. package/models/create-action-response-class.ts +31 -0
  28. package/models/get-action-response-class.ts +31 -0
  29. package/models/index.ts +7 -0
  30. package/models/list-actions-response-class.ts +49 -0
  31. package/models/update-action-request-dto.ts +60 -0
  32. package/models/update-action-response-class.ts +31 -0
  33. package/package.json +1 -1
@@ -0,0 +1,716 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL ActionService
5
+ * The EMIL ActionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateActionRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateActionResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetActionResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListActionsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateActionRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateActionResponseClass } from '../models';
35
+ /**
36
+ * ActionsApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const ActionsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * Creates a new action configuration
43
+ * @summary Create the action
44
+ * @param {CreateActionRequestDto} createActionRequestDto
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ createAction: async (createActionRequestDto: CreateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createActionRequestDto' is not null or undefined
51
+ assertParamExists('createAction', 'createActionRequestDto', createActionRequestDto)
52
+ const localVarPath = `/actionservice/v1/actions`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createActionRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * Deletes an action configuration by its code
90
+ * @summary Delete the action
91
+ * @param {string} code
92
+ * @param {any} action Unique identifier for the object.
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ deleteAction: async (code: string, action: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ // verify required parameter 'code' is not null or undefined
99
+ assertParamExists('deleteAction', 'code', code)
100
+ // verify required parameter 'action' is not null or undefined
101
+ assertParamExists('deleteAction', 'action', action)
102
+ const localVarPath = `/actionservice/v1/actions/{code}`
103
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)))
104
+ .replace(`{${"action"}}`, encodeURIComponent(String(action)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * Retrieves an action configuration by its code
139
+ * @summary Retrieve the action
140
+ * @param {string} code
141
+ * @param {any} action Unique identifier for the object.
142
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ getAction: async (code: string, action: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
+ // verify required parameter 'code' is not null or undefined
148
+ assertParamExists('getAction', 'code', code)
149
+ // verify required parameter 'action' is not null or undefined
150
+ assertParamExists('getAction', 'action', action)
151
+ const localVarPath = `/actionservice/v1/actions/{code}`
152
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)))
153
+ .replace(`{${"action"}}`, encodeURIComponent(String(action)));
154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
156
+ let baseOptions;
157
+ let baseAccessToken;
158
+ if (configuration) {
159
+ baseOptions = configuration.baseOptions;
160
+ baseAccessToken = configuration.accessToken;
161
+ }
162
+
163
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
164
+ const localVarHeaderParameter = {} as any;
165
+ const localVarQueryParameter = {} as any;
166
+
167
+ // authentication bearer required
168
+ // http bearer authentication required
169
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
170
+
171
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
172
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
173
+ }
174
+
175
+
176
+
177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
179
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
180
+
181
+ return {
182
+ url: toPathString(localVarUrlObj),
183
+ options: localVarRequestOptions,
184
+ };
185
+ },
186
+ /**
187
+ * Lists all action configurations with optional filters
188
+ * @summary List actions
189
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
190
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
191
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
192
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
193
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
194
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
195
+ * @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.&lt;br/&gt; &lt;br/&gt;
196
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ listActions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ const localVarPath = `/actionservice/v1/actions`;
202
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
204
+ let baseOptions;
205
+ let baseAccessToken;
206
+ if (configuration) {
207
+ baseOptions = configuration.baseOptions;
208
+ baseAccessToken = configuration.accessToken;
209
+ }
210
+
211
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
212
+ const localVarHeaderParameter = {} as any;
213
+ const localVarQueryParameter = {} as any;
214
+
215
+ // authentication bearer required
216
+ // http bearer authentication required
217
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
+
219
+ if (pageSize !== undefined) {
220
+ localVarQueryParameter['pageSize'] = pageSize;
221
+ }
222
+
223
+ if (pageToken !== undefined) {
224
+ localVarQueryParameter['pageToken'] = pageToken;
225
+ }
226
+
227
+ if (filter !== undefined) {
228
+ localVarQueryParameter['filter'] = filter;
229
+ }
230
+
231
+ if (search !== undefined) {
232
+ localVarQueryParameter['search'] = search;
233
+ }
234
+
235
+ if (order !== undefined) {
236
+ localVarQueryParameter['order'] = order;
237
+ }
238
+
239
+ if (expand !== undefined) {
240
+ localVarQueryParameter['expand'] = expand;
241
+ }
242
+
243
+ if (filters !== undefined) {
244
+ localVarQueryParameter['filters'] = filters;
245
+ }
246
+
247
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
248
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
249
+ }
250
+
251
+
252
+
253
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
256
+
257
+ return {
258
+ url: toPathString(localVarUrlObj),
259
+ options: localVarRequestOptions,
260
+ };
261
+ },
262
+ /**
263
+ * Updates an existing action configuration (patch semantics)
264
+ * @summary Update the action
265
+ * @param {string} code
266
+ * @param {any} action Unique identifier for the object.
267
+ * @param {UpdateActionRequestDto} updateActionRequestDto
268
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ updateAction: async (code: string, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
273
+ // verify required parameter 'code' is not null or undefined
274
+ assertParamExists('updateAction', 'code', code)
275
+ // verify required parameter 'action' is not null or undefined
276
+ assertParamExists('updateAction', 'action', action)
277
+ // verify required parameter 'updateActionRequestDto' is not null or undefined
278
+ assertParamExists('updateAction', 'updateActionRequestDto', updateActionRequestDto)
279
+ const localVarPath = `/actionservice/v1/actions/{code}`
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)))
281
+ .replace(`{${"action"}}`, encodeURIComponent(String(action)));
282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
284
+ let baseOptions;
285
+ let baseAccessToken;
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ baseAccessToken = configuration.accessToken;
289
+ }
290
+
291
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
292
+ const localVarHeaderParameter = {} as any;
293
+ const localVarQueryParameter = {} as any;
294
+
295
+ // authentication bearer required
296
+ // http bearer authentication required
297
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
298
+
299
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
300
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ }
302
+
303
+
304
+
305
+ localVarHeaderParameter['Content-Type'] = 'application/json';
306
+
307
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
310
+ localVarRequestOptions.data = serializeDataIfNeeded(updateActionRequestDto, localVarRequestOptions, configuration)
311
+
312
+ return {
313
+ url: toPathString(localVarUrlObj),
314
+ options: localVarRequestOptions,
315
+ };
316
+ },
317
+ }
318
+ };
319
+
320
+ /**
321
+ * ActionsApi - functional programming interface
322
+ * @export
323
+ */
324
+ export const ActionsApiFp = function(configuration?: Configuration) {
325
+ const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration)
326
+ return {
327
+ /**
328
+ * Creates a new action configuration
329
+ * @summary Create the action
330
+ * @param {CreateActionRequestDto} createActionRequestDto
331
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ async createAction(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateActionResponseClass>> {
336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAction(createActionRequestDto, authorization, options);
337
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
338
+ },
339
+ /**
340
+ * Deletes an action configuration by its code
341
+ * @summary Delete the action
342
+ * @param {string} code
343
+ * @param {any} action Unique identifier for the object.
344
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ async deleteAction(code: string, action: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
349
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction(code, action, authorization, options);
350
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
351
+ },
352
+ /**
353
+ * Retrieves an action configuration by its code
354
+ * @summary Retrieve the action
355
+ * @param {string} code
356
+ * @param {any} action Unique identifier for the object.
357
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ async getAction(code: string, action: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
362
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, action, authorization, options);
363
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
+ },
365
+ /**
366
+ * Lists all action configurations with optional filters
367
+ * @summary List actions
368
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
369
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
370
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
371
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
372
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
373
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
374
+ * @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.&lt;br/&gt; &lt;br/&gt;
375
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ async listActions(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>> {
380
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
381
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
382
+ },
383
+ /**
384
+ * Updates an existing action configuration (patch semantics)
385
+ * @summary Update the action
386
+ * @param {string} code
387
+ * @param {any} action Unique identifier for the object.
388
+ * @param {UpdateActionRequestDto} updateActionRequestDto
389
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ async updateAction(code: string, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
394
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, action, updateActionRequestDto, authorization, options);
395
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
396
+ },
397
+ }
398
+ };
399
+
400
+ /**
401
+ * ActionsApi - factory interface
402
+ * @export
403
+ */
404
+ export const ActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
405
+ const localVarFp = ActionsApiFp(configuration)
406
+ return {
407
+ /**
408
+ * Creates a new action configuration
409
+ * @summary Create the action
410
+ * @param {CreateActionRequestDto} createActionRequestDto
411
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ createAction(createActionRequestDto: CreateActionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateActionResponseClass> {
416
+ return localVarFp.createAction(createActionRequestDto, authorization, options).then((request) => request(axios, basePath));
417
+ },
418
+ /**
419
+ * Deletes an action configuration by its code
420
+ * @summary Delete the action
421
+ * @param {string} code
422
+ * @param {any} action Unique identifier for the object.
423
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ deleteAction(code: string, action: any, authorization?: string, options?: any): AxiosPromise<void> {
428
+ return localVarFp.deleteAction(code, action, authorization, options).then((request) => request(axios, basePath));
429
+ },
430
+ /**
431
+ * Retrieves an action configuration by its code
432
+ * @summary Retrieve the action
433
+ * @param {string} code
434
+ * @param {any} action Unique identifier for the object.
435
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ getAction(code: string, action: any, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
440
+ return localVarFp.getAction(code, action, authorization, options).then((request) => request(axios, basePath));
441
+ },
442
+ /**
443
+ * Lists all action configurations with optional filters
444
+ * @summary List actions
445
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
446
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
447
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
448
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
449
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
450
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
451
+ * @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.&lt;br/&gt; &lt;br/&gt;
452
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ listActions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionsResponseClass> {
457
+ return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
458
+ },
459
+ /**
460
+ * Updates an existing action configuration (patch semantics)
461
+ * @summary Update the action
462
+ * @param {string} code
463
+ * @param {any} action Unique identifier for the object.
464
+ * @param {UpdateActionRequestDto} updateActionRequestDto
465
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
466
+ * @param {*} [options] Override http request option.
467
+ * @throws {RequiredError}
468
+ */
469
+ updateAction(code: string, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
470
+ return localVarFp.updateAction(code, action, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
471
+ },
472
+ };
473
+ };
474
+
475
+ /**
476
+ * Request parameters for createAction operation in ActionsApi.
477
+ * @export
478
+ * @interface ActionsApiCreateActionRequest
479
+ */
480
+ export interface ActionsApiCreateActionRequest {
481
+ /**
482
+ *
483
+ * @type {CreateActionRequestDto}
484
+ * @memberof ActionsApiCreateAction
485
+ */
486
+ readonly createActionRequestDto: CreateActionRequestDto
487
+
488
+ /**
489
+ * Bearer Token: provided by the login endpoint under the name accessToken.
490
+ * @type {string}
491
+ * @memberof ActionsApiCreateAction
492
+ */
493
+ readonly authorization?: string
494
+ }
495
+
496
+ /**
497
+ * Request parameters for deleteAction operation in ActionsApi.
498
+ * @export
499
+ * @interface ActionsApiDeleteActionRequest
500
+ */
501
+ export interface ActionsApiDeleteActionRequest {
502
+ /**
503
+ *
504
+ * @type {string}
505
+ * @memberof ActionsApiDeleteAction
506
+ */
507
+ readonly code: string
508
+
509
+ /**
510
+ * Unique identifier for the object.
511
+ * @type {any}
512
+ * @memberof ActionsApiDeleteAction
513
+ */
514
+ readonly action: any
515
+
516
+ /**
517
+ * Bearer Token: provided by the login endpoint under the name accessToken.
518
+ * @type {string}
519
+ * @memberof ActionsApiDeleteAction
520
+ */
521
+ readonly authorization?: string
522
+ }
523
+
524
+ /**
525
+ * Request parameters for getAction operation in ActionsApi.
526
+ * @export
527
+ * @interface ActionsApiGetActionRequest
528
+ */
529
+ export interface ActionsApiGetActionRequest {
530
+ /**
531
+ *
532
+ * @type {string}
533
+ * @memberof ActionsApiGetAction
534
+ */
535
+ readonly code: string
536
+
537
+ /**
538
+ * Unique identifier for the object.
539
+ * @type {any}
540
+ * @memberof ActionsApiGetAction
541
+ */
542
+ readonly action: any
543
+
544
+ /**
545
+ * Bearer Token: provided by the login endpoint under the name accessToken.
546
+ * @type {string}
547
+ * @memberof ActionsApiGetAction
548
+ */
549
+ readonly authorization?: string
550
+ }
551
+
552
+ /**
553
+ * Request parameters for listActions operation in ActionsApi.
554
+ * @export
555
+ * @interface ActionsApiListActionsRequest
556
+ */
557
+ export interface ActionsApiListActionsRequest {
558
+ /**
559
+ * Bearer Token: provided by the login endpoint under the name accessToken.
560
+ * @type {string}
561
+ * @memberof ActionsApiListActions
562
+ */
563
+ readonly authorization?: string
564
+
565
+ /**
566
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
567
+ * @type {number}
568
+ * @memberof ActionsApiListActions
569
+ */
570
+ readonly pageSize?: number
571
+
572
+ /**
573
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
574
+ * @type {string}
575
+ * @memberof ActionsApiListActions
576
+ */
577
+ readonly pageToken?: string
578
+
579
+ /**
580
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
581
+ * @type {string}
582
+ * @memberof ActionsApiListActions
583
+ */
584
+ readonly filter?: string
585
+
586
+ /**
587
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
588
+ * @type {string}
589
+ * @memberof ActionsApiListActions
590
+ */
591
+ readonly search?: string
592
+
593
+ /**
594
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
595
+ * @type {string}
596
+ * @memberof ActionsApiListActions
597
+ */
598
+ readonly order?: string
599
+
600
+ /**
601
+ * 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.&lt;br/&gt; &lt;br/&gt;
602
+ * @type {string}
603
+ * @memberof ActionsApiListActions
604
+ */
605
+ readonly expand?: string
606
+
607
+ /**
608
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
609
+ * @type {string}
610
+ * @memberof ActionsApiListActions
611
+ */
612
+ readonly filters?: string
613
+ }
614
+
615
+ /**
616
+ * Request parameters for updateAction operation in ActionsApi.
617
+ * @export
618
+ * @interface ActionsApiUpdateActionRequest
619
+ */
620
+ export interface ActionsApiUpdateActionRequest {
621
+ /**
622
+ *
623
+ * @type {string}
624
+ * @memberof ActionsApiUpdateAction
625
+ */
626
+ readonly code: string
627
+
628
+ /**
629
+ * Unique identifier for the object.
630
+ * @type {any}
631
+ * @memberof ActionsApiUpdateAction
632
+ */
633
+ readonly action: any
634
+
635
+ /**
636
+ *
637
+ * @type {UpdateActionRequestDto}
638
+ * @memberof ActionsApiUpdateAction
639
+ */
640
+ readonly updateActionRequestDto: UpdateActionRequestDto
641
+
642
+ /**
643
+ * Bearer Token: provided by the login endpoint under the name accessToken.
644
+ * @type {string}
645
+ * @memberof ActionsApiUpdateAction
646
+ */
647
+ readonly authorization?: string
648
+ }
649
+
650
+ /**
651
+ * ActionsApi - object-oriented interface
652
+ * @export
653
+ * @class ActionsApi
654
+ * @extends {BaseAPI}
655
+ */
656
+ export class ActionsApi extends BaseAPI {
657
+ /**
658
+ * Creates a new action configuration
659
+ * @summary Create the action
660
+ * @param {ActionsApiCreateActionRequest} requestParameters Request parameters.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ * @memberof ActionsApi
664
+ */
665
+ public createAction(requestParameters: ActionsApiCreateActionRequest, options?: AxiosRequestConfig) {
666
+ return ActionsApiFp(this.configuration).createAction(requestParameters.createActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
667
+ }
668
+
669
+ /**
670
+ * Deletes an action configuration by its code
671
+ * @summary Delete the action
672
+ * @param {ActionsApiDeleteActionRequest} requestParameters Request parameters.
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ * @memberof ActionsApi
676
+ */
677
+ public deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig) {
678
+ return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.action, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
679
+ }
680
+
681
+ /**
682
+ * Retrieves an action configuration by its code
683
+ * @summary Retrieve the action
684
+ * @param {ActionsApiGetActionRequest} requestParameters Request parameters.
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ * @memberof ActionsApi
688
+ */
689
+ public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
690
+ return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.action, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
691
+ }
692
+
693
+ /**
694
+ * Lists all action configurations with optional filters
695
+ * @summary List actions
696
+ * @param {ActionsApiListActionsRequest} requestParameters Request parameters.
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ * @memberof ActionsApi
700
+ */
701
+ public listActions(requestParameters: ActionsApiListActionsRequest = {}, options?: AxiosRequestConfig) {
702
+ 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));
703
+ }
704
+
705
+ /**
706
+ * Updates an existing action configuration (patch semantics)
707
+ * @summary Update the action
708
+ * @param {ActionsApiUpdateActionRequest} requestParameters Request parameters.
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ * @memberof ActionsApi
712
+ */
713
+ public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
714
+ return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.action, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
715
+ }
716
+ }