@emilgroup/action-sdk-node 1.0.1-beta.22 → 1.0.1-beta.26

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 (45) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/api/actions-api.ts +987 -0
  4. package/api.ts +2 -0
  5. package/dist/api/actions-api.d.ts +559 -0
  6. package/dist/api/actions-api.js +868 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/action-class.d.ts +84 -0
  10. package/dist/models/action-class.js +15 -0
  11. package/dist/models/action-execution-class.d.ts +107 -0
  12. package/dist/models/action-execution-class.js +15 -0
  13. package/dist/models/create-action-request-dto.d.ts +48 -0
  14. package/dist/models/create-action-request-dto.js +15 -0
  15. package/dist/models/create-action-response-class.d.ts +25 -0
  16. package/dist/models/create-action-response-class.js +15 -0
  17. package/dist/models/get-action-execution-status-response-class.d.ts +25 -0
  18. package/dist/models/get-action-execution-status-response-class.js +15 -0
  19. package/dist/models/get-action-response-class.d.ts +25 -0
  20. package/dist/models/get-action-response-class.js +15 -0
  21. package/dist/models/index.d.ts +11 -0
  22. package/dist/models/index.js +11 -0
  23. package/dist/models/list-action-executions-response-class.d.ts +43 -0
  24. package/dist/models/list-action-executions-response-class.js +15 -0
  25. package/dist/models/list-actions-response-class.d.ts +43 -0
  26. package/dist/models/list-actions-response-class.js +15 -0
  27. package/dist/models/update-action-request-dto.d.ts +54 -0
  28. package/dist/models/update-action-request-dto.js +15 -0
  29. package/dist/models/update-action-response-class.d.ts +25 -0
  30. package/dist/models/update-action-response-class.js +15 -0
  31. package/dist/models/workflow-output-reference-class.d.ts +30 -0
  32. package/dist/models/workflow-output-reference-class.js +15 -0
  33. package/models/action-class.ts +90 -0
  34. package/models/action-execution-class.ts +109 -0
  35. package/models/create-action-request-dto.ts +54 -0
  36. package/models/create-action-response-class.ts +31 -0
  37. package/models/get-action-execution-status-response-class.ts +31 -0
  38. package/models/get-action-response-class.ts +31 -0
  39. package/models/index.ts +11 -0
  40. package/models/list-action-executions-response-class.ts +49 -0
  41. package/models/list-actions-response-class.ts +49 -0
  42. package/models/update-action-request-dto.ts +60 -0
  43. package/models/update-action-response-class.ts +31 -0
  44. package/models/workflow-output-reference-class.ts +36 -0
  45. package/package.json +2 -2
