@kommerz/ts-client 1.190.0 → 1.192.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 (39) hide show
  1. package/dist/apis/AppointmentPortalApi.d.ts +172 -0
  2. package/dist/apis/AppointmentPortalApi.js +478 -0
  3. package/dist/apis/AppointmentsApi.d.ts +121 -0
  4. package/dist/apis/AppointmentsApi.js +387 -0
  5. package/dist/apis/MapsApi.d.ts +84 -0
  6. package/dist/apis/MapsApi.js +268 -0
  7. package/dist/apis/UsersMeApi.d.ts +13 -0
  8. package/dist/apis/UsersMeApi.js +56 -0
  9. package/dist/apis/index.d.ts +3 -0
  10. package/dist/apis/index.js +3 -0
  11. package/dist/models/AccountAppointmentDto.d.ts +38 -0
  12. package/dist/models/AccountAppointmentDto.js +59 -0
  13. package/dist/models/AppointmentDto.d.ts +55 -0
  14. package/dist/models/AppointmentDto.js +64 -0
  15. package/dist/models/AppointmentPortalDto.d.ts +43 -0
  16. package/dist/models/AppointmentPortalDto.js +62 -0
  17. package/dist/models/AppointmentSlotDistance.d.ts +25 -0
  18. package/dist/models/AppointmentSlotDistance.js +51 -0
  19. package/dist/models/AppointmentSlotDto.d.ts +43 -0
  20. package/dist/models/AppointmentSlotDto.js +60 -0
  21. package/dist/models/AppointmentStatus.d.ts +26 -0
  22. package/dist/models/AppointmentStatus.js +52 -0
  23. package/dist/models/CalendarEntryTypeDto.d.ts +12 -0
  24. package/dist/models/CalendarEntryTypeDto.js +6 -0
  25. package/dist/models/ConfigKey.d.ts +1 -0
  26. package/dist/models/ConfigKey.js +1 -0
  27. package/dist/models/EntityType.d.ts +1 -0
  28. package/dist/models/EntityType.js +1 -0
  29. package/dist/models/GetAllAppointmentSlots200Response.d.ts +42 -0
  30. package/dist/models/GetAllAppointmentSlots200Response.js +59 -0
  31. package/dist/models/GetAllAppointments200Response.d.ts +42 -0
  32. package/dist/models/GetAllAppointments200Response.js +59 -0
  33. package/dist/models/Permissions.d.ts +4 -0
  34. package/dist/models/Permissions.js +4 -0
  35. package/dist/models/RoutingConfigDto.d.ts +89 -0
  36. package/dist/models/RoutingConfigDto.js +108 -0
  37. package/dist/models/index.d.ts +9 -0
  38. package/dist/models/index.js +9 -0
  39. package/package.json +1 -1
