@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
@@ -34,6 +34,12 @@ export interface ActionExecutionClass {
34
34
  * @memberof ActionExecutionClass
35
35
  */
36
36
  'actionCode': string;
37
+ /**
38
+ * Action config version (version_number) at trigger time for audit/tracing
39
+ * @type {number}
40
+ * @memberof ActionExecutionClass
41
+ */
42
+ 'actionVersion': number;
37
43
  /**
38
44
  * Execution status
39
45
  * @type {string}
@@ -104,4 +110,34 @@ export interface ActionExecutionClass {
104
110
  * @memberof ActionExecutionClass
105
111
  */
106
112
  'workflowOutputReference'?: WorkflowOutputReferenceClass;
113
+ /**
114
+ * When true, execution was triggered with force (e.g. draft/disabled action)
115
+ * @type {boolean}
116
+ * @memberof ActionExecutionClass
117
+ */
118
+ 'force'?: boolean;
119
+ /**
120
+ * For entity actions: code of the entity the action was run on (e.g. policy code, lead code)
121
+ * @type {string}
122
+ * @memberof ActionExecutionClass
123
+ */
124
+ 'entityCode'?: string;
125
+ /**
126
+ * For entity actions: entity type (POLICY, LEAD, CLAIM) for lookup
127
+ * @type {string}
128
+ * @memberof ActionExecutionClass
129
+ */
130
+ 'entityType'?: string;
131
+ /**
132
+ * JWT sub of who triggered the action (set when trigger is from API; null for webhook/system)
133
+ * @type {string}
134
+ * @memberof ActionExecutionClass
135
+ */
136
+ 'triggeredBySub'?: string;
137
+ /**
138
+ * When the action was triggered (set at creation, same for all status rows of this execution)
139
+ * @type {string}
140
+ * @memberof ActionExecutionClass
141
+ */
142
+ 'triggeredAt'?: string;
107
143
  }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * EMIL ActionService
