@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.
- package/dist/apis/AcceptancePortalDocumentsApi.d.ts +6 -6
- package/dist/apis/AcceptancePortalDocumentsApi.js +12 -12
- package/dist/apis/AppointmentPortalApi.d.ts +79 -11
- package/dist/apis/AppointmentPortalApi.js +202 -11
- package/dist/apis/AppointmentUsersApi.js +5 -5
- package/dist/apis/AppointmentsApi.d.ts +24 -2
- package/dist/apis/AppointmentsApi.js +69 -5
- package/dist/apis/BankingAccountsApi.js +1 -1
- package/dist/apis/BankingRegistrationsApi.js +1 -1
- package/dist/apis/FileDirectorySharesApi.d.ts +4 -4
- package/dist/apis/FileDirectorySharesApi.js +8 -8
- package/dist/apis/FormsPortalApi.d.ts +6 -4
- package/dist/apis/FormsPortalApi.js +10 -8
- package/dist/apis/InvoicePortalApi.d.ts +2 -2
- package/dist/apis/InvoicePortalApi.js +4 -4
- package/dist/apis/LegalEntityUsersApi.d.ts +121 -0
- package/dist/apis/LegalEntityUsersApi.js +387 -0
- package/dist/apis/NotificationTargetsApi.js +1 -1
- package/dist/apis/NotificationsAcksApi.js +2 -2
- package/dist/apis/NotificationsApi.js +3 -3
- package/dist/apis/PresenceEntriesApi.js +1 -1
- package/dist/apis/TimeTrackingCalendarApi.js +2 -2
- package/dist/apis/TimeTrackingCalendarExportApi.js +1 -1
- package/dist/apis/UsersMeApi.d.ts +58 -9
- package/dist/apis/UsersMeApi.js +103 -14
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/models/AccountCalendarEntryDto.d.ts +5 -0
- package/dist/models/AccountCalendarEntryDto.js +3 -0
- package/dist/models/AccountCalendarEntryRsvpDto.d.ts +33 -0
- package/dist/models/AccountCalendarEntryRsvpDto.js +54 -0
- package/dist/models/AppointmentBlockerDto.d.ts +51 -0
- package/dist/models/AppointmentBlockerDto.js +66 -0
- package/dist/models/AppointmentBookingConfigDto.d.ts +37 -0
- package/dist/models/AppointmentBookingConfigDto.js +52 -0
- package/dist/models/AppointmentDto.d.ts +18 -8
- package/dist/models/AppointmentDto.js +11 -6
- package/dist/models/AppointmentEmailTemplateDto.d.ts +33 -0
- package/dist/models/AppointmentEmailTemplateDto.js +50 -0
- package/dist/models/AppointmentEmailTemplatesDto.d.ts +54 -0
- package/dist/models/AppointmentEmailTemplatesDto.js +61 -0
- package/dist/models/AppointmentPortalDto.d.ts +8 -2
- package/dist/models/AppointmentPortalDto.js +6 -2
- package/dist/models/AppointmentProductDto.d.ts +45 -0
- package/dist/models/AppointmentProductDto.js +59 -0
- package/dist/models/AppointmentProductSelectionDto.d.ts +33 -0
- package/dist/models/AppointmentProductSelectionDto.js +54 -0
- package/dist/models/AppointmentSlotDistance.d.ts +3 -1
- package/dist/models/AppointmentSlotDistance.js +3 -1
- package/dist/models/AppointmentSlotDto.d.ts +4 -0
- package/dist/models/AppointmentSlotDto.js +4 -0
- package/dist/models/AppointmentStatus.d.ts +9 -3
- package/dist/models/AppointmentStatus.js +9 -3
- package/dist/models/AppointmentSubmissionDto.d.ts +11 -2
- package/dist/models/AppointmentSubmissionDto.js +5 -0
- package/dist/models/AppointmentTimeSpanDto.d.ts +39 -0
- package/dist/models/AppointmentTimeSpanDto.js +58 -0
- package/dist/models/AppointmentTimeSpanStatus.d.ts +35 -0
- package/dist/models/AppointmentTimeSpanStatus.js +61 -0
- package/dist/models/CalendarEntryTypeDto.d.ts +4 -0
- package/dist/models/CalendarEntryTypeDto.js +2 -0
- package/dist/models/CalendarPortalEventDto.d.ts +4 -0
- package/dist/models/CalendarPortalEventDto.js +4 -0
- package/dist/models/EmailDto.d.ts +4 -0
- package/dist/models/EmailDto.js +2 -0
- package/dist/models/EntityType.d.ts +1 -1
- package/dist/models/EntityType.js +1 -1
- package/dist/models/FormsPortalLegalEntityUserRequestDto.d.ts +29 -0
- package/dist/models/FormsPortalLegalEntityUserRequestDto.js +50 -0
- package/dist/models/FormsPortalSubmissionDto.d.ts +29 -0
- package/dist/models/FormsPortalSubmissionDto.js +50 -0
- package/dist/models/GetAllLegalEntityUsers200Response.d.ts +42 -0
- package/dist/models/GetAllLegalEntityUsers200Response.js +59 -0
- package/dist/models/GetMyAppointments200Response.d.ts +42 -0
- package/dist/models/GetMyAppointments200Response.js +59 -0
- package/dist/models/LegalEntityUserDto.d.ts +71 -0
- package/dist/models/LegalEntityUserDto.js +63 -0
- package/dist/models/Permissions.d.ts +4 -4
- package/dist/models/Permissions.js +4 -4
- package/dist/models/RoutingConfigDto.d.ts +16 -3
- package/dist/models/RoutingConfigDto.js +10 -3
- package/dist/models/index.d.ts +12 -3
- package/dist/models/index.js +12 -3
- package/package.json +1 -1
|
@@ -18,9 +18,9 @@ export interface AcceptAcceptanceDocumentRequest {
|
|
|
18
18
|
*/
|
|
19
19
|
handle: string;
|
|
20
20
|
/**
|
|
21
|
-
* secret of the shared document,
|
|
21
|
+
* secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
xPortalSecret: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
@@ -32,9 +32,9 @@ export interface GetAcceptanceDocumentAttachmentRequest {
|
|
|
32
32
|
*/
|
|
33
33
|
handle: string;
|
|
34
34
|
/**
|
|
35
|
-
* secret of the shared document,
|
|
35
|
+
* secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
xPortalSecret: string;
|
|
38
38
|
/**
|
|
39
39
|
* id of secondary entity
|
|
40
40
|
*/
|
|
@@ -46,9 +46,9 @@ export interface GetAcceptancePortalDocumentRequest {
|
|
|
46
46
|
*/
|
|
47
47
|
handle: string;
|
|
48
48
|
/**
|
|
49
|
-
* secret of the shared document,
|
|
49
|
+
* secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
xPortalSecret: string;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
@@ -86,8 +86,8 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
|
|
|
86
86
|
if (requestParameters['handle'] == null) {
|
|
87
87
|
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling acceptAcceptanceDocument().');
|
|
88
88
|
}
|
|
89
|
-
if (requestParameters['
|
|
90
|
-
throw new runtime.RequiredError('
|
|
89
|
+
if (requestParameters['xPortalSecret'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling acceptAcceptanceDocument().');
|
|
91
91
|
}
|
|
92
92
|
if (requestParameters['acceptancePortalAcceptDto'] == null) {
|
|
93
93
|
throw new runtime.RequiredError('acceptancePortalAcceptDto', 'Required parameter "acceptancePortalAcceptDto" was null or undefined when calling acceptAcceptanceDocument().');
|
|
@@ -95,8 +95,8 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
|
|
|
95
95
|
queryParameters = {};
|
|
96
96
|
headerParameters = {};
|
|
97
97
|
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
-
if (requestParameters['
|
|
99
|
-
headerParameters['
|
|
98
|
+
if (requestParameters['xPortalSecret'] != null) {
|
|
99
|
+
headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
|
|
100
100
|
}
|
|
101
101
|
urlPath = "/ui/tenant-portal/v1/{handle}/acceptance-documents/accept";
|
|
102
102
|
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
@@ -156,16 +156,16 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
|
|
|
156
156
|
if (requestParameters['handle'] == null) {
|
|
157
157
|
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAcceptanceDocumentAttachment().');
|
|
158
158
|
}
|
|
159
|
-
if (requestParameters['
|
|
160
|
-
throw new runtime.RequiredError('
|
|
159
|
+
if (requestParameters['xPortalSecret'] == null) {
|
|
160
|
+
throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling getAcceptanceDocumentAttachment().');
|
|
161
161
|
}
|
|
162
162
|
if (requestParameters['secondaryId'] == null) {
|
|
163
163
|
throw new runtime.RequiredError('secondaryId', 'Required parameter "secondaryId" was null or undefined when calling getAcceptanceDocumentAttachment().');
|
|
164
164
|
}
|
|
165
165
|
queryParameters = {};
|
|
166
166
|
headerParameters = {};
|
|
167
|
-
if (requestParameters['
|
|
168
|
-
headerParameters['
|
|
167
|
+
if (requestParameters['xPortalSecret'] != null) {
|
|
168
|
+
headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
|
|
169
169
|
}
|
|
170
170
|
urlPath = "/ui/tenant-portal/v1/{handle}/acceptance-documents/attachments/{secondaryId}";
|
|
171
171
|
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
@@ -225,13 +225,13 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
|
|
|
225
225
|
if (requestParameters['handle'] == null) {
|
|
226
226
|
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAcceptancePortalDocument().');
|
|
227
227
|
}
|
|
228
|
-
if (requestParameters['
|
|
229
|
-
throw new runtime.RequiredError('
|
|
228
|
+
if (requestParameters['xPortalSecret'] == null) {
|
|
229
|
+
throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling getAcceptancePortalDocument().');
|
|
230
230
|
}
|
|
231
231
|
queryParameters = {};
|
|
232
232
|
headerParameters = {};
|
|
233
|
-
if (requestParameters['
|
|
234
|
-
headerParameters['
|
|
233
|
+
if (requestParameters['xPortalSecret'] != null) {
|
|
234
|
+
headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
|
|
235
235
|
}
|
|
236
236
|
urlPath = "/ui/tenant-portal/v1/{handle}/acceptance-documents";
|
|
237
237
|
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
@@ -9,10 +9,22 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import * as runtime from '../runtime';
|
|
12
|
+
import { type AppointmentBookingConfigDto } from '../models/AppointmentBookingConfigDto';
|
|
12
13
|
import { type AppointmentPortalDto } from '../models/AppointmentPortalDto';
|
|
14
|
+
import { type AppointmentProductDto } from '../models/AppointmentProductDto';
|
|
13
15
|
import { type AppointmentSlotDto } from '../models/AppointmentSlotDto';
|
|
14
16
|
import { type AppointmentSubmissionDto } from '../models/AppointmentSubmissionDto';
|
|
15
17
|
import { type TimeSpanDto } from '../models/TimeSpanDto';
|
|
18
|
+
export interface ConfirmOwnAppointmentRequest {
|
|
19
|
+
/**
|
|
20
|
+
* handle of the tenant, compared case-insensitively
|
|
21
|
+
*/
|
|
22
|
+
handle: string;
|
|
23
|
+
/**
|
|
24
|
+
* id of entity
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
}
|
|
16
28
|
export interface DeleteOwnAppointmentRequest {
|
|
17
29
|
/**
|
|
18
30
|
* handle of the tenant, compared case-insensitively
|
|
@@ -23,6 +35,12 @@ export interface DeleteOwnAppointmentRequest {
|
|
|
23
35
|
*/
|
|
24
36
|
id: string;
|
|
25
37
|
}
|
|
38
|
+
export interface GetAllAppointmentProductsRequest {
|
|
39
|
+
/**
|
|
40
|
+
* handle of the tenant, compared case-insensitively
|
|
41
|
+
*/
|
|
42
|
+
handle: string;
|
|
43
|
+
}
|
|
26
44
|
export interface GetAllAppointmentSlotsRequest {
|
|
27
45
|
/**
|
|
28
46
|
* handle of the tenant, compared case-insensitively
|
|
@@ -49,6 +67,12 @@ export interface GetAllAppointmentSlotsRequest {
|
|
|
49
67
|
*/
|
|
50
68
|
_long?: number;
|
|
51
69
|
}
|
|
70
|
+
export interface GetAppointmentBookingConfigRequest {
|
|
71
|
+
/**
|
|
72
|
+
* handle of the tenant, compared case-insensitively
|
|
73
|
+
*/
|
|
74
|
+
handle: string;
|
|
75
|
+
}
|
|
52
76
|
export interface GetOwnAppointmentRequest {
|
|
53
77
|
/**
|
|
54
78
|
* handle of the tenant, compared case-insensitively
|
|
@@ -87,24 +111,54 @@ export interface UpdateOwnAppointmentRequest {
|
|
|
87
111
|
/**
|
|
88
112
|
*
|
|
89
113
|
*/
|
|
90
|
-
timeSpanDto: TimeSpanDto
|
|
114
|
+
timeSpanDto: Array<TimeSpanDto>;
|
|
91
115
|
}
|
|
92
116
|
/**
|
|
93
117
|
*
|
|
94
118
|
*/
|
|
95
119
|
export declare class AppointmentPortalApi extends runtime.BaseAPI {
|
|
120
|
+
/**
|
|
121
|
+
* Creates request options for confirmOwnAppointment without sending the request
|
|
122
|
+
*/
|
|
123
|
+
confirmOwnAppointmentRequestOpts(requestParameters: ConfirmOwnAppointmentRequest): Promise<runtime.RequestOpts>;
|
|
124
|
+
/**
|
|
125
|
+
* Only possible while the appointment is in planning with a planned time and its confirmation period has not ended. The appointment and its planned time span become confirmed and the user is marked as accepted in the calendar entry.
|
|
126
|
+
* confirm the planned time of an appointment the logged-in user requested at the tenant
|
|
127
|
+
*/
|
|
128
|
+
confirmOwnAppointmentRaw(requestParameters: ConfirmOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentPortalDto>>;
|
|
129
|
+
/**
|
|
130
|
+
* Only possible while the appointment is in planning with a planned time and its confirmation period has not ended. The appointment and its planned time span become confirmed and the user is marked as accepted in the calendar entry.
|
|
131
|
+
* confirm the planned time of an appointment the logged-in user requested at the tenant
|
|
132
|
+
*/
|
|
133
|
+
confirmOwnAppointment(requestParameters: ConfirmOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentPortalDto>;
|
|
96
134
|
/**
|
|
97
135
|
* Creates request options for deleteOwnAppointment without sending the request
|
|
98
136
|
*/
|
|
99
137
|
deleteOwnAppointmentRequestOpts(requestParameters: DeleteOwnAppointmentRequest): Promise<runtime.RequestOpts>;
|
|
100
138
|
/**
|
|
101
|
-
*
|
|
139
|
+
* Only possible as long as the appointment is neither confirmed nor closed. The calendar entry of a planned time is removed.
|
|
140
|
+
* withdraw an appointment the logged-in user requested at the tenant
|
|
102
141
|
*/
|
|
103
142
|
deleteOwnAppointmentRaw(requestParameters: DeleteOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
104
143
|
/**
|
|
105
|
-
*
|
|
144
|
+
* Only possible as long as the appointment is neither confirmed nor closed. The calendar entry of a planned time is removed.
|
|
145
|
+
* withdraw an appointment the logged-in user requested at the tenant
|
|
106
146
|
*/
|
|
107
147
|
deleteOwnAppointment(requestParameters: DeleteOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Creates request options for getAllAppointmentProducts without sending the request
|
|
150
|
+
*/
|
|
151
|
+
getAllAppointmentProductsRequestOpts(requestParameters: GetAllAppointmentProductsRequest): Promise<runtime.RequestOpts>;
|
|
152
|
+
/**
|
|
153
|
+
* Available without login. An OIDC token is accepted when the requester is logged in. A product is bookable when it carries the tag \"appointment\". The products are sorted by their name.
|
|
154
|
+
* get the products of a tenant that can be booked with an appointment
|
|
155
|
+
*/
|
|
156
|
+
getAllAppointmentProductsRaw(requestParameters: GetAllAppointmentProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AppointmentProductDto>>>;
|
|
157
|
+
/**
|
|
158
|
+
* Available without login. An OIDC token is accepted when the requester is logged in. A product is bookable when it carries the tag \"appointment\". The products are sorted by their name.
|
|
159
|
+
* get the products of a tenant that can be booked with an appointment
|
|
160
|
+
*/
|
|
161
|
+
getAllAppointmentProducts(requestParameters: GetAllAppointmentProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppointmentProductDto>>;
|
|
108
162
|
/**
|
|
109
163
|
* Creates request options for getAllAppointmentSlots without sending the request
|
|
110
164
|
*/
|
|
@@ -119,6 +173,20 @@ export declare class AppointmentPortalApi extends runtime.BaseAPI {
|
|
|
119
173
|
* get the bookable appointment slots of a tenant overlapping a period that have not ended yet
|
|
120
174
|
*/
|
|
121
175
|
getAllAppointmentSlots(requestParameters: GetAllAppointmentSlotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppointmentSlotDto>>;
|
|
176
|
+
/**
|
|
177
|
+
* Creates request options for getAppointmentBookingConfig without sending the request
|
|
178
|
+
*/
|
|
179
|
+
getAppointmentBookingConfigRequestOpts(requestParameters: GetAppointmentBookingConfigRequest): Promise<runtime.RequestOpts>;
|
|
180
|
+
/**
|
|
181
|
+
* Available without login. An OIDC token is accepted when the requester is logged in; the configuration may differ between logged-in and anonymous requesters.
|
|
182
|
+
* get the configuration of the appointment booking wizard of a tenant
|
|
183
|
+
*/
|
|
184
|
+
getAppointmentBookingConfigRaw(requestParameters: GetAppointmentBookingConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentBookingConfigDto>>;
|
|
185
|
+
/**
|
|
186
|
+
* Available without login. An OIDC token is accepted when the requester is logged in; the configuration may differ between logged-in and anonymous requesters.
|
|
187
|
+
* get the configuration of the appointment booking wizard of a tenant
|
|
188
|
+
*/
|
|
189
|
+
getAppointmentBookingConfig(requestParameters: GetAppointmentBookingConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentBookingConfigDto>;
|
|
122
190
|
/**
|
|
123
191
|
* Creates request options for getOwnAppointment without sending the request
|
|
124
192
|
*/
|
|
@@ -151,26 +219,26 @@ export declare class AppointmentPortalApi extends runtime.BaseAPI {
|
|
|
151
219
|
submitAppointmentsRequestOpts(requestParameters: SubmitAppointmentsRequest): Promise<runtime.RequestOpts>;
|
|
152
220
|
/**
|
|
153
221
|
* 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.
|
|
154
|
-
* request
|
|
222
|
+
* request one appointment for the time spans the user is available in, at the optional address
|
|
155
223
|
*/
|
|
156
|
-
submitAppointmentsRaw(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
224
|
+
submitAppointmentsRaw(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentPortalDto>>;
|
|
157
225
|
/**
|
|
158
226
|
* 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.
|
|
159
|
-
* request
|
|
227
|
+
* request one appointment for the time spans the user is available in, at the optional address
|
|
160
228
|
*/
|
|
161
|
-
submitAppointments(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
229
|
+
submitAppointments(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentPortalDto>;
|
|
162
230
|
/**
|
|
163
231
|
* Creates request options for updateOwnAppointment without sending the request
|
|
164
232
|
*/
|
|
165
233
|
updateOwnAppointmentRequestOpts(requestParameters: UpdateOwnAppointmentRequest): Promise<runtime.RequestOpts>;
|
|
166
234
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
235
|
+
* Every time span has to lie within a bookable slot of the tenant that has not ended yet.
|
|
236
|
+
* replace the time spans of a new appointment the logged-in user requested at the tenant
|
|
169
237
|
*/
|
|
170
238
|
updateOwnAppointmentRaw(requestParameters: UpdateOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentPortalDto>>;
|
|
171
239
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
240
|
+
* Every time span has to lie within a bookable slot of the tenant that has not ended yet.
|
|
241
|
+
* replace the time spans of a new appointment the logged-in user requested at the tenant
|
|
174
242
|
*/
|
|
175
243
|
updateOwnAppointment(requestParameters: UpdateOwnAppointmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentPortalDto>;
|
|
176
244
|
}
|
|
@@ -65,7 +65,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
65
65
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
66
|
exports.AppointmentPortalApi = void 0;
|
|
67
67
|
var runtime = require("../runtime");
|
|
68
|
+
var AppointmentBookingConfigDto_1 = require("../models/AppointmentBookingConfigDto");
|
|
68
69
|
var AppointmentPortalDto_1 = require("../models/AppointmentPortalDto");
|
|
70
|
+
var AppointmentProductDto_1 = require("../models/AppointmentProductDto");
|
|
69
71
|
var AppointmentSlotDto_1 = require("../models/AppointmentSlotDto");
|
|
70
72
|
var AppointmentSubmissionDto_1 = require("../models/AppointmentSubmissionDto");
|
|
71
73
|
var TimeSpanDto_1 = require("../models/TimeSpanDto");
|
|
@@ -77,6 +79,71 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
77
79
|
function AppointmentPortalApi() {
|
|
78
80
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
79
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates request options for confirmOwnAppointment without sending the request
|
|
84
|
+
*/
|
|
85
|
+
AppointmentPortalApi.prototype.confirmOwnAppointmentRequestOpts = function (requestParameters) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
+
var queryParameters, headerParameters, urlPath;
|
|
88
|
+
return __generator(this, function (_a) {
|
|
89
|
+
if (requestParameters['handle'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling confirmOwnAppointment().');
|
|
91
|
+
}
|
|
92
|
+
if (requestParameters['id'] == null) {
|
|
93
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling confirmOwnAppointment().');
|
|
94
|
+
}
|
|
95
|
+
queryParameters = {};
|
|
96
|
+
headerParameters = {};
|
|
97
|
+
urlPath = "/ui/tenant-portal/v1/{handle}/appointments/{id}/confirmation";
|
|
98
|
+
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
99
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
100
|
+
return [2 /*return*/, {
|
|
101
|
+
path: urlPath,
|
|
102
|
+
method: 'POST',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}];
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Only possible while the appointment is in planning with a planned time and its confirmation period has not ended. The appointment and its planned time span become confirmed and the user is marked as accepted in the calendar entry.
|
|
111
|
+
* confirm the planned time of an appointment the logged-in user requested at the tenant
|
|
112
|
+
*/
|
|
113
|
+
AppointmentPortalApi.prototype.confirmOwnAppointmentRaw = function (requestParameters, initOverrides) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
115
|
+
var requestOptions, response;
|
|
116
|
+
return __generator(this, function (_a) {
|
|
117
|
+
switch (_a.label) {
|
|
118
|
+
case 0: return [4 /*yield*/, this.confirmOwnAppointmentRequestOpts(requestParameters)];
|
|
119
|
+
case 1:
|
|
120
|
+
requestOptions = _a.sent();
|
|
121
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
122
|
+
case 2:
|
|
123
|
+
response = _a.sent();
|
|
124
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentPortalDto_1.AppointmentPortalDtoFromJSON)(jsonValue); })];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Only possible while the appointment is in planning with a planned time and its confirmation period has not ended. The appointment and its planned time span become confirmed and the user is marked as accepted in the calendar entry.
|
|
131
|
+
* confirm the planned time of an appointment the logged-in user requested at the tenant
|
|
132
|
+
*/
|
|
133
|
+
AppointmentPortalApi.prototype.confirmOwnAppointment = function (requestParameters, initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
135
|
+
var response;
|
|
136
|
+
return __generator(this, function (_a) {
|
|
137
|
+
switch (_a.label) {
|
|
138
|
+
case 0: return [4 /*yield*/, this.confirmOwnAppointmentRaw(requestParameters, initOverrides)];
|
|
139
|
+
case 1:
|
|
140
|
+
response = _a.sent();
|
|
141
|
+
return [4 /*yield*/, response.value()];
|
|
142
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
};
|
|
80
147
|
/**
|
|
81
148
|
* Creates request options for deleteOwnAppointment without sending the request
|
|
82
149
|
*/
|
|
@@ -105,7 +172,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
105
172
|
});
|
|
106
173
|
};
|
|
107
174
|
/**
|
|
108
|
-
*
|
|
175
|
+
* Only possible as long as the appointment is neither confirmed nor closed. The calendar entry of a planned time is removed.
|
|
176
|
+
* withdraw an appointment the logged-in user requested at the tenant
|
|
109
177
|
*/
|
|
110
178
|
AppointmentPortalApi.prototype.deleteOwnAppointmentRaw = function (requestParameters, initOverrides) {
|
|
111
179
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -124,7 +192,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
124
192
|
});
|
|
125
193
|
};
|
|
126
194
|
/**
|
|
127
|
-
*
|
|
195
|
+
* Only possible as long as the appointment is neither confirmed nor closed. The calendar entry of a planned time is removed.
|
|
196
|
+
* withdraw an appointment the logged-in user requested at the tenant
|
|
128
197
|
*/
|
|
129
198
|
AppointmentPortalApi.prototype.deleteOwnAppointment = function (requestParameters, initOverrides) {
|
|
130
199
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -138,6 +207,67 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
138
207
|
});
|
|
139
208
|
});
|
|
140
209
|
};
|
|
210
|
+
/**
|
|
211
|
+
* Creates request options for getAllAppointmentProducts without sending the request
|
|
212
|
+
*/
|
|
213
|
+
AppointmentPortalApi.prototype.getAllAppointmentProductsRequestOpts = function (requestParameters) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
215
|
+
var queryParameters, headerParameters, urlPath;
|
|
216
|
+
return __generator(this, function (_a) {
|
|
217
|
+
if (requestParameters['handle'] == null) {
|
|
218
|
+
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAllAppointmentProducts().');
|
|
219
|
+
}
|
|
220
|
+
queryParameters = {};
|
|
221
|
+
headerParameters = {};
|
|
222
|
+
urlPath = "/ui/tenant-portal/v1/{handle}/appointment-products";
|
|
223
|
+
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
224
|
+
return [2 /*return*/, {
|
|
225
|
+
path: urlPath,
|
|
226
|
+
method: 'GET',
|
|
227
|
+
headers: headerParameters,
|
|
228
|
+
query: queryParameters,
|
|
229
|
+
}];
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Available without login. An OIDC token is accepted when the requester is logged in. A product is bookable when it carries the tag \"appointment\". The products are sorted by their name.
|
|
235
|
+
* get the products of a tenant that can be booked with an appointment
|
|
236
|
+
*/
|
|
237
|
+
AppointmentPortalApi.prototype.getAllAppointmentProductsRaw = function (requestParameters, initOverrides) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
239
|
+
var requestOptions, response;
|
|
240
|
+
return __generator(this, function (_a) {
|
|
241
|
+
switch (_a.label) {
|
|
242
|
+
case 0: return [4 /*yield*/, this.getAllAppointmentProductsRequestOpts(requestParameters)];
|
|
243
|
+
case 1:
|
|
244
|
+
requestOptions = _a.sent();
|
|
245
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
246
|
+
case 2:
|
|
247
|
+
response = _a.sent();
|
|
248
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(AppointmentProductDto_1.AppointmentProductDtoFromJSON); })];
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Available without login. An OIDC token is accepted when the requester is logged in. A product is bookable when it carries the tag \"appointment\". The products are sorted by their name.
|
|
255
|
+
* get the products of a tenant that can be booked with an appointment
|
|
256
|
+
*/
|
|
257
|
+
AppointmentPortalApi.prototype.getAllAppointmentProducts = function (requestParameters, initOverrides) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
259
|
+
var response;
|
|
260
|
+
return __generator(this, function (_a) {
|
|
261
|
+
switch (_a.label) {
|
|
262
|
+
case 0: return [4 /*yield*/, this.getAllAppointmentProductsRaw(requestParameters, initOverrides)];
|
|
263
|
+
case 1:
|
|
264
|
+
response = _a.sent();
|
|
265
|
+
return [4 /*yield*/, response.value()];
|
|
266
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
};
|
|
141
271
|
/**
|
|
142
272
|
* Creates request options for getAllAppointmentSlots without sending the request
|
|
143
273
|
*/
|
|
@@ -171,7 +301,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
171
301
|
queryParameters['long'] = requestParameters['_long'];
|
|
172
302
|
}
|
|
173
303
|
headerParameters = {};
|
|
174
|
-
urlPath = "/ui/tenant-portal/v1/{handle}/
|
|
304
|
+
urlPath = "/ui/tenant-portal/v1/{handle}/appointment-slots";
|
|
175
305
|
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
176
306
|
return [2 /*return*/, {
|
|
177
307
|
path: urlPath,
|
|
@@ -220,6 +350,67 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
220
350
|
});
|
|
221
351
|
});
|
|
222
352
|
};
|
|
353
|
+
/**
|
|
354
|
+
* Creates request options for getAppointmentBookingConfig without sending the request
|
|
355
|
+
*/
|
|
356
|
+
AppointmentPortalApi.prototype.getAppointmentBookingConfigRequestOpts = function (requestParameters) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
358
|
+
var queryParameters, headerParameters, urlPath;
|
|
359
|
+
return __generator(this, function (_a) {
|
|
360
|
+
if (requestParameters['handle'] == null) {
|
|
361
|
+
throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAppointmentBookingConfig().');
|
|
362
|
+
}
|
|
363
|
+
queryParameters = {};
|
|
364
|
+
headerParameters = {};
|
|
365
|
+
urlPath = "/ui/tenant-portal/v1/{handle}/appointment-booking-config";
|
|
366
|
+
urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
|
|
367
|
+
return [2 /*return*/, {
|
|
368
|
+
path: urlPath,
|
|
369
|
+
method: 'GET',
|
|
370
|
+
headers: headerParameters,
|
|
371
|
+
query: queryParameters,
|
|
372
|
+
}];
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
};
|
|
376
|
+
/**
|
|
377
|
+
* Available without login. An OIDC token is accepted when the requester is logged in; the configuration may differ between logged-in and anonymous requesters.
|
|
378
|
+
* get the configuration of the appointment booking wizard of a tenant
|
|
379
|
+
*/
|
|
380
|
+
AppointmentPortalApi.prototype.getAppointmentBookingConfigRaw = function (requestParameters, initOverrides) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
+
var requestOptions, response;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
switch (_a.label) {
|
|
385
|
+
case 0: return [4 /*yield*/, this.getAppointmentBookingConfigRequestOpts(requestParameters)];
|
|
386
|
+
case 1:
|
|
387
|
+
requestOptions = _a.sent();
|
|
388
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
389
|
+
case 2:
|
|
390
|
+
response = _a.sent();
|
|
391
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentBookingConfigDto_1.AppointmentBookingConfigDtoFromJSON)(jsonValue); })];
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Available without login. An OIDC token is accepted when the requester is logged in; the configuration may differ between logged-in and anonymous requesters.
|
|
398
|
+
* get the configuration of the appointment booking wizard of a tenant
|
|
399
|
+
*/
|
|
400
|
+
AppointmentPortalApi.prototype.getAppointmentBookingConfig = function (requestParameters, initOverrides) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
402
|
+
var response;
|
|
403
|
+
return __generator(this, function (_a) {
|
|
404
|
+
switch (_a.label) {
|
|
405
|
+
case 0: return [4 /*yield*/, this.getAppointmentBookingConfigRaw(requestParameters, initOverrides)];
|
|
406
|
+
case 1:
|
|
407
|
+
response = _a.sent();
|
|
408
|
+
return [4 /*yield*/, response.value()];
|
|
409
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
};
|
|
223
414
|
/**
|
|
224
415
|
* Creates request options for getOwnAppointment without sending the request
|
|
225
416
|
*/
|
|
@@ -374,7 +565,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
374
565
|
};
|
|
375
566
|
/**
|
|
376
567
|
* 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.
|
|
377
|
-
* request
|
|
568
|
+
* request one appointment for the time spans the user is available in, at the optional address
|
|
378
569
|
*/
|
|
379
570
|
AppointmentPortalApi.prototype.submitAppointmentsRaw = function (requestParameters, initOverrides) {
|
|
380
571
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -387,14 +578,14 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
387
578
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
388
579
|
case 2:
|
|
389
580
|
response = _a.sent();
|
|
390
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return
|
|
581
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AppointmentPortalDto_1.AppointmentPortalDtoFromJSON)(jsonValue); })];
|
|
391
582
|
}
|
|
392
583
|
});
|
|
393
584
|
});
|
|
394
585
|
};
|
|
395
586
|
/**
|
|
396
587
|
* 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.
|
|
397
|
-
* request
|
|
588
|
+
* request one appointment for the time spans the user is available in, at the optional address
|
|
398
589
|
*/
|
|
399
590
|
AppointmentPortalApi.prototype.submitAppointments = function (requestParameters, initOverrides) {
|
|
400
591
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -437,14 +628,14 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
437
628
|
method: 'PUT',
|
|
438
629
|
headers: headerParameters,
|
|
439
630
|
query: queryParameters,
|
|
440
|
-
body:
|
|
631
|
+
body: requestParameters['timeSpanDto'].map(TimeSpanDto_1.TimeSpanDtoToJSON),
|
|
441
632
|
}];
|
|
442
633
|
});
|
|
443
634
|
});
|
|
444
635
|
};
|
|
445
636
|
/**
|
|
446
|
-
*
|
|
447
|
-
*
|
|
637
|
+
* Every time span has to lie within a bookable slot of the tenant that has not ended yet.
|
|
638
|
+
* replace the time spans of a new appointment the logged-in user requested at the tenant
|
|
448
639
|
*/
|
|
449
640
|
AppointmentPortalApi.prototype.updateOwnAppointmentRaw = function (requestParameters, initOverrides) {
|
|
450
641
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -463,8 +654,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
|
|
|
463
654
|
});
|
|
464
655
|
};
|
|
465
656
|
/**
|
|
466
|
-
*
|
|
467
|
-
*
|
|
657
|
+
* Every time span has to lie within a bookable slot of the tenant that has not ended yet.
|
|
658
|
+
* replace the time spans of a new appointment the logged-in user requested at the tenant
|
|
468
659
|
*/
|
|
469
660
|
AppointmentPortalApi.prototype.updateOwnAppointment = function (requestParameters, initOverrides) {
|
|
470
661
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -88,7 +88,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
|
|
|
88
88
|
queryParameters = {};
|
|
89
89
|
headerParameters = {};
|
|
90
90
|
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
-
urlPath = "/ui/
|
|
91
|
+
urlPath = "/ui/appointments/v1/users";
|
|
92
92
|
return [2 /*return*/, {
|
|
93
93
|
path: urlPath,
|
|
94
94
|
method: 'POST',
|
|
@@ -147,7 +147,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
|
|
|
147
147
|
}
|
|
148
148
|
queryParameters = {};
|
|
149
149
|
headerParameters = {};
|
|
150
|
-
urlPath = "/ui/
|
|
150
|
+
urlPath = "/ui/appointments/v1/users/{id}";
|
|
151
151
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
152
152
|
return [2 /*return*/, {
|
|
153
153
|
path: urlPath,
|
|
@@ -210,7 +210,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
|
|
|
210
210
|
queryParameters['filter'] = requestParameters['filter'];
|
|
211
211
|
}
|
|
212
212
|
headerParameters = {};
|
|
213
|
-
urlPath = "/ui/
|
|
213
|
+
urlPath = "/ui/appointments/v1/users";
|
|
214
214
|
return [2 /*return*/, {
|
|
215
215
|
path: urlPath,
|
|
216
216
|
method: 'GET',
|
|
@@ -268,7 +268,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
|
|
|
268
268
|
}
|
|
269
269
|
queryParameters = {};
|
|
270
270
|
headerParameters = {};
|
|
271
|
-
urlPath = "/ui/
|
|
271
|
+
urlPath = "/ui/appointments/v1/users/{id}";
|
|
272
272
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
273
273
|
return [2 /*return*/, {
|
|
274
274
|
path: urlPath,
|
|
@@ -334,7 +334,7 @@ var AppointmentUsersApi = /** @class */ (function (_super) {
|
|
|
334
334
|
}
|
|
335
335
|
headerParameters = {};
|
|
336
336
|
headerParameters['Content-Type'] = 'application/json';
|
|
337
|
-
urlPath = "/ui/
|
|
337
|
+
urlPath = "/ui/appointments/v1/users/{id}";
|
|
338
338
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
339
339
|
return [2 /*return*/, {
|
|
340
340
|
path: urlPath,
|