@kommerz/ts-client 1.193.0 → 1.194.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 (62) hide show
  1. package/dist/apis/AppointmentPortalApi.d.ts +4 -3
  2. package/dist/apis/AppointmentPortalApi.js +6 -5
  3. package/dist/apis/AppointmentUsersApi.d.ts +121 -0
  4. package/dist/apis/AppointmentUsersApi.js +387 -0
  5. package/dist/apis/AppointmentsApi.d.ts +2 -2
  6. package/dist/apis/CalendarEntryTypesApi.d.ts +2 -2
  7. package/dist/apis/DecisionTablesApi.d.ts +2 -2
  8. package/dist/apis/DesignTemplatesApi.d.ts +2 -2
  9. package/dist/apis/TextModulesApi.d.ts +2 -2
  10. package/dist/apis/UsersMeApi.d.ts +13 -0
  11. package/dist/apis/UsersMeApi.js +56 -0
  12. package/dist/apis/WorkflowExternalTasksApi.d.ts +2 -2
  13. package/dist/apis/WorkflowsApi.d.ts +2 -2
  14. package/dist/apis/index.d.ts +1 -0
  15. package/dist/apis/index.js +1 -0
  16. package/dist/models/AccountCalendarEntryDto.d.ts +38 -0
  17. package/dist/models/AccountCalendarEntryDto.js +59 -0
  18. package/dist/models/AddressDto.d.ts +8 -0
  19. package/dist/models/AddressDto.js +4 -0
  20. package/dist/models/AppointmentDto.d.ts +14 -5
  21. package/dist/models/AppointmentDto.js +9 -2
  22. package/dist/models/AppointmentPortalDto.d.ts +5 -0
  23. package/dist/models/AppointmentPortalDto.js +3 -0
  24. package/dist/models/AppointmentSubmissionDto.d.ts +35 -0
  25. package/dist/models/AppointmentSubmissionDto.js +54 -0
  26. package/dist/models/AppointmentUserDto.d.ts +51 -0
  27. package/dist/models/AppointmentUserDto.js +55 -0
  28. package/dist/models/AttendedCalendarEntryDto.d.ts +63 -0
  29. package/dist/models/AttendedCalendarEntryDto.js +76 -0
  30. package/dist/models/CalendarAttendeeDto.d.ts +4 -0
  31. package/dist/models/CalendarAttendeeDto.js +2 -0
  32. package/dist/models/CalendarEntryDto.d.ts +8 -0
  33. package/dist/models/CalendarEntryDto.js +4 -0
  34. package/dist/models/CalendarEntryTypeDto.d.ts +9 -1
  35. package/dist/models/CalendarEntryTypeDto.js +3 -0
  36. package/dist/models/CustomerAddressDto.d.ts +34 -0
  37. package/dist/models/CustomerAddressDto.js +55 -0
  38. package/dist/models/CustomerDto.d.ts +5 -0
  39. package/dist/models/CustomerDto.js +3 -0
  40. package/dist/models/DecisionTableDto.d.ts +5 -1
  41. package/dist/models/DecisionTableDto.js +1 -0
  42. package/dist/models/DesignTemplateDto.d.ts +5 -1
  43. package/dist/models/DesignTemplateDto.js +1 -0
  44. package/dist/models/EmailDto.d.ts +4 -0
  45. package/dist/models/EmailDto.js +2 -0
  46. package/dist/models/EntityType.d.ts +1 -0
  47. package/dist/models/EntityType.js +1 -0
  48. package/dist/models/GetAllAppointmentUsers200Response.d.ts +42 -0
  49. package/dist/models/GetAllAppointmentUsers200Response.js +59 -0
  50. package/dist/models/Permissions.d.ts +4 -0
  51. package/dist/models/Permissions.js +4 -0
  52. package/dist/models/RoutingConfigDto.d.ts +8 -0
  53. package/dist/models/RoutingConfigDto.js +4 -0
  54. package/dist/models/TextModuleDto.d.ts +5 -1
  55. package/dist/models/TextModuleDto.js +1 -0
  56. package/dist/models/WorkflowDto.d.ts +5 -1
  57. package/dist/models/WorkflowDto.js +1 -0
  58. package/dist/models/WorkflowExternalTaskDto.d.ts +5 -1
  59. package/dist/models/WorkflowExternalTaskDto.js +1 -0
  60. package/dist/models/index.d.ts +6 -0
  61. package/dist/models/index.js +6 -0
  62. package/package.json +1 -1
@@ -11,6 +11,7 @@
11
11
  import * as runtime from '../runtime';
12
12
  import { type AppointmentPortalDto } from '../models/AppointmentPortalDto';
13
13
  import { type AppointmentSlotDto } from '../models/AppointmentSlotDto';
14
+ import { type AppointmentSubmissionDto } from '../models/AppointmentSubmissionDto';
14
15
  import { type TimeSpanDto } from '../models/TimeSpanDto';
15
16
  export interface DeleteOwnAppointmentRequest {
16
17
  /**
@@ -72,7 +73,7 @@ export interface SubmitAppointmentsRequest {
72
73
  /**
73
74
  *
74
75
  */
75
- timeSpanDto: Array<TimeSpanDto>;
76
+ appointmentSubmissionDto: AppointmentSubmissionDto;
76
77
  }
77
78
  export interface UpdateOwnAppointmentRequest {
78
79
  /**
@@ -150,12 +151,12 @@ export declare class AppointmentPortalApi extends runtime.BaseAPI {
150
151
  submitAppointmentsRequestOpts(requestParameters: SubmitAppointmentsRequest): Promise<runtime.RequestOpts>;
151
152
  /**
152
153
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
153
- * request an appointment for each of the time spans
154
+ * request an appointment for each of the time spans, at the optional address
154
155
  */
155
156
  submitAppointmentsRaw(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AppointmentPortalDto>>>;
156
157
  /**
157
158
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
158
- * request an appointment for each of the time spans
159
+ * request an appointment for each of the time spans, at the optional address
159
160
  */
160
161
  submitAppointments(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppointmentPortalDto>>;
161
162
  /**
@@ -67,6 +67,7 @@ exports.AppointmentPortalApi = void 0;
67
67
  var runtime = require("../runtime");
68
68
  var AppointmentPortalDto_1 = require("../models/AppointmentPortalDto");
69
69
  var AppointmentSlotDto_1 = require("../models/AppointmentSlotDto");
70
+ var AppointmentSubmissionDto_1 = require("../models/AppointmentSubmissionDto");
70
71
  var TimeSpanDto_1 = require("../models/TimeSpanDto");
71
72
  /**
72
73
  *
@@ -353,8 +354,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
353
354
  if (requestParameters['handle'] == null) {
354
355
  throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling submitAppointments().');
355
356
  }
356
- if (requestParameters['timeSpanDto'] == null) {
357
- throw new runtime.RequiredError('timeSpanDto', 'Required parameter "timeSpanDto" was null or undefined when calling submitAppointments().');
357
+ if (requestParameters['appointmentSubmissionDto'] == null) {
358
+ throw new runtime.RequiredError('appointmentSubmissionDto', 'Required parameter "appointmentSubmissionDto" was null or undefined when calling submitAppointments().');
358
359
  }
359
360
  queryParameters = {};
360
361
  headerParameters = {};
@@ -366,14 +367,14 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
366
367
  method: 'POST',
367
368
  headers: headerParameters,
368
369
  query: queryParameters,
369
- body: requestParameters['timeSpanDto'].map(TimeSpanDto_1.TimeSpanDtoToJSON),
370
+ body: (0, AppointmentSubmissionDto_1.AppointmentSubmissionDtoToJSON)(requestParameters['appointmentSubmissionDto']),
370
371
  }];
371
372
  });
372
373
  });
373
374
  };
374
375
  /**
375
376
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
376
- * request an appointment for each of the time spans
377
+ * request an appointment for each of the time spans, at the optional address
377
378
  */
378
379
  AppointmentPortalApi.prototype.submitAppointmentsRaw = function (requestParameters, initOverrides) {
379
380
  return __awaiter(this, void 0, void 0, function () {
@@ -393,7 +394,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
393
394
  };
394
395
  /**
395
396
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
396
- * request an appointment for each of the time spans
397
+ * request an appointment for each of the time spans, at the optional address
397
398
  */
398
399
  AppointmentPortalApi.prototype.submitAppointments = function (requestParameters, initOverrides) {
399
400
  return __awaiter(this, void 0, void 0, function () {
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Kommerz API Specification
3
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
4
+ *
5
+ * Contact: info@kommerz.app
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import * as runtime from '../runtime';
12
+ import { type AppointmentUserDto } from '../models/AppointmentUserDto';
13
+ import { type GetAllAppointmentUsers200Response } from '../models/GetAllAppointmentUsers200Response';
14
+ import { type KommerzPageable } from '../models/KommerzPageable';
15
+ export interface CreateAppointmentUserRequest {
16
+ /**
17
+ *
18
+ */
19
+ appointmentUserDto: Omit<AppointmentUserDto, 'userId' | 'userName' | 'customerName'>;
20
+ }
21
+ export interface DeleteAppointmentUserRequest {
22
+ /**
23
+ * id of entity
24
+ */
25
+ id: string;
26
+ }
27
+ export interface GetAllAppointmentUsersRequest {
28
+ /**
29
+ * Pageable query parameters
30
+ */
31
+ pageable: KommerzPageable;
32
+ /**
33
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
34
+ */
35
+ filter?: Array<string>;
36
+ }
37
+ export interface GetAppointmentUserRequest {
38
+ /**
39
+ * id of entity
40
+ */
41
+ id: string;
42
+ }
43
+ export interface UpdateAppointmentUserRequest {
44
+ /**
45
+ * id of entity
46
+ */
47
+ id: string;
48
+ /**
49
+ *
50
+ */
51
+ appointmentUserDto: Omit<AppointmentUserDto, 'userId' | 'userName' | 'customerName'>;
52
+ /**
53
+ * whether to force update the entity
54
+ */
55
+ force?: boolean;
56
+ }
57
+ /**
58
+ *
59
+ */
60
+ export declare class AppointmentUsersApi extends runtime.BaseAPI {
61
+ /**
62
+ * Creates request options for createAppointmentUser without sending the request
63
+ */
64
+ createAppointmentUserRequestOpts(requestParameters: CreateAppointmentUserRequest): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * create an appointment user for a customer
67
+ */
68
+ createAppointmentUserRaw(requestParameters: CreateAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentUserDto>>;
69
+ /**
70
+ * create an appointment user for a customer
71
+ */
72
+ createAppointmentUser(requestParameters: CreateAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentUserDto>;
73
+ /**
74
+ * Creates request options for deleteAppointmentUser without sending the request
75
+ */
76
+ deleteAppointmentUserRequestOpts(requestParameters: DeleteAppointmentUserRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * delete an appointment user
79
+ */
80
+ deleteAppointmentUserRaw(requestParameters: DeleteAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
81
+ /**
82
+ * delete an appointment user
83
+ */
84
+ deleteAppointmentUser(requestParameters: DeleteAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
+ /**
86
+ * Creates request options for getAllAppointmentUsers without sending the request
87
+ */
88
+ getAllAppointmentUsersRequestOpts(requestParameters: GetAllAppointmentUsersRequest): Promise<runtime.RequestOpts>;
89
+ /**
90
+ * get all appointment users of the tenant
91
+ */
92
+ getAllAppointmentUsersRaw(requestParameters: GetAllAppointmentUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAppointmentUsers200Response>>;
93
+ /**
94
+ * get all appointment users of the tenant
95
+ */
96
+ getAllAppointmentUsers(requestParameters: GetAllAppointmentUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAppointmentUsers200Response>;
97
+ /**
98
+ * Creates request options for getAppointmentUser without sending the request
99
+ */
100
+ getAppointmentUserRequestOpts(requestParameters: GetAppointmentUserRequest): Promise<runtime.RequestOpts>;
101
+ /**
102
+ * read one appointment user
103
+ */
104
+ getAppointmentUserRaw(requestParameters: GetAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentUserDto>>;
105
+ /**
106
+ * read one appointment user
107
+ */
108
+ getAppointmentUser(requestParameters: GetAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentUserDto>;
109
+ /**
110
+ * Creates request options for updateAppointmentUser without sending the request
111
+ */
112
+ updateAppointmentUserRequestOpts(requestParameters: UpdateAppointmentUserRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * update an appointment user, e.g. to assign a customer
115
+ */
116
+ updateAppointmentUserRaw(requestParameters: UpdateAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentUserDto>>;
117
+ /**
118
+ * update an appointment user, e.g. to assign a customer
119
+ */
120
+ updateAppointmentUser(requestParameters: UpdateAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentUserDto>;
121
+ }
@@ -0,0 +1,387 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Kommerz API Specification
6
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
7
+ *
8
+ * Contact: info@kommerz.app
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __extends = (this && this.__extends) || (function () {
15
+ var extendStatics = function (d, b) {
16
+ extendStatics = Object.setPrototypeOf ||
17
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19
+ return extendStatics(d, b);
20
+ };
21
+ return function (d, b) {
22
+ if (typeof b !== "function" && b !== null)
23
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
24
+ extendStatics(d, b);
25
+ function __() { this.constructor = d; }
26
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
+ };
28
+ })();
29
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
30
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
31
+ return new (P || (P = Promise))(function (resolve, reject) {
32
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
33
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
34
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
35
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
36
+ });
37
+ };
38
+ var __generator = (this && this.__generator) || function (thisArg, body) {
39
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
41
+ function verb(n) { return function (v) { return step([n, v]); }; }
42
+ function step(op) {
43
+ if (f) throw new TypeError("Generator is already executing.");
44
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
45
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
46
+ if (y = 0, t) op = [op[0] & 2, t.value];
47
+ switch (op[0]) {
48
+ case 0: case 1: t = op; break;
49
+ case 4: _.label++; return { value: op[1], done: false };
50
+ case 5: _.label++; y = op[1]; op = [0]; continue;
51
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
52
+ default:
53
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
54
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
55
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
56
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
57
+ if (t[2]) _.ops.pop();
58
+ _.trys.pop(); continue;
59
+ }
60
+ op = body.call(thisArg, _);
61
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
62
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
63
+ }
64
+ };
65
+ Object.defineProperty(exports, "__esModule", { value: true });
66
+ exports.AppointmentUsersApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var AppointmentUserDto_1 = require("../models/AppointmentUserDto");
69
+ var GetAllAppointmentUsers200Response_1 = require("../models/GetAllAppointmentUsers200Response");
70
+ /**
71
+ *
72
+ */
73
+ var AppointmentUsersApi = /** @class */ (function (_super) {
74
+ __extends(AppointmentUsersApi, _super);
75
+ function AppointmentUsersApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Creates request options for createAppointmentUser without sending the request
80
+ */
81
+ AppointmentUsersApi.prototype.createAppointmentUserRequestOpts = 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['appointmentUserDto'] == null) {
86
+ throw new runtime.RequiredError('appointmentUserDto', 'Required parameter "appointmentUserDto" was null or undefined when calling createAppointmentUser().');
87
+ }
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ headerParameters['Content-Type'] = 'application/json';
91
+ urlPath = "/ui/appointment-users/v1";
92
+ return [2 /*return*/, {
93
+ path: urlPath,
94
+ method: 'POST',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: (0, AppointmentUserDto_1.AppointmentUserDtoToJSON)(requestParameters['appointmentUserDto']),
98
+ }];
99
+ });
100
+ });
101
+ };
102
+ /**
103
+ * create an appointment user for a customer
104
+ */
105
+ AppointmentUsersApi.prototype.createAppointmentUserRaw = 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.createAppointmentUserRequestOpts(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, AppointmentUserDto_1.AppointmentUserDtoFromJSON)(jsonValue); })];
117
+ }
118
+ });
119
+ });
120
+ };
121
+ /**
122
+ * create an appointment user for a customer
123
+ */
124
+ AppointmentUsersApi.prototype.createAppointmentUser = 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.createAppointmentUserRaw(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 deleteAppointmentUser without sending the request
140
+ */
141
+ AppointmentUsersApi.prototype.deleteAppointmentUserRequestOpts = 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 deleteAppointmentUser().');
147
+ }
148
+ queryParameters = {};
149
+ headerParameters = {};
150
+ urlPath = "/ui/appointment-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 an appointment user
163
+ */
164
+ AppointmentUsersApi.prototype.deleteAppointmentUserRaw = 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.deleteAppointmentUserRequestOpts(requestParameters)];
170
+ case 1:
171
+ requestOptions = _a.sent();
172
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
173
+ case 2:
174
+ response = _a.sent();
175
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
176
+ }
177
+ });
178
+ });
179
+ };
180
+ /**
181
+ * delete an appointment user
182
+ */
183
+ AppointmentUsersApi.prototype.deleteAppointmentUser = 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.deleteAppointmentUserRaw(requestParameters, initOverrides)];
188
+ case 1:
189
+ _a.sent();
190
+ return [2 /*return*/];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Creates request options for getAllAppointmentUsers without sending the request
197
+ */
198
+ AppointmentUsersApi.prototype.getAllAppointmentUsersRequestOpts = 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 getAllAppointmentUsers().');
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/appointment-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 appointment users of the tenant
225
+ */
226
+ AppointmentUsersApi.prototype.getAllAppointmentUsersRaw = 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.getAllAppointmentUsersRequestOpts(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, GetAllAppointmentUsers200Response_1.GetAllAppointmentUsers200ResponseFromJSON)(jsonValue); })];
238
+ }
239
+ });
240
+ });
241
+ };
242
+ /**
243
+ * get all appointment users of the tenant
244
+ */
245
+ AppointmentUsersApi.prototype.getAllAppointmentUsers = 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.getAllAppointmentUsersRaw(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 getAppointmentUser without sending the request
261
+ */
262
+ AppointmentUsersApi.prototype.getAppointmentUserRequestOpts = 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 getAppointmentUser().');
268
+ }
269
+ queryParameters = {};
270
+ headerParameters = {};
271
+ urlPath = "/ui/appointment-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 appointment user
284
+ */
285
+ AppointmentUsersApi.prototype.getAppointmentUserRaw = 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.getAppointmentUserRequestOpts(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, AppointmentUserDto_1.AppointmentUserDtoFromJSON)(jsonValue); })];
297
+ }
298
+ });
299
+ });
300
+ };
301
+ /**
302
+ * read one appointment user
303
+ */
304
+ AppointmentUsersApi.prototype.getAppointmentUser = 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.getAppointmentUserRaw(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 updateAppointmentUser without sending the request
320
+ */
321
+ AppointmentUsersApi.prototype.updateAppointmentUserRequestOpts = 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 updateAppointmentUser().');
327
+ }
328
+ if (requestParameters['appointmentUserDto'] == null) {
329
+ throw new runtime.RequiredError('appointmentUserDto', 'Required parameter "appointmentUserDto" was null or undefined when calling updateAppointmentUser().');
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/appointment-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, AppointmentUserDto_1.AppointmentUserDtoToJSON)(requestParameters['appointmentUserDto']),
345
+ }];
346
+ });
347
+ });
348
+ };
349
+ /**
350
+ * update an appointment user, e.g. to assign a customer
351
+ */
352
+ AppointmentUsersApi.prototype.updateAppointmentUserRaw = 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.updateAppointmentUserRequestOpts(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, AppointmentUserDto_1.AppointmentUserDtoFromJSON)(jsonValue); })];
364
+ }
365
+ });
366
+ });
367
+ };
368
+ /**
369
+ * update an appointment user, e.g. to assign a customer
370
+ */
371
+ AppointmentUsersApi.prototype.updateAppointmentUser = 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.updateAppointmentUserRaw(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 AppointmentUsersApi;
386
+ }(runtime.BaseAPI));
387
+ exports.AppointmentUsersApi = AppointmentUsersApi;
@@ -16,7 +16,7 @@ export interface CreateAppointmentRequest {
16
16
  /**
17
17
  *
18
18
  */
19
- appointmentDto: Omit<AppointmentDto, 'userId' | 'userName'>;
19
+ appointmentDto: Omit<AppointmentDto, 'appointmentUserName' | 'calendarEntryId'>;
20
20
  }
21
21
  export interface DeleteAppointmentRequest {
22
22
  /**
@@ -48,7 +48,7 @@ export interface UpdateAppointmentRequest {
48
48
  /**
49
49
  *
50
50
  */
51
- appointmentDto: Omit<AppointmentDto, 'userId' | 'userName'>;
51
+ appointmentDto: Omit<AppointmentDto, 'appointmentUserName' | 'calendarEntryId'>;
52
52
  /**
53
53
  * whether to force update the entity
54
54
  */
@@ -16,7 +16,7 @@ export interface CreateCalendarEntryTypeRequest {
16
16
  /**
17
17
  *
18
18
  */
19
- calendarEntryTypeDto: CalendarEntryTypeDto;
19
+ calendarEntryTypeDto: Omit<CalendarEntryTypeDto, 'managed'>;
20
20
  }
21
21
  export interface DeleteCalendarEntryTypeRequest {
22
22
  /**
@@ -48,7 +48,7 @@ export interface UpdateCalendarEntryTypeRequest {
48
48
  /**
49
49
  *
50
50
  */
51
- calendarEntryTypeDto: CalendarEntryTypeDto;
51
+ calendarEntryTypeDto: Omit<CalendarEntryTypeDto, 'managed'>;
52
52
  /**
53
53
  * whether to force update the entity
54
54
  */
@@ -16,7 +16,7 @@ export interface CreateDecisionTableRequest {
16
16
  /**
17
17
  *
18
18
  */
19
- decisionTableDto: DecisionTableDto;
19
+ decisionTableDto: Omit<DecisionTableDto, 'managed'>;
20
20
  }
21
21
  export interface DeleteDecisionTableRequest {
22
22
  /**
@@ -48,7 +48,7 @@ export interface UpdateDecisionTableRequest {
48
48
  /**
49
49
  *
50
50
  */
51
- decisionTableDto: DecisionTableDto;
51
+ decisionTableDto: Omit<DecisionTableDto, 'managed'>;
52
52
  /**
53
53
  * whether to force update the entity
54
54
  */
@@ -16,7 +16,7 @@ export interface CreateDesignTemplateRequest {
16
16
  /**
17
17
  *
18
18
  */
19
- designTemplateDto: DesignTemplateDto;
19
+ designTemplateDto: Omit<DesignTemplateDto, 'managed'>;
20
20
  }
21
21
  export interface DeleteDesignTemplateRequest {
22
22
  /**
@@ -48,7 +48,7 @@ export interface UpdateDesignTemplateRequest {
48
48
  /**
49
49
  *
50
50
  */
51
- designTemplateDto: DesignTemplateDto;
51
+ designTemplateDto: Omit<DesignTemplateDto, 'managed'>;
52
52
  /**
53
53
  * whether to force update the entity
54
54
  */