@@ -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,30 @@
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 WorkflowOutputReferenceClass
16
+ */
17
+ export interface WorkflowOutputReferenceClass {
18
+ /**
19
+ * ProcessManager workflow instance key/code
20
+ * @type {string}
21
+ * @memberof WorkflowOutputReferenceClass
22
+ */
23
+ 'workflowInstanceKey': string;
24
+ /**
25
+ * Workflow task key that contains the output
26
+ * @type {string}
27
+ * @memberof WorkflowOutputReferenceClass
28
+ */
29
+ 'workflowTaskKey': string;
30
+ }
@@ -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,90 @@
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 ActionClass
21
+ */
22
+ export interface ActionClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof ActionClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof ActionClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * Human readable action name
37
+ * @type {string}
38
+ * @memberof ActionClass
39
+ */
40
+ 'name': string;
41
+ /**
42
+ * Stable identifier; unique per tenant
43
+ * @type {string}
44
+ * @memberof ActionClass
45
+ */
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;
65
+ /**
66
+ * Time at which the object was created.
67
+ * @type {string}
68
+ * @memberof ActionClass
69
+ */
70
+ 'createdAt': string;
71
+ /**
72
+ * Time at which the object was updated.
73
+ * @type {string}
74
+ * @memberof ActionClass
75
+ */
76
+ 'updatedAt': string;
77
+ /**
78
+ * Identifier of the user who created the record.
79
+ * @type {string}
80
+ * @memberof ActionClass
81
+ */
82
+ 'createdBy': string;
83
+ /**
84
+ * Identifier of the user who last updated the record.
85
+ * @type {string}
86
+ * @memberof ActionClass
87
+ */
88
+ 'updatedBy': string;
89
+ }
90
+
@@ -0,0 +1,109 @@
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 { WorkflowOutputReferenceClass } from './workflow-output-reference-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ActionExecutionClass
22
+ */
23
+ export interface ActionExecutionClass {
24
+ /**
25
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
26
+ * @type {number}
27
+ * @memberof ActionExecutionClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * Unique identifier for the object.
32
+ * @type {string}
33
+ * @memberof ActionExecutionClass
34
+ */
35
+ 'code': string;
36
+ /**
37
+ * Action configuration code (action_configs.code)
38
+ * @type {string}
39
+ * @memberof ActionExecutionClass
40
+ */
41
+ 'actionCode': string;
42
+ /**
43
+ * Execution status
44
+ * @type {string}
45
+ * @memberof ActionExecutionClass
46
+ */
47
+ 'status': string;
48
+ /**
49
+ * Who triggered the execution
50
+ * @type {string}
51
+ * @memberof ActionExecutionClass
52
+ */
53
+ 'triggeredBy': string;
54
+ /**
55
+ * How the execution was triggered
56
+ * @type {string}
57
+ * @memberof ActionExecutionClass
58
+ */
59
+ 'triggerSource': string;
60
+ /**
61
+ * Error message when execution fails
62
+ * @type {string}
63
+ * @memberof ActionExecutionClass
64
+ */
65
+ 'error'?: string;
66
+ /**
67
+ * Structured error details when execution fails
68
+ * @type {{ [key: string]: object; }}
69
+ * @memberof ActionExecutionClass
70
+ */
71
+ 'errorDetails'?: { [key: string]: object; };
72
+ /**
73
+ * Time at which the object was created.
74
+ * @type {string}
75
+ * @memberof ActionExecutionClass
76
+ */
77
+ 'createdAt': string;
78
+ /**
79
+ * Time at which the object was updated.
80
+ * @type {string}
81
+ * @memberof ActionExecutionClass
82
+ */
83
+ 'updatedAt': string;
84
+ /**
85
+ * When the execution completed (succeeded or failed)
86
+ * @type {string}
87
+ * @memberof ActionExecutionClass
88
+ */
89
+ 'completedAt'?: string;
90
+ /**
91
+ * Correlation ID (e.g. webhook execution code that triggered this action execution)
92
+ * @type {string}
93
+ * @memberof ActionExecutionClass
94
+ */
95
+ 'correlationId': string;
96
+ /**
97
+ * Input payload for the execution
98
+ * @type {{ [key: string]: object; }}
99
+ * @memberof ActionExecutionClass
100
+ */
101
+ 'inputPayload'?: { [key: string]: object; };
102
+ /**
103
+ * Reference to ProcessManager workflow output (avoids duplicating workflow outputs)
104
+ * @type {WorkflowOutputReferenceClass}
105
+ * @memberof ActionExecutionClass
106
+ */
107
+ 'workflowOutputReference'?: WorkflowOutputReferenceClass;
108
+ }
109
+
@@ -0,0 +1,54 @@
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 CreateActionRequestDto
21
+ */
22
+ export interface CreateActionRequestDto {
23
+ /**
24
+ * Human readable action name
25
+ * @type {string}
26
+ * @memberof CreateActionRequestDto
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * Stable identifier; auto-generated from action_name if not provided
31
+ * @type {string}
32
+ * @memberof CreateActionRequestDto
33
+ */
34
+ 'slug'?: string;
35
+ /**
36
+ * BPMN/workflow code to execute when this action is triggered
37
+ * @type {string}
38
+ * @memberof CreateActionRequestDto
39
+ */
40
+ 'workflowCode': string;
41
+ /**
42
+ * Whether the action is enabled and can be triggered
43
+ * @type {boolean}
44
+ * @memberof CreateActionRequestDto
45
+ */
46
+ 'isEnabled'?: boolean;
47
+ /**
48
+ * Detailed description of what this action does
49
+ * @type {string}
50
+ * @memberof CreateActionRequestDto
51
+ */
52
+ 'description'?: string;
53
+ }
54
+
@@ -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 { ActionClass } from './action-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateActionResponseClass
22
+ */
23
+ export interface CreateActionResponseClass {
24
+ /**
25
+ * The created action configuration
26
+ * @type {ActionClass}
27
+ * @memberof CreateActionResponseClass
28
+ */
29
+ 'action': ActionClass;
30
+ }
31
+
@@ -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 GetActionExecutionStatusResponseClass
22
+ */
23
+ export interface GetActionExecutionStatusResponseClass {
24
+ /**
25
+ * Latest action execution status
26
+ * @type {ActionExecutionClass}
27
+ * @memberof GetActionExecutionStatusResponseClass
28
+ */
29
+ 'actionExecution'?: ActionExecutionClass;
30
+ }
31
+
@@ -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 { ActionClass } from './action-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetActionResponseClass
22
+ */
23
+ export interface GetActionResponseClass {
24
+ /**
25
+ * The requested action configuration
26
+ * @type {ActionClass}
27
+ * @memberof GetActionResponseClass
28
+ */
29
+ 'action': ActionClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,2 +1,13 @@
1
+ export * from './action-class';
2
+ export * from './action-execution-class';
3
+ export * from './create-action-request-dto';
4
+ export * from './create-action-response-class';
5
+ export * from './get-action-execution-status-response-class';
6
+ export * from './get-action-response-class';
1
7
  export * from './inline-response200';
2
8
  export * from './inline-response503';
9
+ export * from './list-action-executions-response-class';
10
+ export * from './list-actions-response-class';
11
+ export * from './update-action-request-dto';
12
+ export * from './update-action-response-class';
13
+ export * from './workflow-output-reference-class';
@@ -0,0 +1,49 @@
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 ListActionExecutionsResponseClass
22
+ */
23
+ export interface ListActionExecutionsResponseClass {
24
+ /**
25
+ * List of action executions
26
+ * @type {Array<ActionExecutionClass>}
27
+ * @memberof ListActionExecutionsResponseClass
28
+ */
29
+ 'items': Array<ActionExecutionClass>;
30
+ /**
31
+ * Token for the next page
32
+ * @type {string}
33
+ * @memberof ListActionExecutionsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Number of items per page
38
+ * @type {number}
39
+ * @memberof ListActionExecutionsResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total number of items
44
+ * @type {number}
45
+ * @memberof ListActionExecutionsResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
@@ -0,0 +1,49 @@
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 { ActionClass } from './action-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListActionsResponseClass
22
+ */
23
+ export interface ListActionsResponseClass {
24
+ /**
25
+ * List of action configurations
26
+ * @type {Array<ActionClass>}
27
+ * @memberof ListActionsResponseClass
28
+ */
29
+ 'items': Array<ActionClass>;
30
+ /**
31
+ * Token for retrieving the next page
32
+ * @type {string}
33
+ * @memberof ListActionsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Number of items per page
38
+ * @type {number}
39
+ * @memberof ListActionsResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total number of items across all pages
44
+ * @type {number}
45
+ * @memberof ListActionsResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
@@ -0,0 +1,60 @@
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 UpdateActionRequestDto
21
+ */
22
+ export interface UpdateActionRequestDto {
23
+ /**
24
+ * Action code: unique identifier of the action
25
+ * @type {string}
26
+ * @memberof UpdateActionRequestDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * Human readable action name
31
+ * @type {string}
32
+ * @memberof UpdateActionRequestDto
33
+ */
34
+ 'name'?: string;
35
+ /**
36
+ * Stable identifier; unique per tenant
37
+ * @type {string}
38
+ * @memberof UpdateActionRequestDto
39
+ */
40
+ 'slug'?: string;
41
+ /**
42
+ * BPMN/workflow code to execute when this action is triggered
43
+ * @type {string}
44
+ * @memberof UpdateActionRequestDto
45
+ */
46
+ 'workflowCode'?: string;
47
+ /**
48
+ * Whether the action is enabled and can be triggered
49
+ * @type {boolean}
50
+ * @memberof UpdateActionRequestDto
51
+ */
52
+ 'isEnabled'?: boolean;
53
+ /**
54
+ * Detailed description of what this action does
55
+ * @type {string}
56
+ * @memberof UpdateActionRequestDto
57
+ */
58
+ 'description'?: string;
59
+ }
60
+
@@ -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 { ActionClass } from './action-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateActionResponseClass
22
+ */
23
+ export interface UpdateActionResponseClass {
24
+ /**
25
+ * The updated action configuration
26
+ * @type {ActionClass}
27
+ * @memberof UpdateActionResponseClass
28
+ */
29
+ 'action': ActionClass;
30
+ }
31
+
@@ -0,0 +1,36 @@
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 WorkflowOutputReferenceClass
21
+ */
22
+ export interface WorkflowOutputReferenceClass {
23
+ /**
24
+ * ProcessManager workflow instance key/code
25
+ * @type {string}
26
+ * @memberof WorkflowOutputReferenceClass
27
+ */
28
+ 'workflowInstanceKey': string;
29
+ /**
30
+ * Workflow task key that contains the output
31
+ * @type {string}
32
+ * @memberof WorkflowOutputReferenceClass
33
+ */
34
+ 'workflowTaskKey': string;
35
+ }
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/action-sdk-node",
3
- "version": "1.0.1-beta.22",
3
+ "version": "1.0.1-beta.26",
4
4
  "description": "OpenAPI client for @emilgroup/action-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }