@kommerz/ts-client 1.195.0 → 1.196.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 (82) hide show
  1. package/dist/apis/AcceptancePortalDocumentsApi.d.ts +6 -6
  2. package/dist/apis/AcceptancePortalDocumentsApi.js +12 -12
  3. package/dist/apis/AppointmentPortalApi.d.ts +79 -11
  4. package/dist/apis/AppointmentPortalApi.js +202 -11
  5. package/dist/apis/AppointmentUsersApi.js +5 -5
  6. package/dist/apis/AppointmentsApi.d.ts +24 -2
  7. package/dist/apis/AppointmentsApi.js +69 -5
  8. package/dist/apis/BankingAccountsApi.js +1 -1
  9. package/dist/apis/BankingRegistrationsApi.js +1 -1
  10. package/dist/apis/FileDirectorySharesApi.d.ts +4 -4
  11. package/dist/apis/FileDirectorySharesApi.js +8 -8
  12. package/dist/apis/FormsPortalApi.d.ts +6 -4
  13. package/dist/apis/FormsPortalApi.js +10 -8
  14. package/dist/apis/InvoicePortalApi.d.ts +2 -2
  15. package/dist/apis/InvoicePortalApi.js +4 -4
  16. package/dist/apis/LegalEntityUsersApi.d.ts +121 -0
  17. package/dist/apis/LegalEntityUsersApi.js +387 -0
  18. package/dist/apis/NotificationTargetsApi.js +1 -1
  19. package/dist/apis/NotificationsAcksApi.js +2 -2
  20. package/dist/apis/NotificationsApi.js +3 -3
  21. package/dist/apis/PresenceEntriesApi.js +1 -1
  22. package/dist/apis/TimeTrackingCalendarApi.js +2 -2
  23. package/dist/apis/TimeTrackingCalendarExportApi.js +1 -1
  24. package/dist/apis/UsersMeApi.d.ts +58 -9
  25. package/dist/apis/UsersMeApi.js +103 -14
  26. package/dist/apis/index.d.ts +1 -2
  27. package/dist/apis/index.js +1 -2
  28. package/dist/models/AccountCalendarEntryDto.d.ts +5 -0
  29. package/dist/models/AccountCalendarEntryDto.js +3 -0
  30. package/dist/models/AccountCalendarEntryRsvpDto.d.ts +33 -0
  31. package/dist/models/AccountCalendarEntryRsvpDto.js +54 -0
  32. package/dist/models/AppointmentBlockerDto.d.ts +51 -0
  33. package/dist/models/AppointmentBlockerDto.js +66 -0
  34. package/dist/models/AppointmentBookingConfigDto.d.ts +37 -0
  35. package/dist/models/AppointmentBookingConfigDto.js +52 -0
  36. package/dist/models/AppointmentDto.d.ts +18 -8
  37. package/dist/models/AppointmentDto.js +11 -6
  38. package/dist/models/AppointmentEmailTemplateDto.d.ts +33 -0
  39. package/dist/models/AppointmentEmailTemplateDto.js +50 -0
  40. package/dist/models/AppointmentEmailTemplatesDto.d.ts +54 -0
  41. package/dist/models/AppointmentEmailTemplatesDto.js +61 -0
  42. package/dist/models/AppointmentPortalDto.d.ts +8 -2
  43. package/dist/models/AppointmentPortalDto.js +6 -2
  44. package/dist/models/AppointmentProductDto.d.ts +45 -0
  45. package/dist/models/AppointmentProductDto.js +59 -0
  46. package/dist/models/AppointmentProductSelectionDto.d.ts +33 -0
  47. package/dist/models/AppointmentProductSelectionDto.js +54 -0
  48. package/dist/models/AppointmentSlotDistance.d.ts +3 -1
  49. package/dist/models/AppointmentSlotDistance.js +3 -1
  50. package/dist/models/AppointmentSlotDto.d.ts +4 -0
  51. package/dist/models/AppointmentSlotDto.js +4 -0
  52. package/dist/models/AppointmentStatus.d.ts +9 -3
  53. package/dist/models/AppointmentStatus.js +9 -3
  54. package/dist/models/AppointmentSubmissionDto.d.ts +11 -2
  55. package/dist/models/AppointmentSubmissionDto.js +5 -0
  56. package/dist/models/AppointmentTimeSpanDto.d.ts +39 -0
  57. package/dist/models/AppointmentTimeSpanDto.js +58 -0
  58. package/dist/models/AppointmentTimeSpanStatus.d.ts +35 -0
  59. package/dist/models/AppointmentTimeSpanStatus.js +61 -0
  60. package/dist/models/CalendarEntryTypeDto.d.ts +4 -0
  61. package/dist/models/CalendarEntryTypeDto.js +2 -0
  62. package/dist/models/CalendarPortalEventDto.d.ts +4 -0
  63. package/dist/models/CalendarPortalEventDto.js +4 -0
  64. package/dist/models/EntityType.d.ts +1 -1
  65. package/dist/models/EntityType.js +1 -1
  66. package/dist/models/FormsPortalLegalEntityUserRequestDto.d.ts +29 -0
  67. package/dist/models/FormsPortalLegalEntityUserRequestDto.js +50 -0
  68. package/dist/models/FormsPortalSubmissionDto.d.ts +29 -0
  69. package/dist/models/FormsPortalSubmissionDto.js +50 -0
  70. package/dist/models/GetAllLegalEntityUsers200Response.d.ts +42 -0
  71. package/dist/models/GetAllLegalEntityUsers200Response.js +59 -0
  72. package/dist/models/GetMyAppointments200Response.d.ts +42 -0
  73. package/dist/models/GetMyAppointments200Response.js +59 -0
  74. package/dist/models/LegalEntityUserDto.d.ts +71 -0
  75. package/dist/models/LegalEntityUserDto.js +63 -0
  76. package/dist/models/Permissions.d.ts +4 -4
  77. package/dist/models/Permissions.js +4 -4
  78. package/dist/models/RoutingConfigDto.d.ts +16 -3
  79. package/dist/models/RoutingConfigDto.js +10 -3
  80. package/dist/models/index.d.ts +12 -3
  81. package/dist/models/index.js +12 -3
  82. package/package.json +1 -1
