@kommerz/ts-client 1.191.0 → 1.192.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.
@@ -9,8 +9,20 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import * as runtime from '../runtime';
12
+ import { type AppointmentPortalDto } from '../models/AppointmentPortalDto';
12
13
  import { type GetAllAppointmentSlots200Response } from '../models/GetAllAppointmentSlots200Response';
13
14
  import { type KommerzPageable } from '../models/KommerzPageable';
15
+ import { type TimeSpanDto } from '../models/TimeSpanDto';
16
+ export interface DeleteOwnAppointmentRequest {
17
+ /**
18
+ * handle of the tenant, compared case-insensitively
19
+ */
20
+ handle: string;
21
+ /**
22
+ * id of entity
23
+ */
24
+ id: string;
25
+ }
14
26
  export interface GetAllAppointmentSlotsRequest {
15
27
  /**
16
28
  * handle of the tenant, compared case-insensitively
@@ -33,10 +45,62 @@ export interface GetAllAppointmentSlotsRequest {
33
45
  */
34
46
  _long?: number;
35
47
  }
48
+ export interface GetOwnAppointmentRequest {
49
+ /**
50
+ * handle of the tenant, compared case-insensitively
51
+ */
52
+ handle: string;
53
+ /**
54
+ * id of entity
55
+ */
56
+ id: string;
57
+ }
58
+ export interface GetOwnAppointmentsRequest {
59
+ /**
60
+ * handle of the tenant, compared case-insensitively
61
+ */
62
+ handle: string;
63
+ }
64
+ export interface SubmitAppointmentsRequest {
65
+ /**
66
+ * handle of the tenant, compared case-insensitively
67
+ */
68
+ handle: string;
69
+ /**
70
+ *
71
+ */
72
+ timeSpanDto: Array<TimeSpanDto>;
73
+ }
74
+ export interface UpdateOwnAppointmentRequest {
75
+ /**
76
+ * handle of the tenant, compared case-insensitively
77
+ */
78
+ handle: string;
79
+ /**
80
+ * id of entity
81
+ */
82
+ id: string;
83
+ /**
84
+ *
85
+ */
86
+ timeSpanDto: TimeSpanDto;
87
+ }
36
88
  /**
37
89
  *
38
90
  */
