@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.
- package/dist/apis/AcceptancePortalDocumentsApi.d.ts +6 -6
- package/dist/apis/AcceptancePortalDocumentsApi.js +12 -12
- package/dist/apis/AppointmentPortalApi.d.ts +95 -15
- package/dist/apis/AppointmentPortalApi.js +212 -15
- package/dist/apis/AppointmentUsersApi.js +5 -5
- package/dist/apis/AppointmentsApi.d.ts +63 -2
- package/dist/apis/AppointmentsApi.js +196 -5
- package/dist/apis/BankingAccountsApi.js +1 -1
- package/dist/apis/BankingRegistrationsApi.js +1 -1
- package/dist/apis/CustomersApi.d.ts +0 -4
- package/dist/apis/CustomersApi.js +0 -3
- package/dist/apis/FileDirectorySharesApi.d.ts +4 -4
- package/dist/apis/FileDirectorySharesApi.js +8 -8
- package/dist/apis/FormsPortalApi.d.ts +6 -4
- package/dist/apis/FormsPortalApi.js +10 -8
- package/dist/apis/InvoicePortalApi.d.ts +2 -2
- package/dist/apis/InvoicePortalApi.js +4 -4
- package/dist/apis/LegalEntityUsersApi.d.ts +121 -0
- package/dist/apis/LegalEntityUsersApi.js +387 -0
- package/dist/apis/MapsApi.d.ts +43 -0
- package/dist/apis/MapsApi.js +127 -0
- package/dist/apis/NotificationTargetsApi.js +1 -1
- package/dist/apis/NotificationsAcksApi.js +2 -2
- package/dist/apis/NotificationsApi.js +3 -3
- package/dist/apis/PresenceEntriesApi.js +1 -1
- package/dist/apis/TenantPortalUploadsApi.d.ts +166 -0
- package/dist/apis/TenantPortalUploadsApi.js +418 -0
- package/dist/apis/TimeTrackingCalendarApi.js +2 -2
- package/dist/apis/TimeTrackingCalendarExportApi.js +1 -1
- package/dist/apis/UsersMeApi.d.ts +58 -9
- package/dist/apis/UsersMeApi.js +103 -14
- package/dist/apis/UsersMeBookmarksApi.d.ts +99 -0
- package/dist/apis/UsersMeBookmarksApi.js +324 -0
- package/dist/apis/index.d.ts +3 -2
- package/dist/apis/index.js +3 -2
- package/dist/models/AccountCalendarEntryDto.d.ts +6 -1
- package/dist/models/AccountCalendarEntryDto.js +3 -0
- package/dist/models/AccountCalendarEntryRsvpDto.d.ts +33 -0
- package/dist/models/AccountCalendarEntryRsvpDto.js +54 -0
- package/dist/models/AddressDto.d.ts +4 -0
- package/dist/models/AddressDto.js +2 -0
- package/dist/models/AppointmentBlockerDto.d.ts +59 -0
- package/dist/models/AppointmentBlockerDto.js +70 -0
- package/dist/models/AppointmentBookingConfigDto.d.ts +66 -0
- package/dist/models/AppointmentBookingConfigDto.js +71 -0
- package/dist/models/AppointmentDto.d.ts +30 -8
- package/dist/models/AppointmentDto.js +16 -6
- package/dist/models/AppointmentEmailTemplateDto.d.ts +33 -0
- package/dist/models/AppointmentEmailTemplateDto.js +50 -0
- package/dist/models/AppointmentEmailTemplatesDto.d.ts +58 -0
- package/dist/models/AppointmentEmailTemplatesDto.js +63 -0
- package/dist/models/AppointmentPortalDto.d.ts +8 -2
- package/dist/models/AppointmentPortalDto.js +6 -2
- package/dist/models/AppointmentProductDto.d.ts +45 -0
- package/dist/models/AppointmentProductDto.js +59 -0
- package/dist/models/AppointmentProductSelectionDto.d.ts +33 -0
- package/dist/models/AppointmentProductSelectionDto.js +54 -0
- package/dist/models/AppointmentSlotDistance.d.ts +3 -1
- package/dist/models/AppointmentSlotDistance.js +3 -1
- package/dist/models/AppointmentSlotDto.d.ts +5 -1
- package/dist/models/AppointmentSlotDto.js +4 -0
- package/dist/models/AppointmentStatus.d.ts +9 -3
- package/dist/models/AppointmentStatus.js +9 -3
- package/dist/models/AppointmentSubmissionDto.d.ts +15 -2
- package/dist/models/AppointmentSubmissionDto.js +7 -0
- package/dist/models/AppointmentTimeSpanDto.d.ts +39 -0
- package/dist/models/AppointmentTimeSpanDto.js +58 -0
- package/dist/models/AppointmentTimeSpanStatus.d.ts +35 -0
- package/dist/models/AppointmentTimeSpanStatus.js +61 -0
- package/dist/models/AttendedCalendarEntryDto.d.ts +10 -2
- package/dist/models/AttendedCalendarEntryDto.js +4 -0
- package/dist/models/BookmarkDto.d.ts +50 -0
- package/dist/models/BookmarkDto.js +60 -0
- package/dist/models/CalendarEntryTypeDto.d.ts +4 -0
- package/dist/models/CalendarEntryTypeDto.js +2 -0
- package/dist/models/CalendarPortalEventDto.d.ts +4 -0
- package/dist/models/CalendarPortalEventDto.js +4 -0
- package/dist/models/DavAddressBookDto.d.ts +29 -0
- package/dist/models/DavAddressBookDto.js +50 -0
- package/dist/models/DavCalendarDto.d.ts +1 -1
- package/dist/models/DavResourceDto.d.ts +45 -0
- package/dist/models/DavResourceDto.js +64 -0
- package/dist/models/DavResourceWriteDto.d.ts +29 -0
- package/dist/models/DavResourceWriteDto.js +50 -0
- package/dist/models/EntityType.d.ts +3 -1
- package/dist/models/EntityType.js +3 -1
- package/dist/models/FormsPortalFileUploadDto.d.ts +37 -0
- package/dist/models/FormsPortalFileUploadDto.js +54 -0
- package/dist/models/FormsPortalLegalEntityUserRequestDto.d.ts +29 -0
- package/dist/models/FormsPortalLegalEntityUserRequestDto.js +50 -0
- package/dist/models/FormsPortalSpecDto.d.ts +5 -0
- package/dist/models/FormsPortalSpecDto.js +5 -0
- package/dist/models/FormsPortalSubmissionDto.d.ts +29 -0
- package/dist/models/FormsPortalSubmissionDto.js +50 -0
- package/dist/models/FormsPortalSubmitDto.d.ts +4 -0
- package/dist/models/FormsPortalSubmitDto.js +2 -0
- package/dist/models/GeoLocationDto.d.ts +42 -0
- package/dist/models/GeoLocationDto.js +55 -0
- package/dist/models/GetAllLegalEntityUsers200Response.d.ts +42 -0
- package/dist/models/GetAllLegalEntityUsers200Response.js +59 -0
- package/dist/models/GetMyAppointments200Response.d.ts +42 -0
- package/dist/models/GetMyAppointments200Response.js +59 -0
- package/dist/models/GetMyBookmarks200Response.d.ts +42 -0
- package/dist/models/GetMyBookmarks200Response.js +59 -0
- package/dist/models/KanbanBoardDto.d.ts +12 -0
- package/dist/models/KanbanBoardDto.js +6 -0
- package/dist/models/LegalEntityUserDto.d.ts +71 -0
- package/dist/models/LegalEntityUserDto.js +63 -0
- package/dist/models/LocationGeocodeQueryDto.d.ts +29 -0
- package/dist/models/LocationGeocodeQueryDto.js +50 -0
- package/dist/models/Permissions.d.ts +5 -4
- package/dist/models/Permissions.js +5 -4
- package/dist/models/PublicTenantPageDto.d.ts +4 -0
- package/dist/models/PublicTenantPageDto.js +4 -0
- package/dist/models/RoutePlanningAppointmentResultDto.d.ts +47 -0
- package/dist/models/RoutePlanningAppointmentResultDto.js +62 -0
- package/dist/models/RoutePlanningOutcome.d.ts +35 -0
- package/dist/models/RoutePlanningOutcome.js +61 -0
- package/dist/models/RoutePlanningResultDto.d.ts +38 -0
- package/dist/models/RoutePlanningResultDto.js +57 -0
- package/dist/models/RoutingConfigDto.d.ts +82 -13
- package/dist/models/RoutingConfigDto.js +51 -12
- package/dist/models/TenantConfigurationDto.d.ts +4 -0
- package/dist/models/TenantConfigurationDto.js +2 -0
- package/dist/models/UiConfigurationDto.d.ts +9 -0
- package/dist/models/UiConfigurationDto.js +5 -0
- package/dist/models/UiModuleCategory.d.ts +29 -0
- package/dist/models/UiModuleCategory.js +55 -0
- package/dist/models/UserDto.d.ts +5 -1
- package/dist/models/UserDto.js +1 -0
- package/dist/models/index.d.ts +24 -5
- package/dist/models/index.js +24 -5
- 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
|
-
*
|
|
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
|
-
*
|
|
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}/
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
637
|
+
body: requestParameters['timeSpanDto'].map(TimeSpanDto_1.TimeSpanDtoToJSON),
|
|
441
638
|
}];
|
|
442
639
|
});
|
|
443
640
|
});
|
|
444
641
|
};
|
|
445
642
|
/**
|
|
446
|
-
*
|
|
447
|
-
*
|
|
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
|
-
*
|
|
467
|
-
*
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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, '
|
|
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, '
|
|
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
|
*/
|