@kommerz/ts-client 1.192.0 → 1.194.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 (74) hide show
  1. package/dist/apis/AppointmentPortalApi.d.ts +17 -13
  2. package/dist/apis/AppointmentPortalApi.js +22 -15
  3. package/dist/apis/AppointmentUsersApi.d.ts +121 -0
  4. package/dist/apis/AppointmentUsersApi.js +387 -0
  5. package/dist/apis/AppointmentsApi.d.ts +2 -2
  6. package/dist/apis/CalendarEntriesApi.d.ts +45 -2
  7. package/dist/apis/CalendarEntriesApi.js +82 -0
  8. package/dist/apis/CalendarEntryTypesApi.d.ts +2 -2
  9. package/dist/apis/CustomersApi.d.ts +6 -2
  10. package/dist/apis/CustomersApi.js +3 -0
  11. package/dist/apis/DecisionTablesApi.d.ts +2 -2
  12. package/dist/apis/DesignTemplatesApi.d.ts +2 -2
  13. package/dist/apis/TextModulesApi.d.ts +2 -2
  14. package/dist/apis/UsersMeApi.d.ts +13 -0
  15. package/dist/apis/UsersMeApi.js +56 -0
  16. package/dist/apis/WorkflowExternalTasksApi.d.ts +2 -2
  17. package/dist/apis/WorkflowsApi.d.ts +2 -2
  18. package/dist/apis/index.d.ts +1 -0
  19. package/dist/apis/index.js +1 -0
  20. package/dist/models/AccountCalendarEntryDto.d.ts +38 -0
  21. package/dist/models/AccountCalendarEntryDto.js +59 -0
  22. package/dist/models/AddressDto.d.ts +8 -0
  23. package/dist/models/AddressDto.js +4 -0
  24. package/dist/models/AppointmentDto.d.ts +14 -5
  25. package/dist/models/AppointmentDto.js +9 -2
  26. package/dist/models/AppointmentPortalDto.d.ts +5 -0
  27. package/dist/models/AppointmentPortalDto.js +3 -0
  28. package/dist/models/AppointmentSubmissionDto.d.ts +35 -0
  29. package/dist/models/AppointmentSubmissionDto.js +54 -0
  30. package/dist/models/AppointmentUserDto.d.ts +51 -0
  31. package/dist/models/AppointmentUserDto.js +55 -0
  32. package/dist/models/AttendedCalendarEntryDto.d.ts +63 -0
  33. package/dist/models/AttendedCalendarEntryDto.js +76 -0
  34. package/dist/models/CalendarAttendeeDto.d.ts +4 -0
  35. package/dist/models/CalendarAttendeeDto.js +2 -0
  36. package/dist/models/CalendarEntryDto.d.ts +29 -1
  37. package/dist/models/CalendarEntryDto.js +11 -0
  38. package/dist/models/CalendarEntryTypeDto.d.ts +9 -1
  39. package/dist/models/CalendarEntryTypeDto.js +3 -0
  40. package/dist/models/CustomerAddressDto.d.ts +34 -0
  41. package/dist/models/CustomerAddressDto.js +55 -0
  42. package/dist/models/CustomerDto.d.ts +10 -1
  43. package/dist/models/CustomerDto.js +5 -0
  44. package/dist/models/DavCalendarDto.d.ts +34 -0
  45. package/dist/models/DavCalendarDto.js +55 -0
  46. package/dist/models/DavCalendarResourceDto.d.ts +46 -0
  47. package/dist/models/DavCalendarResourceDto.js +67 -0
  48. package/dist/models/DavCalendarResourceWriteDto.d.ts +34 -0
  49. package/dist/models/DavCalendarResourceWriteDto.js +55 -0
  50. package/dist/models/DecisionTableDto.d.ts +5 -1
  51. package/dist/models/DecisionTableDto.js +1 -0
  52. package/dist/models/DesignTemplateDto.d.ts +5 -1
  53. package/dist/models/DesignTemplateDto.js +1 -0
  54. package/dist/models/EmailDto.d.ts +4 -0
  55. package/dist/models/EmailDto.js +2 -0
  56. package/dist/models/EntityType.d.ts +1 -0
  57. package/dist/models/EntityType.js +1 -0
  58. package/dist/models/GetAllAppointmentUsers200Response.d.ts +42 -0
  59. package/dist/models/GetAllAppointmentUsers200Response.js +59 -0
  60. package/dist/models/Permissions.d.ts +4 -0
  61. package/dist/models/Permissions.js +4 -0
  62. package/dist/models/RecurrenceScope.d.ts +25 -0
  63. package/dist/models/RecurrenceScope.js +51 -0
  64. package/dist/models/RoutingConfigDto.d.ts +8 -0
  65. package/dist/models/RoutingConfigDto.js +4 -0
  66. package/dist/models/TextModuleDto.d.ts +5 -1
  67. package/dist/models/TextModuleDto.js +1 -0
  68. package/dist/models/WorkflowDto.d.ts +5 -1
  69. package/dist/models/WorkflowDto.js +1 -0
  70. package/dist/models/WorkflowExternalTaskDto.d.ts +5 -1
  71. package/dist/models/WorkflowExternalTaskDto.js +1 -0
  72. package/dist/models/index.d.ts +10 -1
  73. package/dist/models/index.js +10 -1
  74. package/package.json +1 -1
