@emilgroup/customer-sdk-node 1.25.1 → 1.26.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.
- package/README.md +2 -2
- package/models/claim-class.ts +14 -8
- package/models/create-customer-claim-request-dto.ts +9 -9
- package/models/lead-class.ts +6 -0
- package/models/update-customer-claim-request-dto.ts +9 -15
- package/package.json +2 -2
- package/dist/api/authentication-api.d.ts +0 -332
- package/dist/api/authentication-api.js +0 -604
- package/dist/api/claims-api.d.ts +0 -431
- package/dist/api/claims-api.js +0 -670
- package/dist/api/customers-api.d.ts +0 -271
- package/dist/api/customers-api.js +0 -425
- package/dist/api/default-api.d.ts +0 -66
- package/dist/api/default-api.js +0 -200
- package/dist/api/documents-api.d.ts +0 -262
- package/dist/api/documents-api.js +0 -417
- package/dist/api/invites-api.d.ts +0 -249
- package/dist/api/invites-api.js +0 -456
- package/dist/api/invoices-api.d.ts +0 -150
- package/dist/api/invoices-api.js +0 -253
- package/dist/api/leads-api.d.ts +0 -365
- package/dist/api/leads-api.js +0 -571
- package/dist/api/payments-api.d.ts +0 -162
- package/dist/api/payments-api.js +0 -306
- package/dist/api/policies-api.d.ts +0 -578
- package/dist/api/policies-api.js +0 -808
- package/dist/api/products-api.d.ts +0 -215
- package/dist/api/products-api.js +0 -341
- package/dist/api.d.ts +0 -22
- package/dist/api.js +0 -40
- package/dist/base.d.ts +0 -82
- package/dist/base.js +0 -502
- package/dist/common.d.ts +0 -66
- package/dist/common.js +0 -244
- package/dist/configuration.d.ts +0 -98
- package/dist/configuration.js +0 -45
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/account-class.d.ts +0 -169
- package/dist/models/account-class.js +0 -26
- package/dist/models/account-policy-class.d.ts +0 -30
- package/dist/models/account-policy-class.js +0 -15
- package/dist/models/authentication-result-class.d.ts +0 -30
- package/dist/models/authentication-result-class.js +0 -15
- package/dist/models/claim-class.d.ts +0 -156
- package/dist/models/claim-class.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-psp-request.d.ts +0 -32
- package/dist/models/complete-payment-setup-psp-request.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -24
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-account-request-dto.d.ts +0 -132
- package/dist/models/create-account-request-dto.js +0 -31
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-customer-claim-request-dto.d.ts +0 -114
- package/dist/models/create-customer-claim-request-dto.js +0 -15
- package/dist/models/create-customer-claim-response-class.d.ts +0 -25
- package/dist/models/create-customer-claim-response-class.js +0 -15
- package/dist/models/create-customer-request-dto.d.ts +0 -43
- package/dist/models/create-customer-request-dto.js +0 -15
- package/dist/models/create-customer-response-class.d.ts +0 -25
- package/dist/models/create-customer-response-class.js +0 -15
- package/dist/models/create-lead-request-dto.d.ts +0 -83
- package/dist/models/create-lead-request-dto.js +0 -15
- package/dist/models/create-lead-response-class.d.ts +0 -25
- package/dist/models/create-lead-response-class.js +0 -15
- package/dist/models/create-payment-method-request-dto.d.ts +0 -31
- package/dist/models/create-payment-method-request-dto.js +0 -15
- package/dist/models/create-policy-request-dto.d.ts +0 -56
- package/dist/models/create-policy-request-dto.js +0 -15
- package/dist/models/create-presigned-post-response-class.d.ts +0 -30
- package/dist/models/create-presigned-post-response-class.js +0 -15
- package/dist/models/customer-class.d.ts +0 -73
- package/dist/models/customer-class.js +0 -15
- package/dist/models/customer-document-class.d.ts +0 -99
- package/dist/models/customer-document-class.js +0 -36
- package/dist/models/customer-product-class.d.ts +0 -54
- package/dist/models/customer-product-class.js +0 -15
- package/dist/models/forgot-password-request-dto.d.ts +0 -30
- package/dist/models/forgot-password-request-dto.js +0 -15
- package/dist/models/get-customer-claim-response-class.d.ts +0 -25
- package/dist/models/get-customer-claim-response-class.js +0 -15
- package/dist/models/get-customer-document-download-url-response-class.d.ts +0 -24
- package/dist/models/get-customer-document-download-url-response-class.js +0 -15
- package/dist/models/get-customer-response-class.d.ts +0 -25
- package/dist/models/get-customer-response-class.js +0 -15
- package/dist/models/get-lead-response-class.d.ts +0 -25
- package/dist/models/get-lead-response-class.js +0 -15
- package/dist/models/get-policy-response-class.d.ts +0 -25
- package/dist/models/get-policy-response-class.js +0 -15
- package/dist/models/get-product-response-class.d.ts +0 -25
- package/dist/models/get-product-response-class.js +0 -15
- package/dist/models/grpc-update-lead-request-dto.d.ts +0 -50
- package/dist/models/grpc-update-lead-request-dto.js +0 -15
- package/dist/models/index.d.ts +0 -85
- package/dist/models/index.js +0 -101
- package/dist/models/initiate-auth-request-dto.d.ts +0 -36
- package/dist/models/initiate-auth-request-dto.js +0 -15
- package/dist/models/initiate-auth-response-class.d.ts +0 -43
- package/dist/models/initiate-auth-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- package/dist/models/invite-by-customer-request-dto.d.ts +0 -30
- package/dist/models/invite-by-customer-request-dto.js +0 -15
- package/dist/models/invite-by-customer-response-class.d.ts +0 -25
- package/dist/models/invite-by-customer-response-class.js +0 -15
- package/dist/models/invite-by-tenant-request-dto.d.ts +0 -24
- package/dist/models/invite-by-tenant-request-dto.js +0 -15
- package/dist/models/invite-by-tenant-response-class.d.ts +0 -25
- package/dist/models/invite-by-tenant-response-class.js +0 -15
- package/dist/models/invite-class.d.ts +0 -54
- package/dist/models/invite-class.js +0 -15
- package/dist/models/invoice-class.d.ts +0 -148
- package/dist/models/invoice-class.js +0 -28
- package/dist/models/lead-bank-account-class.d.ts +0 -30
- package/dist/models/lead-bank-account-class.js +0 -15
- package/dist/models/lead-class.d.ts +0 -121
- package/dist/models/lead-class.js +0 -15
- package/dist/models/list-customer-claims-response-class.d.ts +0 -31
- package/dist/models/list-customer-claims-response-class.js +0 -15
- package/dist/models/list-documents-response-class.d.ts +0 -31
- package/dist/models/list-documents-response-class.js +0 -15
- package/dist/models/list-invoices-response-class.d.ts +0 -31
- package/dist/models/list-invoices-response-class.js +0 -15
- package/dist/models/list-leads-response-class.d.ts +0 -43
- package/dist/models/list-leads-response-class.js +0 -15
- package/dist/models/list-policies-response-class.d.ts +0 -43
- package/dist/models/list-policies-response-class.js +0 -15
- package/dist/models/list-products-response-class.d.ts +0 -31
- package/dist/models/list-products-response-class.js +0 -15
- package/dist/models/policy-class.d.ts +0 -80
- package/dist/models/policy-class.js +0 -15
- package/dist/models/policy-object-class.d.ts +0 -54
- package/dist/models/policy-object-class.js +0 -15
- package/dist/models/policy-object-dto.d.ts +0 -42
- package/dist/models/policy-object-dto.js +0 -15
- package/dist/models/policy-premium-class.d.ts +0 -43
- package/dist/models/policy-premium-class.js +0 -15
- package/dist/models/policy-premium-item-class.d.ts +0 -36
- package/dist/models/policy-premium-item-class.js +0 -15
- package/dist/models/policy-version-class.d.ts +0 -49
- package/dist/models/policy-version-class.js +0 -15
- package/dist/models/premium-override-dto.d.ts +0 -55
- package/dist/models/premium-override-dto.js +0 -27
- package/dist/models/premium-override-request-class.d.ts +0 -25
- package/dist/models/premium-override-request-class.js +0 -15
- package/dist/models/premium-override-request-dto.d.ts +0 -25
- package/dist/models/premium-override-request-dto.js +0 -15
- package/dist/models/refresh-token-dto.d.ts +0 -30
- package/dist/models/refresh-token-dto.js +0 -15
- package/dist/models/request-policy-update-request-dto.d.ts +0 -43
- package/dist/models/request-policy-update-request-dto.js +0 -15
- package/dist/models/request-policy-update-response-class.d.ts +0 -25
- package/dist/models/request-policy-update-response-class.js +0 -15
- package/dist/models/reset-password-by-customer-request-dto.d.ts +0 -36
- package/dist/models/reset-password-by-customer-request-dto.js +0 -15
- package/dist/models/respond-to-auth-challenge-class.d.ts +0 -43
- package/dist/models/respond-to-auth-challenge-class.js +0 -15
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +0 -42
- package/dist/models/respond-to-auth-challenge-request-dto.js +0 -15
- package/dist/models/sepa-dto.d.ts +0 -30
- package/dist/models/sepa-dto.js +0 -15
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +0 -36
- package/dist/models/shared-customer-policy-object-request-dto.js +0 -15
- package/dist/models/shared-invoice-item-class.d.ts +0 -129
- package/dist/models/shared-invoice-item-class.js +0 -24
- package/dist/models/shared-invoice-status-class.d.ts +0 -47
- package/dist/models/shared-invoice-status-class.js +0 -20
- package/dist/models/terminate-customer-policy-request-dto.d.ts +0 -24
- package/dist/models/terminate-customer-policy-request-dto.js +0 -15
- package/dist/models/terminate-customer-policy-response-class.d.ts +0 -25
- package/dist/models/terminate-customer-policy-response-class.js +0 -15
- package/dist/models/timeslice-class.d.ts +0 -56
- package/dist/models/timeslice-class.js +0 -15
- package/dist/models/update-account-request-dto.d.ts +0 -113
- package/dist/models/update-account-request-dto.js +0 -25
- package/dist/models/update-customer-claim-request-dto.d.ts +0 -120
- package/dist/models/update-customer-claim-request-dto.js +0 -15
- package/dist/models/update-customer-claim-response-class.d.ts +0 -25
- package/dist/models/update-customer-claim-response-class.js +0 -15
- package/dist/models/update-customer-request-dto.d.ts +0 -31
- package/dist/models/update-customer-request-dto.js +0 -15
- package/dist/models/update-customer-response-class.d.ts +0 -25
- package/dist/models/update-customer-response-class.js +0 -15
- package/dist/models/update-lead-request-dto.d.ts +0 -44
- package/dist/models/update-lead-request-dto.js +0 -15
- package/dist/models/update-lead-response-class.d.ts +0 -25
- package/dist/models/update-lead-response-class.js +0 -15
- package/dist/models/upload-customer-claim-documents-request-dto.d.ts +0 -36
- package/dist/models/upload-customer-claim-documents-request-dto.js +0 -15
- package/dist/models/upload-customer-policy-documents-request-dto.d.ts +0 -47
- package/dist/models/upload-customer-policy-documents-request-dto.js +0 -20
- package/dist/models/uploaded-document-dto.d.ts +0 -24
- package/dist/models/uploaded-document-dto.js +0 -15
- package/dist/models/verify-customer-invite-response-class.d.ts +0 -36
- package/dist/models/verify-customer-invite-response-class.js +0 -15
- package/dist/models/withdraw-customer-policy-response-class.d.ts +0 -25
- package/dist/models/withdraw-customer-policy-response-class.js +0 -15
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.26.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.26.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/models/claim-class.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface ClaimClass {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof ClaimClass
|
|
39
39
|
*/
|
|
40
|
-
'title'
|
|
40
|
+
'title'?: string;
|
|
41
41
|
/**
|
|
42
42
|
* Unique number assigned to the claim.
|
|
43
43
|
* @type {string}
|
|
@@ -91,37 +91,37 @@ export interface ClaimClass {
|
|
|
91
91
|
* @type {number}
|
|
92
92
|
* @memberof ClaimClass
|
|
93
93
|
*/
|
|
94
|
-
'insuredObjectId'
|
|
94
|
+
'insuredObjectId'?: number;
|
|
95
95
|
/**
|
|
96
96
|
* claim description
|
|
97
97
|
* @type {string}
|
|
98
98
|
* @memberof ClaimClass
|
|
99
99
|
*/
|
|
100
|
-
'description'
|
|
100
|
+
'description'?: string;
|
|
101
101
|
/**
|
|
102
102
|
* 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.
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof ClaimClass
|
|
105
105
|
*/
|
|
106
|
-
'adjuster'
|
|
106
|
+
'adjuster'?: string;
|
|
107
107
|
/**
|
|
108
108
|
* 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.
|
|
109
109
|
* @type {string}
|
|
110
110
|
* @memberof ClaimClass
|
|
111
111
|
*/
|
|
112
|
-
'reporter'
|
|
112
|
+
'reporter'?: string;
|
|
113
113
|
/**
|
|
114
114
|
* Contact phone number
|
|
115
115
|
* @type {string}
|
|
116
116
|
* @memberof ClaimClass
|
|
117
117
|
*/
|
|
118
|
-
'contactPhone'
|
|
118
|
+
'contactPhone'?: string;
|
|
119
119
|
/**
|
|
120
120
|
* Contact email address
|
|
121
121
|
* @type {string}
|
|
122
122
|
* @memberof ClaimClass
|
|
123
123
|
*/
|
|
124
|
-
'contactEmail'
|
|
124
|
+
'contactEmail'?: string;
|
|
125
125
|
/**
|
|
126
126
|
* The date on which the actual damage happened
|
|
127
127
|
* @type {string}
|
|
@@ -134,6 +134,12 @@ export interface ClaimClass {
|
|
|
134
134
|
* @memberof ClaimClass
|
|
135
135
|
*/
|
|
136
136
|
'notificationDate': string;
|
|
137
|
+
/**
|
|
138
|
+
* Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.)
|
|
139
|
+
* @type {object}
|
|
140
|
+
* @memberof ClaimClass
|
|
141
|
+
*/
|
|
142
|
+
'customFields'?: object;
|
|
137
143
|
/**
|
|
138
144
|
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
139
145
|
* @type {string}
|
|
@@ -157,6 +163,6 @@ export interface ClaimClass {
|
|
|
157
163
|
* @type {string}
|
|
158
164
|
* @memberof ClaimClass
|
|
159
165
|
*/
|
|
160
|
-
'organizationName'
|
|
166
|
+
'organizationName'?: string;
|
|
161
167
|
}
|
|
162
168
|
|
|
@@ -25,7 +25,7 @@ export interface CreateCustomerClaimRequestDto {
|
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof CreateCustomerClaimRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'title'
|
|
28
|
+
'title'?: string;
|
|
29
29
|
/**
|
|
30
30
|
* Unique number assigned to the claim.
|
|
31
31
|
* @type {string}
|
|
@@ -37,43 +37,43 @@ export interface CreateCustomerClaimRequestDto {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreateCustomerClaimRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'policyNumber'
|
|
40
|
+
'policyNumber'?: string;
|
|
41
41
|
/**
|
|
42
42
|
* Field for the policy code that the claim belongs to.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof CreateCustomerClaimRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'policyCode'
|
|
46
|
+
'policyCode'?: string;
|
|
47
47
|
/**
|
|
48
48
|
* Unique identifier of the product that the claim is made against
|
|
49
49
|
* @type {number}
|
|
50
50
|
* @memberof CreateCustomerClaimRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'productId'
|
|
52
|
+
'productId'?: number;
|
|
53
53
|
/**
|
|
54
54
|
* Unique identifier for the specific version of the product
|
|
55
55
|
* @type {number}
|
|
56
56
|
* @memberof CreateCustomerClaimRequestDto
|
|
57
57
|
*/
|
|
58
|
-
'productVersionId'
|
|
58
|
+
'productVersionId'?: number;
|
|
59
59
|
/**
|
|
60
60
|
* The name of the product
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof CreateCustomerClaimRequestDto
|
|
63
63
|
*/
|
|
64
|
-
'productName'
|
|
64
|
+
'productName'?: string;
|
|
65
65
|
/**
|
|
66
66
|
* The unique identifier of the insured object that the claim is made for
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof CreateCustomerClaimRequestDto
|
|
69
69
|
*/
|
|
70
|
-
'insuredObjectId'
|
|
70
|
+
'insuredObjectId'?: number;
|
|
71
71
|
/**
|
|
72
72
|
* The claim\'s description in 5000 characters.
|
|
73
73
|
* @type {string}
|
|
74
74
|
* @memberof CreateCustomerClaimRequestDto
|
|
75
75
|
*/
|
|
76
|
-
'description'
|
|
76
|
+
'description'?: string;
|
|
77
77
|
/**
|
|
78
78
|
* The adjuster of the claim. 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.
|
|
79
79
|
* @type {string}
|
|
@@ -85,7 +85,7 @@ export interface CreateCustomerClaimRequestDto {
|
|
|
85
85
|
* @type {string}
|
|
86
86
|
* @memberof CreateCustomerClaimRequestDto
|
|
87
87
|
*/
|
|
88
|
-
'reporter'
|
|
88
|
+
'reporter'?: string;
|
|
89
89
|
/**
|
|
90
90
|
* The contact email of the policyholder.
|
|
91
91
|
* @type {string}
|
package/models/lead-class.ts
CHANGED
|
@@ -20,60 +20,54 @@
|
|
|
20
20
|
* @interface UpdateCustomerClaimRequestDto
|
|
21
21
|
*/
|
|
22
22
|
export interface UpdateCustomerClaimRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* Unique identifier of the claim that this object belongs to.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof UpdateCustomerClaimRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'code': string;
|
|
29
23
|
/**
|
|
30
24
|
* Field to enter the claim title.
|
|
31
25
|
* @type {string}
|
|
32
26
|
* @memberof UpdateCustomerClaimRequestDto
|
|
33
27
|
*/
|
|
34
|
-
'title'
|
|
28
|
+
'title'?: string;
|
|
35
29
|
/**
|
|
36
30
|
* Field for the policy number that the claim belongs to.
|
|
37
31
|
* @type {string}
|
|
38
32
|
* @memberof UpdateCustomerClaimRequestDto
|
|
39
33
|
*/
|
|
40
|
-
'policyNumber'
|
|
34
|
+
'policyNumber'?: string;
|
|
41
35
|
/**
|
|
42
36
|
* Field for the policy code that the claim belongs to.
|
|
43
37
|
* @type {string}
|
|
44
38
|
* @memberof UpdateCustomerClaimRequestDto
|
|
45
39
|
*/
|
|
46
|
-
'policyCode'
|
|
40
|
+
'policyCode'?: string;
|
|
47
41
|
/**
|
|
48
42
|
* Unique identifier of the product that the claim is made against
|
|
49
43
|
* @type {number}
|
|
50
44
|
* @memberof UpdateCustomerClaimRequestDto
|
|
51
45
|
*/
|
|
52
|
-
'productId'
|
|
46
|
+
'productId'?: number;
|
|
53
47
|
/**
|
|
54
48
|
* Unique identifier for the specific version of the product
|
|
55
49
|
* @type {number}
|
|
56
50
|
* @memberof UpdateCustomerClaimRequestDto
|
|
57
51
|
*/
|
|
58
|
-
'productVersionId'
|
|
52
|
+
'productVersionId'?: number;
|
|
59
53
|
/**
|
|
60
54
|
* The name of the product
|
|
61
55
|
* @type {string}
|
|
62
56
|
* @memberof UpdateCustomerClaimRequestDto
|
|
63
57
|
*/
|
|
64
|
-
'productName'
|
|
58
|
+
'productName'?: string;
|
|
65
59
|
/**
|
|
66
60
|
* The unique identifier of the insured object that the claim is made for
|
|
67
61
|
* @type {number}
|
|
68
62
|
* @memberof UpdateCustomerClaimRequestDto
|
|
69
63
|
*/
|
|
70
|
-
'insuredObjectId'
|
|
64
|
+
'insuredObjectId'?: number;
|
|
71
65
|
/**
|
|
72
66
|
* The claim\'s description in 5000 characters.
|
|
73
67
|
* @type {string}
|
|
74
68
|
* @memberof UpdateCustomerClaimRequestDto
|
|
75
69
|
*/
|
|
76
|
-
'description'
|
|
70
|
+
'description'?: string;
|
|
77
71
|
/**
|
|
78
72
|
* The adjuster of the claim. 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.
|
|
79
73
|
* @type {string}
|
|
@@ -85,7 +79,7 @@ export interface UpdateCustomerClaimRequestDto {
|
|
|
85
79
|
* @type {string}
|
|
86
80
|
* @memberof UpdateCustomerClaimRequestDto
|
|
87
81
|
*/
|
|
88
|
-
'reporter'
|
|
82
|
+
'reporter'?: string;
|
|
89
83
|
/**
|
|
90
84
|
* The contact email of the policyholder.
|
|
91
85
|
* @type {string}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/customer-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
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
|
}
|
|
@@ -1,332 +0,0 @@
|
|
|
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { ForgotPasswordRequestDto } from '../models';
|
|
16
|
-
import { InitiateAuthRequestDto } from '../models';
|
|
17
|
-
import { InitiateAuthResponseClass } from '../models';
|
|
18
|
-
import { RefreshTokenDto } from '../models';
|
|
19
|
-
import { ResetPasswordByCustomerRequestDto } from '../models';
|
|
20
|
-
import { RespondToAuthChallengeClass } from '../models';
|
|
21
|
-
import { RespondToAuthChallengeRequestDto } from '../models';
|
|
22
|
-
/**
|
|
23
|
-
* AuthenticationApi - axios parameter creator
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
27
|
-
/**
|
|
28
|
-
* Send a customer a reset-password token via email.
|
|
29
|
-
* @summary Forgot password by customer
|
|
30
|
-
* @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
|
|
31
|
-
* @param {*} [options] Override http request option.
|
|
32
|
-
* @throws {RequiredError}
|
|
33
|
-
*/
|
|
34
|
-
forgotPassword: (forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
-
/**
|
|
36
|
-
* Start auth process to get new access token, refresh token after successful login.
|
|
37
|
-
* @summary Initiate auth by customer
|
|
38
|
-
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
*/
|
|
42
|
-
initiateAuth: (initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
-
/**
|
|
44
|
-
* Get new access token, new refresh token.
|
|
45
|
-
* @summary Refresh token by customer
|
|
46
|
-
* @param {RefreshTokenDto} refreshTokenDto
|
|
47
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login.
|
|
48
|
-
* @param {*} [options] Override http request option.
|
|
49
|
-
* @throws {RequiredError}
|
|
50
|
-
*/
|
|
51
|
-
refreshToken: (refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
|
-
/**
|
|
53
|
-
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
54
|
-
* @summary Change password by customer
|
|
55
|
-
* @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
|
|
56
|
-
* @param {*} [options] Override http request option.
|
|
57
|
-
* @throws {RequiredError}
|
|
58
|
-
*/
|
|
59
|
-
resetPassword: (resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
|
-
/**
|
|
61
|
-
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
62
|
-
* @summary Respond to auth challenge
|
|
63
|
-
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
respondToAuthChallenge: (respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
|
-
/**
|
|
69
|
-
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
70
|
-
* @summary Verify a reset password token
|
|
71
|
-
* @param {string} resetToken reset password token
|
|
72
|
-
* @param {*} [options] Override http request option.
|
|
73
|
-
* @throws {RequiredError}
|
|
74
|
-
*/
|
|
75
|
-
verifyResetPasswordToken: (resetToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* AuthenticationApi - functional programming interface
|
|
79
|
-
* @export
|
|
80
|
-
*/
|
|
81
|
-
export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
82
|
-
/**
|
|
83
|
-
* Send a customer a reset-password token via email.
|
|
84
|
-
* @summary Forgot password by customer
|
|
85
|
-
* @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
|
|
86
|
-
* @param {*} [options] Override http request option.
|
|
87
|
-
* @throws {RequiredError}
|
|
88
|
-
*/
|
|
89
|
-
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
90
|
-
/**
|
|
91
|
-
* Start auth process to get new access token, refresh token after successful login.
|
|
92
|
-
* @summary Initiate auth by customer
|
|
93
|
-
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
94
|
-
* @param {*} [options] Override http request option.
|
|
95
|
-
* @throws {RequiredError}
|
|
96
|
-
*/
|
|
97
|
-
initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>>;
|
|
98
|
-
/**
|
|
99
|
-
* Get new access token, new refresh token.
|
|
100
|
-
* @summary Refresh token by customer
|
|
101
|
-
* @param {RefreshTokenDto} refreshTokenDto
|
|
102
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login.
|
|
103
|
-
* @param {*} [options] Override http request option.
|
|
104
|
-
* @throws {RequiredError}
|
|
105
|
-
*/
|
|
106
|
-
refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
107
|
-
/**
|
|
108
|
-
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
109
|
-
* @summary Change password by customer
|
|
110
|
-
* @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
|
|
111
|
-
* @param {*} [options] Override http request option.
|
|
112
|
-
* @throws {RequiredError}
|
|
113
|
-
*/
|
|
114
|
-
resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
115
|
-
/**
|
|
116
|
-
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
117
|
-
* @summary Respond to auth challenge
|
|
118
|
-
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
119
|
-
* @param {*} [options] Override http request option.
|
|
120
|
-
* @throws {RequiredError}
|
|
121
|
-
*/
|
|
122
|
-
respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RespondToAuthChallengeClass>>;
|
|
123
|
-
/**
|
|
124
|
-
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
125
|
-
* @summary Verify a reset password token
|
|
126
|
-
* @param {string} resetToken reset password token
|
|
127
|
-
* @param {*} [options] Override http request option.
|
|
128
|
-
* @throws {RequiredError}
|
|
129
|
-
*/
|
|
130
|
-
verifyResetPasswordToken(resetToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* AuthenticationApi - factory interface
|
|
134
|
-
* @export
|
|
135
|
-
*/
|
|
136
|
-
export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
137
|
-
/**
|
|
138
|
-
* Send a customer a reset-password token via email.
|
|
139
|
-
* @summary Forgot password by customer
|
|
140
|
-
* @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
|
|
141
|
-
* @param {*} [options] Override http request option.
|
|
142
|
-
* @throws {RequiredError}
|
|
143
|
-
*/
|
|
144
|
-
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void>;
|
|
145
|
-
/**
|
|
146
|
-
* Start auth process to get new access token, refresh token after successful login.
|
|
147
|
-
* @summary Initiate auth by customer
|
|
148
|
-
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
149
|
-
* @param {*} [options] Override http request option.
|
|
150
|
-
* @throws {RequiredError}
|
|
151
|
-
*/
|
|
152
|
-
initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: any): AxiosPromise<InitiateAuthResponseClass>;
|
|
153
|
-
/**
|
|
154
|
-
* Get new access token, new refresh token.
|
|
155
|
-
* @summary Refresh token by customer
|
|
156
|
-
* @param {RefreshTokenDto} refreshTokenDto
|
|
157
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login.
|
|
158
|
-
* @param {*} [options] Override http request option.
|
|
159
|
-
* @throws {RequiredError}
|
|
160
|
-
*/
|
|
161
|
-
refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void>;
|
|
162
|
-
/**
|
|
163
|
-
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
164
|
-
* @summary Change password by customer
|
|
165
|
-
* @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
|
|
166
|
-
* @param {*} [options] Override http request option.
|
|
167
|
-
* @throws {RequiredError}
|
|
168
|
-
*/
|
|
169
|
-
resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: any): AxiosPromise<void>;
|
|
170
|
-
/**
|
|
171
|
-
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
172
|
-
* @summary Respond to auth challenge
|
|
173
|
-
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
174
|
-
* @param {*} [options] Override http request option.
|
|
175
|
-
* @throws {RequiredError}
|
|
176
|
-
*/
|
|
177
|
-
respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: any): AxiosPromise<RespondToAuthChallengeClass>;
|
|
178
|
-
/**
|
|
179
|
-
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
180
|
-
* @summary Verify a reset password token
|
|
181
|
-
* @param {string} resetToken reset password token
|
|
182
|
-
* @param {*} [options] Override http request option.
|
|
183
|
-
* @throws {RequiredError}
|
|
184
|
-
*/
|
|
185
|
-
verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* Request parameters for forgotPassword operation in AuthenticationApi.
|
|
189
|
-
* @export
|
|
190
|
-
* @interface AuthenticationApiForgotPasswordRequest
|
|
191
|
-
*/
|
|
192
|
-
export interface AuthenticationApiForgotPasswordRequest {
|
|
193
|
-
/**
|
|
194
|
-
*
|
|
195
|
-
* @type {ForgotPasswordRequestDto}
|
|
196
|
-
* @memberof AuthenticationApiForgotPassword
|
|
197
|
-
*/
|
|
198
|
-
readonly forgotPasswordRequestDto: ForgotPasswordRequestDto;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Request parameters for initiateAuth operation in AuthenticationApi.
|
|
202
|
-
* @export
|
|
203
|
-
* @interface AuthenticationApiInitiateAuthRequest
|
|
204
|
-
*/
|
|
205
|
-
export interface AuthenticationApiInitiateAuthRequest {
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @type {InitiateAuthRequestDto}
|
|
209
|
-
* @memberof AuthenticationApiInitiateAuth
|
|
210
|
-
*/
|
|
211
|
-
readonly initiateAuthRequestDto: InitiateAuthRequestDto;
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Request parameters for refreshToken operation in AuthenticationApi.
|
|
215
|
-
* @export
|
|
216
|
-
* @interface AuthenticationApiRefreshTokenRequest
|
|
217
|
-
*/
|
|
218
|
-
export interface AuthenticationApiRefreshTokenRequest {
|
|
219
|
-
/**
|
|
220
|
-
*
|
|
221
|
-
* @type {RefreshTokenDto}
|
|
222
|
-
* @memberof AuthenticationApiRefreshToken
|
|
223
|
-
*/
|
|
224
|
-
readonly refreshTokenDto: RefreshTokenDto;
|
|
225
|
-
/**
|
|
226
|
-
* HTTP only cookie that was sent during login.
|
|
227
|
-
* @type {string}
|
|
228
|
-
* @memberof AuthenticationApiRefreshToken
|
|
229
|
-
*/
|
|
230
|
-
readonly cookie?: string;
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Request parameters for resetPassword operation in AuthenticationApi.
|
|
234
|
-
* @export
|
|
235
|
-
* @interface AuthenticationApiResetPasswordRequest
|
|
236
|
-
*/
|
|
237
|
-
export interface AuthenticationApiResetPasswordRequest {
|
|
238
|
-
/**
|
|
239
|
-
*
|
|
240
|
-
* @type {ResetPasswordByCustomerRequestDto}
|
|
241
|
-
* @memberof AuthenticationApiResetPassword
|
|
242
|
-
*/
|
|
243
|
-
readonly resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Request parameters for respondToAuthChallenge operation in AuthenticationApi.
|
|
247
|
-
* @export
|
|
248
|
-
* @interface AuthenticationApiRespondToAuthChallengeRequest
|
|
249
|
-
*/
|
|
250
|
-
export interface AuthenticationApiRespondToAuthChallengeRequest {
|
|
251
|
-
/**
|
|
252
|
-
*
|
|
253
|
-
* @type {RespondToAuthChallengeRequestDto}
|
|
254
|
-
* @memberof AuthenticationApiRespondToAuthChallenge
|
|
255
|
-
*/
|
|
256
|
-
readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Request parameters for verifyResetPasswordToken operation in AuthenticationApi.
|
|
260
|
-
* @export
|
|
261
|
-
* @interface AuthenticationApiVerifyResetPasswordTokenRequest
|
|
262
|
-
*/
|
|
263
|
-
export interface AuthenticationApiVerifyResetPasswordTokenRequest {
|
|
264
|
-
/**
|
|
265
|
-
* reset password token
|
|
266
|
-
* @type {string}
|
|
267
|
-
* @memberof AuthenticationApiVerifyResetPasswordToken
|
|
268
|
-
*/
|
|
269
|
-
readonly resetToken: string;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* AuthenticationApi - object-oriented interface
|
|
273
|
-
* @export
|
|
274
|
-
* @class AuthenticationApi
|
|
275
|
-
* @extends {BaseAPI}
|
|
276
|
-
*/
|
|
277
|
-
export declare class AuthenticationApi extends BaseAPI {
|
|
278
|
-
/**
|
|
279
|
-
* Send a customer a reset-password token via email.
|
|
280
|
-
* @summary Forgot password by customer
|
|
281
|
-
* @param {AuthenticationApiForgotPasswordRequest} requestParameters Request parameters.
|
|
282
|
-
* @param {*} [options] Override http request option.
|
|
283
|
-
* @throws {RequiredError}
|
|
284
|
-
* @memberof AuthenticationApi
|
|
285
|
-
*/
|
|
286
|
-
forgotPassword(requestParameters: AuthenticationApiForgotPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
287
|
-
/**
|
|
288
|
-
* Start auth process to get new access token, refresh token after successful login.
|
|
289
|
-
* @summary Initiate auth by customer
|
|
290
|
-
* @param {AuthenticationApiInitiateAuthRequest} requestParameters Request parameters.
|
|
291
|
-
* @param {*} [options] Override http request option.
|
|
292
|
-
* @throws {RequiredError}
|
|
293
|
-
* @memberof AuthenticationApi
|
|
294
|
-
*/
|
|
295
|
-
initiateAuth(requestParameters: AuthenticationApiInitiateAuthRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateAuthResponseClass, any>>;
|
|
296
|
-
/**
|
|
297
|
-
* Get new access token, new refresh token.
|
|
298
|
-
* @summary Refresh token by customer
|
|
299
|
-
* @param {AuthenticationApiRefreshTokenRequest} requestParameters Request parameters.
|
|
300
|
-
* @param {*} [options] Override http request option.
|
|
301
|
-
* @throws {RequiredError}
|
|
302
|
-
* @memberof AuthenticationApi
|
|
303
|
-
*/
|
|
304
|
-
refreshToken(requestParameters: AuthenticationApiRefreshTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
305
|
-
/**
|
|
306
|
-
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
307
|
-
* @summary Change password by customer
|
|
308
|
-
* @param {AuthenticationApiResetPasswordRequest} requestParameters Request parameters.
|
|
309
|
-
* @param {*} [options] Override http request option.
|
|
310
|
-
* @throws {RequiredError}
|
|
311
|
-
* @memberof AuthenticationApi
|
|
312
|
-
*/
|
|
313
|
-
resetPassword(requestParameters: AuthenticationApiResetPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
314
|
-
/**
|
|
315
|
-
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
316
|
-
* @summary Respond to auth challenge
|
|
317
|
-
* @param {AuthenticationApiRespondToAuthChallengeRequest} requestParameters Request parameters.
|
|
318
|
-
* @param {*} [options] Override http request option.
|
|
319
|
-
* @throws {RequiredError}
|
|
320
|
-
* @memberof AuthenticationApi
|
|
321
|
-
*/
|
|
322
|
-
respondToAuthChallenge(requestParameters: AuthenticationApiRespondToAuthChallengeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RespondToAuthChallengeClass, any>>;
|
|
323
|
-
/**
|
|
324
|
-
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
325
|
-
* @summary Verify a reset password token
|
|
326
|
-
* @param {AuthenticationApiVerifyResetPasswordTokenRequest} requestParameters Request parameters.
|
|
327
|
-
* @param {*} [options] Override http request option.
|
|
328
|
-
* @throws {RequiredError}
|
|
329
|
-
* @memberof AuthenticationApi
|
|
330
|
-
*/
|
|
331
|
-
verifyResetPasswordToken(requestParameters: AuthenticationApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
332
|
-
}
|