@kommerz/ts-client 1.191.0 → 1.193.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 (43) hide show
  1. package/dist/apis/AppointmentPortalApi.d.ts +131 -10
  2. package/dist/apis/AppointmentPortalApi.js +339 -10
  3. package/dist/apis/AppointmentsApi.d.ts +121 -0
  4. package/dist/apis/AppointmentsApi.js +387 -0
  5. package/dist/apis/CalendarEntriesApi.d.ts +45 -2
  6. package/dist/apis/CalendarEntriesApi.js +82 -0
  7. package/dist/apis/CustomersApi.d.ts +6 -2
  8. package/dist/apis/CustomersApi.js +3 -0
  9. package/dist/apis/MapsApi.d.ts +84 -0
  10. package/dist/apis/MapsApi.js +268 -0
  11. package/dist/apis/UsersMeApi.d.ts +13 -0
  12. package/dist/apis/UsersMeApi.js +56 -0
  13. package/dist/apis/index.d.ts +2 -0
  14. package/dist/apis/index.js +2 -0
  15. package/dist/models/AccountAppointmentDto.d.ts +38 -0
  16. package/dist/models/AccountAppointmentDto.js +59 -0
  17. package/dist/models/AppointmentDto.d.ts +55 -0
  18. package/dist/models/AppointmentDto.js +64 -0
  19. package/dist/models/AppointmentPortalDto.d.ts +43 -0
  20. package/dist/models/AppointmentPortalDto.js +62 -0
  21. package/dist/models/AppointmentStatus.d.ts +26 -0
  22. package/dist/models/AppointmentStatus.js +52 -0
  23. package/dist/models/CalendarEntryDto.d.ts +21 -1
  24. package/dist/models/CalendarEntryDto.js +7 -0
  25. package/dist/models/CustomerDto.d.ts +5 -1
  26. package/dist/models/CustomerDto.js +2 -0
  27. package/dist/models/DavCalendarDto.d.ts +34 -0
  28. package/dist/models/DavCalendarDto.js +55 -0
  29. package/dist/models/DavCalendarResourceDto.d.ts +46 -0
  30. package/dist/models/DavCalendarResourceDto.js +67 -0
  31. package/dist/models/DavCalendarResourceWriteDto.d.ts +34 -0
  32. package/dist/models/DavCalendarResourceWriteDto.js +55 -0
  33. package/dist/models/EntityType.d.ts +1 -0
  34. package/dist/models/EntityType.js +1 -0
  35. package/dist/models/GetAllAppointments200Response.d.ts +42 -0
  36. package/dist/models/GetAllAppointments200Response.js +59 -0
  37. package/dist/models/Permissions.d.ts +4 -0
  38. package/dist/models/Permissions.js +4 -0
  39. package/dist/models/RecurrenceScope.d.ts +25 -0
  40. package/dist/models/RecurrenceScope.js +51 -0
  41. package/dist/models/index.d.ts +9 -1
  42. package/dist/models/index.js +9 -1
  43. package/package.json +1 -1
