@kommerz/ts-client 1.195.0 → 1.197.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 (133) hide show
  1. package/dist/apis/AcceptancePortalDocumentsApi.d.ts +6 -6
  2. package/dist/apis/AcceptancePortalDocumentsApi.js +12 -12
  3. package/dist/apis/AppointmentPortalApi.d.ts +95 -15
  4. package/dist/apis/AppointmentPortalApi.js +212 -15
  5. package/dist/apis/AppointmentUsersApi.js +5 -5
  6. package/dist/apis/AppointmentsApi.d.ts +63 -2
  7. package/dist/apis/AppointmentsApi.js +196 -5
  8. package/dist/apis/BankingAccountsApi.js +1 -1
  9. package/dist/apis/BankingRegistrationsApi.js +1 -1
  10. package/dist/apis/CustomersApi.d.ts +0 -4
  11. package/dist/apis/CustomersApi.js +0 -3
  12. package/dist/apis/FileDirectorySharesApi.d.ts +4 -4
  13. package/dist/apis/FileDirectorySharesApi.js +8 -8
  14. package/dist/apis/FormsPortalApi.d.ts +6 -4
  15. package/dist/apis/FormsPortalApi.js +10 -8
  16. package/dist/apis/InvoicePortalApi.d.ts +2 -2
  17. package/dist/apis/InvoicePortalApi.js +4 -4
  18. package/dist/apis/LegalEntityUsersApi.d.ts +121 -0
  19. package/dist/apis/LegalEntityUsersApi.js +387 -0
  20. package/dist/apis/MapsApi.d.ts +43 -0
  21. package/dist/apis/MapsApi.js +127 -0
  22. package/dist/apis/NotificationTargetsApi.js +1 -1
  23. package/dist/apis/NotificationsAcksApi.js +2 -2
  24. package/dist/apis/NotificationsApi.js +3 -3
  25. package/dist/apis/PresenceEntriesApi.js +1 -1
  26. package/dist/apis/TenantPortalUploadsApi.d.ts +166 -0
  27. package/dist/apis/TenantPortalUploadsApi.js +418 -0
  28. package/dist/apis/TimeTrackingCalendarApi.js +2 -2
  29. package/dist/apis/TimeTrackingCalendarExportApi.js +1 -1
  30. package/dist/apis/UsersMeApi.d.ts +58 -9
  31. package/dist/apis/UsersMeApi.js +103 -14
  32. package/dist/apis/UsersMeBookmarksApi.d.ts +99 -0
  33. package/dist/apis/UsersMeBookmarksApi.js +324 -0
  34. package/dist/apis/index.d.ts +3 -2
  35. package/dist/apis/index.js +3 -2
  36. package/dist/models/AccountCalendarEntryDto.d.ts +6 -1
  37. package/dist/models/AccountCalendarEntryDto.js +3 -0
  38. package/dist/models/AccountCalendarEntryRsvpDto.d.ts +33 -0
  39. package/dist/models/AccountCalendarEntryRsvpDto.js +54 -0
  40. package/dist/models/AddressDto.d.ts +4 -0
  41. package/dist/models/AddressDto.js +2 -0
  42. package/dist/models/AppointmentBlockerDto.d.ts +59 -0
  43. package/dist/models/AppointmentBlockerDto.js +70 -0
  44. package/dist/models/AppointmentBookingConfigDto.d.ts +66 -0
  45. package/dist/models/AppointmentBookingConfigDto.js +71 -0
  46. package/dist/models/AppointmentDto.d.ts +30 -8
  47. package/dist/models/AppointmentDto.js +16 -6
  48. package/dist/models/AppointmentEmailTemplateDto.d.ts +33 -0
  49. package/dist/models/AppointmentEmailTemplateDto.js +50 -0
  50. package/dist/models/AppointmentEmailTemplatesDto.d.ts +58 -0
  51. package/dist/models/AppointmentEmailTemplatesDto.js +63 -0
  52. package/dist/models/AppointmentPortalDto.d.ts +8 -2
  53. package/dist/models/AppointmentPortalDto.js +6 -2
  54. package/dist/models/AppointmentProductDto.d.ts +45 -0
  55. package/dist/models/AppointmentProductDto.js +59 -0
  56. package/dist/models/AppointmentProductSelectionDto.d.ts +33 -0
  57. package/dist/models/AppointmentProductSelectionDto.js +54 -0
  58. package/dist/models/AppointmentSlotDistance.d.ts +3 -1
  59. package/dist/models/AppointmentSlotDistance.js +3 -1
  60. package/dist/models/AppointmentSlotDto.d.ts +5 -1
  61. package/dist/models/AppointmentSlotDto.js +4 -0
  62. package/dist/models/AppointmentStatus.d.ts +9 -3
  63. package/dist/models/AppointmentStatus.js +9 -3
  64. package/dist/models/AppointmentSubmissionDto.d.ts +15 -2
  65. package/dist/models/AppointmentSubmissionDto.js +7 -0
  66. package/dist/models/AppointmentTimeSpanDto.d.ts +39 -0
  67. package/dist/models/AppointmentTimeSpanDto.js +58 -0
  68. package/dist/models/AppointmentTimeSpanStatus.d.ts +35 -0
  69. package/dist/models/AppointmentTimeSpanStatus.js +61 -0
  70. package/dist/models/AttendedCalendarEntryDto.d.ts +10 -2
  71. package/dist/models/AttendedCalendarEntryDto.js +4 -0
  72. package/dist/models/BookmarkDto.d.ts +50 -0
  73. package/dist/models/BookmarkDto.js +60 -0
  74. package/dist/models/CalendarEntryTypeDto.d.ts +4 -0
  75. package/dist/models/CalendarEntryTypeDto.js +2 -0
  76. package/dist/models/CalendarPortalEventDto.d.ts +4 -0
  77. package/dist/models/CalendarPortalEventDto.js +4 -0
  78. package/dist/models/DavAddressBookDto.d.ts +29 -0
  79. package/dist/models/DavAddressBookDto.js +50 -0
  80. package/dist/models/DavCalendarDto.d.ts +1 -1
  81. package/dist/models/DavResourceDto.d.ts +45 -0
  82. package/dist/models/DavResourceDto.js +64 -0
  83. package/dist/models/DavResourceWriteDto.d.ts +29 -0
  84. package/dist/models/DavResourceWriteDto.js +50 -0
  85. package/dist/models/EntityType.d.ts +3 -1
  86. package/dist/models/EntityType.js +3 -1
  87. package/dist/models/FormsPortalFileUploadDto.d.ts +37 -0
  88. package/dist/models/FormsPortalFileUploadDto.js +54 -0
  89. package/dist/models/FormsPortalLegalEntityUserRequestDto.d.ts +29 -0
  90. package/dist/models/FormsPortalLegalEntityUserRequestDto.js +50 -0
  91. package/dist/models/FormsPortalSpecDto.d.ts +5 -0
  92. package/dist/models/FormsPortalSpecDto.js +5 -0
  93. package/dist/models/FormsPortalSubmissionDto.d.ts +29 -0
  94. package/dist/models/FormsPortalSubmissionDto.js +50 -0
  95. package/dist/models/FormsPortalSubmitDto.d.ts +4 -0
  96. package/dist/models/FormsPortalSubmitDto.js +2 -0
  97. package/dist/models/GeoLocationDto.d.ts +42 -0
  98. package/dist/models/GeoLocationDto.js +55 -0
  99. package/dist/models/GetAllLegalEntityUsers200Response.d.ts +42 -0
  100. package/dist/models/GetAllLegalEntityUsers200Response.js +59 -0
  101. package/dist/models/GetMyAppointments200Response.d.ts +42 -0
  102. package/dist/models/GetMyAppointments200Response.js +59 -0
  103. package/dist/models/GetMyBookmarks200Response.d.ts +42 -0
  104. package/dist/models/GetMyBookmarks200Response.js +59 -0
  105. package/dist/models/KanbanBoardDto.d.ts +12 -0
  106. package/dist/models/KanbanBoardDto.js +6 -0
  107. package/dist/models/LegalEntityUserDto.d.ts +71 -0
  108. package/dist/models/LegalEntityUserDto.js +63 -0
  109. package/dist/models/LocationGeocodeQueryDto.d.ts +29 -0
  110. package/dist/models/LocationGeocodeQueryDto.js +50 -0
  111. package/dist/models/Permissions.d.ts +5 -4
  112. package/dist/models/Permissions.js +5 -4
  113. package/dist/models/PublicTenantPageDto.d.ts +4 -0
  114. package/dist/models/PublicTenantPageDto.js +4 -0
  115. package/dist/models/RoutePlanningAppointmentResultDto.d.ts +47 -0
  116. package/dist/models/RoutePlanningAppointmentResultDto.js +62 -0
  117. package/dist/models/RoutePlanningOutcome.d.ts +35 -0
  118. package/dist/models/RoutePlanningOutcome.js +61 -0
  119. package/dist/models/RoutePlanningResultDto.d.ts +38 -0
  120. package/dist/models/RoutePlanningResultDto.js +57 -0
  121. package/dist/models/RoutingConfigDto.d.ts +82 -13
  122. package/dist/models/RoutingConfigDto.js +51 -12
  123. package/dist/models/TenantConfigurationDto.d.ts +4 -0
  124. package/dist/models/TenantConfigurationDto.js +2 -0
  125. package/dist/models/UiConfigurationDto.d.ts +9 -0
  126. package/dist/models/UiConfigurationDto.js +5 -0
  127. package/dist/models/UiModuleCategory.d.ts +29 -0
  128. package/dist/models/UiModuleCategory.js +55 -0
  129. package/dist/models/UserDto.d.ts +5 -1
  130. package/dist/models/UserDto.js +1 -0
  131. package/dist/models/index.d.ts +24 -5
  132. package/dist/models/index.js +24 -5
  133. package/package.json +1 -1
