@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.
Files changed (46) hide show
  1. package/dist/apis/FormsPortalApi.d.ts +40 -0
  2. package/dist/apis/FormsPortalApi.js +174 -0
  3. package/dist/apis/KanbanBoardsApi.d.ts +2 -2
  4. package/dist/apis/WorkflowExecutionsApi.d.ts +42 -0
  5. package/dist/apis/WorkflowExecutionsApi.js +184 -0
  6. package/dist/apis/WorkflowExternalTasksApi.d.ts +80 -0
  7. package/dist/apis/WorkflowExternalTasksApi.js +343 -0
  8. package/dist/apis/WorkflowProcessesApi.d.ts +1 -14
  9. package/dist/apis/WorkflowProcessesApi.js +0 -55
  10. package/dist/apis/index.d.ts +3 -0
  11. package/dist/apis/index.js +3 -0
  12. package/dist/models/EntityType.d.ts +2 -1
  13. package/dist/models/EntityType.js +2 -1
  14. package/dist/models/FormsPortalReceiverInfo.d.ts +43 -0
  15. package/dist/models/FormsPortalReceiverInfo.js +54 -0
  16. package/dist/models/FormsPortalSpecDto.d.ts +50 -0
  17. package/dist/models/FormsPortalSpecDto.js +57 -0
  18. package/dist/models/FormsPortalSubmitDto.d.ts +31 -0
  19. package/dist/models/FormsPortalSubmitDto.js +50 -0
  20. package/dist/models/GetAllWorkflowExecutions200Response.d.ts +50 -0
  21. package/dist/models/GetAllWorkflowExecutions200Response.js +59 -0
  22. package/dist/models/GetAllWorkflowExternalTasks200Response.d.ts +50 -0
  23. package/dist/models/GetAllWorkflowExternalTasks200Response.js +59 -0
  24. package/dist/models/GetAllWorkflowProcessLogs200Response.d.ts +3 -3
  25. package/dist/models/GetAllWorkflowProcessLogs200Response.js +3 -3
  26. package/dist/models/InternalWorkflowExternalTask.d.ts +43 -0
  27. package/dist/models/InternalWorkflowExternalTask.js +58 -0
  28. package/dist/models/InternalWorkflowProcessLogDto.d.ts +10 -4
  29. package/dist/models/InternalWorkflowProcessLogDto.js +6 -2
  30. package/dist/models/KanbanBoardDto.d.ts +13 -1
  31. package/dist/models/KanbanBoardDto.js +3 -0
  32. package/dist/models/WorkflowExecutionDto.d.ts +81 -0
  33. package/dist/models/WorkflowExecutionDto.js +80 -0
  34. package/dist/models/WorkflowExecutionStatus.d.ts +26 -0
  35. package/dist/models/WorkflowExecutionStatus.js +52 -0
  36. package/dist/models/WorkflowExternalTask.d.ts +61 -0
  37. package/dist/models/WorkflowExternalTask.js +66 -0
  38. package/dist/models/WorkflowExternalTaskDto.d.ts +55 -0
  39. package/dist/models/WorkflowExternalTaskDto.js +62 -0
  40. package/dist/models/WorkflowProcessLogDto.d.ts +0 -24
  41. package/dist/models/WorkflowProcessLogDto.js +0 -14
  42. package/dist/models/WorkflowProcessStatus.d.ts +6 -0
  43. package/dist/models/WorkflowProcessStatus.js +6 -0
  44. package/dist/models/index.d.ts +9 -1
  45. package/dist/models/index.js +9 -1
  46. package/package.json +1 -1
