@kommerz/ts-client 1.192.0 → 1.194.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 (74) hide show
  1. package/dist/apis/AppointmentPortalApi.d.ts +17 -13
  2. package/dist/apis/AppointmentPortalApi.js +22 -15
  3. package/dist/apis/AppointmentUsersApi.d.ts +121 -0
  4. package/dist/apis/AppointmentUsersApi.js +387 -0
  5. package/dist/apis/AppointmentsApi.d.ts +2 -2
  6. package/dist/apis/CalendarEntriesApi.d.ts +45 -2
  7. package/dist/apis/CalendarEntriesApi.js +82 -0
  8. package/dist/apis/CalendarEntryTypesApi.d.ts +2 -2
  9. package/dist/apis/CustomersApi.d.ts +6 -2
  10. package/dist/apis/CustomersApi.js +3 -0
  11. package/dist/apis/DecisionTablesApi.d.ts +2 -2
  12. package/dist/apis/DesignTemplatesApi.d.ts +2 -2
  13. package/dist/apis/TextModulesApi.d.ts +2 -2
  14. package/dist/apis/UsersMeApi.d.ts +13 -0
  15. package/dist/apis/UsersMeApi.js +56 -0
  16. package/dist/apis/WorkflowExternalTasksApi.d.ts +2 -2
  17. package/dist/apis/WorkflowsApi.d.ts +2 -2
  18. package/dist/apis/index.d.ts +1 -0
  19. package/dist/apis/index.js +1 -0
  20. package/dist/models/AccountCalendarEntryDto.d.ts +38 -0
  21. package/dist/models/AccountCalendarEntryDto.js +59 -0
  22. package/dist/models/AddressDto.d.ts +8 -0
  23. package/dist/models/AddressDto.js +4 -0
  24. package/dist/models/AppointmentDto.d.ts +14 -5
  25. package/dist/models/AppointmentDto.js +9 -2
  26. package/dist/models/AppointmentPortalDto.d.ts +5 -0
  27. package/dist/models/AppointmentPortalDto.js +3 -0
  28. package/dist/models/AppointmentSubmissionDto.d.ts +35 -0
  29. package/dist/models/AppointmentSubmissionDto.js +54 -0
  30. package/dist/models/AppointmentUserDto.d.ts +51 -0
  31. package/dist/models/AppointmentUserDto.js +55 -0
  32. package/dist/models/AttendedCalendarEntryDto.d.ts +63 -0
  33. package/dist/models/AttendedCalendarEntryDto.js +76 -0
  34. package/dist/models/CalendarAttendeeDto.d.ts +4 -0
  35. package/dist/models/CalendarAttendeeDto.js +2 -0
  36. package/dist/models/CalendarEntryDto.d.ts +29 -1
  37. package/dist/models/CalendarEntryDto.js +11 -0
  38. package/dist/models/CalendarEntryTypeDto.d.ts +9 -1
  39. package/dist/models/CalendarEntryTypeDto.js +3 -0
  40. package/dist/models/CustomerAddressDto.d.ts +34 -0
  41. package/dist/models/CustomerAddressDto.js +55 -0
  42. package/dist/models/CustomerDto.d.ts +10 -1
  43. package/dist/models/CustomerDto.js +5 -0
  44. package/dist/models/DavCalendarDto.d.ts +34 -0
  45. package/dist/models/DavCalendarDto.js +55 -0
  46. package/dist/models/DavCalendarResourceDto.d.ts +46 -0
  47. package/dist/models/DavCalendarResourceDto.js +67 -0
  48. package/dist/models/DavCalendarResourceWriteDto.d.ts +34 -0
  49. package/dist/models/DavCalendarResourceWriteDto.js +55 -0
  50. package/dist/models/DecisionTableDto.d.ts +5 -1
  51. package/dist/models/DecisionTableDto.js +1 -0
  52. package/dist/models/DesignTemplateDto.d.ts +5 -1
  53. package/dist/models/DesignTemplateDto.js +1 -0
  54. package/dist/models/EmailDto.d.ts +4 -0
  55. package/dist/models/EmailDto.js +2 -0
  56. package/dist/models/EntityType.d.ts +1 -0
  57. package/dist/models/EntityType.js +1 -0
  58. package/dist/models/GetAllAppointmentUsers200Response.d.ts +42 -0
  59. package/dist/models/GetAllAppointmentUsers200Response.js +59 -0
  60. package/dist/models/Permissions.d.ts +4 -0
  61. package/dist/models/Permissions.js +4 -0
  62. package/dist/models/RecurrenceScope.d.ts +25 -0
  63. package/dist/models/RecurrenceScope.js +51 -0
  64. package/dist/models/RoutingConfigDto.d.ts +8 -0
  65. package/dist/models/RoutingConfigDto.js +4 -0
  66. package/dist/models/TextModuleDto.d.ts +5 -1
  67. package/dist/models/TextModuleDto.js +1 -0
  68. package/dist/models/WorkflowDto.d.ts +5 -1
  69. package/dist/models/WorkflowDto.js +1 -0
  70. package/dist/models/WorkflowExternalTaskDto.d.ts +5 -1
  71. package/dist/models/WorkflowExternalTaskDto.js +1 -0
  72. package/dist/models/index.d.ts +10 -1
  73. package/dist/models/index.js +10 -1
  74. package/package.json +1 -1
