@kommerz/ts-client 1.197.0 → 1.197.1

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 (39) hide show
  1. package/dist/apis/ServiceDeskMessagesApi.d.ts +77 -0
  2. package/dist/apis/ServiceDeskMessagesApi.js +260 -0
  3. package/dist/apis/ServiceDeskPortalApi.d.ts +41 -0
  4. package/dist/apis/ServiceDeskPortalApi.js +145 -0
  5. package/dist/apis/UsersMeAddressesApi.d.ts +123 -0
  6. package/dist/apis/UsersMeAddressesApi.js +389 -0
  7. package/dist/apis/index.d.ts +3 -1
  8. package/dist/apis/index.js +3 -1
  9. package/dist/models/AppointmentBookingConfigDto.d.ts +5 -1
  10. package/dist/models/AppointmentBookingConfigDto.js +2 -0
  11. package/dist/models/AppointmentDto.d.ts +9 -0
  12. package/dist/models/AppointmentDto.js +5 -0
  13. package/dist/models/AppointmentProductDto.d.ts +8 -0
  14. package/dist/models/AppointmentProductDto.js +4 -0
  15. package/dist/models/AppointmentSlotDistance.d.ts +1 -1
  16. package/dist/models/AppointmentSlotDistance.js +1 -1
  17. package/dist/models/AppointmentSlotDto.d.ts +4 -0
  18. package/dist/models/AppointmentSlotDto.js +4 -0
  19. package/dist/models/AppointmentSubmissionDto.d.ts +9 -0
  20. package/dist/models/AppointmentSubmissionDto.js +5 -0
  21. package/dist/models/ContactAddressDto.d.ts +38 -0
  22. package/dist/models/ContactAddressDto.js +53 -0
  23. package/dist/models/EntityType.d.ts +2 -0
  24. package/dist/models/EntityType.js +2 -0
  25. package/dist/models/GetAllServiceDeskMessages200Response.d.ts +42 -0
  26. package/dist/models/GetAllServiceDeskMessages200Response.js +59 -0
  27. package/dist/models/GetMyAddresses200Response.d.ts +42 -0
  28. package/dist/models/GetMyAddresses200Response.js +59 -0
  29. package/dist/models/MessageDto.d.ts +7 -3
  30. package/dist/models/MessageDto.js +5 -2
  31. package/dist/models/Permissions.d.ts +2 -0
  32. package/dist/models/Permissions.js +2 -0
  33. package/dist/models/RoutingConfigDto.d.ts +8 -0
  34. package/dist/models/RoutingConfigDto.js +4 -0
  35. package/dist/models/UserAddressDto.d.ts +50 -0
  36. package/dist/models/UserAddressDto.js +62 -0
  37. package/dist/models/index.d.ts +4 -0
  38. package/dist/models/index.js +4 -0
  39. package/package.json +1 -1
@@ -0,0 +1,389 @@
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.UsersMeAddressesApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var GetMyAddresses200Response_1 = require("../models/GetMyAddresses200Response");
69
+ var UserAddressDto_1 = require("../models/UserAddressDto");
70
+ /**
71
+ *
72
+ */
73
+ var UsersMeAddressesApi = /** @class */ (function (_super) {
74
+ __extends(UsersMeAddressesApi, _super);
75
+ function UsersMeAddressesApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Creates request options for createMyAddress without sending the request
80
+ */
81
+ UsersMeAddressesApi.prototype.createMyAddressRequestOpts = 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['userAddressDto'] == null) {
86
+ throw new runtime.RequiredError('userAddressDto', 'Required parameter "userAddressDto" was null or undefined when calling createMyAddress().');
87
+ }
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ headerParameters['Content-Type'] = 'application/json';
91
+ urlPath = "/ui/users/v1/me/addresses";
92
+ return [2 /*return*/, {
93
+ path: urlPath,
94
+ method: 'POST',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: (0, UserAddressDto_1.UserAddressDtoToJSON)(requestParameters['userAddressDto']),
98
+ }];
99
+ });
100
+ });
101
+ };
102
+ /**
103
+ * store an address for the logged-in user
104
+ */
105
+ UsersMeAddressesApi.prototype.createMyAddressRaw = 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.createMyAddressRequestOpts(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, UserAddressDto_1.UserAddressDtoFromJSON)(jsonValue); })];
117
+ }
118
+ });
119
+ });
120
+ };
121
+ /**
122
+ * store an address for the logged-in user
123
+ */
124
+ UsersMeAddressesApi.prototype.createMyAddress = 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.createMyAddressRaw(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 deleteMyAddress without sending the request
140
+ */
141
+ UsersMeAddressesApi.prototype.deleteMyAddressRequestOpts = 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 deleteMyAddress().');
147
+ }
148
+ queryParameters = {};
149
+ headerParameters = {};
150
+ urlPath = "/ui/users/v1/me/addresses/{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 address of the logged-in user
163
+ */
164
+ UsersMeAddressesApi.prototype.deleteMyAddressRaw = 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.deleteMyAddressRequestOpts(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 address of the logged-in user
182
+ */
183
+ UsersMeAddressesApi.prototype.deleteMyAddress = 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.deleteMyAddressRaw(requestParameters, initOverrides)];
188
+ case 1:
189
+ _a.sent();
190
+ return [2 /*return*/];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Creates request options for getMyAddress without sending the request
197
+ */
198
+ UsersMeAddressesApi.prototype.getMyAddressRequestOpts = 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['id'] == null) {
203
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getMyAddress().');
204
+ }
205
+ queryParameters = {};
206
+ headerParameters = {};
207
+ urlPath = "/ui/users/v1/me/addresses/{id}";
208
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
209
+ return [2 /*return*/, {
210
+ path: urlPath,
211
+ method: 'GET',
212
+ headers: headerParameters,
213
+ query: queryParameters,
214
+ }];
215
+ });
216
+ });
217
+ };
218
+ /**
219
+ * read one address of the logged-in user
220
+ */
221
+ UsersMeAddressesApi.prototype.getMyAddressRaw = function (requestParameters, initOverrides) {
222
+ return __awaiter(this, void 0, void 0, function () {
223
+ var requestOptions, response;
224
+ return __generator(this, function (_a) {
225
+ switch (_a.label) {
226
+ case 0: return [4 /*yield*/, this.getMyAddressRequestOpts(requestParameters)];
227
+ case 1:
228
+ requestOptions = _a.sent();
229
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
230
+ case 2:
231
+ response = _a.sent();
232
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserAddressDto_1.UserAddressDtoFromJSON)(jsonValue); })];
233
+ }
234
+ });
235
+ });
236
+ };
237
+ /**
238
+ * read one address of the logged-in user
239
+ */
240
+ UsersMeAddressesApi.prototype.getMyAddress = function (requestParameters, initOverrides) {
241
+ return __awaiter(this, void 0, void 0, function () {
242
+ var response;
243
+ return __generator(this, function (_a) {
244
+ switch (_a.label) {
245
+ case 0: return [4 /*yield*/, this.getMyAddressRaw(requestParameters, initOverrides)];
246
+ case 1:
247
+ response = _a.sent();
248
+ return [4 /*yield*/, response.value()];
249
+ case 2: return [2 /*return*/, _a.sent()];
250
+ }
251
+ });
252
+ });
253
+ };
254
+ /**
255
+ * Creates request options for getMyAddresses without sending the request
256
+ */
257
+ UsersMeAddressesApi.prototype.getMyAddressesRequestOpts = function (requestParameters) {
258
+ return __awaiter(this, void 0, void 0, function () {
259
+ var queryParameters, headerParameters, urlPath;
260
+ return __generator(this, function (_a) {
261
+ if (requestParameters['pageable'] == null) {
262
+ throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getMyAddresses().');
263
+ }
264
+ queryParameters = {};
265
+ if (requestParameters['pageable'] != null) {
266
+ queryParameters['pageable'] = requestParameters['pageable'];
267
+ }
268
+ if (requestParameters['filter'] != null) {
269
+ queryParameters['filter'] = requestParameters['filter'];
270
+ }
271
+ headerParameters = {};
272
+ urlPath = "/ui/users/v1/me/addresses";
273
+ return [2 /*return*/, {
274
+ path: urlPath,
275
+ method: 'GET',
276
+ headers: headerParameters,
277
+ query: queryParameters,
278
+ }];
279
+ });
280
+ });
281
+ };
282
+ /**
283
+ * Filterable and sortable fields: label, email, phoneNumber, creationTime. Sorted by label unless a sort is given.
284
+ * list the addresses of the logged-in user
285
+ */
286
+ UsersMeAddressesApi.prototype.getMyAddressesRaw = function (requestParameters, initOverrides) {
287
+ return __awaiter(this, void 0, void 0, function () {
288
+ var requestOptions, response;
289
+ return __generator(this, function (_a) {
290
+ switch (_a.label) {
291
+ case 0: return [4 /*yield*/, this.getMyAddressesRequestOpts(requestParameters)];
292
+ case 1:
293
+ requestOptions = _a.sent();
294
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
295
+ case 2:
296
+ response = _a.sent();
297
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetMyAddresses200Response_1.GetMyAddresses200ResponseFromJSON)(jsonValue); })];
298
+ }
299
+ });
300
+ });
301
+ };
302
+ /**
303
+ * Filterable and sortable fields: label, email, phoneNumber, creationTime. Sorted by label unless a sort is given.
304
+ * list the addresses of the logged-in user
305
+ */
306
+ UsersMeAddressesApi.prototype.getMyAddresses = function (requestParameters, initOverrides) {
307
+ return __awaiter(this, void 0, void 0, function () {
308
+ var response;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0: return [4 /*yield*/, this.getMyAddressesRaw(requestParameters, initOverrides)];
312
+ case 1:
313
+ response = _a.sent();
314
+ return [4 /*yield*/, response.value()];
315
+ case 2: return [2 /*return*/, _a.sent()];
316
+ }
317
+ });
318
+ });
319
+ };
320
+ /**
321
+ * Creates request options for updateMyAddress without sending the request
322
+ */
323
+ UsersMeAddressesApi.prototype.updateMyAddressRequestOpts = function (requestParameters) {
324
+ return __awaiter(this, void 0, void 0, function () {
325
+ var queryParameters, headerParameters, urlPath;
326
+ return __generator(this, function (_a) {
327
+ if (requestParameters['id'] == null) {
328
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateMyAddress().');
329
+ }
330
+ if (requestParameters['userAddressDto'] == null) {
331
+ throw new runtime.RequiredError('userAddressDto', 'Required parameter "userAddressDto" was null or undefined when calling updateMyAddress().');
332
+ }
333
+ queryParameters = {};
334
+ if (requestParameters['force'] != null) {
335
+ queryParameters['force'] = requestParameters['force'];
336
+ }
337
+ headerParameters = {};
338
+ headerParameters['Content-Type'] = 'application/json';
339
+ urlPath = "/ui/users/v1/me/addresses/{id}";
340
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
341
+ return [2 /*return*/, {
342
+ path: urlPath,
343
+ method: 'PUT',
344
+ headers: headerParameters,
345
+ query: queryParameters,
346
+ body: (0, UserAddressDto_1.UserAddressDtoToJSON)(requestParameters['userAddressDto']),
347
+ }];
348
+ });
349
+ });
350
+ };
351
+ /**
352
+ * update an address of the logged-in user
353
+ */
354
+ UsersMeAddressesApi.prototype.updateMyAddressRaw = function (requestParameters, initOverrides) {
355
+ return __awaiter(this, void 0, void 0, function () {
356
+ var requestOptions, response;
357
+ return __generator(this, function (_a) {
358
+ switch (_a.label) {
359
+ case 0: return [4 /*yield*/, this.updateMyAddressRequestOpts(requestParameters)];
360
+ case 1:
361
+ requestOptions = _a.sent();
362
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
363
+ case 2:
364
+ response = _a.sent();
365
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserAddressDto_1.UserAddressDtoFromJSON)(jsonValue); })];
366
+ }
367
+ });
368
+ });
369
+ };
370
+ /**
371
+ * update an address of the logged-in user
372
+ */
373
+ UsersMeAddressesApi.prototype.updateMyAddress = function (requestParameters, initOverrides) {
374
+ return __awaiter(this, void 0, void 0, function () {
375
+ var response;
376
+ return __generator(this, function (_a) {
377
+ switch (_a.label) {
378
+ case 0: return [4 /*yield*/, this.updateMyAddressRaw(requestParameters, initOverrides)];
379
+ case 1:
380
+ response = _a.sent();
381
+ return [4 /*yield*/, response.value()];
382
+ case 2: return [2 /*return*/, _a.sent()];
383
+ }
384
+ });
385
+ });
386
+ };
387
+ return UsersMeAddressesApi;
388
+ }(runtime.BaseAPI));
389
+ exports.UsersMeAddressesApi = UsersMeAddressesApi;
@@ -74,7 +74,8 @@ export * from './PresenceTypesApi';
74
74
  export * from './ProductsApi';
75
75
  export * from './ReferencesApi';
76
76
  export * from './RolesApi';
77
- export * from './ServiceDeskMessageApi';
77
+ export * from './ServiceDeskMessagesApi';
78
+ export * from './ServiceDeskPortalApi';
78
79
  export * from './StatisticsApi';
79
80
  export * from './SystemsFeaturesApi';
80
81
  export * from './SystemsTimesApi';
@@ -95,6 +96,7 @@ export * from './UserPermissionsApi';
95
96
  export * from './UserTenantsApi';
96
97
  export * from './UsersApi';
97
98
  export * from './UsersMeApi';
99
+ export * from './UsersMeAddressesApi';
98
100
  export * from './UsersMeBookmarksApi';
99
101
  export * from './ValidationApi';
100
102
  export * from './WikiApi';
@@ -92,7 +92,8 @@ __exportStar(require("./PresenceTypesApi"), exports);
92
92
  __exportStar(require("./ProductsApi"), exports);
93
93
  __exportStar(require("./ReferencesApi"), exports);
94
94
  __exportStar(require("./RolesApi"), exports);
95
- __exportStar(require("./ServiceDeskMessageApi"), exports);
95
+ __exportStar(require("./ServiceDeskMessagesApi"), exports);
96
+ __exportStar(require("./ServiceDeskPortalApi"), exports);
96
97
  __exportStar(require("./StatisticsApi"), exports);
97
98
  __exportStar(require("./SystemsFeaturesApi"), exports);
98
99
  __exportStar(require("./SystemsTimesApi"), exports);
@@ -113,6 +114,7 @@ __exportStar(require("./UserPermissionsApi"), exports);
113
114
  __exportStar(require("./UserTenantsApi"), exports);
114
115
  __exportStar(require("./UsersApi"), exports);
115
116
  __exportStar(require("./UsersMeApi"), exports);
117
+ __exportStar(require("./UsersMeAddressesApi"), exports);
116
118
  __exportStar(require("./UsersMeBookmarksApi"), exports);
117
119
  __exportStar(require("./ValidationApi"), exports);
118
120
  __exportStar(require("./WikiApi"), exports);
@@ -52,9 +52,13 @@ export interface AppointmentBookingConfigDto {
52
52
  */
53
53
  shiftStartTime?: string;
54
54
  /**
55
- * currency of the tenant the product prices are given in
55
+ * currency of the tenant, for products without a currency of their own
56
56
  */
57
57
  currency: string;
58
+ /**
59
+ * the requester skips the form, as the partner account of the logged-in requester carries the attribute partnerHideFormAttributeId of the routing configuration
60
+ */
61
+ hideForm?: boolean;
58
62
  }
59
63
  /**
60
64
  * Check if a given object implements the AppointmentBookingConfigDto interface.
@@ -46,6 +46,7 @@ function AppointmentBookingConfigDtoFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'minRequiredDays': json['minRequiredDays'] == null ? undefined : json['minRequiredDays'],
47
47
  'shiftStartTime': json['shiftStartTime'] == null ? undefined : json['shiftStartTime'],
48
48
  'currency': json['currency'],
49
+ 'hideForm': json['hideForm'] == null ? undefined : json['hideForm'],
49
50
  };
50
51
  }
51
52
  function AppointmentBookingConfigDtoToJSON(json) {
@@ -67,5 +68,6 @@ function AppointmentBookingConfigDtoToJSONTyped(value, ignoreDiscriminator) {
67
68
  'minRequiredDays': value['minRequiredDays'],
68
69
  'shiftStartTime': value['shiftStartTime'],
69
70
  'currency': value['currency'],
71
+ 'hideForm': value['hideForm'],
70
72
  };
71
73
  }
@@ -13,6 +13,7 @@ import type { TimeSpanDto } from './TimeSpanDto';
13
13
  import type { AddressDto } from './AddressDto';
14
14
  import type { AppointmentStatus } from './AppointmentStatus';
15
15
  import type { AppointmentTimeSpanDto } from './AppointmentTimeSpanDto';
16
+ import type { ContactAddressDto } from './ContactAddressDto';
16
17
  /**
17
18
  * an appointment a user requested in the tenant portal or a member of the tenant created
18
19
  * @export
@@ -75,6 +76,14 @@ export interface AppointmentDto {
75
76
  * the files attached to the appointment; files removed from the list are deleted
76
77
  */
77
78
  fileIds?: Array<string>;
79
+ /**
80
+ * whom the appointment is invoiced to, with e-mail address and phone number
81
+ */
82
+ invoiceAddress?: ContactAddressDto;
83
+ /**
84
+ * notes of the requester on the appointment
85
+ */
86
+ notes?: string;
78
87
  }
79
88
  /**
80
89
  * Check if a given object implements the AppointmentDto interface.
@@ -22,6 +22,7 @@ var TimeSpanDto_1 = require("./TimeSpanDto");
22
22
  var AddressDto_1 = require("./AddressDto");
23
23
  var AppointmentStatus_1 = require("./AppointmentStatus");
24
24
  var AppointmentTimeSpanDto_1 = require("./AppointmentTimeSpanDto");
25
+ var ContactAddressDto_1 = require("./ContactAddressDto");
25
26
  /**
26
27
  * Check if a given object implements the AppointmentDto interface.
27
28
  */
@@ -56,6 +57,8 @@ function AppointmentDtoFromJSONTyped(json, ignoreDiscriminator) {
56
57
  'jsonFormValue': json['jsonFormValue'] == null ? undefined : json['jsonFormValue'],
57
58
  'formTypeId': json['formTypeId'] == null ? undefined : json['formTypeId'],
58
59
  'fileIds': json['fileIds'] == null ? undefined : json['fileIds'],
60
+ 'invoiceAddress': json['invoiceAddress'] == null ? undefined : (0, ContactAddressDto_1.ContactAddressDtoFromJSON)(json['invoiceAddress']),
61
+ 'notes': json['notes'] == null ? undefined : json['notes'],
59
62
  };
60
63
  }
61
64
  function AppointmentDtoToJSON(json) {
@@ -77,5 +80,7 @@ function AppointmentDtoToJSONTyped(value, ignoreDiscriminator) {
77
80
  'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
78
81
  'jsonFormValue': value['jsonFormValue'],
79
82
  'fileIds': value['fileIds'],
83
+ 'invoiceAddress': (0, ContactAddressDto_1.ContactAddressDtoToJSON)(value['invoiceAddress']),
84
+ 'notes': value['notes'],
80
85
  };
81
86
  }
@@ -26,6 +26,14 @@ export interface AppointmentProductDto {
26
26
  * net price; empty in the tenant portal while the tenant does not show prices
27
27
  */
28
28
  price?: number;
29
+ /**
30
+ * currency of the price
31
+ */
32
+ currency?: string;
33
+ /**
34
+ * tax rate in percent; empty in the tenant portal while the tenant does not show prices
35
+ */
36
+ taxRate?: number;
29
37
  /**
30
38
  * html formatted product description
31
39
  */
@@ -38,6 +38,8 @@ function AppointmentProductDtoFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'productId': json['productId'],
39
39
  'name': json['name'],
40
40
  'price': json['price'] == null ? undefined : json['price'],
41
+ 'currency': json['currency'] == null ? undefined : json['currency'],
42
+ 'taxRate': json['taxRate'] == null ? undefined : json['taxRate'],
41
43
  'description': json['description'] == null ? undefined : json['description'],
42
44
  'quantity': json['quantity'] == null ? undefined : json['quantity'],
43
45
  };
@@ -54,6 +56,8 @@ function AppointmentProductDtoToJSONTyped(value, ignoreDiscriminator) {
54
56
  'productId': value['productId'],
55
57
  'name': value['name'],
56
58
  'price': value['price'],
59
+ 'currency': value['currency'],
60
+ 'taxRate': value['taxRate'],
57
61
  'description': value['description'],
58
62
  };
59
63
  }
@@ -9,7 +9,7 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  /**
12
- * how near the requester is to the nearest place the slot is at: the location of its calendar entry and the appointments planned within it.
12
+ * how near the requester is to the nearest place the slot is at: the location of its calendar entry, the appointments planned within it and the appointments announced for one of its days.
13
13
  * CLOSE at the same stop by the routing configuration's sameDistance and sameDrivingTime, NEAR within its nearDrivingTime by car, FAR beyond. Missing when the request has no location, the slot has no place yet or routing is not configured.
14
14
  *
15
15
  * @export
@@ -19,7 +19,7 @@ exports.AppointmentSlotDistanceFromJSONTyped = AppointmentSlotDistanceFromJSONTy
19
19
  exports.AppointmentSlotDistanceToJSON = AppointmentSlotDistanceToJSON;
20
20
  exports.AppointmentSlotDistanceToJSONTyped = AppointmentSlotDistanceToJSONTyped;
21
21
  /**
22
- * how near the requester is to the nearest place the slot is at: the location of its calendar entry and the appointments planned within it.
22
+ * how near the requester is to the nearest place the slot is at: the location of its calendar entry, the appointments planned within it and the appointments announced for one of its days.
23
23
  * CLOSE at the same stop by the routing configuration's sameDistance and sameDrivingTime, NEAR within its nearDrivingTime by car, FAR beyond. Missing when the request has no location, the slot has no place yet or routing is not configured.
24
24
  *
25
25
  * @export
@@ -36,6 +36,10 @@ export interface AppointmentSlotDto {
36
36
  * whether every joined calendar entry of the slot is fully booked, i.e. booked entries leave none of its time free, or the planner would consider a new appointment on none of its days, because the work week already has the tenant's limit of planned, confirmed and candidate appointments, or the day already has the maximum number of stops and the appointment would need another one (the requester's place is not at one of them or unknown)
37
37
  */
38
38
  fullyBooked: boolean;
39
+ /**
40
+ * whether the requester's place most likely lies outside the route of every day of the slot that is not fully booked, i.e. the requester is neither CLOSE nor NEAR, the day has booked places and the driving time from its central place (the booked place nearest to the geographic center of the day's booked places) to the requester exceeds the routing configuration's maxDrivingTimeBetweenStops times the stops the day has left. False without requester location, for fully booked slots and while routing is not configured.
41
+ */
42
+ adverse: boolean;
39
43
  }
40
44
  /**
41
45
  * Check if a given object implements the AppointmentSlotDto interface.
@@ -29,6 +29,8 @@ function instanceOfAppointmentSlotDto(value) {
29
29
  return false;
30
30
  if (!('fullyBooked' in value) || value['fullyBooked'] === undefined)
31
31
  return false;
32
+ if (!('adverse' in value) || value['adverse'] === undefined)
33
+ return false;
32
34
  return true;
33
35
  }
34
36
  function AppointmentSlotDtoFromJSON(json) {
@@ -44,6 +46,7 @@ function AppointmentSlotDtoFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'description': json['description'] == null ? undefined : json['description'],
45
47
  'distance': json['distance'] == null ? undefined : (0, AppointmentSlotDistance_1.AppointmentSlotDistanceFromJSON)(json['distance']),
46
48
  'fullyBooked': json['fullyBooked'],
49
+ 'adverse': json['adverse'],
47
50
  };
48
51
  }
49
52
  function AppointmentSlotDtoToJSON(json) {
@@ -60,5 +63,6 @@ function AppointmentSlotDtoToJSONTyped(value, ignoreDiscriminator) {
60
63
  'description': value['description'],
61
64
  'distance': (0, AppointmentSlotDistance_1.AppointmentSlotDistanceToJSON)(value['distance']),
62
65
  'fullyBooked': value['fullyBooked'],
66
+ 'adverse': value['adverse'],
63
67
  };
64
68
  }
@@ -11,6 +11,7 @@
11
11
  import type { AppointmentProductSelectionDto } from './AppointmentProductSelectionDto';
12
12
  import type { TimeSpanDto } from './TimeSpanDto';
13
13
  import type { AddressDto } from './AddressDto';
14
+ import type { ContactAddressDto } from './ContactAddressDto';
14
15
  /**
15
16
  * the time spans a user is available in, requested in the tenant portal as one appointment at an optional address
16
17
  * @export
@@ -37,6 +38,14 @@ export interface AppointmentSubmissionDto {
37
38
  * the files the user uploaded for the appointment through the tenant portal uploads of the service AppointmentPortal
38
39
  */
39
40
  fileIds?: Array<string>;
41
+ /**
42
+ * whom the appointment is invoiced to, with e-mail address and phone number
43
+ */
44
+ invoiceAddress?: ContactAddressDto;
45
+ /**
46
+ * notes of the requester on the appointment
47
+ */
48
+ notes?: string;
40
49
  }
41
50
  /**
42
51
  * Check if a given object implements the AppointmentSubmissionDto interface.
@@ -20,6 +20,7 @@ exports.AppointmentSubmissionDtoToJSONTyped = AppointmentSubmissionDtoToJSONType
20
20
  var AppointmentProductSelectionDto_1 = require("./AppointmentProductSelectionDto");
21
21
  var TimeSpanDto_1 = require("./TimeSpanDto");
22
22
  var AddressDto_1 = require("./AddressDto");
23
+ var ContactAddressDto_1 = require("./ContactAddressDto");
23
24
  /**
24
25
  * Check if a given object implements the AppointmentSubmissionDto interface.
25
26
  */
@@ -41,6 +42,8 @@ function AppointmentSubmissionDtoFromJSONTyped(json, ignoreDiscriminator) {
41
42
  'address': json['address'] == null ? undefined : (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
42
43
  'formData': json['formData'] == null ? undefined : json['formData'],
43
44
  'fileIds': json['fileIds'] == null ? undefined : json['fileIds'],
45
+ 'invoiceAddress': json['invoiceAddress'] == null ? undefined : (0, ContactAddressDto_1.ContactAddressDtoFromJSON)(json['invoiceAddress']),
46
+ 'notes': json['notes'] == null ? undefined : json['notes'],
44
47
  };
45
48
  }
46
49
  function AppointmentSubmissionDtoToJSON(json) {
@@ -57,5 +60,7 @@ function AppointmentSubmissionDtoToJSONTyped(value, ignoreDiscriminator) {
57
60
  'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
58
61
  'formData': value['formData'],
59
62
  'fileIds': value['fileIds'],
63
+ 'invoiceAddress': (0, ContactAddressDto_1.ContactAddressDtoToJSON)(value['invoiceAddress']),
64
+ 'notes': value['notes'],
60
65
  };
61
66
  }