@emilgroup/action-sdk 1.1.1-beta.27 → 1.1.1-beta.6
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 +0 -7
- package/README.md +2 -2
- package/api/actions-api.ts +130 -559
- package/api.ts +0 -2
- package/dist/api/actions-api.d.ts +112 -358
- package/dist/api/actions-api.js +97 -427
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/action-class.d.ts +20 -9
- package/dist/models/action-execution-class.d.ts +0 -36
- package/dist/models/create-action-request-dto.d.ts +5 -47
- package/dist/models/create-action-request-dto.js +0 -6
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/dist/models/update-action-request-dto.d.ts +5 -41
- package/dist/models/update-action-request-dto.js +0 -6
- package/models/action-class.ts +20 -9
- package/models/action-execution-class.ts +0 -36
- package/models/create-action-request-dto.ts +5 -50
- package/models/index.ts +0 -6
- package/models/update-action-request-dto.ts +5 -44
- package/package.json +1 -1
- package/api/executions-api.ts +0 -471
- package/dist/api/executions-api.d.ts +0 -272
- package/dist/api/executions-api.js +0 -452
- package/dist/models/action-ref-class.d.ts +0 -36
- package/dist/models/action-ref-class.js +0 -15
- package/dist/models/action-version-class.d.ts +0 -127
- package/dist/models/action-version-class.js +0 -21
- package/dist/models/get-action-version-response-class.d.ts +0 -25
- package/dist/models/get-action-version-response-class.js +0 -15
- package/dist/models/list-action-versions-response-class.d.ts +0 -43
- package/dist/models/list-action-versions-response-class.js +0 -15
- package/dist/models/trigger-action-request-dto.d.ts +0 -62
- package/dist/models/trigger-action-request-dto.js +0 -15
- package/dist/models/trigger-action-response-class.d.ts +0 -25
- package/dist/models/trigger-action-response-class.js +0 -15
- package/models/action-ref-class.ts +0 -42
- package/models/action-version-class.ts +0 -136
- package/models/get-action-version-response-class.ts +0 -31
- package/models/list-action-versions-response-class.ts +0 -49
- package/models/trigger-action-request-dto.ts +0 -66
- package/models/trigger-action-response-class.ts +0 -31
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -29,4 +29,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/actions-api"), exports);
|
|
31
31
|
__exportStar(require("./api/default-api"), exports);
|
|
32
|
-
__exportStar(require("./api/executions-api"), exports);
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ActionVersionClass } from './action-version-class';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -29,17 +28,35 @@ export interface ActionClass {
|
|
|
29
28
|
*/
|
|
30
29
|
'code': string;
|
|
31
30
|
/**
|
|
32
|
-
* Human readable action name
|
|
31
|
+
* Human readable action name
|
|
33
32
|
* @type {string}
|
|
34
33
|
* @memberof ActionClass
|
|
35
34
|
*/
|
|
36
35
|
'name': string;
|
|
37
36
|
/**
|
|
38
|
-
* Stable identifier; unique per tenant
|
|
37
|
+
* Stable identifier; unique per tenant
|
|
39
38
|
* @type {string}
|
|
40
39
|
* @memberof ActionClass
|
|
41
40
|
*/
|
|
42
41
|
'slug': string;
|
|
42
|
+
/**
|
|
43
|
+
* BPMN/workflow code to execute when this action is triggered
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ActionClass
|
|
46
|
+
*/
|
|
47
|
+
'workflowCode'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the action is enabled and can be triggered
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ActionClass
|
|
52
|
+
*/
|
|
53
|
+
'isEnabled': boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Detailed description of what this action does
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ActionClass
|
|
58
|
+
*/
|
|
59
|
+
'description'?: string;
|
|
43
60
|
/**
|
|
44
61
|
* Time at which the object was created.
|
|
45
62
|
* @type {string}
|
|
@@ -64,10 +81,4 @@ export interface ActionClass {
|
|
|
64
81
|
* @memberof ActionClass
|
|
65
82
|
*/
|
|
66
83
|
'updatedBy': string;
|
|
67
|
-
/**
|
|
68
|
-
* No expand: empty. expand=versions: active version only. All versions: use listActionVersions.
|
|
69
|
-
* @type {Array<ActionVersionClass>}
|
|
70
|
-
* @memberof ActionClass
|
|
71
|
-
*/
|
|
72
|
-
'versions': Array<ActionVersionClass>;
|
|
73
84
|
}
|
|
@@ -34,12 +34,6 @@ export interface ActionExecutionClass {
|
|
|
34
34
|
* @memberof ActionExecutionClass
|
|
35
35
|
*/
|
|
36
36
|
'actionCode': string;
|
|
37
|
-
/**
|
|
38
|
-
* Action config version (version_number) at trigger time for audit/tracing
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof ActionExecutionClass
|
|
41
|
-
*/
|
|
42
|
-
'actionVersion': number;
|
|
43
37
|
/**
|
|
44
38
|
* Execution status
|
|
45
39
|
* @type {string}
|
|
@@ -110,34 +104,4 @@ export interface ActionExecutionClass {
|
|
|
110
104
|
* @memberof ActionExecutionClass
|
|
111
105
|
*/
|
|
112
106
|
'workflowOutputReference'?: WorkflowOutputReferenceClass;
|
|
113
|
-
/**
|
|
114
|
-
* When true, execution was triggered with force (e.g. draft/disabled action)
|
|
115
|
-
* @type {boolean}
|
|
116
|
-
* @memberof ActionExecutionClass
|
|
117
|
-
*/
|
|
118
|
-
'force'?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* For entity actions: code of the entity the action was run on (e.g. policy code, lead code)
|
|
121
|
-
* @type {string}
|
|
122
|
-
* @memberof ActionExecutionClass
|
|
123
|
-
*/
|
|
124
|
-
'entityCode'?: string;
|
|
125
|
-
/**
|
|
126
|
-
* For entity actions: entity type (POLICY, LEAD, CLAIM) for lookup
|
|
127
|
-
* @type {string}
|
|
128
|
-
* @memberof ActionExecutionClass
|
|
129
|
-
*/
|
|
130
|
-
'entityType'?: string;
|
|
131
|
-
/**
|
|
132
|
-
* JWT sub of who triggered the action (set when trigger is from API; null for webhook/system)
|
|
133
|
-
* @type {string}
|
|
134
|
-
* @memberof ActionExecutionClass
|
|
135
|
-
*/
|
|
136
|
-
'triggeredBySub'?: string;
|
|
137
|
-
/**
|
|
138
|
-
* When the action was triggered (set at creation, same for all status rows of this execution)
|
|
139
|
-
* @type {string}
|
|
140
|
-
* @memberof ActionExecutionClass
|
|
141
|
-
*/
|
|
142
|
-
'triggeredAt'?: string;
|
|
143
107
|
}
|
|
@@ -22,69 +22,27 @@ export interface CreateActionRequestDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'name': string;
|
|
24
24
|
/**
|
|
25
|
-
* Stable identifier; auto-generated from
|
|
25
|
+
* Stable identifier; auto-generated from action_name if not provided
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateActionRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'slug'?: string;
|
|
30
30
|
/**
|
|
31
|
-
* BPMN/workflow
|
|
31
|
+
* BPMN/workflow code to execute when this action is triggered
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateActionRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'workflowCode': string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CreateActionRequestDto
|
|
40
|
-
*/
|
|
41
|
-
'workflowCode'?: string;
|
|
42
|
-
/**
|
|
43
|
-
* true = published (triggerable), false = draft. Default true.
|
|
37
|
+
* Whether the action is enabled and can be triggered
|
|
44
38
|
* @type {boolean}
|
|
45
39
|
* @memberof CreateActionRequestDto
|
|
46
40
|
*/
|
|
47
|
-
'
|
|
48
|
-
/**
|
|
49
|
-
* Whether the action is available in the UI
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof CreateActionRequestDto
|
|
52
|
-
*/
|
|
53
|
-
'isAvailableInUi'?: boolean;
|
|
41
|
+
'isEnabled'?: boolean;
|
|
54
42
|
/**
|
|
55
43
|
* Detailed description of what this action does
|
|
56
44
|
* @type {string}
|
|
57
45
|
* @memberof CreateActionRequestDto
|
|
58
46
|
*/
|
|
59
47
|
'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;
|
|
84
48
|
}
|
|
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,9 +13,3 @@
|
|
|
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
|
-
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
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';
|
|
5
3
|
export * from './create-action-request-dto';
|
|
6
4
|
export * from './create-action-response-class';
|
|
7
5
|
export * from './get-action-execution-status-response-class';
|
|
8
6
|
export * from './get-action-response-class';
|
|
9
|
-
export * from './get-action-version-response-class';
|
|
10
7
|
export * from './inline-response200';
|
|
11
8
|
export * from './inline-response503';
|
|
12
9
|
export * from './list-action-executions-response-class';
|
|
13
|
-
export * from './list-action-versions-response-class';
|
|
14
10
|
export * from './list-actions-response-class';
|
|
15
|
-
export * from './trigger-action-request-dto';
|
|
16
|
-
export * from './trigger-action-response-class';
|
|
17
11
|
export * from './update-action-request-dto';
|
|
18
12
|
export * from './update-action-response-class';
|
|
19
13
|
export * from './workflow-output-reference-class';
|
package/dist/models/index.js
CHANGED
|
@@ -16,20 +16,14 @@ 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);
|
|
21
19
|
__exportStar(require("./create-action-request-dto"), exports);
|
|
22
20
|
__exportStar(require("./create-action-response-class"), exports);
|
|
23
21
|
__exportStar(require("./get-action-execution-status-response-class"), exports);
|
|
24
22
|
__exportStar(require("./get-action-response-class"), exports);
|
|
25
|
-
__exportStar(require("./get-action-version-response-class"), exports);
|
|
26
23
|
__exportStar(require("./inline-response200"), exports);
|
|
27
24
|
__exportStar(require("./inline-response503"), exports);
|
|
28
25
|
__exportStar(require("./list-action-executions-response-class"), exports);
|
|
29
|
-
__exportStar(require("./list-action-versions-response-class"), exports);
|
|
30
26
|
__exportStar(require("./list-actions-response-class"), exports);
|
|
31
|
-
__exportStar(require("./trigger-action-request-dto"), exports);
|
|
32
|
-
__exportStar(require("./trigger-action-response-class"), exports);
|
|
33
27
|
__exportStar(require("./update-action-request-dto"), exports);
|
|
34
28
|
__exportStar(require("./update-action-response-class"), exports);
|
|
35
29
|
__exportStar(require("./workflow-output-reference-class"), exports);
|
|
@@ -28,63 +28,27 @@ export interface UpdateActionRequestDto {
|
|
|
28
28
|
*/
|
|
29
29
|
'name'?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Stable identifier; unique per tenant
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateActionRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'slug'?: string;
|
|
36
36
|
/**
|
|
37
|
-
* BPMN/workflow code
|
|
37
|
+
* BPMN/workflow code to execute when this action is triggered
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof UpdateActionRequestDto
|
|
40
40
|
*/
|
|
41
41
|
'workflowCode'?: string;
|
|
42
42
|
/**
|
|
43
|
-
* Whether the action is
|
|
43
|
+
* Whether the action is enabled and can be triggered
|
|
44
44
|
* @type {boolean}
|
|
45
45
|
* @memberof UpdateActionRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
48
|
-
/**
|
|
49
|
-
* Whether the action is available in the UI
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof UpdateActionRequestDto
|
|
52
|
-
*/
|
|
53
|
-
'isAvailableInUi'?: boolean;
|
|
47
|
+
'isEnabled'?: boolean;
|
|
54
48
|
/**
|
|
55
49
|
* Detailed description of what this action does
|
|
56
50
|
* @type {string}
|
|
57
51
|
* @memberof UpdateActionRequestDto
|
|
58
52
|
*/
|
|
59
53
|
'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;
|
|
84
54
|
}
|
|
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,9 +13,3 @@
|
|
|
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
|
-
};
|
package/models/action-class.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { ActionVersionClass } from './action-version-class';
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
*
|
|
@@ -34,17 +33,35 @@ export interface ActionClass {
|
|
|
34
33
|
*/
|
|
35
34
|
'code': string;
|
|
36
35
|
/**
|
|
37
|
-
* Human readable action name
|
|
36
|
+
* Human readable action name
|
|
38
37
|
* @type {string}
|
|
39
38
|
* @memberof ActionClass
|
|
40
39
|
*/
|
|
41
40
|
'name': string;
|
|
42
41
|
/**
|
|
43
|
-
* Stable identifier; unique per tenant
|
|
42
|
+
* Stable identifier; unique per tenant
|
|
44
43
|
* @type {string}
|
|
45
44
|
* @memberof ActionClass
|
|
46
45
|
*/
|
|
47
46
|
'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;
|
|
48
65
|
/**
|
|
49
66
|
* Time at which the object was created.
|
|
50
67
|
* @type {string}
|
|
@@ -69,11 +86,5 @@ export interface ActionClass {
|
|
|
69
86
|
* @memberof ActionClass
|
|
70
87
|
*/
|
|
71
88
|
'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>;
|
|
78
89
|
}
|
|
79
90
|
|
|
@@ -39,12 +39,6 @@ export interface ActionExecutionClass {
|
|
|
39
39
|
* @memberof ActionExecutionClass
|
|
40
40
|
*/
|
|
41
41
|
'actionCode': string;
|
|
42
|
-
/**
|
|
43
|
-
* Action config version (version_number) at trigger time for audit/tracing
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof ActionExecutionClass
|
|
46
|
-
*/
|
|
47
|
-
'actionVersion': number;
|
|
48
42
|
/**
|
|
49
43
|
* Execution status
|
|
50
44
|
* @type {string}
|
|
@@ -111,35 +105,5 @@ export interface ActionExecutionClass {
|
|
|
111
105
|
* @memberof ActionExecutionClass
|
|
112
106
|
*/
|
|
113
107
|
'workflowOutputReference'?: WorkflowOutputReferenceClass;
|
|
114
|
-
/**
|
|
115
|
-
* When true, execution was triggered with force (e.g. draft/disabled action)
|
|
116
|
-
* @type {boolean}
|
|
117
|
-
* @memberof ActionExecutionClass
|
|
118
|
-
*/
|
|
119
|
-
'force'?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* For entity actions: code of the entity the action was run on (e.g. policy code, lead code)
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof ActionExecutionClass
|
|
124
|
-
*/
|
|
125
|
-
'entityCode'?: string;
|
|
126
|
-
/**
|
|
127
|
-
* For entity actions: entity type (POLICY, LEAD, CLAIM) for lookup
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof ActionExecutionClass
|
|
130
|
-
*/
|
|
131
|
-
'entityType'?: string;
|
|
132
|
-
/**
|
|
133
|
-
* JWT sub of who triggered the action (set when trigger is from API; null for webhook/system)
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof ActionExecutionClass
|
|
136
|
-
*/
|
|
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;
|
|
144
108
|
}
|
|
145
109
|
|
|
@@ -27,73 +27,28 @@ export interface CreateActionRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'name': string;
|
|
29
29
|
/**
|
|
30
|
-
* Stable identifier; auto-generated from
|
|
30
|
+
* Stable identifier; auto-generated from action_name if not provided
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof CreateActionRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'slug'?: string;
|
|
35
35
|
/**
|
|
36
|
-
* BPMN/workflow
|
|
36
|
+
* BPMN/workflow code to execute when this action is triggered
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreateActionRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'workflowCode': string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof CreateActionRequestDto
|
|
45
|
-
*/
|
|
46
|
-
'workflowCode'?: string;
|
|
47
|
-
/**
|
|
48
|
-
* true = published (triggerable), false = draft. Default true.
|
|
42
|
+
* Whether the action is enabled and can be triggered
|
|
49
43
|
* @type {boolean}
|
|
50
44
|
* @memberof CreateActionRequestDto
|
|
51
45
|
*/
|
|
52
|
-
'
|
|
53
|
-
/**
|
|
54
|
-
* Whether the action is available in the UI
|
|
55
|
-
* @type {boolean}
|
|
56
|
-
* @memberof CreateActionRequestDto
|
|
57
|
-
*/
|
|
58
|
-
'isAvailableInUi'?: boolean;
|
|
46
|
+
'isEnabled'?: boolean;
|
|
59
47
|
/**
|
|
60
48
|
* Detailed description of what this action does
|
|
61
49
|
* @type {string}
|
|
62
50
|
* @memberof CreateActionRequestDto
|
|
63
51
|
*/
|
|
64
52
|
'description'?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Entity type. When provided, productVersionId is required (and vice versa).
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof CreateActionRequestDto
|
|
69
|
-
*/
|
|
70
|
-
'entityType'?: CreateActionRequestDtoEntityTypeEnum;
|
|
71
|
-
/**
|
|
72
|
-
* Product version ID. Required for entity actions (when entityType is set).
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof CreateActionRequestDto
|
|
75
|
-
*/
|
|
76
|
-
'productVersionId'?: number;
|
|
77
|
-
/**
|
|
78
|
-
* Product slug. Required for entity actions (when entityType is set). Must match the product that owns productVersionId.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof CreateActionRequestDto
|
|
81
|
-
*/
|
|
82
|
-
'productSlug'?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Optional JSON Schema to validate input_payload when triggering the action
|
|
85
|
-
* @type {object}
|
|
86
|
-
* @memberof CreateActionRequestDto
|
|
87
|
-
*/
|
|
88
|
-
'inputValidationSchema'?: object;
|
|
89
53
|
}
|
|
90
54
|
|
|
91
|
-
export const CreateActionRequestDtoEntityTypeEnum = {
|
|
92
|
-
Policy: 'POLICY',
|
|
93
|
-
Lead: 'LEAD',
|
|
94
|
-
Claim: 'CLAIM'
|
|
95
|
-
} as const;
|
|
96
|
-
|
|
97
|
-
export type CreateActionRequestDtoEntityTypeEnum = typeof CreateActionRequestDtoEntityTypeEnum[keyof typeof CreateActionRequestDtoEntityTypeEnum];
|
|
98
|
-
|
|
99
|
-
|
package/models/index.ts
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
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';
|
|
5
3
|
export * from './create-action-request-dto';
|
|
6
4
|
export * from './create-action-response-class';
|
|
7
5
|
export * from './get-action-execution-status-response-class';
|
|
8
6
|
export * from './get-action-response-class';
|
|
9
|
-
export * from './get-action-version-response-class';
|
|
10
7
|
export * from './inline-response200';
|
|
11
8
|
export * from './inline-response503';
|
|
12
9
|
export * from './list-action-executions-response-class';
|
|
13
|
-
export * from './list-action-versions-response-class';
|
|
14
10
|
export * from './list-actions-response-class';
|
|
15
|
-
export * from './trigger-action-request-dto';
|
|
16
|
-
export * from './trigger-action-response-class';
|
|
17
11
|
export * from './update-action-request-dto';
|
|
18
12
|
export * from './update-action-response-class';
|
|
19
13
|
export * from './workflow-output-reference-class';
|
|
@@ -33,67 +33,28 @@ export interface UpdateActionRequestDto {
|
|
|
33
33
|
*/
|
|
34
34
|
'name'?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Stable identifier; unique per tenant
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof UpdateActionRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'slug'?: string;
|
|
41
41
|
/**
|
|
42
|
-
* BPMN/workflow code
|
|
42
|
+
* BPMN/workflow code to execute when this action is triggered
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof UpdateActionRequestDto
|
|
45
45
|
*/
|
|
46
46
|
'workflowCode'?: string;
|
|
47
47
|
/**
|
|
48
|
-
* Whether the action is
|
|
48
|
+
* Whether the action is enabled and can be triggered
|
|
49
49
|
* @type {boolean}
|
|
50
50
|
* @memberof UpdateActionRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'
|
|
53
|
-
/**
|
|
54
|
-
* Whether the action is available in the UI
|
|
55
|
-
* @type {boolean}
|
|
56
|
-
* @memberof UpdateActionRequestDto
|
|
57
|
-
*/
|
|
58
|
-
'isAvailableInUi'?: boolean;
|
|
52
|
+
'isEnabled'?: boolean;
|
|
59
53
|
/**
|
|
60
54
|
* Detailed description of what this action does
|
|
61
55
|
* @type {string}
|
|
62
56
|
* @memberof UpdateActionRequestDto
|
|
63
57
|
*/
|
|
64
58
|
'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;
|
|
89
59
|
}
|
|
90
60
|
|
|
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
|
-
|