@@ -17,9 +17,11 @@ exports.AppointmentDtoFromJSON = AppointmentDtoFromJSON;
17
17
  exports.AppointmentDtoFromJSONTyped = AppointmentDtoFromJSONTyped;
18
18
  exports.AppointmentDtoToJSON = AppointmentDtoToJSON;
19
19
  exports.AppointmentDtoToJSONTyped = AppointmentDtoToJSONTyped;
20
+ var AppointmentProductDto_1 = require("./AppointmentProductDto");
20
21
  var TimeSpanDto_1 = require("./TimeSpanDto");
21
22
  var AddressDto_1 = require("./AddressDto");
22
23
  var AppointmentStatus_1 = require("./AppointmentStatus");
24
+ var AppointmentTimeSpanDto_1 = require("./AppointmentTimeSpanDto");
23
25
  /**
24
26
  * Check if a given object implements the AppointmentDto interface.
25
27
  */
@@ -28,7 +30,7 @@ function instanceOfAppointmentDto(value) {
28
30
  return false;
29
31
  if (!('status' in value) || value['status'] === undefined)
30
32
  return false;
31
- if (!('appointmentUserId' in value) || value['appointmentUserId'] === undefined)
33
+ if (!('legalEntityUserId' in value) || value['legalEntityUserId'] === undefined)
32
34
  return false;
33
35
  return true;
34
36
  }
