@emilgroup/insurance-sdk-node 1.19.2 → 1.21.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.
Files changed (78) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/default-api.ts +124 -0
  4. package/api/named-ranges-api.ts +669 -0
  5. package/api.ts +4 -0
  6. package/dist/api/default-api.d.ts +66 -0
  7. package/dist/api/default-api.js +200 -0
  8. package/dist/api/named-ranges-api.d.ts +376 -0
  9. package/dist/api/named-ranges-api.js +634 -0
  10. package/dist/api.d.ts +2 -0
  11. package/dist/api.js +2 -0
  12. package/dist/models/create-account-request-dto.d.ts +23 -23
  13. package/dist/models/create-lead-policy-request-dto.d.ts +56 -0
  14. package/dist/models/create-lead-policy-request-dto.js +15 -0
  15. package/dist/models/create-lead-request-dto.d.ts +23 -17
  16. package/dist/models/create-named-range-request-dto.d.ts +42 -0
  17. package/dist/models/create-named-range-request-dto.js +15 -0
  18. package/dist/models/create-named-range-response-class.d.ts +25 -0
  19. package/dist/models/create-named-range-response-class.js +15 -0
  20. package/dist/models/create-payment-method-request-dto.d.ts +6 -1
  21. package/dist/models/create-payment-method-request-dto.js +5 -0
  22. package/dist/models/create-product-request-dto.d.ts +28 -0
  23. package/dist/models/create-product-request-dto.js +22 -1
  24. package/dist/models/get-named-range-response-class.d.ts +25 -0
  25. package/dist/models/get-named-range-response-class.js +15 -0
  26. package/dist/models/grpc-patch-lead-request-dto.d.ts +23 -5
  27. package/dist/models/grpc-update-lead-request-dto.d.ts +39 -33
  28. package/dist/models/index.d.ts +13 -0
  29. package/dist/models/index.js +13 -0
  30. package/dist/models/inline-response200.d.ts +54 -0
  31. package/dist/models/inline-response200.js +15 -0
  32. package/dist/models/inline-response503.d.ts +54 -0
  33. package/dist/models/inline-response503.js +15 -0
  34. package/dist/models/lead-class.d.ts +12 -6
  35. package/dist/models/list-named-ranges-response-class.d.ts +30 -0
  36. package/dist/models/list-named-ranges-response-class.js +15 -0
  37. package/dist/models/named-range-class.d.ts +72 -0
  38. package/dist/models/named-range-class.js +15 -0
  39. package/dist/models/patch-lead-request-dto.d.ts +11 -5
  40. package/dist/models/policy-object-dto.d.ts +9 -3
  41. package/dist/models/product-class.d.ts +6 -0
  42. package/dist/models/shared-create-lead-policy-request-dto.d.ts +56 -0
  43. package/dist/models/shared-create-lead-policy-request-dto.js +15 -0
  44. package/dist/models/shared-lead-policy-object-dto.d.ts +42 -0
  45. package/dist/models/shared-lead-policy-object-dto.js +15 -0
  46. package/dist/models/shared-update-named-range-request-dto.d.ts +36 -0
  47. package/dist/models/shared-update-named-range-request-dto.js +15 -0
  48. package/dist/models/update-lead-request-dto.d.ts +35 -29
  49. package/dist/models/update-named-range-request-dto.d.ts +30 -0
  50. package/dist/models/update-named-range-request-dto.js +15 -0
  51. package/dist/models/update-named-range-response-class.d.ts +25 -0
  52. package/dist/models/update-named-range-response-class.js +15 -0
  53. package/models/create-account-request-dto.ts +23 -23
  54. package/models/create-lead-policy-request-dto.ts +62 -0
  55. package/models/create-lead-request-dto.ts +23 -17
  56. package/models/create-named-range-request-dto.ts +48 -0
  57. package/models/create-named-range-response-class.ts +31 -0
  58. package/models/create-payment-method-request-dto.ts +9 -1
  59. package/models/create-product-request-dto.ts +29 -0
  60. package/models/get-named-range-response-class.ts +31 -0
  61. package/models/grpc-patch-lead-request-dto.ts +23 -5
  62. package/models/grpc-update-lead-request-dto.ts +39 -33
  63. package/models/index.ts +13 -0
  64. package/models/inline-response200.ts +48 -0
  65. package/models/inline-response503.ts +48 -0
  66. package/models/lead-class.ts +12 -6
  67. package/models/list-named-ranges-response-class.ts +36 -0
  68. package/models/named-range-class.ts +78 -0
  69. package/models/patch-lead-request-dto.ts +11 -5
  70. package/models/policy-object-dto.ts +9 -3
  71. package/models/product-class.ts +6 -0
  72. package/models/shared-create-lead-policy-request-dto.ts +62 -0
  73. package/models/shared-lead-policy-object-dto.ts +48 -0
  74. package/models/shared-update-named-range-request-dto.ts +42 -0
  75. package/models/update-lead-request-dto.ts +35 -29
  76. package/models/update-named-range-request-dto.ts +36 -0
  77. package/models/update-named-range-response-class.ts +31 -0
  78. package/package.json +2 -2
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import { CreateAccountRequestDto } from './create-account-request-dto';
13
13
  import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