@@ -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
+ }
@@ -0,0 +1,387 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Kommerz API Specification
6
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
7
+ *
8
+ * Contact: info@kommerz.app
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __extends = (this && this.__extends) || (function () {
15
+ var extendStatics = function (d, b) {
16
+ extendStatics = Object.setPrototypeOf ||
17
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19
+ return extendStatics(d, b);
20
+ };
21
+ return function (d, b) {
22
+ if (typeof b !== "function" && b !== null)
23
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
24
+ extendStatics(d, b);
25
+ function __() { this.constructor = d; }
26
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
+ };
28
+ })();
29
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
30
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
31
+ return new (P || (P = Promise))(function (resolve, reject) {
32
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
33
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
34
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
35
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
36
+ });
37
+ };
38
+ var __generator = (this && this.__generator) || function (thisArg, body) {
39
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
41
+ function verb(n) { return function (v) { return step([n, v]); }; }
42
+ function step(op) {
43
+ if (f) throw new TypeError("Generator is already executing.");
44
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
45
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
46
+ if (y = 0, t) op = [op[0] & 2, t.value];
47
+ switch (op[0]) {
48
+ case 0: case 1: t = op; break;
49
+ case 4: _.label++; return { value: op[1], done: false };
50
+ case 5: _.label++; y = op[1]; op = [0]; continue;
51
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
52
+ default:
53
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
54
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
55
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
56
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
57
+ if (t[2]) _.ops.pop();
58
+ _.trys.pop(); continue;
59
+ }
60
+ op = body.call(thisArg, _);
61
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
62
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
63
+ }
64
+ };
65
+ Object.defineProperty(exports, "__esModule", { value: true });
66
+ exports.AppointmentsApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var AppointmentDto_1 = require("../models/AppointmentDto");
69
+ var GetAllAppointments200Response_1 = require("../models/GetAllAppointments200Response");
70
+ /**
71
+ *
72
+ */
73
+ var AppointmentsApi = /** @class */ (function (_super) {
74
+ __extends(AppointmentsApi, _super);
75
+ function AppointmentsApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Creates request options for createAppointment without sending the request
80
+ */
81
+ AppointmentsApi.prototype.createAppointmentRequestOpts = function (requestParameters) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath;
84
+ return __generator(this, function (_a) {
85
+ if (requestParameters['appointmentDto'] == null) {
86
+ throw new runtime.RequiredError('appointmentDto', 'Required parameter "appointmentDto" was null or undefined when calling createAppointment().');
87
+ }
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ headerParameters['Content-Type'] = 'application/json';
91
+ urlPath = "/ui/appointments/v1";
92
+ return [2 /*return*/, {
93
+ path: urlPath,
94
+ method: 'POST',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: (0, AppointmentDto_1.AppointmentDtoToJSON)(requestParameters['appointmentDto']),
98
+ }];
99
+ });
100
+ });
101
+ };
102
+ /**
103
+ * create an appointment of the logged-in user
104
+ */
105
+ AppointmentsApi.prototype.createAppointmentRaw = function (requestParameters, initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function () {
107
+ var requestOptions, response;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0: return [4 /*yield*/, this.createAppointmentRequestOpts(requestParameters)];
111
+ case 1:
112
+ requestOptions = _a.sent();
113
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
114
+ case 2:
115
+ response = _a.sent();
116
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentDto_1.AppointmentDtoFromJSON)(jsonValue); })];
117
+ }
118
+ });
119
+ });
120
+ };
121
+ /**
122
+ * create an appointment of the logged-in user
123
+ */
124
+ AppointmentsApi.prototype.createAppointment = function (requestParameters, initOverrides) {
125
+ return __awaiter(this, void 0, void 0, function () {
126
+ var response;
127
+ return __generator(this, function (_a) {
128
+ switch (_a.label) {
129
+ case 0: return [4 /*yield*/, this.createAppointmentRaw(requestParameters, initOverrides)];
130
+ case 1:
131
+ response = _a.sent();
132
+ return [4 /*yield*/, response.value()];
133
+ case 2: return [2 /*return*/, _a.sent()];
134
+ }
135
+ });
136
+ });
137
+ };
138
+ /**
139
+ * Creates request options for deleteAppointment without sending the request
140
+ */
141
+ AppointmentsApi.prototype.deleteAppointmentRequestOpts = function (requestParameters) {
142
+ return __awaiter(this, void 0, void 0, function () {
143
+ var queryParameters, headerParameters, urlPath;
144
+ return __generator(this, function (_a) {
145
+ if (requestParameters['id'] == null) {
146
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteAppointment().');
147
+ }
148
+ queryParameters = {};
149
+ headerParameters = {};
150
+ urlPath = "/ui/appointments/v1/{id}";
151
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
152
+ return [2 /*return*/, {
153
+ path: urlPath,
154
+ method: 'DELETE',
155
+ headers: headerParameters,
156
+ query: queryParameters,
157
+ }];
158
+ });
159
+ });
160
+ };
161
+ /**
162
+ * delete an appointment
163
+ */
164
+ AppointmentsApi.prototype.deleteAppointmentRaw = function (requestParameters, initOverrides) {
165
+ return __awaiter(this, void 0, void 0, function () {
166
+ var requestOptions, response;
167
+ return __generator(this, function (_a) {
168
+ switch (_a.label) {
169
+ case 0: return [4 /*yield*/, this.deleteAppointmentRequestOpts(requestParameters)];
170
+ case 1:
171
+ requestOptions = _a.sent();
172
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
173
+ case 2:
174
+ response = _a.sent();
175
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
176
+ }
177
+ });
178
+ });
179
+ };
180
+ /**
181
+ * delete an appointment
182
+ */
183
+ AppointmentsApi.prototype.deleteAppointment = function (requestParameters, initOverrides) {
184
+ return __awaiter(this, void 0, void 0, function () {
185
+ return __generator(this, function (_a) {
186
+ switch (_a.label) {
187
+ case 0: return [4 /*yield*/, this.deleteAppointmentRaw(requestParameters, initOverrides)];
188
+ case 1:
189
+ _a.sent();
190
+ return [2 /*return*/];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Creates request options for getAllAppointments without sending the request
197
+ */
198
+ AppointmentsApi.prototype.getAllAppointmentsRequestOpts = function (requestParameters) {
199
+ return __awaiter(this, void 0, void 0, function () {
200
+ var queryParameters, headerParameters, urlPath;
201
+ return __generator(this, function (_a) {
202
+ if (requestParameters['pageable'] == null) {
203
+ throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllAppointments().');
204
+ }
205
+ queryParameters = {};
206
+ if (requestParameters['pageable'] != null) {
207
+ queryParameters['pageable'] = requestParameters['pageable'];
208
+ }
209
+ if (requestParameters['filter'] != null) {
210
+ queryParameters['filter'] = requestParameters['filter'];
211
+ }
212
+ headerParameters = {};
213
+ urlPath = "/ui/appointments/v1";
214
+ return [2 /*return*/, {
215
+ path: urlPath,
216
+ method: 'GET',
217
+ headers: headerParameters,
218
+ query: queryParameters,
219
+ }];
220
+ });
221
+ });
222
+ };
223
+ /**
224
+ * get all appointments of the tenant
225
+ */
226
+ AppointmentsApi.prototype.getAllAppointmentsRaw = function (requestParameters, initOverrides) {
227
+ return __awaiter(this, void 0, void 0, function () {
228
+ var requestOptions, response;
229
+ return __generator(this, function (_a) {
230
+ switch (_a.label) {
231
+ case 0: return [4 /*yield*/, this.getAllAppointmentsRequestOpts(requestParameters)];
232
+ case 1:
233
+ requestOptions = _a.sent();
234
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
235
+ case 2:
236
+ response = _a.sent();
237
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetAllAppointments200Response_1.GetAllAppointments200ResponseFromJSON)(jsonValue); })];
238
+ }
239
+ });
240
+ });
241
+ };
242
+ /**
243
+ * get all appointments of the tenant
244
+ */
245
+ AppointmentsApi.prototype.getAllAppointments = function (requestParameters, initOverrides) {
246
+ return __awaiter(this, void 0, void 0, function () {
247
+ var response;
248
+ return __generator(this, function (_a) {
249
+ switch (_a.label) {
250
+ case 0: return [4 /*yield*/, this.getAllAppointmentsRaw(requestParameters, initOverrides)];
251
+ case 1:
252
+ response = _a.sent();
253
+ return [4 /*yield*/, response.value()];
254
+ case 2: return [2 /*return*/, _a.sent()];
255
+ }
256
+ });
257
+ });
258
+ };
259
+ /**
260
+ * Creates request options for getAppointment without sending the request
261
+ */
262
+ AppointmentsApi.prototype.getAppointmentRequestOpts = function (requestParameters) {
263
+ return __awaiter(this, void 0, void 0, function () {
264
+ var queryParameters, headerParameters, urlPath;
265
+ return __generator(this, function (_a) {
266
+ if (requestParameters['id'] == null) {
267
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getAppointment().');
268
+ }
269
+ queryParameters = {};
270
+ headerParameters = {};
271
+ urlPath = "/ui/appointments/v1/{id}";
272
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
273
+ return [2 /*return*/, {
274
+ path: urlPath,
275
+ method: 'GET',
276
+ headers: headerParameters,
277
+ query: queryParameters,
278
+ }];
279
+ });
280
+ });
281
+ };
282
+ /**
283
+ * read one appointment
284
+ */
285
+ AppointmentsApi.prototype.getAppointmentRaw = function (requestParameters, initOverrides) {
286
+ return __awaiter(this, void 0, void 0, function () {
287
+ var requestOptions, response;
288
+ return __generator(this, function (_a) {
289
+ switch (_a.label) {
290
+ case 0: return [4 /*yield*/, this.getAppointmentRequestOpts(requestParameters)];
291
+ case 1:
292
+ requestOptions = _a.sent();
293
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
294
+ case 2:
295
+ response = _a.sent();
296
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentDto_1.AppointmentDtoFromJSON)(jsonValue); })];
297
+ }
298
+ });
299
+ });
300
+ };
301
+ /**
302
+ * read one appointment
303
+ */
304
+ AppointmentsApi.prototype.getAppointment = function (requestParameters, initOverrides) {
305
+ return __awaiter(this, void 0, void 0, function () {
306
+ var response;
307
+ return __generator(this, function (_a) {
308
+ switch (_a.label) {
309
+ case 0: return [4 /*yield*/, this.getAppointmentRaw(requestParameters, initOverrides)];
310
+ case 1:
311
+ response = _a.sent();
312
+ return [4 /*yield*/, response.value()];
313
+ case 2: return [2 /*return*/, _a.sent()];
314
+ }
315
+ });
316
+ });
317
+ };
318
+ /**
319
+ * Creates request options for updateAppointment without sending the request
320
+ */
321
+ AppointmentsApi.prototype.updateAppointmentRequestOpts = function (requestParameters) {
322
+ return __awaiter(this, void 0, void 0, function () {
323
+ var queryParameters, headerParameters, urlPath;
324
+ return __generator(this, function (_a) {
325
+ if (requestParameters['id'] == null) {
326
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAppointment().');
327
+ }
328
+ if (requestParameters['appointmentDto'] == null) {
329
+ throw new runtime.RequiredError('appointmentDto', 'Required parameter "appointmentDto" was null or undefined when calling updateAppointment().');
330
+ }
331
+ queryParameters = {};
332
+ if (requestParameters['force'] != null) {
333
+ queryParameters['force'] = requestParameters['force'];
334
+ }
335
+ headerParameters = {};
336
+ headerParameters['Content-Type'] = 'application/json';
337
+ urlPath = "/ui/appointments/v1/{id}";
338
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
339
+ return [2 /*return*/, {
340
+ path: urlPath,
341
+ method: 'PUT',
342
+ headers: headerParameters,
343
+ query: queryParameters,
344
+ body: (0, AppointmentDto_1.AppointmentDtoToJSON)(requestParameters['appointmentDto']),
345
+ }];
346
+ });
347
+ });
348
+ };
349
+ /**
350
+ * update an appointment, e.g. to confirm it
351
+ */
352
+ AppointmentsApi.prototype.updateAppointmentRaw = function (requestParameters, initOverrides) {
353
+ return __awaiter(this, void 0, void 0, function () {
354
+ var requestOptions, response;
355
+ return __generator(this, function (_a) {
356
+ switch (_a.label) {
357
+ case 0: return [4 /*yield*/, this.updateAppointmentRequestOpts(requestParameters)];
358
+ case 1:
359
+ requestOptions = _a.sent();
360
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
361
+ case 2:
362
+ response = _a.sent();
363
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentDto_1.AppointmentDtoFromJSON)(jsonValue); })];
364
+ }
365
+ });
366
+ });
367
+ };
368
+ /**
369
+ * update an appointment, e.g. to confirm it
370
+ */
371
+ AppointmentsApi.prototype.updateAppointment = function (requestParameters, initOverrides) {
372
+ return __awaiter(this, void 0, void 0, function () {
373
+ var response;
374
+ return __generator(this, function (_a) {
375
+ switch (_a.label) {
376
+ case 0: return [4 /*yield*/, this.updateAppointmentRaw(requestParameters, initOverrides)];
377
+ case 1:
378
+ response = _a.sent();
379
+ return [4 /*yield*/, response.value()];
380
+ case 2: return [2 /*return*/, _a.sent()];
381
+ }
382
+ });
383
+ });
384
+ };
385
+ return AppointmentsApi;
386
+ }(runtime.BaseAPI));
387
+ exports.AppointmentsApi = AppointmentsApi;
@@ -12,17 +12,26 @@ import * as runtime from '../runtime';
12
12
  import { type CalendarEntryDto } from '../models/CalendarEntryDto';