39
91
  export declare class AppointmentPortalApi extends runtime.BaseAPI {
92
+ /**
93
+ * Creates request options for deleteOwnAppointment without sending the request
94
+ */
95
+ deleteOwnAppointmentRequestOpts(requestParameters: DeleteOwnAppointmentRequest): Promise<runtime.RequestOpts>;
96
+ /**
97
+ * withdraw an unconfirmed appointment the logged-in user requested at the tenant
98
+ */
99
+ deleteOwnAppointmentRaw(requestParameters: DeleteOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
100
+ /**
101
+ * withdraw an unconfirmed appointment the logged-in user requested at the tenant
102
+ */
103
+ deleteOwnAppointment(requestParameters: DeleteOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
40
104
  /**
41
105
  * Creates request options for getAllAppointmentSlots without sending the request
42
106
  */
@@ -51,4 +115,58 @@ export declare class AppointmentPortalApi extends runtime.BaseAPI {
51
115
  * get the bookable appointment slots of a tenant that have not ended yet
52
116
  */
53
117
  getAllAppointmentSlots(requestParameters: GetAllAppointmentSlotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAppointmentSlots200Response>;
118
+ /**
119
+ * Creates request options for getOwnAppointment without sending the request
120
+ */
121
+ getOwnAppointmentRequestOpts(requestParameters: GetOwnAppointmentRequest): Promise<runtime.RequestOpts>;
122
+ /**
123
+ * read an appointment the logged-in user requested at the tenant
124
+ */
125
+ getOwnAppointmentRaw(requestParameters: GetOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentPortalDto>>;
126
+ /**
127
+ * read an appointment the logged-in user requested at the tenant
128
+ */
129
+ getOwnAppointment(requestParameters: GetOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentPortalDto>;
130
+ /**
131
+ * Creates request options for getOwnAppointments without sending the request
132
+ */
133
+ getOwnAppointmentsRequestOpts(requestParameters: GetOwnAppointmentsRequest): Promise<runtime.RequestOpts>;
134
+ /**
135
+ * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant.
136
+ * get the appointments the logged-in user requested at the tenant
137
+ */
138
+ getOwnAppointmentsRaw(requestParameters: GetOwnAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AppointmentPortalDto>>>;
139
+ /**
140
+ * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant.
141
+ * get the appointments the logged-in user requested at the tenant
142
+ */
143
+ getOwnAppointments(requestParameters: GetOwnAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppointmentPortalDto>>;
144
+ /**
145
+ * Creates request options for submitAppointments without sending the request
146
+ */
147
+ submitAppointmentsRequestOpts(requestParameters: SubmitAppointmentsRequest): Promise<runtime.RequestOpts>;
148
+ /**
149
+ * 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.
150
+ * request an appointment for each of the time spans
151
+ */
152
+ submitAppointmentsRaw(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AppointmentPortalDto>>>;
153
+ /**
154
+ * 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.
155
+ * request an appointment for each of the time spans
156
+ */
157
+ submitAppointments(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppointmentPortalDto>>;
158
+ /**
159
+ * Creates request options for updateOwnAppointment without sending the request
160
+ */
161
+ updateOwnAppointmentRequestOpts(requestParameters: UpdateOwnAppointmentRequest): Promise<runtime.RequestOpts>;
162
+ /**
163
+ * The time span has to lie within a bookable slot of the tenant that has not ended yet.
164
+ * change the time span of an unconfirmed appointment the logged-in user requested at the tenant
165
+ */
166
+ updateOwnAppointmentRaw(requestParameters: UpdateOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentPortalDto>>;
167
+ /**
168
+ * The time span has to lie within a bookable slot of the tenant that has not ended yet.
169
+ * change the time span of an unconfirmed appointment the logged-in user requested at the tenant
170
+ */
171
+ updateOwnAppointment(requestParameters: UpdateOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentPortalDto>;
54
172
  }
@@ -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 AppointmentPortalDto_1 = require("../models/AppointmentPortalDto");
68
69
  var GetAllAppointmentSlots200Response_1 = require("../models/GetAllAppointmentSlots200Response");
70
+ var TimeSpanDto_1 = require("../models/TimeSpanDto");
69
71
  /**
70
72
  *
71
73
  */
@@ -74,6 +76,67 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
74
76
  function AppointmentPortalApi() {
75
77
  return _super !== null && _super.apply(this, arguments) || this;
76
78
  }
79
+ /**
80
+ * Creates request options for deleteOwnAppointment without sending the request
81
+ */
82
+ AppointmentPortalApi.prototype.deleteOwnAppointmentRequestOpts = function (requestParameters) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, urlPath;
85
+ return __generator(this, function (_a) {
86
+ if (requestParameters['handle'] == null) {
87
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling deleteOwnAppointment().');
88
+ }
89
+ if (requestParameters['id'] == null) {
90
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteOwnAppointment().');
91
+ }
92
+ queryParameters = {};
93
+ headerParameters = {};
94
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointments/{id}";
95
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
96
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
97
+ return [2 /*return*/, {
98
+ path: urlPath,
99
+ method: 'DELETE',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ }];
103
+ });
104
+ });
105
+ };
106
+ /**
107
+ * withdraw an unconfirmed appointment the logged-in user requested at the tenant
108
+ */
109
+ AppointmentPortalApi.prototype.deleteOwnAppointmentRaw = function (requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function () {
111
+ var requestOptions, response;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0: return [4 /*yield*/, this.deleteOwnAppointmentRequestOpts(requestParameters)];
115
+ case 1:
116
+ requestOptions = _a.sent();
117
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
118
+ case 2:
119
+ response = _a.sent();
120
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
121
+ }
122
+ });
123
+ });
124
+ };
125
+ /**
126
+ * withdraw an unconfirmed appointment the logged-in user requested at the tenant
127
+ */
128
+ AppointmentPortalApi.prototype.deleteOwnAppointment = function (requestParameters, initOverrides) {
129
+ return __awaiter(this, void 0, void 0, function () {
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0: return [4 /*yield*/, this.deleteOwnAppointmentRaw(requestParameters, initOverrides)];
133
+ case 1:
134
+ _a.sent();
135
+ return [2 /*return*/];
136
+ }
137
+ });
138
+ });
139
+ };
77
140
  /**
78
141
  * Creates request options for getAllAppointmentSlots without sending the request
79
142
  */
@@ -150,6 +213,266 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
150
213
  });
