@emilgroup/insurance-sdk-node 1.104.1-beta.6 → 1.104.1-beta.61
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/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/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/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/package.json +1 -1
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
|
*/
|