@@ -65,7 +65,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
65
65
  Object.defineProperty(exports, "__esModule", { value: true });
66
66
  exports.AppointmentPortalApi = void 0;
67
67
  var runtime = require("../runtime");
68
+ var AppointmentBookingConfigDto_1 = require("../models/AppointmentBookingConfigDto");
68
69
  var AppointmentPortalDto_1 = require("../models/AppointmentPortalDto");
70
+ var AppointmentProductDto_1 = require("../models/AppointmentProductDto");
69
71
  var AppointmentSlotDto_1 = require("../models/AppointmentSlotDto");
70
72
  var AppointmentSubmissionDto_1 = require("../models/AppointmentSubmissionDto");
71
73
  var TimeSpanDto_1 = require("../models/TimeSpanDto");
@@ -77,6 +79,74 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
77
79
  function AppointmentPortalApi() {
78
80
  return _super !== null && _super.apply(this, arguments) || this;
79
81
  }
82
+ /**
83
+ * Creates request options for confirmOwnAppointment without sending the request
84
+ */
85
+ AppointmentPortalApi.prototype.confirmOwnAppointmentRequestOpts = function (requestParameters) {
86
+ return __awaiter(this, void 0, void 0, function () {
87
+ var queryParameters, headerParameters, urlPath;
88
+ return __generator(this, function (_a) {
89
+ if (requestParameters['handle'] == null) {
90
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling confirmOwnAppointment().');
91
+ }
92
+ if (requestParameters['id'] == null) {
93
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling confirmOwnAppointment().');
94
+ }
95
+ queryParameters = {};
96
+ headerParameters = {};
97
+ if (requestParameters['xPortalSecret'] != null) {
98
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
99
+ }
100
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointments/{id}/confirmation";
101
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
102
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
103
+ return [2 /*return*/, {
104
+ path: urlPath,
105
+ method: 'POST',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ }];
109
+ });
110
+ });
111
+ };
112
+ /**
113
+ * Only possible while the appointment is in planning with a planned time and its confirmation period has not ended. The appointment and its planned time span become confirmed and the user, or without one the customer, is marked as accepted in the calendar entry.
114
+ * confirm the planned time of an appointment the logged-in user requested at the tenant, or of the one the secret of its confirmation link grants access to
115
+ */
116
+ AppointmentPortalApi.prototype.confirmOwnAppointmentRaw = function (requestParameters, initOverrides) {
117
+ return __awaiter(this, void 0, void 0, function () {
118
+ var requestOptions, response;
119
+ return __generator(this, function (_a) {
120
+ switch (_a.label) {
121
+ case 0: return [4 /*yield*/, this.confirmOwnAppointmentRequestOpts(requestParameters)];
122
+ case 1:
123
+ requestOptions = _a.sent();
124
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
125
+ case 2:
126
+ response = _a.sent();
127
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentPortalDto_1.AppointmentPortalDtoFromJSON)(jsonValue); })];
128
+ }
129
+ });
130
+ });
131
+ };
132
+ /**
133
+ * Only possible while the appointment is in planning with a planned time and its confirmation period has not ended. The appointment and its planned time span become confirmed and the user, or without one the customer, is marked as accepted in the calendar entry.
134
+ * confirm the planned time of an appointment the logged-in user requested at the tenant, or of the one the secret of its confirmation link grants access to
135
+ */
136
+ AppointmentPortalApi.prototype.confirmOwnAppointment = function (requestParameters, initOverrides) {
137
+ return __awaiter(this, void 0, void 0, function () {
138
+ var response;
139
+ return __generator(this, function (_a) {
140
+ switch (_a.label) {
141
+ case 0: return [4 /*yield*/, this.confirmOwnAppointmentRaw(requestParameters, initOverrides)];
142
+ case 1:
143
+ response = _a.sent();
144
+ return [4 /*yield*/, response.value()];
145
+ case 2: return [2 /*return*/, _a.sent()];
146
+ }
147
+ });
148
+ });
149
+ };
80
150
  /**
81
151
  * Creates request options for deleteOwnAppointment without sending the request
82
152
  */
