@emilgroup/insurance-sdk-node 1.24.1 → 1.25.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 +4 -0
- package/README.md +2 -2
- package/api/leads-api.ts +326 -0
- package/api/premium-formulas-api.ts +107 -0
- package/api/products-api.ts +122 -4
- package/dist/api/leads-api.d.ts +176 -0
- package/dist/api/leads-api.js +285 -0
- package/dist/api/premium-formulas-api.d.ts +57 -0
- package/dist/api/premium-formulas-api.js +93 -0
- package/dist/api/products-api.d.ts +68 -4
- package/dist/api/products-api.js +103 -3
- package/dist/models/create-lead-async-response-class.d.ts +24 -0
- package/dist/models/create-lead-async-response-class.js +15 -0
- package/dist/models/create-lead-policy-request-dto.d.ts +1 -1
- package/dist/models/create-lead-request-dto.d.ts +7 -7
- package/dist/models/create-lead-sync-response-class.d.ts +24 -0
- package/dist/models/create-lead-sync-response-class.js +15 -0
- package/dist/models/create-premium-formula-request-dto.d.ts +12 -0
- package/dist/models/empty-response-class.d.ts +24 -0
- package/dist/models/empty-response-class.js +15 -0
- package/dist/models/get-product-request-dto.d.ts +10 -4
- package/dist/models/grpc-patch-lead-request-dto.d.ts +1 -1
- package/dist/models/grpc-update-lead-request-dto.d.ts +7 -7
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/lead-class.d.ts +6 -0
- package/dist/models/list-leads-response-class.d.ts +12 -0
- package/dist/models/list-policies-response-class.d.ts +12 -0
- package/dist/models/patch-lead-request-dto.d.ts +1 -1
- package/dist/models/policy-object-dto.d.ts +1 -1
- package/dist/models/premium-formula-class.d.ts +12 -0
- package/dist/models/shared-create-lead-policy-request-dto.d.ts +1 -1
- package/dist/models/shared-lead-policy-object-dto.d.ts +1 -1
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +12 -0
- package/dist/models/swap-premium-formulas-order-request-dto.d.ts +30 -0
- package/dist/models/swap-premium-formulas-order-request-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +7 -7
- package/dist/models/update-premium-formula-request-dto.d.ts +12 -0
- package/models/create-lead-async-response-class.ts +30 -0
- package/models/create-lead-policy-request-dto.ts +1 -1
- package/models/create-lead-request-dto.ts +7 -7
- package/models/create-lead-sync-response-class.ts +30 -0
- package/models/create-premium-formula-request-dto.ts +12 -0
- package/models/empty-response-class.ts +30 -0
- package/models/get-product-request-dto.ts +10 -4
- package/models/grpc-patch-lead-request-dto.ts +1 -1
- package/models/grpc-update-lead-request-dto.ts +7 -7
- package/models/index.ts +4 -0
- package/models/lead-class.ts +6 -0
- package/models/list-leads-response-class.ts +12 -0
- package/models/list-policies-response-class.ts +12 -0
- package/models/patch-lead-request-dto.ts +1 -1
- package/models/policy-object-dto.ts +1 -1
- package/models/premium-formula-class.ts +12 -0
- package/models/shared-create-lead-policy-request-dto.ts +1 -1
- package/models/shared-lead-policy-object-dto.ts +1 -1
- package/models/shared-update-premium-formula-request-dto.ts +12 -0
- package/models/swap-premium-formulas-order-request-dto.ts +36 -0
- package/models/update-lead-request-dto.ts +7 -7
- package/models/update-premium-formula-request-dto.ts +12 -0
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -23,11 +23,13 @@ __exportStar(require("./create-custom-application-request-dto"), exports);
|
|
|
23
23
|
__exportStar(require("./create-dummy-policy-request-dto"), exports);
|
|
24
24
|
__exportStar(require("./create-insured-object-request-dto"), exports);
|
|
25
25
|
__exportStar(require("./create-insured-object-response-class"), exports);
|
|
26
|
+
__exportStar(require("./create-lead-async-response-class"), exports);
|
|
26
27
|
__exportStar(require("./create-lead-policy-request-dto"), exports);
|
|
27
28
|
__exportStar(require("./create-lead-request-dto"), exports);
|
|
28
29
|
__exportStar(require("./create-lead-response-class"), exports);
|
|
29
30
|
__exportStar(require("./create-lead-status-request-dto"), exports);
|
|
30
31
|
__exportStar(require("./create-lead-status-response-class"), exports);
|
|
32
|
+
__exportStar(require("./create-lead-sync-response-class"), exports);
|
|
31
33
|
__exportStar(require("./create-named-range-request-dto"), exports);
|
|
32
34
|
__exportStar(require("./create-named-range-response-class"), exports);
|
|
33
35
|
__exportStar(require("./create-named-request-s3-data-class"), exports);
|
|
@@ -43,6 +45,7 @@ __exportStar(require("./create-product-response-class"), exports);
|
|
|
43
45
|
__exportStar(require("./csv-product-factor-dto"), exports);
|
|
44
46
|
__exportStar(require("./delete-request-dto"), exports);
|
|
45
47
|
__exportStar(require("./delete-response-class"), exports);
|
|
48
|
+
__exportStar(require("./empty-response-class"), exports);
|
|
46
49
|
__exportStar(require("./get-insured-object-response-class"), exports);
|
|
47
50
|
__exportStar(require("./get-lead-response-class"), exports);
|
|
48
51
|
__exportStar(require("./get-lead-status-response-class"), exports);
|
|
@@ -119,6 +122,7 @@ __exportStar(require("./store-product-factors-request-dto"), exports);
|
|
|
119
122
|
__exportStar(require("./store-product-factors-response-class"), exports);
|
|
120
123
|
__exportStar(require("./suspend-policy-request-dto"), exports);
|
|
121
124
|
__exportStar(require("./suspend-policy-response-class"), exports);
|
|
125
|
+
__exportStar(require("./swap-premium-formulas-order-request-dto"), exports);
|
|
122
126
|
__exportStar(require("./terminate-policy-request-dto"), exports);
|
|
123
127
|
__exportStar(require("./terminate-policy-response-class"), exports);
|
|
124
128
|
__exportStar(require("./timeslice-class"), exports);
|
|
@@ -28,4 +28,16 @@ export interface ListLeadsResponseClass {
|
|
|
28
28
|
* @memberof ListLeadsResponseClass
|
|
29
29
|
*/
|
|
30
30
|
'nextPageToken': string;
|
|
31
|
+
/**
|
|
32
|
+
* Items per page.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ListLeadsResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'itemsPerPage': number;
|
|
37
|
+
/**
|
|
38
|
+
* Total amount of items.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ListLeadsResponseClass
|
|
41
|
+
*/
|
|
42
|
+
'totalItems': number;
|
|
31
43
|
}
|
|
@@ -28,4 +28,16 @@ export interface ListPoliciesResponseClass {
|
|
|
28
28
|
* @memberof ListPoliciesResponseClass
|
|
29
29
|
*/
|
|
30
30
|
'nextPageToken': string;
|
|
31
|
+
/**
|
|
32
|
+
* Items per page.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ListPoliciesResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'itemsPerPage': number;
|
|
37
|
+
/**
|
|
38
|
+
* Total amount of items.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ListPoliciesResponseClass
|
|
41
|
+
*/
|
|
42
|
+
'totalItems': number;
|
|
31
43
|
}
|
|
@@ -40,7 +40,7 @@ export interface PatchLeadRequestDto {
|
|
|
40
40
|
*/
|
|
41
41
|
'policy'?: CreateLeadPolicyRequestDto;
|
|
42
42
|
/**
|
|
43
|
-
* Lead status. Default values are \"created\", \"approved\" and \"declined\".
|
|
43
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof PatchLeadRequestDto
|
|
46
46
|
*/
|
|
@@ -22,7 +22,7 @@ export interface PolicyObjectDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'insuredObjectId'?: number;
|
|
24
24
|
/**
|
|
25
|
-
* Insured object name. Human readable identifier of insured object.
|
|
25
|
+
* Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PolicyObjectDto
|
|
28
28
|
*/
|
|
@@ -69,6 +69,18 @@ export interface PremiumFormulaClass {
|
|
|
69
69
|
* @memberof PremiumFormulaClass
|
|
70
70
|
*/
|
|
71
71
|
'visibility'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Name of the variable this Premium item value is referenced by in the other items formulas.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PremiumFormulaClass
|
|
76
|
+
*/
|
|
77
|
+
'variableName'?: string;
|
|
78
|
+
/**
|
|
79
|
+
* order index for the Premium item, used to define the order the items are calculated in.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof PremiumFormulaClass
|
|
82
|
+
*/
|
|
83
|
+
'order': number;
|
|
72
84
|
/**
|
|
73
85
|
* Time at which the object was created.
|
|
74
86
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface SharedCreateLeadPolicyRequestDto {
|
|
|
42
42
|
*/
|
|
43
43
|
'policyObjects'?: Array<SharedLeadPolicyObjectDto>;
|
|
44
44
|
/**
|
|
45
|
-
* Premium Override is utilized to override the premium calculation.
|
|
45
|
+
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
46
46
|
* @type {PremiumOverrideRequestDto}
|
|
47
47
|
* @memberof SharedCreateLeadPolicyRequestDto
|
|
48
48
|
*/
|
|
@@ -22,7 +22,7 @@ export interface SharedLeadPolicyObjectDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'insuredObjectId'?: number;
|
|
24
24
|
/**
|
|
25
|
-
* Insured object name. Human readable identifier of insured object.
|
|
25
|
+
* Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SharedLeadPolicyObjectDto
|
|
28
28
|
*/
|
|
@@ -63,6 +63,18 @@ export interface SharedUpdatePremiumFormulaRequestDto {
|
|
|
63
63
|
* @memberof SharedUpdatePremiumFormulaRequestDto
|
|
64
64
|
*/
|
|
65
65
|
'visibility'?: SharedUpdatePremiumFormulaRequestDtoVisibilityEnum;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the variable this Premium item value is referenced by in the other items formulas.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SharedUpdatePremiumFormulaRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'variableName'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* order index for the Premium item, used to define the order the items are calculated in.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof SharedUpdatePremiumFormulaRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'order': number;
|
|
66
78
|
/**
|
|
67
79
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
68
80
|
* @type {number}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService 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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SwapPremiumFormulasOrderRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SwapPremiumFormulasOrderRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the first premium formula to swap the order of.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SwapPremiumFormulasOrderRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'id1': number;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the second premium formula to swap the order of.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SwapPremiumFormulasOrderRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'id2': number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService 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 });
|
|
@@ -40,37 +40,37 @@ export interface UpdateLeadRequestDto {
|
|
|
40
40
|
*/
|
|
41
41
|
'policy': CreateLeadPolicyRequestDto;
|
|
42
42
|
/**
|
|
43
|
-
* Lead status. Default values are \"created\", \"approved\" and \"declined\".
|
|
43
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UpdateLeadRequestDto
|
|
46
46
|
*/
|
|
47
47
|
'status': string;
|
|
48
48
|
/**
|
|
49
|
-
* Bank account details, to be used for direct debit payments,
|
|
49
|
+
* Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
|
|
50
50
|
* @type {CreateBankAccountRequestDto}
|
|
51
51
|
* @memberof UpdateLeadRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
54
54
|
/**
|
|
55
|
-
* Optional custom data for the lead.
|
|
55
|
+
* Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
|
|
56
56
|
* @type {object}
|
|
57
57
|
* @memberof UpdateLeadRequestDto
|
|
58
58
|
*/
|
|
59
59
|
'customData'?: object;
|
|
60
60
|
/**
|
|
61
|
-
* Used to pass pre-uploaded documents to the lead.
|
|
61
|
+
* Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
|
|
62
62
|
* @type {UploadedDocumentDto}
|
|
63
63
|
* @memberof UpdateLeadRequestDto
|
|
64
64
|
*/
|
|
65
65
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
66
66
|
/**
|
|
67
|
-
* Premium Override is utilized to override the premium calculation.
|
|
67
|
+
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
68
68
|
* @type {Array<PremiumOverrideRequestDto>}
|
|
69
69
|
* @memberof UpdateLeadRequestDto
|
|
70
70
|
*/
|
|
71
71
|
'premiumOverride'?: Array<PremiumOverrideRequestDto>;
|
|
72
72
|
/**
|
|
73
|
-
* The account code is used in cases where the account has been created before the lead.
|
|
73
|
+
* The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof UpdateLeadRequestDto
|
|
76
76
|
*/
|
|
@@ -82,7 +82,7 @@ export interface UpdateLeadRequestDto {
|
|
|
82
82
|
*/
|
|
83
83
|
'paymentMethod'?: CreatePaymentMethodRequestDto;
|
|
84
84
|
/**
|
|
85
|
-
* The validation indicator, with a default value of true, serves as a toggle.
|
|
85
|
+
* The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
|
|
86
86
|
* @type {boolean}
|
|
87
87
|
* @memberof UpdateLeadRequestDto
|
|
88
88
|
*/
|
|
@@ -63,6 +63,18 @@ export interface UpdatePremiumFormulaRequestDto {
|
|
|
63
63
|
* @memberof UpdatePremiumFormulaRequestDto
|
|
64
64
|
*/
|
|
65
65
|
'visibility'?: UpdatePremiumFormulaRequestDtoVisibilityEnum;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the variable this Premium item value is referenced by in the other items formulas.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'variableName'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* order index for the Premium item, used to define the order the items are calculated in.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof UpdatePremiumFormulaRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'order': number;
|
|
66
78
|
}
|
|
67
79
|
export declare const UpdatePremiumFormulaRequestDtoTypeEnum: {
|
|
68
80
|
readonly Time: "time";
|
|
@@ -0,0 +1,30 @@
|
|
|
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 CreateLeadAsyncResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateLeadAsyncResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier of the lead that this object belongs to.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateLeadAsyncResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -47,7 +47,7 @@ export interface CreateLeadPolicyRequestDto {
|
|
|
47
47
|
*/
|
|
48
48
|
'policyObjects'?: Array<SharedLeadPolicyObjectDto>;
|
|
49
49
|
/**
|
|
50
|
-
* Premium Override is utilized to override the premium calculation.
|
|
50
|
+
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
51
51
|
* @type {PremiumOverrideRequestDto}
|
|
52
52
|
* @memberof CreateLeadPolicyRequestDto
|
|
53
53
|
*/
|
|
@@ -39,7 +39,7 @@ export interface CreateLeadRequestDto {
|
|
|
39
39
|
*/
|
|
40
40
|
'productVersionId'?: number;
|
|
41
41
|
/**
|
|
42
|
-
* The account code is used in cases where the account has been created before the lead.
|
|
42
|
+
* The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof CreateLeadRequestDto
|
|
45
45
|
*/
|
|
@@ -57,31 +57,31 @@ export interface CreateLeadRequestDto {
|
|
|
57
57
|
*/
|
|
58
58
|
'policy': SharedCreateLeadPolicyRequestDto;
|
|
59
59
|
/**
|
|
60
|
-
* Bank account details, to be used for direct debit payments,
|
|
60
|
+
* Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
|
|
61
61
|
* @type {CreateBankAccountRequestDto}
|
|
62
62
|
* @memberof CreateLeadRequestDto
|
|
63
63
|
*/
|
|
64
64
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
65
65
|
/**
|
|
66
|
-
* Optional custom data for the lead.
|
|
66
|
+
* Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
|
|
67
67
|
* @type {object}
|
|
68
68
|
* @memberof CreateLeadRequestDto
|
|
69
69
|
*/
|
|
70
70
|
'customData'?: object;
|
|
71
71
|
/**
|
|
72
|
-
* Used to pass pre-uploaded documents to the lead.
|
|
72
|
+
* Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
|
|
73
73
|
* @type {UploadedDocumentDto}
|
|
74
74
|
* @memberof CreateLeadRequestDto
|
|
75
75
|
*/
|
|
76
76
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
77
77
|
/**
|
|
78
|
-
* Lead status. Default values are \"created\", \"approved\" and \"declined\".
|
|
78
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @memberof CreateLeadRequestDto
|
|
81
81
|
*/
|
|
82
82
|
'status'?: string;
|
|
83
83
|
/**
|
|
84
|
-
* Premium Override is utilized to override the premium calculation.
|
|
84
|
+
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
85
85
|
* @type {Array<PremiumOverrideRequestDto>}
|
|
86
86
|
* @memberof CreateLeadRequestDto
|
|
87
87
|
*/
|
|
@@ -93,7 +93,7 @@ export interface CreateLeadRequestDto {
|
|
|
93
93
|
*/
|
|
94
94
|
'paymentMethod'?: CreatePaymentMethodRequestDto;
|
|
95
95
|
/**
|
|
96
|
-
* The validation indicator, with a default value of true, serves as a toggle.
|
|
96
|
+
* The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
|
|
97
97
|
* @type {boolean}
|
|
98
98
|
* @memberof CreateLeadRequestDto
|
|
99
99
|
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
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 CreateLeadSyncResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateLeadSyncResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {object}
|
|
26
|
+
* @memberof CreateLeadSyncResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'variables': object;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -68,6 +68,18 @@ export interface CreatePremiumFormulaRequestDto {
|
|
|
68
68
|
* @memberof CreatePremiumFormulaRequestDto
|
|
69
69
|
*/
|
|
70
70
|
'visibility'?: CreatePremiumFormulaRequestDtoVisibilityEnum;
|
|
71
|
+
/**
|
|
72
|
+
* Name of the variable this Premium item value is referenced by in the other items formulas.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreatePremiumFormulaRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'variableName'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* order index for the Premium item, used to define the order the items are calculated in.
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof CreatePremiumFormulaRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'order': number;
|
|
71
83
|
}
|
|
72
84
|
|
|
73
85
|
export const CreatePremiumFormulaRequestDtoTypeEnum = {
|
|
@@ -0,0 +1,30 @@
|
|
|
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 EmptyResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface EmptyResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {object}
|
|
26
|
+
* @memberof EmptyResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'response': object;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -21,17 +21,23 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface GetProductRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Unique identifier referencing the product.
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @memberof GetProductRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'id': number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {
|
|
30
|
+
* Unique identifier of the product that this object belongs to.
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof GetProductRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'code': object;
|
|
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 {object}
|
|
32
38
|
* @memberof GetProductRequestDto
|
|
33
39
|
*/
|
|
34
|
-
'
|
|
40
|
+
'slug': object;
|
|
35
41
|
/**
|
|
36
42
|
* Fields to expand response by
|
|
37
43
|
* @type {string}
|
|
@@ -45,7 +45,7 @@ export interface GrpcPatchLeadRequestDto {
|
|
|
45
45
|
*/
|
|
46
46
|
'policy'?: CreateLeadPolicyRequestDto;
|
|
47
47
|
/**
|
|
48
|
-
* Lead status. Default values are \"created\", \"approved\" and \"declined\".
|
|
48
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof GrpcPatchLeadRequestDto
|
|
51
51
|
*/
|
|
@@ -45,37 +45,37 @@ export interface GrpcUpdateLeadRequestDto {
|
|
|
45
45
|
*/
|
|
46
46
|
'policy': CreateLeadPolicyRequestDto;
|
|
47
47
|
/**
|
|
48
|
-
* Lead status. Default values are \"created\", \"approved\" and \"declined\".
|
|
48
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof GrpcUpdateLeadRequestDto
|
|
51
51
|
*/
|
|
52
52
|
'status': string;
|
|
53
53
|
/**
|
|
54
|
-
* Bank account details, to be used for direct debit payments,
|
|
54
|
+
* Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
|
|
55
55
|
* @type {CreateBankAccountRequestDto}
|
|
56
56
|
* @memberof GrpcUpdateLeadRequestDto
|
|
57
57
|
*/
|
|
58
58
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
59
59
|
/**
|
|
60
|
-
* Optional custom data for the lead.
|
|
60
|
+
* Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
|
|
61
61
|
* @type {object}
|
|
62
62
|
* @memberof GrpcUpdateLeadRequestDto
|
|
63
63
|
*/
|
|
64
64
|
'customData'?: object;
|
|
65
65
|
/**
|
|
66
|
-
* Used to pass pre-uploaded documents to the lead.
|
|
66
|
+
* Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
|
|
67
67
|
* @type {UploadedDocumentDto}
|
|
68
68
|
* @memberof GrpcUpdateLeadRequestDto
|
|
69
69
|
*/
|
|
70
70
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
71
71
|
/**
|
|
72
|
-
* Premium Override is utilized to override the premium calculation.
|
|
72
|
+
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
73
73
|
* @type {Array<PremiumOverrideRequestDto>}
|
|
74
74
|
* @memberof GrpcUpdateLeadRequestDto
|
|
75
75
|
*/
|
|
76
76
|
'premiumOverride'?: Array<PremiumOverrideRequestDto>;
|
|
77
77
|
/**
|
|
78
|
-
* The account code is used in cases where the account has been created before the lead.
|
|
78
|
+
* The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @memberof GrpcUpdateLeadRequestDto
|
|
81
81
|
*/
|
|
@@ -87,7 +87,7 @@ export interface GrpcUpdateLeadRequestDto {
|
|
|
87
87
|
*/
|
|
88
88
|
'paymentMethod'?: CreatePaymentMethodRequestDto;
|
|
89
89
|
/**
|
|
90
|
-
* The validation indicator, with a default value of true, serves as a toggle.
|
|
90
|
+
* The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
|
|
91
91
|
* @type {boolean}
|
|
92
92
|
* @memberof GrpcUpdateLeadRequestDto
|
|
93
93
|
*/
|
package/models/index.ts
CHANGED
|
@@ -7,11 +7,13 @@ export * from './create-custom-application-request-dto';
|
|
|
7
7
|
export * from './create-dummy-policy-request-dto';
|
|
8
8
|
export * from './create-insured-object-request-dto';
|
|
9
9
|
export * from './create-insured-object-response-class';
|
|
10
|
+
export * from './create-lead-async-response-class';
|
|
10
11
|
export * from './create-lead-policy-request-dto';
|
|
11
12
|
export * from './create-lead-request-dto';
|
|
12
13
|
export * from './create-lead-response-class';
|
|
13
14
|
export * from './create-lead-status-request-dto';
|
|
14
15
|
export * from './create-lead-status-response-class';
|
|
16
|
+
export * from './create-lead-sync-response-class';
|
|
15
17
|
export * from './create-named-range-request-dto';
|
|
16
18
|
export * from './create-named-range-response-class';
|
|
17
19
|
export * from './create-named-request-s3-data-class';
|
|
@@ -27,6 +29,7 @@ export * from './create-product-response-class';
|
|
|
27
29
|
export * from './csv-product-factor-dto';
|
|
28
30
|
export * from './delete-request-dto';
|
|
29
31
|
export * from './delete-response-class';
|
|
32
|
+
export * from './empty-response-class';
|
|
30
33
|
export * from './get-insured-object-response-class';
|
|
31
34
|
export * from './get-lead-response-class';
|
|
32
35
|
export * from './get-lead-status-response-class';
|
|
@@ -103,6 +106,7 @@ export * from './store-product-factors-request-dto';
|
|
|
103
106
|
export * from './store-product-factors-response-class';
|
|
104
107
|
export * from './suspend-policy-request-dto';
|
|
105
108
|
export * from './suspend-policy-response-class';
|
|
109
|
+
export * from './swap-premium-formulas-order-request-dto';
|
|
106
110
|
export * from './terminate-policy-request-dto';
|
|
107
111
|
export * from './terminate-policy-response-class';
|
|
108
112
|
export * from './timeslice-class';
|
package/models/lead-class.ts
CHANGED
|
@@ -33,5 +33,17 @@ export interface ListLeadsResponseClass {
|
|
|
33
33
|
* @memberof ListLeadsResponseClass
|
|
34
34
|
*/
|
|
35
35
|
'nextPageToken': string;
|
|
36
|
+
/**
|
|
37
|
+
* Items per page.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListLeadsResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* Total amount of items.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ListLeadsResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'totalItems': number;
|
|
36
48
|
}
|
|
37
49
|
|
|
@@ -33,5 +33,17 @@ export interface ListPoliciesResponseClass {
|
|
|
33
33
|
* @memberof ListPoliciesResponseClass
|
|
34
34
|
*/
|
|
35
35
|
'nextPageToken': string;
|
|
36
|
+
/**
|
|
37
|
+
* Items per page.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListPoliciesResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* Total amount of items.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ListPoliciesResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'totalItems': number;
|
|
36
48
|
}
|
|
37
49
|
|