@emilgroup/action-sdk 1.1.1-beta.24 → 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.
Files changed (52) hide show
  1. package/.openapi-generator/FILES +0 -10
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +125 -811
  4. package/api.ts +0 -2
  5. package/dist/api/actions-api.d.ts +110 -496
  6. package/dist/api/actions-api.js +96 -633
  7. package/dist/api.d.ts +0 -1
  8. package/dist/api.js +0 -1
  9. package/dist/models/action-class.d.ts +20 -9
  10. package/dist/models/action-execution-class.d.ts +0 -36
  11. package/dist/models/create-action-request-dto.d.ts +5 -47
  12. package/dist/models/create-action-request-dto.js +0 -6
  13. package/dist/models/index.d.ts +0 -9
  14. package/dist/models/index.js +0 -9
  15. package/dist/models/update-action-request-dto.d.ts +5 -41
  16. package/dist/models/update-action-request-dto.js +0 -6
  17. package/models/action-class.ts +20 -9
  18. package/models/action-execution-class.ts +0 -36
  19. package/models/create-action-request-dto.ts +5 -50
  20. package/models/index.ts +0 -9
  21. package/models/update-action-request-dto.ts +5 -44
  22. package/package.json +1 -1
  23. package/api/executions-api.ts +0 -471
  24. package/dist/api/executions-api.d.ts +0 -272
  25. package/dist/api/executions-api.js +0 -452
  26. package/dist/models/action-ref-class.d.ts +0 -36
  27. package/dist/models/action-ref-class.js +0 -15
  28. package/dist/models/action-version-class.d.ts +0 -127
  29. package/dist/models/action-version-class.js +0 -21
  30. package/dist/models/export-actions-as-yaml-response-class.d.ts +0 -24
  31. package/dist/models/export-actions-as-yaml-response-class.js +0 -15
  32. package/dist/models/get-action-version-response-class.d.ts +0 -25
  33. package/dist/models/get-action-version-response-class.js +0 -15
  34. package/dist/models/import-actions-from-yaml-request-dto.d.ts +0 -36
  35. package/dist/models/import-actions-from-yaml-request-dto.js +0 -15
  36. package/dist/models/import-actions-from-yaml-response-class.d.ts +0 -37
  37. package/dist/models/import-actions-from-yaml-response-class.js +0 -15
  38. package/dist/models/list-action-versions-response-class.d.ts +0 -43
  39. package/dist/models/list-action-versions-response-class.js +0 -15
  40. package/dist/models/trigger-action-request-dto.d.ts +0 -62
  41. package/dist/models/trigger-action-request-dto.js +0 -15
  42. package/dist/models/trigger-action-response-class.d.ts +0 -25
  43. package/dist/models/trigger-action-response-class.js +0 -15
  44. package/models/action-ref-class.ts +0 -42
  45. package/models/action-version-class.ts +0 -136
  46. package/models/export-actions-as-yaml-response-class.ts +0 -30
  47. package/models/get-action-version-response-class.ts +0 -31
  48. package/models/import-actions-from-yaml-request-dto.ts +0 -42
  49. package/models/import-actions-from-yaml-response-class.ts +0 -43
  50. package/models/list-action-versions-response-class.ts +0 -49
  51. package/models/trigger-action-request-dto.ts +0 -66
  52. package/models/trigger-action-response-class.ts +0 -31