@@ -105,7 +175,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
105
175
  });
106
176
  };
107
177
  /**
108
- * withdraw an unconfirmed appointment the logged-in user requested at the tenant
178
+ * Only possible as long as the appointment is neither confirmed nor closed. The calendar entry of a planned time is removed.
179
+ * withdraw an appointment the logged-in user requested at the tenant
109
180
  */
110
181
  AppointmentPortalApi.prototype.deleteOwnAppointmentRaw = function (requestParameters, initOverrides) {
111
182
  return __awaiter(this, void 0, void 0, function () {
@@ -124,7 +195,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
124
195
  });
125
196
  };
126
197
  /**
127
- * withdraw an unconfirmed appointment the logged-in user requested at the tenant
198
+ * Only possible as long as the appointment is neither confirmed nor closed. The calendar entry of a planned time is removed.
199
+ * withdraw an appointment the logged-in user requested at the tenant
128
200
  */
129
201
  AppointmentPortalApi.prototype.deleteOwnAppointment = function (requestParameters, initOverrides) {
130
202
  return __awaiter(this, void 0, void 0, function () {
@@ -138,6 +210,67 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
138
210
  });
139
211
  });
140
212
  };
213
+ /**
214
+ * Creates request options for getAllAppointmentProducts without sending the request
215
+ */
216
+ AppointmentPortalApi.prototype.getAllAppointmentProductsRequestOpts = function (requestParameters) {
217
+ return __awaiter(this, void 0, void 0, function () {
218
+ var queryParameters, headerParameters, urlPath;
219
+ return __generator(this, function (_a) {
220
+ if (requestParameters['handle'] == null) {
221
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAllAppointmentProducts().');
222
+ }
223
+ queryParameters = {};
224
+ headerParameters = {};
225
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointment-products";
226
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
227
+ return [2 /*return*/, {
228
+ path: urlPath,
229
+ method: 'GET',
230
+ headers: headerParameters,
231
+ query: queryParameters,
232
+ }];
233
+ });
234
+ });
235
+ };
236
+ /**
237
+ * Available without login. An OIDC token is accepted when the requester is logged in. A product is bookable when it carries the tag \"appointment\". The products are sorted by their name.
238
+ * get the products of a tenant that can be booked with an appointment
239
+ */
240
+ AppointmentPortalApi.prototype.getAllAppointmentProductsRaw = function (requestParameters, initOverrides) {
241
+ return __awaiter(this, void 0, void 0, function () {
242
+ var requestOptions, response;
243
+ return __generator(this, function (_a) {
244
+ switch (_a.label) {
245
+ case 0: return [4 /*yield*/, this.getAllAppointmentProductsRequestOpts(requestParameters)];
246
+ case 1:
247
+ requestOptions = _a.sent();
248
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
249
+ case 2:
250
+ response = _a.sent();
251
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(AppointmentProductDto_1.AppointmentProductDtoFromJSON); })];
252
+ }
253
+ });
254
+ });
255
+ };
256
+ /**
257
+ * Available without login. An OIDC token is accepted when the requester is logged in. A product is bookable when it carries the tag \"appointment\". The products are sorted by their name.
258
+ * get the products of a tenant that can be booked with an appointment
259
+ */
260
+ AppointmentPortalApi.prototype.getAllAppointmentProducts = function (requestParameters, initOverrides) {
261
+ return __awaiter(this, void 0, void 0, function () {
262
+ var response;
263
+ return __generator(this, function (_a) {
264
+ switch (_a.label) {
265
+ case 0: return [4 /*yield*/, this.getAllAppointmentProductsRaw(requestParameters, initOverrides)];
266
+ case 1:
267
+ response = _a.sent();
268
+ return [4 /*yield*/, response.value()];
269
+ case 2: return [2 /*return*/, _a.sent()];
270
+ }
271
+ });
272
+ });
273
+ };
141
274
  /**
142
275
  * Creates request options for getAllAppointmentSlots without sending the request
143
276
  */
