@emilgroup/insurance-sdk-node 1.104.1-beta.7 → 1.104.1-beta.71
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 +3 -0
- package/README.md +2 -2
- package/api/leads-api.ts +4 -4
- package/api/policies-api.ts +32 -32
- package/api/premium-calculation-api.ts +169 -0
- package/api.ts +2 -0
- package/dist/api/leads-api.d.ts +4 -4
- package/dist/api/leads-api.js +3 -3
- package/dist/api/policies-api.d.ts +32 -32
- package/dist/api/policies-api.js +28 -28
- package/dist/api/premium-calculation-api.d.ts +97 -0
- package/dist/api/premium-calculation-api.js +228 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/calculate-premium-response-class.d.ts +39 -0
- package/dist/models/calculate-premium-response-class.js +15 -0
- package/dist/models/calculated-policy-objects-class.d.ts +25 -0
- package/dist/models/calculated-policy-objects-class.js +15 -0
- package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/create-premium-formula-request-dto.d.ts +6 -0
- package/dist/models/create-product-request-dto.d.ts +12 -0
- package/dist/models/create-product-version-request-dto.d.ts +6 -0
- package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/partner-class.d.ts +6 -0
- package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
- package/dist/models/policy-object-dto.d.ts +1 -1
- package/dist/models/policy-premium-item-class.d.ts +1 -1
- package/dist/models/premium-formula-class.d.ts +6 -0
- package/models/calculate-premium-response-class.ts +45 -0
- package/models/calculated-policy-objects-class.ts +31 -0
- package/models/create-draft-policy-request-dto.ts +1 -1
- package/models/create-premium-formula-request-dto.ts +6 -0
- package/models/create-product-request-dto.ts +12 -0
- package/models/create-product-version-request-dto.ts +6 -0
- package/models/get-draft-policy-request-dto.ts +1 -1
- package/models/index.ts +2 -0
- package/models/partner-class.ts +6 -0
- package/models/patch-draft-policy-request-dto.ts +2 -2
- package/models/policy-object-dto.ts +1 -1
- package/models/policy-premium-item-class.ts +1 -1
- package/models/premium-formula-class.ts +6 -0
- package/package.json +1 -1
|
@@ -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 { CalculatedPolicyObjectClass } from './calculated-policy-object-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CalculatedPolicyObjectsClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CalculatedPolicyObjectsClass {
|
|
24
|
+
/**
|
|
25
|
+
* Calculated policy objects.
|
|
26
|
+
* @type {Array<CalculatedPolicyObjectClass>}
|
|
27
|
+
* @memberof CalculatedPolicyObjectsClass
|
|
28
|
+
*/
|
|
29
|
+
'policyObjects': Array<CalculatedPolicyObjectClass>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -29,7 +29,7 @@ export interface CreateDraftPolicyRequestDto {
|
|
|
29
29
|
*/
|
|
30
30
|
'policyObjects': Array<PolicyObjectDto>;
|
|
31
31
|
/**
|
|
32
|
-
* Date from which the policy should be updated. This will create a new timeline starting from this date.
|
|
32
|
+
* Date from which the policy should be updated. This will create a new timeline starting from this date. Required — unlike on the PATCH draft endpoint, `from` cannot be omitted when creating a draft.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CreateDraftPolicyRequestDto
|
|
35
35
|
*/
|
|
@@ -80,6 +80,12 @@ export interface CreatePremiumFormulaRequestDto {
|
|
|
80
80
|
* @memberof CreatePremiumFormulaRequestDto
|
|
81
81
|
*/
|
|
82
82
|
'order': number;
|
|
83
|
+
/**
|
|
84
|
+
* Unique, immutable identifier for this Premium item. Omit it and one is generated. Supply it only when importing a Premium item that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CreatePremiumFormulaRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'code'?: string;
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
export const CreatePremiumFormulaRequestDtoTypeEnum = {
|
|
@@ -50,6 +50,18 @@ export interface CreateProductRequestDto {
|
|
|
50
50
|
* @memberof CreateProductRequestDto
|
|
51
51
|
*/
|
|
52
52
|
'defaultLanguage': CreateProductRequestDtoDefaultLanguageEnum;
|
|
53
|
+
/**
|
|
54
|
+
* Unique, immutable identifier for this product. Omit it and one is generated. Supply it only when importing a product that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateProductRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'code'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Unique, immutable identifier for the product version created along with the product. Omit it and one is generated. Supply it only when importing a product that already exists in another environment, to keep cross-service configuration pointing at its first version. It cannot be changed afterwards.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateProductRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'versionCode'?: string;
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
export const CreateProductRequestDtoInsuredObjectTypesEnum = {
|
|
@@ -32,5 +32,11 @@ export interface CreateProductVersionRequestDto {
|
|
|
32
32
|
* @memberof CreateProductVersionRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'description': string;
|
|
35
|
+
/**
|
|
36
|
+
* Unique, immutable identifier for this product version. Omit it and one is generated. Supply it only when importing a product version that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateProductVersionRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'code'?: string;
|
|
35
41
|
}
|
|
36
42
|
|
|
@@ -27,7 +27,7 @@ export interface GetDraftPolicyRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'policyCode': string;
|
|
29
29
|
/**
|
|
30
|
-
* Fields to expand response
|
|
30
|
+
* Fields to expand in the draft response. Pass the unprefixed relation name; for example, \"premiumItems\" expands the draft premium items relation.<br/> <br/> <i>Allowed values: version, timelines, premiums, premiumItems, premiumFormulas</i>
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof GetDraftPolicyRequestDto
|
|
33
33
|
*/
|
package/models/index.ts
CHANGED
|
@@ -7,8 +7,10 @@ export * from './billing-address-dto';
|
|
|
7
7
|
export * from './booking-funnel-class';
|
|
8
8
|
export * from './calculate-custom-premium-request-dto';
|
|
9
9
|
export * from './calculate-premium-request-dto';
|
|
10
|
+
export * from './calculate-premium-response-class';
|
|
10
11
|
export * from './calculate-product-fields-request-dto';
|
|
11
12
|
export * from './calculated-policy-object-class';
|
|
13
|
+
export * from './calculated-policy-objects-class';
|
|
12
14
|
export * from './calculation-errors-class';
|
|
13
15
|
export * from './calculation-item-errors-class';
|
|
14
16
|
export * from './calculation-message-class';
|
package/models/partner-class.ts
CHANGED
|
@@ -69,5 +69,11 @@ export interface PartnerClass {
|
|
|
69
69
|
* @memberof PartnerClass
|
|
70
70
|
*/
|
|
71
71
|
'tags': Array<TagClass>;
|
|
72
|
+
/**
|
|
73
|
+
* The business subtypes of the partner, as recorded in partnerservice. Empty when unset.
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof PartnerClass
|
|
76
|
+
*/
|
|
77
|
+
'subtypes': Array<string>;
|
|
72
78
|
}
|
|
73
79
|
|
|
@@ -29,7 +29,7 @@ export interface PatchDraftPolicyRequestDto {
|
|
|
29
29
|
*/
|
|
30
30
|
'policyObjects': Array<PolicyObjectDto>;
|
|
31
31
|
/**
|
|
32
|
-
* Date from which the policy should be updated. This will create a new timeline starting from this date.
|
|
32
|
+
* Date from which the policy should be updated. This will create a new timeline starting from this date. Optional on PATCH — omit it to leave the current version unaffected.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof PatchDraftPolicyRequestDto
|
|
35
35
|
*/
|
|
@@ -41,7 +41,7 @@ export interface PatchDraftPolicyRequestDto {
|
|
|
41
41
|
*/
|
|
42
42
|
'to'?: string;
|
|
43
43
|
/**
|
|
44
|
-
* Policy revision status.
|
|
44
|
+
* Policy revision status. Terminal values change the draft lifecycle:<br/> <br/> - <b>APPROVED</b>: promotes the draft to the current policy version (`isCurrent: true`, `isDraft: false`), replacing the current version.<br/> - <b>REJECTED</b>: deletes the draft version; subsequent `GET .../draft` requests return 404.<br/> - <b>CREATED</b>, <b>IN_REVIEW</b>, or <b>REVIEWED</b>: updates the draft in place with the supplied payload and leaves it as a draft (`isCurrent: false`, `isDraft: true`).
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof PatchDraftPolicyRequestDto
|
|
47
47
|
*/
|
|
@@ -33,7 +33,7 @@ export interface PolicyObjectDto {
|
|
|
33
33
|
*/
|
|
34
34
|
'insuredObjectName'?: string;
|
|
35
35
|
/**
|
|
36
|
-
* Insured object data.
|
|
36
|
+
* Insured object data. For the \"Coverage\" insured object, pass the tariff variant as `tariffVariant`, for example `{ \"tariffVariant\": \"...\" }`.
|
|
37
37
|
* @type {object}
|
|
38
38
|
* @memberof PolicyObjectDto
|
|
39
39
|
*/
|
|
@@ -52,7 +52,7 @@ export interface PolicyPremiumItemClass {
|
|
|
52
52
|
*/
|
|
53
53
|
'premiumFormula': PremiumFormulaClass;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Whether this premium item is priced from an override rather than the formula. Read-only — it cannot be set directly. It is computed per formula (matched by `name` + `unit`) from whether the request included a matching entry in `premiumOverride.premiumOverrides`.
|
|
56
56
|
* @type {boolean}
|
|
57
57
|
* @memberof PolicyPremiumItemClass
|
|
58
58
|
*/
|
|
@@ -32,6 +32,12 @@ export interface PremiumFormulaClass {
|
|
|
32
32
|
* @memberof PremiumFormulaClass
|
|
33
33
|
*/
|
|
34
34
|
'productVersionId': number;
|
|
35
|
+
/**
|
|
36
|
+
* Unique, immutable identifier for the Premium item. Stable across environments; use it instead of the numeric id in cross-service configuration.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PremiumFormulaClass
|
|
39
|
+
*/
|
|
40
|
+
'code': string;
|
|
35
41
|
/**
|
|
36
42
|
* Premium group name.
|
|
37
43
|
* @type {string}
|