@kommerz/ts-client 1.190.0 → 1.191.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.
@@ -0,0 +1,54 @@
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 GetAllAppointmentSlots200Response } from '../models/GetAllAppointmentSlots200Response';
13
+ import { type KommerzPageable } from '../models/KommerzPageable';
14
+ export interface GetAllAppointmentSlotsRequest {
15
+ /**
16
+ * handle of the tenant, compared case-insensitively
17
+ */
18
+ handle: string;
19
+ /**
20
+ * Pageable query parameters
21
+ */
22
+ pageable: KommerzPageable;
23
+ /**
24
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
25
+ */
26
+ filter?: Array<string>;
27
+ /**
28
+ * latitude of the location of the requester
29
+ */
30
+ lat?: number;
31
+ /**
32
+ * longitude of the location of the requester
33
+ */
34
+ _long?: number;
35
+ }
36
+ /**
37
+ *
38
+ */
39
+ export declare class AppointmentPortalApi extends runtime.BaseAPI {
40
+ /**
41
+ * Creates request options for getAllAppointmentSlots without sending the request
42
+ */
43
+ getAllAppointmentSlotsRequestOpts(requestParameters: GetAllAppointmentSlotsRequest): Promise<runtime.RequestOpts>;
44
+ /**
45
+ * Available without login. An OIDC token is accepted when the requester is logged in. Slots whose type requires an appointment location are only returned when lat and long are given.
46
+ * get the bookable appointment slots of a tenant that have not ended yet
47
+ */
48
+ getAllAppointmentSlotsRaw(requestParameters: GetAllAppointmentSlotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAppointmentSlots200Response>>;
49
+ /**
50
+ * Available without login. An OIDC token is accepted when the requester is logged in. Slots whose type requires an appointment location are only returned when lat and long are given.
51
+ * get the bookable appointment slots of a tenant that have not ended yet
52
+ */
53
+ getAllAppointmentSlots(requestParameters: GetAllAppointmentSlotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAppointmentSlots200Response>;
54
+ }
@@ -0,0 +1,155 @@
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.AppointmentPortalApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var GetAllAppointmentSlots200Response_1 = require("../models/GetAllAppointmentSlots200Response");
69
+ /**
70
+ *
71
+ */
72
+ var AppointmentPortalApi = /** @class */ (function (_super) {
73
+ __extends(AppointmentPortalApi, _super);
74
+ function AppointmentPortalApi() {
75
+ return _super !== null && _super.apply(this, arguments) || this;
76
+ }
77
+ /**
78
+ * Creates request options for getAllAppointmentSlots without sending the request
79
+ */
80
+ AppointmentPortalApi.prototype.getAllAppointmentSlotsRequestOpts = function (requestParameters) {
81
+ return __awaiter(this, void 0, void 0, function () {
82
+ var queryParameters, headerParameters, urlPath;
83
+ return __generator(this, function (_a) {
84
+ if (requestParameters['handle'] == null) {
85
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAllAppointmentSlots().');
86
+ }
87
+ if (requestParameters['pageable'] == null) {
88
+ throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllAppointmentSlots().');
89
+ }
90
+ queryParameters = {};
91
+ if (requestParameters['pageable'] != null) {
92
+ queryParameters['pageable'] = requestParameters['pageable'];
93
+ }
94
+ if (requestParameters['filter'] != null) {
95
+ queryParameters['filter'] = requestParameters['filter'];
96
+ }
97
+ if (requestParameters['lat'] != null) {
98
+ queryParameters['lat'] = requestParameters['lat'];
99
+ }
100
+ if (requestParameters['_long'] != null) {
101
+ queryParameters['long'] = requestParameters['_long'];
102
+ }
103
+ headerParameters = {};
104
+ urlPath = "/ui/tenant-portal/v1/{handle}/appointments/slots";
105
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
106
+ return [2 /*return*/, {
107
+ path: urlPath,
108
+ method: 'GET',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ }];
112
+ });
113
+ });
114
+ };
115
+ /**
116
+ * Available without login. An OIDC token is accepted when the requester is logged in. Slots whose type requires an appointment location are only returned when lat and long are given.
117
+ * get the bookable appointment slots of a tenant that have not ended yet
118
+ */
119
+ AppointmentPortalApi.prototype.getAllAppointmentSlotsRaw = function (requestParameters, initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function () {
121
+ var requestOptions, response;
122
+ return __generator(this, function (_a) {
123
+ switch (_a.label) {
124
+ case 0: return [4 /*yield*/, this.getAllAppointmentSlotsRequestOpts(requestParameters)];
125
+ case 1:
126
+ requestOptions = _a.sent();
127
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
128
+ case 2:
129
+ response = _a.sent();
130
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetAllAppointmentSlots200Response_1.GetAllAppointmentSlots200ResponseFromJSON)(jsonValue); })];
131
+ }
132
+ });
133
+ });
134
+ };
135
+ /**
136
+ * Available without login. An OIDC token is accepted when the requester is logged in. Slots whose type requires an appointment location are only returned when lat and long are given.
137
+ * get the bookable appointment slots of a tenant that have not ended yet
138
+ */
139
+ AppointmentPortalApi.prototype.getAllAppointmentSlots = function (requestParameters, initOverrides) {
140
+ return __awaiter(this, void 0, void 0, function () {
141
+ var response;
142
+ return __generator(this, function (_a) {
143
+ switch (_a.label) {
144
+ case 0: return [4 /*yield*/, this.getAllAppointmentSlotsRaw(requestParameters, initOverrides)];
145
+ case 1:
146
+ response = _a.sent();
147
+ return [4 /*yield*/, response.value()];
148
+ case 2: return [2 /*return*/, _a.sent()];
149
+ }
150
+ });
151
+ });
152
+ };
153
+ return AppointmentPortalApi;
154
+ }(runtime.BaseAPI));
155
+ exports.AppointmentPortalApi = AppointmentPortalApi;
@@ -11,6 +11,7 @@ export * from './AccountingStatementsApi';
11
11
  export * from './AccountingTransactionsApi';
12
12
  export * from './AccountingTurnoversApi';
13
13
  export * from './ActivitiesApi';
14
+ export * from './AppointmentPortalApi';
14
15
  export * from './ApprovalEntriesApi';
15
16
  export * from './ApprovalEntriesApproveApi';
16
17
  export * from './ApprovalTypesApi';
@@ -29,6 +29,7 @@ __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);
32
33
  __exportStar(require("./ApprovalEntriesApi"), exports);
33
34
  __exportStar(require("./ApprovalEntriesApproveApi"), exports);
34
35
  __exportStar(require("./ApprovalTypesApi"), exports);
@@ -0,0 +1,25 @@
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
+ /**
12
+ * estimated distance between the requester and the slot
13
+ * @export
14
+ */
15
+ export declare const AppointmentSlotDistance: {
16
+ readonly Close: "CLOSE";
17
+ readonly Near: "NEAR";
18
+ readonly Far: "FAR";
19
+ };
20
+ export type AppointmentSlotDistance = typeof AppointmentSlotDistance[keyof typeof AppointmentSlotDistance];
21
+ export declare function instanceOfAppointmentSlotDistance(value: any): boolean;
22
+ export declare function AppointmentSlotDistanceFromJSON(json: any): AppointmentSlotDistance;
23
+ export declare function AppointmentSlotDistanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppointmentSlotDistance;
24
+ export declare function AppointmentSlotDistanceToJSON(value?: AppointmentSlotDistance | null): any;
25
+ export declare function AppointmentSlotDistanceToJSONTyped(value: any, ignoreDiscriminator: boolean): AppointmentSlotDistance;
@@ -0,0 +1,51 @@
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.AppointmentSlotDistance = void 0;
16
+ exports.instanceOfAppointmentSlotDistance = instanceOfAppointmentSlotDistance;
17
+ exports.AppointmentSlotDistanceFromJSON = AppointmentSlotDistanceFromJSON;
18
+ exports.AppointmentSlotDistanceFromJSONTyped = AppointmentSlotDistanceFromJSONTyped;
19
+ exports.AppointmentSlotDistanceToJSON = AppointmentSlotDistanceToJSON;
20
+ exports.AppointmentSlotDistanceToJSONTyped = AppointmentSlotDistanceToJSONTyped;
21
+ /**
22
+ * estimated distance between the requester and the slot
23
+ * @export
24
+ */
25
+ exports.AppointmentSlotDistance = {
26
+ Close: 'CLOSE',
27
+ Near: 'NEAR',
28
+ Far: 'FAR',
29
+ };
30
+ function instanceOfAppointmentSlotDistance(value) {
31
+ for (var key in exports.AppointmentSlotDistance) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.AppointmentSlotDistance, key)) {
33
+ if (exports.AppointmentSlotDistance[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function AppointmentSlotDistanceFromJSON(json) {
41
+ return AppointmentSlotDistanceFromJSONTyped(json, false);
42
+ }
43
+ function AppointmentSlotDistanceFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function AppointmentSlotDistanceToJSON(value) {
47
+ return value;
48
+ }
49
+ function AppointmentSlotDistanceToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -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 { AppointmentSlotDistance } from './AppointmentSlotDistance';
13
+ /**
14
+ * a bookable time slot of a tenant. Its time span is the one of the calendar entry, given in the time zone of the tenant.
15
+ * @export
16
+ * @interface AppointmentSlotDto
17
+ */
18
+ export interface AppointmentSlotDto {
19
+ /**
20
+ *
21
+ */
22
+ timeSpan: TimeSpanDto;
23
+ /**
24
+ *
25
+ */
26
+ name: string;
27
+ /**
28
+ *
29
+ */
30
+ description?: string;
31
+ /**
32
+ *
33
+ */
34
+ distance?: AppointmentSlotDistance;
35
+ }
36
+ /**
37
+ * Check if a given object implements the AppointmentSlotDto interface.
38
+ */
39
+ export declare function instanceOfAppointmentSlotDto(value: object): value is AppointmentSlotDto;
40
+ export declare function AppointmentSlotDtoFromJSON(json: any): AppointmentSlotDto;
41
+ export declare function AppointmentSlotDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppointmentSlotDto;
42
+ export declare function AppointmentSlotDtoToJSON(json: any): AppointmentSlotDto;
43
+ export declare function AppointmentSlotDtoToJSONTyped(value?: AppointmentSlotDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfAppointmentSlotDto = instanceOfAppointmentSlotDto;
16
+ exports.AppointmentSlotDtoFromJSON = AppointmentSlotDtoFromJSON;
17
+ exports.AppointmentSlotDtoFromJSONTyped = AppointmentSlotDtoFromJSONTyped;
18
+ exports.AppointmentSlotDtoToJSON = AppointmentSlotDtoToJSON;
19
+ exports.AppointmentSlotDtoToJSONTyped = AppointmentSlotDtoToJSONTyped;
20
+ var TimeSpanDto_1 = require("./TimeSpanDto");
21
+ var AppointmentSlotDistance_1 = require("./AppointmentSlotDistance");
22
+ /**
23
+ * Check if a given object implements the AppointmentSlotDto interface.
24
+ */
25
+ function instanceOfAppointmentSlotDto(value) {
26
+ if (!('timeSpan' in value) || value['timeSpan'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AppointmentSlotDtoFromJSON(json) {
33
+ return AppointmentSlotDtoFromJSONTyped(json, false);
34
+ }
35
+ function AppointmentSlotDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'timeSpan': (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['timeSpan']),
41
+ 'name': json['name'],
42
+ 'description': json['description'] == null ? undefined : json['description'],
43
+ 'distance': json['distance'] == null ? undefined : (0, AppointmentSlotDistance_1.AppointmentSlotDistanceFromJSON)(json['distance']),
44
+ };
45
+ }
46
+ function AppointmentSlotDtoToJSON(json) {
47
+ return AppointmentSlotDtoToJSONTyped(json, false);
48
+ }
49
+ function AppointmentSlotDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'timeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['timeSpan']),
56
+ 'name': value['name'],
57
+ 'description': value['description'],
58
+ 'distance': (0, AppointmentSlotDistance_1.AppointmentSlotDistanceToJSON)(value['distance']),
59
+ };
60
+ }
@@ -50,6 +50,18 @@ export interface CalendarEntryTypeDto {
50
50
  *
51
51
  */
52
52
  approvalTypeId?: string;
53
+ /**
54
+ * entries of a bookable type are offered as appointment slots in the tenant portal
55
+ */
56
+ bookable?: boolean;
57
+ /**
58
+ * slots of this type are only offered when the requester sends a location (lat and long)
59
+ */
60
+ requiresAppointmentLocation?: boolean;
61
+ /**
62
+ * key of a customer attribute a customer needs to book a slot of this type
63
+ */
64
+ requiredCustomerAttributeId?: string;
53
65
  }
54
66
  /**
55
67
  * Check if a given object implements the CalendarEntryTypeDto interface.
@@ -50,6 +50,9 @@ function CalendarEntryTypeDtoFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'canDefineTimeSpan': json['canDefineTimeSpan'],
51
51
  'canDefineLocation': json['canDefineLocation'],
52
52
  'approvalTypeId': json['approvalTypeId'] == null ? undefined : json['approvalTypeId'],
53
+ 'bookable': json['bookable'] == null ? undefined : json['bookable'],
54
+ 'requiresAppointmentLocation': json['requiresAppointmentLocation'] == null ? undefined : json['requiresAppointmentLocation'],
55
+ 'requiredCustomerAttributeId': json['requiredCustomerAttributeId'] == null ? undefined : json['requiredCustomerAttributeId'],
53
56
  };
54
57
  }
55
58
  function CalendarEntryTypeDtoToJSON(json) {
@@ -70,5 +73,8 @@ function CalendarEntryTypeDtoToJSONTyped(value, ignoreDiscriminator) {
70
73
  'canDefineTimeSpan': value['canDefineTimeSpan'],
71
74
  'canDefineLocation': value['canDefineLocation'],
72
75
  'approvalTypeId': value['approvalTypeId'],
76
+ 'bookable': value['bookable'],
77
+ 'requiresAppointmentLocation': value['requiresAppointmentLocation'],
78
+ 'requiredCustomerAttributeId': value['requiredCustomerAttributeId'],
73
79
  };
74
80
  }
@@ -18,6 +18,7 @@ export declare const ConfigKey: {
18
18
  readonly ModulesWiki: "modules.wiki";
19
19
  readonly ModulesAccounting: "modules.accounting";
20
20
  readonly UiLandingWelcome: "ui.landing.welcome";
21
+ readonly ModulesRosterRouting: "modules.roster.routing";
21
22
  };
22
23
  export type ConfigKey = typeof ConfigKey[keyof typeof ConfigKey];
23
24
  export declare function instanceOfConfigKey(value: any): boolean;
@@ -28,6 +28,7 @@ exports.ConfigKey = {
28
28
  ModulesWiki: 'modules.wiki',
29
29
  ModulesAccounting: 'modules.accounting',
30
30
  UiLandingWelcome: 'ui.landing.welcome',
31
+ ModulesRosterRouting: 'modules.roster.routing',
31
32
  };
32
33
  function instanceOfConfigKey(value) {
33
34
  for (var key in exports.ConfigKey) {
@@ -0,0 +1,42 @@
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 { AppointmentSlotDto } from './AppointmentSlotDto';
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetAllAppointmentSlots200Response
16
+ */
17
+ export interface GetAllAppointmentSlots200Response {
18
+ /**
19
+ *
20
+ */
21
+ pageNumber?: number;
22
+ /**
23
+ *
24
+ */
25
+ pageSize?: number;
26
+ /**
27
+ *
28
+ */
29
+ totalElements: number;
30
+ /**
31
+ *
32
+ */
33
+ content: Array<AppointmentSlotDto>;
34
+ }
35
+ /**
36
+ * Check if a given object implements the GetAllAppointmentSlots200Response interface.
37
+ */
38
+ export declare function instanceOfGetAllAppointmentSlots200Response(value: object): value is GetAllAppointmentSlots200Response;
39
+ export declare function GetAllAppointmentSlots200ResponseFromJSON(json: any): GetAllAppointmentSlots200Response;
40
+ export declare function GetAllAppointmentSlots200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAppointmentSlots200Response;
41
+ export declare function GetAllAppointmentSlots200ResponseToJSON(json: any): GetAllAppointmentSlots200Response;
42
+ export declare function GetAllAppointmentSlots200ResponseToJSONTyped(value?: GetAllAppointmentSlots200Response | 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.instanceOfGetAllAppointmentSlots200Response = instanceOfGetAllAppointmentSlots200Response;
16
+ exports.GetAllAppointmentSlots200ResponseFromJSON = GetAllAppointmentSlots200ResponseFromJSON;
17
+ exports.GetAllAppointmentSlots200ResponseFromJSONTyped = GetAllAppointmentSlots200ResponseFromJSONTyped;
18
+ exports.GetAllAppointmentSlots200ResponseToJSON = GetAllAppointmentSlots200ResponseToJSON;
19
+ exports.GetAllAppointmentSlots200ResponseToJSONTyped = GetAllAppointmentSlots200ResponseToJSONTyped;
20
+ var AppointmentSlotDto_1 = require("./AppointmentSlotDto");
21
+ /**
22
+ * Check if a given object implements the GetAllAppointmentSlots200Response interface.
23
+ */
24
+ function instanceOfGetAllAppointmentSlots200Response(value) {
25
+ if (!('totalElements' in value) || value['totalElements'] === undefined)
26
+ return false;
27
+ if (!('content' in value) || value['content'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetAllAppointmentSlots200ResponseFromJSON(json) {
32
+ return GetAllAppointmentSlots200ResponseFromJSONTyped(json, false);
33
+ }
34
+ function GetAllAppointmentSlots200ResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
40
+ 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
41
+ 'totalElements': json['totalElements'],
42
+ 'content': (json['content'].map(AppointmentSlotDto_1.AppointmentSlotDtoFromJSON)),
43
+ };
44
+ }
45
+ function GetAllAppointmentSlots200ResponseToJSON(json) {
46
+ return GetAllAppointmentSlots200ResponseToJSONTyped(json, false);
47
+ }
48
+ function GetAllAppointmentSlots200ResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'pageNumber': value['pageNumber'],
55
+ 'pageSize': value['pageSize'],
56
+ 'totalElements': value['totalElements'],
57
+ 'content': (value['content'].map(AppointmentSlotDto_1.AppointmentSlotDtoToJSON)),
58
+ };
59
+ }
@@ -0,0 +1,89 @@
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
+ /**
12
+ * Configuration of the routing of appointments in the roster module.
13
+ * @export
14
+ * @interface RoutingConfigDto
15
+ */
16
+ export interface RoutingConfigDto {
17
+ /**
18
+ * Name of the routing algorithm.
19
+ */
20
+ algorithm: string;
21
+ /**
22
+ * Maximum number of stops per day.
23
+ */
24
+ maxStopsPerDay: number;
25
+ /**
26
+ * GeoJSON geometry (or feature) of the area in which appointments can be booked. Appointments are bookable everywhere if empty.
27
+ */
28
+ bookingArea?: any;
29
+ /**
30
+ * Maximum driving distance between two stops in metres.
31
+ */
32
+ maxDrivingDistanceBetweenStops: number;
33
+ /**
34
+ * Buffer time between two stops in minutes.
35
+ */
36
+ bufferTimeBetweenStops: number;
37
+ /**
38
+ * Whether the approach to the first stop counts as work hours.
39
+ */
40
+ includeFirstApproachInWorkHours: boolean;
41
+ /**
42
+ * First day of the work week as ISO day of week (1 = Monday, 7 = Sunday).
43
+ */
44
+ workWeekStartDay: number;
45
+ /**
46
+ * Maximum number of appointments per work week.
47
+ */
48
+ limitPerWorkWeek: number;
49
+ /**
50
+ * Start of the shift.
51
+ */
52
+ shiftStartTime: string;
53
+ /**
54
+ * End of the shift. Must be after the start of the shift.
55
+ */
56
+ shiftEndTime: string;
57
+ /**
58
+ * Hours before an appointment at which its route is planned finely.
59
+ */
60
+ hoursBeforeFinePlanning: number;
61
+ /**
62
+ * Spring cron expression (six fields) that defines when preliminary appointments are confirmed. Seconds and minutes must be 0, so the expression fires at most once an hour.
63
+ */
64
+ confirmationCron: string;
65
+ /**
66
+ * Lead time of a preliminary appointment in hours.
67
+ */
68
+ preliminaryLeadTimeHours: number;
69
+ /**
70
+ * Whether prices are shown on selectable products.
71
+ */
72
+ showPricesOnSelectableProduct: boolean;
73
+ /**
74
+ * Distance in metres up to which two appointments count as near.
75
+ */
76
+ nearDistance: number;
77
+ /**
78
+ * Distance in metres up to which two appointments count as at the same place.
79
+ */
80
+ sameDistance: number;
81
+ }
82
+ /**
83
+ * Check if a given object implements the RoutingConfigDto interface.
84
+ */
85
+ export declare function instanceOfRoutingConfigDto(value: object): value is RoutingConfigDto;
86
+ export declare function RoutingConfigDtoFromJSON(json: any): RoutingConfigDto;
87
+ export declare function RoutingConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoutingConfigDto;
88
+ export declare function RoutingConfigDtoToJSON(json: any): RoutingConfigDto;
89
+ export declare function RoutingConfigDtoToJSONTyped(value?: RoutingConfigDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,108 @@
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.instanceOfRoutingConfigDto = instanceOfRoutingConfigDto;
16
+ exports.RoutingConfigDtoFromJSON = RoutingConfigDtoFromJSON;
17
+ exports.RoutingConfigDtoFromJSONTyped = RoutingConfigDtoFromJSONTyped;
18
+ exports.RoutingConfigDtoToJSON = RoutingConfigDtoToJSON;
19
+ exports.RoutingConfigDtoToJSONTyped = RoutingConfigDtoToJSONTyped;
20
+ /**
21
+ * Check if a given object implements the RoutingConfigDto interface.
22
+ */
23
+ function instanceOfRoutingConfigDto(value) {
24
+ if (!('algorithm' in value) || value['algorithm'] === undefined)
25
+ return false;
26
+ if (!('maxStopsPerDay' in value) || value['maxStopsPerDay'] === undefined)
27
+ return false;
28
+ if (!('maxDrivingDistanceBetweenStops' in value) || value['maxDrivingDistanceBetweenStops'] === undefined)
29
+ return false;
30
+ if (!('bufferTimeBetweenStops' in value) || value['bufferTimeBetweenStops'] === undefined)
31
+ return false;
32
+ if (!('includeFirstApproachInWorkHours' in value) || value['includeFirstApproachInWorkHours'] === undefined)
33
+ return false;
34
+ if (!('workWeekStartDay' in value) || value['workWeekStartDay'] === undefined)
35
+ return false;
36
+ if (!('limitPerWorkWeek' in value) || value['limitPerWorkWeek'] === undefined)
37
+ return false;
38
+ if (!('shiftStartTime' in value) || value['shiftStartTime'] === undefined)
39
+ return false;
40
+ if (!('shiftEndTime' in value) || value['shiftEndTime'] === undefined)
41
+ return false;
42
+ if (!('hoursBeforeFinePlanning' in value) || value['hoursBeforeFinePlanning'] === undefined)
43
+ return false;
44
+ if (!('confirmationCron' in value) || value['confirmationCron'] === undefined)
45
+ return false;
46
+ if (!('preliminaryLeadTimeHours' in value) || value['preliminaryLeadTimeHours'] === undefined)
47
+ return false;
48
+ if (!('showPricesOnSelectableProduct' in value) || value['showPricesOnSelectableProduct'] === undefined)
49
+ return false;
50
+ if (!('nearDistance' in value) || value['nearDistance'] === undefined)
51
+ return false;
52
+ if (!('sameDistance' in value) || value['sameDistance'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function RoutingConfigDtoFromJSON(json) {
57
+ return RoutingConfigDtoFromJSONTyped(json, false);
58
+ }
59
+ function RoutingConfigDtoFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'algorithm': json['algorithm'],
65
+ 'maxStopsPerDay': json['maxStopsPerDay'],
66
+ 'bookingArea': json['bookingArea'] == null ? undefined : json['bookingArea'],
67
+ 'maxDrivingDistanceBetweenStops': json['maxDrivingDistanceBetweenStops'],
68
+ 'bufferTimeBetweenStops': json['bufferTimeBetweenStops'],
69
+ 'includeFirstApproachInWorkHours': json['includeFirstApproachInWorkHours'],
70
+ 'workWeekStartDay': json['workWeekStartDay'],
71
+ 'limitPerWorkWeek': json['limitPerWorkWeek'],
72
+ 'shiftStartTime': json['shiftStartTime'],
73
+ 'shiftEndTime': json['shiftEndTime'],
74
+ 'hoursBeforeFinePlanning': json['hoursBeforeFinePlanning'],
75
+ 'confirmationCron': json['confirmationCron'],
76
+ 'preliminaryLeadTimeHours': json['preliminaryLeadTimeHours'],
77
+ 'showPricesOnSelectableProduct': json['showPricesOnSelectableProduct'],
78
+ 'nearDistance': json['nearDistance'],
79
+ 'sameDistance': json['sameDistance'],
80
+ };
81
+ }
82
+ function RoutingConfigDtoToJSON(json) {
83
+ return RoutingConfigDtoToJSONTyped(json, false);
84
+ }
85
+ function RoutingConfigDtoToJSONTyped(value, ignoreDiscriminator) {
86
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+ return {
91
+ 'algorithm': value['algorithm'],
92
+ 'maxStopsPerDay': value['maxStopsPerDay'],
93
+ 'bookingArea': value['bookingArea'],
94
+ 'maxDrivingDistanceBetweenStops': value['maxDrivingDistanceBetweenStops'],
95
+ 'bufferTimeBetweenStops': value['bufferTimeBetweenStops'],
96
+ 'includeFirstApproachInWorkHours': value['includeFirstApproachInWorkHours'],
97
+ 'workWeekStartDay': value['workWeekStartDay'],
98
+ 'limitPerWorkWeek': value['limitPerWorkWeek'],
99
+ 'shiftStartTime': value['shiftStartTime'],
100
+ 'shiftEndTime': value['shiftEndTime'],
101
+ 'hoursBeforeFinePlanning': value['hoursBeforeFinePlanning'],
102
+ 'confirmationCron': value['confirmationCron'],
103
+ 'preliminaryLeadTimeHours': value['preliminaryLeadTimeHours'],
104
+ 'showPricesOnSelectableProduct': value['showPricesOnSelectableProduct'],
105
+ 'nearDistance': value['nearDistance'],
106
+ 'sameDistance': value['sameDistance'],
107
+ };
108
+ }
@@ -39,6 +39,8 @@ export * from './ActivityReferenceDto';
39
39
  export * from './ActivityType';
40
40
  export * from './AddressDto';
41
41
  export * from './AmountDto';
42
+ export * from './AppointmentSlotDistance';
43
+ export * from './AppointmentSlotDto';
42
44
  export * from './ApprovalDecisionEnum';
43
45
  export * from './ApprovalEntryDto';
44
46
  export * from './ApprovalModeEnum';
@@ -136,6 +138,7 @@ export * from './GetAllAccountingTransactions200Response';
136
138
  export * from './GetAllAccountingTurnover200Response';
137
139
  export * from './GetAllAccounts200Response';
138
140
  export * from './GetAllActivities200Response';
141
+ export * from './GetAllAppointmentSlots200Response';
139
142
  export * from './GetAllApprovalEntries200Response';
140
143
  export * from './GetAllApprovalTypes200Response';
141
144
  export * from './GetAllAttributeTypes200Response';
@@ -266,6 +269,7 @@ export * from './PublicTenantPageDto';
266
269
  export * from './ReferenceDto';
267
270
  export * from './RegisterUserDto';
268
271
  export * from './RoleDto';
272
+ export * from './RoutingConfigDto';
269
273
  export * from './RunWorkflowRequest';
270
274
  export * from './ShareInvoiceDto';
271
275
  export * from './ShareOfferDto';
@@ -57,6 +57,8 @@ __exportStar(require("./ActivityReferenceDto"), exports);
57
57
  __exportStar(require("./ActivityType"), exports);
58
58
  __exportStar(require("./AddressDto"), exports);
59
59
  __exportStar(require("./AmountDto"), exports);
60
+ __exportStar(require("./AppointmentSlotDistance"), exports);
61
+ __exportStar(require("./AppointmentSlotDto"), exports);
60
62
  __exportStar(require("./ApprovalDecisionEnum"), exports);
61
63
  __exportStar(require("./ApprovalEntryDto"), exports);
62
64
  __exportStar(require("./ApprovalModeEnum"), exports);
@@ -154,6 +156,7 @@ __exportStar(require("./GetAllAccountingTransactions200Response"), exports);
154
156
  __exportStar(require("./GetAllAccountingTurnover200Response"), exports);
155
157
  __exportStar(require("./GetAllAccounts200Response"), exports);
156
158
  __exportStar(require("./GetAllActivities200Response"), exports);
159
+ __exportStar(require("./GetAllAppointmentSlots200Response"), exports);
157
160
  __exportStar(require("./GetAllApprovalEntries200Response"), exports);
158
161
  __exportStar(require("./GetAllApprovalTypes200Response"), exports);
159
162
  __exportStar(require("./GetAllAttributeTypes200Response"), exports);
@@ -284,6 +287,7 @@ __exportStar(require("./PublicTenantPageDto"), exports);
284
287
  __exportStar(require("./ReferenceDto"), exports);
285
288
  __exportStar(require("./RegisterUserDto"), exports);
286
289
  __exportStar(require("./RoleDto"), exports);
290
+ __exportStar(require("./RoutingConfigDto"), exports);
287
291
  __exportStar(require("./RunWorkflowRequest"), exports);
288
292
  __exportStar(require("./ShareInvoiceDto"), exports);
289
293
  __exportStar(require("./ShareOfferDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kommerz/ts-client",
3
- "version": "1.190.0",
3
+ "version": "1.191.0",
4
4
  "description": "Typescript client for Kommerz API",
5
5
  "author": "Kommerz.App",
6
6
  "license": "MIT",