@kommerz/ts-client 1.195.0 → 1.197.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/apis/AcceptancePortalDocumentsApi.d.ts +6 -6
  2. package/dist/apis/AcceptancePortalDocumentsApi.js +12 -12
  3. package/dist/apis/AppointmentPortalApi.d.ts +95 -15
  4. package/dist/apis/AppointmentPortalApi.js +212 -15
  5. package/dist/apis/AppointmentUsersApi.js +5 -5
  6. package/dist/apis/AppointmentsApi.d.ts +63 -2
  7. package/dist/apis/AppointmentsApi.js +196 -5
  8. package/dist/apis/BankingAccountsApi.js +1 -1
  9. package/dist/apis/BankingRegistrationsApi.js +1 -1
  10. package/dist/apis/CustomersApi.d.ts +0 -4
  11. package/dist/apis/CustomersApi.js +0 -3
  12. package/dist/apis/FileDirectorySharesApi.d.ts +4 -4
  13. package/dist/apis/FileDirectorySharesApi.js +8 -8
  14. package/dist/apis/FormsPortalApi.d.ts +6 -4
  15. package/dist/apis/FormsPortalApi.js +10 -8
  16. package/dist/apis/InvoicePortalApi.d.ts +2 -2
  17. package/dist/apis/InvoicePortalApi.js +4 -4
  18. package/dist/apis/LegalEntityUsersApi.d.ts +121 -0
  19. package/dist/apis/LegalEntityUsersApi.js +387 -0
  20. package/dist/apis/MapsApi.d.ts +43 -0
  21. package/dist/apis/MapsApi.js +127 -0
  22. package/dist/apis/NotificationTargetsApi.js +1 -1
  23. package/dist/apis/NotificationsAcksApi.js +2 -2
  24. package/dist/apis/NotificationsApi.js +3 -3
  25. package/dist/apis/PresenceEntriesApi.js +1 -1
  26. package/dist/apis/TenantPortalUploadsApi.d.ts +166 -0
  27. package/dist/apis/TenantPortalUploadsApi.js +418 -0
  28. package/dist/apis/TimeTrackingCalendarApi.js +2 -2
  29. package/dist/apis/TimeTrackingCalendarExportApi.js +1 -1
  30. package/dist/apis/UsersMeApi.d.ts +58 -9
  31. package/dist/apis/UsersMeApi.js +103 -14
  32. package/dist/apis/UsersMeBookmarksApi.d.ts +99 -0
  33. package/dist/apis/UsersMeBookmarksApi.js +324 -0
  34. package/dist/apis/index.d.ts +3 -2
  35. package/dist/apis/index.js +3 -2
  36. package/dist/models/AccountCalendarEntryDto.d.ts +6 -1
  37. package/dist/models/AccountCalendarEntryDto.js +3 -0
  38. package/dist/models/AccountCalendarEntryRsvpDto.d.ts +33 -0
  39. package/dist/models/AccountCalendarEntryRsvpDto.js +54 -0
  40. package/dist/models/AddressDto.d.ts +4 -0
  41. package/dist/models/AddressDto.js +2 -0
  42. package/dist/models/AppointmentBlockerDto.d.ts +59 -0
  43. package/dist/models/AppointmentBlockerDto.js +70 -0
  44. package/dist/models/AppointmentBookingConfigDto.d.ts +66 -0
  45. package/dist/models/AppointmentBookingConfigDto.js +71 -0
  46. package/dist/models/AppointmentDto.d.ts +30 -8
  47. package/dist/models/AppointmentDto.js +16 -6
  48. package/dist/models/AppointmentEmailTemplateDto.d.ts +33 -0
  49. package/dist/models/AppointmentEmailTemplateDto.js +50 -0
  50. package/dist/models/AppointmentEmailTemplatesDto.d.ts +58 -0
  51. package/dist/models/AppointmentEmailTemplatesDto.js +63 -0
  52. package/dist/models/AppointmentPortalDto.d.ts +8 -2
  53. package/dist/models/AppointmentPortalDto.js +6 -2
  54. package/dist/models/AppointmentProductDto.d.ts +45 -0
  55. package/dist/models/AppointmentProductDto.js +59 -0
  56. package/dist/models/AppointmentProductSelectionDto.d.ts +33 -0
  57. package/dist/models/AppointmentProductSelectionDto.js +54 -0
  58. package/dist/models/AppointmentSlotDistance.d.ts +3 -1
  59. package/dist/models/AppointmentSlotDistance.js +3 -1
  60. package/dist/models/AppointmentSlotDto.d.ts +5 -1
  61. package/dist/models/AppointmentSlotDto.js +4 -0
  62. package/dist/models/AppointmentStatus.d.ts +9 -3
  63. package/dist/models/AppointmentStatus.js +9 -3
  64. package/dist/models/AppointmentSubmissionDto.d.ts +15 -2
  65. package/dist/models/AppointmentSubmissionDto.js +7 -0
  66. package/dist/models/AppointmentTimeSpanDto.d.ts +39 -0
  67. package/dist/models/AppointmentTimeSpanDto.js +58 -0
  68. package/dist/models/AppointmentTimeSpanStatus.d.ts +35 -0
  69. package/dist/models/AppointmentTimeSpanStatus.js +61 -0
  70. package/dist/models/AttendedCalendarEntryDto.d.ts +10 -2
  71. package/dist/models/AttendedCalendarEntryDto.js +4 -0
  72. package/dist/models/BookmarkDto.d.ts +50 -0
  73. package/dist/models/BookmarkDto.js +60 -0
  74. package/dist/models/CalendarEntryTypeDto.d.ts +4 -0
  75. package/dist/models/CalendarEntryTypeDto.js +2 -0
  76. package/dist/models/CalendarPortalEventDto.d.ts +4 -0
  77. package/dist/models/CalendarPortalEventDto.js +4 -0
  78. package/dist/models/DavAddressBookDto.d.ts +29 -0
  79. package/dist/models/DavAddressBookDto.js +50 -0
  80. package/dist/models/DavCalendarDto.d.ts +1 -1
  81. package/dist/models/DavResourceDto.d.ts +45 -0
  82. package/dist/models/DavResourceDto.js +64 -0
  83. package/dist/models/DavResourceWriteDto.d.ts +29 -0
  84. package/dist/models/DavResourceWriteDto.js +50 -0
  85. package/dist/models/EntityType.d.ts +3 -1
  86. package/dist/models/EntityType.js +3 -1
  87. package/dist/models/FormsPortalFileUploadDto.d.ts +37 -0
  88. package/dist/models/FormsPortalFileUploadDto.js +54 -0
  89. package/dist/models/FormsPortalLegalEntityUserRequestDto.d.ts +29 -0
  90. package/dist/models/FormsPortalLegalEntityUserRequestDto.js +50 -0
  91. package/dist/models/FormsPortalSpecDto.d.ts +5 -0
  92. package/dist/models/FormsPortalSpecDto.js +5 -0
  93. package/dist/models/FormsPortalSubmissionDto.d.ts +29 -0
  94. package/dist/models/FormsPortalSubmissionDto.js +50 -0
  95. package/dist/models/FormsPortalSubmitDto.d.ts +4 -0
  96. package/dist/models/FormsPortalSubmitDto.js +2 -0
  97. package/dist/models/GeoLocationDto.d.ts +42 -0
  98. package/dist/models/GeoLocationDto.js +55 -0
  99. package/dist/models/GetAllLegalEntityUsers200Response.d.ts +42 -0
  100. package/dist/models/GetAllLegalEntityUsers200Response.js +59 -0
  101. package/dist/models/GetMyAppointments200Response.d.ts +42 -0
  102. package/dist/models/GetMyAppointments200Response.js +59 -0
  103. package/dist/models/GetMyBookmarks200Response.d.ts +42 -0
  104. package/dist/models/GetMyBookmarks200Response.js +59 -0
  105. package/dist/models/KanbanBoardDto.d.ts +12 -0
  106. package/dist/models/KanbanBoardDto.js +6 -0
  107. package/dist/models/LegalEntityUserDto.d.ts +71 -0
  108. package/dist/models/LegalEntityUserDto.js +63 -0
  109. package/dist/models/LocationGeocodeQueryDto.d.ts +29 -0
  110. package/dist/models/LocationGeocodeQueryDto.js +50 -0
  111. package/dist/models/Permissions.d.ts +5 -4
  112. package/dist/models/Permissions.js +5 -4
  113. package/dist/models/PublicTenantPageDto.d.ts +4 -0
  114. package/dist/models/PublicTenantPageDto.js +4 -0
  115. package/dist/models/RoutePlanningAppointmentResultDto.d.ts +47 -0
  116. package/dist/models/RoutePlanningAppointmentResultDto.js +62 -0
  117. package/dist/models/RoutePlanningOutcome.d.ts +35 -0
  118. package/dist/models/RoutePlanningOutcome.js +61 -0
  119. package/dist/models/RoutePlanningResultDto.d.ts +38 -0
  120. package/dist/models/RoutePlanningResultDto.js +57 -0
  121. package/dist/models/RoutingConfigDto.d.ts +82 -13
  122. package/dist/models/RoutingConfigDto.js +51 -12
  123. package/dist/models/TenantConfigurationDto.d.ts +4 -0
  124. package/dist/models/TenantConfigurationDto.js +2 -0
  125. package/dist/models/UiConfigurationDto.d.ts +9 -0
  126. package/dist/models/UiConfigurationDto.js +5 -0
  127. package/dist/models/UiModuleCategory.d.ts +29 -0
  128. package/dist/models/UiModuleCategory.js +55 -0
  129. package/dist/models/UserDto.d.ts +5 -1
  130. package/dist/models/UserDto.js +1 -0
  131. package/dist/models/index.d.ts +24 -5
  132. package/dist/models/index.js +24 -5
  133. package/package.json +1 -1
@@ -9,10 +9,41 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import * as runtime from '../runtime';
12
- import { type AccountAppointmentDto } from '../models/AccountAppointmentDto';
13
12
  import { type AccountCalendarEntryDto } from '../models/AccountCalendarEntryDto';
14
13
  import { type AccountDeletionPreviewDto } from '../models/AccountDeletionPreviewDto';
14
+ import { type GetMyAppointments200Response } from '../models/GetMyAppointments200Response';
15
+ import { type KommerzPageable } from '../models/KommerzPageable';
15
16
  import { type UserDto } from '../models/UserDto';
17
+ export interface DownloadMyCalendarEntryIcalRequest {
18
+ /**
19
+ * id of entity
20
+ */
21
+ id: string;
22
+ }
23
+ export interface GetMyAppointmentsRequest {
24
+ /**
25
+ * Pageable query parameters
26
+ */
27
+ pageable: KommerzPageable;
28
+ /**
29
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
30
+ */
31
+ filter?: Array<string>;
32
+ }
33
+ export interface GetMyCalendarEntriesRequest {
34
+ /**
35
+ * inclusive start of the period
36
+ */
37
+ from: Date;
38
+ /**
39
+ * exclusive end of the period
40
+ */
41
+ to: Date;
42
+ /**
43
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
44
+ */
45
+ filter?: Array<string>;
46
+ }
16
47
  export interface UpdateAvatarRequest {
17
48
  /**
18
49
  *
@@ -35,6 +66,20 @@ export declare class UsersMeApi extends runtime.BaseAPI {
35
66
  * delete user avatar
36
67
  */
37
68
  deleteAvatar(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
69
+ /**
70
+ * Creates request options for downloadMyCalendarEntryIcal without sending the request
71
+ */
72
+ downloadMyCalendarEntryIcalRequestOpts(requestParameters: DownloadMyCalendarEntryIcalRequest): Promise<runtime.RequestOpts>;
73
+ /**
74
+ * A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
75
+ * download a calendar entry the logged-in user owns or attends as iCalendar file
76
+ */
77
+ downloadMyCalendarEntryIcalRaw(requestParameters: DownloadMyCalendarEntryIcalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
78
+ /**
79
+ * A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
80
+ * download a calendar entry the logged-in user owns or attends as iCalendar file
81
+ */
82
+ downloadMyCalendarEntryIcal(requestParameters: DownloadMyCalendarEntryIcalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
38
83
  /**
39
84
  * Creates request options for getAccountDeletionPreview without sending the request
40
85
  */
@@ -62,27 +107,31 @@ export declare class UsersMeApi extends runtime.BaseAPI {
62
107
  /**
63
108
  * Creates request options for getMyAppointments without sending the request
64
109
  */
65
- getMyAppointmentsRequestOpts(): Promise<runtime.RequestOpts>;
110
+ getMyAppointmentsRequestOpts(requestParameters: GetMyAppointmentsRequest): Promise<runtime.RequestOpts>;
66
111
  /**
112
+ * Filterable and sortable fields: status, confirmedTimeSpan.startDate, confirmedTimeSpan.endDate, creationTime. Sorted by creationTime unless a sort is given.
67
113
  * list the appointments the logged-in user requested at any tenant
68
114
  */
69
- getMyAppointmentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountAppointmentDto>>>;
115
+ getMyAppointmentsRaw(requestParameters: GetMyAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMyAppointments200Response>>;
70
116
  /**
117
+ * Filterable and sortable fields: status, confirmedTimeSpan.startDate, confirmedTimeSpan.endDate, creationTime. Sorted by creationTime unless a sort is given.
71
118
  * list the appointments the logged-in user requested at any tenant
72
119
  */
73
- getMyAppointments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountAppointmentDto>>;
120
+ getMyAppointments(requestParameters: GetMyAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMyAppointments200Response>;
74
121
  /**
75
122
  * Creates request options for getMyCalendarEntries without sending the request
76
123
  */
77
- getMyCalendarEntriesRequestOpts(): Promise<runtime.RequestOpts>;
124
+ getMyCalendarEntriesRequestOpts(requestParameters: GetMyCalendarEntriesRequest): Promise<runtime.RequestOpts>;
78
125
  /**
79
- * list the calendar entries the logged-in user attends at any tenant
126
+ * Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
127
+ * list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
80
128
  */
81
- getMyCalendarEntriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountCalendarEntryDto>>>;
129
+ getMyCalendarEntriesRaw(requestParameters: GetMyCalendarEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountCalendarEntryDto>>>;
82
130
  /**
83
- * list the calendar entries the logged-in user attends at any tenant
131
+ * Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
132
+ * list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
84
133
  */
85
- getMyCalendarEntries(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountCalendarEntryDto>>;
134
+ getMyCalendarEntries(requestParameters: GetMyCalendarEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountCalendarEntryDto>>;
86
135
  /**
87
136
  * Creates request options for requestAccountDeletion without sending the request
88
137
  */
@@ -65,9 +65,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
65
65
  Object.defineProperty(exports, "__esModule", { value: true });
66
66
  exports.UsersMeApi = void 0;
67
67
  var runtime = require("../runtime");
68
- var AccountAppointmentDto_1 = require("../models/AccountAppointmentDto");
69
68
  var AccountCalendarEntryDto_1 = require("../models/AccountCalendarEntryDto");
70
69
  var AccountDeletionPreviewDto_1 = require("../models/AccountDeletionPreviewDto");
70
+ var GetMyAppointments200Response_1 = require("../models/GetMyAppointments200Response");
71
71
  var UserDto_1 = require("../models/UserDto");
72
72
  /**
73
73
  *
@@ -130,6 +130,67 @@ var UsersMeApi = /** @class */ (function (_super) {
130
130
  });
131
131
  });
132
132
  };
133
+ /**
134
+ * Creates request options for downloadMyCalendarEntryIcal without sending the request
135
+ */
136
+ UsersMeApi.prototype.downloadMyCalendarEntryIcalRequestOpts = function (requestParameters) {
137
+ return __awaiter(this, void 0, void 0, function () {
138
+ var queryParameters, headerParameters, urlPath;
139
+ return __generator(this, function (_a) {
140
+ if (requestParameters['id'] == null) {
141
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling downloadMyCalendarEntryIcal().');
142
+ }
143
+ queryParameters = {};
144
+ headerParameters = {};
145
+ urlPath = "/ui/users/v1/me/calendar-entries/{id}/ical";
146
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
147
+ return [2 /*return*/, {
148
+ path: urlPath,
149
+ method: 'GET',
150
+ headers: headerParameters,
151
+ query: queryParameters,
152
+ }];
153
+ });
154
+ });
155
+ };
156
+ /**
157
+ * A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
158
+ * download a calendar entry the logged-in user owns or attends as iCalendar file
159
+ */
160
+ UsersMeApi.prototype.downloadMyCalendarEntryIcalRaw = function (requestParameters, initOverrides) {
161
+ return __awaiter(this, void 0, void 0, function () {
162
+ var requestOptions, response;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0: return [4 /*yield*/, this.downloadMyCalendarEntryIcalRequestOpts(requestParameters)];
166
+ case 1:
167
+ requestOptions = _a.sent();
168
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
169
+ case 2:
170
+ response = _a.sent();
171
+ return [2 /*return*/, new runtime.BlobApiResponse(response)];
172
+ }
173
+ });
174
+ });
175
+ };
176
+ /**
177
+ * A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
178
+ * download a calendar entry the logged-in user owns or attends as iCalendar file
179
+ */
180
+ UsersMeApi.prototype.downloadMyCalendarEntryIcal = function (requestParameters, initOverrides) {
181
+ return __awaiter(this, void 0, void 0, function () {
182
+ var response;
183
+ return __generator(this, function (_a) {
184
+ switch (_a.label) {
185
+ case 0: return [4 /*yield*/, this.downloadMyCalendarEntryIcalRaw(requestParameters, initOverrides)];
186
+ case 1:
187
+ response = _a.sent();
188
+ return [4 /*yield*/, response.value()];
189
+ case 2: return [2 /*return*/, _a.sent()];
190
+ }
191
+ });
192
+ });
193
+ };
133
194
  /**
134
195
  * Creates request options for getAccountDeletionPreview without sending the request
135
196
  */
@@ -243,11 +304,20 @@ var UsersMeApi = /** @class */ (function (_super) {
243
304
  /**
244
305
  * Creates request options for getMyAppointments without sending the request
245
306
  */
246
- UsersMeApi.prototype.getMyAppointmentsRequestOpts = function () {
307
+ UsersMeApi.prototype.getMyAppointmentsRequestOpts = function (requestParameters) {
247
308
  return __awaiter(this, void 0, void 0, function () {
248
309
  var queryParameters, headerParameters, urlPath;
249
310
  return __generator(this, function (_a) {
311
+ if (requestParameters['pageable'] == null) {
312
+ throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getMyAppointments().');
313
+ }
250
314
  queryParameters = {};
315
+ if (requestParameters['pageable'] != null) {
316
+ queryParameters['pageable'] = requestParameters['pageable'];
317
+ }
318
+ if (requestParameters['filter'] != null) {
319
+ queryParameters['filter'] = requestParameters['filter'];
320
+ }
251
321
  headerParameters = {};
252
322
  urlPath = "/ui/users/v1/me/appointments";
253
323
  return [2 /*return*/, {
@@ -260,33 +330,35 @@ var UsersMeApi = /** @class */ (function (_super) {
260
330
  });
261
331
  };
262
332
  /**
333
+ * Filterable and sortable fields: status, confirmedTimeSpan.startDate, confirmedTimeSpan.endDate, creationTime. Sorted by creationTime unless a sort is given.
263
334
  * list the appointments the logged-in user requested at any tenant
264
335
  */
265
- UsersMeApi.prototype.getMyAppointmentsRaw = function (initOverrides) {
336
+ UsersMeApi.prototype.getMyAppointmentsRaw = function (requestParameters, initOverrides) {
266
337
  return __awaiter(this, void 0, void 0, function () {
267
338
  var requestOptions, response;
268
339
  return __generator(this, function (_a) {
269
340
  switch (_a.label) {
270
- case 0: return [4 /*yield*/, this.getMyAppointmentsRequestOpts()];
341
+ case 0: return [4 /*yield*/, this.getMyAppointmentsRequestOpts(requestParameters)];
271
342
  case 1:
272
343
  requestOptions = _a.sent();
273
344
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
274
345
  case 2:
275
346
  response = _a.sent();
276
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(AccountAppointmentDto_1.AccountAppointmentDtoFromJSON); })];
347
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetMyAppointments200Response_1.GetMyAppointments200ResponseFromJSON)(jsonValue); })];
277
348
  }
278
349
  });
279
350
  });
280
351
  };
281
352
  /**
353
+ * Filterable and sortable fields: status, confirmedTimeSpan.startDate, confirmedTimeSpan.endDate, creationTime. Sorted by creationTime unless a sort is given.
282
354
  * list the appointments the logged-in user requested at any tenant
283
355
  */
284
- UsersMeApi.prototype.getMyAppointments = function (initOverrides) {
356
+ UsersMeApi.prototype.getMyAppointments = function (requestParameters, initOverrides) {
285
357
  return __awaiter(this, void 0, void 0, function () {
286
358
  var response;
287
359
  return __generator(this, function (_a) {
288
360
  switch (_a.label) {
289
- case 0: return [4 /*yield*/, this.getMyAppointmentsRaw(initOverrides)];
361
+ case 0: return [4 /*yield*/, this.getMyAppointmentsRaw(requestParameters, initOverrides)];
290
362
  case 1:
291
363
  response = _a.sent();
292
364
  return [4 /*yield*/, response.value()];
@@ -298,11 +370,26 @@ var UsersMeApi = /** @class */ (function (_super) {
298
370
  /**
299
371
  * Creates request options for getMyCalendarEntries without sending the request
300
372
  */
301
- UsersMeApi.prototype.getMyCalendarEntriesRequestOpts = function () {
373
+ UsersMeApi.prototype.getMyCalendarEntriesRequestOpts = function (requestParameters) {
302
374
  return __awaiter(this, void 0, void 0, function () {
303
375
  var queryParameters, headerParameters, urlPath;
304
376
  return __generator(this, function (_a) {
377
+ if (requestParameters['from'] == null) {
378
+ throw new runtime.RequiredError('from', 'Required parameter "from" was null or undefined when calling getMyCalendarEntries().');
379
+ }
380
+ if (requestParameters['to'] == null) {
381
+ throw new runtime.RequiredError('to', 'Required parameter "to" was null or undefined when calling getMyCalendarEntries().');
382
+ }
305
383
  queryParameters = {};
384
+ if (requestParameters['from'] != null) {
385
+ queryParameters['from'] = runtime.serializeDateTime(requestParameters['from']);
386
+ }
387
+ if (requestParameters['to'] != null) {
388
+ queryParameters['to'] = runtime.serializeDateTime(requestParameters['to']);
389
+ }
390
+ if (requestParameters['filter'] != null) {
391
+ queryParameters['filter'] = requestParameters['filter'];
392
+ }
306
393
  headerParameters = {};
307
394
  urlPath = "/ui/users/v1/me/calendar-entries";
308
395
  return [2 /*return*/, {
@@ -315,14 +402,15 @@ var UsersMeApi = /** @class */ (function (_super) {
315
402
  });
316
403
  };
317
404
  /**
318
- * list the calendar entries the logged-in user attends at any tenant
405
+ * Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
406
+ * list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
319
407
  */
320
- UsersMeApi.prototype.getMyCalendarEntriesRaw = function (initOverrides) {
408
+ UsersMeApi.prototype.getMyCalendarEntriesRaw = function (requestParameters, initOverrides) {
321
409
  return __awaiter(this, void 0, void 0, function () {
322
410
  var requestOptions, response;
323
411
  return __generator(this, function (_a) {
324
412
  switch (_a.label) {
325
- case 0: return [4 /*yield*/, this.getMyCalendarEntriesRequestOpts()];
413
+ case 0: return [4 /*yield*/, this.getMyCalendarEntriesRequestOpts(requestParameters)];
326
414
  case 1:
327
415
  requestOptions = _a.sent();
328
416
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
@@ -334,14 +422,15 @@ var UsersMeApi = /** @class */ (function (_super) {
334
422
  });
335
423
  };
336
424
  /**
337
- * list the calendar entries the logged-in user attends at any tenant
425
+ * Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
426
+ * list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
338
427
  */
339
- UsersMeApi.prototype.getMyCalendarEntries = function (initOverrides) {
428
+ UsersMeApi.prototype.getMyCalendarEntries = function (requestParameters, initOverrides) {
340
429
  return __awaiter(this, void 0, void 0, function () {
341
430
  var response;
342
431
  return __generator(this, function (_a) {
343
432
  switch (_a.label) {
344
- case 0: return [4 /*yield*/, this.getMyCalendarEntriesRaw(initOverrides)];
433
+ case 0: return [4 /*yield*/, this.getMyCalendarEntriesRaw(requestParameters, initOverrides)];
345
434
  case 1:
346
435
  response = _a.sent();
347
436
  return [4 /*yield*/, response.value()];
@@ -0,0 +1,99 @@
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 BookmarkDto } from '../models/BookmarkDto';
13
+ import { type GetMyBookmarks200Response } from '../models/GetMyBookmarks200Response';
14
+ import { type KommerzPageable } from '../models/KommerzPageable';
15
+ export interface CreateMyBookmarkRequest {
16
+ /**
17
+ *
18
+ */
19
+ bookmarkDto: Omit<BookmarkDto, 'id' | 'creationTime' | 'tenantHandle' | 'tenantName'>;
20
+ }
21
+ export interface DeleteMyBookmarkRequest {
22
+ /**
23
+ * id of entity
24
+ */
25
+ id: string;
26
+ }
27
+ export interface GetMyBookmarkRequest {
28
+ /**
29
+ * id of entity
30
+ */
31
+ id: string;
32
+ }
33
+ export interface GetMyBookmarksRequest {
34
+ /**
35
+ * Pageable query parameters
36
+ */
37
+ pageable: KommerzPageable;
38
+ /**
39
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
40
+ */
41
+ filter?: Array<string>;
42
+ }
43
+ /**
44
+ *
45
+ */
46
+ export declare class UsersMeBookmarksApi extends runtime.BaseAPI {
47
+ /**
48
+ * Creates request options for createMyBookmark without sending the request
49
+ */
50
+ createMyBookmarkRequestOpts(requestParameters: CreateMyBookmarkRequest): Promise<runtime.RequestOpts>;
51
+ /**
52
+ * Only tenants can be bookmarked so far. An item is bookmarked at most once per user.
53
+ * bookmark an item for the logged-in user
54
+ */
55
+ createMyBookmarkRaw(requestParameters: CreateMyBookmarkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BookmarkDto>>;
56
+ /**
57
+ * Only tenants can be bookmarked so far. An item is bookmarked at most once per user.
58
+ * bookmark an item for the logged-in user
59
+ */
60
+ createMyBookmark(requestParameters: CreateMyBookmarkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BookmarkDto>;
61
+ /**
62
+ * Creates request options for deleteMyBookmark without sending the request
63
+ */
64
+ deleteMyBookmarkRequestOpts(requestParameters: DeleteMyBookmarkRequest): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * remove a bookmark of the logged-in user
67
+ */
68
+ deleteMyBookmarkRaw(requestParameters: DeleteMyBookmarkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
69
+ /**
70
+ * remove a bookmark of the logged-in user
71
+ */
72
+ deleteMyBookmark(requestParameters: DeleteMyBookmarkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
73
+ /**
74
+ * Creates request options for getMyBookmark without sending the request
75
+ */
76
+ getMyBookmarkRequestOpts(requestParameters: GetMyBookmarkRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * read one bookmark of the logged-in user
79
+ */
80
+ getMyBookmarkRaw(requestParameters: GetMyBookmarkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BookmarkDto>>;
81
+ /**
82
+ * read one bookmark of the logged-in user
83
+ */
84
+ getMyBookmark(requestParameters: GetMyBookmarkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BookmarkDto>;
85
+ /**
86
+ * Creates request options for getMyBookmarks without sending the request
87
+ */
88
+ getMyBookmarksRequestOpts(requestParameters: GetMyBookmarksRequest): Promise<runtime.RequestOpts>;
89
+ /**
90
+ * Filterable and sortable fields: entityType, entityId, creationTime. Sorted by creationTime unless a sort is given.
91
+ * list the bookmarks of the logged-in user
92
+ */
93
+ getMyBookmarksRaw(requestParameters: GetMyBookmarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMyBookmarks200Response>>;
94
+ /**
95
+ * Filterable and sortable fields: entityType, entityId, creationTime. Sorted by creationTime unless a sort is given.
96
+ * list the bookmarks of the logged-in user
97
+ */
98
+ getMyBookmarks(requestParameters: GetMyBookmarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMyBookmarks200Response>;
99
+ }