13
13
  import { type GetAllCalendarEntries200Response } from '../models/GetAllCalendarEntries200Response';
14
14
  import { type KommerzPageable } from '../models/KommerzPageable';
15
+ import { type RecurrenceScope } from '../models/RecurrenceScope';
15
16
  export interface CreateCalendarEntryRequest {
16
17
  /**
17
18
  *
18
19
  */
19
- calendarEntryDto: CalendarEntryDto;
20
+ calendarEntryDto: Omit<CalendarEntryDto, 'modificationTime' | 'excludedOccurrences' | 'recurrenceMasterId' | 'originalStartDate'>;
20
21
  }
21
22
  export interface DeleteCalendarEntryRequest {
22
23
  /**
23
24
  * id of entity
24
25
  */
25
26
  id: string;
27
+ /**
28
+ * occurrences of a repeating entry the request applies to (default ALL)
29
+ */
30
+ recurrenceScope?: RecurrenceScope;
31
+ /**
32
+ * original start date (in the time zone of the entry) of the occurrence the request applies to. Required for the scopes THIS and FOLLOWING; for the scope ALL the change of the occurrence's time span is applied to the whole series.
33
+ */
34
+ originalStartDate?: string;
26
35
  }
27
36
  export interface GetAllCalendarEntriesRequest {
28
37
  /**
@@ -40,6 +49,20 @@ export interface GetCalendarEntryRequest {
40
49
  */
41
50
  id: string;
42
51
  }
