@emilgroup/insurance-sdk-node 1.24.0 → 1.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/.openapi-generator/FILES +0 -3
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +0 -105
  4. package/api/premium-formulas-api.ts +0 -107
  5. package/api/products-api.ts +4 -122
  6. package/dist/api/leads-api.d.ts +0 -56
  7. package/dist/api/leads-api.js +0 -93
  8. package/dist/api/premium-formulas-api.d.ts +0 -57
  9. package/dist/api/premium-formulas-api.js +0 -93
  10. package/dist/api/products-api.d.ts +4 -68
  11. package/dist/api/products-api.js +3 -103
  12. package/dist/models/create-lead-policy-request-dto.d.ts +1 -1
  13. package/dist/models/create-lead-request-dto.d.ts +7 -7
  14. package/dist/models/create-premium-formula-request-dto.d.ts +0 -12
  15. package/dist/models/get-product-request-dto.d.ts +4 -10
  16. package/dist/models/grpc-patch-lead-request-dto.d.ts +1 -1
  17. package/dist/models/grpc-update-lead-request-dto.d.ts +7 -7
  18. package/dist/models/index.d.ts +0 -3
  19. package/dist/models/index.js +0 -3
  20. package/dist/models/list-leads-response-class.d.ts +0 -12
  21. package/dist/models/list-policies-response-class.d.ts +0 -12
  22. package/dist/models/patch-lead-request-dto.d.ts +1 -1
  23. package/dist/models/policy-object-dto.d.ts +1 -1
  24. package/dist/models/premium-formula-class.d.ts +0 -12
  25. package/dist/models/shared-create-lead-policy-request-dto.d.ts +1 -1
  26. package/dist/models/shared-lead-policy-object-dto.d.ts +1 -1
  27. package/dist/models/shared-update-premium-formula-request-dto.d.ts +0 -12
  28. package/dist/models/update-lead-request-dto.d.ts +7 -7
  29. package/dist/models/update-premium-formula-request-dto.d.ts +0 -12
  30. package/models/create-lead-policy-request-dto.ts +1 -1
  31. package/models/create-lead-request-dto.ts +7 -7
  32. package/models/create-premium-formula-request-dto.ts +0 -12
  33. package/models/get-product-request-dto.ts +4 -10
  34. package/models/grpc-patch-lead-request-dto.ts +1 -1
  35. package/models/grpc-update-lead-request-dto.ts +7 -7
  36. package/models/index.ts +0 -3
  37. package/models/list-leads-response-class.ts +0 -12
  38. package/models/list-policies-response-class.ts +0 -12
  39. package/models/patch-lead-request-dto.ts +1 -1
  40. package/models/policy-object-dto.ts +1 -1
  41. package/models/premium-formula-class.ts +0 -12
  42. package/models/shared-create-lead-policy-request-dto.ts +1 -1
  43. package/models/shared-lead-policy-object-dto.ts +1 -1
  44. package/models/shared-update-premium-formula-request-dto.ts +0 -12
  45. package/models/update-lead-request-dto.ts +7 -7
  46. package/models/update-premium-formula-request-dto.ts +0 -12
  47. package/package.json +1 -1
  48. package/dist/models/create-lead-sync-response-class.d.ts +0 -24
  49. package/dist/models/create-lead-sync-response-class.js +0 -15
  50. package/dist/models/empty-response-class.d.ts +0 -24
  51. package/dist/models/empty-response-class.js +0 -15
  52. package/dist/models/swap-premium-formulas-order-requestt-dto.d.ts +0 -30
  53. package/dist/models/swap-premium-formulas-order-requestt-dto.js +0 -15
  54. package/models/create-lead-sync-response-class.ts +0 -30
  55. package/models/empty-response-class.ts +0 -30
  56. package/models/swap-premium-formulas-order-requestt-dto.ts +0 -36
@@ -33,17 +33,5 @@ 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;
48
36
  }
49
37
 
@@ -33,17 +33,5 @@ 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;
48
36
  }
49
37
 
