@emilgroup/customer-sdk-node 1.9.1 → 1.11.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 (57) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +58 -2
  3. package/api/authentication-api.ts +601 -0
  4. package/api/claims-api.ts +158 -40
  5. package/api/customers-api.ts +72 -1770
  6. package/api/documents-api.ts +442 -0
  7. package/api/invites-api.ts +443 -0
  8. package/api/invoices-api.ts +245 -0
  9. package/api/payments-api.ts +291 -0
  10. package/api/policies-api.ts +16 -16
  11. package/api/products-api.ts +16 -16
  12. package/api.ts +11 -0
  13. package/dist/api/authentication-api.d.ts +332 -0
  14. package/dist/api/authentication-api.js +604 -0
  15. package/dist/api/claims-api.d.ts +106 -31
  16. package/dist/api/claims-api.js +84 -36
  17. package/dist/api/customers-api.d.ts +0 -954
  18. package/dist/api/customers-api.js +20 -1381
  19. package/dist/api/documents-api.d.ts +262 -0
  20. package/dist/api/documents-api.js +417 -0
  21. package/dist/api/invites-api.d.ts +248 -0
  22. package/dist/api/invites-api.js +456 -0
  23. package/dist/api/invoices-api.d.ts +150 -0
  24. package/dist/api/invoices-api.js +253 -0
  25. package/dist/api/payments-api.d.ts +171 -0
  26. package/dist/api/payments-api.js +312 -0
  27. package/dist/api/policies-api.d.ts +16 -16
  28. package/dist/api/policies-api.js +12 -12
  29. package/dist/api/products-api.d.ts +16 -16
  30. package/dist/api/products-api.js +12 -12
  31. package/dist/api.d.ts +7 -1
  32. package/dist/api.js +6 -0
  33. package/dist/models/account-class.d.ts +31 -1
  34. package/dist/models/account-class.js +11 -0
  35. package/dist/models/claim-class.d.ts +132 -0
  36. package/dist/models/claim-class.js +15 -0
  37. package/dist/models/create-account-request-dto.d.ts +39 -9
  38. package/dist/models/create-account-request-dto.js +11 -1
  39. package/dist/models/create-customer-claim-response-class.d.ts +25 -0
  40. package/dist/models/create-customer-claim-response-class.js +15 -0
  41. package/dist/models/index.d.ts +4 -0
  42. package/dist/models/index.js +4 -0
  43. package/dist/models/list-customer-claims-response-class.d.ts +31 -0
  44. package/dist/models/list-customer-claims-response-class.js +15 -0
  45. package/dist/models/update-account-request-dto.d.ts +17 -0
  46. package/dist/models/update-account-request-dto.js +5 -1
  47. package/dist/models/update-customer-claim-response-class.d.ts +25 -0
  48. package/dist/models/update-customer-claim-response-class.js +15 -0
  49. package/models/account-class.ts +35 -1
  50. package/models/claim-class.ts +138 -0
  51. package/models/create-account-request-dto.ts +41 -9
  52. package/models/create-customer-claim-response-class.ts +31 -0
  53. package/models/index.ts +4 -0
  54. package/models/list-customer-claims-response-class.ts +37 -0
  55. package/models/update-account-request-dto.ts +18 -0
  56. package/models/update-customer-claim-response-class.ts +31 -0
  57. package/package.json +1 -1