52
+ export interface GetCalendarEntryOccurrencesRequest {
53
+ /**
54
+ * inclusive start of the period
55
+ */
56
+ from: Date;
57
+ /**
58
+ * exclusive end of the period
59
+ */
60
+ to: Date;
61
+ /**
62
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
63
+ */
64
+ filter?: Array<string>;
65
+ }
43
66
  export interface UpdateCalendarEntryRequest {
44
67
  /**
45
68
  * id of entity
@@ -48,11 +71,19 @@ export interface UpdateCalendarEntryRequest {
48
71
  /**
49
72
  *
50
73
  */
51
- calendarEntryDto: CalendarEntryDto;
74
+ calendarEntryDto: Omit<CalendarEntryDto, 'modificationTime' | 'excludedOccurrences' | 'recurrenceMasterId' | 'originalStartDate'>;
52
75
  /**
53
76
  * whether to force update the entity
54
77
  */
55
78
  force?: boolean;
79
+ /**
80
+ * occurrences of a repeating entry the request applies to (default ALL)
81
+ */
82
+ recurrenceScope?: RecurrenceScope;
83
+ /**
84
+ * original start date (in the time zone of the entry) of the occurrence the request applies to. Required for the scopes THIS and FOLLOWING; for the scope ALL the change of the occurrence's time span is applied to the whole series.
85
+ */
86
+ originalStartDate?: string;
56
87
  }
57
88
  /**
58
89
  *
@@ -106,6 +137,18 @@ export declare class CalendarEntriesApi extends runtime.BaseAPI {
106
137
  * read one calendar entry
107
138
  */
108
139
  getCalendarEntry(requestParameters: GetCalendarEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEntryDto>;
140
+ /**
141
+ * Creates request options for getCalendarEntryOccurrences without sending the request
142
+ */
143
+ getCalendarEntryOccurrencesRequestOpts(requestParameters: GetCalendarEntryOccurrencesRequest): Promise<runtime.RequestOpts>;
144
+ /**
145
+ * get the calendar entries overlapping a period, every repeating entry expanded into its occurrences
146
+ */
147
+ getCalendarEntryOccurrencesRaw(requestParameters: GetCalendarEntryOccurrencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CalendarEntryDto>>>;
148
+ /**
149
+ * get the calendar entries overlapping a period, every repeating entry expanded into its occurrences
150
+ */
151
+ getCalendarEntryOccurrences(requestParameters: GetCalendarEntryOccurrencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CalendarEntryDto>>;
109
152
  /**
110
153
  * Creates request options for updateCalendarEntry without sending the request
111
154
  */