@@ -42,11 +44,13 @@ function AppointmentDtoFromJSONTyped(json, ignoreDiscriminator) {
42
44
  return {
43
45
  'id': json['id'] == null ? undefined : json['id'],
44
46
  'version': json['version'] == null ? undefined : json['version'],
45
- 'submittedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['submittedTimeSpan']),
47
+ 'submittedTimeSpan': (json['submittedTimeSpan'].map(AppointmentTimeSpanDto_1.AppointmentTimeSpanDtoFromJSON)),
48
+ 'productIds': json['productIds'] == null ? undefined : json['productIds'],
49
+ 'products': json['products'] == null ? undefined : (json['products'].map(AppointmentProductDto_1.AppointmentProductDtoFromJSON)),
46
50
  'confirmedTimeSpan': json['confirmedTimeSpan'] == null ? undefined : (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['confirmedTimeSpan']),
47
51
  'status': (0, AppointmentStatus_1.AppointmentStatusFromJSON)(json['status']),
48
- 'appointmentUserId': json['appointmentUserId'],
49
- 'appointmentUserName': json['appointmentUserName'] == null ? undefined : json['appointmentUserName'],
52
+ 'legalEntityUserId': json['legalEntityUserId'],
53
+ 'legalEntityUserName': json['legalEntityUserName'] == null ? undefined : json['legalEntityUserName'],
50
54
  'address': json['address'] == null ? undefined : (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
51
55
  'calendarEntryId': json['calendarEntryId'] == null ? undefined : json['calendarEntryId'],
52
56
  };
@@ -62,10 +66,11 @@ function AppointmentDtoToJSONTyped(value, ignoreDiscriminator) {
62
66
  return {
63
67
  'id': value['id'],
64
68
  'version': value['version'],
65
- 'submittedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['submittedTimeSpan']),
69
+ 'submittedTimeSpan': (value['submittedTimeSpan'].map(AppointmentTimeSpanDto_1.AppointmentTimeSpanDtoToJSON)),
70
+ 'productIds': value['productIds'],
66
71
  'confirmedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['confirmedTimeSpan']),
67
72
  'status': (0, AppointmentStatus_1.AppointmentStatusToJSON)(value['status']),
68
- 'appointmentUserId': value['appointmentUserId'],
73
+ 'legalEntityUserId': value['legalEntityUserId'],
69
74
  'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
70
75
  };
71
76
  }
@@ -0,0 +1,33 @@
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
+ * Texts of an appointment e-mail. Both are Thymeleaf templates whose placeholders (e.g. appointment.name, appointment.time) are filled for the appointment; the body contains the greeting too.
13
+ * @export
14
+ * @interface AppointmentEmailTemplateDto
15
+ */
16
+ export interface AppointmentEmailTemplateDto {
17
+ /**
18
+ * Subject of the e-mail; HTML is removed after the placeholders are filled.
19
+ */
20
+ subject?: string;
21
+ /**
22
+ * HTML body text of the e-mail, shown above the appointment details.
23
+ */
24
+ body?: string;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AppointmentEmailTemplateDto interface.
28
+ */
29
+ export declare function instanceOfAppointmentEmailTemplateDto(value: object): value is AppointmentEmailTemplateDto;
30
+ export declare function AppointmentEmailTemplateDtoFromJSON(json: any): AppointmentEmailTemplateDto;
31
+ export declare function AppointmentEmailTemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppointmentEmailTemplateDto;
32
+ export declare function AppointmentEmailTemplateDtoToJSON(json: any): AppointmentEmailTemplateDto;
33
+ export declare function AppointmentEmailTemplateDtoToJSONTyped(value?: AppointmentEmailTemplateDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfAppointmentEmailTemplateDto = instanceOfAppointmentEmailTemplateDto;
16
+ exports.AppointmentEmailTemplateDtoFromJSON = AppointmentEmailTemplateDtoFromJSON;
17
+ exports.AppointmentEmailTemplateDtoFromJSONTyped = AppointmentEmailTemplateDtoFromJSONTyped;
18
+ exports.AppointmentEmailTemplateDtoToJSON = AppointmentEmailTemplateDtoToJSON;
19
+ exports.AppointmentEmailTemplateDtoToJSONTyped = AppointmentEmailTemplateDtoToJSONTyped;
20
+ /**
21
+ * Check if a given object implements the AppointmentEmailTemplateDto interface.
22
+ */
23
+ function instanceOfAppointmentEmailTemplateDto(value) {
24
+ return true;
25
+ }
26
+ function AppointmentEmailTemplateDtoFromJSON(json) {
27
+ return AppointmentEmailTemplateDtoFromJSONTyped(json, false);
28
+ }
29
+ function AppointmentEmailTemplateDtoFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'subject': json['subject'] == null ? undefined : json['subject'],
35
+ 'body': json['body'] == null ? undefined : json['body'],
36
+ };
37
+ }
38
+ function AppointmentEmailTemplateDtoToJSON(json) {
39
+ return AppointmentEmailTemplateDtoToJSONTyped(json, false);
40
+ }
41
+ function AppointmentEmailTemplateDtoToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'subject': value['subject'],
48
+ 'body': value['body'],
49
+ };
50
+ }
@@ -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 type { AppointmentEmailTemplateDto } from './AppointmentEmailTemplateDto';
12
+ /**
13
+ * E-mails sent to the user of an appointment while it is planned. An e-mail without subject or body is not sent.
14
+ * @export
15
+ * @interface AppointmentEmailTemplatesDto
16
+ */
17
+ export interface AppointmentEmailTemplatesDto {
18
+ /**
19
+ * A day was selected for the appointment; the time follows later.
20
+ */
21
+ tentative?: AppointmentEmailTemplateDto;
22
+ /**
23
+ * No day could be found for the submitted time spans.
24
+ */
25
+ noTentative?: AppointmentEmailTemplateDto;
26
+ /**
27
+ * The time of the appointment was planned and has to be confirmed. The e-mail carries the calendar entry of the planned time as iCalendar attachment.
28
+ */
29
+ finalTime?: AppointmentEmailTemplateDto;
30
+ /**
31
+ * No time could be planned on the selected day.
32
+ */
33
+ noFinalTime?: AppointmentEmailTemplateDto;
34
+ /**
35
+ * The planned time was not confirmed in time and has been released.
36
+ */
37
+ abort?: AppointmentEmailTemplateDto;
38
+ /**
39
+ * No time could be planned before the submitted time spans passed; the appointment has been rejected.
40
+ */
41
+ rejected?: AppointmentEmailTemplateDto;
42
+ /**
43
+ * The calendar entry of the planned time was deleted, so the appointment has been cancelled. The e-mail carries the cancellation of the calendar entry as iCalendar attachment.
44
+ */
45
+ cancelled?: AppointmentEmailTemplateDto;
46
+ }
47
+ /**
48
+ * Check if a given object implements the AppointmentEmailTemplatesDto interface.
49
+ */
50
+ export declare function instanceOfAppointmentEmailTemplatesDto(value: object): value is AppointmentEmailTemplatesDto;
51
+ export declare function AppointmentEmailTemplatesDtoFromJSON(json: any): AppointmentEmailTemplatesDto;
52
+ export declare function AppointmentEmailTemplatesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppointmentEmailTemplatesDto;
53
+ export declare function AppointmentEmailTemplatesDtoToJSON(json: any): AppointmentEmailTemplatesDto;
54
+ export declare function AppointmentEmailTemplatesDtoToJSONTyped(value?: AppointmentEmailTemplatesDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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.instanceOfAppointmentEmailTemplatesDto = instanceOfAppointmentEmailTemplatesDto;
16
+ exports.AppointmentEmailTemplatesDtoFromJSON = AppointmentEmailTemplatesDtoFromJSON;
17
+ exports.AppointmentEmailTemplatesDtoFromJSONTyped = AppointmentEmailTemplatesDtoFromJSONTyped;
18
+ exports.AppointmentEmailTemplatesDtoToJSON = AppointmentEmailTemplatesDtoToJSON;
19
+ exports.AppointmentEmailTemplatesDtoToJSONTyped = AppointmentEmailTemplatesDtoToJSONTyped;
20
+ var AppointmentEmailTemplateDto_1 = require("./AppointmentEmailTemplateDto");
21
+ /**
22
+ * Check if a given object implements the AppointmentEmailTemplatesDto interface.
23
+ */
24
+ function instanceOfAppointmentEmailTemplatesDto(value) {
25
+ return true;
26
+ }
27
+ function AppointmentEmailTemplatesDtoFromJSON(json) {
28
+ return AppointmentEmailTemplatesDtoFromJSONTyped(json, false);
29
+ }
30
+ function AppointmentEmailTemplatesDtoFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'tentative': json['tentative'] == null ? undefined : (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoFromJSON)(json['tentative']),
36
+ 'noTentative': json['noTentative'] == null ? undefined : (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoFromJSON)(json['noTentative']),
37
+ 'finalTime': json['finalTime'] == null ? undefined : (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoFromJSON)(json['finalTime']),
38
+ 'noFinalTime': json['noFinalTime'] == null ? undefined : (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoFromJSON)(json['noFinalTime']),
39
+ 'abort': json['abort'] == null ? undefined : (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoFromJSON)(json['abort']),
40
+ 'rejected': json['rejected'] == null ? undefined : (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoFromJSON)(json['rejected']),
41
+ 'cancelled': json['cancelled'] == null ? undefined : (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoFromJSON)(json['cancelled']),
42
+ };
43
+ }
44
+ function AppointmentEmailTemplatesDtoToJSON(json) {
45
+ return AppointmentEmailTemplatesDtoToJSONTyped(json, false);
46
+ }
47
+ function AppointmentEmailTemplatesDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'tentative': (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoToJSON)(value['tentative']),
54
+ 'noTentative': (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoToJSON)(value['noTentative']),
55
+ 'finalTime': (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoToJSON)(value['finalTime']),
56
+ 'noFinalTime': (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoToJSON)(value['noFinalTime']),
57
+ 'abort': (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoToJSON)(value['abort']),
58
+ 'rejected': (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoToJSON)(value['rejected']),
59
+ 'cancelled': (0, AppointmentEmailTemplateDto_1.AppointmentEmailTemplateDtoToJSON)(value['cancelled']),
60
+ };
61
+ }
@@ -8,9 +8,11 @@
8
8
  * https://openapi-generator.tech