3
+ * The EMIL ActionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ActionRefClass
16
+ */
17
+ export interface ActionRefClass {
18
+ /**
19
+ * Action code
20
+ * @type {string}
21
+ * @memberof ActionRefClass
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Action name
26
+ * @type {string}
27
+ * @memberof ActionRefClass
28
+ */
29
+ 'name': string;
30
+ /**
31
+ * Action slug
32
+ * @type {string}
33
+ * @memberof ActionRefClass
34
+ */
35
+ 'slug': string;
36
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ActionService
6
+ * The EMIL ActionService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,127 @@
1
+ /**
2
+ * EMIL ActionService
3
+ * The EMIL ActionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ActionRefClass } from './action-ref-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ActionVersionClass
17
+ */
18
+ export interface ActionVersionClass {
19
+ /**
20
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
21
+ * @type {number}
22
+ * @memberof ActionVersionClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * Whether this version is the active/published one (only one per action config)
27
+ * @type {boolean}
28
+ * @memberof ActionVersionClass
29
+ */
30
+ 'isActive': boolean;
31
+ /**
32
+ * Version number (1, 2, 3...)
33
+ * @type {number}
34
+ * @memberof ActionVersionClass
35
+ */
36
+ 'versionNumber': number;
37
+ /**
38
+ * Version code (unique id, e.g. acv_<nanoid>)
39
+ * @type {string}
40
+ * @memberof ActionVersionClass
41
+ */
42
+ 'code': string;
43
+ /**
44
+ * Detailed description of what this action does
45
+ * @type {string}
46
+ * @memberof ActionVersionClass
47
+ */
48
+ 'description'?: string;
49
+ /**
50
+ * BPMN/workflow code (resolved from workflow_slug)
51
+ * @type {string}
52
+ * @memberof ActionVersionClass
53
+ */
54
+ 'workflowCode': string;
55
+ /**
56
+ * BPMN/workflow slug
57
+ * @type {string}
58
+ * @memberof ActionVersionClass
59
+ */
60
+ 'workflowSlug': string;
61
+ /**
62
+ * Entity type: Policy, Lead, Claim
63
+ * @type {string}
64
+ * @memberof ActionVersionClass
65
+ */
66
+ 'entityType'?: ActionVersionClassEntityTypeEnum;
67
+ /**
68
+ * Product version ID
69
+ * @type {number}
70
+ * @memberof ActionVersionClass
71
+ */
72
+ 'productVersionId'?: number;
73
+ /**
74
+ * Derived from product_version.product_id
75
+ * @type {string}
76
+ * @memberof ActionVersionClass
77
+ */
78
+ 'productSlug'?: string;
79
+ /**
80
+ * Whether the action is available in the UI
81
+ * @type {boolean}
82
+ * @memberof ActionVersionClass
83
+ */
84
+ 'isAvailableInUi'?: boolean;
85
+ /**
86
+ * Optional JSON Schema to validate input_payload when triggering (only when expand=inputValidationSchema)
87
+ * @type {object}
88
+ * @memberof ActionVersionClass
89
+ */
90
+ 'inputValidationSchema'?: object;
91
+ /**
92
+ * Time at which the object was created.
93
+ * @type {string}
94
+ * @memberof ActionVersionClass
95
+ */
96
+ 'createdAt': string;
97
+ /**
98
+ * Time at which the object was updated.
99
+ * @type {string}
100
+ * @memberof ActionVersionClass
101
+ */
102
+ 'updatedAt': string;
103
+ /**
104
+ * Identifier of the user who created the record.
105
+ * @type {string}
106
+ * @memberof ActionVersionClass
107
+ */
108
+ 'createdBy': string;
109
+ /**
110
+ * Identifier of the user who last updated the record.
111
+ * @type {string}
112
+ * @memberof ActionVersionClass
113
+ */
114
+ 'updatedBy': string;
115
+ /**
116
+ * Parent action (code, name, slug). Set when listing versions so clients know which action each version belongs to.
117
+ * @type {ActionRefClass}
118
+ * @memberof ActionVersionClass
119
+ */
120
+ 'action'?: ActionRefClass;
121
+ }
122
+ export declare const ActionVersionClassEntityTypeEnum: {
123
+ readonly Policy: "POLICY";
124
+ readonly Lead: "LEAD";
125
+ readonly Claim: "CLAIM";
126
+ };
127
+ export type ActionVersionClassEntityTypeEnum = typeof ActionVersionClassEntityTypeEnum[keyof typeof ActionVersionClassEntityTypeEnum];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ActionService
6
+ * The EMIL ActionService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ActionVersionClassEntityTypeEnum = void 0;
17
+ exports.ActionVersionClassEntityTypeEnum = {
18
+ Policy: 'POLICY',
19
+ Lead: 'LEAD',
20
+ Claim: 'CLAIM'
21
+ };
@@ -22,27 +22,69 @@ export interface CreateActionRequestDto {
22
22
  */
23
23
  'name': string;
24
24
  /**
25
- * Stable identifier; auto-generated from action_name if not provided
25
+ * Stable identifier; auto-generated from name if not provided. Lowercase letters, digits, hyphens only; no spaces, special symbols, umlauts, or leading/trailing hyphen (max 200 chars).
26
26
  * @type {string}
27
27
  * @memberof CreateActionRequestDto
28
28
  */
29
29
  'slug'?: string;
30
30
  /**
31
- * BPMN/workflow code to execute when this action is triggered
31
+ * BPMN/workflow slug. When provided, productSlug and productVersionId are required to resolve the workflow. At least one of workflowSlug or workflowCode required.
32
32
  * @type {string}
33
33
  * @memberof CreateActionRequestDto
34
34
  */
35
- 'workflowCode': string;
35
+ 'workflowSlug'?: string;
36
36
  /**
37
- * Whether the action is enabled and can be triggered
37
+ * BPMN/workflow code. At least one of workflowSlug or workflowCode is required.
38
+ * @type {string}
39
+ * @memberof CreateActionRequestDto
40
+ */
41
+ 'workflowCode'?: string;
42
+ /**
43
+ * true = published (triggerable), false = draft. Default true.
38
44
  * @type {boolean}
39
45
  * @memberof CreateActionRequestDto
40
46
  */
41
- 'isEnabled'?: boolean;
47
+ 'isActive'?: boolean;
48
+ /**
49
+ * Whether the action is available in the UI
50
+ * @type {boolean}
51
+ * @memberof CreateActionRequestDto
52
+ */
53
+ 'isAvailableInUi'?: boolean;
42
54
  /**
43
55
  * Detailed description of what this action does
44
56
  * @type {string}
45
57
  * @memberof CreateActionRequestDto
46
58
  */
47
59
  'description'?: string;
60
+ /**
61
+ * Entity type. When provided, productVersionId is required (and vice versa).
62
+ * @type {string}
63
+ * @memberof CreateActionRequestDto
64
+ */
65
+ 'entityType'?: CreateActionRequestDtoEntityTypeEnum;
66
+ /**
67
+ * Product version ID. Required for entity actions (when entityType is set).
68
+ * @type {number}
69
+ * @memberof CreateActionRequestDto
70
+ */
71
+ 'productVersionId'?: number;
72
+ /**
73
+ * Product slug. Required for entity actions (when entityType is set). Must match the product that owns productVersionId.
74
+ * @type {string}
75
+ * @memberof CreateActionRequestDto
76
+ */
77
+ 'productSlug'?: string;
78
+ /**
79
+ * Optional JSON Schema to validate input_payload when triggering the action
80
+ * @type {object}
81
+ * @memberof CreateActionRequestDto
82
+ */
83
+ 'inputValidationSchema'?: object;
48
84
  }
85
+ export declare const CreateActionRequestDtoEntityTypeEnum: {
86
+ readonly Policy: "POLICY";
87
+ readonly Lead: "LEAD";
88
+ readonly Claim: "CLAIM";
89
+ };
90
+ export type CreateActionRequestDtoEntityTypeEnum = typeof CreateActionRequestDtoEntityTypeEnum[keyof typeof CreateActionRequestDtoEntityTypeEnum];
@@ -13,3 +13,9 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateActionRequestDtoEntityTypeEnum = void 0;
17
+ exports.CreateActionRequestDtoEntityTypeEnum = {
18
+ Policy: 'POLICY',
19
+ Lead: 'LEAD',
20
+ Claim: 'CLAIM'
21
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL ActionService
3
+ * The EMIL ActionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ActionVersionClass } from './action-version-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetActionVersionResponseClass
17
+ */
18
+ export interface GetActionVersionResponseClass {
19
+ /**
20
+ * The action version
21
+ * @type {ActionVersionClass}
22
+ * @memberof GetActionVersionResponseClass
23
+ */
24
+ 'actionVersion': ActionVersionClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ActionService
6
+ * The EMIL ActionService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +1,19 @@
1
1
  export * from './action-class';
2
2
  export * from './action-execution-class';
3
+ export * from './action-ref-class';
4
+ export * from './action-version-class';
3
5
  export * from './create-action-request-dto';
4
6
  export * from './create-action-response-class';
5
7
  export * from './get-action-execution-status-response-class';
6
8
  export * from './get-action-response-class';
9
+ export * from './get-action-version-response-class';
7
10
  export * from './inline-response200';
8
11
  export * from './inline-response503';
9
12
  export * from './list-action-executions-response-class';
13
+ export * from './list-action-versions-response-class';
10
14
  export * from './list-actions-response-class';
15
+ export * from './trigger-action-request-dto';
16
+ export * from './trigger-action-response-class';
11
17
  export * from './update-action-request-dto';
12
18
  export * from './update-action-response-class';
13
19
  export * from './workflow-output-reference-class';
@@ -16,14 +16,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./action-class"), exports);
18
18
  __exportStar(require("./action-execution-class"), exports);
19
+ __exportStar(require("./action-ref-class"), exports);
20
+ __exportStar(require("./action-version-class"), exports);
19
21
  __exportStar(require("./create-action-request-dto"), exports);
20
22
  __exportStar(require("./create-action-response-class"), exports);
21
23
  __exportStar(require("./get-action-execution-status-response-class"), exports);
22
24
  __exportStar(require("./get-action-response-class"), exports);
25
+ __exportStar(require("./get-action-version-response-class"), exports);
23
26
  __exportStar(require("./inline-response200"), exports);
24
27
  __exportStar(require("./inline-response503"), exports);
25
28
  __exportStar(require("./list-action-executions-response-class"), exports);
29
+ __exportStar(require("./list-action-versions-response-class"), exports);
26
30
  __exportStar(require("./list-actions-response-class"), exports);
31
+ __exportStar(require("./trigger-action-request-dto"), exports);
32
+ __exportStar(require("./trigger-action-response-class"), exports);
27
33
  __exportStar(require("./update-action-request-dto"), exports);
28
34
  __exportStar(require("./update-action-response-class"), exports);
29
35
  __exportStar(require("./workflow-output-reference-class"), exports);
@@ -17,27 +17,27 @@ import { ActionExecutionClass } from './action-execution-class';
17
17
  */
18
18
  export interface ListActionExecutionsResponseClass {
19
19
  /**
20
- * List of action executions
21
- * @type {Array<ActionExecutionClass>}
20
+ * Next page token.
21
+ * @type {string}
22
22
  * @memberof ListActionExecutionsResponseClass
23
23
  */
24
- 'items': Array<ActionExecutionClass>;
24
+ 'nextPageToken': string;
25
25
  /**
26
- * Token for the next page
27
- * @type {string}
26
+ * Total amount of items.
27
+ * @type {number}
28
28
  * @memberof ListActionExecutionsResponseClass
29
29
  */
30
- 'nextPageToken': string;
30
+ 'totalItems': number;
31
31
  /**
32
- * Number of items per page
32
+ * Items per page.
33
33
  * @type {number}
34
34
  * @memberof ListActionExecutionsResponseClass
35
35
  */
36
36
  'itemsPerPage': number;
37
37
  /**
38
- * Total number of items
39
- * @type {number}
38
+ * List of action executions
39
+ * @type {Array<ActionExecutionClass>}
40
40
  * @memberof ListActionExecutionsResponseClass
41
41
  */
42
- 'totalItems': number;
42
+ 'items': Array<ActionExecutionClass>;
43
43
  }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * EMIL ActionService
3
+ * The EMIL ActionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ActionVersionClass } from './action-version-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListActionVersionsResponseClass
17
+ */
18
+ export interface ListActionVersionsResponseClass {
19
+ /**
20
+ * Next page token.
21
+ * @type {string}
22
+ * @memberof ListActionVersionsResponseClass
23
+ */
24
+ 'nextPageToken': string;
25
+ /**
26
+ * Total amount of items.
27
+ * @type {number}
28
+ * @memberof ListActionVersionsResponseClass
29
+ */
30
+ 'totalItems': number;
31
+ /**
32
+ * Items per page.
33
+ * @type {number}
34
+ * @memberof ListActionVersionsResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * List of action versions
39
+ * @type {Array<ActionVersionClass>}
40
+ * @memberof ListActionVersionsResponseClass
41
+ */
42
+ 'items': Array<ActionVersionClass>;
43
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ActionService
6
+ * The EMIL ActionService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,27 +17,27 @@ import { ActionClass } from './action-class';
17
17
  */
18
18
  export interface ListActionsResponseClass {
19
19
  /**
20
- * List of action configurations
21
- * @type {Array<ActionClass>}
20
+ * Next page token.
21
+ * @type {string}
22
22
  * @memberof ListActionsResponseClass
23
23
  */
24
- 'items': Array<ActionClass>;
24
+ 'nextPageToken': string;
25
25
  /**
26
- * Token for retrieving the next page
27
- * @type {string}
26
+ * Total amount of items.
27
+ * @type {number}
28
28
  * @memberof ListActionsResponseClass
29
29
  */
30
- 'nextPageToken': string;
30
+ 'totalItems': number;
31
31
  /**
32
- * Number of items per page
32
+ * Items per page.
33
33
  * @type {number}
34
34
  * @memberof ListActionsResponseClass
35
35
  */
36
36
  'itemsPerPage': number;
37
37
  /**
38
- * Total number of items across all pages
39
- * @type {number}
38
+ * List of action configurations
39
+ * @type {Array<ActionClass>}
40
40
  * @memberof ListActionsResponseClass
41
41
  */
42
- 'totalItems': number;
42
+ 'items': Array<ActionClass>;
43
43
  }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * EMIL ActionService
3
+ * The EMIL ActionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TriggerActionRequestDto
16
+ */
17
+ export interface TriggerActionRequestDto {
18
+ /**
19
+ * Action slug to trigger
20
+ * @type {string}
21
+ * @memberof TriggerActionRequestDto
22
+ */
23
+ 'actionSlug': string;
24
+ /**
25
+ * Input payload for the action execution. When the action has input_validation_schema set, this payload is validated against it; validation failures return 400 with validation errors. Must be a JSON object (key-value map).
26
+ * @type {{ [key: string]: object; }}
27
+ * @memberof TriggerActionRequestDto
28
+ */
29
+ 'inputPayload'?: {
30
+ [key: string]: object;
31
+ };
32
+ /**
33
+ * If true, validate but do not create execution or publish
34
+ * @type {boolean}
35
+ * @memberof TriggerActionRequestDto
36
+ */
37
+ 'dryRun'?: boolean;
38
+ /**
39
+ * Correlation ID for tracing/idempotency
40
+ * @type {string}
41
+ * @memberof TriggerActionRequestDto
42
+ */
43
+ 'correlationId'?: string;
44
+ /**
45
+ * If true, allow triggering a draft (disabled) action and run its workflow
46
+ * @type {boolean}
47
+ * @memberof TriggerActionRequestDto
48
+ */
49
+ 'force'?: boolean;
50
+ /**
51
+ * For entity actions: code of the entity the action is run on (e.g. policy code, lead code)
52
+ * @type {string}
53
+ * @memberof TriggerActionRequestDto
54
+ */
55
+ 'entityCode'?: string;
56
+ /**
57
+ * For entity actions: entity type (e.g. Policy, Lead, Claim)
58
+ * @type {string}
59
+ * @memberof TriggerActionRequestDto
60
+ */
61
+ 'entityType'?: string;
62
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ActionService
6
+ * The EMIL ActionService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL ActionService
3
+ * The EMIL ActionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ActionExecutionClass } from './action-execution-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TriggerActionResponseClass
17
+ */
18
+ export interface TriggerActionResponseClass {
19
+ /**
20
+ * Created action execution (initially PENDING)
21
+ * @type {ActionExecutionClass}
22
+ * @memberof TriggerActionResponseClass
23
+ */
24
+ 'actionExecution': ActionExecutionClass;
25
+ }