151
214
  });
152
215
  };
216
+ /**
217
+ * Creates request options for getOwnAppointment without sending the request
218
+ */
219
+ AppointmentPortalApi.prototype.getOwnAppointmentRequestOpts = function (requestParameters) {
220
+ return __awaiter(this, void 0, void 0, function () {
221
+ var queryParameters, headerParameters, urlPath;
222
+ return __generator(this, function (_a) {
223
+ if (requestParameters['handle'] == null) {
224
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getOwnAppointment().');
225
+ }
226
+ if (requestParameters['id'] == null) {
227
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getOwnAppointment().');
228
+ }
229
+ queryParameters = {};
230
+ headerParameters = {};
231
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointments/{id}";
232
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
233
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
234
+ return [2 /*return*/, {
235
+ path: urlPath,
236
+ method: 'GET',
237
+ headers: headerParameters,
238
+ query: queryParameters,
239
+ }];
240
+ });
241
+ });
242
+ };
243
+ /**
244
+ * read an appointment the logged-in user requested at the tenant
245
+ */
246
+ AppointmentPortalApi.prototype.getOwnAppointmentRaw = function (requestParameters, initOverrides) {
247
+ return __awaiter(this, void 0, void 0, function () {
248
+ var requestOptions, response;
249
+ return __generator(this, function (_a) {
250
+ switch (_a.label) {
251
+ case 0: return [4 /*yield*/, this.getOwnAppointmentRequestOpts(requestParameters)];
252
+ case 1:
253
+ requestOptions = _a.sent();
254
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
255
+ case 2:
256
+ response = _a.sent();
257
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentPortalDto_1.AppointmentPortalDtoFromJSON)(jsonValue); })];
258
+ }
259
+ });
260
+ });
261
+ };
262
+ /**
263
+ * read an appointment the logged-in user requested at the tenant
264
+ */
265
+ AppointmentPortalApi.prototype.getOwnAppointment = function (requestParameters, initOverrides) {
266
+ return __awaiter(this, void 0, void 0, function () {
267
+ var response;
268
+ return __generator(this, function (_a) {
269
+ switch (_a.label) {
270
+ case 0: return [4 /*yield*/, this.getOwnAppointmentRaw(requestParameters, initOverrides)];
271
+ case 1:
272
+ response = _a.sent();
273
+ return [4 /*yield*/, response.value()];
274
+ case 2: return [2 /*return*/, _a.sent()];
275
+ }
276
+ });
277
+ });
278
+ };
279
+ /**
280
+ * Creates request options for getOwnAppointments without sending the request
281
+ */
282
+ AppointmentPortalApi.prototype.getOwnAppointmentsRequestOpts = function (requestParameters) {
283
+ return __awaiter(this, void 0, void 0, function () {
284
+ var queryParameters, headerParameters, urlPath;
285
+ return __generator(this, function (_a) {
286
+ if (requestParameters['handle'] == null) {
287
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getOwnAppointments().');
288
+ }
289
+ queryParameters = {};
290
+ headerParameters = {};
291
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointments";
292
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
293
+ return [2 /*return*/, {
294
+ path: urlPath,
295
+ method: 'GET',
296
+ headers: headerParameters,
297
+ query: queryParameters,
298
+ }];
299
+ });
300
+ });
301
+ };
302
+ /**
303
+ * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant.
304
+ * get the appointments the logged-in user requested at the tenant
305
+ */
306
+ AppointmentPortalApi.prototype.getOwnAppointmentsRaw = function (requestParameters, initOverrides) {
307
+ return __awaiter(this, void 0, void 0, function () {
308
+ var requestOptions, response;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0: return [4 /*yield*/, this.getOwnAppointmentsRequestOpts(requestParameters)];
312
+ case 1:
313
+ requestOptions = _a.sent();
314
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
315
+ case 2:
316
+ response = _a.sent();
317
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(AppointmentPortalDto_1.AppointmentPortalDtoFromJSON); })];
318
+ }
319
+ });
320
+ });
321
+ };
322
+ /**
323
+ * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant.
324
+ * get the appointments the logged-in user requested at the tenant
325
+ */
326
+ AppointmentPortalApi.prototype.getOwnAppointments = function (requestParameters, initOverrides) {
327
+ return __awaiter(this, void 0, void 0, function () {
328
+ var response;
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
331
+ case 0: return [4 /*yield*/, this.getOwnAppointmentsRaw(requestParameters, initOverrides)];
332
+ case 1:
333
+ response = _a.sent();
334
+ return [4 /*yield*/, response.value()];
335
+ case 2: return [2 /*return*/, _a.sent()];
336
+ }
337
+ });
338
+ });
339
+ };
340
+ /**
341
+ * Creates request options for submitAppointments without sending the request
342
+ */
343
+ AppointmentPortalApi.prototype.submitAppointmentsRequestOpts = function (requestParameters) {
344
+ return __awaiter(this, void 0, void 0, function () {
345
+ var queryParameters, headerParameters, urlPath;
346
+ return __generator(this, function (_a) {
347
+ if (requestParameters['handle'] == null) {
348
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling submitAppointments().');
349
+ }
350
+ if (requestParameters['timeSpanDto'] == null) {
351
+ throw new runtime.RequiredError('timeSpanDto', 'Required parameter "timeSpanDto" was null or undefined when calling submitAppointments().');
352
+ }
353
+ queryParameters = {};
354
+ headerParameters = {};
355
+ headerParameters['Content-Type'] = 'application/json';
356
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointments";
357
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
358
+ return [2 /*return*/, {
359
+ path: urlPath,
360
+ method: 'POST',
361
+ headers: headerParameters,
362
+ query: queryParameters,
363
+ body: requestParameters['timeSpanDto'].map(TimeSpanDto_1.TimeSpanDtoToJSON),
364
+ }];
365
+ });
366
+ });
367
+ };
368
+ /**
369
+ * 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.
370
+ * request an appointment for each of the time spans
371
+ */
372
+ AppointmentPortalApi.prototype.submitAppointmentsRaw = function (requestParameters, initOverrides) {
373
+ return __awaiter(this, void 0, void 0, function () {
374
+ var requestOptions, response;
375
+ return __generator(this, function (_a) {
376
+ switch (_a.label) {
377
+ case 0: return [4 /*yield*/, this.submitAppointmentsRequestOpts(requestParameters)];
378
+ case 1:
379
+ requestOptions = _a.sent();
380
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
381
+ case 2:
382
+ response = _a.sent();
383
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(AppointmentPortalDto_1.AppointmentPortalDtoFromJSON); })];
384
+ }
385
+ });
386
+ });
387
+ };
388
+ /**
389
+ * 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.
390
+ * request an appointment for each of the time spans
391
+ */
392
+ AppointmentPortalApi.prototype.submitAppointments = function (requestParameters, initOverrides) {
393
+ return __awaiter(this, void 0, void 0, function () {
394
+ var response;
395
+ return __generator(this, function (_a) {
396
+ switch (_a.label) {
397
+ case 0: return [4 /*yield*/, this.submitAppointmentsRaw(requestParameters, initOverrides)];
398
+ case 1:
399
+ response = _a.sent();
400
+ return [4 /*yield*/, response.value()];
401
+ case 2: return [2 /*return*/, _a.sent()];
402
+ }
403
+ });
404
+ });
405
+ };
406
+ /**
407
+ * Creates request options for updateOwnAppointment without sending the request
408
+ */
409
+ AppointmentPortalApi.prototype.updateOwnAppointmentRequestOpts = function (requestParameters) {
410
+ return __awaiter(this, void 0, void 0, function () {
411
+ var queryParameters, headerParameters, urlPath;
412
+ return __generator(this, function (_a) {
413
+ if (requestParameters['handle'] == null) {
414
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling updateOwnAppointment().');
415
+ }
416
+ if (requestParameters['id'] == null) {
417
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateOwnAppointment().');
418
+ }
419
+ if (requestParameters['timeSpanDto'] == null) {
420
+ throw new runtime.RequiredError('timeSpanDto', 'Required parameter "timeSpanDto" was null or undefined when calling updateOwnAppointment().');
421
+ }
422
+ queryParameters = {};
423
+ headerParameters = {};
424
+ headerParameters['Content-Type'] = 'application/json';
425
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointments/{id}";
426
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
427
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
428
+ return [2 /*return*/, {
429
+ path: urlPath,
430
+ method: 'PUT',
431
+ headers: headerParameters,
432
+ query: queryParameters,
433
+ body: (0, TimeSpanDto_1.TimeSpanDtoToJSON)(requestParameters['timeSpanDto']),
434
+ }];
435
+ });
436
+ });
437
+ };
438
+ /**
439
+ * The time span has to lie within a bookable slot of the tenant that has not ended yet.
440
+ * change the time span of an unconfirmed appointment the logged-in user requested at the tenant
441
+ */
442
+ AppointmentPortalApi.prototype.updateOwnAppointmentRaw = function (requestParameters, initOverrides) {
443
+ return __awaiter(this, void 0, void 0, function () {
444
+ var requestOptions, response;
445
+ return __generator(this, function (_a) {
446
+ switch (_a.label) {
447
+ case 0: return [4 /*yield*/, this.updateOwnAppointmentRequestOpts(requestParameters)];
448
+ case 1:
449
+ requestOptions = _a.sent();
450
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
451
+ case 2:
452
+ response = _a.sent();
453
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentPortalDto_1.AppointmentPortalDtoFromJSON)(jsonValue); })];
454
+ }
455
+ });
456
+ });
457
+ };
458
+ /**
459
+ * The time span has to lie within a bookable slot of the tenant that has not ended yet.
460
+ * change the time span of an unconfirmed appointment the logged-in user requested at the tenant
461
+ */
462
+ AppointmentPortalApi.prototype.updateOwnAppointment = function (requestParameters, initOverrides) {
463
+ return __awaiter(this, void 0, void 0, function () {
464
+ var response;
465
+ return __generator(this, function (_a) {
466
+ switch (_a.label) {
467
+ case 0: return [4 /*yield*/, this.updateOwnAppointmentRaw(requestParameters, initOverrides)];
468
+ case 1:
469
+ response = _a.sent();
470
+ return [4 /*yield*/, response.value()];
471
+ case 2: return [2 /*return*/, _a.sent()];
472
+ }
473
+ });
474
+ });
475
+ };
153
476
  return AppointmentPortalApi;