14
+ import { CreateLeadPolicyRequestDto } from './create-lead-policy-request-dto';
14
15
  import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
15
- import { CreatePolicyRequestDto } from './create-policy-request-dto';
16
16
  import { PremiumOverrideRequestDto } from './premium-override-request-dto';
17
17
  import { UploadedDocumentDto } from './uploaded-document-dto';
18
18
  /**
@@ -22,75 +22,81 @@ import { UploadedDocumentDto } from './uploaded-document-dto';
22
22
  */
23
23
  export interface GrpcUpdateLeadRequestDto {
24
24
  /**
25
- * Unique identifier referencing the product version.
25
+ * The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
26
26
  * @type {number}
27
27
  * @memberof GrpcUpdateLeadRequestDto
28
28
  */
29
29
  'productVersionId'?: number;
30
30
  /**
31
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
32
- * @type {string}
31
+ * Account object. The create lead request should either contain accountCode or account. The account content will be validated if the \'validate\' flag is set to true. an empty object is required if \'validate flag is set to false.
32
+ * @type {CreateAccountRequestDto}
33
33
  * @memberof GrpcUpdateLeadRequestDto
34
34
  */
35
- 'status': string;
35
+ 'account': CreateAccountRequestDto;
36
36
  /**
37
- * Custom data.
38
- * @type {object}
37
+ * The policy object contains necessary information to create a policy. The Policy content will be validated if the \'validate\' flag is set to true
38
+ * @type {CreateLeadPolicyRequestDto}
39
39
  * @memberof GrpcUpdateLeadRequestDto
40
40
  */
41
- 'customData'?: object;
41
+ 'policy': CreateLeadPolicyRequestDto;
42
42
  /**
43
- * Premium Override
44
- * @type {Array<PremiumOverrideRequestDto>}
43
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
44
+ * @type {string}
45
45
  * @memberof GrpcUpdateLeadRequestDto
46
46
  */
47
- 'premiumOverride'?: Array<PremiumOverrideRequestDto>;
47
+ 'status': string;
48
48
  /**
49
- * Payment method
50
- * @type {CreatePaymentMethodRequestDto}
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
+ * @type {CreateBankAccountRequestDto}
51
51
  * @memberof GrpcUpdateLeadRequestDto
52
52
  */
53
- 'paymentMethod': CreatePaymentMethodRequestDto;
53
+ 'bankAccount'?: CreateBankAccountRequestDto;
54
54
  /**
55
- *
56
- * @type {string}
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
+ * @type {object}
57
57
  * @memberof GrpcUpdateLeadRequestDto
58
58
  */
59
- 'code': string;
59
+ 'customData'?: object;
60
60
  /**
61
- *
62
- * @type {CreateAccountRequestDto}
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
+ * @type {UploadedDocumentDto}
63
63
  * @memberof GrpcUpdateLeadRequestDto
64
64
  */
65
- 'account': CreateAccountRequestDto;
65
+ 'uploadedDocument'?: UploadedDocumentDto;
66
66
  /**
67
- *
68
- * @type {CreatePolicyRequestDto}
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
+ * @type {Array<PremiumOverrideRequestDto>}
69
69
  * @memberof GrpcUpdateLeadRequestDto
70
70
  */
71
- 'policy': CreatePolicyRequestDto;
71
+ 'premiumOverride'?: Array<PremiumOverrideRequestDto>;
72
72
  /**
73
- *
74
- * @type {boolean}
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
+ * @type {string}
75
75
  * @memberof GrpcUpdateLeadRequestDto
76
76
  */
77
- 'shouldTriggerWorkflow'?: boolean;
77
+ 'accountCode'?: string;
78
78
  /**
79
- *
80
- * @type {CreateBankAccountRequestDto}
79
+ * Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
80
+ * @type {CreatePaymentMethodRequestDto}
81
81
  * @memberof GrpcUpdateLeadRequestDto
82
82
  */
83
- 'bankAccount'?: CreateBankAccountRequestDto;
83
+ 'paymentMethod'?: CreatePaymentMethodRequestDto;
84
84
  /**
85
- *
86
- * @type {UploadedDocumentDto}
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
+ * @type {boolean}
87
87
  * @memberof GrpcUpdateLeadRequestDto
88
88
  */
89
- 'uploadedDocument'?: UploadedDocumentDto;
89
+ 'validate'?: boolean;
90
90
  /**
91
91
  *
92
92
  * @type {string}
93
93
  * @memberof GrpcUpdateLeadRequestDto
94
94
  */
95
- 'accountCode'?: string;
95
+ 'code': string;
96
+ /**
97
+ *
98
+ * @type {boolean}
99
+ * @memberof GrpcUpdateLeadRequestDto
100
+ */
101
+ 'shouldTriggerWorkflow'?: boolean;
96
102
  }
