@emilgroup/action-sdk-node 1.0.1-beta.40 → 1.0.1-beta.46
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 +3 -0
- package/README.md +2 -2
- package/api/actions-api.ts +486 -99
- package/dist/api/actions-api.d.ts +296 -75
- package/dist/api/actions-api.js +374 -65
- package/dist/models/action-class.d.ts +6 -59
- package/dist/models/action-execution-class.d.ts +1 -1
- package/dist/models/action-version-class.d.ts +120 -0
- package/dist/models/action-version-class.js +21 -0
- package/dist/models/create-action-request-dto.d.ts +2 -2
- package/dist/models/get-action-version-response-class.d.ts +25 -0
- package/dist/models/get-action-version-response-class.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/list-action-versions-response-class.d.ts +43 -0
- package/dist/models/list-action-versions-response-class.js +15 -0
- package/dist/models/trigger-action-request-dto.d.ts +7 -7
- package/dist/models/update-action-request-dto.d.ts +2 -8
- package/models/action-class.ts +6 -59
- package/models/action-execution-class.ts +1 -1
- package/models/action-version-class.ts +129 -0
- package/models/create-action-request-dto.ts +2 -2
- package/models/get-action-version-response-class.ts +31 -0
- package/models/index.ts +3 -0
- package/models/list-action-versions-response-class.ts +49 -0
- package/models/trigger-action-request-dto.ts +7 -7
- package/models/update-action-request-dto.ts +2 -8
- package/package.json +1 -1
|
@@ -0,0 +1,129 @@
|
|
|
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 ActionVersionClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ActionVersionClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof ActionVersionClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Whether this version is the active/published one (only one per action config)
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof ActionVersionClass
|
|
33
|
+
*/
|
|
34
|
+
'isActive': boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Version number (1, 2, 3...)
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof ActionVersionClass
|
|
39
|
+
*/
|
|
40
|
+
'versionNumber': number;
|
|
41
|
+
/**
|
|
42
|
+
* Version code (unique id, e.g. acv_<nanoid>)
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ActionVersionClass
|
|
45
|
+
*/
|
|
46
|
+
'code': string;
|
|
47
|
+
/**
|
|
48
|
+
* Detailed description of what this action does
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ActionVersionClass
|
|
51
|
+
*/
|
|
52
|
+
'description'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* BPMN/workflow code (resolved from workflow_slug)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ActionVersionClass
|
|
57
|
+
*/
|
|
58
|
+
'workflowCode': string;
|
|
59
|
+
/**
|
|
60
|
+
* BPMN/workflow slug
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ActionVersionClass
|
|
63
|
+
*/
|
|
64
|
+
'workflowSlug': string;
|
|
65
|
+
/**
|
|
66
|
+
* Entity type: Policy, Lead, Claim
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ActionVersionClass
|
|
69
|
+
*/
|
|
70
|
+
'entityType'?: ActionVersionClassEntityTypeEnum;
|
|
71
|
+
/**
|
|
72
|
+
* Product version ID
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof ActionVersionClass
|
|
75
|
+
*/
|
|
76
|
+
'productVersionId'?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Derived from product_version.product_id
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof ActionVersionClass
|
|
81
|
+
*/
|
|
82
|
+
'productSlug'?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the action is available in the UI
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof ActionVersionClass
|
|
87
|
+
*/
|
|
88
|
+
'isAvailableInUi'?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Optional JSON Schema to validate input_payload when triggering (only when expand=inputValidationSchema)
|
|
91
|
+
* @type {object}
|
|
92
|
+
* @memberof ActionVersionClass
|
|
93
|
+
*/
|
|
94
|
+
'inputValidationSchema'?: object;
|
|
95
|
+
/**
|
|
96
|
+
* Time at which the object was created.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ActionVersionClass
|
|
99
|
+
*/
|
|
100
|
+
'createdAt': string;
|
|
101
|
+
/**
|
|
102
|
+
* Time at which the object was updated.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof ActionVersionClass
|
|
105
|
+
*/
|
|
106
|
+
'updatedAt': string;
|
|
107
|
+
/**
|
|
108
|
+
* Identifier of the user who created the record.
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof ActionVersionClass
|
|
111
|
+
*/
|
|
112
|
+
'createdBy': string;
|
|
113
|
+
/**
|
|
114
|
+
* Identifier of the user who last updated the record.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof ActionVersionClass
|
|
117
|
+
*/
|
|
118
|
+
'updatedBy': string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const ActionVersionClassEntityTypeEnum = {
|
|
122
|
+
Policy: 'POLICY',
|
|
123
|
+
Lead: 'LEAD',
|
|
124
|
+
Claim: 'CLAIM'
|
|
125
|
+
} as const;
|
|
126
|
+
|
|
127
|
+
export type ActionVersionClassEntityTypeEnum = typeof ActionVersionClassEntityTypeEnum[keyof typeof ActionVersionClassEntityTypeEnum];
|
|
128
|
+
|
|
129
|
+
|
|
@@ -27,7 +27,7 @@ export interface CreateActionRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'name': string;
|
|
29
29
|
/**
|
|
30
|
-
* Stable identifier; auto-generated from
|
|
30
|
+
* 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).
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof CreateActionRequestDto
|
|
33
33
|
*/
|
|
@@ -49,7 +49,7 @@ export interface CreateActionRequestDto {
|
|
|
49
49
|
* @type {boolean}
|
|
50
50
|
* @memberof CreateActionRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'
|
|
52
|
+
'isActive'?: boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Whether the action is available in the UI
|
|
55
55
|
* @type {boolean}
|
|
@@ -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 { ActionVersionClass } from './action-version-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetActionVersionResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetActionVersionResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The action version
|
|
26
|
+
* @type {ActionVersionClass}
|
|
27
|
+
* @memberof GetActionVersionResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'actionVersion': ActionVersionClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
export * from './action-class';
|
|
2
2
|
export * from './action-execution-class';
|
|
3
|
+
export * from './action-version-class';
|
|
3
4
|
export * from './create-action-request-dto';
|
|
4
5
|
export * from './create-action-response-class';
|
|
5
6
|
export * from './export-actions-as-yaml-response-class';
|
|
6
7
|
export * from './get-action-execution-status-response-class';
|
|
7
8
|
export * from './get-action-response-class';
|
|
9
|
+
export * from './get-action-version-response-class';
|
|
8
10
|
export * from './import-actions-from-yaml-request-dto';
|
|
9
11
|
export * from './import-actions-from-yaml-response-class';
|
|
10
12
|
export * from './inline-response200';
|
|
11
13
|
export * from './inline-response503';
|
|
12
14
|
export * from './list-action-executions-response-class';
|
|
15
|
+
export * from './list-action-versions-response-class';
|
|
13
16
|
export * from './list-actions-response-class';
|
|
14
17
|
export * from './trigger-action-request-dto';
|
|
15
18
|
export * from './trigger-action-response-class';
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { ActionVersionClass } from './action-version-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListActionVersionsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListActionVersionsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* List of action versions
|
|
26
|
+
* @type {Array<ActionVersionClass>}
|
|
27
|
+
* @memberof ListActionVersionsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<ActionVersionClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Token for next page
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListActionVersionsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
/**
|
|
37
|
+
* Number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListActionVersionsResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* Total number of versions
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ListActionVersionsResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'totalItems': number;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -27,7 +27,7 @@ export interface TriggerActionRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'actionSlug': string;
|
|
29
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.
|
|
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. Must be a JSON object (key-value map).
|
|
31
31
|
* @type {{ [key: string]: object; }}
|
|
32
32
|
* @memberof TriggerActionRequestDto
|
|
33
33
|
*/
|
|
@@ -39,17 +39,17 @@ export interface TriggerActionRequestDto {
|
|
|
39
39
|
*/
|
|
40
40
|
'dryRun'?: boolean;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {
|
|
42
|
+
* Correlation ID for tracing/idempotency
|
|
43
|
+
* @type {string}
|
|
44
44
|
* @memberof TriggerActionRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'
|
|
46
|
+
'correlationId'?: string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {
|
|
48
|
+
* If true, allow triggering a draft (disabled) action and run its workflow
|
|
49
|
+
* @type {boolean}
|
|
50
50
|
* @memberof TriggerActionRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'
|
|
52
|
+
'force'?: boolean;
|
|
53
53
|
/**
|
|
54
54
|
* For entity actions: code of the entity the action is run on (e.g. policy code, lead code)
|
|
55
55
|
* @type {string}
|
|
@@ -32,12 +32,6 @@ export interface UpdateActionRequestDto {
|
|
|
32
32
|
* @memberof UpdateActionRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'name'?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Stable identifier; unique per tenant
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof UpdateActionRequestDto
|
|
39
|
-
*/
|
|
40
|
-
'slug'?: string;
|
|
41
35
|
/**
|
|
42
36
|
* BPMN/workflow slug. When provided, productSlug and productVersionId are required to resolve the workflow.
|
|
43
37
|
* @type {string}
|
|
@@ -51,11 +45,11 @@ export interface UpdateActionRequestDto {
|
|
|
51
45
|
*/
|
|
52
46
|
'workflowCode'?: string;
|
|
53
47
|
/**
|
|
54
|
-
* Whether the action is
|
|
48
|
+
* Whether the action is published and can be triggered
|
|
55
49
|
* @type {boolean}
|
|
56
50
|
* @memberof UpdateActionRequestDto
|
|
57
51
|
*/
|
|
58
|
-
'
|
|
52
|
+
'isActive'?: boolean;
|
|
59
53
|
/**
|
|
60
54
|
* Whether the action is available in the UI
|
|
61
55
|
* @type {boolean}
|