@@ -10,8 +10,8 @@
10
10
  */
11
11
  import * as runtime from '../runtime';
12
12
  import { type AppointmentPortalDto } from '../models/AppointmentPortalDto';
13
- import { type GetAllAppointmentSlots200Response } from '../models/GetAllAppointmentSlots200Response';
14
- import { type KommerzPageable } from '../models/KommerzPageable';
13
+ import { type AppointmentSlotDto } from '../models/AppointmentSlotDto';
14
+ import { type AppointmentSubmissionDto } from '../models/AppointmentSubmissionDto';
15
15
  import { type TimeSpanDto } from '../models/TimeSpanDto';
16
16
  export interface DeleteOwnAppointmentRequest {
17
17
  /**
@@ -29,9 +29,13 @@ export interface GetAllAppointmentSlotsRequest {
29
29
  */
30
30
  handle: string;
31
31
  /**
32
- * Pageable query parameters
32
+ * inclusive start of the period
33
33
  */
34
- pageable: KommerzPageable;
34
+ from: Date;
35
+ /**
36
+ * exclusive end of the period
37
+ */
38
+ to: Date;
35
39
  /**
36
40
  * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
37
41
  */
@@ -69,7 +73,7 @@ export interface SubmitAppointmentsRequest {
69
73
  /**
70
74
  *
71
75
  */
72
- timeSpanDto: Array<TimeSpanDto>;
76
+ appointmentSubmissionDto: AppointmentSubmissionDto;
73
77
  }
74
78
  export interface UpdateOwnAppointmentRequest {
75
79
  /**
@@ -106,15 +110,15 @@ export declare class AppointmentPortalApi extends runtime.BaseAPI {
106
110
  */
107
111
  getAllAppointmentSlotsRequestOpts(requestParameters: GetAllAppointmentSlotsRequest): Promise<runtime.RequestOpts>;
108
112
  /**
109
- * 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.
110
- * get the bookable appointment slots of a tenant that have not ended yet
113
+ * 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. A repeating calendar entry yields a slot for each of its occurrences. The slots are sorted by their start.
114
+ * get the bookable appointment slots of a tenant overlapping a period that have not ended yet
111
115
  */
112
- getAllAppointmentSlotsRaw(requestParameters: GetAllAppointmentSlotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAppointmentSlots200Response>>;
116
+ getAllAppointmentSlotsRaw(requestParameters: GetAllAppointmentSlotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AppointmentSlotDto>>>;
113
117
  /**
114
- * 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.
115
- * get the bookable appointment slots of a tenant that have not ended yet
118
+ * 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. A repeating calendar entry yields a slot for each of its occurrences. The slots are sorted by their start.
119
+ * get the bookable appointment slots of a tenant overlapping a period that have not ended yet
116
120
  */
117
- getAllAppointmentSlots(requestParameters: GetAllAppointmentSlotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAppointmentSlots200Response>;
121
+ getAllAppointmentSlots(requestParameters: GetAllAppointmentSlotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppointmentSlotDto>>;
118
122
  /**
119
123
  * Creates request options for getOwnAppointment without sending the request
120
124
  */
@@ -147,12 +151,12 @@ export declare class AppointmentPortalApi extends runtime.BaseAPI {
147
151
  submitAppointmentsRequestOpts(requestParameters: SubmitAppointmentsRequest): Promise<runtime.RequestOpts>;
148
152
  /**
149
153
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
150
- * request an appointment for each of the time spans
154
+ * request an appointment for each of the time spans, at the optional address
151
155
  */
152
156
  submitAppointmentsRaw(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AppointmentPortalDto>>>;
153
157
  /**
154
158
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
155
- * request an appointment for each of the time spans
159
+ * request an appointment for each of the time spans, at the optional address
156
160
  */
157
161
  submitAppointments(requestParameters: SubmitAppointmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AppointmentPortalDto>>;
158
162
  /**
@@ -66,7 +66,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
66
66
  exports.AppointmentPortalApi = void 0;
67
67
  var runtime = require("../runtime");
68
68
  var AppointmentPortalDto_1 = require("../models/AppointmentPortalDto");
69
- var GetAllAppointmentSlots200Response_1 = require("../models/GetAllAppointmentSlots200Response");
69
+ var AppointmentSlotDto_1 = require("../models/AppointmentSlotDto");
70
+ var AppointmentSubmissionDto_1 = require("../models/AppointmentSubmissionDto");
70
71
  var TimeSpanDto_1 = require("../models/TimeSpanDto");
71
72
  /**
72
73
  *
@@ -147,12 +148,18 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
147
148
  if (requestParameters['handle'] == null) {
148
149
  throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAllAppointmentSlots().');
149
150
  }
150
- if (requestParameters['pageable'] == null) {
151
- throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllAppointmentSlots().');
151
+ if (requestParameters['from'] == null) {
152
+ throw new runtime.RequiredError('from', 'Required parameter "from" was null or undefined when calling getAllAppointmentSlots().');
153
+ }
154
+ if (requestParameters['to'] == null) {
155
+ throw new runtime.RequiredError('to', 'Required parameter "to" was null or undefined when calling getAllAppointmentSlots().');
152
156
  }
153
157
  queryParameters = {};
154
- if (requestParameters['pageable'] != null) {
155
- queryParameters['pageable'] = requestParameters['pageable'];
158
+ if (requestParameters['from'] != null) {
159
+ queryParameters['from'] = runtime.serializeDateTime(requestParameters['from']);
160
+ }
161
+ if (requestParameters['to'] != null) {
162
+ queryParameters['to'] = runtime.serializeDateTime(requestParameters['to']);
156
163
  }
157
164
  if (requestParameters['filter'] != null) {
158
165
  queryParameters['filter'] = requestParameters['filter'];
@@ -176,8 +183,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
176
183
  });
177
184
  };
178
185
  /**
179
- * 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.
180
- * get the bookable appointment slots of a tenant that have not ended yet
186
+ * 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. A repeating calendar entry yields a slot for each of its occurrences. The slots are sorted by their start.
187
+ * get the bookable appointment slots of a tenant overlapping a period that have not ended yet
181
188
  */
182
189
  AppointmentPortalApi.prototype.getAllAppointmentSlotsRaw = function (requestParameters, initOverrides) {
183
190
  return __awaiter(this, void 0, void 0, function () {
@@ -190,14 +197,14 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
190
197
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
191
198
  case 2:
192
199
  response = _a.sent();
193
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetAllAppointmentSlots200Response_1.GetAllAppointmentSlots200ResponseFromJSON)(jsonValue); })];
200
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(AppointmentSlotDto_1.AppointmentSlotDtoFromJSON); })];
194
201
  }
195
202
  });
196
203
  });
