@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
@@ -0,0 +1,63 @@
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 { ParticipantStatus } from './ParticipantStatus';
12
+ import type { TimeSpanDto } from './TimeSpanDto';
13
+ /**
14
+ * a calendar entry as one of its attendees sees it outside of the tenant
15
+ * @export
16
+ * @interface AttendedCalendarEntryDto
17
+ */
18
+ export interface AttendedCalendarEntryDto {
19
+ /**
20
+ *
21
+ */
22
+ id: string;
23
+ /**
24
+ *
25
+ */
26
+ summary: string;
27
+ /**
28
+ *
29
+ */
30
+ description?: string;
31
+ /**
32
+ *
33
+ */
34
+ location?: string;
35
+ /**
36
+ *
37
+ */
38
+ timeSpan: TimeSpanDto;
39
+ /**
40
+ * repeat rule of the entry as RRULE value of RFC 5545, null for entries that do not repeat
41
+ */
42
+ recurrenceRule?: string;
43
+ /**
44
+ *
45
+ */
46
+ typeName: string;
47
+ /**
48
+ * HTML color (name or hex code)
49
+ */
50
+ typeColorCode?: string;
51
+ /**
52
+ * the answer of the attendee
53
+ */
54
+ status: ParticipantStatus;
55
+ }
56
+ /**
57
+ * Check if a given object implements the AttendedCalendarEntryDto interface.
58
+ */
59
+ export declare function instanceOfAttendedCalendarEntryDto(value: object): value is AttendedCalendarEntryDto;
60
+ export declare function AttendedCalendarEntryDtoFromJSON(json: any): AttendedCalendarEntryDto;
61
+ export declare function AttendedCalendarEntryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttendedCalendarEntryDto;
62
+ export declare function AttendedCalendarEntryDtoToJSON(json: any): AttendedCalendarEntryDto;
63
+ export declare function AttendedCalendarEntryDtoToJSONTyped(value?: AttendedCalendarEntryDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.instanceOfAttendedCalendarEntryDto = instanceOfAttendedCalendarEntryDto;
16
+ exports.AttendedCalendarEntryDtoFromJSON = AttendedCalendarEntryDtoFromJSON;
17
+ exports.AttendedCalendarEntryDtoFromJSONTyped = AttendedCalendarEntryDtoFromJSONTyped;
18
+ exports.AttendedCalendarEntryDtoToJSON = AttendedCalendarEntryDtoToJSON;
19
+ exports.AttendedCalendarEntryDtoToJSONTyped = AttendedCalendarEntryDtoToJSONTyped;
20
+ var ParticipantStatus_1 = require("./ParticipantStatus");
21
+ var TimeSpanDto_1 = require("./TimeSpanDto");
22
+ /**
23
+ * Check if a given object implements the AttendedCalendarEntryDto interface.
24
+ */
25
+ function instanceOfAttendedCalendarEntryDto(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('summary' in value) || value['summary'] === undefined)
29
+ return false;
30
+ if (!('timeSpan' in value) || value['timeSpan'] === undefined)
31
+ return false;
32
+ if (!('typeName' in value) || value['typeName'] === undefined)
33
+ return false;
34
+ if (!('status' in value) || value['status'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function AttendedCalendarEntryDtoFromJSON(json) {
39
+ return AttendedCalendarEntryDtoFromJSONTyped(json, false);
40
+ }
41
+ function AttendedCalendarEntryDtoFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'id': json['id'],
47
+ 'summary': json['summary'],
48
+ 'description': json['description'] == null ? undefined : json['description'],
49
+ 'location': json['location'] == null ? undefined : json['location'],
50
+ 'timeSpan': (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['timeSpan']),
51
+ 'recurrenceRule': json['recurrenceRule'] == null ? undefined : json['recurrenceRule'],
52
+ 'typeName': json['typeName'],
53
+ 'typeColorCode': json['typeColorCode'] == null ? undefined : json['typeColorCode'],
54
+ 'status': (0, ParticipantStatus_1.ParticipantStatusFromJSON)(json['status']),
55
+ };
56
+ }
57
+ function AttendedCalendarEntryDtoToJSON(json) {
58
+ return AttendedCalendarEntryDtoToJSONTyped(json, false);
59
+ }
60
+ function AttendedCalendarEntryDtoToJSONTyped(value, ignoreDiscriminator) {
61
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'summary': value['summary'],
68
+ 'description': value['description'],
69
+ 'location': value['location'],
70
+ 'timeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['timeSpan']),
71
+ 'recurrenceRule': value['recurrenceRule'],
72
+ 'typeName': value['typeName'],
73
+ 'typeColorCode': value['typeColorCode'],
74
+ 'status': (0, ParticipantStatus_1.ParticipantStatusToJSON)(value['status']),
75
+ };
76
+ }
@@ -24,6 +24,10 @@ export interface CalendarAttendeeDto {
24
24
  * email of the user - if not set userId is used
25
25
  */
26
26
  email?: string;
27
+ /**
28
+ * display name of an attendee invited by email, e.g. "John Doe" of "John Doe <john.doe@example.com>" - not used when userId is set
29
+ */
30
+ name?: string;
27
31
  /**
28
32
  *
29
33
  */
@@ -39,6 +39,7 @@ function CalendarAttendeeDtoFromJSONTyped(json, ignoreDiscriminator) {
39
39
  return {
40
40
  'userId': json['userId'] == null ? undefined : json['userId'],
41
41
  'email': json['email'] == null ? undefined : json['email'],
42
+ 'name': json['name'] == null ? undefined : json['name'],
42
43
  'status': (0, ParticipantStatus_1.ParticipantStatusFromJSON)(json['status']),
43
44
  'role': (0, ParticipantRole_1.ParticipantRoleFromJSON)(json['role']),
44
45
  };
@@ -54,6 +55,7 @@ function CalendarAttendeeDtoToJSONTyped(value, ignoreDiscriminator) {
54
55
  return {
55
56
  'userId': value['userId'],
56
57
  'email': value['email'],
58
+ 'name': value['name'],
57
59
  'role': (0, ParticipantRole_1.ParticipantRoleToJSON)(value['role']),
58
60
  };
59
61
  }
@@ -41,6 +41,14 @@ export interface CalendarEntryDto {
41
41
  * location of the event
42
42
  */
43
43
  location?: string;
44
+ /**
45
+ * latitude of the location (WGS 84); not part of the iCal data
46
+ */
47
+ locationLat?: number;
48
+ /**
49
+ * longitude of the location (WGS 84); not part of the iCal data
50
+ */
51
+ locationLong?: number;
44
52
  /**
45
53
  *
46
54
  */
@@ -57,6 +65,26 @@ export interface CalendarEntryDto {
57
65
  *
58
66
  */
59
67
  attendees?: Array<CalendarAttendeeDto>;
68
+ /**
69
+ * Date of last modification
70
+ */
71
+ readonly modificationTime?: Date;
72
+ /**
73
+ * repeat rule of the entry as RRULE value of RFC 5545 without the "RRULE:" prefix. Supported frequencies are DAILY, WEEKLY, MONTHLY and YEARLY; UNTIL and COUNT must not be combined. Null for entries that do not repeat.
74
+ */
75
+ recurrenceRule?: string;
76
+ /**
77
+ * original start dates (in the time zone of the time span) of the occurrences deleted from the series (EXDATE)
78
+ */
79
+ readonly excludedOccurrences?: Array<string>;
80
+ /**
81
+ * id of the repeating entry whose single occurrence this entry replaces
82
+ */
83
+ readonly recurrenceMasterId?: string;
84
+ /**
85
+ * original start date (RECURRENCE-ID, in the time zone of the time span) of the occurrence of a repeating entry; null for entries that do not repeat
86
+ */
87
+ readonly originalStartDate?: string;
60
88
  }
61
89
  /**
62
90
  * Check if a given object implements the CalendarEntryDto interface.
@@ -65,4 +93,4 @@ export declare function instanceOfCalendarEntryDto(value: object): value is Cale
65
93
  export declare function CalendarEntryDtoFromJSON(json: any): CalendarEntryDto;
66
94
  export declare function CalendarEntryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarEntryDto;
67
95
  export declare function CalendarEntryDtoToJSON(json: any): CalendarEntryDto;
68
- export declare function CalendarEntryDtoToJSONTyped(value?: CalendarEntryDto | null, ignoreDiscriminator?: boolean): any;
96
+ export declare function CalendarEntryDtoToJSONTyped(value?: Omit<CalendarEntryDto, 'modificationTime' | 'excludedOccurrences' | 'recurrenceMasterId' | 'originalStartDate'> | null, ignoreDiscriminator?: boolean): any;
@@ -17,6 +17,7 @@ exports.CalendarEntryDtoFromJSON = CalendarEntryDtoFromJSON;
17
17
  exports.CalendarEntryDtoFromJSONTyped = CalendarEntryDtoFromJSONTyped;
18
18
  exports.CalendarEntryDtoToJSON = CalendarEntryDtoToJSON;
19
19
  exports.CalendarEntryDtoToJSONTyped = CalendarEntryDtoToJSONTyped;
20
+ var runtime_1 = require("../runtime");
20
21
  var CalendarAttendeeDto_1 = require("./CalendarAttendeeDto");
21
22
  var ApprovalStatusEnum_1 = require("./ApprovalStatusEnum");
22
23
  var TimeSpanDto_1 = require("./TimeSpanDto");
@@ -46,10 +47,17 @@ function CalendarEntryDtoFromJSONTyped(json, ignoreDiscriminator) {
46
47
  'summary': json['summary'],
47
48
  'description': json['description'] == null ? undefined : json['description'],
48
49
  'location': json['location'] == null ? undefined : json['location'],
50
+ 'locationLat': json['locationLat'] == null ? undefined : json['locationLat'],
51
+ 'locationLong': json['locationLong'] == null ? undefined : json['locationLong'],
49
52
  'userId': json['userId'],
50
53
  'timeSpan': json['timeSpan'] == null ? undefined : (0, TimeSpanDto_1.TimeSpanDtoFromJSON)(json['timeSpan']),
51
54
  'approvalStatus': json['approvalStatus'] == null ? undefined : (0, ApprovalStatusEnum_1.ApprovalStatusEnumFromJSON)(json['approvalStatus']),
52
55
  'attendees': json['attendees'] == null ? undefined : (json['attendees'].map(CalendarAttendeeDto_1.CalendarAttendeeDtoFromJSON)),
56
+ 'modificationTime': json['modificationTime'] == null ? undefined : ((0, runtime_1.parseDateTime)(json['modificationTime'])),
57
+ 'recurrenceRule': json['recurrenceRule'] == null ? undefined : json['recurrenceRule'],
58
+ 'excludedOccurrences': json['excludedOccurrences'] == null ? undefined : json['excludedOccurrences'],
59
+ 'recurrenceMasterId': json['recurrenceMasterId'] == null ? undefined : json['recurrenceMasterId'],
60
+ 'originalStartDate': json['originalStartDate'] == null ? undefined : json['originalStartDate'],
53
61
  };
54
62
  }
55
63
  function CalendarEntryDtoToJSON(json) {
@@ -67,9 +75,12 @@ function CalendarEntryDtoToJSONTyped(value, ignoreDiscriminator) {
67
75
  'summary': value['summary'],
68
76
  'description': value['description'],
69
77
  'location': value['location'],
78
+ 'locationLat': value['locationLat'],
79
+ 'locationLong': value['locationLong'],
70
80
  'userId': value['userId'],
71
81
  'timeSpan': (0, TimeSpanDto_1.TimeSpanDtoToJSON)(value['timeSpan']),
72
82
  'approvalStatus': (0, ApprovalStatusEnum_1.ApprovalStatusEnumToJSON)(value['approvalStatus']),
73
83
  'attendees': value['attendees'] == null ? undefined : (value['attendees'].map(CalendarAttendeeDto_1.CalendarAttendeeDtoToJSON)),
84
+ 'recurrenceRule': value['recurrenceRule'],
74
85
  };
75
86
  }
@@ -22,6 +22,10 @@ export interface CalendarEntryTypeDto {
22
22
  *
23
23
  */
24
24
  version?: number;
25
+ /**
26
+ * maintained by the application; users can neither create, change nor delete such a type
27
+ */
28
+ readonly managed?: boolean;
25
29
  /**
26
30
  *
27
31
  */
@@ -62,6 +66,10 @@ export interface CalendarEntryTypeDto {
62
66
  * key of a customer attribute a customer needs to book a slot of this type
63
67
  */
64
68
  requiredCustomerAttributeId?: string;
69
+ /**
70
+ * entries of this type are created by the application only; users can neither create entries of this type nor assign it to an entry, and on existing entries they can only change the time span, summary, description, location and attendees, or delete them
71
+ */
72
+ noCreate?: boolean;
65
73
  }
66
74
  /**
67
75
  * Check if a given object implements the CalendarEntryTypeDto interface.
@@ -70,4 +78,4 @@ export declare function instanceOfCalendarEntryTypeDto(value: object): value is
70
78
  export declare function CalendarEntryTypeDtoFromJSON(json: any): CalendarEntryTypeDto;
71
79
  export declare function CalendarEntryTypeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarEntryTypeDto;
72
80
  export declare function CalendarEntryTypeDtoToJSON(json: any): CalendarEntryTypeDto;
73
- export declare function CalendarEntryTypeDtoToJSONTyped(value?: CalendarEntryTypeDto | null, ignoreDiscriminator?: boolean): any;
81
+ export declare function CalendarEntryTypeDtoToJSONTyped(value?: Omit<CalendarEntryTypeDto, 'managed'> | null, ignoreDiscriminator?: boolean): any;
@@ -43,6 +43,7 @@ function CalendarEntryTypeDtoFromJSONTyped(json, ignoreDiscriminator) {
43
43
  return {
44
44
  'id': json['id'] == null ? undefined : json['id'],
45
45
  'version': json['version'] == null ? undefined : json['version'],
46
+ 'managed': json['managed'] == null ? undefined : json['managed'],
46
47
  'acronym': json['acronym'],
47
48
  'name': json['name'],
48
49
  'description': json['description'] == null ? undefined : json['description'],
@@ -53,6 +54,7 @@ function CalendarEntryTypeDtoFromJSONTyped(json, ignoreDiscriminator) {
53
54
  'bookable': json['bookable'] == null ? undefined : json['bookable'],
54
55
  'requiresAppointmentLocation': json['requiresAppointmentLocation'] == null ? undefined : json['requiresAppointmentLocation'],
55
56
  'requiredCustomerAttributeId': json['requiredCustomerAttributeId'] == null ? undefined : json['requiredCustomerAttributeId'],
57
+ 'noCreate': json['noCreate'] == null ? undefined : json['noCreate'],
56
58
  };
57
59
  }
58
60
  function CalendarEntryTypeDtoToJSON(json) {
@@ -76,5 +78,6 @@ function CalendarEntryTypeDtoToJSONTyped(value, ignoreDiscriminator) {
76
78
  'bookable': value['bookable'],
77
79
  'requiresAppointmentLocation': value['requiresAppointmentLocation'],
78
80
  'requiredCustomerAttributeId': value['requiredCustomerAttributeId'],
81
+ 'noCreate': value['noCreate'],
79
82
  };
80
83
  }
@@ -0,0 +1,34 @@
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 { AddressDto } from './AddressDto';
12
+ /**
13
+ * an address of a customer with a label that tells the addresses apart
14
+ * @export
15
+ * @interface CustomerAddressDto
16
+ */
17
+ export interface CustomerAddressDto {
18
+ /**
19
+ *
20
+ */
21
+ label: string;
22
+ /**
23
+ *
24
+ */
25
+ address: AddressDto;
26
+ }
27
+ /**
28
+ * Check if a given object implements the CustomerAddressDto interface.
29
+ */
30
+ export declare function instanceOfCustomerAddressDto(value: object): value is CustomerAddressDto;
31
+ export declare function CustomerAddressDtoFromJSON(json: any): CustomerAddressDto;
32
+ export declare function CustomerAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerAddressDto;
33
+ export declare function CustomerAddressDtoToJSON(json: any): CustomerAddressDto;
34
+ export declare function CustomerAddressDtoToJSONTyped(value?: CustomerAddressDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfCustomerAddressDto = instanceOfCustomerAddressDto;
16
+ exports.CustomerAddressDtoFromJSON = CustomerAddressDtoFromJSON;
17
+ exports.CustomerAddressDtoFromJSONTyped = CustomerAddressDtoFromJSONTyped;
18
+ exports.CustomerAddressDtoToJSON = CustomerAddressDtoToJSON;
19
+ exports.CustomerAddressDtoToJSONTyped = CustomerAddressDtoToJSONTyped;
20
+ var AddressDto_1 = require("./AddressDto");
21
+ /**
22
+ * Check if a given object implements the CustomerAddressDto interface.
23
+ */
24
+ function instanceOfCustomerAddressDto(value) {
25
+ if (!('label' in value) || value['label'] === undefined)
26
+ return false;
27
+ if (!('address' in value) || value['address'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CustomerAddressDtoFromJSON(json) {
32
+ return CustomerAddressDtoFromJSONTyped(json, false);
33
+ }
34
+ function CustomerAddressDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'label': json['label'],
40
+ 'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
41
+ };
42
+ }
43
+ function CustomerAddressDtoToJSON(json) {
44
+ return CustomerAddressDtoToJSONTyped(json, false);
45
+ }
46
+ function CustomerAddressDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'label': value['label'],
53
+ 'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
54
+ };
55
+ }
@@ -9,6 +9,7 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import type { AddressDto } from './AddressDto';
12
+ import type { CustomerAddressDto } from './CustomerAddressDto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -71,6 +72,10 @@ export interface CustomerDto {
71
72
  *
72
73
  */
73
74
  shippingAddress?: AddressDto;
75
+ /**
76
+ * further addresses of the customer, e.g. the places of appointments
77
+ */
78
+ addresses?: Array<CustomerAddressDto>;
74
79
  /**
75
80
  *
76
81
  */
@@ -79,6 +84,10 @@ export interface CustomerDto {
79
84
  *
80
85
  */
81
86
  readonly deleted?: boolean;
87
+ /**
88
+ * Date of last modification
89
+ */
90
+ readonly modificationTime?: Date;
82
91
  /**
83
92
  *
84
93
  */
@@ -103,4 +112,4 @@ export declare function instanceOfCustomerDto(value: object): value is CustomerD
103
112
  export declare function CustomerDtoFromJSON(json: any): CustomerDto;
104
113
  export declare function CustomerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerDto;
105
114
  export declare function CustomerDtoToJSON(json: any): CustomerDto;
106
- export declare function CustomerDtoToJSONTyped(value?: Omit<CustomerDto, 'id' | 'version' | 'deleted'> | null, ignoreDiscriminator?: boolean): any;
115
+ export declare function CustomerDtoToJSONTyped(value?: Omit<CustomerDto, 'id' | 'version' | 'deleted' | 'modificationTime'> | null, ignoreDiscriminator?: boolean): any;
@@ -18,7 +18,9 @@ exports.CustomerDtoFromJSON = CustomerDtoFromJSON;
18
18
  exports.CustomerDtoFromJSONTyped = CustomerDtoFromJSONTyped;
19
19
  exports.CustomerDtoToJSON = CustomerDtoToJSON;
20
20
  exports.CustomerDtoToJSONTyped = CustomerDtoToJSONTyped;
21
+ var runtime_1 = require("../runtime");
21
22
  var AddressDto_1 = require("./AddressDto");
23
+ var CustomerAddressDto_1 = require("./CustomerAddressDto");
22
24
  /**
23
25
  * @export
24
26
  */
@@ -58,8 +60,10 @@ function CustomerDtoFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'invoiceEmail': json['invoiceEmail'] == null ? undefined : json['invoiceEmail'],
59
61
  'invoiceAddress': json['invoiceAddress'] == null ? undefined : (0, AddressDto_1.AddressDtoFromJSON)(json['invoiceAddress']),
60
62
  'shippingAddress': json['shippingAddress'] == null ? undefined : (0, AddressDto_1.AddressDtoFromJSON)(json['shippingAddress']),
63
+ 'addresses': json['addresses'] == null ? undefined : (json['addresses'].map(CustomerAddressDto_1.CustomerAddressDtoFromJSON)),
61
64
  'legalEntity': json['legalEntity'],
62
65
  'deleted': json['deleted'] == null ? undefined : json['deleted'],
66
+ 'modificationTime': json['modificationTime'] == null ? undefined : ((0, runtime_1.parseDateTime)(json['modificationTime'])),
63
67
  'attributeTypeId': json['attributeTypeId'] == null ? undefined : json['attributeTypeId'],
64
68
  'typeAttributes': json['typeAttributes'] == null ? undefined : json['typeAttributes'],
65
69
  };
@@ -85,6 +89,7 @@ function CustomerDtoToJSONTyped(value, ignoreDiscriminator) {
85
89
  'invoiceEmail': value['invoiceEmail'],
86
90
  'invoiceAddress': (0, AddressDto_1.AddressDtoToJSON)(value['invoiceAddress']),
87
91
  'shippingAddress': (0, AddressDto_1.AddressDtoToJSON)(value['shippingAddress']),
92
+ 'addresses': value['addresses'] == null ? undefined : (value['addresses'].map(CustomerAddressDto_1.CustomerAddressDtoToJSON)),
88
93
  'legalEntity': value['legalEntity'],
89
94
  'attributeTypeId': value['attributeTypeId'],
90
95
  'typeAttributes': value['typeAttributes'],
@@ -0,0 +1,34 @@
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 { CalendarEntryTypeDto } from './CalendarEntryTypeDto';
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DavCalendarDto
16
+ */
17
+ export interface DavCalendarDto {
18
+ /**
19
+ *
20
+ */
21
+ type: CalendarEntryTypeDto;
22
+ /**
23
+ * Sync token of a calendar. It only changes when a resource of the calendar changes. Changes are requested with the syncToken query parameter; changes may be returned again, but none is lost.
24
+ */
25
+ syncToken: number;
26
+ }
27
+ /**
28
+ * Check if a given object implements the DavCalendarDto interface.
29
+ */
30
+ export declare function instanceOfDavCalendarDto(value: object): value is DavCalendarDto;
31
+ export declare function DavCalendarDtoFromJSON(json: any): DavCalendarDto;
32
+ export declare function DavCalendarDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DavCalendarDto;
33
+ export declare function DavCalendarDtoToJSON(json: any): DavCalendarDto;
34
+ export declare function DavCalendarDtoToJSONTyped(value?: DavCalendarDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfDavCalendarDto = instanceOfDavCalendarDto;
16
+ exports.DavCalendarDtoFromJSON = DavCalendarDtoFromJSON;
17
+ exports.DavCalendarDtoFromJSONTyped = DavCalendarDtoFromJSONTyped;
18
+ exports.DavCalendarDtoToJSON = DavCalendarDtoToJSON;
19
+ exports.DavCalendarDtoToJSONTyped = DavCalendarDtoToJSONTyped;
20
+ var CalendarEntryTypeDto_1 = require("./CalendarEntryTypeDto");
21
+ /**
22
+ * Check if a given object implements the DavCalendarDto interface.
23
+ */
24
+ function instanceOfDavCalendarDto(value) {
25
+ if (!('type' in value) || value['type'] === undefined)
26
+ return false;
27
+ if (!('syncToken' in value) || value['syncToken'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function DavCalendarDtoFromJSON(json) {
32
+ return DavCalendarDtoFromJSONTyped(json, false);
33
+ }
34
+ function DavCalendarDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'type': (0, CalendarEntryTypeDto_1.CalendarEntryTypeDtoFromJSON)(json['type']),
40
+ 'syncToken': json['syncToken'],
41
+ };
42
+ }
43
+ function DavCalendarDtoToJSON(json) {
44
+ return DavCalendarDtoToJSONTyped(json, false);
45
+ }
46
+ function DavCalendarDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'type': (0, CalendarEntryTypeDto_1.CalendarEntryTypeDtoToJSON)(value['type']),
53
+ 'syncToken': value['syncToken'],
54
+ };
55
+ }
@@ -0,0 +1,46 @@
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 { CalendarEntryDto } from './CalendarEntryDto';
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DavCalendarResourceDto
16
+ */
17
+ export interface DavCalendarResourceDto {
18
+ /**
19
+ * name (last path segment of the href) of the resource in the calendar: the one the client chose when it created the resource, otherwise the uid followed by ".ics"
20
+ */
21
+ name: string;
22
+ /**
23
+ * iCal UID of the resource, shared by a series and its changed occurrences
24
+ */
25
+ uid: string;
26
+ /**
27
+ * whether the resource left the calendar (deleted, moved to another type, user no longer owner or attendee)
28
+ */
29
+ deleted: boolean;
30
+ /**
31
+ * changes with every change of the resource, usable as ETag
32
+ */
33
+ changeSeq: number;
34
+ /**
35
+ * the calendar entries of the resource the user owns or attends: the series, whose excludedOccurrences also contain the original starts of the changed occurrences that are not part of this calendar for the user, and the changed occurrences that are. A resource may consist of changed occurrences only, if the user takes part in them but not in the series. Empty for a deleted resource. Attendees that are users carry the email of the user next to their userId.
36
+ */
37
+ entries: Array<CalendarEntryDto>;
38
+ }
39
+ /**
40
+ * Check if a given object implements the DavCalendarResourceDto interface.
41
+ */
42
+ export declare function instanceOfDavCalendarResourceDto(value: object): value is DavCalendarResourceDto;
43
+ export declare function DavCalendarResourceDtoFromJSON(json: any): DavCalendarResourceDto;
44
+ export declare function DavCalendarResourceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DavCalendarResourceDto;
45
+ export declare function DavCalendarResourceDtoToJSON(json: any): DavCalendarResourceDto;
46
+ export declare function DavCalendarResourceDtoToJSONTyped(value?: DavCalendarResourceDto | null, ignoreDiscriminator?: boolean): any;