@@ -0,0 +1,387 @@
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.AppointmentUsersApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var AppointmentUserDto_1 = require("../models/AppointmentUserDto");
69
+ var GetAllAppointmentUsers200Response_1 = require("../models/GetAllAppointmentUsers200Response");
70
+ /**
71
+ *
72
+ */
73
+ var AppointmentUsersApi = /** @class */ (function (_super) {
74
+ __extends(AppointmentUsersApi, _super);
75
+ function AppointmentUsersApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Creates request options for createAppointmentUser without sending the request
80
+ */
81
+ AppointmentUsersApi.prototype.createAppointmentUserRequestOpts = function (requestParameters) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath;
84
+ return __generator(this, function (_a) {
85
+ if (requestParameters['appointmentUserDto'] == null) {
86
+ throw new runtime.RequiredError('appointmentUserDto', 'Required parameter "appointmentUserDto" was null or undefined when calling createAppointmentUser().');
87
+ }
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ headerParameters['Content-Type'] = 'application/json';
91
+ urlPath = "/ui/appointment-users/v1";
92
+ return [2 /*return*/, {
93
+ path: urlPath,
94
+ method: 'POST',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: (0, AppointmentUserDto_1.AppointmentUserDtoToJSON)(requestParameters['appointmentUserDto']),
98
+ }];
99
+ });
100
+ });
101
+ };
102
+ /**
103
+ * create an appointment user for a customer
104
+ */
105
+ AppointmentUsersApi.prototype.createAppointmentUserRaw = function (requestParameters, initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function () {
107
+ var requestOptions, response;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0: return [4 /*yield*/, this.createAppointmentUserRequestOpts(requestParameters)];
111
+ case 1:
112
+ requestOptions = _a.sent();
113
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
114
+ case 2:
115
+ response = _a.sent();
116
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentUserDto_1.AppointmentUserDtoFromJSON)(jsonValue); })];
117
+ }
118
+ });
119
+ });
120
+ };
121
+ /**
122
+ * create an appointment user for a customer
123
+ */
124
+ AppointmentUsersApi.prototype.createAppointmentUser = function (requestParameters, initOverrides) {
125
+ return __awaiter(this, void 0, void 0, function () {
126
+ var response;
127
+ return __generator(this, function (_a) {
128
+ switch (_a.label) {
129
+ case 0: return [4 /*yield*/, this.createAppointmentUserRaw(requestParameters, initOverrides)];
130
+ case 1:
131
+ response = _a.sent();
132
+ return [4 /*yield*/, response.value()];
133
+ case 2: return [2 /*return*/, _a.sent()];
134
+ }
135
+ });
136
+ });
137
+ };
138
+ /**
139
+ * Creates request options for deleteAppointmentUser without sending the request
140
+ */
141
+ AppointmentUsersApi.prototype.deleteAppointmentUserRequestOpts = function (requestParameters) {
142
+ return __awaiter(this, void 0, void 0, function () {
143
+ var queryParameters, headerParameters, urlPath;
144
+ return __generator(this, function (_a) {
145
+ if (requestParameters['id'] == null) {
146
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteAppointmentUser().');
147
+ }
148
+ queryParameters = {};
149
+ headerParameters = {};
150
+ urlPath = "/ui/appointment-users/v1/{id}";
151
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
152
+ return [2 /*return*/, {
153
+ path: urlPath,
154
+ method: 'DELETE',
155
+ headers: headerParameters,
156
+ query: queryParameters,
157
+ }];
158
+ });
159
+ });
160
+ };
161
+ /**
162
+ * delete an appointment user
163
+ */
164
+ AppointmentUsersApi.prototype.deleteAppointmentUserRaw = function (requestParameters, initOverrides) {
165
+ return __awaiter(this, void 0, void 0, function () {
166
+ var requestOptions, response;
167
+ return __generator(this, function (_a) {
168
+ switch (_a.label) {
169
+ case 0: return [4 /*yield*/, this.deleteAppointmentUserRequestOpts(requestParameters)];
170
+ case 1:
171
+ requestOptions = _a.sent();
172
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
173
+ case 2:
174
+ response = _a.sent();
175
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
176
+ }
177
+ });
178
+ });
179
+ };
180
+ /**
181
+ * delete an appointment user
182
+ */
183
+ AppointmentUsersApi.prototype.deleteAppointmentUser = function (requestParameters, initOverrides) {
184
+ return __awaiter(this, void 0, void 0, function () {
185
+ return __generator(this, function (_a) {
186
+ switch (_a.label) {
187
+ case 0: return [4 /*yield*/, this.deleteAppointmentUserRaw(requestParameters, initOverrides)];
188
+ case 1:
189
+ _a.sent();
190
+ return [2 /*return*/];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Creates request options for getAllAppointmentUsers without sending the request
197
+ */
198
+ AppointmentUsersApi.prototype.getAllAppointmentUsersRequestOpts = function (requestParameters) {
199
+ return __awaiter(this, void 0, void 0, function () {
200
+ var queryParameters, headerParameters, urlPath;
201
+ return __generator(this, function (_a) {
202
+ if (requestParameters['pageable'] == null) {
203
+ throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllAppointmentUsers().');
204
+ }
205
+ queryParameters = {};
206
+ if (requestParameters['pageable'] != null) {
207
+ queryParameters['pageable'] = requestParameters['pageable'];
208
+ }
209
+ if (requestParameters['filter'] != null) {
210
+ queryParameters['filter'] = requestParameters['filter'];
211
+ }
212
+ headerParameters = {};
213
+ urlPath = "/ui/appointment-users/v1";
214
+ return [2 /*return*/, {
215
+ path: urlPath,
216
+ method: 'GET',
217
+ headers: headerParameters,
218
+ query: queryParameters,
219
+ }];
220
+ });
221
+ });
222
+ };
223
+ /**
224
+ * get all appointment users of the tenant
225
+ */
226
+ AppointmentUsersApi.prototype.getAllAppointmentUsersRaw = function (requestParameters, initOverrides) {
227
+ return __awaiter(this, void 0, void 0, function () {
228
+ var requestOptions, response;
229
+ return __generator(this, function (_a) {
230
+ switch (_a.label) {
231
+ case 0: return [4 /*yield*/, this.getAllAppointmentUsersRequestOpts(requestParameters)];
232
+ case 1:
233
+ requestOptions = _a.sent();
234
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
235
+ case 2:
236
+ response = _a.sent();
237
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetAllAppointmentUsers200Response_1.GetAllAppointmentUsers200ResponseFromJSON)(jsonValue); })];
238
+ }
239
+ });
240
+ });
241
+ };
242
+ /**
243
+ * get all appointment users of the tenant
244
+ */
245
+ AppointmentUsersApi.prototype.getAllAppointmentUsers = function (requestParameters, initOverrides) {
246
+ return __awaiter(this, void 0, void 0, function () {
247
+ var response;
248
+ return __generator(this, function (_a) {
249
+ switch (_a.label) {
250
+ case 0: return [4 /*yield*/, this.getAllAppointmentUsersRaw(requestParameters, initOverrides)];
251
+ case 1:
252
+ response = _a.sent();
253
+ return [4 /*yield*/, response.value()];
254
+ case 2: return [2 /*return*/, _a.sent()];
255
+ }
256
+ });
257
+ });
258
+ };
259
+ /**
260
+ * Creates request options for getAppointmentUser without sending the request
261
+ */
262
+ AppointmentUsersApi.prototype.getAppointmentUserRequestOpts = function (requestParameters) {
263
+ return __awaiter(this, void 0, void 0, function () {
264
+ var queryParameters, headerParameters, urlPath;
265
+ return __generator(this, function (_a) {
266
+ if (requestParameters['id'] == null) {
267
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAppointmentUser().');
268
+ }
269
+ queryParameters = {};
270
+ headerParameters = {};
271
+ urlPath = "/ui/appointment-users/v1/{id}";
272
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
273
+ return [2 /*return*/, {
274
+ path: urlPath,
275
+ method: 'GET',
276
+ headers: headerParameters,
277
+ query: queryParameters,
278
+ }];
279
+ });
280
+ });
281
+ };
282
+ /**
283
+ * read one appointment user
284
+ */
285
+ AppointmentUsersApi.prototype.getAppointmentUserRaw = function (requestParameters, initOverrides) {
286
+ return __awaiter(this, void 0, void 0, function () {
287
+ var requestOptions, response;
288
+ return __generator(this, function (_a) {
289
+ switch (_a.label) {
290
+ case 0: return [4 /*yield*/, this.getAppointmentUserRequestOpts(requestParameters)];
291
+ case 1:
292
+ requestOptions = _a.sent();
293
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
294
+ case 2:
295
+ response = _a.sent();
296
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentUserDto_1.AppointmentUserDtoFromJSON)(jsonValue); })];
297
+ }
298
+ });
299
+ });
300
+ };
301
+ /**
302
+ * read one appointment user
303
+ */
304
+ AppointmentUsersApi.prototype.getAppointmentUser = function (requestParameters, initOverrides) {
305
+ return __awaiter(this, void 0, void 0, function () {
306
+ var response;
307
+ return __generator(this, function (_a) {
308
+ switch (_a.label) {
309
+ case 0: return [4 /*yield*/, this.getAppointmentUserRaw(requestParameters, initOverrides)];
310
+ case 1:
311
+ response = _a.sent();
312
+ return [4 /*yield*/, response.value()];
313
+ case 2: return [2 /*return*/, _a.sent()];
314
+ }
315
+ });
316
+ });
317
+ };
318
+ /**
319
+ * Creates request options for updateAppointmentUser without sending the request
320
+ */
321
+ AppointmentUsersApi.prototype.updateAppointmentUserRequestOpts = function (requestParameters) {
322
+ return __awaiter(this, void 0, void 0, function () {
323
+ var queryParameters, headerParameters, urlPath;
324
+ return __generator(this, function (_a) {
325
+ if (requestParameters['id'] == null) {
326
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAppointmentUser().');
327
+ }
328
+ if (requestParameters['appointmentUserDto'] == null) {
329
+ throw new runtime.RequiredError('appointmentUserDto', 'Required parameter "appointmentUserDto" was null or undefined when calling updateAppointmentUser().');
330
+ }
331
+ queryParameters = {};
332
+ if (requestParameters['force'] != null) {
333
+ queryParameters['force'] = requestParameters['force'];
334
+ }
335
+ headerParameters = {};
336
+ headerParameters['Content-Type'] = 'application/json';
337
+ urlPath = "/ui/appointment-users/v1/{id}";
338
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
339
+ return [2 /*return*/, {
340
+ path: urlPath,
341
+ method: 'PUT',
342
+ headers: headerParameters,
343
+ query: queryParameters,
344
+ body: (0, AppointmentUserDto_1.AppointmentUserDtoToJSON)(requestParameters['appointmentUserDto']),
345
+ }];
346
+ });
347
+ });
348
+ };
349
+ /**
350
+ * update an appointment user, e.g. to assign a customer
351
+ */
352
+ AppointmentUsersApi.prototype.updateAppointmentUserRaw = function (requestParameters, initOverrides) {
353
+ return __awaiter(this, void 0, void 0, function () {
354
+ var requestOptions, response;
355
+ return __generator(this, function (_a) {
356
+ switch (_a.label) {
357
+ case 0: return [4 /*yield*/, this.updateAppointmentUserRequestOpts(requestParameters)];
358
+ case 1:
359
+ requestOptions = _a.sent();
360
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
361
+ case 2:
362
+ response = _a.sent();
363
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentUserDto_1.AppointmentUserDtoFromJSON)(jsonValue); })];
364
+ }
365
+ });
366
+ });
367
+ };
368
+ /**
369
+ * update an appointment user, e.g. to assign a customer
370
+ */
371
+ AppointmentUsersApi.prototype.updateAppointmentUser = function (requestParameters, initOverrides) {
372
+ return __awaiter(this, void 0, void 0, function () {
373
+ var response;
374
+ return __generator(this, function (_a) {
375
+ switch (_a.label) {
376
+ case 0: return [4 /*yield*/, this.updateAppointmentUserRaw(requestParameters, initOverrides)];
377
+ case 1:
378
+ response = _a.sent();
379
+ return [4 /*yield*/, response.value()];
380
+ case 2: return [2 /*return*/, _a.sent()];
381
+ }
382
+ });
383
+ });
384
+ };
385
+ return AppointmentUsersApi;
386
+ }(runtime.BaseAPI));
387
+ exports.AppointmentUsersApi = AppointmentUsersApi;
@@ -16,7 +16,7 @@ export interface CreateAppointmentRequest {
16
16
  /**
17
17
  *
18
18
  */
19
- appointmentDto: Omit<AppointmentDto, 'userId' | 'userName'>;
19
+ appointmentDto: Omit<AppointmentDto, 'appointmentUserName' | 'calendarEntryId'>;
20
20
  }
21
21
  export interface DeleteAppointmentRequest {
22
22
  /**
@@ -48,7 +48,7 @@ export interface UpdateAppointmentRequest {
48
48
  /**
49
49
  *
50
50
  */
51
- appointmentDto: Omit<AppointmentDto, 'userId' | 'userName'>;
51
+ appointmentDto: Omit<AppointmentDto, 'appointmentUserName' | 'calendarEntryId'>;
52
52
  /**
53
53
  * whether to force update the entity
54
54
  */
@@ -12,17 +12,26 @@ import * as runtime from '../runtime';
12
12
  import { type CalendarEntryDto } from '../models/CalendarEntryDto';
13
13
  import { type GetAllCalendarEntries200Response } from '../models/GetAllCalendarEntries200Response';
14
14
  import { type KommerzPageable } from '../models/KommerzPageable';
15
+ import { type RecurrenceScope } from '../models/RecurrenceScope';
15
16
  export interface CreateCalendarEntryRequest {
16
17
  /**
17
18
  *
18
19
  */
19
- calendarEntryDto: CalendarEntryDto;
20
+ calendarEntryDto: Omit<CalendarEntryDto, 'modificationTime' | 'excludedOccurrences' | 'recurrenceMasterId' | 'originalStartDate'>;
20
21
  }
21
22
  export interface DeleteCalendarEntryRequest {
22
23
  /**
23
24
  * id of entity
24
25
  */
25
26
  id: string;
27
+ /**
28
+ * occurrences of a repeating entry the request applies to (default ALL)
29
+ */
30
+ recurrenceScope?: RecurrenceScope;
31
+ /**
32
+ * original start date (in the time zone of the entry) of the occurrence the request applies to. Required for the scopes THIS and FOLLOWING; for the scope ALL the change of the occurrence's time span is applied to the whole series.
33
+ */
34
+ originalStartDate?: string;
26
35
  }
27
36
  export interface GetAllCalendarEntriesRequest {
28
37
  /**
@@ -40,6 +49,20 @@ export interface GetCalendarEntryRequest {
40
49
  */
41
50
  id: string;
42
51
  }
52
+ export interface GetCalendarEntryOccurrencesRequest {
53
+ /**
54
+ * inclusive start of the period
55
+ */
56
+ from: Date;
57
+ /**
58
+ * exclusive end of the period
59
+ */
60
+ to: Date;
61
+ /**
62
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
63
+ */
64
+ filter?: Array<string>;
65
+ }
43
66
  export interface UpdateCalendarEntryRequest {
44
67
  /**
45
68
  * id of entity
@@ -48,11 +71,19 @@ export interface UpdateCalendarEntryRequest {
48
71
  /**
49
72
  *
50
73
  */
51
- calendarEntryDto: CalendarEntryDto;
74
+ calendarEntryDto: Omit<CalendarEntryDto, 'modificationTime' | 'excludedOccurrences' | 'recurrenceMasterId' | 'originalStartDate'>;
52
75
  /**
53
76
  * whether to force update the entity
54
77
  */
55
78
  force?: boolean;
79
+ /**
80
+ * occurrences of a repeating entry the request applies to (default ALL)
81
+ */
82
+ recurrenceScope?: RecurrenceScope;
83
+ /**
84
+ * original start date (in the time zone of the entry) of the occurrence the request applies to. Required for the scopes THIS and FOLLOWING; for the scope ALL the change of the occurrence's time span is applied to the whole series.
85
+ */
86
+ originalStartDate?: string;
56
87
  }
57
88
  /**
58
89
  *
@@ -106,6 +137,18 @@ export declare class CalendarEntriesApi extends runtime.BaseAPI {
106
137
  * read one calendar entry
107
138
  */
108
139
  getCalendarEntry(requestParameters: GetCalendarEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEntryDto>;
140
+ /**
141
+ * Creates request options for getCalendarEntryOccurrences without sending the request
142
+ */
143
+ getCalendarEntryOccurrencesRequestOpts(requestParameters: GetCalendarEntryOccurrencesRequest): Promise<runtime.RequestOpts>;
144
+ /**
145
+ * get the calendar entries overlapping a period, every repeating entry expanded into its occurrences
146
+ */
147
+ getCalendarEntryOccurrencesRaw(requestParameters: GetCalendarEntryOccurrencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CalendarEntryDto>>>;
148
+ /**
149
+ * get the calendar entries overlapping a period, every repeating entry expanded into its occurrences
150
+ */
151
+ getCalendarEntryOccurrences(requestParameters: GetCalendarEntryOccurrencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CalendarEntryDto>>;
109
152
  /**
110
153
  * Creates request options for updateCalendarEntry without sending the request
111
154
  */
@@ -146,6 +146,12 @@ var CalendarEntriesApi = /** @class */ (function (_super) {
146
146
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCalendarEntry().');
147
147
  }
148
148
  queryParameters = {};
149
+ if (requestParameters['recurrenceScope'] != null) {
150
+ queryParameters['recurrenceScope'] = requestParameters['recurrenceScope'];
151
+ }
152
+ if (requestParameters['originalStartDate'] != null) {
153
+ queryParameters['originalStartDate'] = requestParameters['originalStartDate'];
154
+ }
149
155
  headerParameters = {};
150
156
  urlPath = "/ui/calendar/v1/calendar-entries/{id}";
151
157
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -315,6 +321,76 @@ var CalendarEntriesApi = /** @class */ (function (_super) {
315
321
  });
316
322
  });
317
323
  };
324
+ /**
325
+ * Creates request options for getCalendarEntryOccurrences without sending the request
326
+ */
327
+ CalendarEntriesApi.prototype.getCalendarEntryOccurrencesRequestOpts = function (requestParameters) {
328
+ return __awaiter(this, void 0, void 0, function () {
329
+ var queryParameters, headerParameters, urlPath;
330
+ return __generator(this, function (_a) {
331
+ if (requestParameters['from'] == null) {
332
+ throw new runtime.RequiredError('from', 'Required parameter "from" was null or undefined when calling getCalendarEntryOccurrences().');
333
+ }
334
+ if (requestParameters['to'] == null) {
335
+ throw new runtime.RequiredError('to', 'Required parameter "to" was null or undefined when calling getCalendarEntryOccurrences().');
336
+ }
337
+ queryParameters = {};
338
+ if (requestParameters['from'] != null) {
339
+ queryParameters['from'] = runtime.serializeDateTime(requestParameters['from']);
340
+ }
341
+ if (requestParameters['to'] != null) {
342
+ queryParameters['to'] = runtime.serializeDateTime(requestParameters['to']);
343
+ }
344
+ if (requestParameters['filter'] != null) {
345
+ queryParameters['filter'] = requestParameters['filter'];
346
+ }
347
+ headerParameters = {};
348
+ urlPath = "/ui/calendar/v1/calendar-entry-occurrences";
349
+ return [2 /*return*/, {
350
+ path: urlPath,
351
+ method: 'GET',
352
+ headers: headerParameters,
353
+ query: queryParameters,
354
+ }];
355
+ });
356
+ });
357
+ };
358
+ /**
359
+ * get the calendar entries overlapping a period, every repeating entry expanded into its occurrences
360
+ */
361
+ CalendarEntriesApi.prototype.getCalendarEntryOccurrencesRaw = function (requestParameters, initOverrides) {
362
+ return __awaiter(this, void 0, void 0, function () {
363
+ var requestOptions, response;
364
+ return __generator(this, function (_a) {
365
+ switch (_a.label) {
366
+ case 0: return [4 /*yield*/, this.getCalendarEntryOccurrencesRequestOpts(requestParameters)];
367
+ case 1:
368
+ requestOptions = _a.sent();
369
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
370
+ case 2:
371
+ response = _a.sent();
372
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(CalendarEntryDto_1.CalendarEntryDtoFromJSON); })];
373
+ }
374
+ });
375
+ });
376
+ };
377
+ /**
378
+ * get the calendar entries overlapping a period, every repeating entry expanded into its occurrences
379
+ */
380
+ CalendarEntriesApi.prototype.getCalendarEntryOccurrences = function (requestParameters, initOverrides) {
381
+ return __awaiter(this, void 0, void 0, function () {
382
+ var response;
383
+ return __generator(this, function (_a) {
384
+ switch (_a.label) {
385
+ case 0: return [4 /*yield*/, this.getCalendarEntryOccurrencesRaw(requestParameters, initOverrides)];
386
+ case 1:
387
+ response = _a.sent();
388
+ return [4 /*yield*/, response.value()];
389
+ case 2: return [2 /*return*/, _a.sent()];
390
+ }
391
+ });
392
+ });
393
+ };
318
394
  /**
319
395
  * Creates request options for updateCalendarEntry without sending the request
320
396
  */