154
477
  }(runtime.BaseAPI));
155
478
  exports.AppointmentPortalApi = AppointmentPortalApi;
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Kommerz API Specification
3
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
4
+ *
5
+ * Contact: info@kommerz.app
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import * as runtime from '../runtime';
12
+ import { type AppointmentDto } from '../models/AppointmentDto';
13
+ import { type GetAllAppointments200Response } from '../models/GetAllAppointments200Response';
14
+ import { type KommerzPageable } from '../models/KommerzPageable';
15
+ export interface CreateAppointmentRequest {
16
+ /**
17
+ *
18
+ */
19
+ appointmentDto: Omit<AppointmentDto, 'userId' | 'userName'>;
20
+ }
21
+ export interface DeleteAppointmentRequest {
22
+ /**
23
+ * id of entity
24
+ */
25
+ id: string;
26
+ }
27
+ export interface GetAllAppointmentsRequest {
28
+ /**
29
+ * Pageable query parameters
30
+ */
31
+ pageable: KommerzPageable;
32
+ /**
33
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
34
+ */
35
+ filter?: Array<string>;
36
+ }
37
+ export interface GetAppointmentRequest {
38
+ /**
39
+ * id of entity
40
+ */
41
+ id: string;
42
+ }
43
+ export interface UpdateAppointmentRequest {
44
+ /**
45
+ * id of entity
46
+ */
47
+ id: string;
48
+ /**
49
+ *
50
+ */
51
+ appointmentDto: Omit<AppointmentDto, 'userId' | 'userName'>;
52
+ /**
53
+ * whether to force update the entity
54
+ */
55
+ force?: boolean;
56
+ }
57
+ /**
58
+ *
59
+ */
60
+ export declare class AppointmentsApi extends runtime.BaseAPI {
61
+ /**
62
+ * Creates request options for createAppointment without sending the request
63
+ */
64
+ createAppointmentRequestOpts(requestParameters: CreateAppointmentRequest): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * create an appointment of the logged-in user
67
+ */
68
+ createAppointmentRaw(requestParameters: CreateAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentDto>>;
69
+ /**
70
+ * create an appointment of the logged-in user
71
+ */
72
+ createAppointment(requestParameters: CreateAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentDto>;
73
+ /**
74
+ * Creates request options for deleteAppointment without sending the request
75
+ */
76
+ deleteAppointmentRequestOpts(requestParameters: DeleteAppointmentRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * delete an appointment
79
+ */
80
+ deleteAppointmentRaw(requestParameters: DeleteAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
81
+ /**
82
+ * delete an appointment
83
+ */
84
+ deleteAppointment(requestParameters: DeleteAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
+ /**
86
+ * Creates request options for getAllAppointments without sending the request
87
+ */
88
+ getAllAppointmentsRequestOpts(requestParameters: GetAllAppointmentsRequest): Promise<runtime.RequestOpts>;
89
+ /**
90
+ * get all appointments of the tenant
91
+ */
92
+ getAllAppointmentsRaw(requestParameters: GetAllAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAppointments200Response>>;
93
+ /**
94
+ * get all appointments of the tenant
95
+ */
96
+ getAllAppointments(requestParameters: GetAllAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAppointments200Response>;
97
+ /**
98
+ * Creates request options for getAppointment without sending the request
99
+ */
100
+ getAppointmentRequestOpts(requestParameters: GetAppointmentRequest): Promise<runtime.RequestOpts>;
101
+ /**
102
+ * read one appointment
103
+ */
104
+ getAppointmentRaw(requestParameters: GetAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentDto>>;
105
+ /**
106
+ * read one appointment
107
+ */
108
+ getAppointment(requestParameters: GetAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentDto>;
109
+ /**
110
+ * Creates request options for updateAppointment without sending the request
111
+ */
112
+ updateAppointmentRequestOpts(requestParameters: UpdateAppointmentRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * update an appointment, e.g. to confirm it
115
+ */
116
+ updateAppointmentRaw(requestParameters: UpdateAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentDto>>;
117
+ /**
118
+ * update an appointment, e.g. to confirm it
119
+ */
120
+ updateAppointment(requestParameters: UpdateAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentDto>;
121
+ }