@kommerz/ts-client 1.181.0 → 1.182.1
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/DecisionTablesApi.d.ts +75 -0
- package/dist/apis/DecisionTablesApi.js +321 -0
- package/dist/apis/InboxEmailsApi.d.ts +1 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BrevoEmailWebhookEvent.d.ts +115 -0
- package/dist/models/BrevoEmailWebhookEvent.js +78 -0
- package/dist/models/DecisionTableAggregation.d.ts +28 -0
- package/dist/models/DecisionTableAggregation.js +54 -0
- package/dist/models/DecisionTableDto.d.ts +99 -0
- package/dist/models/DecisionTableDto.js +86 -0
- package/dist/models/DecisionTableHitPolicy.d.ts +33 -0
- package/dist/models/DecisionTableHitPolicy.js +59 -0
- package/dist/models/DecisionTableInput.d.ts +43 -0
- package/dist/models/DecisionTableInput.js +56 -0
- package/dist/models/DecisionTableOutput.d.ts +45 -0
- package/dist/models/DecisionTableOutput.js +54 -0
- package/dist/models/DecisionTableRule.d.ts +43 -0
- package/dist/models/DecisionTableRule.js +56 -0
- package/dist/models/DecisionTableType.d.ts +23 -0
- package/dist/models/DecisionTableType.js +49 -0
- package/dist/models/EmailDto.d.ts +14 -1
- package/dist/models/EmailDto.js +4 -0
- package/dist/models/EmailEvent.d.ts +55 -0
- package/dist/models/EmailEvent.js +60 -0
- package/dist/models/EntityType.d.ts +1 -0
- package/dist/models/EntityType.js +2 -1
- package/dist/models/ListDecisionTables200Response.d.ts +50 -0
- package/dist/models/ListDecisionTables200Response.js +59 -0
- package/dist/models/Permissions.d.ts +4 -0
- package/dist/models/Permissions.js +5 -1
- package/dist/models/UiModule.d.ts +1 -0
- package/dist/models/UiModule.js +2 -1
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
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 { DecisionTableDto, KommerzPageable, ListDecisionTables200Response } from '../models/index';
|
|
13
|
+
export interface CreateDecisionTableRequest {
|
|
14
|
+
decisionTableDto: DecisionTableDto;
|
|
15
|
+
}
|
|
16
|
+
export interface DeleteDecisionTableRequest {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetDecisionTableRequest {
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ListDecisionTablesRequest {
|
|
23
|
+
pageable: KommerzPageable;
|
|
24
|
+
filter?: Array<string>;
|
|
25
|
+
}
|
|
26
|
+
export interface UpdateDecisionTableRequest {
|
|
27
|
+
id: string;
|
|
28
|
+
decisionTableDto: DecisionTableDto;
|
|
29
|
+
force?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class DecisionTablesApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* create a decision table
|
|
37
|
+
*/
|
|
38
|
+
createDecisionTableRaw(requestParameters: CreateDecisionTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DecisionTableDto>>;
|
|
39
|
+
/**
|
|
40
|
+
* create a decision table
|
|
41
|
+
*/
|
|
42
|
+
createDecisionTable(requestParameters: CreateDecisionTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DecisionTableDto>;
|
|
43
|
+
/**
|
|
44
|
+
* delete a decision table
|
|
45
|
+
*/
|
|
46
|
+
deleteDecisionTableRaw(requestParameters: DeleteDecisionTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
47
|
+
/**
|
|
48
|
+
* delete a decision table
|
|
49
|
+
*/
|
|
50
|
+
deleteDecisionTable(requestParameters: DeleteDecisionTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* get a decision table by id
|
|
53
|
+
*/
|
|
54
|
+
getDecisionTableRaw(requestParameters: GetDecisionTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DecisionTableDto>>;
|
|
55
|
+
/**
|
|
56
|
+
* get a decision table by id
|
|
57
|
+
*/
|
|
58
|
+
getDecisionTable(requestParameters: GetDecisionTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DecisionTableDto>;
|
|
59
|
+
/**
|
|
60
|
+
* list decision tables
|
|
61
|
+
*/
|
|
62
|
+
listDecisionTablesRaw(requestParameters: ListDecisionTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDecisionTables200Response>>;
|
|
63
|
+
/**
|
|
64
|
+
* list decision tables
|
|
65
|
+
*/
|
|
66
|
+
listDecisionTables(requestParameters: ListDecisionTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDecisionTables200Response>;
|
|
67
|
+
/**
|
|
68
|
+
* update a decision table
|
|
69
|
+
*/
|
|
70
|
+
updateDecisionTableRaw(requestParameters: UpdateDecisionTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DecisionTableDto>>;
|
|
71
|
+
/**
|
|
72
|
+
* update a decision table
|
|
73
|
+
*/
|
|
74
|
+
updateDecisionTable(requestParameters: UpdateDecisionTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DecisionTableDto>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,321 @@
|
|
|
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.DecisionTablesApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var DecisionTablesApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(DecisionTablesApi, _super);
|
|
74
|
+
function DecisionTablesApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* create a decision table
|
|
79
|
+
*/
|
|
80
|
+
DecisionTablesApi.prototype.createDecisionTableRaw = 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['decisionTableDto'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('decisionTableDto', 'Required parameter "decisionTableDto" was null or undefined when calling createDecisionTable().');
|
|
88
|
+
}
|
|
89
|
+
queryParameters = {};
|
|
90
|
+
headerParameters = {};
|
|
91
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
92
|
+
urlPath = "/ui/decision-tables/v1";
|
|
93
|
+
return [4 /*yield*/, this.request({
|
|
94
|
+
path: urlPath,
|
|
95
|
+
method: 'POST',
|
|
96
|
+
headers: headerParameters,
|
|
97
|
+
query: queryParameters,
|
|
98
|
+
body: (0, index_1.DecisionTableDtoToJSON)(requestParameters['decisionTableDto']),
|
|
99
|
+
}, initOverrides)];
|
|
100
|
+
case 1:
|
|
101
|
+
response = _a.sent();
|
|
102
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DecisionTableDtoFromJSON)(jsonValue); })];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* create a decision table
|
|
109
|
+
*/
|
|
110
|
+
DecisionTablesApi.prototype.createDecisionTable = function (requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
+
var response;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0: return [4 /*yield*/, this.createDecisionTableRaw(requestParameters, initOverrides)];
|
|
116
|
+
case 1:
|
|
117
|
+
response = _a.sent();
|
|
118
|
+
return [4 /*yield*/, response.value()];
|
|
119
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* delete a decision table
|
|
126
|
+
*/
|
|
127
|
+
DecisionTablesApi.prototype.deleteDecisionTableRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (requestParameters['id'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteDecisionTable().');
|
|
135
|
+
}
|
|
136
|
+
queryParameters = {};
|
|
137
|
+
headerParameters = {};
|
|
138
|
+
urlPath = "/ui/decision-tables/v1/{id}";
|
|
139
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
140
|
+
return [4 /*yield*/, this.request({
|
|
141
|
+
path: urlPath,
|
|
142
|
+
method: 'DELETE',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
}, initOverrides)];
|
|
146
|
+
case 1:
|
|
147
|
+
response = _a.sent();
|
|
148
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* delete a decision table
|
|
155
|
+
*/
|
|
156
|
+
DecisionTablesApi.prototype.deleteDecisionTable = function (requestParameters, initOverrides) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
158
|
+
return __generator(this, function (_a) {
|
|
159
|
+
switch (_a.label) {
|
|
160
|
+
case 0: return [4 /*yield*/, this.deleteDecisionTableRaw(requestParameters, initOverrides)];
|
|
161
|
+
case 1:
|
|
162
|
+
_a.sent();
|
|
163
|
+
return [2 /*return*/];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* get a decision table by id
|
|
170
|
+
*/
|
|
171
|
+
DecisionTablesApi.prototype.getDecisionTableRaw = function (requestParameters, initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
switch (_a.label) {
|
|
176
|
+
case 0:
|
|
177
|
+
if (requestParameters['id'] == null) {
|
|
178
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getDecisionTable().');
|
|
179
|
+
}
|
|
180
|
+
queryParameters = {};
|
|
181
|
+
headerParameters = {};
|
|
182
|
+
urlPath = "/ui/decision-tables/v1/{id}";
|
|
183
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
184
|
+
return [4 /*yield*/, this.request({
|
|
185
|
+
path: urlPath,
|
|
186
|
+
method: 'GET',
|
|
187
|
+
headers: headerParameters,
|
|
188
|
+
query: queryParameters,
|
|
189
|
+
}, initOverrides)];
|
|
190
|
+
case 1:
|
|
191
|
+
response = _a.sent();
|
|
192
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DecisionTableDtoFromJSON)(jsonValue); })];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* get a decision table by id
|
|
199
|
+
*/
|
|
200
|
+
DecisionTablesApi.prototype.getDecisionTable = function (requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
202
|
+
var response;
|
|
203
|
+
return __generator(this, function (_a) {
|
|
204
|
+
switch (_a.label) {
|
|
205
|
+
case 0: return [4 /*yield*/, this.getDecisionTableRaw(requestParameters, initOverrides)];
|
|
206
|
+
case 1:
|
|
207
|
+
response = _a.sent();
|
|
208
|
+
return [4 /*yield*/, response.value()];
|
|
209
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* list decision tables
|
|
216
|
+
*/
|
|
217
|
+
DecisionTablesApi.prototype.listDecisionTablesRaw = function (requestParameters, initOverrides) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
219
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
220
|
+
return __generator(this, function (_a) {
|
|
221
|
+
switch (_a.label) {
|
|
222
|
+
case 0:
|
|
223
|
+
if (requestParameters['pageable'] == null) {
|
|
224
|
+
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling listDecisionTables().');
|
|
225
|
+
}
|
|
226
|
+
queryParameters = {};
|
|
227
|
+
if (requestParameters['pageable'] != null) {
|
|
228
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
229
|
+
}
|
|
230
|
+
if (requestParameters['filter'] != null) {
|
|
231
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
232
|
+
}
|
|
233
|
+
headerParameters = {};
|
|
234
|
+
urlPath = "/ui/decision-tables/v1";
|
|
235
|
+
return [4 /*yield*/, this.request({
|
|
236
|
+
path: urlPath,
|
|
237
|
+
method: 'GET',
|
|
238
|
+
headers: headerParameters,
|
|
239
|
+
query: queryParameters,
|
|
240
|
+
}, initOverrides)];
|
|
241
|
+
case 1:
|
|
242
|
+
response = _a.sent();
|
|
243
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListDecisionTables200ResponseFromJSON)(jsonValue); })];
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* list decision tables
|
|
250
|
+
*/
|
|
251
|
+
DecisionTablesApi.prototype.listDecisionTables = function (requestParameters, initOverrides) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
253
|
+
var response;
|
|
254
|
+
return __generator(this, function (_a) {
|
|
255
|
+
switch (_a.label) {
|
|
256
|
+
case 0: return [4 /*yield*/, this.listDecisionTablesRaw(requestParameters, initOverrides)];
|
|
257
|
+
case 1:
|
|
258
|
+
response = _a.sent();
|
|
259
|
+
return [4 /*yield*/, response.value()];
|
|
260
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* update a decision table
|
|
267
|
+
*/
|
|
268
|
+
DecisionTablesApi.prototype.updateDecisionTableRaw = function (requestParameters, initOverrides) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
270
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
271
|
+
return __generator(this, function (_a) {
|
|
272
|
+
switch (_a.label) {
|
|
273
|
+
case 0:
|
|
274
|
+
if (requestParameters['id'] == null) {
|
|
275
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateDecisionTable().');
|
|
276
|
+
}
|
|
277
|
+
if (requestParameters['decisionTableDto'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('decisionTableDto', 'Required parameter "decisionTableDto" was null or undefined when calling updateDecisionTable().');
|
|
279
|
+
}
|
|
280
|
+
queryParameters = {};
|
|
281
|
+
if (requestParameters['force'] != null) {
|
|
282
|
+
queryParameters['force'] = requestParameters['force'];
|
|
283
|
+
}
|
|
284
|
+
headerParameters = {};
|
|
285
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
286
|
+
urlPath = "/ui/decision-tables/v1/{id}";
|
|
287
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
288
|
+
return [4 /*yield*/, this.request({
|
|
289
|
+
path: urlPath,
|
|
290
|
+
method: 'PUT',
|
|
291
|
+
headers: headerParameters,
|
|
292
|
+
query: queryParameters,
|
|
293
|
+
body: (0, index_1.DecisionTableDtoToJSON)(requestParameters['decisionTableDto']),
|
|
294
|
+
}, initOverrides)];
|
|
295
|
+
case 1:
|
|
296
|
+
response = _a.sent();
|
|
297
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DecisionTableDtoFromJSON)(jsonValue); })];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* update a decision table
|
|
304
|
+
*/
|
|
305
|
+
DecisionTablesApi.prototype.updateDecisionTable = function (requestParameters, initOverrides) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
307
|
+
var response;
|
|
308
|
+
return __generator(this, function (_a) {
|
|
309
|
+
switch (_a.label) {
|
|
310
|
+
case 0: return [4 /*yield*/, this.updateDecisionTableRaw(requestParameters, initOverrides)];
|
|
311
|
+
case 1:
|
|
312
|
+
response = _a.sent();
|
|
313
|
+
return [4 /*yield*/, response.value()];
|
|
314
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
return DecisionTablesApi;
|
|
320
|
+
}(runtime.BaseAPI));
|
|
321
|
+
exports.DecisionTablesApi = DecisionTablesApi;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import * as runtime from '../runtime';
|
|
12
12
|
import type { EmailDto, GetAllInboxEmails200Response, KommerzPageable } from '../models/index';
|
|
13
13
|
export interface CreateInboxEmailRequest {
|
|
14
|
-
emailDto: EmailDto
|
|
14
|
+
emailDto: Omit<EmailDto, 'externalId'>;
|
|
15
15
|
}
|
|
16
16
|
export interface DeleteInboxEmailRequest {
|
|
17
17
|
id: string;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './CustomersApi';
|
|
|
29
29
|
export * from './CustomersBankdetailsApi';
|
|
30
30
|
export * from './DataTableRowsApi';
|
|
31
31
|
export * from './DataTablesApi';
|
|
32
|
+
export * from './DecisionTablesApi';
|
|
32
33
|
export * from './DeliveryNotesApi';
|
|
33
34
|
export * from './DesignTemplatesApi';
|
|
34
35
|
export * from './DocumentTemplatesApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __exportStar(require("./CustomersApi"), exports);
|
|
|
47
47
|
__exportStar(require("./CustomersBankdetailsApi"), exports);
|
|
48
48
|
__exportStar(require("./DataTableRowsApi"), exports);
|
|
49
49
|
__exportStar(require("./DataTablesApi"), exports);
|
|
50
|
+
__exportStar(require("./DecisionTablesApi"), exports);
|
|
50
51
|
__exportStar(require("./DeliveryNotesApi"), exports);
|
|
51
52
|
__exportStar(require("./DesignTemplatesApi"), exports);
|
|
52
53
|
__exportStar(require("./DocumentTemplatesApi"), exports);
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
* Payload of a Brevo transactional email web-hook. Only the fields used by Kommerz are listed.
|
|
13
|
+
* @export
|
|
14
|
+
* @interface BrevoEmailWebhookEvent
|
|
15
|
+
*/
|
|
16
|
+
export interface BrevoEmailWebhookEvent {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof BrevoEmailWebhookEvent
|
|
21
|
+
*/
|
|
22
|
+
event: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof BrevoEmailWebhookEvent
|
|
27
|
+
*/
|
|
28
|
+
email?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof BrevoEmailWebhookEvent
|
|
33
|
+
*/
|
|
34
|
+
id?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Local date time of the event in the format "yyyy-MM-dd HH:mm:ss"
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BrevoEmailWebhookEvent
|
|
39
|
+
*/
|
|
40
|
+
date?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Unix timestamp in seconds
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof BrevoEmailWebhookEvent
|
|
45
|
+
*/
|
|
46
|
+
ts?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Unix timestamp of the event in seconds
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof BrevoEmailWebhookEvent
|
|
51
|
+
*/
|
|
52
|
+
tsEvent?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Unix timestamp of the event in milliseconds
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof BrevoEmailWebhookEvent
|
|
57
|
+
*/
|
|
58
|
+
tsEpoch?: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof BrevoEmailWebhookEvent
|
|
63
|
+
*/
|
|
64
|
+
messageId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Value of the X-Mailin-custom header of the sent email
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof BrevoEmailWebhookEvent
|
|
69
|
+
*/
|
|
70
|
+
xMailinCustom?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof BrevoEmailWebhookEvent
|
|
75
|
+
*/
|
|
76
|
+
subject?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Tags that were used to identify the message
|
|
79
|
+
* @type {Array<string>}
|
|
80
|
+
* @memberof BrevoEmailWebhookEvent
|
|
81
|
+
*/
|
|
82
|
+
tags?: Array<string>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof BrevoEmailWebhookEvent
|
|
87
|
+
*/
|
|
88
|
+
reason?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Preview link corresponding to the UI logs of the event
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof BrevoEmailWebhookEvent
|
|
93
|
+
*/
|
|
94
|
+
mirrorLink?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof BrevoEmailWebhookEvent
|
|
99
|
+
*/
|
|
100
|
+
userAgent?: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof BrevoEmailWebhookEvent
|
|
105
|
+
*/
|
|
106
|
+
deviceUsed?: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Check if a given object implements the BrevoEmailWebhookEvent interface.
|
|
110
|
+
*/
|
|
111
|
+
export declare function instanceOfBrevoEmailWebhookEvent(value: object): value is BrevoEmailWebhookEvent;
|
|
112
|
+
export declare function BrevoEmailWebhookEventFromJSON(json: any): BrevoEmailWebhookEvent;
|
|
113
|
+
export declare function BrevoEmailWebhookEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrevoEmailWebhookEvent;
|
|
114
|
+
export declare function BrevoEmailWebhookEventToJSON(json: any): BrevoEmailWebhookEvent;
|
|
115
|
+
export declare function BrevoEmailWebhookEventToJSONTyped(value?: BrevoEmailWebhookEvent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.instanceOfBrevoEmailWebhookEvent = instanceOfBrevoEmailWebhookEvent;
|
|
16
|
+
exports.BrevoEmailWebhookEventFromJSON = BrevoEmailWebhookEventFromJSON;
|
|
17
|
+
exports.BrevoEmailWebhookEventFromJSONTyped = BrevoEmailWebhookEventFromJSONTyped;
|
|
18
|
+
exports.BrevoEmailWebhookEventToJSON = BrevoEmailWebhookEventToJSON;
|
|
19
|
+
exports.BrevoEmailWebhookEventToJSONTyped = BrevoEmailWebhookEventToJSONTyped;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the BrevoEmailWebhookEvent interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfBrevoEmailWebhookEvent(value) {
|
|
24
|
+
if (!('event' in value) || value['event'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function BrevoEmailWebhookEventFromJSON(json) {
|
|
29
|
+
return BrevoEmailWebhookEventFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function BrevoEmailWebhookEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'event': json['event'],
|
|
37
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
38
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
39
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
40
|
+
'ts': json['ts'] == null ? undefined : json['ts'],
|
|
41
|
+
'tsEvent': json['ts_event'] == null ? undefined : json['ts_event'],
|
|
42
|
+
'tsEpoch': json['ts_epoch'] == null ? undefined : json['ts_epoch'],
|
|
43
|
+
'messageId': json['message-id'] == null ? undefined : json['message-id'],
|
|
44
|
+
'xMailinCustom': json['X-Mailin-custom'] == null ? undefined : json['X-Mailin-custom'],
|
|
45
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
46
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
47
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
48
|
+
'mirrorLink': json['mirror_link'] == null ? undefined : json['mirror_link'],
|
|
49
|
+
'userAgent': json['user_agent'] == null ? undefined : json['user_agent'],
|
|
50
|
+
'deviceUsed': json['device_used'] == null ? undefined : json['device_used'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function BrevoEmailWebhookEventToJSON(json) {
|
|
54
|
+
return BrevoEmailWebhookEventToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function BrevoEmailWebhookEventToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'event': value['event'],
|
|
63
|
+
'email': value['email'],
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'date': value['date'],
|
|
66
|
+
'ts': value['ts'],
|
|
67
|
+
'ts_event': value['tsEvent'],
|
|
68
|
+
'ts_epoch': value['tsEpoch'],
|
|
69
|
+
'message-id': value['messageId'],
|
|
70
|
+
'X-Mailin-custom': value['xMailinCustom'],
|
|
71
|
+
'subject': value['subject'],
|
|
72
|
+
'tags': value['tags'],
|
|
73
|
+
'reason': value['reason'],
|
|
74
|
+
'mirror_link': value['mirrorLink'],
|
|
75
|
+
'user_agent': value['userAgent'],
|
|
76
|
+
'device_used': value['deviceUsed'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* aggregation of the single output of a COLLECT decision table: SUM, MIN and MAX of the numeric output
|
|
13
|
+
* values, COUNT of the matching rules
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export declare const DecisionTableAggregation: {
|
|
18
|
+
readonly Sum: "SUM";
|
|
19
|
+
readonly Min: "MIN";
|
|
20
|
+
readonly Max: "MAX";
|
|
21
|
+
readonly Count: "COUNT";
|
|
22
|
+
};
|
|
23
|
+
export type DecisionTableAggregation = typeof DecisionTableAggregation[keyof typeof DecisionTableAggregation];
|
|
24
|
+
export declare function instanceOfDecisionTableAggregation(value: any): boolean;
|
|
25
|
+
export declare function DecisionTableAggregationFromJSON(json: any): DecisionTableAggregation;
|
|
26
|
+
export declare function DecisionTableAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionTableAggregation;
|
|
27
|
+
export declare function DecisionTableAggregationToJSON(value?: DecisionTableAggregation | null): any;
|
|
28
|
+
export declare function DecisionTableAggregationToJSONTyped(value: any, ignoreDiscriminator: boolean): DecisionTableAggregation;
|