@emilgroup/action-sdk-node 1.0.1-beta.31 → 1.0.1-beta.35
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 +6 -0
- package/README.md +2 -2
- package/api/actions-api.ts +184 -219
- package/api/executions-api.ts +475 -0
- package/api.ts +2 -0
- package/dist/api/actions-api.d.ts +140 -166
- package/dist/api/actions-api.js +126 -141
- package/dist/api/executions-api.d.ts +272 -0
- package/dist/api/executions-api.js +456 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/action-class.d.ts +38 -2
- package/dist/models/action-execution-class.d.ts +30 -0
- package/dist/models/create-action-request-dto.d.ts +31 -1
- package/dist/models/create-action-request-dto.js +6 -0
- package/dist/models/export-actions-as-yaml-response-class.d.ts +24 -0
- package/dist/models/export-actions-as-yaml-response-class.js +15 -0
- package/dist/models/import-actions-from-yaml-request-dto.d.ts +36 -0
- package/dist/models/import-actions-from-yaml-request-dto.js +15 -0
- package/dist/models/import-actions-from-yaml-response-class.d.ts +37 -0
- package/dist/models/import-actions-from-yaml-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/trigger-action-request-dto.d.ts +62 -0
- package/dist/models/trigger-action-request-dto.js +15 -0
- package/dist/models/trigger-action-response-class.d.ts +25 -0
- package/dist/models/trigger-action-response-class.js +15 -0
- package/dist/models/update-action-request-dto.d.ts +30 -0
- package/dist/models/update-action-request-dto.js +6 -0
- package/models/action-class.ts +38 -2
- package/models/action-execution-class.ts +30 -0
- package/models/create-action-request-dto.ts +34 -1
- package/models/export-actions-as-yaml-response-class.ts +30 -0
- package/models/import-actions-from-yaml-request-dto.ts +42 -0
- package/models/import-actions-from-yaml-response-class.ts +43 -0
- package/models/index.ts +5 -0
- package/models/trigger-action-request-dto.ts +66 -0
- package/models/trigger-action-response-class.ts +31 -0
- package/models/update-action-request-dto.ts +33 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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
|
+
* If true, allow triggering a draft (disabled) action and run its workflow
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof TriggerActionRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'force'?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Optional correlation ID for tracing/idempotency
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof TriggerActionRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'correlationId'?: string;
|
|
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
|
+
|
|
@@ -50,11 +50,44 @@ export interface UpdateActionRequestDto {
|
|
|
50
50
|
* @memberof UpdateActionRequestDto
|
|
51
51
|
*/
|
|
52
52
|
'isEnabled'?: 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. When provided, entityType is required (and vice versa).
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof UpdateActionRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'productVersionId'?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Optional JSON Schema to validate input_payload when triggering the action
|
|
79
|
+
* @type {object}
|
|
80
|
+
* @memberof UpdateActionRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'inputValidationSchema'?: object;
|
|
59
83
|
}
|
|
60
84
|
|
|
85
|
+
export const UpdateActionRequestDtoEntityTypeEnum = {
|
|
86
|
+
Policy: 'POLICY',
|
|
87
|
+
Lead: 'LEAD',
|
|
88
|
+
Claim: 'CLAIM'
|
|
89
|
+
} as const;
|
|
90
|
+
|
|
91
|
+
export type UpdateActionRequestDtoEntityTypeEnum = typeof UpdateActionRequestDtoEntityTypeEnum[keyof typeof UpdateActionRequestDtoEntityTypeEnum];
|
|
92
|
+
|
|
93
|
+
|