@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
@@ -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.LegalEntityUsersApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var GetAllLegalEntityUsers200Response_1 = require("../models/GetAllLegalEntityUsers200Response");
69
+ var LegalEntityUserDto_1 = require("../models/LegalEntityUserDto");
70
+ /**
71
+ *
72
+ */
73
+ var LegalEntityUsersApi = /** @class */ (function (_super) {
74
+ __extends(LegalEntityUsersApi, _super);
75
+ function LegalEntityUsersApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Creates request options for createLegalEntityUser without sending the request
80
+ */
81
+ LegalEntityUsersApi.prototype.createLegalEntityUserRequestOpts = 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['legalEntityUserDto'] == null) {
86
+ throw new runtime.RequiredError('legalEntityUserDto', 'Required parameter "legalEntityUserDto" was null or undefined when calling createLegalEntityUser().');
87
+ }
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ headerParameters['Content-Type'] = 'application/json';
91
+ urlPath = "/ui/legal-entity-users/v1";
92
+ return [2 /*return*/, {
93
+ path: urlPath,
94
+ method: 'POST',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: (0, LegalEntityUserDto_1.LegalEntityUserDtoToJSON)(requestParameters['legalEntityUserDto']),
98
+ }];
99
+ });
100
+ });
101
+ };
102
+ /**
103
+ * create a legal entity user for a legal entity
104
+ */
105
+ LegalEntityUsersApi.prototype.createLegalEntityUserRaw = 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.createLegalEntityUserRequestOpts(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, LegalEntityUserDto_1.LegalEntityUserDtoFromJSON)(jsonValue); })];
117
+ }
118
+ });
119
+ });
120
+ };
121
+ /**
122
+ * create a legal entity user for a legal entity
123
+ */
124
+ LegalEntityUsersApi.prototype.createLegalEntityUser = 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.createLegalEntityUserRaw(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 deleteLegalEntityUser without sending the request
140
+ */
141
+ LegalEntityUsersApi.prototype.deleteLegalEntityUserRequestOpts = 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 deleteLegalEntityUser().');
147
+ }
148
+ queryParameters = {};
149
+ headerParameters = {};
150
+ urlPath = "/ui/legal-entity-users/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 a legal entity user
163
+ */
164
+ LegalEntityUsersApi.prototype.deleteLegalEntityUserRaw = 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.deleteLegalEntityUserRequestOpts(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 a legal entity user
182
+ */
183
+ LegalEntityUsersApi.prototype.deleteLegalEntityUser = 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.deleteLegalEntityUserRaw(requestParameters, initOverrides)];
188
+ case 1:
189
+ _a.sent();
190
+ return [2 /*return*/];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Creates request options for getAllLegalEntityUsers without sending the request
197
+ */
198
+ LegalEntityUsersApi.prototype.getAllLegalEntityUsersRequestOpts = 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 getAllLegalEntityUsers().');
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/legal-entity-users/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 legal entity users of the tenant
225
+ */
226
+ LegalEntityUsersApi.prototype.getAllLegalEntityUsersRaw = 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.getAllLegalEntityUsersRequestOpts(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, GetAllLegalEntityUsers200Response_1.GetAllLegalEntityUsers200ResponseFromJSON)(jsonValue); })];
238
+ }
239
+ });
240
+ });
241
+ };
242
+ /**
243
+ * get all legal entity users of the tenant
244
+ */
245
+ LegalEntityUsersApi.prototype.getAllLegalEntityUsers = 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.getAllLegalEntityUsersRaw(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 getLegalEntityUser without sending the request
261
+ */
262
+ LegalEntityUsersApi.prototype.getLegalEntityUserRequestOpts = 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 getLegalEntityUser().');
268
+ }
269
+ queryParameters = {};
270
+ headerParameters = {};
271
+ urlPath = "/ui/legal-entity-users/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 legal entity user
284
+ */
285
+ LegalEntityUsersApi.prototype.getLegalEntityUserRaw = 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.getLegalEntityUserRequestOpts(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, LegalEntityUserDto_1.LegalEntityUserDtoFromJSON)(jsonValue); })];
297
+ }
298
+ });
299
+ });
300
+ };
301
+ /**
302
+ * read one legal entity user
303
+ */
304
+ LegalEntityUsersApi.prototype.getLegalEntityUser = 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.getLegalEntityUserRaw(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 updateLegalEntityUser without sending the request
320
+ */
321
+ LegalEntityUsersApi.prototype.updateLegalEntityUserRequestOpts = 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 updateLegalEntityUser().');
327
+ }
328
+ if (requestParameters['legalEntityUserDto'] == null) {
329
+ throw new runtime.RequiredError('legalEntityUserDto', 'Required parameter "legalEntityUserDto" was null or undefined when calling updateLegalEntityUser().');
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/legal-entity-users/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, LegalEntityUserDto_1.LegalEntityUserDtoToJSON)(requestParameters['legalEntityUserDto']),
345
+ }];
346
+ });
347
+ });
348
+ };
349
+ /**
350
+ * update a legal entity user, e.g. to assign a legal entity
351
+ */
352
+ LegalEntityUsersApi.prototype.updateLegalEntityUserRaw = 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.updateLegalEntityUserRequestOpts(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, LegalEntityUserDto_1.LegalEntityUserDtoFromJSON)(jsonValue); })];
364
+ }
365
+ });
366
+ });
367
+ };
368
+ /**
369
+ * update a legal entity user, e.g. to assign a legal entity
370
+ */
371
+ LegalEntityUsersApi.prototype.updateLegalEntityUser = 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.updateLegalEntityUserRaw(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 LegalEntityUsersApi;
386
+ }(runtime.BaseAPI));
387
+ exports.LegalEntityUsersApi = LegalEntityUsersApi;
@@ -9,6 +9,21 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import * as runtime from '../runtime';
12
+ import { type AddressDto } from '../models/AddressDto';
13
+ import { type GeoLocationDto } from '../models/GeoLocationDto';
14
+ import { type LocationGeocodeQueryDto } from '../models/LocationGeocodeQueryDto';
15
+ export interface GeocodeAddressRequest {
16
+ /**
17
+ *
18
+ */
19
+ addressDto: AddressDto;
20
+ }
21
+ export interface GeocodeLocationRequest {
22
+ /**
23
+ *
24
+ */
25
+ locationGeocodeQueryDto: LocationGeocodeQueryDto;
26
+ }
12
27
  export interface GetMapGlyphsRequest {
13
28
  /**
14
29
  * name of the font
@@ -39,6 +54,34 @@ export interface GetMapTilesetRequest {
39
54
  *
40
55
  */
41
56
  export declare class MapsApi extends runtime.BaseAPI {
57
+ /**
58
+ * Creates request options for geocodeAddress without sending the request
59
+ */
60
+ geocodeAddressRequestOpts(requestParameters: GeocodeAddressRequest): Promise<runtime.RequestOpts>;
61
+ /**
62
+ * Every valid Kommerz login is accepted, no permission is checked. The address is resolved by the HERE Geocoding API; the result is empty when it could not be located.
63
+ * locate an address on the street map
64
+ */
65
+ geocodeAddressRaw(requestParameters: GeocodeAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GeoLocationDto>>;
66
+ /**
67
+ * Every valid Kommerz login is accepted, no permission is checked. The address is resolved by the HERE Geocoding API; the result is empty when it could not be located.
68
+ * locate an address on the street map
69
+ */
70
+ geocodeAddress(requestParameters: GeocodeAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GeoLocationDto>;
71
+ /**
72
+ * Creates request options for geocodeLocation without sending the request
73
+ */
74
+ geocodeLocationRequestOpts(requestParameters: GeocodeLocationRequest): Promise<runtime.RequestOpts>;
75
+ /**
76
+ * Every valid Kommerz login is accepted, no permission is checked. The text is resolved by the HERE Geocoding API; the result is empty when it could not be located.
77
+ * locate a location given as free text on the street map
78
+ */
79
+ geocodeLocationRaw(requestParameters: GeocodeLocationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GeoLocationDto>>;
80
+ /**
81
+ * Every valid Kommerz login is accepted, no permission is checked. The text is resolved by the HERE Geocoding API; the result is empty when it could not be located.
82
+ * locate a location given as free text on the street map
83
+ */
84
+ geocodeLocation(requestParameters: GeocodeLocationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GeoLocationDto>;
42
85
  /**
43
86
  * Creates request options for getMapGlyphs without sending the request
44
87
  */
@@ -65,6 +65,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
65
65
  Object.defineProperty(exports, "__esModule", { value: true });
66
66
  exports.MapsApi = void 0;
67
67
  var runtime = require("../runtime");
68
+ var AddressDto_1 = require("../models/AddressDto");
69
+ var GeoLocationDto_1 = require("../models/GeoLocationDto");
70
+ var LocationGeocodeQueryDto_1 = require("../models/LocationGeocodeQueryDto");
68
71
  /**
69
72
  *
70
73
  */
@@ -73,6 +76,130 @@ var MapsApi = /** @class */ (function (_super) {
73
76
  function MapsApi() {
74
77
  return _super !== null && _super.apply(this, arguments) || this;
75
78
  }
79
+ /**
80
+ * Creates request options for geocodeAddress without sending the request
81
+ */
82
+ MapsApi.prototype.geocodeAddressRequestOpts = 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['addressDto'] == null) {
87
+ throw new runtime.RequiredError('addressDto', 'Required parameter "addressDto" was null or undefined when calling geocodeAddress().');
88
+ }
89
+ queryParameters = {};
90
+ headerParameters = {};
91
+ headerParameters['Content-Type'] = 'application/json';
92
+ urlPath = "/ui/maps/v1/geocodes";
93
+ return [2 /*return*/, {
94
+ path: urlPath,
95
+ method: 'POST',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ body: (0, AddressDto_1.AddressDtoToJSON)(requestParameters['addressDto']),
99
+ }];
100
+ });
101
+ });
102
+ };
103
+ /**
104
+ * Every valid Kommerz login is accepted, no permission is checked. The address is resolved by the HERE Geocoding API; the result is empty when it could not be located.
105
+ * locate an address on the street map
106
+ */
107
+ MapsApi.prototype.geocodeAddressRaw = function (requestParameters, initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function () {
109
+ var requestOptions, response;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0: return [4 /*yield*/, this.geocodeAddressRequestOpts(requestParameters)];
113
+ case 1:
114
+ requestOptions = _a.sent();
115
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
116
+ case 2:
117
+ response = _a.sent();
118
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GeoLocationDto_1.GeoLocationDtoFromJSON)(jsonValue); })];
119
+ }
120
+ });
121
+ });
122
+ };
123
+ /**
124
+ * Every valid Kommerz login is accepted, no permission is checked. The address is resolved by the HERE Geocoding API; the result is empty when it could not be located.
125
+ * locate an address on the street map
126
+ */
127
+ MapsApi.prototype.geocodeAddress = function (requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var response;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0: return [4 /*yield*/, this.geocodeAddressRaw(requestParameters, initOverrides)];
133
+ case 1:
134
+ response = _a.sent();
135
+ return [4 /*yield*/, response.value()];
136
+ case 2: return [2 /*return*/, _a.sent()];
137
+ }
138
+ });
139
+ });
140
+ };
141
+ /**
142
+ * Creates request options for geocodeLocation without sending the request
143
+ */
144
+ MapsApi.prototype.geocodeLocationRequestOpts = function (requestParameters) {
145
+ return __awaiter(this, void 0, void 0, function () {
146
+ var queryParameters, headerParameters, urlPath;
147
+ return __generator(this, function (_a) {
148
+ if (requestParameters['locationGeocodeQueryDto'] == null) {
149
+ throw new runtime.RequiredError('locationGeocodeQueryDto', 'Required parameter "locationGeocodeQueryDto" was null or undefined when calling geocodeLocation().');
150
+ }
151
+ queryParameters = {};
152
+ headerParameters = {};
153
+ headerParameters['Content-Type'] = 'application/json';
154
+ urlPath = "/ui/maps/v1/location-geocodes";
155
+ return [2 /*return*/, {
156
+ path: urlPath,
157
+ method: 'POST',
158
+ headers: headerParameters,
159
+ query: queryParameters,
160
+ body: (0, LocationGeocodeQueryDto_1.LocationGeocodeQueryDtoToJSON)(requestParameters['locationGeocodeQueryDto']),
161
+ }];
162
+ });
163
+ });
164
+ };
165
+ /**
166
+ * Every valid Kommerz login is accepted, no permission is checked. The text is resolved by the HERE Geocoding API; the result is empty when it could not be located.
167
+ * locate a location given as free text on the street map
168
+ */
169
+ MapsApi.prototype.geocodeLocationRaw = function (requestParameters, initOverrides) {
170
+ return __awaiter(this, void 0, void 0, function () {
171
+ var requestOptions, response;
172
+ return __generator(this, function (_a) {
173
+ switch (_a.label) {
174
+ case 0: return [4 /*yield*/, this.geocodeLocationRequestOpts(requestParameters)];
175
+ case 1:
176
+ requestOptions = _a.sent();
177
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
178
+ case 2:
179
+ response = _a.sent();
180
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GeoLocationDto_1.GeoLocationDtoFromJSON)(jsonValue); })];
181
+ }
182
+ });
183
+ });
184
+ };
185
+ /**
186
+ * Every valid Kommerz login is accepted, no permission is checked. The text is resolved by the HERE Geocoding API; the result is empty when it could not be located.
187
+ * locate a location given as free text on the street map
188
+ */
189
+ MapsApi.prototype.geocodeLocation = function (requestParameters, initOverrides) {
190
+ return __awaiter(this, void 0, void 0, function () {
191
+ var response;
192
+ return __generator(this, function (_a) {
193
+ switch (_a.label) {
194
+ case 0: return [4 /*yield*/, this.geocodeLocationRaw(requestParameters, initOverrides)];
195
+ case 1:
196
+ response = _a.sent();
197
+ return [4 /*yield*/, response.value()];
198
+ case 2: return [2 /*return*/, _a.sent()];
199
+ }
200
+ });
201
+ });
202
+ };
76
203
  /**
77
204
  * Creates request options for getMapGlyphs without sending the request
78
205
  */
@@ -266,7 +266,7 @@ var NotificationTargetsApi = /** @class */ (function (_super) {
266
266
  queryParameters = {};
267
267
  headerParameters = {};
268
268
  headerParameters['Content-Type'] = 'application/json';
269
- urlPath = "/ui/notifications/v1/targets/order";
269
+ urlPath = "/ui/notifications/v1/target-orders";
270
270
  return [2 /*return*/, {
271
271
  path: urlPath,
272
272
  method: 'PUT',
@@ -87,7 +87,7 @@ var NotificationsAcksApi = /** @class */ (function (_super) {
87
87
  queryParameters = {};
88
88
  headerParameters = {};
89
89
  headerParameters['Content-Type'] = 'application/json';
90
- urlPath = "/ui/notifications/v1/ack";
90
+ urlPath = "/ui/notifications/v1/acknowledgements";
91
91
  return [2 /*return*/, {
92
92
  path: urlPath,
93
93
  method: 'PUT',
@@ -144,7 +144,7 @@ var NotificationsAcksApi = /** @class */ (function (_super) {
144
144
  }
145
145
  queryParameters = {};
146
146
  headerParameters = {};
147
- urlPath = "/ui/notifications/v1/{id}/ack";
147
+ urlPath = "/ui/notifications/v1/notifications/{id}/ack";
148
148
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
149
149
  return [2 /*return*/, {
150
150
  path: urlPath,
@@ -87,7 +87,7 @@ var NotificationsApi = /** @class */ (function (_super) {
87
87
  }
88
88
  queryParameters = {};
89
89
  headerParameters = {};
90
- urlPath = "/ui/notifications/v1/{id}";
90
+ urlPath = "/ui/notifications/v1/notifications/{id}";
91
91
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
92
92
  return [2 /*return*/, {
93
93
  path: urlPath,
@@ -150,7 +150,7 @@ var NotificationsApi = /** @class */ (function (_super) {
150
150
  queryParameters['filter'] = requestParameters['filter'];
151
151
  }
152
152
  headerParameters = {};
153
- urlPath = "/ui/notifications/v1";
153
+ urlPath = "/ui/notifications/v1/notifications";
154
154
  return [2 /*return*/, {
155
155
  path: urlPath,
156
156
  method: 'GET',
@@ -208,7 +208,7 @@ var NotificationsApi = /** @class */ (function (_super) {
208
208
  }
209
209
  queryParameters = {};
210
210
  headerParameters = {};
211
- urlPath = "/ui/notifications/v1/{id}";
211
+ urlPath = "/ui/notifications/v1/notifications/{id}";
212
212
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
213
213
  return [2 /*return*/, {
214
214
  path: urlPath,
@@ -201,7 +201,7 @@ var PresenceEntriesApi = /** @class */ (function (_super) {
201
201
  return __generator(this, function (_a) {
202
202
  queryParameters = {};
203
203
  headerParameters = {};
204
- urlPath = "/ui/time-tracking/v1/presences/entries/fast-tracking";
204
+ urlPath = "/ui/time-tracking/v1/presences/fast-tracking";
205
205
  return [2 /*return*/, {
206
206
  path: urlPath,
207
207
  method: 'POST',