@@ -7,10 +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-policy-request-dto';
10
11
  export * from './create-lead-request-dto';
11
12
  export * from './create-lead-response-class';
12
13
  export * from './create-lead-status-request-dto';
13
14
  export * from './create-lead-status-response-class';
15
+ export * from './create-named-range-request-dto';
16
+ export * from './create-named-range-response-class';
14
17
  export * from './create-payment-method-request-dto';
15
18
  export * from './create-policy-request-dto';
16
19
  export * from './create-policy-response-class';
@@ -26,6 +29,7 @@ export * from './delete-response-class';
26
29
  export * from './get-insured-object-response-class';
27
30
  export * from './get-lead-response-class';
28
31
  export * from './get-lead-status-response-class';
32
+ export * from './get-named-range-response-class';
29
33
  export * from './get-policy-data-by-date-request-dto';
30
34
  export * from './get-policy-request-dto';
31
35
  export * from './get-policy-response-class';
@@ -47,6 +51,8 @@ export * from './grouped-product-factor-value-class';
47
51
  export * from './grouped-product-factors-response-class';
48
52
  export * from './grpc-patch-lead-request-dto';
49
53
  export * from './grpc-update-lead-request-dto';
54
+ export * from './inline-response200';
55
+ export * from './inline-response503';
50
56
  export * from './insured-object-class';
51
57
  export * from './insured-object-type-class';
52
58
  export * from './invoice-item-class';
@@ -58,6 +64,7 @@ export * from './list-insured-object-types-response-class';
58
64
  export * from './list-insured-objects-response-class';
59
65
  export * from './list-lead-statuses-response-class';
60
66
  export * from './list-leads-response-class';