@@ -171,7 +304,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
171
304
  queryParameters['long'] = requestParameters['_long'];
172
305
  }
173
306
  headerParameters = {};
174
- urlPath = "/ui/tenant-portal/v1/{handle}/appointments/slots";
307
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointment-slots";
175
308
  urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
176
309
  return [2 /*return*/, {
177
310
  path: urlPath,
@@ -183,7 +316,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
183
316
  });
184
317
  };
185
318
  /**
186
- * Available without login. An OIDC token is accepted when the requester is logged in. Slots whose type requires an appointment location are only returned when lat and long are given. A repeating calendar entry yields a slot for each of its occurrences. The slots are sorted by their start.
319
+ * Available without login. An OIDC token is accepted when the requester is logged in. Slots whose type requires an appointment location are only returned when lat and long are given. A repeating calendar entry yields a slot for each of its occurrences. Slots that overlap or touch are joined into one. The slots are sorted by their start.
187
320
  * get the bookable appointment slots of a tenant overlapping a period that have not ended yet
188
321
  */
189
322
  AppointmentPortalApi.prototype.getAllAppointmentSlotsRaw = function (requestParameters, initOverrides) {
@@ -203,7 +336,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
203
336
  });
204
337
  };
205
338
  /**
206
- * Available without login. An OIDC token is accepted when the requester is logged in. Slots whose type requires an appointment location are only returned when lat and long are given. A repeating calendar entry yields a slot for each of its occurrences. The slots are sorted by their start.
339
+ * Available without login. An OIDC token is accepted when the requester is logged in. Slots whose type requires an appointment location are only returned when lat and long are given. A repeating calendar entry yields a slot for each of its occurrences. Slots that overlap or touch are joined into one. The slots are sorted by their start.
207
340
  * get the bookable appointment slots of a tenant overlapping a period that have not ended yet
208
341
  */
