@emilgroup/customer-sdk-node 1.4.0 → 1.6.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/.openapi-generator/FILES +9 -1
- package/README.md +2 -2
- package/api/customers-api.ts +353 -0
- package/base.ts +56 -13
- package/dist/api/customers-api.d.ts +205 -0
- package/dist/api/customers-api.js +271 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +46 -8
- package/dist/models/account-class.d.ts +132 -0
- package/dist/models/{create-account-request-dto.js → account-class.js} +0 -6
- package/dist/models/create-customer-request-dto.d.ts +0 -7
- package/dist/models/create-customer-response-class.d.ts +3 -2
- package/dist/models/customer-class.d.ts +67 -0
- package/dist/models/customer-class.js +15 -0
- package/dist/models/customer-document-class.d.ts +99 -0
- package/dist/models/customer-document-class.js +36 -0
- package/dist/models/get-customer-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-customer-document-download-url-response-class.js +15 -0
- package/dist/models/get-customer-response-class.d.ts +3 -2
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/dist/models/invoice-class.d.ts +135 -0
- package/dist/models/invoice-class.js +28 -0
- package/dist/models/list-documents-response-class.d.ts +3 -2
- package/dist/models/list-invoices-response-class.d.ts +3 -2
- package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
- package/dist/models/shared-invoice-item-class.d.ts +102 -0
- package/dist/models/shared-invoice-item-class.js +15 -0
- package/dist/models/terminate-customer-policy-request-dto.d.ts +24 -0
- package/dist/models/terminate-customer-policy-request-dto.js +15 -0
- package/dist/models/terminate-customer-policy-response-class.d.ts +25 -0
- package/dist/models/terminate-customer-policy-response-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +10 -10
- package/dist/models/update-customer-response-class.d.ts +3 -2
- package/dist/models/withdraw-customer-policy-response-class.d.ts +25 -0
- package/dist/models/withdraw-customer-policy-response-class.js +15 -0
- package/models/account-class.ts +138 -0
- package/models/create-customer-request-dto.ts +0 -7
- package/models/create-customer-response-class.ts +3 -2
- package/models/customer-class.ts +73 -0
- package/models/customer-document-class.ts +108 -0
- package/models/get-customer-document-download-url-response-class.ts +30 -0
- package/models/get-customer-response-class.ts +3 -2
- package/models/index.ts +9 -1
- package/models/invoice-class.ts +145 -0
- package/models/list-documents-response-class.ts +3 -2
- package/models/list-invoices-response-class.ts +3 -2
- package/models/reset-password-by-customer-request-dto.ts +1 -1
- package/models/shared-invoice-item-class.ts +108 -0
- package/models/terminate-customer-policy-request-dto.ts +30 -0
- package/models/terminate-customer-policy-response-class.ts +31 -0
- package/models/update-account-request-dto.ts +10 -10
- package/models/update-customer-response-class.ts +3 -2
- package/models/withdraw-customer-policy-response-class.ts +31 -0
- package/package.json +1 -1
- package/dist/models/create-account-request-dto.d.ts +0 -102
- package/models/create-account-request-dto.ts +0 -111
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TerminateCustomerPolicyRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface TerminateCustomerPolicyRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Terminate from
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TerminateCustomerPolicyRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'from': string;
|
|
24
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -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
|
+
*
|
|
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 { PolicyClass } from './policy-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TerminateCustomerPolicyResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface TerminateCustomerPolicyResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Policy
|
|
21
|
+
* @type {PolicyClass}
|
|
22
|
+
* @memberof TerminateCustomerPolicyResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'policy': PolicyClass;
|
|
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
|
+
*
|
|
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 });
|
|
@@ -20,61 +20,61 @@ export interface UpdateAccountRequestDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateAccountRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'firstName'
|
|
23
|
+
'firstName'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* The account\'s last name.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateAccountRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'lastName'
|
|
29
|
+
'lastName'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* The account\'s email address. It is displayed alongside the account in the admin dashboard and can be useful for searching and tracking.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateAccountRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'email'
|
|
35
|
+
'email'?: string;
|
|
36
36
|
/**
|
|
37
37
|
* The account\'s gender.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof UpdateAccountRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'gender'
|
|
41
|
+
'gender'?: UpdateAccountRequestDtoGenderEnum;
|
|
42
42
|
/**
|
|
43
43
|
* The account\'s street name.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UpdateAccountRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'street'
|
|
47
|
+
'street'?: string;
|
|
48
48
|
/**
|
|
49
49
|
* The account\'s ZIP or postal code.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof UpdateAccountRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'zipCode'
|
|
53
|
+
'zipCode'?: string;
|
|
54
54
|
/**
|
|
55
55
|
* The account\'s city, district, suburb, town, or village.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof UpdateAccountRequestDto
|
|
58
58
|
*/
|
|
59
|
-
'city'
|
|
59
|
+
'city'?: string;
|
|
60
60
|
/**
|
|
61
61
|
* The account\'s house number.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof UpdateAccountRequestDto
|
|
64
64
|
*/
|
|
65
|
-
'houseNumber'
|
|
65
|
+
'houseNumber'?: string;
|
|
66
66
|
/**
|
|
67
67
|
* Account\'s birth date.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof UpdateAccountRequestDto
|
|
70
70
|
*/
|
|
71
|
-
'birthDate'
|
|
71
|
+
'birthDate'?: string;
|
|
72
72
|
/**
|
|
73
73
|
* The account\'s phone number.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof UpdateAccountRequestDto
|
|
76
76
|
*/
|
|
77
|
-
'phone'
|
|
77
|
+
'phone'?: string;
|
|
78
78
|
/**
|
|
79
79
|
* Optional field to enter extra information.
|
|
80
80
|
* @type {object}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CustomerClass } from './customer-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,8 +18,8 @@
|
|
|
17
18
|
export interface UpdateCustomerResponseClass {
|
|
18
19
|
/**
|
|
19
20
|
* Customer object
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {CustomerClass}
|
|
21
22
|
* @memberof UpdateCustomerResponseClass
|
|
22
23
|
*/
|
|
23
|
-
'customer':
|
|
24
|
+
'customer': CustomerClass;
|
|
24
25
|
}
|
|
@@ -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
|
+
*
|
|
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 { PolicyClass } from './policy-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WithdrawCustomerPolicyResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface WithdrawCustomerPolicyResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Policy
|
|
21
|
+
* @type {PolicyClass}
|
|
22
|
+
* @memberof WithdrawCustomerPolicyResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'policy': PolicyClass;
|
|
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
|
+
*
|
|
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 });
|
|
@@ -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
|
+
*
|
|
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 AccountClass
|
|
21
|
+
*/
|
|
22
|
+
export interface AccountClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof AccountClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the object.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AccountClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* Optional field in order to use a specific account number.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AccountClass
|
|
39
|
+
*/
|
|
40
|
+
'accountNumber': string;
|
|
41
|
+
/**
|
|
42
|
+
* The account\'s first name.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AccountClass
|
|
45
|
+
*/
|
|
46
|
+
'firstName': string;
|
|
47
|
+
/**
|
|
48
|
+
* The account\'s last name.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof AccountClass
|
|
51
|
+
*/
|
|
52
|
+
'lastName': string;
|
|
53
|
+
/**
|
|
54
|
+
* The account\'s email address, It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof AccountClass
|
|
57
|
+
*/
|
|
58
|
+
'email': string;
|
|
59
|
+
/**
|
|
60
|
+
* The account\'s gender.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof AccountClass
|
|
63
|
+
*/
|
|
64
|
+
'gender': string;
|
|
65
|
+
/**
|
|
66
|
+
* The account\'s street name.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof AccountClass
|
|
69
|
+
*/
|
|
70
|
+
'street': string;
|
|
71
|
+
/**
|
|
72
|
+
* The account\'s house number.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof AccountClass
|
|
75
|
+
*/
|
|
76
|
+
'houseNumber': string;
|
|
77
|
+
/**
|
|
78
|
+
* The account\'s ZIP or postal code
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof AccountClass
|
|
81
|
+
*/
|
|
82
|
+
'zipCode': string;
|
|
83
|
+
/**
|
|
84
|
+
* The account\'s city, district, suburb, town, or village.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof AccountClass
|
|
87
|
+
*/
|
|
88
|
+
'city': string;
|
|
89
|
+
/**
|
|
90
|
+
* The account\'s date of birth
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof AccountClass
|
|
93
|
+
*/
|
|
94
|
+
'birthDate': string;
|
|
95
|
+
/**
|
|
96
|
+
* The account\'s phone number.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof AccountClass
|
|
99
|
+
*/
|
|
100
|
+
'phone': string;
|
|
101
|
+
/**
|
|
102
|
+
* The account\'s version.
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof AccountClass
|
|
105
|
+
*/
|
|
106
|
+
'version': number;
|
|
107
|
+
/**
|
|
108
|
+
* Time at which the object was created.
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof AccountClass
|
|
111
|
+
*/
|
|
112
|
+
'createdAt': string;
|
|
113
|
+
/**
|
|
114
|
+
* Time at which the object was updated.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof AccountClass
|
|
117
|
+
*/
|
|
118
|
+
'updatedAt': string;
|
|
119
|
+
/**
|
|
120
|
+
* Policies linked to the account.
|
|
121
|
+
* @type {Array<string>}
|
|
122
|
+
* @memberof AccountClass
|
|
123
|
+
*/
|
|
124
|
+
'policies': Array<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Optional field contain extra information
|
|
127
|
+
* @type {object}
|
|
128
|
+
* @memberof AccountClass
|
|
129
|
+
*/
|
|
130
|
+
'metadata': object;
|
|
131
|
+
/**
|
|
132
|
+
* Optional field contain custom fields
|
|
133
|
+
* @type {object}
|
|
134
|
+
* @memberof AccountClass
|
|
135
|
+
*/
|
|
136
|
+
'customFields': object;
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
*
|
|
@@ -39,11 +38,5 @@ export interface CreateCustomerRequestDto {
|
|
|
39
38
|
* @memberof CreateCustomerRequestDto
|
|
40
39
|
*/
|
|
41
40
|
'isEulaAccepted': boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Optional account data
|
|
44
|
-
* @type {CreateAccountRequestDto}
|
|
45
|
-
* @memberof CreateCustomerRequestDto
|
|
46
|
-
*/
|
|
47
|
-
'account'?: CreateAccountRequestDto;
|
|
48
41
|
}
|
|
49
42
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { CustomerClass } from './customer-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -22,9 +23,9 @@
|
|
|
22
23
|
export interface CreateCustomerResponseClass {
|
|
23
24
|
/**
|
|
24
25
|
* Customer object
|
|
25
|
-
* @type {
|
|
26
|
+
* @type {CustomerClass}
|
|
26
27
|
* @memberof CreateCustomerResponseClass
|
|
27
28
|
*/
|
|
28
|
-
'customer':
|
|
29
|
+
'customer': CustomerClass;
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
*
|
|
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 { AccountClass } from './account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CustomerClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CustomerClass {
|
|
24
|
+
/**
|
|
25
|
+
* Customer account information
|
|
26
|
+
* @type {AccountClass}
|
|
27
|
+
* @memberof CustomerClass
|
|
28
|
+
*/
|
|
29
|
+
'account': AccountClass;
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the object.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomerClass
|
|
34
|
+
*/
|
|
35
|
+
'code': string;
|
|
36
|
+
/**
|
|
37
|
+
* Internal unique identifier for the object. Use code instead.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CustomerClass
|
|
40
|
+
*/
|
|
41
|
+
'id': number;
|
|
42
|
+
/**
|
|
43
|
+
* Customer status
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomerClass
|
|
46
|
+
*/
|
|
47
|
+
'status': string;
|
|
48
|
+
/**
|
|
49
|
+
* Customer unique identifier
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CustomerClass
|
|
52
|
+
*/
|
|
53
|
+
'sub': string;
|
|
54
|
+
/**
|
|
55
|
+
* Tenants short name in EIS
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CustomerClass
|
|
58
|
+
*/
|
|
59
|
+
'tenantSlug': string;
|
|
60
|
+
/**
|
|
61
|
+
* Time at which the object was created.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CustomerClass
|
|
64
|
+
*/
|
|
65
|
+
'createdAt': string;
|
|
66
|
+
/**
|
|
67
|
+
* Time at which the object was updated.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CustomerClass
|
|
70
|
+
*/
|
|
71
|
+
'updatedAt': string;
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
*
|
|
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 CustomerDocumentClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CustomerDocumentClass {
|
|
23
|
+
/**
|
|
24
|
+
* Document code
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CustomerDocumentClass
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Template slug
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CustomerDocumentClass
|
|
33
|
+
*/
|
|
34
|
+
'templateSlug': string;
|
|
35
|
+
/**
|
|
36
|
+
* Document entity type
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CustomerDocumentClass
|
|
39
|
+
*/
|
|
40
|
+
'entityType': string;
|
|
41
|
+
/**
|
|
42
|
+
* Policy code
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CustomerDocumentClass
|
|
45
|
+
*/
|
|
46
|
+
'policyCode': string;
|
|
47
|
+
/**
|
|
48
|
+
* Account code
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CustomerDocumentClass
|
|
51
|
+
*/
|
|
52
|
+
'accountCode': string;
|
|
53
|
+
/**
|
|
54
|
+
* Document content type
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CustomerDocumentClass
|
|
57
|
+
*/
|
|
58
|
+
'contentType': CustomerDocumentClassContentTypeEnum;
|
|
59
|
+
/**
|
|
60
|
+
* Entity id
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof CustomerDocumentClass
|
|
63
|
+
*/
|
|
64
|
+
'entityId': number;
|
|
65
|
+
/**
|
|
66
|
+
* Optional file name
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CustomerDocumentClass
|
|
69
|
+
*/
|
|
70
|
+
'filename': string;
|
|
71
|
+
/**
|
|
72
|
+
* Document description
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CustomerDocumentClass
|
|
75
|
+
*/
|
|
76
|
+
'description': string;
|
|
77
|
+
/**
|
|
78
|
+
* Document created at
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CustomerDocumentClass
|
|
81
|
+
*/
|
|
82
|
+
'createdAt': string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const CustomerDocumentClassContentTypeEnum = {
|
|
86
|
+
Pdf: 'pdf',
|
|
87
|
+
Jpg: 'jpg',
|
|
88
|
+
Png: 'png',
|
|
89
|
+
Gz: 'gz',
|
|
90
|
+
Csv: 'csv',
|
|
91
|
+
Doc: 'doc',
|
|
92
|
+
Docx: 'docx',
|
|
93
|
+
Html: 'html',
|
|
94
|
+
Json: 'json',
|
|
95
|
+
Xml: 'xml',
|
|
96
|
+
Txt: 'txt',
|
|
97
|
+
Zip: 'zip',
|
|
98
|
+
Tar: 'tar',
|
|
99
|
+
Rar: 'rar',
|
|
100
|
+
Mp4: 'MP4',
|
|
101
|
+
Mov: 'MOV',
|
|
102
|
+
Wmv: 'WMV',
|
|
103
|
+
Avi: 'AVI'
|
|
104
|
+
} as const;
|
|
105
|
+
|
|
106
|
+
export type CustomerDocumentClassContentTypeEnum = typeof CustomerDocumentClassContentTypeEnum[keyof typeof CustomerDocumentClassContentTypeEnum];
|
|
107
|
+
|
|
108
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
*
|
|
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 GetCustomerDocumentDownloadUrlResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface GetCustomerDocumentDownloadUrlResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Pre-signed Url
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GetCustomerDocumentDownloadUrlResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'url': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { CustomerClass } from './customer-class';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -22,9 +23,9 @@
|
|
|
22
23
|
export interface GetCustomerResponseClass {
|
|
23
24
|
/**
|
|
24
25
|
* Customer object
|
|
25
|
-
* @type {
|
|
26
|
+
* @type {CustomerClass}
|
|
26
27
|
* @memberof GetCustomerResponseClass
|
|
27
28
|
*/
|
|
28
|
-
'customer':
|
|
29
|
+
'customer': CustomerClass;
|
|
29
30
|
}
|
|
30
31
|
|
package/models/index.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export * from './account-class';
|
|
1
2
|
export * from './authentication-result-class';
|
|
2
|
-
export * from './create-account-request-dto';
|
|
3
3
|
export * from './create-customer-request-dto';
|
|
4
4
|
export * from './create-customer-response-class';
|
|
5
|
+
export * from './customer-class';
|
|
6
|
+
export * from './customer-document-class';
|
|
5
7
|
export * from './forgot-password-request-dto';
|
|
8
|
+
export * from './get-customer-document-download-url-response-class';
|
|
6
9
|
export * from './get-customer-response-class';
|
|
7
10
|
export * from './get-policy-response-class';
|
|
8
11
|
export * from './initiate-auth-request-dto';
|
|
@@ -11,6 +14,7 @@ export * from './invite-by-customer-request-dto';
|
|
|
11
14
|
export * from './invite-by-customer-response-class';
|
|
12
15
|
export * from './invite-by-tenant-response-class';
|
|
13
16
|
export * from './invite-class';
|
|
17
|
+
export * from './invoice-class';
|
|
14
18
|
export * from './list-documents-response-class';
|
|
15
19
|
export * from './list-invoices-response-class';
|
|
16
20
|
export * from './list-policies-response-class';
|
|
@@ -25,8 +29,12 @@ export * from './request-policy-update-response-class';
|
|
|
25
29
|
export * from './reset-password-by-customer-request-dto';
|
|
26
30
|
export * from './respond-to-auth-challenge-class';
|
|
27
31
|
export * from './respond-to-auth-challenge-request-dto';
|
|
32
|
+
export * from './shared-invoice-item-class';
|
|
33
|
+
export * from './terminate-customer-policy-request-dto';
|
|
34
|
+
export * from './terminate-customer-policy-response-class';
|
|
28
35
|
export * from './timeslice-class';
|
|
29
36
|
export * from './update-account-request-dto';
|
|
30
37
|
export * from './update-customer-request-dto';
|
|
31
38
|
export * from './update-customer-response-class';
|
|
32
39
|
export * from './verify-customer-invite-response-class';
|
|
40
|
+
export * from './withdraw-customer-policy-response-class';
|