67
+ export * from './list-named-ranges-response-class';
61
68
  export * from './list-policies-response-class';
62
69
  export * from './list-premium-formulas-response-class';
63
70
  export * from './list-product-factors-response-class';
@@ -65,6 +72,7 @@ export * from './list-product-field-types-response-class';
65
72
  export * from './list-product-fields-response-class';
66
73
  export * from './list-products-response-class';
67
74
  export * from './list-request-dto';
75
+ export * from './named-range-class';
68
76
  export * from './patch-lead-request-dto';
69
77
  export * from './patch-lead-response-class';
70
78
  export * from './policy-class';
@@ -84,8 +92,11 @@ export * from './product-field-class';
84
92
  export * from './product-field-type-class';
85
93
  export * from './product-version-class';
86
94
  export * from './sepa-dto';
95
+ export * from './shared-create-lead-policy-request-dto';
87
96
  export * from './shared-invoice-class';
97
+ export * from './shared-lead-policy-object-dto';
88
98
  export * from './shared-product-field-class';
99
+ export * from './shared-update-named-range-request-dto';
89
100
  export * from './shared-update-premium-formula-request-dto';
90
101
  export * from './store-product-factors-request-dto';
91
102
  export * from './store-product-factors-response-class';
@@ -97,6 +108,8 @@ export * from './timeslice-class';
97
108
  export * from './update-insured-object-request-dto';
98
109
  export * from './update-lead-request-dto';
99
110
  export * from './update-lead-response-class';
111
+ export * from './update-named-range-request-dto';
112
+ export * from './update-named-range-response-class';
100
113
  export * from './update-policy-request-dto';
101
114
  export * from './update-policy-response-class';
102
115
  export * from './update-premium-formula-request-dto';
@@ -23,10 +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-policy-request-dto"), exports);
26
27
  __exportStar(require("./create-lead-request-dto"), exports);
27
28
  __exportStar(require("./create-lead-response-class"), exports);
28
29
  __exportStar(require("./create-lead-status-request-dto"), exports);
29
30
  __exportStar(require("./create-lead-status-response-class"), exports);
31
+ __exportStar(require("./create-named-range-request-dto"), exports);
32
+ __exportStar(require("./create-named-range-response-class"), exports);
30
33
  __exportStar(require("./create-payment-method-request-dto"), exports);
31
34
  __exportStar(require("./create-policy-request-dto"), exports);
32
35
  __exportStar(require("./create-policy-response-class"), exports);
@@ -42,6 +45,7 @@ __exportStar(require("./delete-response-class"), exports);
42
45
  __exportStar(require("./get-insured-object-response-class"), exports);
43
46
  __exportStar(require("./get-lead-response-class"), exports);
44
47
  __exportStar(require("./get-lead-status-response-class"), exports);
48
+ __exportStar(require("./get-named-range-response-class"), exports);
45
49
  __exportStar(require("./get-policy-data-by-date-request-dto"), exports);
46
50
  __exportStar(require("./get-policy-request-dto"), exports);
47
51
  __exportStar(require("./get-policy-response-class"), exports);
@@ -63,6 +67,8 @@ __exportStar(require("./grouped-product-factor-value-class"), exports);
63
67
  __exportStar(require("./grouped-product-factors-response-class"), exports);
64
68
  __exportStar(require("./grpc-patch-lead-request-dto"), exports);
65
69
  __exportStar(require("./grpc-update-lead-request-dto"), exports);
70
+ __exportStar(require("./inline-response200"), exports);
71
+ __exportStar(require("./inline-response503"), exports);
66
72
  __exportStar(require("./insured-object-class"), exports);
67
73
  __exportStar(require("./insured-object-type-class"), exports);
68
74
  __exportStar(require("./invoice-item-class"), exports);
@@ -74,6 +80,7 @@ __exportStar(require("./list-insured-object-types-response-class"), exports);
74
80
  __exportStar(require("./list-insured-objects-response-class"), exports);