209
342
  AppointmentPortalApi.prototype.getAllAppointmentSlots = function (requestParameters, initOverrides) {
@@ -220,6 +353,67 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
220
353
  });
221
354
  });
222
355
  };
356
+ /**
357
+ * Creates request options for getAppointmentBookingConfig without sending the request
358
+ */
359
+ AppointmentPortalApi.prototype.getAppointmentBookingConfigRequestOpts = function (requestParameters) {
360
+ return __awaiter(this, void 0, void 0, function () {
361
+ var queryParameters, headerParameters, urlPath;
362
+ return __generator(this, function (_a) {
363
+ if (requestParameters['handle'] == null) {
364
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAppointmentBookingConfig().');
365
+ }
366
+ queryParameters = {};
367
+ headerParameters = {};
368
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointment-booking-config";
369
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
370
+ return [2 /*return*/, {
371
+ path: urlPath,
372
+ method: 'GET',
373
+ headers: headerParameters,
374
+ query: queryParameters,
375
+ }];
376
+ });
377
+ });
378
+ };
379
+ /**
380
+ * Available without login. An OIDC token is accepted when the requester is logged in; the configuration may differ between logged-in and anonymous requesters.
381
+ * get the configuration of the appointment booking wizard of a tenant
382
+ */
383
+ AppointmentPortalApi.prototype.getAppointmentBookingConfigRaw = function (requestParameters, initOverrides) {
384
+ return __awaiter(this, void 0, void 0, function () {
385
+ var requestOptions, response;
386
+ return __generator(this, function (_a) {
387
+ switch (_a.label) {
388
+ case 0: return [4 /*yield*/, this.getAppointmentBookingConfigRequestOpts(requestParameters)];
389
+ case 1:
390
+ requestOptions = _a.sent();
391
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
392
+ case 2:
393
+ response = _a.sent();
394
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentBookingConfigDto_1.AppointmentBookingConfigDtoFromJSON)(jsonValue); })];
395
+ }
396
+ });
397
+ });
398
+ };
399
+ /**
400
+ * Available without login. An OIDC token is accepted when the requester is logged in; the configuration may differ between logged-in and anonymous requesters.
401
+ * get the configuration of the appointment booking wizard of a tenant
402
+ */
403
+ AppointmentPortalApi.prototype.getAppointmentBookingConfig = function (requestParameters, initOverrides) {
404
+ return __awaiter(this, void 0, void 0, function () {
405
+ var response;
406
+ return __generator(this, function (_a) {
407
+ switch (_a.label) {
408
+ case 0: return [4 /*yield*/, this.getAppointmentBookingConfigRaw(requestParameters, initOverrides)];
409
+ case 1:
410
+ response = _a.sent();
411
+ return [4 /*yield*/, response.value()];
412
+ case 2: return [2 /*return*/, _a.sent()];
413
+ }
414
+ });
415
+ });
416
+ };
223
417
  /**
224
418
  * Creates request options for getOwnAppointment without sending the request
225
419
  */