197
204
  };
198
205
  /**
199
- * 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.
200
- * get the bookable appointment slots of a tenant that have not ended yet
206
+ * 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. A repeating calendar entry yields a slot for each of its occurrences. The slots are sorted by their start.
207
+ * get the bookable appointment slots of a tenant overlapping a period that have not ended yet
201
208
  */
202
209
  AppointmentPortalApi.prototype.getAllAppointmentSlots = function (requestParameters, initOverrides) {
203
210
  return __awaiter(this, void 0, void 0, function () {
@@ -347,8 +354,8 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
347
354
  if (requestParameters['handle'] == null) {
348
355
  throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling submitAppointments().');
349
356
  }
350
- if (requestParameters['timeSpanDto'] == null) {
351
- throw new runtime.RequiredError('timeSpanDto', 'Required parameter "timeSpanDto" was null or undefined when calling submitAppointments().');
357
+ if (requestParameters['appointmentSubmissionDto'] == null) {
358
+ throw new runtime.RequiredError('appointmentSubmissionDto', 'Required parameter "appointmentSubmissionDto" was null or undefined when calling submitAppointments().');
352
359
  }
353
360
  queryParameters = {};
354
361
  headerParameters = {};
@@ -360,14 +367,14 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
360
367
  method: 'POST',
361
368
  headers: headerParameters,
362
369
  query: queryParameters,
363
- body: requestParameters['timeSpanDto'].map(TimeSpanDto_1.TimeSpanDtoToJSON),
370
+ body: (0, AppointmentSubmissionDto_1.AppointmentSubmissionDtoToJSON)(requestParameters['appointmentSubmissionDto']),
364
371
  }];
365
372
  });
366
373
  });
367
374
  };
368
375
  /**
369
376
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
370
- * request an appointment for each of the time spans
377
+ * request an appointment for each of the time spans, at the optional address
371
378
  */