75
81
  __exportStar(require("./list-lead-statuses-response-class"), exports);
76
82
  __exportStar(require("./list-leads-response-class"), exports);
83
+ __exportStar(require("./list-named-ranges-response-class"), exports);
77
84
  __exportStar(require("./list-policies-response-class"), exports);
78
85
  __exportStar(require("./list-premium-formulas-response-class"), exports);
79
86
  __exportStar(require("./list-product-factors-response-class"), exports);
@@ -81,6 +88,7 @@ __exportStar(require("./list-product-field-types-response-class"), exports);
81
88
  __exportStar(require("./list-product-fields-response-class"), exports);
82
89
  __exportStar(require("./list-products-response-class"), exports);
83
90
  __exportStar(require("./list-request-dto"), exports);
91
+ __exportStar(require("./named-range-class"), exports);
84
92
  __exportStar(require("./patch-lead-request-dto"), exports);
85
93
  __exportStar(require("./patch-lead-response-class"), exports);
86
94
  __exportStar(require("./policy-class"), exports);
@@ -100,8 +108,11 @@ __exportStar(require("./product-field-class"), exports);
100
108
  __exportStar(require("./product-field-type-class"), exports);
101
109
  __exportStar(require("./product-version-class"), exports);
102
110
  __exportStar(require("./sepa-dto"), exports);
111
+ __exportStar(require("./shared-create-lead-policy-request-dto"), exports);
103
112
  __exportStar(require("./shared-invoice-class"), exports);
113
+ __exportStar(require("./shared-lead-policy-object-dto"), exports);
104
114
  __exportStar(require("./shared-product-field-class"), exports);
115
+ __exportStar(require("./shared-update-named-range-request-dto"), exports);
105
116
  __exportStar(require("./shared-update-premium-formula-request-dto"), exports);
106
117
  __exportStar(require("./store-product-factors-request-dto"), exports);
107
118
  __exportStar(require("./store-product-factors-response-class"), exports);
@@ -113,6 +124,8 @@ __exportStar(require("./timeslice-class"), exports);
113
124
  __exportStar(require("./update-insured-object-request-dto"), exports);
114
125
  __exportStar(require("./update-lead-request-dto"), exports);
115
126
  __exportStar(require("./update-lead-response-class"), exports);
127
+ __exportStar(require("./update-named-range-request-dto"), exports);
128
+ __exportStar(require("./update-named-range-response-class"), exports);
116
129
  __exportStar(require("./update-policy-request-dto"), exports);
117
130
  __exportStar(require("./update-policy-response-class"), exports);
118
131
  __exportStar(require("./update-premium-formula-request-dto"), exports);
@@ -0,0 +1,54 @@
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 InlineResponse200
16
+ */
17
+ export interface InlineResponse200 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InlineResponse200
22
+ */
23
+ 'status'?: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: { [key: string]: string; }; }}
27
+ * @memberof InlineResponse200
28
+ */
29
+ 'info'?: {
30
+ [key: string]: {
31
+ [key: string]: string;
32
+ };
33
+ } | null;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @memberof InlineResponse200
38
+ */
39
+ 'error'?: {
40
+ [key: string]: {
41
+ [key: string]: string;
42
+ };
43
+ } | null;
44
+ /**
45
+ *
46
+ * @type {{ [key: string]: { [key: string]: string; }; }}
47
+ * @memberof InlineResponse200
48
+ */
49
+ 'details'?: {
50
+ [key: string]: {
51
+ [key: string]: string;
52
+ };
53
+ };
54
+ }
@@ -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 });
@@ -0,0 +1,54 @@
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 InlineResponse503
16
+ */
17
+ export interface InlineResponse503 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InlineResponse503
22
+ */
23
+ 'status'?: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: { [key: string]: string; }; }}
27
+ * @memberof InlineResponse503
28
+ */
29
+ 'info'?: {
30
+ [key: string]: {
31
+ [key: string]: string;
32
+ };
33
+ } | null;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @memberof InlineResponse503
38
+ */
39
+ 'error'?: {
40
+ [key: string]: {
41
+ [key: string]: string;
42
+ };
43
+ } | null;
44
+ /**
45
+ *
46
+ * @type {{ [key: string]: { [key: string]: string; }; }}
47
+ * @memberof InlineResponse503
48
+ */
49
+ 'details'?: {
50
+ [key: string]: {
51
+ [key: string]: string;
52
+ };
53
+ };
54
+ }
@@ -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 });
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { CreateAccountRequestDto } from './create-account-request-dto';
13
+ import { CreateLeadPolicyRequestDto } from './create-lead-policy-request-dto';
13
14
  import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
