@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
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Kommerz API Specification
|
|
6
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
7
|
+
*
|
|
8
|
+
* Contact: info@kommerz.app
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
40
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.LegalEntityUsersApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var GetAllLegalEntityUsers200Response_1 = require("../models/GetAllLegalEntityUsers200Response");
|
|
69
|
+
var LegalEntityUserDto_1 = require("../models/LegalEntityUserDto");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var LegalEntityUsersApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(LegalEntityUsersApi, _super);
|
|
75
|
+
function LegalEntityUsersApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for createLegalEntityUser without sending the request
|
|
80
|
+
*/
|
|
81
|
+
LegalEntityUsersApi.prototype.createLegalEntityUserRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
if (requestParameters['legalEntityUserDto'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('legalEntityUserDto', 'Required parameter "legalEntityUserDto" was null or undefined when calling createLegalEntityUser().');
|
|
87
|
+
}
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
+
urlPath = "/ui/legal-entity-users/v1";
|
|
92
|
+
return [2 /*return*/, {
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: (0, LegalEntityUserDto_1.LegalEntityUserDtoToJSON)(requestParameters['legalEntityUserDto']),
|
|
98
|
+
}];
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* create a legal entity user for a legal entity
|
|
104
|
+
*/
|
|
105
|
+
LegalEntityUsersApi.prototype.createLegalEntityUserRaw = function (requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
+
var requestOptions, response;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0: return [4 /*yield*/, this.createLegalEntityUserRequestOpts(requestParameters)];
|
|
111
|
+
case 1:
|
|
112
|
+
requestOptions = _a.sent();
|
|
113
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
114
|
+
case 2:
|
|
115
|
+
response = _a.sent();
|
|
116
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, LegalEntityUserDto_1.LegalEntityUserDtoFromJSON)(jsonValue); })];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* create a legal entity user for a legal entity
|
|
123
|
+
*/
|
|
124
|
+
LegalEntityUsersApi.prototype.createLegalEntityUser = function (requestParameters, initOverrides) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
+
var response;
|
|
127
|
+
return __generator(this, function (_a) {
|
|
128
|
+
switch (_a.label) {
|
|
129
|
+
case 0: return [4 /*yield*/, this.createLegalEntityUserRaw(requestParameters, initOverrides)];
|
|
130
|
+
case 1:
|
|
131
|
+
response = _a.sent();
|
|
132
|
+
return [4 /*yield*/, response.value()];
|
|
133
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Creates request options for deleteLegalEntityUser without sending the request
|
|
140
|
+
*/
|
|
141
|
+
LegalEntityUsersApi.prototype.deleteLegalEntityUserRequestOpts = function (requestParameters) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
+
var queryParameters, headerParameters, urlPath;
|
|
144
|
+
return __generator(this, function (_a) {
|
|
145
|
+
if (requestParameters['id'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteLegalEntityUser().');
|
|
147
|
+
}
|
|
148
|
+
queryParameters = {};
|
|
149
|
+
headerParameters = {};
|
|
150
|
+
urlPath = "/ui/legal-entity-users/v1/{id}";
|
|
151
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
152
|
+
return [2 /*return*/, {
|
|
153
|
+
path: urlPath,
|
|
154
|
+
method: 'DELETE',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}];
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* delete a legal entity user
|
|
163
|
+
*/
|
|
164
|
+
LegalEntityUsersApi.prototype.deleteLegalEntityUserRaw = function (requestParameters, initOverrides) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
+
var requestOptions, response;
|
|
167
|
+
return __generator(this, function (_a) {
|
|
168
|
+
switch (_a.label) {
|
|
169
|
+
case 0: return [4 /*yield*/, this.deleteLegalEntityUserRequestOpts(requestParameters)];
|
|
170
|
+
case 1:
|
|
171
|
+
requestOptions = _a.sent();
|
|
172
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
173
|
+
case 2:
|
|
174
|
+
response = _a.sent();
|
|
175
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* delete a legal entity user
|
|
182
|
+
*/
|
|
183
|
+
LegalEntityUsersApi.prototype.deleteLegalEntityUser = function (requestParameters, initOverrides) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
185
|
+
return __generator(this, function (_a) {
|
|
186
|
+
switch (_a.label) {
|
|
187
|
+
case 0: return [4 /*yield*/, this.deleteLegalEntityUserRaw(requestParameters, initOverrides)];
|
|
188
|
+
case 1:
|
|
189
|
+
_a.sent();
|
|
190
|
+
return [2 /*return*/];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for getAllLegalEntityUsers without sending the request
|
|
197
|
+
*/
|
|
198
|
+
LegalEntityUsersApi.prototype.getAllLegalEntityUsersRequestOpts = function (requestParameters) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
+
var queryParameters, headerParameters, urlPath;
|
|
201
|
+
return __generator(this, function (_a) {
|
|
202
|
+
if (requestParameters['pageable'] == null) {
|
|
203
|
+
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllLegalEntityUsers().');
|
|
204
|
+
}
|
|
205
|
+
queryParameters = {};
|
|
206
|
+
if (requestParameters['pageable'] != null) {
|
|
207
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['filter'] != null) {
|
|
210
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
211
|
+
}
|
|
212
|
+
headerParameters = {};
|
|
213
|
+
urlPath = "/ui/legal-entity-users/v1";
|
|
214
|
+
return [2 /*return*/, {
|
|
215
|
+
path: urlPath,
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
}];
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* get all legal entity users of the tenant
|
|
225
|
+
*/
|
|
226
|
+
LegalEntityUsersApi.prototype.getAllLegalEntityUsersRaw = function (requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
var requestOptions, response;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0: return [4 /*yield*/, this.getAllLegalEntityUsersRequestOpts(requestParameters)];
|
|
232
|
+
case 1:
|
|
233
|
+
requestOptions = _a.sent();
|
|
234
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
235
|
+
case 2:
|
|
236
|
+
response = _a.sent();
|
|
237
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetAllLegalEntityUsers200Response_1.GetAllLegalEntityUsers200ResponseFromJSON)(jsonValue); })];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* get all legal entity users of the tenant
|
|
244
|
+
*/
|
|
245
|
+
LegalEntityUsersApi.prototype.getAllLegalEntityUsers = function (requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
247
|
+
var response;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0: return [4 /*yield*/, this.getAllLegalEntityUsersRaw(requestParameters, initOverrides)];
|
|
251
|
+
case 1:
|
|
252
|
+
response = _a.sent();
|
|
253
|
+
return [4 /*yield*/, response.value()];
|
|
254
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Creates request options for getLegalEntityUser without sending the request
|
|
261
|
+
*/
|
|
262
|
+
LegalEntityUsersApi.prototype.getLegalEntityUserRequestOpts = function (requestParameters) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
var queryParameters, headerParameters, urlPath;
|
|
265
|
+
return __generator(this, function (_a) {
|
|
266
|
+
if (requestParameters['id'] == null) {
|
|
267
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getLegalEntityUser().');
|
|
268
|
+
}
|
|
269
|
+
queryParameters = {};
|
|
270
|
+
headerParameters = {};
|
|
271
|
+
urlPath = "/ui/legal-entity-users/v1/{id}";
|
|
272
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
273
|
+
return [2 /*return*/, {
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'GET',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
}];
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* read one legal entity user
|
|
284
|
+
*/
|
|
285
|
+
LegalEntityUsersApi.prototype.getLegalEntityUserRaw = function (requestParameters, initOverrides) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
287
|
+
var requestOptions, response;
|
|
288
|
+
return __generator(this, function (_a) {
|
|
289
|
+
switch (_a.label) {
|
|
290
|
+
case 0: return [4 /*yield*/, this.getLegalEntityUserRequestOpts(requestParameters)];
|
|
291
|
+
case 1:
|
|
292
|
+
requestOptions = _a.sent();
|
|
293
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
294
|
+
case 2:
|
|
295
|
+
response = _a.sent();
|
|
296
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, LegalEntityUserDto_1.LegalEntityUserDtoFromJSON)(jsonValue); })];
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* read one legal entity user
|
|
303
|
+
*/
|
|
304
|
+
LegalEntityUsersApi.prototype.getLegalEntityUser = function (requestParameters, initOverrides) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
306
|
+
var response;
|
|
307
|
+
return __generator(this, function (_a) {
|
|
308
|
+
switch (_a.label) {
|
|
309
|
+
case 0: return [4 /*yield*/, this.getLegalEntityUserRaw(requestParameters, initOverrides)];
|
|
310
|
+
case 1:
|
|
311
|
+
response = _a.sent();
|
|
312
|
+
return [4 /*yield*/, response.value()];
|
|
313
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Creates request options for updateLegalEntityUser without sending the request
|
|
320
|
+
*/
|
|
321
|
+
LegalEntityUsersApi.prototype.updateLegalEntityUserRequestOpts = function (requestParameters) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
323
|
+
var queryParameters, headerParameters, urlPath;
|
|
324
|
+
return __generator(this, function (_a) {
|
|
325
|
+
if (requestParameters['id'] == null) {
|
|
326
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateLegalEntityUser().');
|
|
327
|
+
}
|
|
328
|
+
if (requestParameters['legalEntityUserDto'] == null) {
|
|
329
|
+
throw new runtime.RequiredError('legalEntityUserDto', 'Required parameter "legalEntityUserDto" was null or undefined when calling updateLegalEntityUser().');
|
|
330
|
+
}
|
|
331
|
+
queryParameters = {};
|
|
332
|
+
if (requestParameters['force'] != null) {
|
|
333
|
+
queryParameters['force'] = requestParameters['force'];
|
|
334
|
+
}
|
|
335
|
+
headerParameters = {};
|
|
336
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
337
|
+
urlPath = "/ui/legal-entity-users/v1/{id}";
|
|
338
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
339
|
+
return [2 /*return*/, {
|
|
340
|
+
path: urlPath,
|
|
341
|
+
method: 'PUT',
|
|
342
|
+
headers: headerParameters,
|
|
343
|
+
query: queryParameters,
|
|
344
|
+
body: (0, LegalEntityUserDto_1.LegalEntityUserDtoToJSON)(requestParameters['legalEntityUserDto']),
|
|
345
|
+
}];
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* update a legal entity user, e.g. to assign a legal entity
|
|
351
|
+
*/
|
|
352
|
+
LegalEntityUsersApi.prototype.updateLegalEntityUserRaw = function (requestParameters, initOverrides) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
354
|
+
var requestOptions, response;
|
|
355
|
+
return __generator(this, function (_a) {
|
|
356
|
+
switch (_a.label) {
|
|
357
|
+
case 0: return [4 /*yield*/, this.updateLegalEntityUserRequestOpts(requestParameters)];
|
|
358
|
+
case 1:
|
|
359
|
+
requestOptions = _a.sent();
|
|
360
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
361
|
+
case 2:
|
|
362
|
+
response = _a.sent();
|
|
363
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, LegalEntityUserDto_1.LegalEntityUserDtoFromJSON)(jsonValue); })];
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* update a legal entity user, e.g. to assign a legal entity
|
|
370
|
+
*/
|
|
371
|
+
LegalEntityUsersApi.prototype.updateLegalEntityUser = function (requestParameters, initOverrides) {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
373
|
+
var response;
|
|
374
|
+
return __generator(this, function (_a) {
|
|
375
|
+
switch (_a.label) {
|
|
376
|
+
case 0: return [4 /*yield*/, this.updateLegalEntityUserRaw(requestParameters, initOverrides)];
|
|
377
|
+
case 1:
|
|
378
|
+
response = _a.sent();
|
|
379
|
+
return [4 /*yield*/, response.value()];
|
|
380
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
return LegalEntityUsersApi;
|
|
386
|
+
}(runtime.BaseAPI));
|
|
387
|
+
exports.LegalEntityUsersApi = LegalEntityUsersApi;
|
|
@@ -266,7 +266,7 @@ var NotificationTargetsApi = /** @class */ (function (_super) {
|
|
|
266
266
|
queryParameters = {};
|
|
267
267
|
headerParameters = {};
|
|
268
268
|
headerParameters['Content-Type'] = 'application/json';
|
|
269
|
-
urlPath = "/ui/notifications/v1/
|
|
269
|
+
urlPath = "/ui/notifications/v1/target-orders";
|
|
270
270
|
return [2 /*return*/, {
|
|
271
271
|
path: urlPath,
|
|
272
272
|
method: 'PUT',
|
|
@@ -87,7 +87,7 @@ var NotificationsAcksApi = /** @class */ (function (_super) {
|
|
|
87
87
|
queryParameters = {};
|
|
88
88
|
headerParameters = {};
|
|
89
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
-
urlPath = "/ui/notifications/v1/
|
|
90
|
+
urlPath = "/ui/notifications/v1/acknowledgements";
|
|
91
91
|
return [2 /*return*/, {
|
|
92
92
|
path: urlPath,
|
|
93
93
|
method: 'PUT',
|
|
@@ -144,7 +144,7 @@ var NotificationsAcksApi = /** @class */ (function (_super) {
|
|
|
144
144
|
}
|
|
145
145
|
queryParameters = {};
|
|
146
146
|
headerParameters = {};
|
|
147
|
-
urlPath = "/ui/notifications/v1/{id}/ack";
|
|
147
|
+
urlPath = "/ui/notifications/v1/notifications/{id}/ack";
|
|
148
148
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
149
149
|
return [2 /*return*/, {
|
|
150
150
|
path: urlPath,
|
|
@@ -87,7 +87,7 @@ var NotificationsApi = /** @class */ (function (_super) {
|
|
|
87
87
|
}
|
|
88
88
|
queryParameters = {};
|
|
89
89
|
headerParameters = {};
|
|
90
|
-
urlPath = "/ui/notifications/v1/{id}";
|
|
90
|
+
urlPath = "/ui/notifications/v1/notifications/{id}";
|
|
91
91
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
92
92
|
return [2 /*return*/, {
|
|
93
93
|
path: urlPath,
|
|
@@ -150,7 +150,7 @@ var NotificationsApi = /** @class */ (function (_super) {
|
|
|
150
150
|
queryParameters['filter'] = requestParameters['filter'];
|
|
151
151
|
}
|
|
152
152
|
headerParameters = {};
|
|
153
|
-
urlPath = "/ui/notifications/v1";
|
|
153
|
+
urlPath = "/ui/notifications/v1/notifications";
|
|
154
154
|
return [2 /*return*/, {
|
|
155
155
|
path: urlPath,
|
|
156
156
|
method: 'GET',
|
|
@@ -208,7 +208,7 @@ var NotificationsApi = /** @class */ (function (_super) {
|
|
|
208
208
|
}
|
|
209
209
|
queryParameters = {};
|
|
210
210
|
headerParameters = {};
|
|
211
|
-
urlPath = "/ui/notifications/v1/{id}";
|
|
211
|
+
urlPath = "/ui/notifications/v1/notifications/{id}";
|
|
212
212
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
213
213
|
return [2 /*return*/, {
|
|
214
214
|
path: urlPath,
|
|
@@ -201,7 +201,7 @@ var PresenceEntriesApi = /** @class */ (function (_super) {
|
|
|
201
201
|
return __generator(this, function (_a) {
|
|
202
202
|
queryParameters = {};
|
|
203
203
|
headerParameters = {};
|
|
204
|
-
urlPath = "/ui/time-tracking/v1/presences/
|
|
204
|
+
urlPath = "/ui/time-tracking/v1/presences/fast-tracking";
|
|
205
205
|
return [2 /*return*/, {
|
|
206
206
|
path: urlPath,
|
|
207
207
|
method: 'POST',
|
|
@@ -89,7 +89,7 @@ var TimeTrackingCalendarApi = /** @class */ (function (_super) {
|
|
|
89
89
|
queryParameters['userId'] = requestParameters['userId'];
|
|
90
90
|
}
|
|
91
91
|
headerParameters = {};
|
|
92
|
-
urlPath = "/ui/time-tracking/v1/
|
|
92
|
+
urlPath = "/ui/time-tracking/v1/calendar/{year}";
|
|
93
93
|
urlPath = urlPath.replace('{year}', encodeURIComponent(String(requestParameters['year'])));
|
|
94
94
|
return [2 /*return*/, {
|
|
95
95
|
path: urlPath,
|
|
@@ -154,7 +154,7 @@ var TimeTrackingCalendarApi = /** @class */ (function (_super) {
|
|
|
154
154
|
queryParameters['userId'] = requestParameters['userId'];
|
|
155
155
|
}
|
|
156
156
|
headerParameters = {};
|
|
157
|
-
urlPath = "/ui/time-tracking/v1/
|
|
157
|
+
urlPath = "/ui/time-tracking/v1/calendar/{year}/{month}";
|
|
158
158
|
urlPath = urlPath.replace('{year}', encodeURIComponent(String(requestParameters['year'])));
|
|
159
159
|
urlPath = urlPath.replace('{month}', encodeURIComponent(String(requestParameters['month'])));
|
|
160
160
|
return [2 /*return*/, {
|
|
@@ -97,7 +97,7 @@ var TimeTrackingCalendarExportApi = /** @class */ (function (_super) {
|
|
|
97
97
|
queryParameters['target'] = requestParameters['target'];
|
|
98
98
|
}
|
|
99
99
|
headerParameters = {};
|
|
100
|
-
urlPath = "/ui/time-tracking/v1/
|
|
100
|
+
urlPath = "/ui/time-tracking/v1/calendar/{year}/{month}/export";
|
|
101
101
|
urlPath = urlPath.replace('{year}', encodeURIComponent(String(requestParameters['year'])));
|
|
102
102
|
urlPath = urlPath.replace('{month}', encodeURIComponent(String(requestParameters['month'])));
|
|
103
103
|
return [2 /*return*/, {
|
|
@@ -9,10 +9,41 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import * as runtime from '../runtime';
|
|
12
|
-
import { type AccountAppointmentDto } from '../models/AccountAppointmentDto';
|
|
13
12
|
import { type AccountCalendarEntryDto } from '../models/AccountCalendarEntryDto';
|
|
14
13
|
import { type AccountDeletionPreviewDto } from '../models/AccountDeletionPreviewDto';
|
|
14
|
+
import { type GetMyAppointments200Response } from '../models/GetMyAppointments200Response';
|
|
15
|
+
import { type KommerzPageable } from '../models/KommerzPageable';
|
|
15
16
|
import { type UserDto } from '../models/UserDto';
|
|
17
|
+
export interface DownloadMyCalendarEntryIcalRequest {
|
|
18
|
+
/**
|
|
19
|
+
* id of entity
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
23
|
+
export interface GetMyAppointmentsRequest {
|
|
24
|
+
/**
|
|
25
|
+
* Pageable query parameters
|
|
26
|
+
*/
|
|
27
|
+
pageable: KommerzPageable;
|
|
28
|
+
/**
|
|
29
|
+
* Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
|
|
30
|
+
*/
|
|
31
|
+
filter?: Array<string>;
|
|
32
|
+
}
|
|
33
|
+
export interface GetMyCalendarEntriesRequest {
|
|
34
|
+
/**
|
|
35
|
+
* inclusive start of the period
|
|
36
|
+
*/
|
|
37
|
+
from: Date;
|
|
38
|
+
/**
|
|
39
|
+
* exclusive end of the period
|
|
40
|
+
*/
|
|
41
|
+
to: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
|
|
44
|
+
*/
|
|
45
|
+
filter?: Array<string>;
|
|
46
|
+
}
|
|
16
47
|
export interface UpdateAvatarRequest {
|
|
17
48
|
/**
|
|
18
49
|
*
|
|
@@ -35,6 +66,20 @@ export declare class UsersMeApi extends runtime.BaseAPI {
|
|
|
35
66
|
* delete user avatar
|
|
36
67
|
*/
|
|
37
68
|
deleteAvatar(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Creates request options for downloadMyCalendarEntryIcal without sending the request
|
|
71
|
+
*/
|
|
72
|
+
downloadMyCalendarEntryIcalRequestOpts(requestParameters: DownloadMyCalendarEntryIcalRequest): Promise<runtime.RequestOpts>;
|
|
73
|
+
/**
|
|
74
|
+
* A repeating entry is returned as series, including its repeat rule.
|
|
75
|
+
* download a calendar entry the logged-in user attends as iCalendar file
|
|
76
|
+
*/
|
|
77
|
+
downloadMyCalendarEntryIcalRaw(requestParameters: DownloadMyCalendarEntryIcalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
|
|
78
|
+
/**
|
|
79
|
+
* A repeating entry is returned as series, including its repeat rule.
|
|
80
|
+
* download a calendar entry the logged-in user attends as iCalendar file
|
|
81
|
+
*/
|
|
82
|
+
downloadMyCalendarEntryIcal(requestParameters: DownloadMyCalendarEntryIcalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
|
|
38
83
|
/**
|
|
39
84
|
* Creates request options for getAccountDeletionPreview without sending the request
|
|
40
85
|
*/
|
|
@@ -62,27 +107,31 @@ export declare class UsersMeApi extends runtime.BaseAPI {
|
|
|
62
107
|
/**
|
|
63
108
|
* Creates request options for getMyAppointments without sending the request
|
|
64
109
|
*/
|
|
65
|
-
getMyAppointmentsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
110
|
+
getMyAppointmentsRequestOpts(requestParameters: GetMyAppointmentsRequest): Promise<runtime.RequestOpts>;
|
|
66
111
|
/**
|
|
112
|
+
* Filterable and sortable fields: status, confirmedTimeSpan.startDate, confirmedTimeSpan.endDate, creationTime. Sorted by creationTime unless a sort is given.
|
|
67
113
|
* list the appointments the logged-in user requested at any tenant
|
|
68
114
|
*/
|
|
69
|
-
getMyAppointmentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
115
|
+
getMyAppointmentsRaw(requestParameters: GetMyAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMyAppointments200Response>>;
|
|
70
116
|
/**
|
|
117
|
+
* Filterable and sortable fields: status, confirmedTimeSpan.startDate, confirmedTimeSpan.endDate, creationTime. Sorted by creationTime unless a sort is given.
|
|
71
118
|
* list the appointments the logged-in user requested at any tenant
|
|
72
119
|
*/
|
|
73
|
-
getMyAppointments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
120
|
+
getMyAppointments(requestParameters: GetMyAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMyAppointments200Response>;
|
|
74
121
|
/**
|
|
75
122
|
* Creates request options for getMyCalendarEntries without sending the request
|
|
76
123
|
*/
|
|
77
|
-
getMyCalendarEntriesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
124
|
+
getMyCalendarEntriesRequestOpts(requestParameters: GetMyCalendarEntriesRequest): Promise<runtime.RequestOpts>;
|
|
78
125
|
/**
|
|
79
|
-
*
|
|
126
|
+
* Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
|
|
127
|
+
* list the calendar entries the logged-in user attends at any tenant overlapping a period
|
|
80
128
|
*/
|
|
81
|
-
getMyCalendarEntriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountCalendarEntryDto>>>;
|
|
129
|
+
getMyCalendarEntriesRaw(requestParameters: GetMyCalendarEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountCalendarEntryDto>>>;
|
|
82
130
|
/**
|
|
83
|
-
*
|
|
131
|
+
* Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
|
|
132
|
+
* list the calendar entries the logged-in user attends at any tenant overlapping a period
|
|
84
133
|
*/
|
|
85
|
-
getMyCalendarEntries(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountCalendarEntryDto>>;
|
|
134
|
+
getMyCalendarEntries(requestParameters: GetMyCalendarEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountCalendarEntryDto>>;
|
|
86
135
|
/**
|
|
87
136
|
* Creates request options for requestAccountDeletion without sending the request
|
|
88
137
|
*/
|