@@ -0,0 +1,268 @@
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.MapsApi = void 0;
67
+ var runtime = require("../runtime");
68
+ /**
69
+ *
70
+ */
71
+ var MapsApi = /** @class */ (function (_super) {
72
+ __extends(MapsApi, _super);
73
+ function MapsApi() {
74
+ return _super !== null && _super.apply(this, arguments) || this;
75
+ }
76
+ /**
77
+ * Creates request options for getMapGlyphs without sending the request
78
+ */
79
+ MapsApi.prototype.getMapGlyphsRequestOpts = function (requestParameters) {
80
+ return __awaiter(this, void 0, void 0, function () {
81
+ var queryParameters, headerParameters, urlPath;
82
+ return __generator(this, function (_a) {
83
+ if (requestParameters['fontStack'] == null) {
84
+ throw new runtime.RequiredError('fontStack', 'Required parameter "fontStack" was null or undefined when calling getMapGlyphs().');
85
+ }
86
+ if (requestParameters['glyphRange'] == null) {
87
+ throw new runtime.RequiredError('glyphRange', 'Required parameter "glyphRange" was null or undefined when calling getMapGlyphs().');
88
+ }
89
+ queryParameters = {};
90
+ headerParameters = {};
91
+ urlPath = "/ui/maps/v1/fonts/{fontStack}/{glyphRange}";
92
+ urlPath = urlPath.replace('{fontStack}', encodeURIComponent(String(requestParameters['fontStack'])));
93
+ urlPath = urlPath.replace('{glyphRange}', encodeURIComponent(String(requestParameters['glyphRange'])));
94
+ return [2 /*return*/, {
95
+ path: urlPath,
96
+ method: 'GET',
97
+ headers: headerParameters,
98
+ query: queryParameters,
99
+ }];
100
+ });
101
+ });
102
+ };
103
+ /**
104
+ * Every valid Kommerz login is accepted, no permission is checked.
105
+ * get the glyphs of a font that the street map renders its labels with
106
+ */
107
+ MapsApi.prototype.getMapGlyphsRaw = function (requestParameters, initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function () {
109
+ var requestOptions, response;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0: return [4 /*yield*/, this.getMapGlyphsRequestOpts(requestParameters)];
113
+ case 1:
114
+ requestOptions = _a.sent();
115
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
116
+ case 2:
117
+ response = _a.sent();
118
+ return [2 /*return*/, new runtime.BlobApiResponse(response)];
119
+ }
120
+ });
121
+ });
122
+ };
123
+ /**
124
+ * Every valid Kommerz login is accepted, no permission is checked.
125
+ * get the glyphs of a font that the street map renders its labels with
126
+ */
127
+ MapsApi.prototype.getMapGlyphs = function (requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var response;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0: return [4 /*yield*/, this.getMapGlyphsRaw(requestParameters, initOverrides)];
133
+ case 1:
134
+ response = _a.sent();
135
+ return [4 /*yield*/, response.value()];
136
+ case 2: return [2 /*return*/, _a.sent()];
137
+ }
138
+ });
139
+ });
140
+ };
141
+ /**
142
+ * Creates request options for getMapSprite without sending the request
143
+ */
144
+ MapsApi.prototype.getMapSpriteRequestOpts = function (requestParameters) {
145
+ return __awaiter(this, void 0, void 0, function () {
146
+ var queryParameters, headerParameters, urlPath;
147
+ return __generator(this, function (_a) {
148
+ if (requestParameters['name'] == null) {
149
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getMapSprite().');
150
+ }
151
+ queryParameters = {};
152
+ headerParameters = {};
153
+ urlPath = "/ui/maps/v1/sprites/{name}";
154
+ urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
155
+ return [2 /*return*/, {
156
+ path: urlPath,
157
+ method: 'GET',
158
+ headers: headerParameters,
159
+ query: queryParameters,
160
+ }];
161
+ });
162
+ });
163
+ };
164
+ /**
165
+ * Every valid Kommerz login is accepted, no permission is checked.
166
+ * get the index or the image of a sprite with the icons of the street map
167
+ */
168
+ MapsApi.prototype.getMapSpriteRaw = function (requestParameters, initOverrides) {
169
+ return __awaiter(this, void 0, void 0, function () {
170
+ var requestOptions, response;
171
+ return __generator(this, function (_a) {
172
+ switch (_a.label) {
173
+ case 0: return [4 /*yield*/, this.getMapSpriteRequestOpts(requestParameters)];
174
+ case 1:
175
+ requestOptions = _a.sent();
176
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
177
+ case 2:
178
+ response = _a.sent();
179
+ return [2 /*return*/, new runtime.BlobApiResponse(response)];
180
+ }
181
+ });
182
+ });
183
+ };
184
+ /**
185
+ * Every valid Kommerz login is accepted, no permission is checked.
186
+ * get the index or the image of a sprite with the icons of the street map
187
+ */
188
+ MapsApi.prototype.getMapSprite = function (requestParameters, initOverrides) {
189
+ return __awaiter(this, void 0, void 0, function () {
190
+ var response;
191
+ return __generator(this, function (_a) {
192
+ switch (_a.label) {
193
+ case 0: return [4 /*yield*/, this.getMapSpriteRaw(requestParameters, initOverrides)];
194
+ case 1:
195
+ response = _a.sent();
196
+ return [4 /*yield*/, response.value()];
197
+ case 2: return [2 /*return*/, _a.sent()];
198
+ }
199
+ });
200
+ });
201
+ };
202
+ /**
203
+ * Creates request options for getMapTileset without sending the request
204
+ */
205
+ MapsApi.prototype.getMapTilesetRequestOpts = function (requestParameters) {
206
+ return __awaiter(this, void 0, void 0, function () {
207
+ var queryParameters, headerParameters, urlPath;
208
+ return __generator(this, function (_a) {
209
+ if (requestParameters['name'] == null) {
210
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getMapTileset().');
211
+ }
212
+ queryParameters = {};
213
+ headerParameters = {};
214
+ if (requestParameters['range'] != null) {
215
+ headerParameters['Range'] = String(requestParameters['range']);
216
+ }
217
+ urlPath = "/ui/maps/v1/tilesets/{name}";
218
+ urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
219
+ return [2 /*return*/, {
220
+ path: urlPath,
221
+ method: 'GET',
222
+ headers: headerParameters,
223
+ query: queryParameters,
224
+ }];
225
+ });
226
+ });
227
+ };
228
+ /**
229
+ * Every valid Kommerz login is accepted, no permission is checked. The Range header is forwarded to the storage, so a client reads the archive piece by piece.
230
+ * get the bytes of a PMTiles archive with vector tiles of the street map
231
+ */
232
+ MapsApi.prototype.getMapTilesetRaw = function (requestParameters, initOverrides) {
233
+ return __awaiter(this, void 0, void 0, function () {
234
+ var requestOptions, response;
235
+ return __generator(this, function (_a) {
236
+ switch (_a.label) {
237
+ case 0: return [4 /*yield*/, this.getMapTilesetRequestOpts(requestParameters)];
238
+ case 1:
239
+ requestOptions = _a.sent();
240
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
241
+ case 2:
242
+ response = _a.sent();
243
+ return [2 /*return*/, new runtime.BlobApiResponse(response)];
244
+ }
245
+ });
246
+ });
247
+ };
248
+ /**
249
+ * Every valid Kommerz login is accepted, no permission is checked. The Range header is forwarded to the storage, so a client reads the archive piece by piece.
250
+ * get the bytes of a PMTiles archive with vector tiles of the street map
251
+ */
252
+ MapsApi.prototype.getMapTileset = function (requestParameters, initOverrides) {
253
+ return __awaiter(this, void 0, void 0, function () {
254
+ var response;
255
+ return __generator(this, function (_a) {
256
+ switch (_a.label) {
257
+ case 0: return [4 /*yield*/, this.getMapTilesetRaw(requestParameters, initOverrides)];
258
+ case 1:
259
+ response = _a.sent();
260
+ return [4 /*yield*/, response.value()];
261
+ case 2: return [2 /*return*/, _a.sent()];
262
+ }
263
+ });
264
+ });
265
+ };
266
+ return MapsApi;
267
+ }(runtime.BaseAPI));
268
+ exports.MapsApi = MapsApi;
@@ -9,6 +9,7 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import * as runtime from '../runtime';
12
+ import { type AccountAppointmentDto } from '../models/AccountAppointmentDto';
12
13
  import { type AccountDeletionPreviewDto } from '../models/AccountDeletionPreviewDto';