14
- import { CreatePolicyRequestDto } from './create-policy-request-dto';
15
15
  import { LeadBankAccountClass } from './lead-bank-account-class';
16
16
  import { PremiumOverrideRequestClass } from './premium-override-request-class';
17
17
  import { SharedInvoiceClass } from './shared-invoice-class';
@@ -33,7 +33,7 @@ export interface LeadClass {
33
33
  * @type {string}
34
34
  * @memberof LeadClass
35
35
  */
36
- 'code'?: string;
36
+ 'code': string;
37
37
  /**
38
38
  * Emil Resources Names (ERN) identifies the most specific owner of a resource.
39
39
  * @type {string}
@@ -60,10 +60,10 @@ export interface LeadClass {
60
60
  'account': CreateAccountRequestDto;
61
61
  /**
62
62
  * Lead policy.
63
- * @type {CreatePolicyRequestDto}
63
+ * @type {CreateLeadPolicyRequestDto}
64
64
  * @memberof LeadClass
65
65
  */
66
- 'policy': CreatePolicyRequestDto;
66
+ 'policy': CreateLeadPolicyRequestDto;
67
67
  /**
68
68
  * Lead bank account, will be treated as a reference to payout customer claims.
69
69
  * @type {LeadBankAccountClass}
@@ -111,11 +111,17 @@ export interface LeadClass {
111
111
  * @type {SharedInvoiceClass}
112
112
  * @memberof LeadClass
113
113
  */
114
- 'quote': SharedInvoiceClass;
114
+ 'quote'?: SharedInvoiceClass;
115
115
  /**
116
116
  * Payment method. When a payment method is provided, it needs to be handled in the workflow based on its type.
117
117
  * @type {CreatePaymentMethodRequestDto}
118
118
  * @memberof LeadClass
119
119
  */
120
- 'paymentMethod': CreatePaymentMethodRequestDto;
120
+ 'paymentMethod'?: CreatePaymentMethodRequestDto;
121
+ /**
122
+ * A indicator to validate the lead.
123
+ * @type {boolean}
124
+ * @memberof LeadClass
125
+ */
126
+ 'validate': boolean;
121
127
  }