9
9
  * Do not edit the class manually.
10
10
  */
11
+ import type { AppointmentProductDto } from './AppointmentProductDto';
11
12
  import type { TimeSpanDto } from './TimeSpanDto';
12
13
  import type { AddressDto } from './AddressDto';
13
14
  import type { AppointmentStatus } from './AppointmentStatus';
15
+ import type { AppointmentTimeSpanDto } from './AppointmentTimeSpanDto';
14
16
  /**
15
17
  * an appointment as its requester sees it in the tenant portal and in the account
16
18
  * @export
@@ -22,9 +24,13 @@ export interface AppointmentPortalDto {
22
24
  */
23
25
  id: string;
24
26
  /**
25
- *
27
+ * the time spans the requester is available in
28
+ */
29
+ submittedTimeSpan: Array<AppointmentTimeSpanDto>;
30
+ /**
31
+ * the products the appointment is made for
26
32
  */
27
- submittedTimeSpan: TimeSpanDto;
33
+ products?: Array<AppointmentProductDto>;
28
34
  /**
29
35
  *
30
36
  */
@@ -17,9 +17,11 @@ exports.AppointmentPortalDtoFromJSON = AppointmentPortalDtoFromJSON;
17
17
  exports.AppointmentPortalDtoFromJSONTyped = AppointmentPortalDtoFromJSONTyped;
18
18
  exports.AppointmentPortalDtoToJSON = AppointmentPortalDtoToJSON;
19
19
  exports.AppointmentPortalDtoToJSONTyped = AppointmentPortalDtoToJSONTyped;
20
+ var AppointmentProductDto_1 = require("./AppointmentProductDto");
20
21
  var TimeSpanDto_1 = require("./TimeSpanDto");
21
22
  var AddressDto_1 = require("./AddressDto");
22
23
  var AppointmentStatus_1 = require("./AppointmentStatus");
24
+ var AppointmentTimeSpanDto_1 = require("./AppointmentTimeSpanDto");
23
25
  /**
24
26
  * Check if a given object implements the AppointmentPortalDto interface.
25
27
  */
@@ -41,7 +43,8 @@ function AppointmentPortalDtoFromJSONTyped(json, ignoreDiscriminator) {
41
43
  }
42
44
  return {
43
45
  'id': json['id'],
44
- 'submittedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['submittedTimeSpan']),
46
+ 'submittedTimeSpan': (json['submittedTimeSpan'].map(AppointmentTimeSpanDto_1.AppointmentTimeSpanDtoFromJSON)),
47
+ 'products': json['products'] == null ? undefined : (json['products'].map(AppointmentProductDto_1.AppointmentProductDtoFromJSON)),
45
48
  'confirmedTimeSpan': json['confirmedTimeSpan'] == null ? undefined : (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['confirmedTimeSpan']),
46
49
  'status': (0, AppointmentStatus_1.AppointmentStatusFromJSON)(json['status']),
47
50
  'address': json['address'] == null ? undefined : (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
@@ -57,7 +60,8 @@ function AppointmentPortalDtoToJSONTyped(value, ignoreDiscriminator) {
57
60
  }
58
61
  return {
59
62
  'id': value['id'],
60
- 'submittedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['submittedTimeSpan']),
63
+ 'submittedTimeSpan': (value['submittedTimeSpan'].map(AppointmentTimeSpanDto_1.AppointmentTimeSpanDtoToJSON)),
64
+ 'products': value['products'] == null ? undefined : (value['products'].map(AppointmentProductDto_1.AppointmentProductDtoToJSON)),
61
65
  'confirmedTimeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['confirmedTimeSpan']),
62
66
  'status': (0, AppointmentStatus_1.AppointmentStatusToJSON)(value['status']),
63
67
  'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
@@ -0,0 +1,45 @@
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
+ * a product an appointment can be made for; within an appointment a copy of the product as it was when it was assigned
13
+ * @export
14
+ * @interface AppointmentProductDto
15
+ */
16
+ export interface AppointmentProductDto {
17
+ /**
18
+ *
19
+ */
20
+ productId: string;
21
+ /**
22
+ *
23
+ */
24
+ name: string;
25
+ /**
26
+ * net price
27
+ */
28
+ price?: number;
29
+ /**
30
+ * html formatted product description
31
+ */
32
+ description?: string;
33
+ /**
34
+ * how often the product is booked; multiplies its duration
35
+ */
36
+ readonly quantity?: number;
37
+ }
38
+ /**
39
+ * Check if a given object implements the AppointmentProductDto interface.
40
+ */
41
+ export declare function instanceOfAppointmentProductDto(value: object): value is AppointmentProductDto;
42
+ export declare function AppointmentProductDtoFromJSON(json: any): AppointmentProductDto;
43
+ export declare function AppointmentProductDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppointmentProductDto;
44
+ export declare function AppointmentProductDtoToJSON(json: any): AppointmentProductDto;
45
+ export declare function AppointmentProductDtoToJSONTyped(value?: Omit<AppointmentProductDto, 'quantity'> | 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.instanceOfAppointmentProductDto = instanceOfAppointmentProductDto;
16
+ exports.AppointmentProductDtoFromJSON = AppointmentProductDtoFromJSON;
17
+ exports.AppointmentProductDtoFromJSONTyped = AppointmentProductDtoFromJSONTyped;
18
+ exports.AppointmentProductDtoToJSON = AppointmentProductDtoToJSON;
19
+ exports.AppointmentProductDtoToJSONTyped = AppointmentProductDtoToJSONTyped;
20
+ /**
21
+ * Check if a given object implements the AppointmentProductDto interface.
22
+ */
23
+ function instanceOfAppointmentProductDto(value) {
24
+ if (!('productId' in value) || value['productId'] === undefined)
25
+ return false;
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AppointmentProductDtoFromJSON(json) {
31
+ return AppointmentProductDtoFromJSONTyped(json, false);
32
+ }
33
+ function AppointmentProductDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'productId': json['productId'],
39
+ 'name': json['name'],
40
+ 'price': json['price'] == null ? undefined : json['price'],
41
+ 'description': json['description'] == null ? undefined : json['description'],
42
+ 'quantity': json['quantity'] == null ? undefined : json['quantity'],
43
+ };
44
+ }
45
+ function AppointmentProductDtoToJSON(json) {
46
+ return AppointmentProductDtoToJSONTyped(json, false);
47
+ }
48
+ function AppointmentProductDtoToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'productId': value['productId'],
55
+ 'name': value['name'],
56
+ 'price': value['price'],
57
+ 'description': value['description'],
58
+ };
59
+ }
@@ -0,0 +1,33 @@
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
+ * a bookable product the user selected for an appointment
13
+ * @export
14
+ * @interface AppointmentProductSelectionDto
15
+ */
16
+ export interface AppointmentProductSelectionDto {
17
+ /**
18
+ *
19
+ */
20
+ productId: string;
21
+ /**
22
+ *
23
+ */
24
+ quantity: number;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AppointmentProductSelectionDto interface.
28
+ */
29
+ export declare function instanceOfAppointmentProductSelectionDto(value: object): value is AppointmentProductSelectionDto;
30
+ export declare function AppointmentProductSelectionDtoFromJSON(json: any): AppointmentProductSelectionDto;
31
+ export declare function AppointmentProductSelectionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppointmentProductSelectionDto;
32
+ export declare function AppointmentProductSelectionDtoToJSON(json: any): AppointmentProductSelectionDto;
33
+ export declare function AppointmentProductSelectionDtoToJSONTyped(value?: AppointmentProductSelectionDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfAppointmentProductSelectionDto = instanceOfAppointmentProductSelectionDto;
16
+ exports.AppointmentProductSelectionDtoFromJSON = AppointmentProductSelectionDtoFromJSON;
17
+ exports.AppointmentProductSelectionDtoFromJSONTyped = AppointmentProductSelectionDtoFromJSONTyped;
18
+ exports.AppointmentProductSelectionDtoToJSON = AppointmentProductSelectionDtoToJSON;
19
+ exports.AppointmentProductSelectionDtoToJSONTyped = AppointmentProductSelectionDtoToJSONTyped;
20
+ /**
21
+ * Check if a given object implements the AppointmentProductSelectionDto interface.
22
+ */
23
+ function instanceOfAppointmentProductSelectionDto(value) {
24
+ if (!('productId' in value) || value['productId'] === undefined)
25
+ return false;
26
+ if (!('quantity' in value) || value['quantity'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AppointmentProductSelectionDtoFromJSON(json) {
31
+ return AppointmentProductSelectionDtoFromJSONTyped(json, false);
32
+ }
33
+ function AppointmentProductSelectionDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'productId': json['productId'],
39
+ 'quantity': json['quantity'],
40
+ };
41
+ }
42
+ function AppointmentProductSelectionDtoToJSON(json) {
43
+ return AppointmentProductSelectionDtoToJSONTyped(json, false);
44
+ }
45
+ function AppointmentProductSelectionDtoToJSONTyped(value, ignoreDiscriminator) {
46
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'productId': value['productId'],
52
+ 'quantity': value['quantity'],
53
+ };
54
+ }
@@ -9,7 +9,9 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  /**
12
- * estimated distance between the requester and the slot
12
+ * straight-line distance between the requester and the nearest place the slot is at: the location of its calendar entry and the appointments planned within it.
13
+ * CLOSE up to the routing configuration's sameDistance, NEAR up to its nearDistance, FAR beyond. Missing when the request has no location, the slot has no place yet or routing is not configured.
14
+ *
13
15
  * @export
14
16
  */
15
17
  export declare const AppointmentSlotDistance: {
@@ -19,7 +19,9 @@ exports.AppointmentSlotDistanceFromJSONTyped = AppointmentSlotDistanceFromJSONTy
19
19
  exports.AppointmentSlotDistanceToJSON = AppointmentSlotDistanceToJSON;
20
20
  exports.AppointmentSlotDistanceToJSONTyped = AppointmentSlotDistanceToJSONTyped;
21
21
  /**
22
- * estimated distance between the requester and the slot
22
+ * straight-line distance between the requester and the nearest place the slot is at: the location of its calendar entry and the appointments planned within it.
23
+ * CLOSE up to the routing configuration's sameDistance, NEAR up to its nearDistance, FAR beyond. Missing when the request has no location, the slot has no place yet or routing is not configured.
24
+ *
23
25
  * @export
24
26
  */
25
27
  exports.AppointmentSlotDistance = {
@@ -32,6 +32,10 @@ export interface AppointmentSlotDto {
32
32
  *
33
33
  */
34
34
  distance?: AppointmentSlotDistance;
35
+ /**
36
+ * whether booked entries leave no time of the slot free, or the planner would consider a new appointment on none of its days, because the work week already has the tenant's limit of planned, confirmed and candidate appointments, or the day already has the maximum number of stops and the appointment would need another one (the requester's place is not at one of them or unknown)
37
+ */
38
+ fullyBooked: boolean;
35
39
  }
36
40
  /**
37
41
  * Check if a given object implements the AppointmentSlotDto interface.
@@ -27,6 +27,8 @@ function instanceOfAppointmentSlotDto(value) {
27
27
  return false;
28
28
  if (!('name' in value) || value['name'] === undefined)
29
29
  return false;
30
+ if (!('fullyBooked' in value) || value['fullyBooked'] === undefined)
31
+ return false;
30
32
  return true;
31
33
  }
32
34
  function AppointmentSlotDtoFromJSON(json) {
@@ -41,6 +43,7 @@ function AppointmentSlotDtoFromJSONTyped(json, ignoreDiscriminator) {
41
43
  'name': json['name'],
42
44
  'description': json['description'] == null ? undefined : json['description'],
43
45
  'distance': json['distance'] == null ? undefined : (0, AppointmentSlotDistance_1.AppointmentSlotDistanceFromJSON)(json['distance']),
46
+ 'fullyBooked': json['fullyBooked'],
44
47
  };
45
48
  }
46
49
  function AppointmentSlotDtoToJSON(json) {
@@ -56,5 +59,6 @@ function AppointmentSlotDtoToJSONTyped(value, ignoreDiscriminator) {
56
59
  'name': value['name'],
57
60
  'description': value['description'],
58
61
  'distance': (0, AppointmentSlotDistance_1.AppointmentSlotDistanceToJSON)(value['distance']),
62
+ 'fullyBooked': value['fullyBooked'],
59
63
  };
60
64
  }
@@ -9,14 +9,20 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  /**
12
+ * NEW: not planned yet; IN_PLANNING: a candidate day is announced; WAITING_FOR_CUSTOMER: a time is planned and
13
+ * waits for the confirmation of the requester; CONFIRMED: the requester confirmed the planned time;
14
+ * CANCELLED: the appointment was cancelled (reserved, not set by the application yet)
12
15
  *
13
16
  * @export
14
17
  */
15
18
  export declare const AppointmentStatus: {
16
- readonly Unconfirmed: "UNCONFIRMED";
17
- readonly Confirmed: "CONFIRMED";
19
+ readonly New: "NEW";
20
+ readonly InPlanning: "IN_PLANNING";
21
+ readonly WaitingForCustomer: "WAITING_FOR_CUSTOMER";
18
22
  readonly Rejected: "REJECTED";
19
- readonly Planned: "PLANNED";
23
+ readonly RejectedByCustomer: "REJECTED_BY_CUSTOMER";
24
+ readonly Confirmed: "CONFIRMED";
25
+ readonly Cancelled: "CANCELLED";
20
26
  };
21
27
  export type AppointmentStatus = typeof AppointmentStatus[keyof typeof AppointmentStatus];
22
28
  export declare function instanceOfAppointmentStatus(value: any): boolean;
@@ -19,14 +19,20 @@ exports.AppointmentStatusFromJSONTyped = AppointmentStatusFromJSONTyped;
19
19
  exports.AppointmentStatusToJSON = AppointmentStatusToJSON;
20
20
  exports.AppointmentStatusToJSONTyped = AppointmentStatusToJSONTyped;
21
21
  /**
22
+ * NEW: not planned yet; IN_PLANNING: a candidate day is announced; WAITING_FOR_CUSTOMER: a time is planned and
23
+ * waits for the confirmation of the requester; CONFIRMED: the requester confirmed the planned time;
24
+ * CANCELLED: the appointment was cancelled (reserved, not set by the application yet)
22
25
  *
23
26
  * @export
24
27
  */
25
28
  exports.AppointmentStatus = {
26
- Unconfirmed: 'UNCONFIRMED',
27
- Confirmed: 'CONFIRMED',
29
+ New: 'NEW',
30
+ InPlanning: 'IN_PLANNING',
31
+ WaitingForCustomer: 'WAITING_FOR_CUSTOMER',
28
32
  Rejected: 'REJECTED',
29
- Planned: 'PLANNED',
33
+ RejectedByCustomer: 'REJECTED_BY_CUSTOMER',
34
+ Confirmed: 'CONFIRMED',
35
+ Cancelled: 'CANCELLED',
30
36
  };
31
37
  function instanceOfAppointmentStatus(value) {
32
38
  for (var key in exports.AppointmentStatus) {
@@ -8,10 +8,11 @@
8
8
  * https://openapi-generator.tech
9
9
  * Do not edit the class manually.
10
10
  */
11
+ import type { AppointmentProductSelectionDto } from './AppointmentProductSelectionDto';
11
12
  import type { TimeSpanDto } from './TimeSpanDto';
12
13
  import type { AddressDto } from './AddressDto';
13
14
  /**
14
- * the time spans a user requests in the tenant portal, one appointment each, at an optional address
15
+ * the time spans a user is available in, requested in the tenant portal as one appointment at an optional address
15
16
  * @export
16
17
  * @interface AppointmentSubmissionDto
17
18
  */
@@ -21,9 +22,17 @@ export interface AppointmentSubmissionDto {
21
22
  */
22
23
  timeSpans: Array<TimeSpanDto>;
23
24
  /**
24
- * the place of the appointments
25
+ * the products the user selected, out of the bookable products of the tenant
26
+ */
27
+ products?: Array<AppointmentProductSelectionDto>;
28
+ /**
29
+ * the place of the appointment
25
30
  */
26
31
  address?: AddressDto;
32
+ /**
33
+ * the data the user entered into the form of the booking configuration
34
+ */
35
+ formData?: any;
27
36
  }
28
37
  /**
29
38
  * Check if a given object implements the AppointmentSubmissionDto interface.