@emilgroup/customer-sdk-node 1.10.0 → 1.11.1
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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +58 -2
- package/api/claims-api.ts +142 -24
- package/api/payments-api.ts +20 -6
- package/api/policies-api.ts +4 -4
- package/api.ts +1 -0
- package/base.ts +1 -5
- package/dist/api/claims-api.d.ts +90 -15
- package/dist/api/claims-api.js +72 -24
- package/dist/api/payments-api.d.ts +12 -3
- package/dist/api/payments-api.js +12 -6
- package/dist/api/policies-api.d.ts +4 -4
- package/dist/api/policies-api.js +4 -4
- package/dist/api.d.ts +2 -1
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -4
- package/dist/base.js +3 -7
- package/dist/models/account-class.d.ts +7 -2
- package/dist/models/account-class.js +5 -1
- package/dist/models/claim-class.d.ts +132 -0
- package/dist/models/claim-class.js +15 -0
- package/dist/models/create-customer-claim-response-class.d.ts +25 -0
- package/dist/models/create-customer-claim-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-customer-claims-response-class.d.ts +31 -0
- package/dist/models/list-customer-claims-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +2 -2
- package/dist/models/update-account-request-dto.d.ts +17 -0
- package/dist/models/update-account-request-dto.js +5 -1
- package/dist/models/update-customer-claim-response-class.d.ts +25 -0
- package/dist/models/update-customer-claim-response-class.js +15 -0
- package/models/account-class.ts +8 -2
- package/models/claim-class.ts +138 -0
- package/models/create-customer-claim-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/list-customer-claims-response-class.ts +37 -0
- package/models/policy-class.ts +2 -2
- package/models/update-account-request-dto.ts +18 -0
- package/models/update-customer-claim-response-class.ts +31 -0
- package/package.json +2 -2
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdateAccountRequestDtoGenderEnum = void 0;
|
|
16
|
+
exports.UpdateAccountRequestDtoGenderEnum = exports.UpdateAccountRequestDtoTypeEnum = void 0;
|
|
17
|
+
exports.UpdateAccountRequestDtoTypeEnum = {
|
|
18
|
+
Person: 'person',
|
|
19
|
+
Org: 'org'
|
|
20
|
+
};
|
|
17
21
|
exports.UpdateAccountRequestDtoGenderEnum = {
|
|
18
22
|
Male: 'male',
|
|
19
23
|
Female: 'female',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ClaimClass } from './claim-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateCustomerClaimResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateCustomerClaimResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Claim
|
|
21
|
+
* @type {ClaimClass}
|
|
22
|
+
* @memberof UpdateCustomerClaimResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'claim': ClaimClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CustomerService
|
|
6
|
+
* The EMIL CustomerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/account-class.ts
CHANGED
|
@@ -110,13 +110,13 @@ export interface AccountClass {
|
|
|
110
110
|
* @type {string}
|
|
111
111
|
* @memberof AccountClass
|
|
112
112
|
*/
|
|
113
|
-
'type':
|
|
113
|
+
'type': AccountClassTypeEnum;
|
|
114
114
|
/**
|
|
115
115
|
* The company name of account, required for account type org
|
|
116
116
|
* @type {string}
|
|
117
117
|
* @memberof AccountClass
|
|
118
118
|
*/
|
|
119
|
-
'companyName'
|
|
119
|
+
'companyName'?: string;
|
|
120
120
|
/**
|
|
121
121
|
* The account\'s version.
|
|
122
122
|
* @type {number}
|
|
@@ -163,5 +163,11 @@ export const AccountClassTitleEnum = {
|
|
|
163
163
|
} as const;
|
|
164
164
|
|
|
165
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];
|
|
166
172
|
|
|
167
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
|
+
|
|
@@ -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
|
+
|
package/models/policy-class.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/customer-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|