@@ -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 ListNamedRangesResponseClass
16
+ */
17
+ export interface ListNamedRangesResponseClass {
18
+ /**
19
+ * Named ranges.
20
+ * @type {Array<string>}
21
+ * @memberof ListNamedRangesResponseClass
22
+ */
23
+ 'items': Array<string>;
24
+ /**
25
+ * Next Page token
26
+ * @type {string}
27
+ * @memberof ListNamedRangesResponseClass
28
+ */
29
+ 'nextPageToken': string;
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 });
@@ -0,0 +1,72 @@
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 NamedRangeClass
16
+ */
17
+ export interface NamedRangeClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof NamedRangeClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier referencing the product version.
26
+ * @type {number}
27
+ * @memberof NamedRangeClass
28
+ */
29
+ 'productVersionId': number;
30
+ /**
31
+ * Named range name.
32
+ * @type {string}
33
+ * @memberof NamedRangeClass
34
+ */
35
+ 'name': string;
36
+ /**
37
+ * true if the named range table has the header row or false otherwise.
38
+ * @type {boolean}
39
+ * @memberof NamedRangeClass
40
+ */
41
+ 'hasHeader': boolean;
42
+ /**
43
+ * Type of the file with the named range (CSV, XLS or XLSX).
44
+ * @type {string}
45
+ * @memberof NamedRangeClass
46
+ */
47
+ 'fileType': string;
48
+ /**
49
+ * Key the file is stored in S3 with.
50
+ * @type {string}
51
+ * @memberof NamedRangeClass
52
+ */
53
+ 's3Key': string;
54
+ /**
55
+ * Signed S3 URL for the named range file.
56
+ * @type {string}
57
+ * @memberof NamedRangeClass
58
+ */
59
+ 'signedS3Url': string;
60
+ /**
61
+ * Time at which the object was created.
62
+ * @type {string}
63
+ * @memberof NamedRangeClass
64
+ */
65
+ 'createdAt': string;
66
+ /**
67
+ * Time at which the object was updated.
68
+ * @type {string}
69
+ * @memberof NamedRangeClass
70
+ */
71
+ 'updatedAt': string;
72
+ }
@@ -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 });
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import { CreateAccountRequestDto } from './create-account-request-dto';
13
13
  import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
14
+ import { CreateLeadPolicyRequestDto } from './create-lead-policy-request-dto';
14
15
  import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
15
- import { CreatePolicyRequestDto } from './create-policy-request-dto';
16
16
  import { PremiumOverrideRequestDto } from './premium-override-request-dto';
17
17
  import { UploadedDocumentDto } from './uploaded-document-dto';
18
18
  /**
@@ -35,12 +35,12 @@ export interface PatchLeadRequestDto {
35
35
  'account'?: CreateAccountRequestDto;
36
36
  /**
37
37
  * Policy
38
- * @type {CreatePolicyRequestDto}
38
+ * @type {CreateLeadPolicyRequestDto}
39
39
  * @memberof PatchLeadRequestDto
40
40
  */
41
- 'policy'?: CreatePolicyRequestDto;
41
+ 'policy'?: CreateLeadPolicyRequestDto;
42
42
  /**
43
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
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
  */
@@ -80,5 +80,11 @@ export interface PatchLeadRequestDto {
80
80
  * @type {CreatePaymentMethodRequestDto}
81
81
  * @memberof PatchLeadRequestDto
82
82
  */
83
- 'paymentMethod': CreatePaymentMethodRequestDto;
83
+ 'paymentMethod'?: CreatePaymentMethodRequestDto;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof PatchLeadRequestDto
88
+ */
89
+ 'validate'?: boolean;
84
90
  }
@@ -16,11 +16,17 @@
16
16
  */
17
17
  export interface PolicyObjectDto {
18
18
  /**
19
- * Unique identifier referencing the insured object.
20
- * @type {number}
19
+ * The id of the insured object to be used in the policy. The insured object id will be validated if the \'validate\' flag is set to true.
20
+ * @type {object}
21
+ * @memberof PolicyObjectDto
22
+ */
23
+ 'insuredObjectId'?: object;
24
+ /**
25
+ * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
26
+ * @type {string}
21
27
  * @memberof PolicyObjectDto
22
28
  */
23
- 'insuredObjectId': number;
29
+ 'insuredObjectName'?: string;
24
30
  /**
25
31
  * Insured object data.
26
32
  * @type {object}
@@ -41,6 +41,12 @@ export interface ProductClass {
41
41
  * @memberof ProductClass
42
42
  */
43
43
  'slug': string;
44
+ /**
45
+ * Default language of the product.
46
+ * @type {string}
47
+ * @memberof ProductClass
48
+ */
49
+ 'defaultLanguage': string;
44
50
  /**
45
51
  * Insured object types covered under product.
46
52
  * @type {Array<InsuredObjectTypeClass>}