@kommerz/ts-client 1.196.0 → 1.197.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 (83) hide show
  1. package/dist/apis/AppointmentPortalApi.d.ts +20 -8
  2. package/dist/apis/AppointmentPortalApi.js +14 -8
  3. package/dist/apis/AppointmentsApi.d.ts +41 -2
  4. package/dist/apis/AppointmentsApi.js +127 -0
  5. package/dist/apis/CustomersApi.d.ts +0 -4
  6. package/dist/apis/CustomersApi.js +0 -3
  7. package/dist/apis/MapsApi.d.ts +43 -0
  8. package/dist/apis/MapsApi.js +127 -0
  9. package/dist/apis/TenantPortalUploadsApi.d.ts +166 -0
  10. package/dist/apis/TenantPortalUploadsApi.js +418 -0
  11. package/dist/apis/UsersMeApi.d.ts +6 -6
  12. package/dist/apis/UsersMeApi.js +6 -6
  13. package/dist/apis/UsersMeBookmarksApi.d.ts +99 -0
  14. package/dist/apis/UsersMeBookmarksApi.js +324 -0
  15. package/dist/apis/index.d.ts +2 -0
  16. package/dist/apis/index.js +2 -0
  17. package/dist/models/AccountCalendarEntryDto.d.ts +2 -2
  18. package/dist/models/AddressDto.d.ts +4 -0
  19. package/dist/models/AddressDto.js +2 -0
  20. package/dist/models/AppointmentBlockerDto.d.ts +8 -0
  21. package/dist/models/AppointmentBlockerDto.js +4 -0
  22. package/dist/models/AppointmentBookingConfigDto.d.ts +29 -0
  23. package/dist/models/AppointmentBookingConfigDto.js +19 -0
  24. package/dist/models/AppointmentDto.d.ts +13 -1
  25. package/dist/models/AppointmentDto.js +5 -0
  26. package/dist/models/AppointmentEmailTemplatesDto.d.ts +4 -0
  27. package/dist/models/AppointmentEmailTemplatesDto.js +2 -0
  28. package/dist/models/AppointmentProductDto.d.ts +1 -1
  29. package/dist/models/AppointmentSlotDistance.d.ts +2 -2
  30. package/dist/models/AppointmentSlotDistance.js +2 -2
  31. package/dist/models/AppointmentSlotDto.d.ts +2 -2
  32. package/dist/models/AppointmentSubmissionDto.d.ts +4 -0
  33. package/dist/models/AppointmentSubmissionDto.js +2 -0
  34. package/dist/models/AttendedCalendarEntryDto.d.ts +10 -2
  35. package/dist/models/AttendedCalendarEntryDto.js +4 -0
  36. package/dist/models/BookmarkDto.d.ts +50 -0
  37. package/dist/models/BookmarkDto.js +60 -0
  38. package/dist/models/DavAddressBookDto.d.ts +29 -0
  39. package/dist/models/DavAddressBookDto.js +50 -0
  40. package/dist/models/DavCalendarDto.d.ts +1 -1
  41. package/dist/models/DavResourceDto.d.ts +45 -0
  42. package/dist/models/DavResourceDto.js +64 -0
  43. package/dist/models/DavResourceWriteDto.d.ts +29 -0
  44. package/dist/models/DavResourceWriteDto.js +50 -0
  45. package/dist/models/EntityType.d.ts +2 -0
  46. package/dist/models/EntityType.js +2 -0
  47. package/dist/models/FormsPortalFileUploadDto.d.ts +37 -0
  48. package/dist/models/FormsPortalFileUploadDto.js +54 -0
  49. package/dist/models/FormsPortalSpecDto.d.ts +5 -0
  50. package/dist/models/FormsPortalSpecDto.js +5 -0
  51. package/dist/models/FormsPortalSubmitDto.d.ts +4 -0
  52. package/dist/models/FormsPortalSubmitDto.js +2 -0
  53. package/dist/models/GeoLocationDto.d.ts +42 -0
  54. package/dist/models/GeoLocationDto.js +55 -0
  55. package/dist/models/GetMyBookmarks200Response.d.ts +42 -0
  56. package/dist/models/GetMyBookmarks200Response.js +59 -0
  57. package/dist/models/KanbanBoardDto.d.ts +12 -0
  58. package/dist/models/KanbanBoardDto.js +6 -0
  59. package/dist/models/LocationGeocodeQueryDto.d.ts +29 -0
  60. package/dist/models/LocationGeocodeQueryDto.js +50 -0
  61. package/dist/models/Permissions.d.ts +1 -0
  62. package/dist/models/Permissions.js +1 -0
  63. package/dist/models/PublicTenantPageDto.d.ts +4 -0
  64. package/dist/models/PublicTenantPageDto.js +4 -0
  65. package/dist/models/RoutePlanningAppointmentResultDto.d.ts +47 -0
  66. package/dist/models/RoutePlanningAppointmentResultDto.js +62 -0
  67. package/dist/models/RoutePlanningOutcome.d.ts +35 -0
  68. package/dist/models/RoutePlanningOutcome.js +61 -0
  69. package/dist/models/RoutePlanningResultDto.d.ts +38 -0
  70. package/dist/models/RoutePlanningResultDto.js +57 -0
  71. package/dist/models/RoutingConfigDto.d.ts +66 -10
  72. package/dist/models/RoutingConfigDto.js +41 -9
  73. package/dist/models/TenantConfigurationDto.d.ts +4 -0
  74. package/dist/models/TenantConfigurationDto.js +2 -0
  75. package/dist/models/UiConfigurationDto.d.ts +9 -0
  76. package/dist/models/UiConfigurationDto.js +5 -0
  77. package/dist/models/UiModuleCategory.d.ts +29 -0
  78. package/dist/models/UiModuleCategory.js +55 -0
  79. package/dist/models/UserDto.d.ts +5 -1
  80. package/dist/models/UserDto.js +1 -0
  81. package/dist/models/index.d.ts +12 -2
  82. package/dist/models/index.js +12 -2
  83. package/package.json +1 -1
@@ -0,0 +1,166 @@
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 FileDetailsDto } from '../models/FileDetailsDto';
13
+ import { type FileUploadDto } from '../models/FileUploadDto';
14
+ import { type FileUploadManifestDto } from '../models/FileUploadManifestDto';
15
+ import { type FileUploadPartDto } from '../models/FileUploadPartDto';
16
+ export interface CreateTenantPortalFileFromUploadRequest {
17
+ /**
18
+ * handle of the tenant, compared case-insensitively
19
+ */
20
+ handle: string;
21
+ /**
22
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
23
+ */
24
+ xPortalSecret: string;
25
+ /**
26
+ * the portal service the file is uploaded for, e.g. "FormsPortal" or "AppointmentPortal"; decides which secret the
27
+ * X-Portal-Secret header carries and which limits apply. Unknown services are rejected.
28
+ *
29
+ */
30
+ xPortalService: string;
31
+ /**
32
+ * id of entity
33
+ */
34
+ id: string;
35
+ /**
36
+ *
37
+ */
38
+ fileUploadManifestDto: FileUploadManifestDto;
39
+ }
40
+ export interface CreateTenantPortalUploadRequest {
41
+ /**
42
+ * handle of the tenant, compared case-insensitively
43
+ */
44
+ handle: string;
45
+ /**
46
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
47
+ */
48
+ xPortalSecret: string;
49
+ /**
50
+ * the portal service the file is uploaded for, e.g. "FormsPortal" or "AppointmentPortal"; decides which secret the
51
+ * X-Portal-Secret header carries and which limits apply. Unknown services are rejected.
52
+ *
53
+ */
54
+ xPortalService: string;
55
+ /**
56
+ *
57
+ */
58
+ fileUploadDto: FileUploadDto;
59
+ }
60
+ export interface DeleteTenantPortalUploadedFileRequest {
61
+ /**
62
+ * handle of the tenant, compared case-insensitively
63
+ */
64
+ handle: string;
65
+ /**
66
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
67
+ */
68
+ xPortalSecret: string;
69
+ /**
70
+ * the portal service the file is uploaded for, e.g. "FormsPortal" or "AppointmentPortal"; decides which secret the
71
+ * X-Portal-Secret header carries and which limits apply. Unknown services are rejected.
72
+ *
73
+ */
74
+ xPortalService: string;
75
+ /**
76
+ * id of entity
77
+ */
78
+ id: string;
79
+ }
80
+ export interface UploadTenantPortalUploadPartRequest {
81
+ /**
82
+ * handle of the tenant, compared case-insensitively
83
+ */
84
+ handle: string;
85
+ /**
86
+ * secret of the shared document, e.g. "872D4A41df9Kx2L"; the Authorization header carries only the token of a logged-in user
87
+ */
88
+ xPortalSecret: string;
89
+ /**
90
+ * the portal service the file is uploaded for, e.g. "FormsPortal" or "AppointmentPortal"; decides which secret the
91
+ * X-Portal-Secret header carries and which limits apply. Unknown services are rejected.
92
+ *
93
+ */
94
+ xPortalService: string;
95
+ /**
96
+ * id of entity
97
+ */
98
+ id: string;
99
+ /**
100
+ *
101
+ */
102
+ partNumber: number;
103
+ /**
104
+ *
105
+ */
106
+ file: Blob;
107
+ }
108
+ /**
109
+ *
110
+ */
111
+ export declare class TenantPortalUploadsApi extends runtime.BaseAPI {
112
+ /**
113
+ * Creates request options for createTenantPortalFileFromUpload without sending the request
114
+ */
115
+ createTenantPortalFileFromUploadRequestOpts(requestParameters: CreateTenantPortalFileFromUploadRequest): Promise<runtime.RequestOpts>;
116
+ /**
117
+ * uses the manifest to create the temporary file
118
+ * create file from manifest
119
+ */
120
+ createTenantPortalFileFromUploadRaw(requestParameters: CreateTenantPortalFileFromUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileDetailsDto>>;
121
+ /**
122
+ * uses the manifest to create the temporary file
123
+ * create file from manifest
124
+ */
125
+ createTenantPortalFileFromUpload(requestParameters: CreateTenantPortalFileFromUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileDetailsDto>;
126
+ /**
127
+ * Creates request options for createTenantPortalUpload without sending the request
128
+ */
129
+ createTenantPortalUploadRequestOpts(requestParameters: CreateTenantPortalUploadRequest): Promise<runtime.RequestOpts>;
130
+ /**
131
+ * Starts the upload of a file a visitor submits with a portal service (e.g. a form or an appointment request). The service named by the header decides which secret is expected and which limits apply. The file is always uploaded in parts, a small file in a single part, and stored as temporary file until it is attached by the submission. Directory, tags and temp of the request are ignored.
132
+ * create file upload
133
+ */
134
+ createTenantPortalUploadRaw(requestParameters: CreateTenantPortalUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileUploadDto>>;
135
+ /**
136
+ * Starts the upload of a file a visitor submits with a portal service (e.g. a form or an appointment request). The service named by the header decides which secret is expected and which limits apply. The file is always uploaded in parts, a small file in a single part, and stored as temporary file until it is attached by the submission. Directory, tags and temp of the request are ignored.
137
+ * create file upload
138
+ */
139
+ createTenantPortalUpload(requestParameters: CreateTenantPortalUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileUploadDto>;
140
+ /**
141
+ * Creates request options for deleteTenantPortalUploadedFile without sending the request
142
+ */
143
+ deleteTenantPortalUploadedFileRequestOpts(requestParameters: DeleteTenantPortalUploadedFileRequest): Promise<runtime.RequestOpts>;
144
+ /**
145
+ * deletes a temporary file uploaded for the portal service; fails once the file is not temporary anymore
146
+ * delete an uploaded file
147
+ */
148
+ deleteTenantPortalUploadedFileRaw(requestParameters: DeleteTenantPortalUploadedFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
149
+ /**
150
+ * deletes a temporary file uploaded for the portal service; fails once the file is not temporary anymore
151
+ * delete an uploaded file
152
+ */
153
+ deleteTenantPortalUploadedFile(requestParameters: DeleteTenantPortalUploadedFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
154
+ /**
155
+ * Creates request options for uploadTenantPortalUploadPart without sending the request
156
+ */
157
+ uploadTenantPortalUploadPartRequestOpts(requestParameters: UploadTenantPortalUploadPartRequest): Promise<runtime.RequestOpts>;
158
+ /**
159
+ * upload part of file
160
+ */
161
+ uploadTenantPortalUploadPartRaw(requestParameters: UploadTenantPortalUploadPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileUploadPartDto>>;
162
+ /**
163
+ * upload part of file
164
+ */
165
+ uploadTenantPortalUploadPart(requestParameters: UploadTenantPortalUploadPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileUploadPartDto>;
166
+ }
@@ -0,0 +1,418 @@
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.TenantPortalUploadsApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var FileDetailsDto_1 = require("../models/FileDetailsDto");
69
+ var FileUploadDto_1 = require("../models/FileUploadDto");
70
+ var FileUploadManifestDto_1 = require("../models/FileUploadManifestDto");
71
+ var FileUploadPartDto_1 = require("../models/FileUploadPartDto");
72
+ /**
73
+ *
74
+ */
75
+ var TenantPortalUploadsApi = /** @class */ (function (_super) {
76
+ __extends(TenantPortalUploadsApi, _super);
77
+ function TenantPortalUploadsApi() {
78
+ return _super !== null && _super.apply(this, arguments) || this;
79
+ }
80
+ /**
81
+ * Creates request options for createTenantPortalFileFromUpload without sending the request
82
+ */
83
+ TenantPortalUploadsApi.prototype.createTenantPortalFileFromUploadRequestOpts = function (requestParameters) {
84
+ return __awaiter(this, void 0, void 0, function () {
85
+ var queryParameters, headerParameters, urlPath;
86
+ return __generator(this, function (_a) {
87
+ if (requestParameters['handle'] == null) {
88
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling createTenantPortalFileFromUpload().');
89
+ }
90
+ if (requestParameters['xPortalSecret'] == null) {
91
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling createTenantPortalFileFromUpload().');
92
+ }
93
+ if (requestParameters['xPortalService'] == null) {
94
+ throw new runtime.RequiredError('xPortalService', 'Required parameter "xPortalService" was null or undefined when calling createTenantPortalFileFromUpload().');
95
+ }
96
+ if (requestParameters['id'] == null) {
97
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createTenantPortalFileFromUpload().');
98
+ }
99
+ if (requestParameters['fileUploadManifestDto'] == null) {
100
+ throw new runtime.RequiredError('fileUploadManifestDto', 'Required parameter "fileUploadManifestDto" was null or undefined when calling createTenantPortalFileFromUpload().');
101
+ }
102
+ queryParameters = {};
103
+ headerParameters = {};
104
+ headerParameters['Content-Type'] = 'application/json';
105
+ if (requestParameters['xPortalSecret'] != null) {
106
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
107
+ }
108
+ if (requestParameters['xPortalService'] != null) {
109
+ headerParameters['X-Portal-Service'] = String(requestParameters['xPortalService']);
110
+ }
111
+ urlPath = "/ui/tenant-portal/v1/{handle}/uploads/{id}/manifest";
112
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
113
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
114
+ return [2 /*return*/, {
115
+ path: urlPath,
116
+ method: 'POST',
117
+ headers: headerParameters,
118
+ query: queryParameters,
119
+ body: (0, FileUploadManifestDto_1.FileUploadManifestDtoToJSON)(requestParameters['fileUploadManifestDto']),
120
+ }];
121
+ });
122
+ });
123
+ };
124
+ /**
125
+ * uses the manifest to create the temporary file
126
+ * create file from manifest
127
+ */
128
+ TenantPortalUploadsApi.prototype.createTenantPortalFileFromUploadRaw = function (requestParameters, initOverrides) {
129
+ return __awaiter(this, void 0, void 0, function () {
130
+ var requestOptions, response;
131
+ return __generator(this, function (_a) {
132
+ switch (_a.label) {
133
+ case 0: return [4 /*yield*/, this.createTenantPortalFileFromUploadRequestOpts(requestParameters)];
134
+ case 1:
135
+ requestOptions = _a.sent();
136
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
137
+ case 2:
138
+ response = _a.sent();
139
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FileDetailsDto_1.FileDetailsDtoFromJSON)(jsonValue); })];
140
+ }
141
+ });
142
+ });
143
+ };
144
+ /**
145
+ * uses the manifest to create the temporary file
146
+ * create file from manifest
147
+ */
148
+ TenantPortalUploadsApi.prototype.createTenantPortalFileFromUpload = function (requestParameters, initOverrides) {
149
+ return __awaiter(this, void 0, void 0, function () {
150
+ var response;
151
+ return __generator(this, function (_a) {
152
+ switch (_a.label) {
153
+ case 0: return [4 /*yield*/, this.createTenantPortalFileFromUploadRaw(requestParameters, initOverrides)];
154
+ case 1:
155
+ response = _a.sent();
156
+ return [4 /*yield*/, response.value()];
157
+ case 2: return [2 /*return*/, _a.sent()];
158
+ }
159
+ });
160
+ });
161
+ };
162
+ /**
163
+ * Creates request options for createTenantPortalUpload without sending the request
164
+ */
165
+ TenantPortalUploadsApi.prototype.createTenantPortalUploadRequestOpts = function (requestParameters) {
166
+ return __awaiter(this, void 0, void 0, function () {
167
+ var queryParameters, headerParameters, urlPath;
168
+ return __generator(this, function (_a) {
169
+ if (requestParameters['handle'] == null) {
170
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling createTenantPortalUpload().');
171
+ }
172
+ if (requestParameters['xPortalSecret'] == null) {
173
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling createTenantPortalUpload().');
174
+ }
175
+ if (requestParameters['xPortalService'] == null) {
176
+ throw new runtime.RequiredError('xPortalService', 'Required parameter "xPortalService" was null or undefined when calling createTenantPortalUpload().');
177
+ }
178
+ if (requestParameters['fileUploadDto'] == null) {
179
+ throw new runtime.RequiredError('fileUploadDto', 'Required parameter "fileUploadDto" was null or undefined when calling createTenantPortalUpload().');
180
+ }
181
+ queryParameters = {};
182
+ headerParameters = {};
183
+ headerParameters['Content-Type'] = 'application/json';
184
+ if (requestParameters['xPortalSecret'] != null) {
185
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
186
+ }
187
+ if (requestParameters['xPortalService'] != null) {
188
+ headerParameters['X-Portal-Service'] = String(requestParameters['xPortalService']);
189
+ }
190
+ urlPath = "/ui/tenant-portal/v1/{handle}/uploads";
191
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
192
+ return [2 /*return*/, {
193
+ path: urlPath,
194
+ method: 'POST',
195
+ headers: headerParameters,
196
+ query: queryParameters,
197
+ body: (0, FileUploadDto_1.FileUploadDtoToJSON)(requestParameters['fileUploadDto']),
198
+ }];
199
+ });
200
+ });
201
+ };
202
+ /**
203
+ * Starts the upload of a file a visitor submits with a portal service (e.g. a form or an appointment request). The service named by the header decides which secret is expected and which limits apply. The file is always uploaded in parts, a small file in a single part, and stored as temporary file until it is attached by the submission. Directory, tags and temp of the request are ignored.
204
+ * create file upload
205
+ */
206
+ TenantPortalUploadsApi.prototype.createTenantPortalUploadRaw = function (requestParameters, initOverrides) {
207
+ return __awaiter(this, void 0, void 0, function () {
208
+ var requestOptions, response;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0: return [4 /*yield*/, this.createTenantPortalUploadRequestOpts(requestParameters)];
212
+ case 1:
213
+ requestOptions = _a.sent();
214
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
215
+ case 2:
216
+ response = _a.sent();
217
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FileUploadDto_1.FileUploadDtoFromJSON)(jsonValue); })];
218
+ }
219
+ });
220
+ });
221
+ };
222
+ /**
223
+ * Starts the upload of a file a visitor submits with a portal service (e.g. a form or an appointment request). The service named by the header decides which secret is expected and which limits apply. The file is always uploaded in parts, a small file in a single part, and stored as temporary file until it is attached by the submission. Directory, tags and temp of the request are ignored.
224
+ * create file upload
225
+ */
226
+ TenantPortalUploadsApi.prototype.createTenantPortalUpload = function (requestParameters, initOverrides) {
227
+ return __awaiter(this, void 0, void 0, function () {
228
+ var response;
229
+ return __generator(this, function (_a) {
230
+ switch (_a.label) {
231
+ case 0: return [4 /*yield*/, this.createTenantPortalUploadRaw(requestParameters, initOverrides)];
232
+ case 1:
233
+ response = _a.sent();
234
+ return [4 /*yield*/, response.value()];
235
+ case 2: return [2 /*return*/, _a.sent()];
236
+ }
237
+ });
238
+ });
239
+ };
240
+ /**
241
+ * Creates request options for deleteTenantPortalUploadedFile without sending the request
242
+ */
243
+ TenantPortalUploadsApi.prototype.deleteTenantPortalUploadedFileRequestOpts = function (requestParameters) {
244
+ return __awaiter(this, void 0, void 0, function () {
245
+ var queryParameters, headerParameters, urlPath;
246
+ return __generator(this, function (_a) {
247
+ if (requestParameters['handle'] == null) {
248
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling deleteTenantPortalUploadedFile().');
249
+ }
250
+ if (requestParameters['xPortalSecret'] == null) {
251
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling deleteTenantPortalUploadedFile().');
252
+ }
253
+ if (requestParameters['xPortalService'] == null) {
254
+ throw new runtime.RequiredError('xPortalService', 'Required parameter "xPortalService" was null or undefined when calling deleteTenantPortalUploadedFile().');
255
+ }
256
+ if (requestParameters['id'] == null) {
257
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteTenantPortalUploadedFile().');
258
+ }
259
+ queryParameters = {};
260
+ headerParameters = {};
261
+ if (requestParameters['xPortalSecret'] != null) {
262
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
263
+ }
264
+ if (requestParameters['xPortalService'] != null) {
265
+ headerParameters['X-Portal-Service'] = String(requestParameters['xPortalService']);
266
+ }
267
+ urlPath = "/ui/tenant-portal/v1/{handle}/uploaded-files/{id}";
268
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
269
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
270
+ return [2 /*return*/, {
271
+ path: urlPath,
272
+ method: 'DELETE',
273
+ headers: headerParameters,
274
+ query: queryParameters,
275
+ }];
276
+ });
277
+ });
278
+ };
279
+ /**
280
+ * deletes a temporary file uploaded for the portal service; fails once the file is not temporary anymore
281
+ * delete an uploaded file
282
+ */
283
+ TenantPortalUploadsApi.prototype.deleteTenantPortalUploadedFileRaw = function (requestParameters, initOverrides) {
284
+ return __awaiter(this, void 0, void 0, function () {
285
+ var requestOptions, response;
286
+ return __generator(this, function (_a) {
287
+ switch (_a.label) {
288
+ case 0: return [4 /*yield*/, this.deleteTenantPortalUploadedFileRequestOpts(requestParameters)];
289
+ case 1:
290
+ requestOptions = _a.sent();
291
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
292
+ case 2:
293
+ response = _a.sent();
294
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
295
+ }
296
+ });
297
+ });
298
+ };
299
+ /**
300
+ * deletes a temporary file uploaded for the portal service; fails once the file is not temporary anymore
301
+ * delete an uploaded file
302
+ */
303
+ TenantPortalUploadsApi.prototype.deleteTenantPortalUploadedFile = function (requestParameters, initOverrides) {
304
+ return __awaiter(this, void 0, void 0, function () {
305
+ return __generator(this, function (_a) {
306
+ switch (_a.label) {
307
+ case 0: return [4 /*yield*/, this.deleteTenantPortalUploadedFileRaw(requestParameters, initOverrides)];
308
+ case 1:
309
+ _a.sent();
310
+ return [2 /*return*/];
311
+ }
312
+ });
313
+ });
314
+ };
315
+ /**
316
+ * Creates request options for uploadTenantPortalUploadPart without sending the request
317
+ */
318
+ TenantPortalUploadsApi.prototype.uploadTenantPortalUploadPartRequestOpts = function (requestParameters) {
319
+ return __awaiter(this, void 0, void 0, function () {
320
+ var queryParameters, headerParameters, consumes, canConsumeForm, formParams, useForm, urlPath;
321
+ return __generator(this, function (_a) {
322
+ if (requestParameters['handle'] == null) {
323
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling uploadTenantPortalUploadPart().');
324
+ }
325
+ if (requestParameters['xPortalSecret'] == null) {
326
+ throw new runtime.RequiredError('xPortalSecret', 'Required parameter "xPortalSecret" was null or undefined when calling uploadTenantPortalUploadPart().');
327
+ }
328
+ if (requestParameters['xPortalService'] == null) {
329
+ throw new runtime.RequiredError('xPortalService', 'Required parameter "xPortalService" was null or undefined when calling uploadTenantPortalUploadPart().');
330
+ }
331
+ if (requestParameters['id'] == null) {
332
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadTenantPortalUploadPart().');
333
+ }
334
+ if (requestParameters['partNumber'] == null) {
335
+ throw new runtime.RequiredError('partNumber', 'Required parameter "partNumber" was null or undefined when calling uploadTenantPortalUploadPart().');
336
+ }
337
+ if (requestParameters['file'] == null) {
338
+ throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling uploadTenantPortalUploadPart().');
339
+ }
340
+ queryParameters = {};
341
+ headerParameters = {};
342
+ if (requestParameters['xPortalSecret'] != null) {
343
+ headerParameters['X-Portal-Secret'] = String(requestParameters['xPortalSecret']);
344
+ }
345
+ if (requestParameters['xPortalService'] != null) {
346
+ headerParameters['X-Portal-Service'] = String(requestParameters['xPortalService']);
347
+ }
348
+ consumes = [
349
+ { contentType: 'multipart/form-data' },
350
+ ];
351
+ canConsumeForm = runtime.canConsumeForm(consumes);
352
+ useForm = false;
353
+ // use FormData to transmit files using content-type "multipart/form-data"
354
+ useForm = canConsumeForm;
355
+ if (useForm) {
356
+ formParams = new FormData();
357
+ }
358
+ else {
359
+ formParams = new URLSearchParams();
360
+ }
361
+ if (requestParameters['partNumber'] != null) {
362
+ formParams.append('partNumber', requestParameters['partNumber']);
363
+ }
364
+ if (requestParameters['file'] != null) {
365
+ formParams.append('file', requestParameters['file']);
366
+ }
367
+ urlPath = "/ui/tenant-portal/v1/{handle}/uploads/{id}/parts";
368
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
369
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
370
+ return [2 /*return*/, {
371
+ path: urlPath,
372
+ method: 'POST',
373
+ headers: headerParameters,
374
+ query: queryParameters,
375
+ body: formParams,
376
+ }];
377
+ });
378
+ });
379
+ };
380
+ /**
381
+ * upload part of file
382
+ */
383
+ TenantPortalUploadsApi.prototype.uploadTenantPortalUploadPartRaw = function (requestParameters, initOverrides) {
384
+ return __awaiter(this, void 0, void 0, function () {
385
+ var requestOptions, response;
386
+ return __generator(this, function (_a) {
387
+ switch (_a.label) {
388
+ case 0: return [4 /*yield*/, this.uploadTenantPortalUploadPartRequestOpts(requestParameters)];
389
+ case 1:
390
+ requestOptions = _a.sent();
391
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
392
+ case 2:
393
+ response = _a.sent();
394
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FileUploadPartDto_1.FileUploadPartDtoFromJSON)(jsonValue); })];
395
+ }
396
+ });
397
+ });
398
+ };
399
+ /**
400
+ * upload part of file
401
+ */
402
+ TenantPortalUploadsApi.prototype.uploadTenantPortalUploadPart = function (requestParameters, initOverrides) {
403
+ return __awaiter(this, void 0, void 0, function () {
404
+ var response;
405
+ return __generator(this, function (_a) {
406
+ switch (_a.label) {
407
+ case 0: return [4 /*yield*/, this.uploadTenantPortalUploadPartRaw(requestParameters, initOverrides)];
408
+ case 1:
409
+ response = _a.sent();
410
+ return [4 /*yield*/, response.value()];
411
+ case 2: return [2 /*return*/, _a.sent()];
412
+ }
413
+ });
414
+ });
415
+ };
416
+ return TenantPortalUploadsApi;
417
+ }(runtime.BaseAPI));
418
+ exports.TenantPortalUploadsApi = TenantPortalUploadsApi;
@@ -71,13 +71,13 @@ export declare class UsersMeApi extends runtime.BaseAPI {
71
71
  */
72
72
  downloadMyCalendarEntryIcalRequestOpts(requestParameters: DownloadMyCalendarEntryIcalRequest): Promise<runtime.RequestOpts>;
73
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
74
+ * A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
75
+ * download a calendar entry the logged-in user owns or attends as iCalendar file
76
76
  */
77
77
  downloadMyCalendarEntryIcalRaw(requestParameters: DownloadMyCalendarEntryIcalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
78
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
79
+ * A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
80
+ * download a calendar entry the logged-in user owns or attends as iCalendar file
81
81
  */
82
82
  downloadMyCalendarEntryIcal(requestParameters: DownloadMyCalendarEntryIcalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
83
83
  /**
@@ -124,12 +124,12 @@ export declare class UsersMeApi extends runtime.BaseAPI {
124
124
  getMyCalendarEntriesRequestOpts(requestParameters: GetMyCalendarEntriesRequest): Promise<runtime.RequestOpts>;
125
125
  /**
126
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
127
+ * list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
128
128
  */
129
129
  getMyCalendarEntriesRaw(requestParameters: GetMyCalendarEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountCalendarEntryDto>>>;
130
130
  /**
131
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
132
+ * list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
133
133
  */
134
134
  getMyCalendarEntries(requestParameters: GetMyCalendarEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountCalendarEntryDto>>;
135
135
  /**
@@ -154,8 +154,8 @@ var UsersMeApi = /** @class */ (function (_super) {
154
154
  });
155
155
  };
156
156
  /**
157
- * A repeating entry is returned as series, including its repeat rule.
158
- * download a calendar entry the logged-in user attends as iCalendar file
157
+ * A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
158
+ * download a calendar entry the logged-in user owns or attends as iCalendar file
159
159
  */
160
160
  UsersMeApi.prototype.downloadMyCalendarEntryIcalRaw = function (requestParameters, initOverrides) {
161
161
  return __awaiter(this, void 0, void 0, function () {
@@ -174,8 +174,8 @@ var UsersMeApi = /** @class */ (function (_super) {
174
174
  });
175
175
  };
176
176
  /**
177
- * A repeating entry is returned as series, including its repeat rule.
178
- * download a calendar entry the logged-in user attends as iCalendar file
177
+ * A repeating entry is returned as series, including its repeat rule. An attendee receives an invitation (PUBLISH for a type without answers), an owner who is no attendee the published entry.
178
+ * download a calendar entry the logged-in user owns or attends as iCalendar file
179
179
  */
180
180
  UsersMeApi.prototype.downloadMyCalendarEntryIcal = function (requestParameters, initOverrides) {
181
181
  return __awaiter(this, void 0, void 0, function () {
@@ -403,7 +403,7 @@ var UsersMeApi = /** @class */ (function (_super) {
403
403
  };
404
404
  /**
405
405
  * Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
406
- * list the calendar entries the logged-in user attends at any tenant overlapping a period
406
+ * list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
407
407
  */
408
408
  UsersMeApi.prototype.getMyCalendarEntriesRaw = function (requestParameters, initOverrides) {
409
409
  return __awaiter(this, void 0, void 0, function () {
@@ -423,7 +423,7 @@ var UsersMeApi = /** @class */ (function (_super) {
423
423
  };
424
424
  /**
425
425
  * Every repeating entry is expanded into its occurrences, which are sorted by their start. Filterable fields: summary, location, type.name.
426
- * list the calendar entries the logged-in user attends at any tenant overlapping a period
426
+ * list the calendar entries the logged-in user owns or attends at any tenant overlapping a period
427
427
  */
428
428
  UsersMeApi.prototype.getMyCalendarEntries = function (requestParameters, initOverrides) {
429
429
  return __awaiter(this, void 0, void 0, function () {