@@ -235,6 +429,9 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
235
429
  }
236
430
  queryParameters = {};
237
431
  headerParameters = {};
432
+ if (requestParameters['xPortalSecret'] != null) {
433
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
434
+ }
238
435
  urlPath = "/ui/tenant-portal/v1/{handle}/appointments/{id}";
239
436
  urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
240
437
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
@@ -248,7 +445,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
248
445
  });
249
446
  };
250
447
  /**
251
- * read an appointment the logged-in user requested at the tenant
448
+ * read an appointment the logged-in user requested at the tenant, or the one the secret of its confirmation link grants access to
252
449
  */
253
450
  AppointmentPortalApi.prototype.getOwnAppointmentRaw = function (requestParameters, initOverrides) {
254
451
  return __awaiter(this, void 0, void 0, function () {
@@ -267,7 +464,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
267
464
  });
268
465
  };
269
466
  /**
270
- * read an appointment the logged-in user requested at the tenant
467
+ * read an appointment the logged-in user requested at the tenant, or the one the secret of its confirmation link grants access to
271
468
  */
272
469
  AppointmentPortalApi.prototype.getOwnAppointment = function (requestParameters, initOverrides) {
273
470
  return __awaiter(this, void 0, void 0, function () {
@@ -374,7 +571,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
374
571
  };
375
572
  /**
376
573
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
377
- * request an appointment for each of the time spans, at the optional address
574
+ * request one appointment for the time spans the user is available in, at the optional address
378
575
  */
379
576
  AppointmentPortalApi.prototype.submitAppointmentsRaw = function (requestParameters, initOverrides) {
380
577
  return __awaiter(this, void 0, void 0, function () {
@@ -387,14 +584,14 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
387
584
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
388
585
  case 2:
389
586
  response = _a.sent();
390
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(AppointmentPortalDto_1.AppointmentPortalDtoFromJSON); })];
587
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentPortalDto_1.AppointmentPortalDtoFromJSON)(jsonValue); })];
391
588
  }
392
589
  });
393
590
  });
394
591
  };
395
592
  /**
396
593
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
397
- * request an appointment for each of the time spans, at the optional address
594
+ * request one appointment for the time spans the user is available in, at the optional address
398
595
  */
399
596
  AppointmentPortalApi.prototype.submitAppointments = function (requestParameters, initOverrides) {
400
597
  return __awaiter(this, void 0, void 0, function () {
@@ -437,14 +634,14 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
437
634
  method: 'PUT',
438
635
  headers: headerParameters,
439
636
  query: queryParameters,
440
- body: (0, TimeSpanDto_1.TimeSpanDtoToJSON)(requestParameters['timeSpanDto']),
637
+ body: requestParameters['timeSpanDto'].map(TimeSpanDto_1.TimeSpanDtoToJSON),
441
638
  }];
442
639
  });
443
640
  });
444
641
  };
445
642
  /**
446
- * The time span has to lie within a bookable slot of the tenant that has not ended yet.
447
- * change the time span of an unconfirmed appointment the logged-in user requested at the tenant
643
+ * Every time span has to lie within a bookable slot of the tenant that has not ended yet.
644
+ * replace the time spans of a new appointment the logged-in user requested at the tenant
448
645
  */
449
646
  AppointmentPortalApi.prototype.updateOwnAppointmentRaw = function (requestParameters, initOverrides) {
450
647
  return __awaiter(this, void 0, void 0, function () {
@@ -463,8 +660,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
463
660
  });
464
661
  };
465
662
  /**
466
- * The time span has to lie within a bookable slot of the tenant that has not ended yet.
467
- * change the time span of an unconfirmed appointment the logged-in user requested at the tenant
663
+ * Every time span has to lie within a bookable slot of the tenant that has not ended yet.
664
+ * replace the time spans of a new appointment the logged-in user requested at the tenant
468
665
  */
469
666
  AppointmentPortalApi.prototype.updateOwnAppointment = function (requestParameters, initOverrides) {
470
667
  return __awaiter(this, void 0, void 0, function () {
@@ -88,7 +88,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
88
88
  queryParameters = {};
89
89
  headerParameters = {};
90
90
  headerParameters['Content-Type'] = 'application/json';
91
- urlPath = "/ui/appointment-users/v1";
91
+ urlPath = "/ui/appointments/v1/users";
92
92
  return [2 /*return*/, {
93
93
  path: urlPath,
94
94
  method: 'POST',
@@ -147,7 +147,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
147
147
  }
148
148
  queryParameters = {};
149
149
  headerParameters = {};
150
- urlPath = "/ui/appointment-users/v1/{id}";
150
+ urlPath = "/ui/appointments/v1/users/{id}";
151
151
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
152
152
  return [2 /*return*/, {
153
153
  path: urlPath,
@@ -210,7 +210,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
210
210
  queryParameters['filter'] = requestParameters['filter'];
211
211
  }
212
212
  headerParameters = {};
213
- urlPath = "/ui/appointment-users/v1";
213
+ urlPath = "/ui/appointments/v1/users";
214
214
  return [2 /*return*/, {
215
215
  path: urlPath,
216
216
  method: 'GET',
@@ -268,7 +268,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
268
268
  }
269
269
  queryParameters = {};
270
270
  headerParameters = {};
271
- urlPath = "/ui/appointment-users/v1/{id}";
271
+ urlPath = "/ui/appointments/v1/users/{id}";
272
272
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
273
273
  return [2 /*return*/, {
274
274
  path: urlPath,
@@ -334,7 +334,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
334
334
  }
335
335
  headerParameters = {};
336
336
  headerParameters['Content-Type'] = 'application/json';
337
- urlPath = "/ui/appointment-users/v1/{id}";
337
+ urlPath = "/ui/appointments/v1/users/{id}";
338
338
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
339
339
  return [2 /*return*/, {
340
340
  path: urlPath,
@@ -9,14 +9,23 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import * as runtime from '../runtime';
12
+ import { type AppointmentBlockerDto } from '../models/AppointmentBlockerDto';
12
13
  import { type AppointmentDto } from '../models/AppointmentDto';
14
+ import { type CalendarEntryDto } from '../models/CalendarEntryDto';
13
15
  import { type GetAllAppointments200Response } from '../models/GetAllAppointments200Response';
16
+ import { type JobDto } from '../models/JobDto';
14
17
  import { type KommerzPageable } from '../models/KommerzPageable';
15
18
  export interface CreateAppointmentRequest {
16
19
  /**
17
20
  *
18
21
  */
19
- appointmentDto: Omit<AppointmentDto, 'appointmentUserName' | 'calendarEntryId'>;
22
+ appointmentDto: Omit<AppointmentDto, 'products' | 'legalEntityUserName' | 'calendarEntryId' | 'formTypeId'>;
23
+ }
24
+ export interface CreateAppointmentBlockerRequest {
25
+ /**
26
+ *
27
+ */
28
+ appointmentBlockerDto: AppointmentBlockerDto;
20
29
  }
21
30
  export interface DeleteAppointmentRequest {
22
31
  /**
@@ -40,6 +49,16 @@ export interface GetAppointmentRequest {
40
49
  */
41
50
  id: string;
42
51
  }
52
+ export interface GetAppointmentItineraryEntriesRequest {
53
+ /**
54
+ * inclusive start of the period
55
+ */
56
+ from: Date;
57
+ /**
58
+ * exclusive end of the period
59
+ */
60
+ to: Date;
61
+ }
43
62
  export interface UpdateAppointmentRequest {
44
63
  /**
45
64
  * id of entity
@@ -48,7 +67,7 @@ export interface UpdateAppointmentRequest {
48
67
  /**
49
68
  *
50
69
  */
51
- appointmentDto: Omit<AppointmentDto, 'appointmentUserName' | 'calendarEntryId'>;
70
+ appointmentDto: Omit<AppointmentDto, 'products' | 'legalEntityUserName' | 'calendarEntryId' | 'formTypeId'>;
52
71
  /**
53
72
  * whether to force update the entity
54
73
  */
@@ -70,6 +89,20 @@ export declare class AppointmentsApi extends runtime.BaseAPI {
70
89
  * create an appointment of the logged-in user
71
90
  */
72
91
  createAppointment(requestParameters: CreateAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentDto>;
92
+ /**
93
+ * Creates request options for createAppointmentBlocker without sending the request
94
+ */
95
+ createAppointmentBlockerRequestOpts(requestParameters: CreateAppointmentBlockerRequest): Promise<runtime.RequestOpts>;
96
+ /**
97
+ * Creates a calendar entry of the managed appointment calendar entry type the routing configuration names. The planner treats it as a blocker and plans no appointment into its time span. Its attendees are not invited.
98
+ * block time of a user for appointment planning
99
+ */
100
+ createAppointmentBlockerRaw(requestParameters: CreateAppointmentBlockerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEntryDto>>;
101
+ /**
102
+ * Creates a calendar entry of the managed appointment calendar entry type the routing configuration names. The planner treats it as a blocker and plans no appointment into its time span. Its attendees are not invited.
103
+ * block time of a user for appointment planning
104
+ */
105
+ createAppointmentBlocker(requestParameters: CreateAppointmentBlockerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEntryDto>;
73
106
  /**
74
107
  * Creates request options for deleteAppointment without sending the request
75
108
  */
@@ -106,6 +139,34 @@ export declare class AppointmentsApi extends runtime.BaseAPI {
106
139
  * read one appointment
107
140
  */
108
141
  getAppointment(requestParameters: GetAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentDto>;
142
+ /**
143
+ * Creates request options for getAppointmentItineraryEntries without sending the request
144
+ */
145
+ getAppointmentItineraryEntriesRequestOpts(requestParameters: GetAppointmentItineraryEntriesRequest): Promise<runtime.RequestOpts>;
146
+ /**
147
+ * Returns the occurrences of the calendar entries of the managed appointment type the routing configuration names, every repeating entry expanded. The list is empty while the routing configuration names no type or the type does not exist yet.
148
+ * get the entries of the managed appointment calendar entry type overlapping a period
149
+ */
150
+ getAppointmentItineraryEntriesRaw(requestParameters: GetAppointmentItineraryEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CalendarEntryDto>>>;
151
+ /**
152
+ * Returns the occurrences of the calendar entries of the managed appointment type the routing configuration names, every repeating entry expanded. The list is empty while the routing configuration names no type or the type does not exist yet.
153
+ * get the entries of the managed appointment calendar entry type overlapping a period
154
+ */
155
+ getAppointmentItineraryEntries(requestParameters: GetAppointmentItineraryEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CalendarEntryDto>>;
156
+ /**
157
+ * Creates request options for startAppointmentPlanningJob without sending the request
158
+ */
159
+ startAppointmentPlanningJobRequestOpts(): Promise<runtime.RequestOpts>;
160
+ /**
161
+ * Enqueues a route planning job for the tenant, which plans its open appointments with the routing configuration. A job that starts while another job of the tenant is planning is cancelled. The job stores its RoutePlanningResultDto as data once it succeeded.
162
+ * start route planning
163
+ */
164
+ startAppointmentPlanningJobRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>>;
165
+ /**
166
+ * Enqueues a route planning job for the tenant, which plans its open appointments with the routing configuration. A job that starts while another job of the tenant is planning is cancelled. The job stores its RoutePlanningResultDto as data once it succeeded.
167
+ * start route planning
168
+ */
169
+ startAppointmentPlanningJob(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto>;
109
170
  /**
110
171
  * Creates request options for updateAppointment without sending the request
111
172
  */