@emilgroup/insurance-sdk-node 1.9.0 → 1.10.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 +6 -0
- package/README.md +2 -2
- package/api/lead-statuses-api.ts +479 -0
- package/api/product-versions-api.ts +34 -6
- package/api.ts +2 -0
- package/base.ts +3 -3
- package/dist/api/lead-statuses-api.d.ts +265 -0
- package/dist/api/lead-statuses-api.js +505 -0
- package/dist/api/product-versions-api.d.ts +21 -3
- package/dist/api/product-versions-api.js +18 -6
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -1
- package/dist/base.js +3 -3
- package/dist/models/create-lead-request-dto.d.ts +2 -9
- package/dist/models/create-lead-request-dto.js +0 -7
- package/dist/models/create-lead-status-request-dto.d.ts +30 -0
- package/dist/models/create-lead-status-request-dto.js +15 -0
- package/dist/models/create-lead-status-response-class.d.ts +25 -0
- package/dist/models/create-lead-status-response-class.js +15 -0
- package/dist/models/get-lead-status-response-class.d.ts +25 -0
- package/dist/models/get-lead-status-response-class.js +15 -0
- package/dist/models/get-product-version-request-dto.d.ts +12 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/lead-class.d.ts +8 -8
- package/dist/models/lead-class.js +0 -7
- package/dist/models/lead-status-class.d.ts +36 -0
- package/dist/models/lead-status-class.js +15 -0
- package/dist/models/list-lead-statuses-response-class.d.ts +31 -0
- package/dist/models/list-lead-statuses-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +12 -0
- package/dist/models/policy-object-class.d.ts +12 -0
- package/dist/models/policy-premium-class.d.ts +12 -0
- package/dist/models/policy-premium-item-class.d.ts +18 -0
- package/dist/models/premium-override-dto.d.ts +6 -0
- package/dist/models/store-product-factors-request-dto.d.ts +1 -1
- package/dist/models/timeslice-class.d.ts +2 -2
- package/dist/models/update-lead-request-dto.d.ts +7 -14
- package/dist/models/update-lead-request-dto.js +0 -7
- package/models/create-lead-request-dto.ts +2 -12
- package/models/create-lead-status-request-dto.ts +36 -0
- package/models/create-lead-status-response-class.ts +31 -0
- package/models/get-lead-status-response-class.ts +31 -0
- package/models/get-product-version-request-dto.ts +12 -0
- package/models/index.ts +5 -0
- package/models/lead-class.ts +8 -11
- package/models/lead-status-class.ts +42 -0
- package/models/list-lead-statuses-response-class.ts +37 -0
- package/models/policy-class.ts +12 -0
- package/models/policy-object-class.ts +12 -0
- package/models/policy-premium-class.ts +12 -0
- package/models/policy-premium-item-class.ts +18 -0
- package/models/premium-override-dto.ts +6 -0
- package/models/store-product-factors-request-dto.ts +1 -1
- package/models/timeslice-class.ts +2 -2
- package/models/update-lead-request-dto.ts +7 -17
- package/package.json +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService 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 { LeadStatusClass } from './lead-status-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateLeadStatusResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateLeadStatusResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Lead status
|
|
26
|
+
* @type {LeadStatusClass}
|
|
27
|
+
* @memberof CreateLeadStatusResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'leadStatus': LeadStatusClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService 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 { LeadStatusClass } from './lead-status-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetLeadStatusResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetLeadStatusResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Lead status
|
|
26
|
+
* @type {LeadStatusClass}
|
|
27
|
+
* @memberof GetLeadStatusResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'leadStatus': LeadStatusClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -26,5 +26,17 @@ export interface GetProductVersionRequestDto {
|
|
|
26
26
|
* @memberof GetProductVersionRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof GetProductVersionRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'filter'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof GetProductVersionRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'expand'?: string;
|
|
29
41
|
}
|
|
30
42
|
|
package/models/index.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './create-insured-object-request-dto';
|
|
|
9
9
|
export * from './create-insured-object-response-class';
|
|
10
10
|
export * from './create-lead-request-dto';
|
|
11
11
|
export * from './create-lead-response-class';
|
|
12
|
+
export * from './create-lead-status-request-dto';
|
|
13
|
+
export * from './create-lead-status-response-class';
|
|
12
14
|
export * from './create-policy-request-dto';
|
|
13
15
|
export * from './create-policy-response-class';
|
|
14
16
|
export * from './create-premium-formula-request-dto';
|
|
@@ -22,6 +24,7 @@ export * from './delete-request-dto';
|
|
|
22
24
|
export * from './delete-response-class';
|
|
23
25
|
export * from './get-insured-object-response-class';
|
|
24
26
|
export * from './get-lead-response-class';
|
|
27
|
+
export * from './get-lead-status-response-class';
|
|
25
28
|
export * from './get-policy-data-by-date-request-dto';
|
|
26
29
|
export * from './get-policy-request-dto';
|
|
27
30
|
export * from './get-policy-response-class';
|
|
@@ -45,8 +48,10 @@ export * from './insured-object-class';
|
|
|
45
48
|
export * from './insured-object-type-class';
|
|
46
49
|
export * from './lead-bank-account-class';
|
|
47
50
|
export * from './lead-class';
|
|
51
|
+
export * from './lead-status-class';
|
|
48
52
|
export * from './list-insured-object-types-response-class';
|
|
49
53
|
export * from './list-insured-objects-response-class';
|
|
54
|
+
export * from './list-lead-statuses-response-class';
|
|
50
55
|
export * from './list-leads-response-class';
|
|
51
56
|
export * from './list-policies-response-class';
|
|
52
57
|
export * from './list-premium-formulas-response-class';
|
package/models/lead-class.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
17
17
|
import { CreatePolicyRequestDto } from './create-policy-request-dto';
|
|
18
18
|
import { LeadBankAccountClass } from './lead-bank-account-class';
|
|
19
|
+
import { PolicyPremiumClass } from './policy-premium-class';
|
|
19
20
|
import { PremiumOverrideRequestClass } from './premium-override-request-class';
|
|
20
21
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
21
22
|
|
|
@@ -42,7 +43,7 @@ export interface LeadClass {
|
|
|
42
43
|
* @type {string}
|
|
43
44
|
* @memberof LeadClass
|
|
44
45
|
*/
|
|
45
|
-
'status':
|
|
46
|
+
'status': string;
|
|
46
47
|
/**
|
|
47
48
|
* Lead account.
|
|
48
49
|
* @type {CreateAccountRequestDto}
|
|
@@ -97,15 +98,11 @@ export interface LeadClass {
|
|
|
97
98
|
* @memberof LeadClass
|
|
98
99
|
*/
|
|
99
100
|
'updatedAt': string;
|
|
101
|
+
/**
|
|
102
|
+
* Premium calculation.
|
|
103
|
+
* @type {PolicyPremiumClass}
|
|
104
|
+
* @memberof LeadClass
|
|
105
|
+
*/
|
|
106
|
+
'premium': PolicyPremiumClass;
|
|
100
107
|
}
|
|
101
108
|
|
|
102
|
-
export const LeadClassStatusEnum = {
|
|
103
|
-
Created: 'created',
|
|
104
|
-
Approved: 'approved',
|
|
105
|
-
Activated: 'activated',
|
|
106
|
-
Declined: 'declined'
|
|
107
|
-
} as const;
|
|
108
|
-
|
|
109
|
-
export type LeadClassStatusEnum = typeof LeadClassStatusEnum[keyof typeof LeadClassStatusEnum];
|
|
110
|
-
|
|
111
|
-
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService 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 LeadStatusClass
|
|
21
|
+
*/
|
|
22
|
+
export interface LeadStatusClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof LeadStatusClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Status name
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof LeadStatusClass
|
|
33
|
+
*/
|
|
34
|
+
'name': string;
|
|
35
|
+
/**
|
|
36
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof LeadStatusClass
|
|
39
|
+
*/
|
|
40
|
+
'productSlug': string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService 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 { LeadStatusClass } from './lead-status-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListLeadStatusesResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListLeadStatusesResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* lead statuses
|
|
26
|
+
* @type {Array<LeadStatusClass>}
|
|
27
|
+
* @memberof ListLeadStatusesResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<LeadStatusClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListLeadStatusesResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
package/models/policy-class.ts
CHANGED
|
@@ -76,6 +76,18 @@ export interface PolicyClass {
|
|
|
76
76
|
* @memberof PolicyClass
|
|
77
77
|
*/
|
|
78
78
|
'holder'?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Policy product name.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof PolicyClass
|
|
83
|
+
*/
|
|
84
|
+
'productName'?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Policy product slug.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof PolicyClass
|
|
89
|
+
*/
|
|
90
|
+
'productSlug'?: string | null;
|
|
79
91
|
/**
|
|
80
92
|
* Policy versions.
|
|
81
93
|
* @type {Array<PolicyVersionClass>}
|
|
@@ -44,5 +44,17 @@ export interface PolicyObjectClass {
|
|
|
44
44
|
* @memberof PolicyObjectClass
|
|
45
45
|
*/
|
|
46
46
|
'summary': string;
|
|
47
|
+
/**
|
|
48
|
+
* Time at which the object was created.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof PolicyObjectClass
|
|
51
|
+
*/
|
|
52
|
+
'createdAt': string;
|
|
53
|
+
/**
|
|
54
|
+
* Time at which the object was updated.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PolicyObjectClass
|
|
57
|
+
*/
|
|
58
|
+
'updatedAt': string;
|
|
47
59
|
}
|
|
48
60
|
|
|
@@ -45,5 +45,17 @@ export interface PolicyPremiumClass {
|
|
|
45
45
|
* @memberof PolicyPremiumClass
|
|
46
46
|
*/
|
|
47
47
|
'updatedAt': string;
|
|
48
|
+
/**
|
|
49
|
+
* The gross total of a policy premium is the net sum of all policy premium items adding the tax rate.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PolicyPremiumClass
|
|
52
|
+
*/
|
|
53
|
+
'grossTotal': number;
|
|
54
|
+
/**
|
|
55
|
+
* The tax total of a policy premium is the net sum of all policy premium items multiplying the tax rate.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PolicyPremiumClass
|
|
58
|
+
*/
|
|
59
|
+
'taxTotal': number;
|
|
48
60
|
}
|
|
49
61
|
|
|
@@ -57,5 +57,23 @@ export interface PolicyPremiumItemClass {
|
|
|
57
57
|
* @memberof PolicyPremiumItemClass
|
|
58
58
|
*/
|
|
59
59
|
'isOverride': boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Gross total premium item.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof PolicyPremiumItemClass
|
|
64
|
+
*/
|
|
65
|
+
'grossTotal': number;
|
|
66
|
+
/**
|
|
67
|
+
* Tax total premium item.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof PolicyPremiumItemClass
|
|
70
|
+
*/
|
|
71
|
+
'taxTotal': number;
|
|
72
|
+
/**
|
|
73
|
+
* Tax rate premium item.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof PolicyPremiumItemClass
|
|
76
|
+
*/
|
|
77
|
+
'taxRate': number;
|
|
60
78
|
}
|
|
61
79
|
|
|
@@ -44,6 +44,12 @@ export interface PremiumOverrideDto {
|
|
|
44
44
|
* @memberof PremiumOverrideDto
|
|
45
45
|
*/
|
|
46
46
|
'netPremium': number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof PremiumOverrideDto
|
|
51
|
+
*/
|
|
52
|
+
'taxRate'?: number;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
export const PremiumOverrideDtoTypeEnum = {
|
|
@@ -22,7 +22,7 @@ import { CsvProductFactorDto } from './csv-product-factor-dto';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface StoreProductFactorsRequestDto {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* product version
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof StoreProductFactorsRequestDto
|
|
28
28
|
*/
|
|
@@ -42,10 +42,10 @@ export interface TimesliceClass {
|
|
|
42
42
|
'from': string;
|
|
43
43
|
/**
|
|
44
44
|
* Timeslice validity end.
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {string}
|
|
46
46
|
* @memberof TimesliceClass
|
|
47
47
|
*/
|
|
48
|
-
'to'
|
|
48
|
+
'to'?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
* Timeslice premium.
|
|
51
51
|
* @type {PolicyPremiumClass}
|
|
@@ -31,12 +31,18 @@ export interface UpdateLeadRequestDto {
|
|
|
31
31
|
* @memberof UpdateLeadRequestDto
|
|
32
32
|
*/
|
|
33
33
|
'productVersionId'?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateLeadRequestDto
|
|
38
|
+
*/
|
|
39
|
+
'status': string;
|
|
34
40
|
/**
|
|
35
41
|
* Custom data.
|
|
36
42
|
* @type {object}
|
|
37
43
|
* @memberof UpdateLeadRequestDto
|
|
38
44
|
*/
|
|
39
|
-
'customData'
|
|
45
|
+
'customData'?: object;
|
|
40
46
|
/**
|
|
41
47
|
* Premium Override
|
|
42
48
|
* @type {Array<PremiumOverrideRequestDto>}
|
|
@@ -55,12 +61,6 @@ export interface UpdateLeadRequestDto {
|
|
|
55
61
|
* @memberof UpdateLeadRequestDto
|
|
56
62
|
*/
|
|
57
63
|
'policy': CreatePolicyRequestDto;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof UpdateLeadRequestDto
|
|
62
|
-
*/
|
|
63
|
-
'status': UpdateLeadRequestDtoStatusEnum;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {CreateBankAccountRequestDto}
|
|
@@ -75,13 +75,3 @@ export interface UpdateLeadRequestDto {
|
|
|
75
75
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export const UpdateLeadRequestDtoStatusEnum = {
|
|
79
|
-
Created: 'created',
|
|
80
|
-
Approved: 'approved',
|
|
81
|
-
Activated: 'activated',
|
|
82
|
-
Declined: 'declined'
|
|
83
|
-
} as const;
|
|
84
|
-
|
|
85
|
-
export type UpdateLeadRequestDtoStatusEnum = typeof UpdateLeadRequestDtoStatusEnum[keyof typeof UpdateLeadRequestDtoStatusEnum];
|
|
86
|
-
|
|
87
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/insurance-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/insurance-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
|
}
|