@@ -332,6 +408,12 @@ var CalendarEntriesApi = /** @class */ (function (_super) {
332
408
  if (requestParameters['force'] != null) {
333
409
  queryParameters['force'] = requestParameters['force'];
334
410
  }
411
+ if (requestParameters['recurrenceScope'] != null) {
412
+ queryParameters['recurrenceScope'] = requestParameters['recurrenceScope'];
413
+ }
414
+ if (requestParameters['originalStartDate'] != null) {
415
+ queryParameters['originalStartDate'] = requestParameters['originalStartDate'];
416
+ }
335
417
  headerParameters = {};
336
418
  headerParameters['Content-Type'] = 'application/json';
337
419
  urlPath = "/ui/calendar/v1/calendar-entries/{id}";
@@ -16,7 +16,7 @@ export interface CreateCalendarEntryTypeRequest {
16
16
  /**
17
17
  *
18
18
  */
19
- calendarEntryTypeDto: CalendarEntryTypeDto;
19
+ calendarEntryTypeDto: Omit<CalendarEntryTypeDto, 'managed'>;
20
20
  }
21
21
  export interface DeleteCalendarEntryTypeRequest {
22
22
  /**
@@ -48,7 +48,7 @@ export interface UpdateCalendarEntryTypeRequest {
48
48
  /**
49
49
  *
50
50
  */
51
- calendarEntryTypeDto: CalendarEntryTypeDto;
51
+ calendarEntryTypeDto: Omit<CalendarEntryTypeDto, 'managed'>;
52
52
  /**
53
53
  * whether to force update the entity
54
54
  */
@@ -16,7 +16,7 @@ export interface CreateCustomerRequest {
16
16
  /**
17
17
  *
18
18
  */
19
- customerDto: Omit<CustomerDto, 'id' | 'version' | 'deleted'>;
19
+ customerDto: Omit<CustomerDto, 'id' | 'version' | 'deleted' | 'modificationTime'>;
20
20
  }
21
21
  export interface DeleteCustomerRequest {
22
22
  /**
@@ -33,6 +33,10 @@ export interface GetAllCustomersRequest {
33
33
  * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
34
34
  */
35
35
  filter?: Array<string>;
36
+ /**
37
+ * whether retired entities are returned as well, so a synchronizing client learns about deletions
38
+ */
39
+ includeDeleted?: boolean;
36
40
  }
37
41
  export interface GetCustomerRequest {
38
42
  /**
@@ -48,7 +52,7 @@ export interface UpdateCustomerRequest {
48
52
  /**
49
53
  *
50
54
  */
51
- customerDto: Omit<CustomerDto, 'id' | 'version' | 'deleted'>;
55
+ customerDto: Omit<CustomerDto, 'id' | 'version' | 'deleted' | 'modificationTime'>;
52
56
  /**
53
57
  * whether to force update the entity
54
58
  */
@@ -209,6 +209,9 @@ var CustomersApi = /** @class */ (function (_super) {
209
209
  if (requestParameters['filter'] != null) {
210
210
  queryParameters['filter'] = requestParameters['filter'];
211
211
  }
212
+ if (requestParameters['includeDeleted'] != null) {
213
+ queryParameters['includeDeleted'] = requestParameters['includeDeleted'];
214
+ }
212
215
  headerParameters = {};
213
216
  urlPath = "/ui/customers/v1";
214
217
  return [2 /*return*/, {
@@ -16,7 +16,7 @@ export interface CreateDecisionTableRequest {
16
16
  /**
17
17
  *
18
18
  */
19
- decisionTableDto: DecisionTableDto;
19
+ decisionTableDto: Omit<DecisionTableDto, 'managed'>;
20
20
  }
21
21
  export interface DeleteDecisionTableRequest {
22
22
  /**
@@ -48,7 +48,7 @@ export interface UpdateDecisionTableRequest {
48
48
  /**
49
49
  *
50
50
  */
51
- decisionTableDto: DecisionTableDto;
51
+ decisionTableDto: Omit<DecisionTableDto, 'managed'>;
52
52
  /**
53
53
  * whether to force update the entity
54
54
  */