@@ -45,7 +45,7 @@ export interface PatchLeadRequestDto {
45
45
  */
46
46
  'policy'?: CreateLeadPolicyRequestDto;
47
47
  /**
48
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
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 PatchLeadRequestDto
51
51
  */
@@ -27,7 +27,7 @@ export interface PolicyObjectDto {
27
27
  */
28
28
  'insuredObjectId'?: number;
29
29
  /**
30
- * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
30
+ * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
31
31
  * @type {string}
32
32
  * @memberof PolicyObjectDto
33
33
  */
@@ -74,18 +74,6 @@ export interface PremiumFormulaClass {
74
74
  * @memberof PremiumFormulaClass
75
75
  */
76
76
  'visibility'?: string;
77
- /**
78
- * Name of the variable this Premium item value is referenced by in the other items formulas.
79
- * @type {string}
80
- * @memberof PremiumFormulaClass
81
- */
82
- 'variableName'?: string;
83
- /**
84
- * order index for the Premium item, used to define the order the items are calculated in.
85
- * @type {number}
86
- * @memberof PremiumFormulaClass
87
- */
88
- 'order': number;
89
77
  /**
90
78
  * Time at which the object was created.
91
79
  * @type {string}
@@ -47,7 +47,7 @@ export interface SharedCreateLeadPolicyRequestDto {
47
47
  */
48
48
  'policyObjects'?: Array<SharedLeadPolicyObjectDto>;
49
49
  /**
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.
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 SharedCreateLeadPolicyRequestDto
53
53
  */
@@ -27,7 +27,7 @@ export interface SharedLeadPolicyObjectDto {
27
27
  */
28
28
  'insuredObjectId'?: number;
29
29
  /**
30
- * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
30
+ * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
31
31
  * @type {string}
32
32
  * @memberof SharedLeadPolicyObjectDto
33
33
  */
@@ -68,18 +68,6 @@ export interface SharedUpdatePremiumFormulaRequestDto {
68
68
  * @memberof SharedUpdatePremiumFormulaRequestDto
69
69
  */
70
70
  'visibility'?: SharedUpdatePremiumFormulaRequestDtoVisibilityEnum;
71
- /**
72
- * Name of the variable this Premium item value is referenced by in the other items formulas.
73
- * @type {string}
74
- * @memberof SharedUpdatePremiumFormulaRequestDto
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 SharedUpdatePremiumFormulaRequestDto
81
- */
82
- 'order': number;
83
71
  /**
84
72
  * Internal unique identifier for the object. You should not have to use this, use code instead.
85
73
  * @type {number}
@@ -45,37 +45,37 @@ export interface UpdateLeadRequestDto {
45
45
  */
46
46
  'policy': CreateLeadPolicyRequestDto;
47
47
  /**
48
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
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 UpdateLeadRequestDto
51
51
  */
52
52
  'status': string;
53
53
  /**
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.
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 UpdateLeadRequestDto
57
57
  */
58
58
  'bankAccount'?: CreateBankAccountRequestDto;
59
59
  /**
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
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 UpdateLeadRequestDto
63
63
  */
64
64
  'customData'?: object;
65
65
  /**
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.
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 UpdateLeadRequestDto
69
69
  */
70
70
  'uploadedDocument'?: UploadedDocumentDto;
71
71
  /**
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.
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 UpdateLeadRequestDto
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. 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.
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 UpdateLeadRequestDto
81
81
  */
@@ -87,7 +87,7 @@ export interface UpdateLeadRequestDto {
87
87
  */
88
88
  'paymentMethod'?: CreatePaymentMethodRequestDto;
89
89
  /**
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.
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 UpdateLeadRequestDto
93
93
  */
@@ -68,18 +68,6 @@ export interface UpdatePremiumFormulaRequestDto {
68
68
  * @memberof UpdatePremiumFormulaRequestDto
69
69
  */
70
70
  'visibility'?: UpdatePremiumFormulaRequestDtoVisibilityEnum;
71
- /**
72
- * Name of the variable this Premium item value is referenced by in the other items formulas.
73
- * @type {string}
74
- * @memberof UpdatePremiumFormulaRequestDto
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 UpdatePremiumFormulaRequestDto
81
- */
82
- 'order': number;
83
71
  }
84
72
 
85
73
  export const UpdatePremiumFormulaRequestDtoTypeEnum = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,24 +0,0 @@
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 CreateLeadSyncResponseClass
16
- */
17
- export interface CreateLeadSyncResponseClass {
18
- /**
19
- *
20
- * @type {object}
21
- * @memberof CreateLeadSyncResponseClass
22
- */
23
- 'variables': object;
24
- }
@@ -1,15 +0,0 @@
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 });
@@ -1,24 +0,0 @@
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 EmptyResponseClass
16
- */
17
- export interface EmptyResponseClass {
18
- /**
19
- *
20
- * @type {object}
21
- * @memberof EmptyResponseClass
22
- */
23
- 'response': object;
24
- }
@@ -1,15 +0,0 @@
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 });
@@ -1,30 +0,0 @@
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 SwapPremiumFormulasOrderRequesttDto
16
- */
17
- export interface SwapPremiumFormulasOrderRequesttDto {
18
- /**
19
- * ID of the first premium formula to swap the order of.
20
- * @type {number}
21
- * @memberof SwapPremiumFormulasOrderRequesttDto
22
- */
23
- 'id1': number;
24
- /**
25
- * ID of the second premium formula to swap the order of.
26
- * @type {number}
27
- * @memberof SwapPremiumFormulasOrderRequesttDto
28
- */
29
- 'id2': number;
30
- }
@@ -1,15 +0,0 @@
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 });
@@ -1,30 +0,0 @@
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
-
@@ -1,30 +0,0 @@
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
-
@@ -1,36 +0,0 @@
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 SwapPremiumFormulasOrderRequesttDto
21
- */
22
- export interface SwapPremiumFormulasOrderRequesttDto {
23
- /**
24
- * ID of the first premium formula to swap the order of.
25
- * @type {number}
26
- * @memberof SwapPremiumFormulasOrderRequesttDto
27
- */
28
- 'id1': number;
29
- /**
30
- * ID of the second premium formula to swap the order of.
31
- * @type {number}
32
- * @memberof SwapPremiumFormulasOrderRequesttDto
33
- */
34
- 'id2': number;
35
- }
36
-