@emilgroup/action-sdk-node 1.0.1-beta.32 → 1.0.1-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/README.md +2 -2
- package/api/actions-api.ts +150 -792
- package/api/executions-api.ts +119 -12
- package/dist/api/actions-api.d.ts +102 -466
- package/dist/api/actions-api.js +89 -609
- package/dist/api/executions-api.d.ts +69 -12
- package/dist/api/executions-api.js +102 -9
- package/dist/models/action-class.d.ts +38 -2
- package/dist/models/action-execution-class.d.ts +30 -0
- package/dist/models/create-action-request-dto.d.ts +31 -1
- package/dist/models/create-action-request-dto.js +6 -0
- package/dist/models/export-actions-as-yaml-response-class.d.ts +24 -0
- package/dist/models/export-actions-as-yaml-response-class.js +15 -0
- package/dist/models/import-actions-from-yaml-request-dto.d.ts +36 -0
- package/dist/models/import-actions-from-yaml-request-dto.js +15 -0
- package/dist/models/import-actions-from-yaml-response-class.d.ts +37 -0
- package/dist/models/import-actions-from-yaml-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/trigger-action-request-dto.d.ts +62 -0
- package/dist/models/trigger-action-request-dto.js +15 -0
- package/dist/models/trigger-action-response-class.d.ts +25 -0
- package/dist/models/trigger-action-response-class.js +15 -0
- package/dist/models/update-action-request-dto.d.ts +30 -0
- package/dist/models/update-action-request-dto.js +6 -0
- package/models/action-class.ts +38 -2
- package/models/action-execution-class.ts +30 -0
- package/models/create-action-request-dto.ts +34 -1
- package/models/export-actions-as-yaml-response-class.ts +30 -0
- package/models/import-actions-from-yaml-request-dto.ts +42 -0
- package/models/import-actions-from-yaml-response-class.ts +43 -0
- package/models/index.ts +5 -0
- package/models/trigger-action-request-dto.ts +66 -0
- package/models/trigger-action-response-class.ts +31 -0
- package/models/update-action-request-dto.ts +33 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
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 { ActionClass } from './action-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ImportActionsFromYamlResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ImportActionsFromYamlResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Normalized YAML for client to store
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ImportActionsFromYamlResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'yamlContent': string;
|
|
25
|
+
/**
|
|
26
|
+
* Actions that were created
|
|
27
|
+
* @type {Array<ActionClass>}
|
|
28
|
+
* @memberof ImportActionsFromYamlResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'createdActions': Array<ActionClass>;
|
|
31
|
+
/**
|
|
32
|
+
* Actions that were updated
|
|
33
|
+
* @type {Array<ActionClass>}
|
|
34
|
+
* @memberof ImportActionsFromYamlResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'updatedActions': Array<ActionClass>;
|
|
37
|
+
}
|
|
@@ -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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -2,12 +2,17 @@ export * from './action-class';
|
|
|
2
2
|
export * from './action-execution-class';
|
|
3
3
|
export * from './create-action-request-dto';
|
|
4
4
|
export * from './create-action-response-class';
|
|
5
|
+
export * from './export-actions-as-yaml-response-class';
|
|
5
6
|
export * from './get-action-execution-status-response-class';
|
|
6
7
|
export * from './get-action-response-class';
|
|
8
|
+
export * from './import-actions-from-yaml-request-dto';
|
|
9
|
+
export * from './import-actions-from-yaml-response-class';
|
|
7
10
|
export * from './inline-response200';
|
|
8
11
|
export * from './inline-response503';
|
|
9
12
|
export * from './list-action-executions-response-class';
|
|
10
13
|
export * from './list-actions-response-class';
|
|
14
|
+
export * from './trigger-action-request-dto';
|
|
15
|
+
export * from './trigger-action-response-class';
|
|
11
16
|
export * from './update-action-request-dto';
|
|
12
17
|
export * from './update-action-response-class';
|
|
13
18
|
export * from './workflow-output-reference-class';
|
package/dist/models/index.js
CHANGED
|
@@ -18,12 +18,17 @@ __exportStar(require("./action-class"), exports);
|
|
|
18
18
|
__exportStar(require("./action-execution-class"), exports);
|
|
19
19
|
__exportStar(require("./create-action-request-dto"), exports);
|
|
20
20
|
__exportStar(require("./create-action-response-class"), exports);
|
|
21
|
+
__exportStar(require("./export-actions-as-yaml-response-class"), exports);
|
|
21
22
|
__exportStar(require("./get-action-execution-status-response-class"), exports);
|
|
22
23
|
__exportStar(require("./get-action-response-class"), exports);
|
|
24
|
+
__exportStar(require("./import-actions-from-yaml-request-dto"), exports);
|
|
25
|
+
__exportStar(require("./import-actions-from-yaml-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);
|
|
26
29
|
__exportStar(require("./list-actions-response-class"), exports);
|
|
30
|
+
__exportStar(require("./trigger-action-request-dto"), exports);
|
|
31
|
+
__exportStar(require("./trigger-action-response-class"), exports);
|
|
27
32
|
__exportStar(require("./update-action-request-dto"), exports);
|
|
28
33
|
__exportStar(require("./update-action-response-class"), exports);
|
|
29
34
|
__exportStar(require("./workflow-output-reference-class"), exports);
|
|
@@ -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.
|
|
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
|
+
* If true, allow triggering a draft (disabled) action and run its workflow
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof TriggerActionRequestDto
|
|
42
|
+
*/
|
|
43
|
+
'force'?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Optional correlation ID for tracing/idempotency
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof TriggerActionRequestDto
|
|
48
|
+
*/
|
|
49
|
+
'correlationId'?: string;
|
|
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
|
+
}
|
|
@@ -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 });
|
|
@@ -45,10 +45,40 @@ export interface UpdateActionRequestDto {
|
|
|
45
45
|
* @memberof UpdateActionRequestDto
|
|
46
46
|
*/
|
|
47
47
|
'isEnabled'?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the action is available in the UI
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof UpdateActionRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'isAvailableInUi'?: boolean;
|
|
48
54
|
/**
|
|
49
55
|
* Detailed description of what this action does
|
|
50
56
|
* @type {string}
|
|
51
57
|
* @memberof UpdateActionRequestDto
|
|
52
58
|
*/
|
|
53
59
|
'description'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Entity type. When provided, productVersionId is required (and vice versa).
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UpdateActionRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'entityType'?: UpdateActionRequestDtoEntityTypeEnum;
|
|
66
|
+
/**
|
|
67
|
+
* Product version ID. When provided, entityType is required (and vice versa).
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof UpdateActionRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'productVersionId'?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Optional JSON Schema to validate input_payload when triggering the action
|
|
74
|
+
* @type {object}
|
|
75
|
+
* @memberof UpdateActionRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'inputValidationSchema'?: object;
|
|
54
78
|
}
|
|
79
|
+
export declare const UpdateActionRequestDtoEntityTypeEnum: {
|
|
80
|
+
readonly Policy: "POLICY";
|
|
81
|
+
readonly Lead: "LEAD";
|
|
82
|
+
readonly Claim: "CLAIM";
|
|
83
|
+
};
|
|
84
|
+
export type UpdateActionRequestDtoEntityTypeEnum = typeof UpdateActionRequestDtoEntityTypeEnum[keyof typeof UpdateActionRequestDtoEntityTypeEnum];
|
|
@@ -13,3 +13,9 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateActionRequestDtoEntityTypeEnum = void 0;
|
|
17
|
+
exports.UpdateActionRequestDtoEntityTypeEnum = {
|
|
18
|
+
Policy: 'POLICY',
|
|
19
|
+
Lead: 'LEAD',
|
|
20
|
+
Claim: 'CLAIM'
|
|
21
|
+
};
|
package/models/action-class.ts
CHANGED
|
@@ -49,13 +49,19 @@ export interface ActionClass {
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof ActionClass
|
|
51
51
|
*/
|
|
52
|
-
'workflowCode'
|
|
52
|
+
'workflowCode': string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* true = published (and triggerable), false = draft; only one published per code/slug/name
|
|
55
55
|
* @type {boolean}
|
|
56
56
|
* @memberof ActionClass
|
|
57
57
|
*/
|
|
58
58
|
'isEnabled': boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the action is available in the UI
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof ActionClass
|
|
63
|
+
*/
|
|
64
|
+
'isAvailableInUi'?: boolean;
|
|
59
65
|
/**
|
|
60
66
|
* Detailed description of what this action does
|
|
61
67
|
* @type {string}
|
|
@@ -86,5 +92,35 @@ export interface ActionClass {
|
|
|
86
92
|
* @memberof ActionClass
|
|
87
93
|
*/
|
|
88
94
|
'updatedBy': string;
|
|
95
|
+
/**
|
|
96
|
+
* Entity type: Policy, Lead, Claim
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ActionClass
|
|
99
|
+
*/
|
|
100
|
+
'entityType'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Product version ID
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof ActionClass
|
|
105
|
+
*/
|
|
106
|
+
'productVersionId'?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Derived from product_version.product_id
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof ActionClass
|
|
111
|
+
*/
|
|
112
|
+
'productSlug'?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Optional JSON Schema to validate input_payload when triggering the action (only populated when expand=inputValidationSchema)
|
|
115
|
+
* @type {object}
|
|
116
|
+
* @memberof ActionClass
|
|
117
|
+
*/
|
|
118
|
+
'inputValidationSchema'?: object;
|
|
119
|
+
/**
|
|
120
|
+
* Business version per action config
|
|
121
|
+
* @type {number}
|
|
122
|
+
* @memberof ActionClass
|
|
123
|
+
*/
|
|
124
|
+
'configVersion': number;
|
|
89
125
|
}
|
|
90
126
|
|
|
@@ -39,6 +39,12 @@ export interface ActionExecutionClass {
|
|
|
39
39
|
* @memberof ActionExecutionClass
|
|
40
40
|
*/
|
|
41
41
|
'actionCode': string;
|
|
42
|
+
/**
|
|
43
|
+
* Action config version (config_version) at trigger time for audit/tracing
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ActionExecutionClass
|
|
46
|
+
*/
|
|
47
|
+
'actionVersion': number;
|
|
42
48
|
/**
|
|
43
49
|
* Execution status
|
|
44
50
|
* @type {string}
|
|
@@ -105,5 +111,29 @@ export interface ActionExecutionClass {
|
|
|
105
111
|
* @memberof ActionExecutionClass
|
|
106
112
|
*/
|
|
107
113
|
'workflowOutputReference'?: WorkflowOutputReferenceClass;
|
|
114
|
+
/**
|
|
115
|
+
* When true, execution was triggered with force (e.g. draft/disabled action)
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof ActionExecutionClass
|
|
118
|
+
*/
|
|
119
|
+
'force'?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* For entity actions: code of the entity the action was run on (e.g. policy code, lead code)
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof ActionExecutionClass
|
|
124
|
+
*/
|
|
125
|
+
'entityCode'?: string;
|
|
126
|
+
/**
|
|
127
|
+
* For entity actions: entity type (POLICY, LEAD, CLAIM) for lookup
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof ActionExecutionClass
|
|
130
|
+
*/
|
|
131
|
+
'entityType'?: string;
|
|
132
|
+
/**
|
|
133
|
+
* JWT sub of who triggered the action (set when trigger is from API; null for webhook/system)
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof ActionExecutionClass
|
|
136
|
+
*/
|
|
137
|
+
'triggeredBySub'?: string;
|
|
108
138
|
}
|
|
109
139
|
|
|
@@ -39,16 +39,49 @@ export interface CreateActionRequestDto {
|
|
|
39
39
|
*/
|
|
40
40
|
'workflowCode': string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* true = published (triggerable), false = draft. Default true.
|
|
43
43
|
* @type {boolean}
|
|
44
44
|
* @memberof CreateActionRequestDto
|
|
45
45
|
*/
|
|
46
46
|
'isEnabled'?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the action is available in the UI
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof CreateActionRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'isAvailableInUi'?: boolean;
|
|
47
53
|
/**
|
|
48
54
|
* Detailed description of what this action does
|
|
49
55
|
* @type {string}
|
|
50
56
|
* @memberof CreateActionRequestDto
|
|
51
57
|
*/
|
|
52
58
|
'description'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Entity type. When provided, productVersionId is required (and vice versa).
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateActionRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'entityType'?: CreateActionRequestDtoEntityTypeEnum;
|
|
65
|
+
/**
|
|
66
|
+
* Product version ID. When provided, entityType is required (and vice versa).
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof CreateActionRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'productVersionId'?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Optional JSON Schema to validate input_payload when triggering the action
|
|
73
|
+
* @type {object}
|
|
74
|
+
* @memberof CreateActionRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'inputValidationSchema'?: object;
|
|
53
77
|
}
|
|
54
78
|
|
|
79
|
+
export const CreateActionRequestDtoEntityTypeEnum = {
|
|
80
|
+
Policy: 'POLICY',
|
|
81
|
+
Lead: 'LEAD',
|
|
82
|
+
Claim: 'CLAIM'
|
|
83
|
+
} as const;
|
|
84
|
+
|
|
85
|
+
export type CreateActionRequestDtoEntityTypeEnum = typeof CreateActionRequestDtoEntityTypeEnum[keyof typeof CreateActionRequestDtoEntityTypeEnum];
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ExportActionsAsYamlResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ExportActionsAsYamlResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Serialized YAML for the product version (all entity types)
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ExportActionsAsYamlResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'yamlContent': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ImportActionsFromYamlRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface ImportActionsFromYamlRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Product slug for the whole document
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ImportActionsFromYamlRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'productSlug': string;
|
|
29
|
+
/**
|
|
30
|
+
* Product version ID for the whole document
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ImportActionsFromYamlRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'productVersionId': number;
|
|
35
|
+
/**
|
|
36
|
+
* Full YAML body (entity_actions keyed by entity type)
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ImportActionsFromYamlRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'yamlContent': string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { ActionClass } from './action-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ImportActionsFromYamlResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ImportActionsFromYamlResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Normalized YAML for client to store
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ImportActionsFromYamlResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'yamlContent': string;
|
|
30
|
+
/**
|
|
31
|
+
* Actions that were created
|
|
32
|
+
* @type {Array<ActionClass>}
|
|
33
|
+
* @memberof ImportActionsFromYamlResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'createdActions': Array<ActionClass>;
|
|
36
|
+
/**
|
|
37
|
+
* Actions that were updated
|
|
38
|
+
* @type {Array<ActionClass>}
|
|
39
|
+
* @memberof ImportActionsFromYamlResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'updatedActions': Array<ActionClass>;
|
|
42
|
+
}
|
|
43
|
+
|
package/models/index.ts
CHANGED
|
@@ -2,12 +2,17 @@ export * from './action-class';
|
|
|
2
2
|
export * from './action-execution-class';
|
|
3
3
|
export * from './create-action-request-dto';
|
|
4
4
|
export * from './create-action-response-class';
|
|
5
|
+
export * from './export-actions-as-yaml-response-class';
|
|
5
6
|
export * from './get-action-execution-status-response-class';
|
|
6
7
|
export * from './get-action-response-class';
|
|
8
|
+
export * from './import-actions-from-yaml-request-dto';
|
|
9
|
+
export * from './import-actions-from-yaml-response-class';
|
|
7
10
|
export * from './inline-response200';
|
|
8
11
|
export * from './inline-response503';
|
|
9
12
|
export * from './list-action-executions-response-class';
|
|
10
13
|
export * from './list-actions-response-class';
|
|
14
|
+
export * from './trigger-action-request-dto';
|
|
15
|
+
export * from './trigger-action-response-class';
|
|
11
16
|
export * from './update-action-request-dto';
|
|
12
17
|
export * from './update-action-response-class';
|
|
13
18
|
export * from './workflow-output-reference-class';
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface TriggerActionRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface TriggerActionRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Action slug to trigger
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof TriggerActionRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'actionSlug': string;
|
|
29
|
+
/**
|
|
30
|
+
* 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.
|
|
31
|
+
* @type {{ [key: string]: object; }}
|
|
32
|
+
* @memberof TriggerActionRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'inputPayload'?: { [key: string]: object; };
|
|
35
|
+
/**
|
|
36
|
+
* If true, validate but do not create execution or publish
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof TriggerActionRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'dryRun'?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* If true, allow triggering a draft (disabled) action and run its workflow
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof TriggerActionRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'force'?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Optional correlation ID for tracing/idempotency
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof TriggerActionRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'correlationId'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* For entity actions: code of the entity the action is run on (e.g. policy code, lead code)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof TriggerActionRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'entityCode'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* For entity actions: entity type (e.g. Policy, Lead, Claim)
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof TriggerActionRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'entityType'?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { ActionExecutionClass } from './action-execution-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface TriggerActionResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface TriggerActionResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Created action execution (initially PENDING)
|
|
26
|
+
* @type {ActionExecutionClass}
|
|
27
|
+
* @memberof TriggerActionResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'actionExecution': ActionExecutionClass;
|
|
30
|
+
}
|
|
31
|
+
|