@emilgroup/action-sdk 1.1.1-beta.6 → 1.2.0

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 (43) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +559 -130
  4. package/api/executions-api.ts +471 -0
  5. package/api.ts +2 -0
  6. package/dist/api/actions-api.d.ts +358 -112
  7. package/dist/api/actions-api.js +427 -97
  8. package/dist/api/executions-api.d.ts +272 -0
  9. package/dist/api/executions-api.js +452 -0
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/action-class.d.ts +9 -20
  13. package/dist/models/action-execution-class.d.ts +36 -0
  14. package/dist/models/action-ref-class.d.ts +36 -0
  15. package/dist/models/action-ref-class.js +15 -0
  16. package/dist/models/action-version-class.d.ts +127 -0
  17. package/dist/models/action-version-class.js +21 -0
  18. package/dist/models/create-action-request-dto.d.ts +47 -5
  19. package/dist/models/create-action-request-dto.js +6 -0
  20. package/dist/models/get-action-version-response-class.d.ts +25 -0
  21. package/dist/models/get-action-version-response-class.js +15 -0
  22. package/dist/models/index.d.ts +6 -0
  23. package/dist/models/index.js +6 -0
  24. package/dist/models/list-action-versions-response-class.d.ts +43 -0
  25. package/dist/models/list-action-versions-response-class.js +15 -0
  26. package/dist/models/trigger-action-request-dto.d.ts +62 -0
  27. package/dist/models/trigger-action-request-dto.js +15 -0
  28. package/dist/models/trigger-action-response-class.d.ts +25 -0
  29. package/dist/models/trigger-action-response-class.js +15 -0
  30. package/dist/models/update-action-request-dto.d.ts +41 -5
  31. package/dist/models/update-action-request-dto.js +6 -0
  32. package/models/action-class.ts +9 -20
  33. package/models/action-execution-class.ts +36 -0
  34. package/models/action-ref-class.ts +42 -0
  35. package/models/action-version-class.ts +136 -0
  36. package/models/create-action-request-dto.ts +50 -5
  37. package/models/get-action-version-response-class.ts +31 -0
  38. package/models/index.ts +6 -0
  39. package/models/list-action-versions-response-class.ts +49 -0
  40. package/models/trigger-action-request-dto.ts +66 -0
  41. package/models/trigger-action-response-class.ts +31 -0
  42. package/models/update-action-request-dto.ts +44 -5
  43. package/package.json +1 -1
