@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
@@ -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. Must be a JSON object (key-value map).
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
+ * Correlation ID for tracing/idempotency
43
+ * @type {string}
44
+ * @memberof TriggerActionRequestDto
45
+ */
46
+ 'correlationId'?: string;
47
+ /**
48
+ * If true, allow triggering a draft (disabled) action and run its workflow
49
+ * @type {boolean}
50
+ * @memberof TriggerActionRequestDto
51
+ */
52
+ 'force'?: boolean;
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
+
@@ -33,28 +33,67 @@ export interface UpdateActionRequestDto {
33
33
  */
34
34
  'name'?: string;
35
35
  /**
36
- * Stable identifier; unique per tenant
36
+ * BPMN/workflow slug. When provided, productSlug and productVersionId are required to resolve the workflow.
37
37
  * @type {string}
38
38
  * @memberof UpdateActionRequestDto
39
39
  */
40
- 'slug'?: string;
40
+ 'workflowSlug'?: string;
41
41
  /**
42
- * BPMN/workflow code to execute when this action is triggered
42
+ * BPMN/workflow code. When provided, used directly (no product required for resolution).
43
43
  * @type {string}
44
44
  * @memberof 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
+ /**
54
+ * Whether the action is available in the UI
55
+ * @type {boolean}
56
+ * @memberof UpdateActionRequestDto
57
+ */
58
+ 'isAvailableInUi'?: boolean;
53
59
  /**
54
60
  * Detailed description of what this action does
55
61
  * @type {string}
56
62
  * @memberof UpdateActionRequestDto
57
63
  */
58
64
  'description'?: string;
65
+ /**
66
+ * Entity type. When provided, productVersionId is required (and vice versa).
67
+ * @type {string}
68
+ * @memberof UpdateActionRequestDto
69
+ */
70
+ 'entityType'?: UpdateActionRequestDtoEntityTypeEnum;
71
+ /**
72
+ * Product version ID. Required when updating an entity action (entityType set).
73
+ * @type {number}
74
+ * @memberof UpdateActionRequestDto
75
+ */
76
+ 'productVersionId'?: number;
77
+ /**
78
+ * Product slug. Required when updating an entity action. Must match the product that owns productVersionId.
79
+ * @type {string}
80
+ * @memberof UpdateActionRequestDto
81
+ */
82
+ 'productSlug'?: string;
83
+ /**
84
+ * Optional JSON Schema to validate input_payload when triggering the action
85
+ * @type {object}
86
+ * @memberof UpdateActionRequestDto
87
+ */
88
+ 'inputValidationSchema'?: object;
59
89
  }
60
90
 
91
+ export const UpdateActionRequestDtoEntityTypeEnum = {
92
+ Policy: 'POLICY',
93
+ Lead: 'LEAD',
94
+ Claim: 'CLAIM'
95
+ } as const;
96
+
97
+ export type UpdateActionRequestDtoEntityTypeEnum = typeof UpdateActionRequestDtoEntityTypeEnum[keyof typeof UpdateActionRequestDtoEntityTypeEnum];
98
+
99
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/action-sdk",
3
- "version": "1.1.1-beta.7",
3
+ "version": "1.2.1-beta.10",
4
4
  "description": "OpenAPI client for @emilgroup/action-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^1.12.0"
21
+ "axios": "1.12.0"
22
22
  },
23
23
  "devDependencies": {
24
24