@@ -39,6 +39,12 @@ export interface AccountClass {
39
39
  * @memberof AccountClass
40
40
  */
41
41
  'accountNumber': string;
42
+ /**
43
+ * The account\'s title.
44
+ * @type {string}
45
+ * @memberof AccountClass
46
+ */
47
+ 'title': AccountClassTitleEnum;
42
48
  /**
43
49
  * The account\'s first name.
44
50
  * @type {string}
@@ -92,13 +98,25 @@ export interface AccountClass {
92
98
  * @type {string}
93
99
  * @memberof AccountClass
94
100
  */
95
- 'birthDate': string;
101
+ 'birthDate'?: string;
96
102
  /**
97
103
  * The account\'s phone number.
98
104
  * @type {string}
99
105
  * @memberof AccountClass
100
106
  */
101
107
  'phone': string;
108
+ /**
109
+ * The type of account, default to person
110
+ * @type {string}
111
+ * @memberof AccountClass
112
+ */
113
+ 'type': AccountClassTypeEnum;
114
+ /**
115
+ * The company name of account, required for account type org
116
+ * @type {string}
117
+ * @memberof AccountClass
118
+ */
119
+ 'companyName'?: string;
102
120
  /**
103
121
  * The account\'s version.
104
122
  * @type {number}
@@ -137,3 +155,19 @@ export interface AccountClass {
137
155
  'customFields': object;
138
156
  }
139
157
 
158
+ export const AccountClassTitleEnum = {
159
+ Empty: '',
160
+ Dr: 'Dr.',
161
+ DrMed: 'Dr. med.',
162
+ ProfDrMed: 'Prof. Dr. med.'
163
+ } as const;
164
+
165
+ export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
166
+ export const AccountClassTypeEnum = {
167
+ Person: 'person',
168
+ Org: 'org'
169
+ } as const;
170
+
171
+ export type AccountClassTypeEnum = typeof AccountClassTypeEnum[keyof typeof AccountClassTypeEnum];
172
+
173
+
@@ -0,0 +1,138 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
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
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ClaimClass
21
+ */
22
+ export interface ClaimClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof ClaimClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof ClaimClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * Title of the claim
37
+ * @type {string}
38
+ * @memberof ClaimClass
39
+ */
40
+ 'title': string;
41
+ /**
42
+ * Unique identifier of the account that the claim belongs to
43
+ * @type {string}
44
+ * @memberof ClaimClass
45
+ */
46
+ 'accountCode': string;
47
+ /**
48
+ * Field for the policy code that the claim belongs to
49
+ * @type {string}
50
+ * @memberof ClaimClass
51
+ */
52
+ 'policyCode': string;
53
+ /**
54
+ * The policy number that the claim belongs to
55
+ * @type {string}
56
+ * @memberof ClaimClass
57
+ */
58
+ 'policyNumber': string;
59
+ /**
60
+ * Unique identifier of the product that the claim is made against
61
+ * @type {number}
62
+ * @memberof ClaimClass
63
+ */
64
+ 'productId': number;
65
+ /**
66
+ * Unique identifier for the specific version of the product
67
+ * @type {number}
68
+ * @memberof ClaimClass
69
+ */
70
+ 'productVersionId': number;
71
+ /**
72
+ * The name of the product
73
+ * @type {string}
74
+ * @memberof ClaimClass
75
+ */
76
+ 'productName': string;
77
+ /**
78
+ * The insured object identifier that the claim is made for
79
+ * @type {number}
80
+ * @memberof ClaimClass
81
+ */
82
+ 'insuredObjectId': number;
83
+ /**
84
+ * claim description
85
+ * @type {string}
86
+ * @memberof ClaimClass
87
+ */
88
+ 'description': string;
89
+ /**
90
+ * A claim adjuster investigates insurance claims by interviewing the claimant and witnesses, consulting police and hospital records, and inspecting property damage to determine the extent of the insurance company\'s liability.
91
+ * @type {string}
92
+ * @memberof ClaimClass
93
+ */
94
+ 'adjuster': string;
95
+ /**
96
+ * A claim reporter is the person who is responsible for submitting this claim to the platform. A claim reporter is not necessarily the same as the policy holder.
97
+ * @type {string}
98
+ * @memberof ClaimClass
99
+ */
100
+ 'reporter': string;
101
+ /**
102
+ * Contact phone number
103
+ * @type {string}
104
+ * @memberof ClaimClass
105
+ */
106
+ 'contactPhone': string;
107
+ /**
108
+ * Contact email address
109
+ * @type {string}
110
+ * @memberof ClaimClass
111
+ */
112
+ 'contactEmail': string;
113
+ /**
114
+ * The date on which the actual damage happened
115
+ * @type {string}
116
+ * @memberof ClaimClass
117
+ */
118
+ 'damageDate': string;
119
+ /**
120
+ * The date on which the damage was reported
121
+ * @type {string}
122
+ * @memberof ClaimClass
123
+ */
124
+ 'notificationDate': string;
125
+ /**
126
+ * Time at which the object was created.
127
+ * @type {string}
128
+ * @memberof ClaimClass
129
+ */
130
+ 'createdAt': string;
131
+ /**
132
+ * Time at which the object was updated.
133
+ * @type {string}
134
+ * @memberof ClaimClass
135
+ */
136
+ 'updatedAt': string;
137
+ }
138
+
@@ -21,55 +21,73 @@
21
21
  */