372
379
  AppointmentPortalApi.prototype.submitAppointmentsRaw = function (requestParameters, initOverrides) {
373
380
  return __awaiter(this, void 0, void 0, function () {
@@ -387,7 +394,7 @@ var AppointmentPortalApi = /** @class */ (function (_super) {
387
394
  };
388
395
  /**
389
396
  * Requires the OIDC token of a logged-in user, who does not need to be a member of the tenant. Every time span has to lie within a bookable slot of the tenant that has not ended yet.
390
- * request an appointment for each of the time spans
397
+ * request an appointment for each of the time spans, at the optional address
391
398
  */
392
399
  AppointmentPortalApi.prototype.submitAppointments = function (requestParameters, initOverrides) {
393
400
  return __awaiter(this, void 0, void 0, function () {
@@ -0,0 +1,121 @@
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 AppointmentUserDto } from '../models/AppointmentUserDto';
13
+ import { type GetAllAppointmentUsers200Response } from '../models/GetAllAppointmentUsers200Response';
14
+ import { type KommerzPageable } from '../models/KommerzPageable';
15
+ export interface CreateAppointmentUserRequest {
16
+ /**
17
+ *
18
+ */
19
+ appointmentUserDto: Omit<AppointmentUserDto, 'userId' | 'userName' | 'customerName'>;
20
+ }
21
+ export interface DeleteAppointmentUserRequest {
22
+ /**
23
+ * id of entity
24
+ */
25
+ id: string;
26
+ }
27
+ export interface GetAllAppointmentUsersRequest {
28
+ /**
29
+ * Pageable query parameters
30
+ */
31
+ pageable: KommerzPageable;
32
+ /**
33
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
34
+ */
35
+ filter?: Array<string>;
36
+ }
37
+ export interface GetAppointmentUserRequest {
38
+ /**
39
+ * id of entity
40
+ */
41
+ id: string;
42
+ }
43
+ export interface UpdateAppointmentUserRequest {
44
+ /**
45
+ * id of entity
46
+ */
47
+ id: string;
48
+ /**
49
+ *
50
+ */
51
+ appointmentUserDto: Omit<AppointmentUserDto, 'userId' | 'userName' | 'customerName'>;
52
+ /**
53
+ * whether to force update the entity
54
+ */
55
+ force?: boolean;
56
+ }
57
+ /**
58
+ *
59
+ */
60
+ export declare class AppointmentUsersApi extends runtime.BaseAPI {
61
+ /**
62
+ * Creates request options for createAppointmentUser without sending the request
63
+ */
64
+ createAppointmentUserRequestOpts(requestParameters: CreateAppointmentUserRequest): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * create an appointment user for a customer
67
+ */
68
+ createAppointmentUserRaw(requestParameters: CreateAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentUserDto>>;
69
+ /**
70
+ * create an appointment user for a customer
71
+ */
72
+ createAppointmentUser(requestParameters: CreateAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentUserDto>;
73
+ /**
74
+ * Creates request options for deleteAppointmentUser without sending the request
75
+ */
76
+ deleteAppointmentUserRequestOpts(requestParameters: DeleteAppointmentUserRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * delete an appointment user
79
+ */
80
+ deleteAppointmentUserRaw(requestParameters: DeleteAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
81
+ /**
82
+ * delete an appointment user
83
+ */
84
+ deleteAppointmentUser(requestParameters: DeleteAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
+ /**
86
+ * Creates request options for getAllAppointmentUsers without sending the request
87
+ */
88
+ getAllAppointmentUsersRequestOpts(requestParameters: GetAllAppointmentUsersRequest): Promise<runtime.RequestOpts>;
89
+ /**
90
+ * get all appointment users of the tenant
91
+ */
92
+ getAllAppointmentUsersRaw(requestParameters: GetAllAppointmentUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAppointmentUsers200Response>>;
93
+ /**
94
+ * get all appointment users of the tenant
95
+ */
96
+ getAllAppointmentUsers(requestParameters: GetAllAppointmentUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAppointmentUsers200Response>;
97
+ /**
98
+ * Creates request options for getAppointmentUser without sending the request
99
+ */
100
+ getAppointmentUserRequestOpts(requestParameters: GetAppointmentUserRequest): Promise<runtime.RequestOpts>;
101
+ /**
102
+ * read one appointment user
103
+ */
104
+ getAppointmentUserRaw(requestParameters: GetAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentUserDto>>;
105
+ /**
106
+ * read one appointment user
107
+ */
108
+ getAppointmentUser(requestParameters: GetAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentUserDto>;
109
+ /**
110
+ * Creates request options for updateAppointmentUser without sending the request
111
+ */
112
+ updateAppointmentUserRequestOpts(requestParameters: UpdateAppointmentUserRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * update an appointment user, e.g. to assign a customer
115
+ */
116
+ updateAppointmentUserRaw(requestParameters: UpdateAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppointmentUserDto>>;
117
+ /**
118
+ * update an appointment user, e.g. to assign a customer
119
+ */
120
+ updateAppointmentUser(requestParameters: UpdateAppointmentUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppointmentUserDto>;
121
+ }