@emilgroup/action-sdk-node 1.0.1-beta.41 → 1.0.1-beta.47

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 (31) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +486 -99
  4. package/api/executions-api.ts +12 -12
  5. package/dist/api/actions-api.d.ts +296 -75
  6. package/dist/api/actions-api.js +374 -65
  7. package/dist/api/executions-api.d.ts +12 -12
  8. package/dist/api/executions-api.js +9 -9
  9. package/dist/models/action-class.d.ts +6 -59
  10. package/dist/models/action-execution-class.d.ts +7 -1
  11. package/dist/models/action-version-class.d.ts +120 -0
  12. package/dist/models/action-version-class.js +21 -0
  13. package/dist/models/create-action-request-dto.d.ts +1 -1
  14. package/dist/models/get-action-version-response-class.d.ts +25 -0
  15. package/dist/models/get-action-version-response-class.js +15 -0
  16. package/dist/models/index.d.ts +3 -0
  17. package/dist/models/index.js +3 -0
  18. package/dist/models/list-action-versions-response-class.d.ts +43 -0
  19. package/dist/models/list-action-versions-response-class.js +15 -0
  20. package/dist/models/trigger-action-request-dto.d.ts +6 -6
  21. package/dist/models/update-action-request-dto.d.ts +2 -2
  22. package/models/action-class.ts +6 -59
  23. package/models/action-execution-class.ts +7 -1
  24. package/models/action-version-class.ts +129 -0
  25. package/models/create-action-request-dto.ts +1 -1
  26. package/models/get-action-version-response-class.ts +31 -0
  27. package/models/index.ts +3 -0
  28. package/models/list-action-versions-response-class.ts +49 -0
  29. package/models/trigger-action-request-dto.ts +6 -6
  30. package/models/update-action-request-dto.ts +2 -2
  31. package/package.json +1 -1
@@ -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
  */
@@ -135,5 +135,11 @@ export interface ActionExecutionClass {
135
135
  * @memberof ActionExecutionClass
136
136
  */
137
137
  'triggeredBySub'?: string;
138
+ /**
139
+ * When the action was triggered (set at creation, same for all status rows of this execution)
140
+ * @type {string}
141
+ * @memberof ActionExecutionClass
142
+ */
143
+ 'triggeredAt'?: string;
138
144
  }
139
145
 
@@ -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}
@@ -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
+
@@ -39,17 +39,17 @@ export interface TriggerActionRequestDto {
39
39
  */
40
40
  'dryRun'?: boolean;
41
41
  /**
42
- * If true, allow triggering a draft (disabled) action and run its workflow
43
- * @type {boolean}
42
+ * Correlation ID for tracing/idempotency
43
+ * @type {string}
44
44
  * @memberof TriggerActionRequestDto
45
45
  */
46
- 'force'?: boolean;
46
+ 'correlationId'?: string;
47
47
  /**
48
- * Optional correlation ID for tracing/idempotency
49
- * @type {string}
48
+ * If true, allow triggering a draft (disabled) action and run its workflow
49
+ * @type {boolean}
50
50
  * @memberof TriggerActionRequestDto
51
51
  */
52
- 'correlationId'?: string;
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}
@@ -45,11 +45,11 @@ export interface UpdateActionRequestDto {
45
45
  */
46
46
  'workflowCode'?: string;
47
47
  /**
48
- * Whether the action is enabled and can be triggered
48
+ * Whether the action is published and can be triggered
49
49
  * @type {boolean}
50
50
  * @memberof UpdateActionRequestDto
51
51
  */
52
- 'isEnabled'?: boolean;
52
+ 'isActive'?: boolean;
53
53
  /**
54
54
  * Whether the action is available in the UI
55
55
  * @type {boolean}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/action-sdk-node",
3
- "version": "1.0.1-beta.41",
3
+ "version": "1.0.1-beta.47",
4
4
  "description": "OpenAPI client for @emilgroup/action-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [