@emilgroup/action-sdk-node 1.0.1-beta.41 → 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.
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ActionVersionClass } from './action-version-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -28,47 +29,17 @@ export interface ActionClass {
28
29
  */
29
30
  'code': string;
30
31
  /**
31
- * Human readable action name
32
+ * Human readable action name (from active version)
32
33
  * @type {string}
33
34
  * @memberof ActionClass
34
35
  */
35
36
  'name': string;
36
37
  /**
37
- * Stable identifier; unique per tenant
38
+ * Stable identifier; unique per tenant (from active version)
38
39
  * @type {string}
39
40
  * @memberof ActionClass
40
41
  */
41
42
  'slug': string;
42
- /**
43
- * BPMN/workflow slug identifying the workflow to execute when this action is triggered
44
- * @type {string}
45
- * @memberof ActionClass
46
- */
47
- 'workflowSlug': string;
48
- /**
49
- * BPMN/workflow code resolved from workflow_slug or provided directly (used when triggering)
50
- * @type {string}
51
- * @memberof ActionClass
52
- */
53
- 'workflowCode': string;
54
- /**
55
- * true = published (and triggerable), false = draft; only one published per code/slug/name
56
- * @type {boolean}
57
- * @memberof ActionClass
58
- */
59
- 'isEnabled': boolean;
60
- /**
61
- * Whether the action is available in the UI
62
- * @type {boolean}
63
- * @memberof ActionClass
64
- */
65
- 'isAvailableInUi'?: boolean;
66
- /**
67
- * Detailed description of what this action does
68
- * @type {string}
69
- * @memberof ActionClass
70
- */
71
- 'description'?: string;
72
43
  /**
73
44
  * Time at which the object was created.
74
45
  * @type {string}
@@ -94,33 +65,9 @@ export interface ActionClass {
94
65
  */
95
66
  'updatedBy': string;
96
67
  /**
97
- * Entity type: Policy, Lead, Claim
98
- * @type {string}
99
- * @memberof ActionClass
100
- */
101
- 'entityType'?: string;
102
- /**
103
- * Product version ID
104
- * @type {number}
105
- * @memberof ActionClass
106
- */
107
- 'productVersionId'?: number;
108
- /**
109
- * Derived from product_version.product_id
110
- * @type {string}
111
- * @memberof ActionClass
112
- */
113
- 'productSlug'?: string;
114
- /**
115
- * Optional JSON Schema to validate input_payload when triggering the action (only populated when expand=inputValidationSchema)
116
- * @type {object}
117
- * @memberof ActionClass
118
- */
119
- 'inputValidationSchema'?: object;
120
- /**
121
- * Business version per action config
122
- * @type {number}
68
+ * No expand: empty. expand=versions: active version only. All versions: use listActionVersions.
69
+ * @type {Array<ActionVersionClass>}
123
70
  * @memberof ActionClass
124
71
  */
125
- 'configVersion': number;
72
+ 'versions': Array<ActionVersionClass>;
126
73
  }