@@ -0,0 +1,127 @@
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 { ActionRefClass } from './action-ref-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ActionVersionClass
17
+ */
18
+ export interface ActionVersionClass {
19
+ /**
20
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
21
+ * @type {number}
22
+ * @memberof ActionVersionClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * Whether this version is the active/published one (only one per action config)
27
+ * @type {boolean}
28
+ * @memberof ActionVersionClass
29
+ */
30
+ 'isActive': boolean;
31
+ /**
32
+ * Version number (1, 2, 3...)
33
+ * @type {number}
34
+ * @memberof ActionVersionClass
35
+ */
36
+ 'versionNumber': number;
37
+ /**
38
+ * Version code (unique id, e.g. acv_<nanoid>)
39
+ * @type {string}
40
+ * @memberof ActionVersionClass
41
+ */
42
+ 'code': string;
43
+ /**
44
+ * Detailed description of what this action does
45
+ * @type {string}
46
+ * @memberof ActionVersionClass
47
+ */
48
+ 'description'?: string;
49
+ /**
50
+ * BPMN/workflow code (resolved from workflow_slug)
51
+ * @type {string}
52
+ * @memberof ActionVersionClass
53
+ */
54
+ 'workflowCode': string;
55
+ /**
56
+ * BPMN/workflow slug
57
+ * @type {string}
58
+ * @memberof ActionVersionClass
59
+ */
60
+ 'workflowSlug': string;
61
+ /**
62
+ * Entity type: Policy, Lead, Claim
63
+ * @type {string}
64
+ * @memberof ActionVersionClass
65
+ */
66
+ 'entityType'?: ActionVersionClassEntityTypeEnum;
67
+ /**
68
+ * Product version ID
69
+ * @type {number}
70
+ * @memberof ActionVersionClass
71
+ */
72
+ 'productVersionId'?: number;
73
+ /**
74
+ * Derived from product_version.product_id
75
+ * @type {string}
76
+ * @memberof ActionVersionClass
77
+ */
78
+ 'productSlug'?: string;
79
+ /**
80
+ * Whether the action is available in the UI
81
+ * @type {boolean}
82
+ * @memberof ActionVersionClass
83
+ */
84
+ 'isAvailableInUi'?: boolean;
85
+ /**
86
+ * Optional JSON Schema to validate input_payload when triggering (only when expand=inputValidationSchema)
87
+ * @type {object}
88
+ * @memberof ActionVersionClass
89
+ */
90
+ 'inputValidationSchema'?: object;
91
+ /**
92
+ * Time at which the object was created.
93
+ * @type {string}
94
+ * @memberof ActionVersionClass
95
+ */
96
+ 'createdAt': string;
97
+ /**
98
+ * Time at which the object was updated.
99
+ * @type {string}
100
+ * @memberof ActionVersionClass
101
+ */
102
+ 'updatedAt': string;
103
+ /**
104
+ * Identifier of the user who created the record.
105
+ * @type {string}
106
+ * @memberof ActionVersionClass
107
+ */
108
+ 'createdBy': string;
109
+ /**
110
+ * Identifier of the user who last updated the record.
111
+ * @type {string}
112
+ * @memberof ActionVersionClass
113
+ */
114
+ 'updatedBy': string;
115
+ /**
116
+ * Parent action (code, name, slug). Set when listing versions so clients know which action each version belongs to.
117
+ * @type {ActionRefClass}
118
+ * @memberof ActionVersionClass
119
+ */
120
+ 'action'?: ActionRefClass;
121
+ }
122
+ export declare const ActionVersionClassEntityTypeEnum: {
123
+ readonly Policy: "POLICY";
124
+ readonly Lead: "LEAD";
125
+ readonly Claim: "CLAIM";
126
+ };
127
+ 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
+ };
@@ -22,27 +22,69 @@ export interface CreateActionRequestDto {
22
22
  */
23
23
  'name': string;
24
24
  /**
25
- * Stable identifier; auto-generated from action_name if not provided
25
+ * 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).
26
26
  * @type {string}
27
27
  * @memberof CreateActionRequestDto
28
28
  */
29
29
  'slug'?: string;
30
30
  /**
31
- * BPMN/workflow code to execute when this action is triggered
31
+ * BPMN/workflow slug. When provided, productSlug and productVersionId are required to resolve the workflow. At least one of workflowSlug or workflowCode required.
32
32
  * @type {string}
33
33
  * @memberof CreateActionRequestDto
34
34
  */
35
- 'workflowCode': string;
35
+ 'workflowSlug'?: string;
36
36
  /**
37
- * Whether the action is enabled and can be triggered
37
+ * BPMN/workflow code. At least one of workflowSlug or workflowCode is required.
38
+ * @type {string}
39
+ * @memberof CreateActionRequestDto
40
+ */
41
+ 'workflowCode'?: string;
42
+ /**
43
+ * true = published (triggerable), false = draft. Default true.
38
44
  * @type {boolean}
39
45
  * @memberof CreateActionRequestDto
40
46
  */
41
- 'isEnabled'?: boolean;
47
+ 'isActive'?: boolean;
48
+ /**
49
+ * Whether the action is available in the UI
50
+ * @type {boolean}
51
+ * @memberof CreateActionRequestDto
52
+ */
53
+ 'isAvailableInUi'?: boolean;
42
54
  /**
43
55
  * Detailed description of what this action does
44
56
  * @type {string}
45
57
  * @memberof CreateActionRequestDto
46
58
  */
47
59
  'description'?: string;
60
+ /**
61
+ * Entity type. When provided, productVersionId is required (and vice versa).
62
+ * @type {string}
63
+ * @memberof CreateActionRequestDto
64
+ */
65
+ 'entityType'?: CreateActionRequestDtoEntityTypeEnum;
66
+ /**
67
+ * Product version ID. Required for entity actions (when entityType is set).
68
+ * @type {number}
69
+ * @memberof CreateActionRequestDto
70
+ */
71
+ 'productVersionId'?: number;
72
+ /**
73
+ * Product slug. Required for entity actions (when entityType is set). Must match the product that owns productVersionId.
74
+ * @type {string}
75
+ * @memberof CreateActionRequestDto
76
+ */
77
+ 'productSlug'?: string;
78
+ /**
79
+ * Optional JSON Schema to validate input_payload when triggering the action
80
+ * @type {object}
81
+ * @memberof CreateActionRequestDto
82
+ */
83
+ 'inputValidationSchema'?: object;
48
84
  }
85
+ export declare const CreateActionRequestDtoEntityTypeEnum: {
86
+ readonly Policy: "POLICY";
87
+ readonly Lead: "LEAD";
88
+ readonly Claim: "CLAIM";
89
+ };
90
+ export type CreateActionRequestDtoEntityTypeEnum = typeof CreateActionRequestDtoEntityTypeEnum[keyof typeof CreateActionRequestDtoEntityTypeEnum];
@@ -13,3 +13,9 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateActionRequestDtoEntityTypeEnum = void 0;
17
+ exports.CreateActionRequestDtoEntityTypeEnum = {
18
+ Policy: 'POLICY',
19
+ Lead: 'LEAD',
20
+ Claim: 'CLAIM'
21
+ };
@@ -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,13 +1,19 @@
1
1
  export * from './action-class';
2
2
  export * from './action-execution-class';
3
+ export * from './action-ref-class';
4
+ export * from './action-version-class';
3
5
  export * from './create-action-request-dto';
4
6
  export * from './create-action-response-class';
5
7
  export * from './get-action-execution-status-response-class';
6
8
  export * from './get-action-response-class';
9
+ export * from './get-action-version-response-class';
7
10
  export * from './inline-response200';
8
11
  export * from './inline-response503';
9
12
  export * from './list-action-executions-response-class';
13
+ export * from './list-action-versions-response-class';
10
14
  export * from './list-actions-response-class';
15
+ export * from './trigger-action-request-dto';
16
+ export * from './trigger-action-response-class';
11
17
  export * from './update-action-request-dto';
12
18
  export * from './update-action-response-class';
13
19
  export * from './workflow-output-reference-class';
@@ -16,14 +16,20 @@ 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-ref-class"), exports);
20
+ __exportStar(require("./action-version-class"), exports);
19
21
  __exportStar(require("./create-action-request-dto"), exports);
20
22
  __exportStar(require("./create-action-response-class"), exports);
21
23
  __exportStar(require("./get-action-execution-status-response-class"), exports);
22
24
  __exportStar(require("./get-action-response-class"), exports);
25
+ __exportStar(require("./get-action-version-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);
29
+ __exportStar(require("./list-action-versions-response-class"), exports);
26
30
  __exportStar(require("./list-actions-response-class"), exports);
31
+ __exportStar(require("./trigger-action-request-dto"), exports);
32
+ __exportStar(require("./trigger-action-response-class"), exports);
27
33
  __exportStar(require("./update-action-request-dto"), exports);
28
34
  __exportStar(require("./update-action-response-class"), exports);
29
35
  __exportStar(require("./workflow-output-reference-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 });
@@ -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. Must be a JSON object (key-value map).
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
+ * Correlation ID for tracing/idempotency
40
+ * @type {string}
41
+ * @memberof TriggerActionRequestDto
42
+ */
43
+ 'correlationId'?: string;
44
+ /**
45
+ * If true, allow triggering a draft (disabled) action and run its workflow
46
+ * @type {boolean}
47
+ * @memberof TriggerActionRequestDto
48
+ */
49
+ 'force'?: boolean;
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 });
@@ -28,27 +28,63 @@ export interface UpdateActionRequestDto {
28
28
  */
29
29
  'name'?: string;
30
30
  /**
31
- * Stable identifier; unique per tenant
31
+ * BPMN/workflow slug. When provided, productSlug and productVersionId are required to resolve the workflow.
32
32
  * @type {string}
33
33
  * @memberof UpdateActionRequestDto
34
34
  */
35
- 'slug'?: string;
35
+ 'workflowSlug'?: string;
36
36
  /**
37
- * BPMN/workflow code to execute when this action is triggered
37
+ * BPMN/workflow code. When provided, used directly (no product required for resolution).
38
38
  * @type {string}
39
39
  * @memberof 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
+ /**
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. Required when updating an entity action (entityType set).
68
+ * @type {number}
69
+ * @memberof UpdateActionRequestDto
70
+ */
71
+ 'productVersionId'?: number;
72
+ /**
73
+ * Product slug. Required when updating an entity action. Must match the product that owns productVersionId.
74
+ * @type {string}
75
+ * @memberof UpdateActionRequestDto
76
+ */
77
+ 'productSlug'?: string;
78
+ /**
79
+ * Optional JSON Schema to validate input_payload when triggering the action
80
+ * @type {object}
81
+ * @memberof UpdateActionRequestDto
82
+ */
83
+ 'inputValidationSchema'?: object;
54
84
  }
85
+ export declare const UpdateActionRequestDtoEntityTypeEnum: {
86
+ readonly Policy: "POLICY";
87
+ readonly Lead: "LEAD";
88
+ readonly Claim: "CLAIM";
89
+ };
90
+ 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
+ };
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { ActionVersionClass } from './action-version-class';
16
17
 
17
18
  /**
18
19
  *
@@ -33,35 +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 code to execute when this action is triggered
49
- * @type {string}
50
- * @memberof ActionClass
51
- */
52
- 'workflowCode'?: string;
53
- /**
54
- * Whether the action is enabled and can be triggered
55
- * @type {boolean}
56
- * @memberof ActionClass
57
- */
58
- 'isEnabled': boolean;
59
- /**
60
- * Detailed description of what this action does
61
- * @type {string}
62
- * @memberof ActionClass
63
- */
64
- 'description'?: string;
65
48
  /**
66
49
  * Time at which the object was created.
67
50
  * @type {string}
@@ -86,5 +69,11 @@ export interface ActionClass {
86
69
  * @memberof ActionClass
87
70
  */
88
71
  'updatedBy': string;
72
+ /**
73
+ * No expand: empty. expand=versions: active version only. All versions: use listActionVersions.
74
+ * @type {Array<ActionVersionClass>}
75
+ * @memberof ActionClass
76
+ */
77
+ 'versions': Array<ActionVersionClass>;
89
78
  }
90
79