@@ -0,0 +1,40 @@
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 { FormsPortalSpecDto, FormsPortalSubmitDto } from '../models/index';
13
+ export interface CreateFormsPortalEntryRequest {
14
+ secretId: string;
15
+ formsPortalSubmitDto: FormsPortalSubmitDto;
16
+ }
17
+ export interface GetFormsPortalFormRequest {
18
+ secretId: string;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class FormsPortalApi extends runtime.BaseAPI {
24
+ /**
25
+ * submit
26
+ */
27
+ createFormsPortalEntryRaw(requestParameters: CreateFormsPortalEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
28
+ /**
29
+ * submit
30
+ */
31
+ createFormsPortalEntry(requestParameters: CreateFormsPortalEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
32
+ /**
33
+ * get forms spec
34
+ */
35
+ getFormsPortalFormRaw(requestParameters: GetFormsPortalFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormsPortalSpecDto>>;
36
+ /**
37
+ * get forms spec
38
+ */
39
+ getFormsPortalForm(requestParameters: GetFormsPortalFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormsPortalSpecDto>;
40
+ }
@@ -0,0 +1,174 @@
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.FormsPortalApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var index_1 = require("../models/index");
69
+ /**
70
+ *
71
+ */
72
+ var FormsPortalApi = /** @class */ (function (_super) {
73
+ __extends(FormsPortalApi, _super);
74
+ function FormsPortalApi() {
75
+ return _super !== null && _super.apply(this, arguments) || this;
76
+ }
77
+ /**
78
+ * submit
79
+ */
80
+ FormsPortalApi.prototype.createFormsPortalEntryRaw = 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['secretId'] == null) {
87
+ throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling createFormsPortalEntry().');
88
+ }
89
+ if (requestParameters['formsPortalSubmitDto'] == null) {
90
+ throw new runtime.RequiredError('formsPortalSubmitDto', 'Required parameter "formsPortalSubmitDto" was null or undefined when calling createFormsPortalEntry().');
91
+ }
92
+ queryParameters = {};
93
+ headerParameters = {};
94
+ headerParameters['Content-Type'] = 'application/json';
95
+ urlPath = "/ui/forms-portal/v1/{secretId}";
96
+ urlPath = urlPath.replace("{".concat("secretId", "}"), encodeURIComponent(String(requestParameters['secretId'])));
97
+ return [4 /*yield*/, this.request({
98
+ path: urlPath,
99
+ method: 'POST',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ body: (0, index_1.FormsPortalSubmitDtoToJSON)(requestParameters['formsPortalSubmitDto']),
103
+ }, initOverrides)];
104
+ case 1:
105
+ response = _a.sent();
106
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ /**
112
+ * submit
113
+ */
114
+ FormsPortalApi.prototype.createFormsPortalEntry = function (requestParameters, initOverrides) {
115
+ return __awaiter(this, void 0, void 0, function () {
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0: return [4 /*yield*/, this.createFormsPortalEntryRaw(requestParameters, initOverrides)];
119
+ case 1:
120
+ _a.sent();
121
+ return [2 /*return*/];
122
+ }
123
+ });
124
+ });
125
+ };
126
+ /**
127
+ * get forms spec
128
+ */
129
+ FormsPortalApi.prototype.getFormsPortalFormRaw = function (requestParameters, initOverrides) {
130
+ return __awaiter(this, void 0, void 0, function () {
131
+ var queryParameters, headerParameters, urlPath, response;
132
+ return __generator(this, function (_a) {
133
+ switch (_a.label) {
134
+ case 0:
135
+ if (requestParameters['secretId'] == null) {
136
+ throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling getFormsPortalForm().');
137
+ }
138
+ queryParameters = {};
139
+ headerParameters = {};
140
+ urlPath = "/ui/forms-portal/v1/{secretId}";
141
+ urlPath = urlPath.replace("{".concat("secretId", "}"), encodeURIComponent(String(requestParameters['secretId'])));
142
+ return [4 /*yield*/, this.request({
143
+ path: urlPath,
144
+ method: 'GET',
145
+ headers: headerParameters,
146
+ query: queryParameters,
147
+ }, initOverrides)];
148
+ case 1:
149
+ response = _a.sent();
150
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormsPortalSpecDtoFromJSON)(jsonValue); })];
151
+ }
152
+ });
153
+ });
154
+ };
155
+ /**
156
+ * get forms spec
157
+ */
158
+ FormsPortalApi.prototype.getFormsPortalForm = function (requestParameters, initOverrides) {
159
+ return __awaiter(this, void 0, void 0, function () {
160
+ var response;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0: return [4 /*yield*/, this.getFormsPortalFormRaw(requestParameters, initOverrides)];
164
+ case 1:
165
+ response = _a.sent();
166
+ return [4 /*yield*/, response.value()];
167
+ case 2: return [2 /*return*/, _a.sent()];
168
+ }
169
+ });
170
+ });
171
+ };
172
+ return FormsPortalApi;
173
+ }(runtime.BaseAPI));
174
+ exports.FormsPortalApi = FormsPortalApi;
@@ -11,7 +11,7 @@
11
11
  import * as runtime from '../runtime';
12
12
  import type { ColamdaPageable, GetAllKanbanBoards200Response, KanbanBoardDto } from '../models/index';
13
13
  export interface CreateKanbanBoardRequest {
14
- kanbanBoardDto: KanbanBoardDto;
14
+ kanbanBoardDto: Omit<KanbanBoardDto, 'secretId'>;
15
15
  }
16
16
  export interface DeleteKanbanBoardRequest {
17
17
  id: string;
@@ -25,7 +25,7 @@ export interface GetKanbanBoardRequest {
25
25
  }
26
26
  export interface UpdateKanbanBoardRequest {
27
27
  id: string;
28
- kanbanBoardDto: KanbanBoardDto;
28
+ kanbanBoardDto: Omit<KanbanBoardDto, 'secretId'>;
29
29
  force?: boolean;
30
30
  }
31
31
  /**
@@ -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
+ }