@kommerz/ts-client 1.167.15 → 1.169.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/FormsPortalApi.d.ts +40 -0
- package/dist/apis/FormsPortalApi.js +174 -0
- package/dist/apis/KanbanBoardsApi.d.ts +2 -2
- 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 +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/models/EntityType.d.ts +2 -1
- package/dist/models/EntityType.js +2 -1
- package/dist/models/FormsPortalReceiverInfo.d.ts +43 -0
- package/dist/models/FormsPortalReceiverInfo.js +54 -0
- package/dist/models/FormsPortalSpecDto.d.ts +50 -0
- package/dist/models/FormsPortalSpecDto.js +57 -0
- package/dist/models/FormsPortalSubmitDto.d.ts +31 -0
- package/dist/models/FormsPortalSubmitDto.js +50 -0
- 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/KanbanBoardDto.d.ts +13 -1
- package/dist/models/KanbanBoardDto.js +3 -0
- 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 +9 -1
- package/dist/models/index.js +9 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -9,15 +9,10 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import * as runtime from '../runtime';
|
|
12
|
-
import type { ColamdaPageable,
|
|
12
|
+
import type { ColamdaPageable, GetAllWorkflowProcesses200Response, WorkflowProcessDto } from '../models/index';
|
|
13
13
|
export interface DeleteWorkflowProcessRequest {
|
|
14
14
|
id: string;
|
|
15
15
|
}
|
|
16
|
-
export interface GetAllWorkflowProcessLogsRequest {
|
|
17
|
-
id: string;
|
|
18
|
-
pageable: ColamdaPageable;
|
|
19
|
-
filter?: Array<string>;
|
|
20
|
-
}
|
|
21
16
|
export interface GetAllWorkflowProcessesRequest {
|
|
22
17
|
pageable: ColamdaPageable;
|
|
23
18
|
filter?: Array<string>;
|
|
@@ -43,14 +38,6 @@ export declare class WorkflowProcessesApi extends runtime.BaseAPI {
|
|
|
43
38
|
* delete a workflow execution
|
|
44
39
|
*/
|
|
45
40
|
deleteWorkflowProcess(requestParameters: DeleteWorkflowProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowProcessDto>;
|
|
46
|
-
/**
|
|
47
|
-
* get all workflow process logs
|
|
48
|
-
*/
|
|
49
|
-
getAllWorkflowProcessLogsRaw(requestParameters: GetAllWorkflowProcessLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllWorkflowProcessLogs200Response>>;
|
|
50
|
-
/**
|
|
51
|
-
* get all workflow process logs
|
|
52
|
-
*/
|
|
53
|
-
getAllWorkflowProcessLogs(requestParameters: GetAllWorkflowProcessLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllWorkflowProcessLogs200Response>;
|
|
54
41
|
/**
|
|
55
42
|
* get all workflow processes
|
|
56
43
|
*/
|
|
@@ -120,61 +120,6 @@ var WorkflowProcessesApi = /** @class */ (function (_super) {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
};
|
|
123
|
-
/**
|
|
124
|
-
* get all workflow process logs
|
|
125
|
-
*/
|
|
126
|
-
WorkflowProcessesApi.prototype.getAllWorkflowProcessLogsRaw = function (requestParameters, initOverrides) {
|
|
127
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
129
|
-
return __generator(this, function (_a) {
|
|
130
|
-
switch (_a.label) {
|
|
131
|
-
case 0:
|
|
132
|
-
if (requestParameters['id'] == null) {
|
|
133
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAllWorkflowProcessLogs().');
|
|
134
|
-
}
|
|
135
|
-
if (requestParameters['pageable'] == null) {
|
|
136
|
-
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllWorkflowProcessLogs().');
|
|
137
|
-
}
|
|
138
|
-
queryParameters = {};
|
|
139
|
-
if (requestParameters['pageable'] != null) {
|
|
140
|
-
queryParameters['pageable'] = requestParameters['pageable'];
|
|
141
|
-
}
|
|
142
|
-
if (requestParameters['filter'] != null) {
|
|
143
|
-
queryParameters['filter'] = requestParameters['filter'];
|
|
144
|
-
}
|
|
145
|
-
headerParameters = {};
|
|
146
|
-
urlPath = "/ui/workflow/v1/workflow-processes/{id}/logs";
|
|
147
|
-
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
148
|
-
return [4 /*yield*/, this.request({
|
|
149
|
-
path: urlPath,
|
|
150
|
-
method: 'GET',
|
|
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.GetAllWorkflowProcessLogs200ResponseFromJSON)(jsonValue); })];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* get all workflow process logs
|
|
163
|
-
*/
|
|
164
|
-
WorkflowProcessesApi.prototype.getAllWorkflowProcessLogs = 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.getAllWorkflowProcessLogsRaw(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
123
|
/**
|
|
179
124
|
* get all workflow processes
|
|
180
125
|
*/
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './FileDirectorySharesApi';
|
|
|
39
39
|
export * from './FileTagsApi';
|
|
40
40
|
export * from './FileUploadsApi';
|
|
41
41
|
export * from './FilesApi';
|
|
42
|
+
export * from './FormsPortalApi';
|
|
42
43
|
export * from './HolidaysApi';
|
|
43
44
|
export * from './HospitalityReceiptsApi';
|
|
44
45
|
export * from './IdentifiersApi';
|
|
@@ -86,6 +87,8 @@ export * from './ValidationApi';
|
|
|
86
87
|
export * from './WikiApi';
|
|
87
88
|
export * from './WikiPagesApi';
|
|
88
89
|
export * from './WorkHoursApi';
|
|
90
|
+
export * from './WorkflowExecutionsApi';
|
|
91
|
+
export * from './WorkflowExternalTasksApi';
|
|
89
92
|
export * from './WorkflowProcessesApi';
|
|
90
93
|
export * from './WorkflowsApi';
|
|
91
94
|
export * from './WritingsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -57,6 +57,7 @@ __exportStar(require("./FileDirectorySharesApi"), exports);
|
|
|
57
57
|
__exportStar(require("./FileTagsApi"), exports);
|
|
58
58
|
__exportStar(require("./FileUploadsApi"), exports);
|
|
59
59
|
__exportStar(require("./FilesApi"), exports);
|
|
60
|
+
__exportStar(require("./FormsPortalApi"), exports);
|
|
60
61
|
__exportStar(require("./HolidaysApi"), exports);
|
|
61
62
|
__exportStar(require("./HospitalityReceiptsApi"), exports);
|
|
62
63
|
__exportStar(require("./IdentifiersApi"), exports);
|
|
@@ -104,6 +105,8 @@ __exportStar(require("./ValidationApi"), exports);
|
|
|
104
105
|
__exportStar(require("./WikiApi"), exports);
|
|
105
106
|
__exportStar(require("./WikiPagesApi"), exports);
|
|
106
107
|
__exportStar(require("./WorkHoursApi"), exports);
|
|
108
|
+
__exportStar(require("./WorkflowExecutionsApi"), exports);
|
|
109
|
+
__exportStar(require("./WorkflowExternalTasksApi"), exports);
|
|
107
110
|
__exportStar(require("./WorkflowProcessesApi"), exports);
|
|
108
111
|
__exportStar(require("./WorkflowsApi"), exports);
|
|
109
112
|
__exportStar(require("./WritingsApi"), exports);
|
|
@@ -73,7 +73,8 @@ export declare const EntityType: {
|
|
|
73
73
|
readonly AcceptanceDocument: "AcceptanceDocument";
|
|
74
74
|
readonly Workflow: "Workflow";
|
|
75
75
|
readonly WorkflowProcess: "WorkflowProcess";
|
|
76
|
-
readonly
|
|
76
|
+
readonly WorkflowExecution: "WorkflowExecution";
|
|
77
|
+
readonly WorkflowExternalTask: "WorkflowExternalTask";
|
|
77
78
|
readonly Tag: "Tag";
|
|
78
79
|
readonly TagRelation: "TagRelation";
|
|
79
80
|
readonly Writing: "Writing";
|
|
@@ -83,7 +83,8 @@ exports.EntityType = {
|
|
|
83
83
|
AcceptanceDocument: 'AcceptanceDocument',
|
|
84
84
|
Workflow: 'Workflow',
|
|
85
85
|
WorkflowProcess: 'WorkflowProcess',
|
|
86
|
-
|
|
86
|
+
WorkflowExecution: 'WorkflowExecution',
|
|
87
|
+
WorkflowExternalTask: 'WorkflowExternalTask',
|
|
87
88
|
Tag: 'Tag',
|
|
88
89
|
TagRelation: 'TagRelation',
|
|
89
90
|
Writing: 'Writing',
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface FormsPortalReceiverInfo
|
|
15
|
+
*/
|
|
16
|
+
export interface FormsPortalReceiverInfo {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof FormsPortalReceiverInfo
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof FormsPortalReceiverInfo
|
|
27
|
+
*/
|
|
28
|
+
email?: string;
|
|
29
|
+
/**
|
|
30
|
+
* line-separated address
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof FormsPortalReceiverInfo
|
|
33
|
+
*/
|
|
34
|
+
address?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the FormsPortalReceiverInfo interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfFormsPortalReceiverInfo(value: object): value is FormsPortalReceiverInfo;
|
|
40
|
+
export declare function FormsPortalReceiverInfoFromJSON(json: any): FormsPortalReceiverInfo;
|
|
41
|
+
export declare function FormsPortalReceiverInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormsPortalReceiverInfo;
|
|
42
|
+
export declare function FormsPortalReceiverInfoToJSON(json: any): FormsPortalReceiverInfo;
|
|
43
|
+
export declare function FormsPortalReceiverInfoToJSONTyped(value?: FormsPortalReceiverInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.instanceOfFormsPortalReceiverInfo = instanceOfFormsPortalReceiverInfo;
|
|
16
|
+
exports.FormsPortalReceiverInfoFromJSON = FormsPortalReceiverInfoFromJSON;
|
|
17
|
+
exports.FormsPortalReceiverInfoFromJSONTyped = FormsPortalReceiverInfoFromJSONTyped;
|
|
18
|
+
exports.FormsPortalReceiverInfoToJSON = FormsPortalReceiverInfoToJSON;
|
|
19
|
+
exports.FormsPortalReceiverInfoToJSONTyped = FormsPortalReceiverInfoToJSONTyped;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the FormsPortalReceiverInfo interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfFormsPortalReceiverInfo(value) {
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function FormsPortalReceiverInfoFromJSON(json) {
|
|
29
|
+
return FormsPortalReceiverInfoFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function FormsPortalReceiverInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
38
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function FormsPortalReceiverInfoToJSON(json) {
|
|
42
|
+
return FormsPortalReceiverInfoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function FormsPortalReceiverInfoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'email': value['email'],
|
|
52
|
+
'address': value['address'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 type { FormsPortalReceiverInfo } from './FormsPortalReceiverInfo';
|
|
12
|
+
/**
|
|
13
|
+
* jsonforms.io based editor configuration
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FormsPortalSpecDto
|
|
16
|
+
*/
|
|
17
|
+
export interface FormsPortalSpecDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {FormsPortalReceiverInfo}
|
|
21
|
+
* @memberof FormsPortalSpecDto
|
|
22
|
+
*/
|
|
23
|
+
receiverInfo?: FormsPortalReceiverInfo;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the editor type
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FormsPortalSpecDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* JSON forms UI spec
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FormsPortalSpecDto
|
|
34
|
+
*/
|
|
35
|
+
uiSchema?: string;
|
|
36
|
+
/**
|
|
37
|
+
* JSON forms data spec
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FormsPortalSpecDto
|
|
40
|
+
*/
|
|
41
|
+
dataSchema?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the FormsPortalSpecDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfFormsPortalSpecDto(value: object): value is FormsPortalSpecDto;
|
|
47
|
+
export declare function FormsPortalSpecDtoFromJSON(json: any): FormsPortalSpecDto;
|
|
48
|
+
export declare function FormsPortalSpecDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormsPortalSpecDto;
|
|
49
|
+
export declare function FormsPortalSpecDtoToJSON(json: any): FormsPortalSpecDto;
|
|
50
|
+
export declare function FormsPortalSpecDtoToJSONTyped(value?: FormsPortalSpecDto | null, ignoreDiscriminator?: boolean): any;
|