22
22
  export interface CreateAccountRequestDto {
23
23
  /**
24
- * The account\'s first name.
24
+ * Optional field to enter the honorific title you want to be called.
25
+ * @type {string}
26
+ * @memberof CreateAccountRequestDto
27
+ */
28
+ 'title'?: CreateAccountRequestDtoTitleEnum;
29
+ /**
30
+ * The account\'s holder first name.
25
31
  * @type {string}
26
32
  * @memberof CreateAccountRequestDto
27
33
  */
28
34
  'firstName': string;
29
35
  /**
30
- * The account\'s last name.
36
+ * The account\'s holder last name.
31
37
  * @type {string}
32
38
  * @memberof CreateAccountRequestDto
33
39
  */
34
40
  'lastName': string;
35
41
  /**
36
- * The account\'s gender.
42
+ * The account\'s holder gender.
37
43
  * @type {string}
38
44
  * @memberof CreateAccountRequestDto
39
45
  */
40
46
  'gender': CreateAccountRequestDtoGenderEnum;
41
47
  /**
42
- * The account\'s street name.
48
+ * The account\'s holder street name.
43
49
  * @type {string}
44
50
  * @memberof CreateAccountRequestDto
45
51
  */
46
52
  'street': string;
47
53
  /**
48
- * The account\'s ZIP or postal code.
54
+ * The account\'s holder ZIP or postal code.
49
55
  * @type {string}
50
56
  * @memberof CreateAccountRequestDto
51
57
  */
52
58
  'zipCode': string;
53
59
  /**
54
- * The account\'s city, district, suburb, town, or village.
60
+ * The account\'s holder city, district, suburb, town, or village.
55
61
  * @type {string}
56
62
  * @memberof CreateAccountRequestDto
57
63
  */
58
64
  'city': string;
59
65
  /**
60
- * The account\'s house number.
66
+ * The account\'s holder house number.
61
67
  * @type {string}
62
68
  * @memberof CreateAccountRequestDto
63
69
  */
64
70
  'houseNumber': string;
71
+ /**
72
+ * Optional field to enter the type of the account holder.
73
+ * @type {string}
74
+ * @memberof CreateAccountRequestDto
75
+ */
76
+ 'type'?: CreateAccountRequestDtoTypeEnum;
65
77
  /**
66
78
  * Account\'s birth date.
67
79
  * @type {string}
68
80
  * @memberof CreateAccountRequestDto
69
81
  */
70
- 'birthDate': string;
82
+ 'birthDate'?: string;
71
83
  /**
72
- * The account\'s phone number.
84
+ * The account\'s holder company name (Required for account of type org).
85
+ * @type {string}
86
+ * @memberof CreateAccountRequestDto
87
+ */
88
+ 'companyName'?: string;
89
+ /**
90
+ * The account\'s holder phone number.
73
91
  * @type {string}
74
92
  * @memberof CreateAccountRequestDto
75
93
  */
@@ -94,6 +112,14 @@ export interface CreateAccountRequestDto {
94
112
  'customFields'?: object;
95
113
  }
96
114
 
115
+ export const CreateAccountRequestDtoTitleEnum = {
116
+ Empty: '',
117
+ Dr: 'Dr.',
118
+ DrMed: 'Dr. med.',
119
+ ProfDrMed: 'Prof. Dr. med.'
120
+ } as const;
121
+
122
+ export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
97
123
  export const CreateAccountRequestDtoGenderEnum = {
98
124
  Male: 'male',
99
125
  Female: 'female',
@@ -101,5 +127,11 @@ export const CreateAccountRequestDtoGenderEnum = {
101
127
  } as const;
102
128
 
103
129
  export type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
130
+ export const CreateAccountRequestDtoTypeEnum = {
131
+ Person: 'person',
132
+ Org: 'org'
133
+ } as const;
134
+
135
+ export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
104
136
 
105
137
 
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
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
+
15
+
16
+ import { ClaimClass } from './claim-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCustomerClaimResponseClass
22
+ */
23
+ export interface CreateCustomerClaimResponseClass {
24
+ /**
25
+ * Claim
26
+ * @type {ClaimClass}
27
+ * @memberof CreateCustomerClaimResponseClass
28
+ */
29
+ 'claim': ClaimClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  export * from './account-class';
2
2
  export * from './account-policy-class';
3
3
  export * from './authentication-result-class';
4
+ export * from './claim-class';
4
5
  export * from './complete-braintree-payment-setup-request-dto';
5
6
  export * from './complete-payment-setup-psp-request';
6
7
  export * from './complete-payment-setup-response-class';
7
8
  export * from './complete-stripe-payment-setup-request-dto';
8
9
  export * from './create-account-request-dto';
9
10
  export * from './create-customer-claim-request-dto';
11
+ export * from './create-customer-claim-response-class';
10
12
  export * from './create-customer-request-dto';
11
13
  export * from './create-customer-response-class';
12
14
  export * from './create-presigned-post-response-class';
@@ -28,6 +30,7 @@ export * from './invite-by-customer-response-class';
28
30
  export * from './invite-by-tenant-response-class';
29
31
  export * from './invite-class';
30
32
  export * from './invoice-class';
33
+ export * from './list-customer-claims-response-class';
31
34
  export * from './list-documents-response-class';
32
35
  export * from './list-invoices-response-class';
33
36
  export * from './list-policies-response-class';
@@ -50,6 +53,7 @@ export * from './terminate-customer-policy-response-class';
50
53
  export * from './timeslice-class';
51
54
  export * from './update-account-request-dto';
52
55
  export * from './update-customer-claim-request-dto';
56
+ export * from './update-customer-claim-response-class';
53
57
  export * from './update-customer-request-dto';
54
58
  export * from './update-customer-response-class';
55
59
  export * from './upload-customer-claim-documents-request-dto';
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
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
+
15
+
16
+ import { ClaimClass } from './claim-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListCustomerClaimsResponseClass
22
+ */
23
+ export interface ListCustomerClaimsResponseClass {
24
+ /**
25
+ * Claims list items
26
+ * @type {Array<ClaimClass>}
27
+ * @memberof ListCustomerClaimsResponseClass
28
+ */
29
+ 'items': Array<ClaimClass>;
30
+ /**
31
+ * Next page token
32
+ * @type {string}
33
+ * @memberof ListCustomerClaimsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -32,6 +32,12 @@ export interface UpdateAccountRequestDto {
32
32
  * @memberof UpdateAccountRequestDto
33
33
  */
34
34
  'lastName'?: string;
35
+ /**
36
+ * Optional field to enter the type of the account holder.
37
+ * @type {string}
38
+ * @memberof UpdateAccountRequestDto
39
+ */
40
+ 'type'?: UpdateAccountRequestDtoTypeEnum;
35
41
  /**
36
42
  * The account\'s email address. It is displayed alongside the account in the admin dashboard and can be useful for searching and tracking.
37
43
  * @type {string}
@@ -92,8 +98,20 @@ export interface UpdateAccountRequestDto {
92
98
  * @memberof UpdateAccountRequestDto
93
99
  */
94
100
  'customFields'?: object;
101
+ /**
102
+ * The account\'s holder company name (Required for account of type org).
103
+ * @type {string}
104
+ * @memberof UpdateAccountRequestDto
105
+ */
106
+ 'companyName'?: string;
95
107
  }
96
108
 
109
+ export const UpdateAccountRequestDtoTypeEnum = {
110
+ Person: 'person',
111
+ Org: 'org'
112
+ } as const;
113
+
114
+ export type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
97
115
  export const UpdateAccountRequestDtoGenderEnum = {
98
116
  Male: 'male',
99
117
  Female: 'female',
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
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
+
15
+
16
+ import { ClaimClass } from './claim-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateCustomerClaimResponseClass
22
+ */
23
+ export interface UpdateCustomerClaimResponseClass {
24
+ /**
25
+ * Claim
26
+ * @type {ClaimClass}
27
+ * @memberof UpdateCustomerClaimResponseClass
28
+ */
29
+ 'claim': ClaimClass;
30
+ }
31
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/customer-sdk-node",
3
- "version": "1.9.1",
3
+ "version": "1.11.0",
4
4
  "description": "OpenAPI client for @emilgroup/customer-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [