@kommerz/ts-client 1.191.0 → 1.193.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/AppointmentPortalApi.d.ts +131 -10
- package/dist/apis/AppointmentPortalApi.js +339 -10
- package/dist/apis/AppointmentsApi.d.ts +121 -0
- package/dist/apis/AppointmentsApi.js +387 -0
- package/dist/apis/CalendarEntriesApi.d.ts +45 -2
- package/dist/apis/CalendarEntriesApi.js +82 -0
- package/dist/apis/CustomersApi.d.ts +6 -2
- package/dist/apis/CustomersApi.js +3 -0
- package/dist/apis/MapsApi.d.ts +84 -0
- package/dist/apis/MapsApi.js +268 -0
- package/dist/apis/UsersMeApi.d.ts +13 -0
- package/dist/apis/UsersMeApi.js +56 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountAppointmentDto.d.ts +38 -0
- package/dist/models/AccountAppointmentDto.js +59 -0
- package/dist/models/AppointmentDto.d.ts +55 -0
- package/dist/models/AppointmentDto.js +64 -0
- package/dist/models/AppointmentPortalDto.d.ts +43 -0
- package/dist/models/AppointmentPortalDto.js +62 -0
- package/dist/models/AppointmentStatus.d.ts +26 -0
- package/dist/models/AppointmentStatus.js +52 -0
- package/dist/models/CalendarEntryDto.d.ts +21 -1
- package/dist/models/CalendarEntryDto.js +7 -0
- package/dist/models/CustomerDto.d.ts +5 -1
- package/dist/models/CustomerDto.js +2 -0
- package/dist/models/DavCalendarDto.d.ts +34 -0
- package/dist/models/DavCalendarDto.js +55 -0
- package/dist/models/DavCalendarResourceDto.d.ts +46 -0
- package/dist/models/DavCalendarResourceDto.js +67 -0
- package/dist/models/DavCalendarResourceWriteDto.d.ts +34 -0
- package/dist/models/DavCalendarResourceWriteDto.js +55 -0
- package/dist/models/EntityType.d.ts +1 -0
- package/dist/models/EntityType.js +1 -0
- package/dist/models/GetAllAppointments200Response.d.ts +42 -0
- package/dist/models/GetAllAppointments200Response.js +59 -0
- package/dist/models/Permissions.d.ts +4 -0
- package/dist/models/Permissions.js +4 -0
- package/dist/models/RecurrenceScope.d.ts +25 -0
- package/dist/models/RecurrenceScope.js +51 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/package.json +1 -1
|
@@ -146,6 +146,12 @@ var CalendarEntriesApi = /** @class */ (function (_super) {
|
|
|
146
146
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCalendarEntry().');
|
|
147
147
|
}
|
|
148
148
|
queryParameters = {};
|
|
149
|
+
if (requestParameters['recurrenceScope'] != null) {
|
|
150
|
+
queryParameters['recurrenceScope'] = requestParameters['recurrenceScope'];
|
|
151
|
+
}
|
|
152
|
+
if (requestParameters['originalStartDate'] != null) {
|
|
153
|
+
queryParameters['originalStartDate'] = requestParameters['originalStartDate'];
|
|
154
|
+
}
|
|
149
155
|
headerParameters = {};
|
|
150
156
|
urlPath = "/ui/calendar/v1/calendar-entries/{id}";
|
|
151
157
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
@@ -315,6 +321,76 @@ var CalendarEntriesApi = /** @class */ (function (_super) {
|
|
|
315
321
|
});
|
|
316
322
|
});
|
|
317
323
|
};
|
|
324
|
+
/**
|
|
325
|
+
* Creates request options for getCalendarEntryOccurrences without sending the request
|
|
326
|
+
*/
|
|
327
|
+
CalendarEntriesApi.prototype.getCalendarEntryOccurrencesRequestOpts = function (requestParameters) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
329
|
+
var queryParameters, headerParameters, urlPath;
|
|
330
|
+
return __generator(this, function (_a) {
|
|
331
|
+
if (requestParameters['from'] == null) {
|
|
332
|
+
throw new runtime.RequiredError('from', 'Required parameter "from" was null or undefined when calling getCalendarEntryOccurrences().');
|
|
333
|
+
}
|
|
334
|
+
if (requestParameters['to'] == null) {
|
|
335
|
+
throw new runtime.RequiredError('to', 'Required parameter "to" was null or undefined when calling getCalendarEntryOccurrences().');
|
|
336
|
+
}
|
|
337
|
+
queryParameters = {};
|
|
338
|
+
if (requestParameters['from'] != null) {
|
|
339
|
+
queryParameters['from'] = runtime.serializeDateTime(requestParameters['from']);
|
|
340
|
+
}
|
|
341
|
+
if (requestParameters['to'] != null) {
|
|
342
|
+
queryParameters['to'] = runtime.serializeDateTime(requestParameters['to']);
|
|
343
|
+
}
|
|
344
|
+
if (requestParameters['filter'] != null) {
|
|
345
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
346
|
+
}
|
|
347
|
+
headerParameters = {};
|
|
348
|
+
urlPath = "/ui/calendar/v1/calendar-entry-occurrences";
|
|
349
|
+
return [2 /*return*/, {
|
|
350
|
+
path: urlPath,
|
|
351
|
+
method: 'GET',
|
|
352
|
+
headers: headerParameters,
|
|
353
|
+
query: queryParameters,
|
|
354
|
+
}];
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* get the calendar entries overlapping a period, every repeating entry expanded into its occurrences
|
|
360
|
+
*/
|
|
361
|
+
CalendarEntriesApi.prototype.getCalendarEntryOccurrencesRaw = function (requestParameters, initOverrides) {
|
|
362
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
363
|
+
var requestOptions, response;
|
|
364
|
+
return __generator(this, function (_a) {
|
|
365
|
+
switch (_a.label) {
|
|
366
|
+
case 0: return [4 /*yield*/, this.getCalendarEntryOccurrencesRequestOpts(requestParameters)];
|
|
367
|
+
case 1:
|
|
368
|
+
requestOptions = _a.sent();
|
|
369
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
370
|
+
case 2:
|
|
371
|
+
response = _a.sent();
|
|
372
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(CalendarEntryDto_1.CalendarEntryDtoFromJSON); })];
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* get the calendar entries overlapping a period, every repeating entry expanded into its occurrences
|
|
379
|
+
*/
|
|
380
|
+
CalendarEntriesApi.prototype.getCalendarEntryOccurrences = function (requestParameters, initOverrides) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
+
var response;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
switch (_a.label) {
|
|
385
|
+
case 0: return [4 /*yield*/, this.getCalendarEntryOccurrencesRaw(requestParameters, initOverrides)];
|
|
386
|
+
case 1:
|
|
387
|
+
response = _a.sent();
|
|
388
|
+
return [4 /*yield*/, response.value()];
|
|
389
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
};
|
|
318
394
|
/**
|
|
319
395
|
* Creates request options for updateCalendarEntry without sending the request
|
|
320
396
|
*/
|
|
@@ -332,6 +408,12 @@ var CalendarEntriesApi = /** @class */ (function (_super) {
|
|
|
332
408
|
if (requestParameters['force'] != null) {
|
|
333
409
|
queryParameters['force'] = requestParameters['force'];
|
|
334
410
|
}
|
|
411
|
+
if (requestParameters['recurrenceScope'] != null) {
|
|
412
|
+
queryParameters['recurrenceScope'] = requestParameters['recurrenceScope'];
|
|
413
|
+
}
|
|
414
|
+
if (requestParameters['originalStartDate'] != null) {
|
|
415
|
+
queryParameters['originalStartDate'] = requestParameters['originalStartDate'];
|
|
416
|
+
}
|
|
335
417
|
headerParameters = {};
|
|
336
418
|
headerParameters['Content-Type'] = 'application/json';
|
|
337
419
|
urlPath = "/ui/calendar/v1/calendar-entries/{id}";
|
|
@@ -16,7 +16,7 @@ export interface CreateCustomerRequest {
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
customerDto: Omit<CustomerDto, 'id' | 'version' | 'deleted'>;
|
|
19
|
+
customerDto: Omit<CustomerDto, 'id' | 'version' | 'deleted' | 'modificationTime'>;
|
|
20
20
|
}
|
|
21
21
|
export interface DeleteCustomerRequest {
|
|
22
22
|
/**
|
|
@@ -33,6 +33,10 @@ export interface GetAllCustomersRequest {
|
|
|
33
33
|
* Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
|
|
34
34
|
*/
|
|
35
35
|
filter?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* whether retired entities are returned as well, so a synchronizing client learns about deletions
|
|
38
|
+
*/
|
|
39
|
+
includeDeleted?: boolean;
|
|
36
40
|
}
|
|
37
41
|
export interface GetCustomerRequest {
|
|
38
42
|
/**
|
|
@@ -48,7 +52,7 @@ export interface UpdateCustomerRequest {
|
|
|
48
52
|
/**
|
|
49
53
|
*
|
|
50
54
|
*/
|
|
51
|
-
customerDto: Omit<CustomerDto, 'id' | 'version' | 'deleted'>;
|
|
55
|
+
customerDto: Omit<CustomerDto, 'id' | 'version' | 'deleted' | 'modificationTime'>;
|
|
52
56
|
/**
|
|
53
57
|
* whether to force update the entity
|
|
54
58
|
*/
|
|
@@ -209,6 +209,9 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
209
209
|
if (requestParameters['filter'] != null) {
|
|
210
210
|
queryParameters['filter'] = requestParameters['filter'];
|
|
211
211
|
}
|
|
212
|
+
if (requestParameters['includeDeleted'] != null) {
|
|
213
|
+
queryParameters['includeDeleted'] = requestParameters['includeDeleted'];
|
|
214
|
+
}
|
|
212
215
|
headerParameters = {};
|
|
213
216
|
urlPath = "/ui/customers/v1";
|
|
214
217
|
return [2 /*return*/, {
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
export interface GetMapGlyphsRequest {
|
|
13
|
+
/**
|
|
14
|
+
* name of the font
|
|
15
|
+
*/
|
|
16
|
+
fontStack: string;
|
|
17
|
+
/**
|
|
18
|
+
* range of unicode code points, as requested by MapLibre
|
|
19
|
+
*/
|
|
20
|
+
glyphRange: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetMapSpriteRequest {
|
|
23
|
+
/**
|
|
24
|
+
* file name of the sprite, as requested by MapLibre
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetMapTilesetRequest {
|
|
29
|
+
/**
|
|
30
|
+
* file name of the archive
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* byte range of the object, forwarded unchanged to the storage, e.g. "bytes=0-16383"
|
|
35
|
+
*/
|
|
36
|
+
range?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export declare class MapsApi extends runtime.BaseAPI {
|
|
42
|
+
/**
|
|
43
|
+
* Creates request options for getMapGlyphs without sending the request
|
|
44
|
+
*/
|
|
45
|
+
getMapGlyphsRequestOpts(requestParameters: GetMapGlyphsRequest): Promise<runtime.RequestOpts>;
|
|
46
|
+
/**
|
|
47
|
+
* Every valid Kommerz login is accepted, no permission is checked.
|
|
48
|
+
* get the glyphs of a font that the street map renders its labels with
|
|
49
|
+
*/
|
|
50
|
+
getMapGlyphsRaw(requestParameters: GetMapGlyphsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
|
|
51
|
+
/**
|
|
52
|
+
* Every valid Kommerz login is accepted, no permission is checked.
|
|
53
|
+
* get the glyphs of a font that the street map renders its labels with
|
|
54
|
+
*/
|
|
55
|
+
getMapGlyphs(requestParameters: GetMapGlyphsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for getMapSprite without sending the request
|
|
58
|
+
*/
|
|
59
|
+
getMapSpriteRequestOpts(requestParameters: GetMapSpriteRequest): Promise<runtime.RequestOpts>;
|
|
60
|
+
/**
|
|
61
|
+
* Every valid Kommerz login is accepted, no permission is checked.
|
|
62
|
+
* get the index or the image of a sprite with the icons of the street map
|
|
63
|
+
*/
|
|
64
|
+
getMapSpriteRaw(requestParameters: GetMapSpriteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
|
|
65
|
+
/**
|
|
66
|
+
* Every valid Kommerz login is accepted, no permission is checked.
|
|
67
|
+
* get the index or the image of a sprite with the icons of the street map
|
|
68
|
+
*/
|
|
69
|
+
getMapSprite(requestParameters: GetMapSpriteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for getMapTileset without sending the request
|
|
72
|
+
*/
|
|
73
|
+
getMapTilesetRequestOpts(requestParameters: GetMapTilesetRequest): Promise<runtime.RequestOpts>;
|
|
74
|
+
/**
|
|
75
|
+
* 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.
|
|
76
|
+
* get the bytes of a PMTiles archive with vector tiles of the street map
|
|
77
|
+
*/
|
|
78
|
+
getMapTilesetRaw(requestParameters: GetMapTilesetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
|
|
79
|
+
/**
|
|
80
|
+
* 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.
|
|
81
|
+
* get the bytes of a PMTiles archive with vector tiles of the street map
|
|
82
|
+
*/
|
|
83
|
+
getMapTileset(requestParameters: GetMapTilesetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
|
|
84
|
+
}
|
|
@@ -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
|
*/
|
package/dist/apis/UsersMeApi.js
CHANGED
|
@@ -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
|
*/
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './AccountingTransactionsApi';
|
|
|
12
12
|
export * from './AccountingTurnoversApi';
|
|
13
13
|
export * from './ActivitiesApi';
|
|
14
14
|
export * from './AppointmentPortalApi';
|
|
15
|
+
export * from './AppointmentsApi';
|
|
15
16
|
export * from './ApprovalEntriesApi';
|
|
16
17
|
export * from './ApprovalEntriesApproveApi';
|
|
17
18
|
export * from './ApprovalTypesApi';
|
|
@@ -55,6 +56,7 @@ export * from './JobsApi';
|
|
|
55
56
|
export * from './KanbanBoardsApi';
|
|
56
57
|
export * from './KanbanCardsApi';
|
|
57
58
|
export * from './KanbanColumnsApi';
|
|
59
|
+
export * from './MapsApi';
|
|
58
60
|
export * from './MentionsApi';
|
|
59
61
|
export * from './NotificationTargetsApi';
|
|
60
62
|
export * from './NotificationsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./AccountingTransactionsApi"), exports);
|
|
|
30
30
|
__exportStar(require("./AccountingTurnoversApi"), exports);
|
|
31
31
|
__exportStar(require("./ActivitiesApi"), exports);
|
|
32
32
|
__exportStar(require("./AppointmentPortalApi"), exports);
|
|
33
|
+
__exportStar(require("./AppointmentsApi"), exports);
|
|
33
34
|
__exportStar(require("./ApprovalEntriesApi"), exports);
|
|
34
35
|
__exportStar(require("./ApprovalEntriesApproveApi"), exports);
|
|
35
36
|
__exportStar(require("./ApprovalTypesApi"), exports);
|
|
@@ -73,6 +74,7 @@ __exportStar(require("./JobsApi"), exports);
|
|
|
73
74
|
__exportStar(require("./KanbanBoardsApi"), exports);
|
|
74
75
|
__exportStar(require("./KanbanCardsApi"), exports);
|
|
75
76
|
__exportStar(require("./KanbanColumnsApi"), exports);
|
|
77
|
+
__exportStar(require("./MapsApi"), exports);
|
|
76
78
|
__exportStar(require("./MentionsApi"), exports);
|
|
77
79
|
__exportStar(require("./NotificationTargetsApi"), exports);
|
|
78
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;
|