@@ -35,7 +35,7 @@ export interface ActionExecutionClass {
35
35
  */
36
36
  'actionCode': string;
37
37
  /**
38
- * Action config version (config_version) at trigger time for audit/tracing
38
+ * Action config version (version_number) at trigger time for audit/tracing
39
39
  * @type {number}
40
40
  * @memberof ActionExecutionClass
41
41
  */
@@ -0,0 +1,120 @@
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 ActionVersionClass
16
+ */
17
+ export interface ActionVersionClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof ActionVersionClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Whether this version is the active/published one (only one per action config)
26
+ * @type {boolean}
27
+ * @memberof ActionVersionClass
28
+ */
29
+ 'isActive': boolean;
30
+ /**
31
+ * Version number (1, 2, 3...)
32
+ * @type {number}
33
+ * @memberof ActionVersionClass
34
+ */
35
+ 'versionNumber': number;
36
+ /**
37
+ * Version code (unique id, e.g. acv_<nanoid>)
38
+ * @type {string}
39
+ * @memberof ActionVersionClass
40
+ */
41
+ 'code': string;
42
+ /**
43
+ * Detailed description of what this action does
44
+ * @type {string}
45
+ * @memberof ActionVersionClass
46
+ */
47
+ 'description'?: string;
48
+ /**
49
+ * BPMN/workflow code (resolved from workflow_slug)
50
+ * @type {string}
51
+ * @memberof ActionVersionClass
52
+ */
53
+ 'workflowCode': string;
54
+ /**
55
+ * BPMN/workflow slug
56
+ * @type {string}
57
+ * @memberof ActionVersionClass
58
+ */
59
+ 'workflowSlug': string;
60
+ /**
61
+ * Entity type: Policy, Lead, Claim
62
+ * @type {string}
63
+ * @memberof ActionVersionClass
64
+ */
65
+ 'entityType'?: ActionVersionClassEntityTypeEnum;
66
+ /**
67
+ * Product version ID
68
+ * @type {number}
69
+ * @memberof ActionVersionClass
70
+ */
71
+ 'productVersionId'?: number;
72
+ /**
73
+ * Derived from product_version.product_id
74
+ * @type {string}
75
+ * @memberof ActionVersionClass
76
+ */
77
+ 'productSlug'?: string;
78
+ /**
79
+ * Whether the action is available in the UI
80
+ * @type {boolean}
81
+ * @memberof ActionVersionClass
82
+ */
83
+ 'isAvailableInUi'?: boolean;
84
+ /**
85
+ * Optional JSON Schema to validate input_payload when triggering (only when expand=inputValidationSchema)
86
+ * @type {object}
87
+ * @memberof ActionVersionClass
88
+ */
89
+ 'inputValidationSchema'?: object;
90
+ /**
91
+ * Time at which the object was created.
92
+ * @type {string}
93
+ * @memberof ActionVersionClass
94
+ */
95
+ 'createdAt': string;
96
+ /**
97
+ * Time at which the object was updated.
98
+ * @type {string}
99
+ * @memberof ActionVersionClass
100
+ */
101
+ 'updatedAt': string;
102
+ /**
103
+ * Identifier of the user who created the record.
104
+ * @type {string}
105
+ * @memberof ActionVersionClass
106
+ */
107
+ 'createdBy': string;
108
+ /**
109
+ * Identifier of the user who last updated the record.
110
+ * @type {string}
111
+ * @memberof ActionVersionClass
112
+ */
113
+ 'updatedBy': string;
114
+ }
115
+ export declare const ActionVersionClassEntityTypeEnum: {
116
+ readonly Policy: "POLICY";
117
+ readonly Lead: "LEAD";
118
+ readonly Claim: "CLAIM";
119
+ };
120
+ 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
+ };
@@ -44,7 +44,7 @@ export interface CreateActionRequestDto {
44
44
  * @type {boolean}
45
45
  * @memberof CreateActionRequestDto
46
46
  */
47
- 'isEnabled'?: boolean;
47
+ 'isActive'?: boolean;
48
48
  /**
49
49
  * Whether the action is available in the UI
50
50
  * @type {boolean}
@@ -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,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';
@@ -16,16 +16,19 @@ 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-version-class"), exports);
19
20
  __exportStar(require("./create-action-request-dto"), exports);
20
21
  __exportStar(require("./create-action-response-class"), exports);
21
22
  __exportStar(require("./export-actions-as-yaml-response-class"), exports);
22
23
  __exportStar(require("./get-action-execution-status-response-class"), exports);
23
24
  __exportStar(require("./get-action-response-class"), exports);
25
+ __exportStar(require("./get-action-version-response-class"), exports);
24
26
  __exportStar(require("./import-actions-from-yaml-request-dto"), exports);
25
27
  __exportStar(require("./import-actions-from-yaml-response-class"), exports);
26
28
  __exportStar(require("./inline-response200"), exports);
27
29
  __exportStar(require("./inline-response503"), exports);
28
30
  __exportStar(require("./list-action-executions-response-class"), exports);
31
+ __exportStar(require("./list-action-versions-response-class"), exports);
29
32
  __exportStar(require("./list-actions-response-class"), exports);
30
33
  __exportStar(require("./trigger-action-request-dto"), exports);
31
34
  __exportStar(require("./trigger-action-response-class"), exports);
@@ -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
+ * List of action versions
21
+ * @type {Array<ActionVersionClass>}
22
+ * @memberof ListActionVersionsResponseClass
23
+ */
24
+ 'items': Array<ActionVersionClass>;
25
+ /**
26
+ * Token for next page
27
+ * @type {string}
28
+ * @memberof ListActionVersionsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof ListActionVersionsResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total number of versions
39
+ * @type {number}
40
+ * @memberof ListActionVersionsResponseClass
41
+ */
42
+ 'totalItems': number;
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 });
@@ -36,17 +36,17 @@ export interface TriggerActionRequestDto {
36
36
  */
37
37
  'dryRun'?: boolean;
38
38
  /**
39
- * If true, allow triggering a draft (disabled) action and run its workflow
40
- * @type {boolean}
39
+ * Correlation ID for tracing/idempotency
40
+ * @type {string}
41
41
  * @memberof TriggerActionRequestDto
42
42
  */
43
- 'force'?: boolean;
43
+ 'correlationId'?: string;
44
44
  /**
45
- * Optional correlation ID for tracing/idempotency
46
- * @type {string}
45
+ * If true, allow triggering a draft (disabled) action and run its workflow
46
+ * @type {boolean}
47
47
  * @memberof TriggerActionRequestDto
48
48
  */
49
- 'correlationId'?: string;
49
+ 'force'?: boolean;
50
50
  /**
51
51
  * For entity actions: code of the entity the action is run on (e.g. policy code, lead code)
52
52
  * @type {string}
@@ -40,11 +40,11 @@ export interface UpdateActionRequestDto {
40
40
  */
41
41
  'workflowCode'?: string;
42
42
  /**
43
- * Whether the action is enabled and can be triggered
43
+ * Whether the action is published and can be triggered
44
44
  * @type {boolean}
45
45
  * @memberof UpdateActionRequestDto
46
46
  */
47
- 'isEnabled'?: boolean;
47
+ 'isActive'?: boolean;
48
48
  /**
49
49
  * Whether the action is available in the UI
50
50
  * @type {boolean}
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { ActionVersionClass } from './action-version-class';
16
17
 
17
18
  /**
18
19
  *
@@ -33,47 +34,17 @@ export interface ActionClass {
33
34
  */
34
35
  'code': string;
35
36
  /**
36
- * Human readable action name
37
+ * Human readable action name (from active version)
37
38
  * @type {string}
38
39
  * @memberof ActionClass
39
40
  */
40
41
  'name': string;
41
42
  /**
42
- * Stable identifier; unique per tenant
43
+ * Stable identifier; unique per tenant (from active version)
43
44
  * @type {string}
44
45
  * @memberof ActionClass
45
46
  */
46
47
  'slug': string;
47
- /**
48
- * BPMN/workflow slug identifying the workflow to execute when this action is triggered
49
- * @type {string}
50
- * @memberof ActionClass
51
- */
52
- 'workflowSlug': string;
53
- /**
54
- * BPMN/workflow code resolved from workflow_slug or provided directly (used when triggering)
55
- * @type {string}
56
- * @memberof ActionClass
57
- */
58
- 'workflowCode': string;
59
- /**
60
- * true = published (and triggerable), false = draft; only one published per code/slug/name
61
- * @type {boolean}
62
- * @memberof ActionClass
63
- */
64
- 'isEnabled': boolean;
65
- /**
66
- * Whether the action is available in the UI
67
- * @type {boolean}
68
- * @memberof ActionClass
69
- */
70
- 'isAvailableInUi'?: boolean;
71
- /**
72
- * Detailed description of what this action does
73
- * @type {string}
74
- * @memberof ActionClass
75
- */
76
- 'description'?: string;
77
48
  /**
78
49
  * Time at which the object was created.
79
50
  * @type {string}
@@ -99,34 +70,10 @@ export interface ActionClass {
99
70
  */
100
71
  'updatedBy': string;
101
72
  /**
102
- * Entity type: Policy, Lead, Claim
103
- * @type {string}
104
- * @memberof ActionClass
105
- */
106
- 'entityType'?: string;
107
- /**
108
- * Product version ID
109
- * @type {number}
110
- * @memberof ActionClass
111
- */
112
- 'productVersionId'?: number;
113
- /**
114
- * Derived from product_version.product_id
115
- * @type {string}
116
- * @memberof ActionClass
117
- */
118
- 'productSlug'?: string;
119
- /**
120
- * Optional JSON Schema to validate input_payload when triggering the action (only populated when expand=inputValidationSchema)
121
- * @type {object}
122
- * @memberof ActionClass
123
- */
124
- 'inputValidationSchema'?: object;
125
- /**
126
- * Business version per action config
127
- * @type {number}
73
+ * No expand: empty. expand=versions: active version only. All versions: use listActionVersions.
74
+ * @type {Array<ActionVersionClass>}
128
75
  * @memberof ActionClass
129
76
  */
130
- 'configVersion': number;
77
+ 'versions': Array<ActionVersionClass>;
131
78
  }
132
79
 
@@ -40,7 +40,7 @@ export interface ActionExecutionClass {
40
40
  */
41
41
  'actionCode': string;
42
42
  /**
43
- * Action config version (config_version) at trigger time for audit/tracing
43
+ * Action config version (version_number) at trigger time for audit/tracing
44
44
  * @type {number}
45
45
  * @memberof ActionExecutionClass
46
46
  */
@@ -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
+
@@ -49,7 +49,7 @@ export interface CreateActionRequestDto {
49
49
  * @type {boolean}
50
50
  * @memberof CreateActionRequestDto
51
51
  */
52
- 'isEnabled'?: boolean;
52
+ 'isActive'?: boolean;
53
53
  /**
54
54
  * Whether the action is available in the UI
55
55
  * @type {boolean}