13
14
  import { type UserDto } from '../models/UserDto';
14
15
  export interface UpdateAvatarRequest {
@@ -57,6 +58,18 @@ export declare class UsersMeApi extends runtime.BaseAPI {
57
58
  * get user information
58
59
  */
59
60
  getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDto>;
61
+ /**
62
+ * Creates request options for getMyAppointments without sending the request
63
+ */
64
+ getMyAppointmentsRequestOpts(): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * list the appointments the logged-in user requested at any tenant
67
+ */
68
+ getMyAppointmentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountAppointmentDto>>>;
69
+ /**
70
+ * list the appointments the logged-in user requested at any tenant
71
+ */
72
+ getMyAppointments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountAppointmentDto>>;
60
73
  /**
61
74
  * Creates request options for requestAccountDeletion without sending the request
62
75
  */
@@ -65,6 +65,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
65
65
  Object.defineProperty(exports, "__esModule", { value: true });
66
66
  exports.UsersMeApi = void 0;
67
67
  var runtime = require("../runtime");
68
+ var AccountAppointmentDto_1 = require("../models/AccountAppointmentDto");
68
69
  var AccountDeletionPreviewDto_1 = require("../models/AccountDeletionPreviewDto");
69
70
  var UserDto_1 = require("../models/UserDto");
70
71
  /**
@@ -238,6 +239,61 @@ var UsersMeApi = /** @class */ (function (_super) {
238
239
  });
239
240
  });
240
241
  };
242
+ /**
243
+ * Creates request options for getMyAppointments without sending the request
244
+ */
245
+ UsersMeApi.prototype.getMyAppointmentsRequestOpts = function () {
246
+ return __awaiter(this, void 0, void 0, function () {
247
+ var queryParameters, headerParameters, urlPath;
248
+ return __generator(this, function (_a) {
249
+ queryParameters = {};
250
+ headerParameters = {};
251
+ urlPath = "/ui/users/v1/me/appointments";
252
+ return [2 /*return*/, {
253
+ path: urlPath,
254
+ method: 'GET',
255
+ headers: headerParameters,
256
+ query: queryParameters,
257
+ }];
258
+ });
259
+ });
260
+ };
261
+ /**
262
+ * list the appointments the logged-in user requested at any tenant
263
+ */
264
+ UsersMeApi.prototype.getMyAppointmentsRaw = function (initOverrides) {
265
+ return __awaiter(this, void 0, void 0, function () {
266
+ var requestOptions, response;
267
+ return __generator(this, function (_a) {
268
+ switch (_a.label) {
269
+ case 0: return [4 /*yield*/, this.getMyAppointmentsRequestOpts()];
270
+ case 1:
271
+ requestOptions = _a.sent();
272
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
273
+ case 2:
274
+ response = _a.sent();
275
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(AccountAppointmentDto_1.AccountAppointmentDtoFromJSON); })];
276
+ }
277
+ });
278
+ });
279
+ };
280
+ /**
281
+ * list the appointments the logged-in user requested at any tenant
282
+ */
283
+ UsersMeApi.prototype.getMyAppointments = function (initOverrides) {
284
+ return __awaiter(this, void 0, void 0, function () {
285
+ var response;
286
+ return __generator(this, function (_a) {
287
+ switch (_a.label) {
288
+ case 0: return [4 /*yield*/, this.getMyAppointmentsRaw(initOverrides)];
289
+ case 1:
290
+ response = _a.sent();
291
+ return [4 /*yield*/, response.value()];
292
+ case 2: return [2 /*return*/, _a.sent()];
293
+ }
294
+ });
295
+ });
296
+ };
241
297
  /**
242
298
  * Creates request options for requestAccountDeletion without sending the request
243
299
  */
@@ -11,6 +11,8 @@ export * from './AccountingStatementsApi';
11
11
  export * from './AccountingTransactionsApi';
12
12
  export * from './AccountingTurnoversApi';
13
13
  export * from './ActivitiesApi';
14
+ export * from './AppointmentPortalApi';
15
+ export * from './AppointmentsApi';
14
16
  export * from './ApprovalEntriesApi';
15
17
  export * from './ApprovalEntriesApproveApi';
16
18
  export * from './ApprovalTypesApi';
@@ -54,6 +56,7 @@ export * from './JobsApi';
54
56
  export * from './KanbanBoardsApi';
55
57
  export * from './KanbanCardsApi';
56
58
  export * from './KanbanColumnsApi';
59
+ export * from './MapsApi';
57
60
  export * from './MentionsApi';
58
61
  export * from './NotificationTargetsApi';
59
62
  export * from './NotificationsApi';
@@ -29,6 +29,8 @@ __exportStar(require("./AccountingStatementsApi"), exports);
29
29
  __exportStar(require("./AccountingTransactionsApi"), exports);
30
30
  __exportStar(require("./AccountingTurnoversApi"), exports);
31
31
  __exportStar(require("./ActivitiesApi"), exports);
32
+ __exportStar(require("./AppointmentPortalApi"), exports);
33
+ __exportStar(require("./AppointmentsApi"), exports);
32
34
  __exportStar(require("./ApprovalEntriesApi"), exports);
33
35
  __exportStar(require("./ApprovalEntriesApproveApi"), exports);
34
36
  __exportStar(require("./ApprovalTypesApi"), exports);
@@ -72,6 +74,7 @@ __exportStar(require("./JobsApi"), exports);
72
74
  __exportStar(require("./KanbanBoardsApi"), exports);
73
75
  __exportStar(require("./KanbanCardsApi"), exports);
74
76
  __exportStar(require("./KanbanColumnsApi"), exports);