@@ -1,24 +0,0 @@
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 ExportActionsAsYamlResponseClass
16
- */
17
- export interface ExportActionsAsYamlResponseClass {
18
- /**
19
- * Serialized YAML for the product version (all entity types)
20
- * @type {string}
21
- * @memberof ExportActionsAsYamlResponseClass
22
- */
23
- 'yamlContent': string;
24
- }
@@ -1,15 +0,0 @@
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,25 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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,36 +0,0 @@
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 ImportActionsFromYamlRequestDto
16
- */
17
- export interface ImportActionsFromYamlRequestDto {
18
- /**
19
- * Product slug for the whole document
20
- * @type {string}
21
- * @memberof ImportActionsFromYamlRequestDto
22
- */
23
- 'productSlug': string;
24
- /**
25
- * Product version ID for the whole document
26
- * @type {number}
27
- * @memberof ImportActionsFromYamlRequestDto
28
- */
29
- 'productVersionId': number;
30
- /**
31
- * Full YAML body (entity_actions keyed by entity type)
32
- * @type {string}
33
- * @memberof ImportActionsFromYamlRequestDto
34
- */
35
- 'yamlContent': string;
36
- }
@@ -1,15 +0,0 @@
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,37 +0,0 @@
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 { ActionClass } from './action-class';
13
- /**
14
- *
15
- * @export
16
- * @interface ImportActionsFromYamlResponseClass
17
- */
18
- export interface ImportActionsFromYamlResponseClass {
19
- /**
20
- * Normalized YAML for client to store
21
- * @type {string}
22
- * @memberof ImportActionsFromYamlResponseClass
23
- */
24
- 'yamlContent': string;
25
- /**
26
- * Actions that were created
27
- * @type {Array<ActionClass>}
28
- * @memberof ImportActionsFromYamlResponseClass
29
- */
30
- 'createdActions': Array<ActionClass>;
31
- /**
32
- * Actions that were updated
33
- * @type {Array<ActionClass>}
34
- * @memberof ImportActionsFromYamlResponseClass
35
- */
36
- 'updatedActions': Array<ActionClass>;
37
- }
@@ -1,15 +0,0 @@
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,43 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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,62 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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,25 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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,42 +0,0 @@
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 ActionRefClass
21
- */
22
- export interface ActionRefClass {
23
- /**
24
- * Action code
25
- * @type {string}
26
- * @memberof ActionRefClass
27
- */
28
- 'code': string;
29
- /**
30
- * Action name
31
- * @type {string}
32
- * @memberof ActionRefClass
33
- */
34
- 'name': string;
35
- /**
36
- * Action slug
37
- * @type {string}
38
- * @memberof ActionRefClass
39
- */
40
- 'slug': string;
41
- }
42
-
@@ -1,136 +0,0 @@
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 { ActionRefClass } from './action-ref-class';
17
-
18
- /**
19
- *
20
- * @export
21
- * @interface ActionVersionClass
22
- */
23
- export interface ActionVersionClass {
24
- /**
25
- * Internal unique identifier for the object. You should not have to use this, use code instead.
26
- * @type {number}
27
- * @memberof ActionVersionClass
28
- */
29
- 'id': number;
30
- /**
31
- * Whether this version is the active/published one (only one per action config)
32
- * @type {boolean}
33
- * @memberof ActionVersionClass
34
- */
35
- 'isActive': boolean;
36
- /**
37
- * Version number (1, 2, 3...)
38
- * @type {number}
39
- * @memberof ActionVersionClass
40
- */
41
- 'versionNumber': number;
42
- /**
43
- * Version code (unique id, e.g. acv_<nanoid>)
44
- * @type {string}
45
- * @memberof ActionVersionClass
46
- */
47
- 'code': string;
48
- /**
49
- * Detailed description of what this action does
50
- * @type {string}
51
- * @memberof ActionVersionClass
52
- */
53
- 'description'?: string;
54
- /**
55
- * BPMN/workflow code (resolved from workflow_slug)
56
- * @type {string}
57
- * @memberof ActionVersionClass
58
- */
59
- 'workflowCode': string;
60
- /**
61
- * BPMN/workflow slug
62
- * @type {string}
63
- * @memberof ActionVersionClass
64
- */
65
- 'workflowSlug': string;
66
- /**
67
- * Entity type: Policy, Lead, Claim
68
- * @type {string}
69
- * @memberof ActionVersionClass
70
- */
71
- 'entityType'?: ActionVersionClassEntityTypeEnum;
72
- /**
73
- * Product version ID
74
- * @type {number}
75
- * @memberof ActionVersionClass
76
- */
77
- 'productVersionId'?: number;
78
- /**
79
- * Derived from product_version.product_id
80
- * @type {string}
81
- * @memberof ActionVersionClass
82
- */
83
- 'productSlug'?: string;
84
- /**
85
- * Whether the action is available in the UI
86
- * @type {boolean}
87
- * @memberof ActionVersionClass
88
- */
89
- 'isAvailableInUi'?: boolean;
90
- /**
91
- * Optional JSON Schema to validate input_payload when triggering (only when expand=inputValidationSchema)
92
- * @type {object}
93
- * @memberof ActionVersionClass
94
- */
95
- 'inputValidationSchema'?: object;
96
- /**
97
- * Time at which the object was created.
98
- * @type {string}
99
- * @memberof ActionVersionClass
100
- */
101
- 'createdAt': string;
102
- /**
103
- * Time at which the object was updated.
104
- * @type {string}
105
- * @memberof ActionVersionClass
106
- */
107
- 'updatedAt': string;
108
- /**
109
- * Identifier of the user who created the record.
110
- * @type {string}
111
- * @memberof ActionVersionClass
112
- */
113
- 'createdBy': string;
114
- /**
115
- * Identifier of the user who last updated the record.
116
- * @type {string}
117
- * @memberof ActionVersionClass
118
- */
119
- 'updatedBy': string;
120
- /**
121
- * Parent action (code, name, slug). Set when listing versions so clients know which action each version belongs to.
122
- * @type {ActionRefClass}
123
- * @memberof ActionVersionClass
124
- */
125
- 'action'?: ActionRefClass;
126
- }
127
-
128
- export const ActionVersionClassEntityTypeEnum = {
129
- Policy: 'POLICY',
130
- Lead: 'LEAD',
131
- Claim: 'CLAIM'
132
- } as const;
133
-
134
- export type ActionVersionClassEntityTypeEnum = typeof ActionVersionClassEntityTypeEnum[keyof typeof ActionVersionClassEntityTypeEnum];
135
-
136
-
@@ -1,30 +0,0 @@
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 ExportActionsAsYamlResponseClass
21
- */
22
- export interface ExportActionsAsYamlResponseClass {
23
- /**
24
- * Serialized YAML for the product version (all entity types)
25
- * @type {string}
26
- * @memberof ExportActionsAsYamlResponseClass
27
- */
28
- 'yamlContent': string;
29
- }
30
-
@@ -1,31 +0,0 @@
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
-
@@ -1,42 +0,0 @@
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 ImportActionsFromYamlRequestDto
21
- */
22
- export interface ImportActionsFromYamlRequestDto {
23
- /**
24
- * Product slug for the whole document
25
- * @type {string}
26
- * @memberof ImportActionsFromYamlRequestDto
27
- */
28
- 'productSlug': string;
29
- /**
30
- * Product version ID for the whole document
31
- * @type {number}
32
- * @memberof ImportActionsFromYamlRequestDto
33
- */
34
- 'productVersionId': number;
35
- /**
36
- * Full YAML body (entity_actions keyed by entity type)
37
- * @type {string}
38
- * @memberof ImportActionsFromYamlRequestDto
39
- */
40
- 'yamlContent': string;
41
- }
42
-