@emilgroup/action-sdk 1.1.1-beta.7 → 1.2.1-beta.10

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 (56) hide show
  1. package/.openapi-generator/FILES +8 -1
  2. package/README.md +2 -2
  3. package/api/action-client-api.ts +1709 -0
  4. package/api/actions-api.ts +201 -495
  5. package/api/executions-api.ts +119 -12
  6. package/api/{default-api.ts → health-api.ts} +13 -13
  7. package/api.ts +4 -2
  8. package/base.ts +1 -0
  9. package/dist/api/action-client-api.d.ts +973 -0
  10. package/dist/api/action-client-api.js +1416 -0
  11. package/dist/api/actions-api.d.ts +165 -321
  12. package/dist/api/actions-api.js +136 -410
  13. package/dist/api/executions-api.d.ts +69 -12
  14. package/dist/api/executions-api.js +102 -9
  15. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  16. package/dist/api/{default-api.js → health-api.js} +22 -22
  17. package/dist/api.d.ts +2 -1
  18. package/dist/api.js +2 -1
  19. package/dist/base.d.ts +2 -1
  20. package/dist/base.js +1 -0
  21. package/dist/models/action-class.d.ts +9 -20
  22. package/dist/models/action-execution-class.d.ts +36 -0
  23. package/dist/models/action-ref-class.d.ts +36 -0
  24. package/dist/models/action-ref-class.js +15 -0
  25. package/dist/models/action-version-class.d.ts +127 -0
  26. package/dist/models/action-version-class.js +21 -0
  27. package/dist/models/create-action-request-dto.d.ts +47 -5
  28. package/dist/models/create-action-request-dto.js +6 -0
  29. package/dist/models/get-action-version-response-class.d.ts +25 -0
  30. package/dist/models/get-action-version-response-class.js +15 -0
  31. package/dist/models/index.d.ts +6 -0
  32. package/dist/models/index.js +6 -0
  33. package/dist/models/list-action-executions-response-class.d.ts +10 -10
  34. package/dist/models/list-action-versions-response-class.d.ts +43 -0
  35. package/dist/models/list-action-versions-response-class.js +15 -0
  36. package/dist/models/list-actions-response-class.d.ts +10 -10
  37. package/dist/models/trigger-action-request-dto.d.ts +62 -0
  38. package/dist/models/trigger-action-request-dto.js +15 -0
  39. package/dist/models/trigger-action-response-class.d.ts +25 -0
  40. package/dist/models/trigger-action-response-class.js +15 -0
  41. package/dist/models/update-action-request-dto.d.ts +41 -5
  42. package/dist/models/update-action-request-dto.js +6 -0
  43. package/models/action-class.ts +9 -20
  44. package/models/action-execution-class.ts +36 -0
  45. package/models/action-ref-class.ts +42 -0
  46. package/models/action-version-class.ts +136 -0
  47. package/models/create-action-request-dto.ts +50 -5
  48. package/models/get-action-version-response-class.ts +31 -0
  49. package/models/index.ts +6 -0
  50. package/models/list-action-executions-response-class.ts +10 -10
  51. package/models/list-action-versions-response-class.ts +49 -0
  52. package/models/list-actions-response-class.ts +10 -10
  53. package/models/trigger-action-request-dto.ts +66 -0
  54. package/models/trigger-action-response-class.ts +31 -0
  55. package/models/update-action-request-dto.ts +44 -5
  56. package/package.json +2 -2
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
24
24
  import { GetActionExecutionStatusResponseClass } from '../models';
25
25
  // @ts-ignore
26
26
  import { ListActionExecutionsResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { TriggerActionRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { TriggerActionResponseClass } from '../models';
27
31
  /**
28
32
  * ExecutionsApi - axios parameter creator
29
33
  * @export
@@ -87,11 +91,11 @@ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configur
87
91
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
92
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
89
93
  * @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.
90
- * @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>
94
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy</i>
91
95
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
92
- * @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>
96
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt</i>
93
97
  * @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/>
94
- * @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>
98
+ * @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, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy</i>
95
99
  * @param {*} [options] Override http request option.
96
100
  * @throws {RequiredError}
97
101
  */
@@ -152,6 +156,53 @@ export const ExecutionsApiAxiosParamCreator = function (configuration?: Configur
152
156
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
157
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
154
158
 
159
+ return {
160
+ url: toPathString(localVarUrlObj),
161
+ options: localVarRequestOptions,
162
+ };
163
+ },
164
+ /**
165
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
166
+ * @summary Create the actionExecution
167
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
168
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ triggerAction: async (triggerActionRequestDto: TriggerActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
173
+ // verify required parameter 'triggerActionRequestDto' is not null or undefined
174
+ assertParamExists('triggerAction', 'triggerActionRequestDto', triggerActionRequestDto)
175
+ const localVarPath = `/actionservice/v1/actions/trigger`;
176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
178
+ let baseOptions;
179
+ let baseAccessToken;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ baseAccessToken = configuration.accessToken;
183
+ }
184
+
185
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
186
+ const localVarHeaderParameter = {} as any;
187
+ const localVarQueryParameter = {} as any;
188
+
189
+ // authentication bearer required
190
+ // http bearer authentication required
191
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
192
+
193
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
194
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
195
+ }
196
+
197
+
198
+
199
+ localVarHeaderParameter['Content-Type'] = 'application/json';
200
+
201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
204
+ localVarRequestOptions.data = serializeDataIfNeeded(triggerActionRequestDto, localVarRequestOptions, configuration)
205
+
155
206
  return {
156
207
  url: toPathString(localVarUrlObj),
157
208
  options: localVarRequestOptions,
@@ -186,11 +237,11 @@ export const ExecutionsApiFp = function(configuration?: Configuration) {
186
237
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
238
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
188
239
  * @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.
189
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
240
+ * @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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
190
241
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
191
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
242
+ * @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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
192
243
  * @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;
193
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
244
+ * @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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
194
245
  * @param {*} [options] Override http request option.
195
246
  * @throws {RequiredError}
196
247
  */
@@ -198,6 +249,18 @@ export const ExecutionsApiFp = function(configuration?: Configuration) {
198
249
  const localVarAxiosArgs = await localVarAxiosParamCreator.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
199
250
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
200
251
  },
252
+ /**
253
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
254
+ * @summary Create the actionExecution
255
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
256
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ async triggerAction(triggerActionRequestDto: TriggerActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TriggerActionResponseClass>> {
261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAction(triggerActionRequestDto, authorization, options);
262
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
263
+ },
201
264
  }
202
265
  };
203
266
 
@@ -226,17 +289,28 @@ export const ExecutionsApiFactory = function (configuration?: Configuration, bas
226
289
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
290
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
291
  * @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.
229
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
292
+ * @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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
230
293
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
231
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
294
+ * @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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
232
295
  * @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;
233
- * @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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
296
+ * @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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
234
297
  * @param {*} [options] Override http request option.
235
298
  * @throws {RequiredError}
236
299
  */
237
300
  listActionExecutions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionExecutionsResponseClass> {
238
301
  return localVarFp.listActionExecutions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
239
302
  },
303
+ /**
304
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
305
+ * @summary Create the actionExecution
306
+ * @param {TriggerActionRequestDto} triggerActionRequestDto
307
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ triggerAction(triggerActionRequestDto: TriggerActionRequestDto, authorization?: string, options?: any): AxiosPromise<TriggerActionResponseClass> {
312
+ return localVarFp.triggerAction(triggerActionRequestDto, authorization, options).then((request) => request(axios, basePath));
313
+ },
240
314
  };
241
315
  };
242
316
 
@@ -296,7 +370,7 @@ export interface ExecutionsApiListActionExecutionsRequest {
296
370
  readonly pageToken?: string
297
371
 
298
372
  /**
299
- * 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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
373
+ * 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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
300
374
  * @type {string}
301
375
  * @memberof ExecutionsApiListActionExecutions
302
376
  */
@@ -310,7 +384,7 @@ export interface ExecutionsApiListActionExecutionsRequest {
310
384
  readonly search?: string
311
385
 
312
386
  /**
313
- * 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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt&lt;/i&gt;
387
+ * 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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, triggeredAt, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, createdAt, updatedAt&lt;/i&gt;
314
388
  * @type {string}
315
389
  * @memberof ExecutionsApiListActionExecutions
316
390
  */
@@ -324,13 +398,34 @@ export interface ExecutionsApiListActionExecutionsRequest {
324
398
  readonly expand?: string
325
399
 
326
400
  /**
327
- * 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, executionCode, actionCode, actionSlug, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, completedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
401
+ * 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, executionCode, actionCode, actionSlug, actionVersion, entityCode, entityType, triggeredBySub, status, triggeredBy, triggerSource, correlationId, workflowInstanceCode, force, completedAt, triggeredAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
328
402
  * @type {string}
329
403
  * @memberof ExecutionsApiListActionExecutions
330
404
  */
331
405
  readonly filters?: string
332
406
  }
333
407
 
408
+ /**
409
+ * Request parameters for triggerAction operation in ExecutionsApi.
410
+ * @export
411
+ * @interface ExecutionsApiTriggerActionRequest
412
+ */
413
+ export interface ExecutionsApiTriggerActionRequest {
414
+ /**
415
+ *
416
+ * @type {TriggerActionRequestDto}
417
+ * @memberof ExecutionsApiTriggerAction
418
+ */
419
+ readonly triggerActionRequestDto: TriggerActionRequestDto
420
+
421
+ /**
422
+ * Bearer Token: provided by the login endpoint under the name accessToken.
423
+ * @type {string}
424
+ * @memberof ExecutionsApiTriggerAction
425
+ */
426
+ readonly authorization?: string
427
+ }
428
+
334
429
  /**
335
430
  * ExecutionsApi - object-oriented interface
336
431
  * @export
@@ -361,4 +456,16 @@ export class ExecutionsApi extends BaseAPI {
361
456
  public listActionExecutions(requestParameters: ExecutionsApiListActionExecutionsRequest = {}, options?: AxiosRequestConfig) {
362
457
  return ExecutionsApiFp(this.configuration).listActionExecutions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
363
458
  }
459
+
460
+ /**
461
+ * Triggers an action execution. When the action has an input_validation_schema, the input payload is validated against it; invalid payloads return HTTP 400 with a body containing message and errors (JSON Schema validation errors). **Required Permissions** \"action-management.actions.run\"
462
+ * @summary Create the actionExecution
463
+ * @param {ExecutionsApiTriggerActionRequest} requestParameters Request parameters.
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ * @memberof ExecutionsApi
467
+ */
468
+ public triggerAction(requestParameters: ExecutionsApiTriggerActionRequest, options?: AxiosRequestConfig) {
469
+ return ExecutionsApiFp(this.configuration).triggerAction(requestParameters.triggerActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
470
+ }
364
471
  }
@@ -25,10 +25,10 @@ import { InlineResponse200 } from '../models';
25
25
  // @ts-ignore
26
26
  import { InlineResponse503 } from '../models';
27
27
  /**
28
- * DefaultApi - axios parameter creator
28
+ * HealthApi - axios parameter creator
29
29
  * @export
30
30
  */
31
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
31
+ export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
32
32
  return {
33
33
  /**
34
34
  * Returns the health status of the ActionService service. This endpoint is used to monitor the operational status of the ActionService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
@@ -66,11 +66,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
66
66
  };
67
67
 
68
68
  /**
69
- * DefaultApi - functional programming interface
69
+ * HealthApi - functional programming interface
70
70
  * @export
71
71
  */
72
- export const DefaultApiFp = function(configuration?: Configuration) {
73
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
72
+ export const HealthApiFp = function(configuration?: Configuration) {
73
+ const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
74
74
  return {
75
75
  /**
76
76
  * Returns the health status of the ActionService service. This endpoint is used to monitor the operational status of the ActionService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
@@ -86,11 +86,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
86
86
  };
87
87
 
88
88
  /**
89
- * DefaultApi - factory interface
89
+ * HealthApi - factory interface
90
90
  * @export
91
91
  */
92
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
93
- const localVarFp = DefaultApiFp(configuration)
92
+ export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
93
+ const localVarFp = HealthApiFp(configuration)
94
94
  return {
95
95
  /**
96
96
  * Returns the health status of the ActionService service. This endpoint is used to monitor the operational status of the ActionService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
@@ -105,20 +105,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
105
105
  };
106
106
 
107
107
  /**
108
- * DefaultApi - object-oriented interface
108
+ * HealthApi - object-oriented interface
109
109
  * @export
110
- * @class DefaultApi
110
+ * @class HealthApi
111
111
  * @extends {BaseAPI}
112
112
  */
113
- export class DefaultApi extends BaseAPI {
113
+ export class HealthApi extends BaseAPI {
114
114
  /**
115
115
  * Returns the health status of the ActionService service. This endpoint is used to monitor the operational status of the ActionService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
116
116
  * @summary Health Check
117
117
  * @param {*} [options] Override http request option.
118
118
  * @throws {RequiredError}
119
- * @memberof DefaultApi
119
+ * @memberof HealthApi
120
120
  */
121
121
  public check(options?: AxiosRequestConfig) {
122
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
122
+ return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
123
123
  }
124
124
  }
package/api.ts CHANGED
@@ -20,12 +20,14 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
+ import { ActionClientApi } from './api';
23
24
  import { ActionsApi } from './api';
24
- import { DefaultApi } from './api';
25
25
  import { ExecutionsApi } from './api';
26
+ import { HealthApi } from './api';
26
27
 
27
28
 
29
+ export * from './api/action-client-api';
28
30
  export * from './api/actions-api';
29
- export * from './api/default-api';
30
31
  export * from './api/executions-api';
32
+ export * from './api/health-api';
31
33
 
package/base.ts CHANGED
@@ -53,6 +53,7 @@ export enum Environment {
53
53
  Staging = 'https://apiv2-staging.emil.de',
54
54
  Development = 'https://apiv2-dev.emil.de',
55
55
  ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
56
+ StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
56
57
  }
57
58
 
58
59
  let _retry_count = 0