@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.
Files changed (36) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +4 -4
  4. package/api/policies-api.ts +32 -32
  5. package/api/premium-calculation-api.ts +169 -0
  6. package/api.ts +2 -0
  7. package/dist/api/leads-api.d.ts +4 -4
  8. package/dist/api/leads-api.js +3 -3
  9. package/dist/api/policies-api.d.ts +32 -32
  10. package/dist/api/policies-api.js +28 -28
  11. package/dist/api/premium-calculation-api.d.ts +97 -0
  12. package/dist/api/premium-calculation-api.js +228 -0
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/calculate-premium-response-class.d.ts +39 -0
  16. package/dist/models/calculate-premium-response-class.js +15 -0
  17. package/dist/models/calculated-policy-objects-class.d.ts +25 -0
  18. package/dist/models/calculated-policy-objects-class.js +15 -0
  19. package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
  20. package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/dist/models/partner-class.d.ts +6 -0
  24. package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
  25. package/dist/models/policy-object-dto.d.ts +1 -1
  26. package/dist/models/policy-premium-item-class.d.ts +1 -1
  27. package/models/calculate-premium-response-class.ts +45 -0
  28. package/models/calculated-policy-objects-class.ts +31 -0
  29. package/models/create-draft-policy-request-dto.ts +1 -1
  30. package/models/get-draft-policy-request-dto.ts +1 -1
  31. package/models/index.ts +2 -0
  32. package/models/partner-class.ts +6 -0
  33. package/models/patch-draft-policy-request-dto.ts +2 -2
  34. package/models/policy-object-dto.ts +1 -1
  35. package/models/policy-premium-item-class.ts +1 -1
  36. package/package.json +1 -1
@@ -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
- * Is premium override?
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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.104.1-beta.6",
3
+ "version": "1.104.1-beta.61",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [