@kommerz/ts-client 1.194.1 → 1.196.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 (84) 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 +79 -11
  4. package/dist/apis/AppointmentPortalApi.js +202 -11
  5. package/dist/apis/AppointmentUsersApi.js +5 -5
  6. package/dist/apis/AppointmentsApi.d.ts +24 -2
  7. package/dist/apis/AppointmentsApi.js +69 -5
  8. package/dist/apis/BankingAccountsApi.js +1 -1
  9. package/dist/apis/BankingRegistrationsApi.js +1 -1
  10. package/dist/apis/FileDirectorySharesApi.d.ts +4 -4
  11. package/dist/apis/FileDirectorySharesApi.js +8 -8
  12. package/dist/apis/FormsPortalApi.d.ts +6 -4
  13. package/dist/apis/FormsPortalApi.js +10 -8
  14. package/dist/apis/InvoicePortalApi.d.ts +2 -2
  15. package/dist/apis/InvoicePortalApi.js +4 -4
  16. package/dist/apis/LegalEntityUsersApi.d.ts +121 -0
  17. package/dist/apis/LegalEntityUsersApi.js +387 -0
  18. package/dist/apis/NotificationTargetsApi.js +1 -1
  19. package/dist/apis/NotificationsAcksApi.js +2 -2
  20. package/dist/apis/NotificationsApi.js +3 -3
  21. package/dist/apis/PresenceEntriesApi.js +1 -1
  22. package/dist/apis/TimeTrackingCalendarApi.js +2 -2
  23. package/dist/apis/TimeTrackingCalendarExportApi.js +1 -1
  24. package/dist/apis/UsersMeApi.d.ts +58 -9
  25. package/dist/apis/UsersMeApi.js +103 -14
  26. package/dist/apis/index.d.ts +1 -2
  27. package/dist/apis/index.js +1 -2
  28. package/dist/models/AccountCalendarEntryDto.d.ts +5 -0
  29. package/dist/models/AccountCalendarEntryDto.js +3 -0
  30. package/dist/models/AccountCalendarEntryRsvpDto.d.ts +33 -0
  31. package/dist/models/AccountCalendarEntryRsvpDto.js +54 -0
  32. package/dist/models/AppointmentBlockerDto.d.ts +51 -0
  33. package/dist/models/AppointmentBlockerDto.js +66 -0
  34. package/dist/models/AppointmentBookingConfigDto.d.ts +37 -0
  35. package/dist/models/AppointmentBookingConfigDto.js +52 -0
  36. package/dist/models/AppointmentDto.d.ts +18 -8
  37. package/dist/models/AppointmentDto.js +11 -6
  38. package/dist/models/AppointmentEmailTemplateDto.d.ts +33 -0
  39. package/dist/models/AppointmentEmailTemplateDto.js +50 -0
  40. package/dist/models/AppointmentEmailTemplatesDto.d.ts +54 -0
  41. package/dist/models/AppointmentEmailTemplatesDto.js +61 -0
  42. package/dist/models/AppointmentPortalDto.d.ts +8 -2
  43. package/dist/models/AppointmentPortalDto.js +6 -2
  44. package/dist/models/AppointmentProductDto.d.ts +45 -0
  45. package/dist/models/AppointmentProductDto.js +59 -0
  46. package/dist/models/AppointmentProductSelectionDto.d.ts +33 -0
  47. package/dist/models/AppointmentProductSelectionDto.js +54 -0
  48. package/dist/models/AppointmentSlotDistance.d.ts +3 -1
  49. package/dist/models/AppointmentSlotDistance.js +3 -1
  50. package/dist/models/AppointmentSlotDto.d.ts +4 -0
  51. package/dist/models/AppointmentSlotDto.js +4 -0
  52. package/dist/models/AppointmentStatus.d.ts +9 -3
  53. package/dist/models/AppointmentStatus.js +9 -3
  54. package/dist/models/AppointmentSubmissionDto.d.ts +11 -2
  55. package/dist/models/AppointmentSubmissionDto.js +5 -0
  56. package/dist/models/AppointmentTimeSpanDto.d.ts +39 -0
  57. package/dist/models/AppointmentTimeSpanDto.js +58 -0
  58. package/dist/models/AppointmentTimeSpanStatus.d.ts +35 -0
  59. package/dist/models/AppointmentTimeSpanStatus.js +61 -0
  60. package/dist/models/CalendarEntryTypeDto.d.ts +4 -0
  61. package/dist/models/CalendarEntryTypeDto.js +2 -0
  62. package/dist/models/CalendarPortalEventDto.d.ts +4 -0
  63. package/dist/models/CalendarPortalEventDto.js +4 -0
  64. package/dist/models/EmailDto.d.ts +4 -0
  65. package/dist/models/EmailDto.js +2 -0
  66. package/dist/models/EntityType.d.ts +1 -1
  67. package/dist/models/EntityType.js +1 -1
  68. package/dist/models/FormsPortalLegalEntityUserRequestDto.d.ts +29 -0
  69. package/dist/models/FormsPortalLegalEntityUserRequestDto.js +50 -0
  70. package/dist/models/FormsPortalSubmissionDto.d.ts +29 -0
  71. package/dist/models/FormsPortalSubmissionDto.js +50 -0
  72. package/dist/models/GetAllLegalEntityUsers200Response.d.ts +42 -0
  73. package/dist/models/GetAllLegalEntityUsers200Response.js +59 -0
  74. package/dist/models/GetMyAppointments200Response.d.ts +42 -0
  75. package/dist/models/GetMyAppointments200Response.js +59 -0
  76. package/dist/models/LegalEntityUserDto.d.ts +71 -0
  77. package/dist/models/LegalEntityUserDto.js +63 -0
  78. package/dist/models/Permissions.d.ts +4 -4
  79. package/dist/models/Permissions.js +4 -4
  80. package/dist/models/RoutingConfigDto.d.ts +16 -3
  81. package/dist/models/RoutingConfigDto.js +10 -3
  82. package/dist/models/index.d.ts +12 -3
  83. package/dist/models/index.js +12 -3
  84. package/package.json +1 -1
@@ -9,14 +9,22 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import * as runtime from '../runtime';
12
+ import { type AppointmentBlockerDto } from '../models/AppointmentBlockerDto';
12
13
  import { type AppointmentDto } from '../models/AppointmentDto';
14
+ import { type CalendarEntryDto } from '../models/CalendarEntryDto';
13
15
  import { type GetAllAppointments200Response } from '../models/GetAllAppointments200Response';
14
16
  import { type KommerzPageable } from '../models/KommerzPageable';
15
17
  export interface CreateAppointmentRequest {
16
18
  /**
17
19
  *
18
20
  */
19
- appointmentDto: Omit<AppointmentDto, 'appointmentUserName' | 'calendarEntryId'>;
21
+ appointmentDto: Omit<AppointmentDto, 'products' | 'legalEntityUserName' | 'calendarEntryId'>;
22
+ }
23
+ export interface CreateAppointmentBlockerRequest {
24
+ /**
25
+ *
26
+ */
27
+ appointmentBlockerDto: AppointmentBlockerDto;
20
28
  }
21
29
  export interface DeleteAppointmentRequest {
22
30
  /**
@@ -48,7 +56,7 @@ export interface UpdateAppointmentRequest {
48
56
  /**
49
57
  *
50
58
  */
51
- appointmentDto: Omit<AppointmentDto, 'appointmentUserName' | 'calendarEntryId'>;
59
+ appointmentDto: Omit<AppointmentDto, 'products' | 'legalEntityUserName' | 'calendarEntryId'>;
52
60
  /**
53
61
  * whether to force update the entity
54
62
  */
@@ -70,6 +78,20 @@ export declare class AppointmentsApi extends runtime.BaseAPI {
70
78
  * create an appointment of the logged-in user
71
79
  */
72
80
  createAppointment(requestParameters: CreateAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentDto>;
81
+ /**
82
+ * Creates request options for createAppointmentBlocker without sending the request
83
+ */
84
+ createAppointmentBlockerRequestOpts(requestParameters: CreateAppointmentBlockerRequest): Promise<runtime.RequestOpts>;
85
+ /**
86
+ * Creates a calendar entry of the managed appointment calendar entry type the routing configuration names. The planner treats it as a blocker and plans no appointment into its time span. Its attendees are not invited.
87
+ * block time of a user for appointment planning
88
+ */
89
+ createAppointmentBlockerRaw(requestParameters: CreateAppointmentBlockerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEntryDto>>;
90
+ /**
91
+ * Creates a calendar entry of the managed appointment calendar entry type the routing configuration names. The planner treats it as a blocker and plans no appointment into its time span. Its attendees are not invited.
92
+ * block time of a user for appointment planning
93
+ */
94
+ createAppointmentBlocker(requestParameters: CreateAppointmentBlockerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEntryDto>;
73
95
  /**
74
96
  * Creates request options for deleteAppointment without sending the request
75
97
  */
@@ -65,7 +65,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
65
65
  Object.defineProperty(exports, "__esModule", { value: true });
66
66
  exports.AppointmentsApi = void 0;
67
67
  var runtime = require("../runtime");
68
+ var AppointmentBlockerDto_1 = require("../models/AppointmentBlockerDto");
68
69
  var AppointmentDto_1 = require("../models/AppointmentDto");
70
+ var CalendarEntryDto_1 = require("../models/CalendarEntryDto");
69
71
  var GetAllAppointments200Response_1 = require("../models/GetAllAppointments200Response");
70
72
  /**
71
73
  *
@@ -88,7 +90,7 @@ var AppointmentsApi = /** @class */ (function (_super) {
88
90
  queryParameters = {};
89
91
  headerParameters = {};
90
92
  headerParameters['Content-Type'] = 'application/json';
91
- urlPath = "/ui/appointments/v1";
93
+ urlPath = "/ui/appointments/v1/appointments";
92
94
  return [2 /*return*/, {
93
95
  path: urlPath,
94
96
  method: 'POST',
@@ -135,6 +137,68 @@ var AppointmentsApi = /** @class */ (function (_super) {
135
137
  });
136
138
  });
137
139
  };
140
+ /**
141
+ * Creates request options for createAppointmentBlocker without sending the request
142
+ */
143
+ AppointmentsApi.prototype.createAppointmentBlockerRequestOpts = function (requestParameters) {
144
+ return __awaiter(this, void 0, void 0, function () {
145
+ var queryParameters, headerParameters, urlPath;
146
+ return __generator(this, function (_a) {
147
+ if (requestParameters['appointmentBlockerDto'] == null) {
148
+ throw new runtime.RequiredError('appointmentBlockerDto', 'Required parameter "appointmentBlockerDto" was null or undefined when calling createAppointmentBlocker().');
149
+ }
150
+ queryParameters = {};
151
+ headerParameters = {};
152
+ headerParameters['Content-Type'] = 'application/json';
153
+ urlPath = "/ui/appointments/v1/blockers";
154
+ return [2 /*return*/, {
155
+ path: urlPath,
156
+ method: 'POST',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ body: (0, AppointmentBlockerDto_1.AppointmentBlockerDtoToJSON)(requestParameters['appointmentBlockerDto']),
160
+ }];
161
+ });
162
+ });
163
+ };
164
+ /**
165
+ * Creates a calendar entry of the managed appointment calendar entry type the routing configuration names. The planner treats it as a blocker and plans no appointment into its time span. Its attendees are not invited.
166
+ * block time of a user for appointment planning
167
+ */
168
+ AppointmentsApi.prototype.createAppointmentBlockerRaw = function (requestParameters, initOverrides) {
169
+ return __awaiter(this, void 0, void 0, function () {
170
+ var requestOptions, response;
171
+ return __generator(this, function (_a) {
172
+ switch (_a.label) {
173
+ case 0: return [4 /*yield*/, this.createAppointmentBlockerRequestOpts(requestParameters)];
174
+ case 1:
175
+ requestOptions = _a.sent();
176
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
177
+ case 2:
178
+ response = _a.sent();
179
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CalendarEntryDto_1.CalendarEntryDtoFromJSON)(jsonValue); })];
180
+ }
181
+ });
182
+ });
183
+ };
184
+ /**
185
+ * Creates a calendar entry of the managed appointment calendar entry type the routing configuration names. The planner treats it as a blocker and plans no appointment into its time span. Its attendees are not invited.
186
+ * block time of a user for appointment planning
187
+ */
188
+ AppointmentsApi.prototype.createAppointmentBlocker = function (requestParameters, initOverrides) {
189
+ return __awaiter(this, void 0, void 0, function () {
190
+ var response;
191
+ return __generator(this, function (_a) {
192
+ switch (_a.label) {
193
+ case 0: return [4 /*yield*/, this.createAppointmentBlockerRaw(requestParameters, initOverrides)];
194
+ case 1:
195
+ response = _a.sent();
196
+ return [4 /*yield*/, response.value()];
197
+ case 2: return [2 /*return*/, _a.sent()];
198
+ }
199
+ });
200
+ });
201
+ };
138
202
  /**
139
203
  * Creates request options for deleteAppointment without sending the request
140
204
  */
@@ -147,7 +211,7 @@ var AppointmentsApi = /** @class */ (function (_super) {
147
211
  }
148
212
  queryParameters = {};
149
213
  headerParameters = {};
150
- urlPath = "/ui/appointments/v1/{id}";
214
+ urlPath = "/ui/appointments/v1/appointments/{id}";
151
215
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
152
216
  return [2 /*return*/, {
153
217
  path: urlPath,
@@ -210,7 +274,7 @@ var AppointmentsApi = /** @class */ (function (_super) {
210
274
  queryParameters['filter'] = requestParameters['filter'];
211
275
  }
212
276
  headerParameters = {};
213
- urlPath = "/ui/appointments/v1";
277
+ urlPath = "/ui/appointments/v1/appointments";
214
278
  return [2 /*return*/, {
215
279
  path: urlPath,
216
280
  method: 'GET',
@@ -268,7 +332,7 @@ var AppointmentsApi = /** @class */ (function (_super) {
268
332
  }
269
333
  queryParameters = {};
270
334
  headerParameters = {};
271
- urlPath = "/ui/appointments/v1/{id}";
335
+ urlPath = "/ui/appointments/v1/appointments/{id}";
272
336
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
273
337
  return [2 /*return*/, {
274
338
  path: urlPath,
@@ -334,7 +398,7 @@ var AppointmentsApi = /** @class */ (function (_super) {
334
398
  }
335
399
  headerParameters = {};
336
400
  headerParameters['Content-Type'] = 'application/json';
337
- urlPath = "/ui/appointments/v1/{id}";
401
+ urlPath = "/ui/appointments/v1/appointments/{id}";
338
402
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
339
403
  return [2 /*return*/, {
340
404
  path: urlPath,
@@ -405,7 +405,7 @@ var BankingAccountsApi = /** @class */ (function (_super) {
405
405
  }
406
406
  queryParameters = {};
407
407
  headerParameters = {};
408
- urlPath = "/ui/banking/v1/registrations/{id}/accounts/available";
408
+ urlPath = "/ui/banking/v1/registrations/{id}/available-accounts";
409
409
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
410
410
  return [2 /*return*/, {
411
411
  path: urlPath,
@@ -155,7 +155,7 @@ var BankingRegistrationsApi = /** @class */ (function (_super) {
155
155
  queryParameters['error'] = requestParameters['error'];
156
156
  }
157
157
  headerParameters = {};
158
- urlPath = "/ui/banking/v1/registrations/completed";
158
+ urlPath = "/ui/banking/v1/registration-completions";
159
159
  return [2 /*return*/, {
160
160
  path: urlPath,
161
161
  method: 'GET',
@@ -82,9 +82,9 @@ export interface GetDownloadShareInfoRequest {
82
82
  */
83
83
  handle: string;
84
84
  /**
85
- * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
85
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
86
86
  */
87
- authorization: string;
87
+ xPortalSecret: string;
88
88
  }
89
89
  export interface GetDownloadShareListingRequest {
90
90
  /**
@@ -92,9 +92,9 @@ export interface GetDownloadShareListingRequest {
92
92
  */
93
93
  handle: string;
94
94
  /**
95
- * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
95
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
96
96
  */
97
- authorization: string;
97
+ xPortalSecret: string;
98
98
  /**
99
99
  *
100
100
  */
@@ -422,13 +422,13 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
422
422
  if (requestParameters['handle'] == null) {
423
423
  throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getDownloadShareInfo().');
424
424
  }
425
- if (requestParameters['authorization'] == null) {
426
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getDownloadShareInfo().');
425
+ if (requestParameters['xPortalSecret'] == null) {
426
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling getDownloadShareInfo().');
427
427
  }
428
428
  queryParameters = {};
429
429
  headerParameters = {};
430
- if (requestParameters['authorization'] != null) {
431
- headerParameters['Authorization'] = String(requestParameters['authorization']);
430
+ if (requestParameters['xPortalSecret'] != null) {
431
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
432
432
  }
433
433
  urlPath = "/ui/tenant-portal/v1/{handle}/file-shares";
434
434
  urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
@@ -487,13 +487,13 @@ var FileDirectorySharesApi = /** @class */ (function (_super) {
487
487
  if (requestParameters['handle'] == null) {
488
488
  throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getDownloadShareListing().');
489
489
  }
490
- if (requestParameters['authorization'] == null) {
491
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getDownloadShareListing().');
490
+ if (requestParameters['xPortalSecret'] == null) {
491
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling getDownloadShareListing().');
492
492
  }
493
493
  queryParameters = {};
494
494
  headerParameters = {};
495
- if (requestParameters['authorization'] != null) {
496
- headerParameters['Authorization'] = String(requestParameters['authorization']);
495
+ if (requestParameters['xPortalSecret'] != null) {
496
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
497
497
  }
498
498
  if (requestParameters['password'] != null) {
499
499
  headerParameters['password'] = String(requestParameters['password']);
@@ -17,9 +17,9 @@ export interface CreateFormsPortalEntryRequest {
17
17
  */
18
18
  handle: string;
19
19
  /**
20
- * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
20
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
21
21
  */
22
- authorization: string;
22
+ xPortalSecret: string;
23
23
  /**
24
24
  *
25
25
  */
@@ -31,9 +31,9 @@ export interface GetFormsPortalFormRequest {
31
31
  */
32
32
  handle: string;
33
33
  /**
34
- * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
34
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
35
35
  */
36
- authorization: string;
36
+ xPortalSecret: string;
37
37
  }
38
38
  /**
39
39
  *
@@ -44,10 +44,12 @@ export declare class FormsPortalApi extends runtime.BaseAPI {
44
44
  */
45
45
  createFormsPortalEntryRequestOpts(requestParameters: CreateFormsPortalEntryRequest): Promise<runtime.RequestOpts>;
46
46
  /**
47
+ * Makes a logged-in user, whose token is sent in the Authorization header, a legal entity user of the tenant.
47
48
  * submit
48
49
  */
49
50
  createFormsPortalEntryRaw(requestParameters: CreateFormsPortalEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
50
51
  /**
52
+ * Makes a logged-in user, whose token is sent in the Authorization header, a legal entity user of the tenant.
51
53
  * submit
52
54
  */
53
55
  createFormsPortalEntry(requestParameters: CreateFormsPortalEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -85,8 +85,8 @@ var FormsPortalApi = /** @class */ (function (_super) {
85
85
  if (requestParameters['handle'] == null) {
86
86
  throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling createFormsPortalEntry().');
87
87
  }
88
- if (requestParameters['authorization'] == null) {
89
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling createFormsPortalEntry().');
88
+ if (requestParameters['xPortalSecret'] == null) {
89
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling createFormsPortalEntry().');
90
90
  }
91
91
  if (requestParameters['formsPortalSubmitDto'] == null) {
92
92
  throw new runtime.RequiredError('formsPortalSubmitDto', 'Required parameter "formsPortalSubmitDto" was null or undefined when calling createFormsPortalEntry().');
@@ -94,8 +94,8 @@ var FormsPortalApi = /** @class */ (function (_super) {
94
94
  queryParameters = {};
95
95
  headerParameters = {};
96
96
  headerParameters['Content-Type'] = 'application/json';
97
- if (requestParameters['authorization'] != null) {
98
- headerParameters['Authorization'] = String(requestParameters['authorization']);
97
+ if (requestParameters['xPortalSecret'] != null) {
98
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
99
99
  }
100
100
  urlPath = "/ui/tenant-portal/v1/{handle}/forms";
101
101
  urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
@@ -110,6 +110,7 @@ var FormsPortalApi = /** @class */ (function (_super) {
110
110
  });
111
111
  };
112
112
  /**
113
+ * Makes a logged-in user, whose token is sent in the Authorization header, a legal entity user of the tenant.
113
114
  * submit
114
115
  */
115
116
  FormsPortalApi.prototype.createFormsPortalEntryRaw = function (requestParameters, initOverrides) {
@@ -129,6 +130,7 @@ var FormsPortalApi = /** @class */ (function (_super) {
129
130
  });
130
131
  };
131
132
  /**
133
+ * Makes a logged-in user, whose token is sent in the Authorization header, a legal entity user of the tenant.
132
134
  * submit
133
135
  */
134
136
  FormsPortalApi.prototype.createFormsPortalEntry = function (requestParameters, initOverrides) {
@@ -153,13 +155,13 @@ var FormsPortalApi = /** @class */ (function (_super) {
153
155
  if (requestParameters['handle'] == null) {
154
156
  throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getFormsPortalForm().');
155
157
  }
156
- if (requestParameters['authorization'] == null) {
157
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getFormsPortalForm().');
158
+ if (requestParameters['xPortalSecret'] == null) {
159
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling getFormsPortalForm().');
158
160
  }
159
161
  queryParameters = {};
160
162
  headerParameters = {};
161
- if (requestParameters['authorization'] != null) {
162
- headerParameters['Authorization'] = String(requestParameters['authorization']);
163
+ if (requestParameters['xPortalSecret'] != null) {
164
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
163
165
  }
164
166
  urlPath = "/ui/tenant-portal/v1/{handle}/forms";
165
167
  urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
@@ -16,9 +16,9 @@ export interface GetInvoicePortalDocumentRequest {
16
16
  */
17
17
  handle: string;
18
18
  /**
19
- * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
19
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
20
20
  */
21
- authorization: string;
21
+ xPortalSecret: string;
22
22
  }
23
23
  /**
24
24
  *
@@ -84,13 +84,13 @@ var InvoicePortalApi = /** @class */ (function (_super) {
84
84
  if (requestParameters['handle'] == null) {
85
85
  throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getInvoicePortalDocument().');
86
86
  }
87
- if (requestParameters['authorization'] == null) {
88
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getInvoicePortalDocument().');
87
+ if (requestParameters['xPortalSecret'] == null) {
88
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling getInvoicePortalDocument().');
89
89
  }
90
90
  queryParameters = {};
91
91
  headerParameters = {};
92
- if (requestParameters['authorization'] != null) {
93
- headerParameters['Authorization'] = String(requestParameters['authorization']);
92
+ if (requestParameters['xPortalSecret'] != null) {
93
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
94
94
  }
95
95
  urlPath = "/ui/tenant-portal/v1/{handle}/invoices";
96
96
  urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
@@ -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 GetAllLegalEntityUsers200Response } from '../models/GetAllLegalEntityUsers200Response';
13
+ import { type KommerzPageable } from '../models/KommerzPageable';
14
+ import { type LegalEntityUserDto } from '../models/LegalEntityUserDto';
15
+ export interface CreateLegalEntityUserRequest {
16
+ /**
17
+ *
18
+ */
19
+ legalEntityUserDto: Omit<LegalEntityUserDto, 'userId' | 'userName' | 'userEmail' | 'userAvatarUrl' | 'legalEntityName'>;
20
+ }
21
+ export interface DeleteLegalEntityUserRequest {
22
+ /**
23
+ * id of entity
24
+ */
25
+ id: string;
26
+ }
27
+ export interface GetAllLegalEntityUsersRequest {
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 GetLegalEntityUserRequest {
38
+ /**
39
+ * id of entity
40
+ */
41
+ id: string;
42
+ }
43
+ export interface UpdateLegalEntityUserRequest {
44
+ /**
45
+ * id of entity
46
+ */
47
+ id: string;
48
+ /**
49
+ *
50
+ */
51
+ legalEntityUserDto: Omit<LegalEntityUserDto, 'userId' | 'userName' | 'userEmail' | 'userAvatarUrl' | 'legalEntityName'>;
52
+ /**
53
+ * whether to force update the entity
54
+ */
55
+ force?: boolean;
56
+ }
57
+ /**
58
+ *
59
+ */
60
+ export declare class LegalEntityUsersApi extends runtime.BaseAPI {
61
+ /**
62
+ * Creates request options for createLegalEntityUser without sending the request
63
+ */
64
+ createLegalEntityUserRequestOpts(requestParameters: CreateLegalEntityUserRequest): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * create a legal entity user for a legal entity
67
+ */
68
+ createLegalEntityUserRaw(requestParameters: CreateLegalEntityUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LegalEntityUserDto>>;
69
+ /**
70
+ * create a legal entity user for a legal entity
71
+ */
72
+ createLegalEntityUser(requestParameters: CreateLegalEntityUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LegalEntityUserDto>;
73
+ /**
74
+ * Creates request options for deleteLegalEntityUser without sending the request
75
+ */
76
+ deleteLegalEntityUserRequestOpts(requestParameters: DeleteLegalEntityUserRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * delete a legal entity user
79
+ */
80
+ deleteLegalEntityUserRaw(requestParameters: DeleteLegalEntityUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
81
+ /**
82
+ * delete a legal entity user
83
+ */
84
+ deleteLegalEntityUser(requestParameters: DeleteLegalEntityUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
+ /**
86
+ * Creates request options for getAllLegalEntityUsers without sending the request
87
+ */
88
+ getAllLegalEntityUsersRequestOpts(requestParameters: GetAllLegalEntityUsersRequest): Promise<runtime.RequestOpts>;
89
+ /**
90
+ * get all legal entity users of the tenant
91
+ */
92
+ getAllLegalEntityUsersRaw(requestParameters: GetAllLegalEntityUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllLegalEntityUsers200Response>>;
93
+ /**
94
+ * get all legal entity users of the tenant
95
+ */
96
+ getAllLegalEntityUsers(requestParameters: GetAllLegalEntityUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllLegalEntityUsers200Response>;
97
+ /**
98
+ * Creates request options for getLegalEntityUser without sending the request
99
+ */
100
+ getLegalEntityUserRequestOpts(requestParameters: GetLegalEntityUserRequest): Promise<runtime.RequestOpts>;
101
+ /**
102
+ * read one legal entity user
103
+ */
104
+ getLegalEntityUserRaw(requestParameters: GetLegalEntityUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LegalEntityUserDto>>;
105
+ /**
106
+ * read one legal entity user
107
+ */
108
+ getLegalEntityUser(requestParameters: GetLegalEntityUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LegalEntityUserDto>;
109
+ /**
110
+ * Creates request options for updateLegalEntityUser without sending the request
111
+ */
112
+ updateLegalEntityUserRequestOpts(requestParameters: UpdateLegalEntityUserRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * update a legal entity user, e.g. to assign a legal entity
115
+ */
116
+ updateLegalEntityUserRaw(requestParameters: UpdateLegalEntityUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LegalEntityUserDto>>;
117
+ /**
118
+ * update a legal entity user, e.g. to assign a legal entity
119
+ */
120
+ updateLegalEntityUser(requestParameters: UpdateLegalEntityUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LegalEntityUserDto>;
121
+ }