@kommerz/ts-client 1.167.14 → 1.168.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.
- package/dist/apis/WorkflowExecutionsApi.d.ts +42 -0
- package/dist/apis/WorkflowExecutionsApi.js +184 -0
- package/dist/apis/WorkflowExternalTasksApi.d.ts +80 -0
- package/dist/apis/WorkflowExternalTasksApi.js +343 -0
- package/dist/apis/WorkflowProcessesApi.d.ts +1 -14
- package/dist/apis/WorkflowProcessesApi.js +0 -55
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/EntityType.d.ts +2 -1
- package/dist/models/EntityType.js +2 -1
- package/dist/models/GetAllWorkflowExecutions200Response.d.ts +50 -0
- package/dist/models/GetAllWorkflowExecutions200Response.js +59 -0
- package/dist/models/GetAllWorkflowExternalTasks200Response.d.ts +50 -0
- package/dist/models/GetAllWorkflowExternalTasks200Response.js +59 -0
- package/dist/models/GetAllWorkflowProcessLogs200Response.d.ts +3 -3
- package/dist/models/GetAllWorkflowProcessLogs200Response.js +3 -3
- package/dist/models/InternalWorkflowExternalTask.d.ts +43 -0
- package/dist/models/InternalWorkflowExternalTask.js +58 -0
- package/dist/models/InternalWorkflowProcessLogDto.d.ts +10 -4
- package/dist/models/InternalWorkflowProcessLogDto.js +6 -2
- package/dist/models/WorkflowExecutionDto.d.ts +81 -0
- package/dist/models/WorkflowExecutionDto.js +80 -0
- package/dist/models/WorkflowExecutionStatus.d.ts +26 -0
- package/dist/models/WorkflowExecutionStatus.js +52 -0
- package/dist/models/WorkflowExternalTask.d.ts +61 -0
- package/dist/models/WorkflowExternalTask.js +66 -0
- package/dist/models/WorkflowExternalTaskDto.d.ts +55 -0
- package/dist/models/WorkflowExternalTaskDto.js +62 -0
- package/dist/models/WorkflowProcessLogDto.d.ts +0 -24
- package/dist/models/WorkflowProcessLogDto.js +0 -14
- package/dist/models/WorkflowProcessStatus.d.ts +6 -0
- package/dist/models/WorkflowProcessStatus.js +6 -0
- package/dist/models/index.d.ts +6 -1
- package/dist/models/index.js +6 -1
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kommerz API Specification
|
|
3
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
4
|
+
*
|
|
5
|
+
* Contact: info@kommerz.app
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
+
* https://openapi-generator.tech
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import * as runtime from '../runtime';
|
|
12
|
+
import type { ColamdaPageable, GetAllWorkflowExecutions200Response, WorkflowExecutionDto } from '../models/index';
|
|
13
|
+
export interface GetAllWorkflowExecutionsRequest {
|
|
14
|
+
id: string;
|
|
15
|
+
pageable: ColamdaPageable;
|
|
16
|
+
filter?: Array<string>;
|
|
17
|
+
}
|
|
18
|
+
export interface RunWorkflowExecutionRequest {
|
|
19
|
+
id: string;
|
|
20
|
+
secondaryId: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class WorkflowExecutionsApi extends runtime.BaseAPI {
|
|
26
|
+
/**
|
|
27
|
+
* get all workflow process logs
|
|
28
|
+
*/
|
|
29
|
+
getAllWorkflowExecutionsRaw(requestParameters: GetAllWorkflowExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllWorkflowExecutions200Response>>;
|
|
30
|
+
/**
|
|
31
|
+
* get all workflow process logs
|
|
32
|
+
*/
|
|
33
|
+
getAllWorkflowExecutions(requestParameters: GetAllWorkflowExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllWorkflowExecutions200Response>;
|
|
34
|
+
/**
|
|
35
|
+
* Re-run a failed execution (external task)
|
|
36
|
+
*/
|
|
37
|
+
runWorkflowExecutionRaw(requestParameters: RunWorkflowExecutionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowExecutionDto>>;
|
|
38
|
+
/**
|
|
39
|
+
* Re-run a failed execution (external task)
|
|
40
|
+
*/
|
|
41
|
+
runWorkflowExecution(requestParameters: RunWorkflowExecutionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowExecutionDto>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Kommerz API Specification
|
|
6
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
7
|
+
*
|
|
8
|
+
* Contact: info@kommerz.app
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
40
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.WorkflowExecutionsApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var WorkflowExecutionsApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(WorkflowExecutionsApi, _super);
|
|
74
|
+
function WorkflowExecutionsApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* get all workflow process logs
|
|
79
|
+
*/
|
|
80
|
+
WorkflowExecutionsApi.prototype.getAllWorkflowExecutionsRaw = function (requestParameters, initOverrides) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
83
|
+
return __generator(this, function (_a) {
|
|
84
|
+
switch (_a.label) {
|
|
85
|
+
case 0:
|
|
86
|
+
if (requestParameters['id'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAllWorkflowExecutions().');
|
|
88
|
+
}
|
|
89
|
+
if (requestParameters['pageable'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllWorkflowExecutions().');
|
|
91
|
+
}
|
|
92
|
+
queryParameters = {};
|
|
93
|
+
if (requestParameters['pageable'] != null) {
|
|
94
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
95
|
+
}
|
|
96
|
+
if (requestParameters['filter'] != null) {
|
|
97
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
98
|
+
}
|
|
99
|
+
headerParameters = {};
|
|
100
|
+
urlPath = "/ui/workflow/v1/workflow-processes/{id}/executions";
|
|
101
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
102
|
+
return [4 /*yield*/, this.request({
|
|
103
|
+
path: urlPath,
|
|
104
|
+
method: 'GET',
|
|
105
|
+
headers: headerParameters,
|
|
106
|
+
query: queryParameters,
|
|
107
|
+
}, initOverrides)];
|
|
108
|
+
case 1:
|
|
109
|
+
response = _a.sent();
|
|
110
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllWorkflowExecutions200ResponseFromJSON)(jsonValue); })];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* get all workflow process logs
|
|
117
|
+
*/
|
|
118
|
+
WorkflowExecutionsApi.prototype.getAllWorkflowExecutions = function (requestParameters, initOverrides) {
|
|
119
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
120
|
+
var response;
|
|
121
|
+
return __generator(this, function (_a) {
|
|
122
|
+
switch (_a.label) {
|
|
123
|
+
case 0: return [4 /*yield*/, this.getAllWorkflowExecutionsRaw(requestParameters, initOverrides)];
|
|
124
|
+
case 1:
|
|
125
|
+
response = _a.sent();
|
|
126
|
+
return [4 /*yield*/, response.value()];
|
|
127
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Re-run a failed execution (external task)
|
|
134
|
+
*/
|
|
135
|
+
WorkflowExecutionsApi.prototype.runWorkflowExecutionRaw = function (requestParameters, initOverrides) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
137
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
138
|
+
return __generator(this, function (_a) {
|
|
139
|
+
switch (_a.label) {
|
|
140
|
+
case 0:
|
|
141
|
+
if (requestParameters['id'] == null) {
|
|
142
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling runWorkflowExecution().');
|
|
143
|
+
}
|
|
144
|
+
if (requestParameters['secondaryId'] == null) {
|
|
145
|
+
throw new runtime.RequiredError('secondaryId', 'Required parameter "secondaryId" was null or undefined when calling runWorkflowExecution().');
|
|
146
|
+
}
|
|
147
|
+
queryParameters = {};
|
|
148
|
+
headerParameters = {};
|
|
149
|
+
urlPath = "/ui/workflow/v1/workflow-processes/{id}/executions/{secondaryId}/run";
|
|
150
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
151
|
+
urlPath = urlPath.replace("{".concat("secondaryId", "}"), encodeURIComponent(String(requestParameters['secondaryId'])));
|
|
152
|
+
return [4 /*yield*/, this.request({
|
|
153
|
+
path: urlPath,
|
|
154
|
+
method: 'POST',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}, initOverrides)];
|
|
158
|
+
case 1:
|
|
159
|
+
response = _a.sent();
|
|
160
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.WorkflowExecutionDtoFromJSON)(jsonValue); })];
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Re-run a failed execution (external task)
|
|
167
|
+
*/
|
|
168
|
+
WorkflowExecutionsApi.prototype.runWorkflowExecution = function (requestParameters, initOverrides) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
170
|
+
var response;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0: return [4 /*yield*/, this.runWorkflowExecutionRaw(requestParameters, initOverrides)];
|
|
174
|
+
case 1:
|
|
175
|
+
response = _a.sent();
|
|
176
|
+
return [4 /*yield*/, response.value()];
|
|
177
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
return WorkflowExecutionsApi;
|
|
183
|
+
}(runtime.BaseAPI));
|
|
184
|
+
exports.WorkflowExecutionsApi = WorkflowExecutionsApi;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kommerz API Specification
|
|
3
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
4
|
+
*
|
|
5
|
+
* Contact: info@kommerz.app
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
+
* https://openapi-generator.tech
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import * as runtime from '../runtime';
|
|
12
|
+
import type { ColamdaPageable, GetAllWorkflowExternalTasks200Response, WorkflowExternalTaskDto } from '../models/index';
|
|
13
|
+
export interface CreateWorkflowExternalTaskRequest {
|
|
14
|
+
id: string;
|
|
15
|
+
workflowExternalTaskDto: WorkflowExternalTaskDto;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteWorkflowExternalTaskRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
secondaryId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetAllWorkflowExternalTasksRequest {
|
|
22
|
+
id: string;
|
|
23
|
+
pageable: ColamdaPageable;
|
|
24
|
+
filter?: Array<string>;
|
|
25
|
+
}
|
|
26
|
+
export interface GetWorkflowExternalTaskRequest {
|
|
27
|
+
id: string;
|
|
28
|
+
secondaryId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface UpdateExternalTaskRequest {
|
|
31
|
+
id: string;
|
|
32
|
+
secondaryId: string;
|
|
33
|
+
workflowExternalTaskDto: WorkflowExternalTaskDto;
|
|
34
|
+
force?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare class WorkflowExternalTasksApi extends runtime.BaseAPI {
|
|
40
|
+
/**
|
|
41
|
+
* Create a new external task
|
|
42
|
+
*/
|
|
43
|
+
createWorkflowExternalTaskRaw(requestParameters: CreateWorkflowExternalTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowExternalTaskDto>>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a new external task
|
|
46
|
+
*/
|
|
47
|
+
createWorkflowExternalTask(requestParameters: CreateWorkflowExternalTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowExternalTaskDto>;
|
|
48
|
+
/**
|
|
49
|
+
* delete a workflow external task
|
|
50
|
+
*/
|
|
51
|
+
deleteWorkflowExternalTaskRaw(requestParameters: DeleteWorkflowExternalTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowExternalTaskDto>>;
|
|
52
|
+
/**
|
|
53
|
+
* delete a workflow external task
|
|
54
|
+
*/
|
|
55
|
+
deleteWorkflowExternalTask(requestParameters: DeleteWorkflowExternalTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowExternalTaskDto>;
|
|
56
|
+
/**
|
|
57
|
+
* get all external tasks
|
|
58
|
+
*/
|
|
59
|
+
getAllWorkflowExternalTasksRaw(requestParameters: GetAllWorkflowExternalTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllWorkflowExternalTasks200Response>>;
|
|
60
|
+
/**
|
|
61
|
+
* get all external tasks
|
|
62
|
+
*/
|
|
63
|
+
getAllWorkflowExternalTasks(requestParameters: GetAllWorkflowExternalTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllWorkflowExternalTasks200Response>;
|
|
64
|
+
/**
|
|
65
|
+
* read one workflow external task
|
|
66
|
+
*/
|
|
67
|
+
getWorkflowExternalTaskRaw(requestParameters: GetWorkflowExternalTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowExternalTaskDto>>;
|
|
68
|
+
/**
|
|
69
|
+
* read one workflow external task
|
|
70
|
+
*/
|
|
71
|
+
getWorkflowExternalTask(requestParameters: GetWorkflowExternalTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowExternalTaskDto>;
|
|
72
|
+
/**
|
|
73
|
+
* Update a external task
|
|
74
|
+
*/
|
|
75
|
+
updateExternalTaskRaw(requestParameters: UpdateExternalTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowExternalTaskDto>>;
|
|
76
|
+
/**
|
|
77
|
+
* Update a external task
|
|
78
|
+
*/
|
|
79
|
+
updateExternalTask(requestParameters: UpdateExternalTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowExternalTaskDto>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Kommerz API Specification
|
|
6
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
7
|
+
*
|
|
8
|
+
* Contact: info@kommerz.app
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
40
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.WorkflowExternalTasksApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var WorkflowExternalTasksApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(WorkflowExternalTasksApi, _super);
|
|
74
|
+
function WorkflowExternalTasksApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Create a new external task
|
|
79
|
+
*/
|
|
80
|
+
WorkflowExternalTasksApi.prototype.createWorkflowExternalTaskRaw = function (requestParameters, initOverrides) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
83
|
+
return __generator(this, function (_a) {
|
|
84
|
+
switch (_a.label) {
|
|
85
|
+
case 0:
|
|
86
|
+
if (requestParameters['id'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createWorkflowExternalTask().');
|
|
88
|
+
}
|
|
89
|
+
if (requestParameters['workflowExternalTaskDto'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('workflowExternalTaskDto', 'Required parameter "workflowExternalTaskDto" was null or undefined when calling createWorkflowExternalTask().');
|
|
91
|
+
}
|
|
92
|
+
queryParameters = {};
|
|
93
|
+
headerParameters = {};
|
|
94
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
95
|
+
urlPath = "/ui/workflow/v1/workflows/{id}/external-tasks";
|
|
96
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
97
|
+
return [4 /*yield*/, this.request({
|
|
98
|
+
path: urlPath,
|
|
99
|
+
method: 'POST',
|
|
100
|
+
headers: headerParameters,
|
|
101
|
+
query: queryParameters,
|
|
102
|
+
body: (0, index_1.WorkflowExternalTaskDtoToJSON)(requestParameters['workflowExternalTaskDto']),
|
|
103
|
+
}, initOverrides)];
|
|
104
|
+
case 1:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.WorkflowExternalTaskDtoFromJSON)(jsonValue); })];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Create a new external task
|
|
113
|
+
*/
|
|
114
|
+
WorkflowExternalTasksApi.prototype.createWorkflowExternalTask = function (requestParameters, initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
var response;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0: return [4 /*yield*/, this.createWorkflowExternalTaskRaw(requestParameters, initOverrides)];
|
|
120
|
+
case 1:
|
|
121
|
+
response = _a.sent();
|
|
122
|
+
return [4 /*yield*/, response.value()];
|
|
123
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* delete a workflow external task
|
|
130
|
+
*/
|
|
131
|
+
WorkflowExternalTasksApi.prototype.deleteWorkflowExternalTaskRaw = function (requestParameters, initOverrides) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
133
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
switch (_a.label) {
|
|
136
|
+
case 0:
|
|
137
|
+
if (requestParameters['id'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteWorkflowExternalTask().');
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['secondaryId'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('secondaryId', 'Required parameter "secondaryId" was null or undefined when calling deleteWorkflowExternalTask().');
|
|
142
|
+
}
|
|
143
|
+
queryParameters = {};
|
|
144
|
+
headerParameters = {};
|
|
145
|
+
urlPath = "/ui/workflow/v1/workflows/{id}/external-tasks/{secondaryId}";
|
|
146
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
147
|
+
urlPath = urlPath.replace("{".concat("secondaryId", "}"), encodeURIComponent(String(requestParameters['secondaryId'])));
|
|
148
|
+
return [4 /*yield*/, this.request({
|
|
149
|
+
path: urlPath,
|
|
150
|
+
method: 'DELETE',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
}, initOverrides)];
|
|
154
|
+
case 1:
|
|
155
|
+
response = _a.sent();
|
|
156
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.WorkflowExternalTaskDtoFromJSON)(jsonValue); })];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* delete a workflow external task
|
|
163
|
+
*/
|
|
164
|
+
WorkflowExternalTasksApi.prototype.deleteWorkflowExternalTask = function (requestParameters, initOverrides) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
+
var response;
|
|
167
|
+
return __generator(this, function (_a) {
|
|
168
|
+
switch (_a.label) {
|
|
169
|
+
case 0: return [4 /*yield*/, this.deleteWorkflowExternalTaskRaw(requestParameters, initOverrides)];
|
|
170
|
+
case 1:
|
|
171
|
+
response = _a.sent();
|
|
172
|
+
return [4 /*yield*/, response.value()];
|
|
173
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* get all external tasks
|
|
180
|
+
*/
|
|
181
|
+
WorkflowExternalTasksApi.prototype.getAllWorkflowExternalTasksRaw = function (requestParameters, initOverrides) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
switch (_a.label) {
|
|
186
|
+
case 0:
|
|
187
|
+
if (requestParameters['id'] == null) {
|
|
188
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAllWorkflowExternalTasks().');
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['pageable'] == null) {
|
|
191
|
+
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllWorkflowExternalTasks().');
|
|
192
|
+
}
|
|
193
|
+
queryParameters = {};
|
|
194
|
+
if (requestParameters['pageable'] != null) {
|
|
195
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
196
|
+
}
|
|
197
|
+
if (requestParameters['filter'] != null) {
|
|
198
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
199
|
+
}
|
|
200
|
+
headerParameters = {};
|
|
201
|
+
urlPath = "/ui/workflow/v1/workflows/{id}/external-tasks";
|
|
202
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
203
|
+
return [4 /*yield*/, this.request({
|
|
204
|
+
path: urlPath,
|
|
205
|
+
method: 'GET',
|
|
206
|
+
headers: headerParameters,
|
|
207
|
+
query: queryParameters,
|
|
208
|
+
}, initOverrides)];
|
|
209
|
+
case 1:
|
|
210
|
+
response = _a.sent();
|
|
211
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllWorkflowExternalTasks200ResponseFromJSON)(jsonValue); })];
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* get all external tasks
|
|
218
|
+
*/
|
|
219
|
+
WorkflowExternalTasksApi.prototype.getAllWorkflowExternalTasks = function (requestParameters, initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
221
|
+
var response;
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
|
+
case 0: return [4 /*yield*/, this.getAllWorkflowExternalTasksRaw(requestParameters, initOverrides)];
|
|
225
|
+
case 1:
|
|
226
|
+
response = _a.sent();
|
|
227
|
+
return [4 /*yield*/, response.value()];
|
|
228
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* read one workflow external task
|
|
235
|
+
*/
|
|
236
|
+
WorkflowExternalTasksApi.prototype.getWorkflowExternalTaskRaw = function (requestParameters, initOverrides) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
238
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
switch (_a.label) {
|
|
241
|
+
case 0:
|
|
242
|
+
if (requestParameters['id'] == null) {
|
|
243
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getWorkflowExternalTask().');
|
|
244
|
+
}
|
|
245
|
+
if (requestParameters['secondaryId'] == null) {
|
|
246
|
+
throw new runtime.RequiredError('secondaryId', 'Required parameter "secondaryId" was null or undefined when calling getWorkflowExternalTask().');
|
|
247
|
+
}
|
|
248
|
+
queryParameters = {};
|
|
249
|
+
headerParameters = {};
|
|
250
|
+
urlPath = "/ui/workflow/v1/workflows/{id}/external-tasks/{secondaryId}";
|
|
251
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
252
|
+
urlPath = urlPath.replace("{".concat("secondaryId", "}"), encodeURIComponent(String(requestParameters['secondaryId'])));
|
|
253
|
+
return [4 /*yield*/, this.request({
|
|
254
|
+
path: urlPath,
|
|
255
|
+
method: 'GET',
|
|
256
|
+
headers: headerParameters,
|
|
257
|
+
query: queryParameters,
|
|
258
|
+
}, initOverrides)];
|
|
259
|
+
case 1:
|
|
260
|
+
response = _a.sent();
|
|
261
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.WorkflowExternalTaskDtoFromJSON)(jsonValue); })];
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* read one workflow external task
|
|
268
|
+
*/
|
|
269
|
+
WorkflowExternalTasksApi.prototype.getWorkflowExternalTask = function (requestParameters, initOverrides) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
271
|
+
var response;
|
|
272
|
+
return __generator(this, function (_a) {
|
|
273
|
+
switch (_a.label) {
|
|
274
|
+
case 0: return [4 /*yield*/, this.getWorkflowExternalTaskRaw(requestParameters, initOverrides)];
|
|
275
|
+
case 1:
|
|
276
|
+
response = _a.sent();
|
|
277
|
+
return [4 /*yield*/, response.value()];
|
|
278
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Update a external task
|
|
285
|
+
*/
|
|
286
|
+
WorkflowExternalTasksApi.prototype.updateExternalTaskRaw = function (requestParameters, initOverrides) {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
288
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
289
|
+
return __generator(this, function (_a) {
|
|
290
|
+
switch (_a.label) {
|
|
291
|
+
case 0:
|
|
292
|
+
if (requestParameters['id'] == null) {
|
|
293
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateExternalTask().');
|
|
294
|
+
}
|
|
295
|
+
if (requestParameters['secondaryId'] == null) {
|
|
296
|
+
throw new runtime.RequiredError('secondaryId', 'Required parameter "secondaryId" was null or undefined when calling updateExternalTask().');
|
|
297
|
+
}
|
|
298
|
+
if (requestParameters['workflowExternalTaskDto'] == null) {
|
|
299
|
+
throw new runtime.RequiredError('workflowExternalTaskDto', 'Required parameter "workflowExternalTaskDto" was null or undefined when calling updateExternalTask().');
|
|
300
|
+
}
|
|
301
|
+
queryParameters = {};
|
|
302
|
+
if (requestParameters['force'] != null) {
|
|
303
|
+
queryParameters['force'] = requestParameters['force'];
|
|
304
|
+
}
|
|
305
|
+
headerParameters = {};
|
|
306
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
307
|
+
urlPath = "/ui/workflow/v1/workflows/{id}/external-tasks/{secondaryId}";
|
|
308
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
309
|
+
urlPath = urlPath.replace("{".concat("secondaryId", "}"), encodeURIComponent(String(requestParameters['secondaryId'])));
|
|
310
|
+
return [4 /*yield*/, this.request({
|
|
311
|
+
path: urlPath,
|
|
312
|
+
method: 'PUT',
|
|
313
|
+
headers: headerParameters,
|
|
314
|
+
query: queryParameters,
|
|
315
|
+
body: (0, index_1.WorkflowExternalTaskDtoToJSON)(requestParameters['workflowExternalTaskDto']),
|
|
316
|
+
}, initOverrides)];
|
|
317
|
+
case 1:
|
|
318
|
+
response = _a.sent();
|
|
319
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.WorkflowExternalTaskDtoFromJSON)(jsonValue); })];
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Update a external task
|
|
326
|
+
*/
|
|
327
|
+
WorkflowExternalTasksApi.prototype.updateExternalTask = function (requestParameters, initOverrides) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
329
|
+
var response;
|
|
330
|
+
return __generator(this, function (_a) {
|
|
331
|
+
switch (_a.label) {
|
|
332
|
+
case 0: return [4 /*yield*/, this.updateExternalTaskRaw(requestParameters, initOverrides)];
|
|
333
|
+
case 1:
|
|
334
|
+
response = _a.sent();
|
|
335
|
+
return [4 /*yield*/, response.value()];
|
|
336
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
return WorkflowExternalTasksApi;
|
|
342
|
+
}(runtime.BaseAPI));
|
|
343
|
+
exports.WorkflowExternalTasksApi = WorkflowExternalTasksApi;
|