77
+ __exportStar(require("./MapsApi"), exports);
75
78
  __exportStar(require("./MentionsApi"), exports);
76
79
  __exportStar(require("./NotificationTargetsApi"), exports);
77
80
  __exportStar(require("./NotificationsApi"), exports);
@@ -0,0 +1,38 @@
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 type { AppointmentPortalDto } from './AppointmentPortalDto';
12
+ /**
13
+ * an appointment of the logged-in user together with the tenant it was requested at
14
+ * @export
15
+ * @interface AccountAppointmentDto
16
+ */
17
+ export interface AccountAppointmentDto {
18
+ /**
19
+ *
20
+ */
21
+ tenantHandle: string;
22
+ /**
23
+ *
24
+ */
25
+ tenantName: string;
26
+ /**
27
+ *
28
+ */
29
+ appointment: AppointmentPortalDto;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AccountAppointmentDto interface.
33
+ */
34
+ export declare function instanceOfAccountAppointmentDto(value: object): value is AccountAppointmentDto;
35
+ export declare function AccountAppointmentDtoFromJSON(json: any): AccountAppointmentDto;
36
+ export declare function AccountAppointmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAppointmentDto;
37
+ export declare function AccountAppointmentDtoToJSON(json: any): AccountAppointmentDto;
38
+ export declare function AccountAppointmentDtoToJSONTyped(value?: AccountAppointmentDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.instanceOfAccountAppointmentDto = instanceOfAccountAppointmentDto;
16
+ exports.AccountAppointmentDtoFromJSON = AccountAppointmentDtoFromJSON;
17
+ exports.AccountAppointmentDtoFromJSONTyped = AccountAppointmentDtoFromJSONTyped;
18
+ exports.AccountAppointmentDtoToJSON = AccountAppointmentDtoToJSON;
19
+ exports.AccountAppointmentDtoToJSONTyped = AccountAppointmentDtoToJSONTyped;
20
+ var AppointmentPortalDto_1 = require("./AppointmentPortalDto");
21
+ /**
22
+ * Check if a given object implements the AccountAppointmentDto interface.
23
+ */
24
+ function instanceOfAccountAppointmentDto(value) {
25
+ if (!('tenantHandle' in value) || value['tenantHandle'] === undefined)
26
+ return false;
27
+ if (!('tenantName' in value) || value['tenantName'] === undefined)
28
+ return false;
29
+ if (!('appointment' in value) || value['appointment'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AccountAppointmentDtoFromJSON(json) {
34
+ return AccountAppointmentDtoFromJSONTyped(json, false);
35
+ }
36
+ function AccountAppointmentDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'tenantHandle': json['tenantHandle'],
42
+ 'tenantName': json['tenantName'],
43
+ 'appointment': (0, AppointmentPortalDto_1.AppointmentPortalDtoFromJSON)(json['appointment']),
44
+ };
45
+ }
46
+ function AccountAppointmentDtoToJSON(json) {
47
+ return AccountAppointmentDtoToJSONTyped(json, false);
48
+ }
49
+ function AccountAppointmentDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'tenantHandle': value['tenantHandle'],
56
+ 'tenantName': value['tenantName'],
57
+ 'appointment': (0, AppointmentPortalDto_1.AppointmentPortalDtoToJSON)(value['appointment']),
58
+ };
59
+ }
@@ -0,0 +1,55 @@
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 type { TimeSpanDto } from './TimeSpanDto';
12
+ import type { AppointmentStatus } from './AppointmentStatus';
13
+ /**
14
+ * an appointment a user requested in the tenant portal or a member of the tenant created
15
+ * @export
16
+ * @interface AppointmentDto
17
+ */
18
+ export interface AppointmentDto {
19
+ /**
20
+ *
21
+ */
22
+ id?: string;
23
+ /**
24
+ *
25
+ */
26
+ version?: number;
27
+ /**
28
+ *
29
+ */
30
+ submittedTimeSpan: TimeSpanDto;
31
+ /**
32
+ * the time span the tenant agreed to, required for the status CONFIRMED and PLANNED
33
+ */
34
+ confirmedTimeSpan?: TimeSpanDto;
35
+ /**
36
+ *
37
+ */
38
+ status: AppointmentStatus;
39
+ /**
40
+ * the user who requested the appointment
41
+ */
42
+ readonly userId?: string;
43
+ /**
44
+ * name of the user who requested the appointment
45
+ */
46
+ readonly userName?: string;
47
+ }
48
+ /**
49
+ * Check if a given object implements the AppointmentDto interface.
50
+ */
51
+ export declare function instanceOfAppointmentDto(value: object): value is AppointmentDto;
52
+ export declare function AppointmentDtoFromJSON(json: any): AppointmentDto;
53
+ export declare function AppointmentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppointmentDto;
54
+ export declare function AppointmentDtoToJSON(json: any): AppointmentDto;
55
+ export declare function AppointmentDtoToJSONTyped(value?: Omit<AppointmentDto, 'userId' | 'userName'> | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.instanceOfAppointmentDto = instanceOfAppointmentDto;
16
+ exports.AppointmentDtoFromJSON = AppointmentDtoFromJSON;
17
+ exports.AppointmentDtoFromJSONTyped = AppointmentDtoFromJSONTyped;
18
+ exports.AppointmentDtoToJSON = AppointmentDtoToJSON;
19
+ exports.AppointmentDtoToJSONTyped = AppointmentDtoToJSONTyped;
20
+ var TimeSpanDto_1 = require("./TimeSpanDto");
21
+ var AppointmentStatus_1 = require("./AppointmentStatus");
22
+ /**
23
+ * Check if a given object implements the AppointmentDto interface.
24
+ */
25
+ function instanceOfAppointmentDto(value) {
26
+ if (!('submittedTimeSpan' in value) || value['submittedTimeSpan'] === undefined)
27
+ return false;
28
+ if (!('status' in value) || value['status'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AppointmentDtoFromJSON(json) {
33
+ return AppointmentDtoFromJSONTyped(json, false);
34
+ }
35
+ function AppointmentDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'] == null ? undefined : json['id'],
41
+ 'version': json['version'] == null ? undefined : json['version'],
42
+ 'submittedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['submittedTimeSpan']),
43
+ 'confirmedTimeSpan': json['confirmedTimeSpan'] == null ? undefined : (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['confirmedTimeSpan']),
44
+ 'status': (0, AppointmentStatus_1.AppointmentStatusFromJSON)(json['status']),
45
+ 'userId': json['userId'] == null ? undefined : json['userId'],
46
+ 'userName': json['userName'] == null ? undefined : json['userName'],
47
+ };
48
+ }
49
+ function AppointmentDtoToJSON(json) {
50
+ return AppointmentDtoToJSONTyped(json, false);
51
+ }
52
+ function AppointmentDtoToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'version': value['version'],
60
+ 'submittedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['submittedTimeSpan']),
61
+ 'confirmedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['confirmedTimeSpan']),
62
+ 'status': (0, AppointmentStatus_1.AppointmentStatusToJSON)(value['status']),
63
+ };
64
+ }
@@ -0,0 +1,43 @@
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 type { TimeSpanDto } from './TimeSpanDto';
12
+ import type { AppointmentStatus } from './AppointmentStatus';
13
+ /**
14
+ * an appointment as its requester sees it in the tenant portal and in the account
15
+ * @export
16
+ * @interface AppointmentPortalDto
17
+ */
18
+ export interface AppointmentPortalDto {
19
+ /**
20
+ *
21
+ */
22
+ id: string;
23
+ /**
24
+ *
25
+ */
26
+ submittedTimeSpan: TimeSpanDto;
27
+ /**
28
+ *
29
+ */
30
+ confirmedTimeSpan?: TimeSpanDto;
31
+ /**
32
+ *
33
+ */
34
+ status: AppointmentStatus;
35
+ }
36
+ /**
37
+ * Check if a given object implements the AppointmentPortalDto interface.
38
+ */
39
+ export declare function instanceOfAppointmentPortalDto(value: object): value is AppointmentPortalDto;
40
+ export declare function AppointmentPortalDtoFromJSON(json: any): AppointmentPortalDto;
41
+ export declare function AppointmentPortalDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppointmentPortalDto;
42
+ export declare function AppointmentPortalDtoToJSON(json: any): AppointmentPortalDto;
43
+ export declare function AppointmentPortalDtoToJSONTyped(value?: AppointmentPortalDto | null, ignoreDiscriminator?: boolean): any;