@emilgroup/insurance-sdk-node 1.76.0 → 1.76.1-beta.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 (80) hide show
  1. package/.openapi-generator/FILES +14 -4
  2. package/README.md +2 -2
  3. package/api/booking-funnels-api.ts +31 -31
  4. package/api/commission-agreement-items-api.ts +4 -4
  5. package/api/policies-api.ts +32 -32
  6. package/api/product-fields-api.ts +16 -16
  7. package/api/status-transition-rules-api.ts +31 -31
  8. package/dist/api/booking-funnels-api.d.ts +18 -18
  9. package/dist/api/booking-funnels-api.js +24 -24
  10. package/dist/api/commission-agreement-items-api.d.ts +4 -4
  11. package/dist/api/commission-agreement-items-api.js +3 -3
  12. package/dist/api/policies-api.d.ts +18 -18
  13. package/dist/api/policies-api.js +24 -24
  14. package/dist/api/product-fields-api.d.ts +9 -9
  15. package/dist/api/product-fields-api.js +12 -12
  16. package/dist/api/status-transition-rules-api.d.ts +18 -18
  17. package/dist/api/status-transition-rules-api.js +24 -24
  18. package/dist/models/create-draft-policy-request-dto.d.ts +6 -0
  19. package/dist/models/create-product-field-request-dto.d.ts +22 -0
  20. package/dist/models/create-product-field-request-dto.js +9 -1
  21. package/dist/models/create-product-version-request-dto.d.ts +30 -0
  22. package/dist/models/{patch-booking-funnel-request-dto.d.ts → grpc-patch-booking-funnel-request-dto.d.ts} +10 -10
  23. package/dist/models/grpc-patch-draft-policy-request-dto.d.ts +76 -0
  24. package/dist/models/{patch-draft-policy-request-dto.js → grpc-patch-draft-policy-request-dto.js} +2 -2
  25. package/dist/models/grpc-patch-status-transition-rule-request-dto.d.ts +53 -0
  26. package/dist/models/{update-status-transition-rule-request-dto.js → grpc-patch-status-transition-rule-request-dto.js} +2 -2
  27. package/dist/models/{update-booking-funnel-request-dto.d.ts → grpc-update-booking-funnel-request-dto.d.ts} +10 -10
  28. package/dist/models/grpc-update-booking-funnel-request-dto.js +15 -0
  29. package/dist/models/grpc-update-status-transition-rule-request-dto.d.ts +53 -0
  30. package/dist/models/grpc-update-status-transition-rule-request-dto.js +20 -0
  31. package/dist/models/index.d.ts +14 -4
  32. package/dist/models/index.js +14 -4
  33. package/dist/models/patch-status-transition-rule-request-dto.d.ts +4 -10
  34. package/dist/models/product-field-class.d.ts +34 -0
  35. package/dist/models/product-field-class.js +9 -0
  36. package/dist/models/rest-create-draft-policy-request-dto.d.ts +70 -0
  37. package/dist/models/rest-create-draft-policy-request-dto.js +23 -0
  38. package/dist/models/rest-create-status-transition-rule-request-dto.d.ts +47 -0
  39. package/dist/models/rest-create-status-transition-rule-request-dto.js +20 -0
  40. package/dist/models/rest-patch-booking-funnel-request-dto.d.ts +60 -0
  41. package/dist/models/rest-patch-booking-funnel-request-dto.js +15 -0
  42. package/dist/models/{patch-draft-policy-request-dto.d.ts → rest-patch-draft-policy-request-dto.d.ts} +12 -12
  43. package/dist/models/rest-patch-draft-policy-request-dto.js +23 -0
  44. package/dist/models/rest-update-booking-funnel-request-dto.d.ts +60 -0
  45. package/dist/models/rest-update-booking-funnel-request-dto.js +15 -0
  46. package/dist/models/rest-update-product-field-request-dto.d.ts +171 -0
  47. package/dist/models/rest-update-product-field-request-dto.js +28 -0
  48. package/dist/models/rest-update-status-transition-rule-request-dto.d.ts +47 -0
  49. package/dist/models/rest-update-status-transition-rule-request-dto.js +20 -0
  50. package/dist/models/shared-delete-request-dto.d.ts +24 -0
  51. package/dist/models/shared-delete-request-dto.js +15 -0
  52. package/dist/models/shared-product-field-class.d.ts +34 -0
  53. package/dist/models/shared-product-field-class.js +9 -0
  54. package/dist/models/update-product-field-request-dto.d.ts +22 -0
  55. package/dist/models/update-product-field-request-dto.js +9 -1
  56. package/models/create-draft-policy-request-dto.ts +6 -0
  57. package/models/create-product-field-request-dto.ts +24 -0
  58. package/models/create-product-version-request-dto.ts +36 -0
  59. package/models/{patch-booking-funnel-request-dto.ts → grpc-patch-booking-funnel-request-dto.ts} +10 -10
  60. package/models/grpc-patch-draft-policy-request-dto.ts +85 -0
  61. package/models/grpc-patch-status-transition-rule-request-dto.ts +62 -0
  62. package/models/{update-booking-funnel-request-dto.ts → grpc-update-booking-funnel-request-dto.ts} +10 -10
  63. package/models/{update-status-transition-rule-request-dto.ts → grpc-update-status-transition-rule-request-dto.ts} +10 -10
  64. package/models/index.ts +14 -4
  65. package/models/patch-status-transition-rule-request-dto.ts +4 -10
  66. package/models/product-field-class.ts +38 -0
  67. package/models/rest-create-draft-policy-request-dto.ts +79 -0
  68. package/models/rest-create-status-transition-rule-request-dto.ts +56 -0
  69. package/models/rest-patch-booking-funnel-request-dto.ts +66 -0
  70. package/models/{patch-draft-policy-request-dto.ts → rest-patch-draft-policy-request-dto.ts} +12 -12
  71. package/models/rest-update-booking-funnel-request-dto.ts +66 -0
  72. package/models/rest-update-product-field-request-dto.ts +182 -0
  73. package/models/rest-update-status-transition-rule-request-dto.ts +56 -0
  74. package/models/shared-delete-request-dto.ts +30 -0
  75. package/models/shared-product-field-class.ts +38 -0
  76. package/models/update-product-field-request-dto.ts +24 -0
  77. package/package.json +1 -1
  78. package/dist/models/update-status-transition-rule-request-dto.d.ts +0 -53
  79. /package/dist/models/{patch-booking-funnel-request-dto.js → create-product-version-request-dto.js} +0 -0
  80. /package/dist/models/{update-booking-funnel-request-dto.js → grpc-patch-booking-funnel-request-dto.js} +0 -0
@@ -0,0 +1,182 @@
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 RestUpdateProductFieldRequestDto
21
+ */
22
+ export interface RestUpdateProductFieldRequestDto {
23
+ /**
24
+ * Product field name
25
+ * @type {string}
26
+ * @memberof RestUpdateProductFieldRequestDto
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * Product field label
31
+ * @type {string}
32
+ * @memberof RestUpdateProductFieldRequestDto
33
+ */
34
+ 'label': string;
35
+ /**
36
+ * Product field type entity
37
+ * @type {string}
38
+ * @memberof RestUpdateProductFieldRequestDto
39
+ */
40
+ 'typeEntity': RestUpdateProductFieldRequestDtoTypeEntityEnum;
41
+ /**
42
+ * Product field type id
43
+ * @type {number}
44
+ * @memberof RestUpdateProductFieldRequestDto
45
+ */
46
+ 'typeId': number;
47
+ /**
48
+ * Insured object id
49
+ * @type {number}
50
+ * @memberof RestUpdateProductFieldRequestDto
51
+ */
52
+ 'insuredObjectId': number;
53
+ /**
54
+ * Product field group
55
+ * @type {string}
56
+ * @memberof RestUpdateProductFieldRequestDto
57
+ */
58
+ 'group': string;
59
+ /**
60
+ * Is field required?
61
+ * @type {boolean}
62
+ * @memberof RestUpdateProductFieldRequestDto
63
+ */
64
+ 'isRequired': boolean;
65
+ /**
66
+ * Is field hidden on the booking funnel?
67
+ * @type {boolean}
68
+ * @memberof RestUpdateProductFieldRequestDto
69
+ */
70
+ 'isHidden': boolean;
71
+ /**
72
+ * Should the field value be unique across policies?
73
+ * @type {boolean}
74
+ * @memberof RestUpdateProductFieldRequestDto
75
+ */
76
+ 'isUnique': boolean;
77
+ /**
78
+ * Should the field be hidden on customer portal?
79
+ * @type {boolean}
80
+ * @memberof RestUpdateProductFieldRequestDto
81
+ */
82
+ 'isHiddenCustomerPortal': boolean;
83
+ /**
84
+ * Should the field be editable on customer portal?
85
+ * @type {boolean}
86
+ * @memberof RestUpdateProductFieldRequestDto
87
+ */
88
+ 'isEditableCustomerPortal': boolean;
89
+ /**
90
+ * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
91
+ * @type {object}
92
+ * @memberof RestUpdateProductFieldRequestDto
93
+ */
94
+ 'defaultValue': object;
95
+ /**
96
+ * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
97
+ * @type {object}
98
+ * @memberof RestUpdateProductFieldRequestDto
99
+ */
100
+ 'minValue'?: object;
101
+ /**
102
+ * Booking funnel description
103
+ * @type {string}
104
+ * @memberof RestUpdateProductFieldRequestDto
105
+ */
106
+ 'bfDescription'?: string;
107
+ /**
108
+ * Booking funnel tooltip
109
+ * @type {string}
110
+ * @memberof RestUpdateProductFieldRequestDto
111
+ */
112
+ 'bfTooltip'?: string;
113
+ /**
114
+ * Booking funnel label
115
+ * @type {string}
116
+ * @memberof RestUpdateProductFieldRequestDto
117
+ */
118
+ 'bfLabel'?: string;
119
+ /**
120
+ * Expression to calculate the field.
121
+ * @type {string}
122
+ * @memberof RestUpdateProductFieldRequestDto
123
+ */
124
+ 'expression'?: string;
125
+ /**
126
+ * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
127
+ * @type {object}
128
+ * @memberof RestUpdateProductFieldRequestDto
129
+ */
130
+ 'maxValue'?: object;
131
+ /**
132
+ * Order index for the product field item, used to define the order of the items in the insured object. The order will also impact the order of the items in the policy itself.
133
+ * @type {number}
134
+ * @memberof RestUpdateProductFieldRequestDto
135
+ */
136
+ 'order'?: number;
137
+ /**
138
+ * order index for the product field for display on the booking funnel, not defined for hidden fields.
139
+ * @type {number}
140
+ * @memberof RestUpdateProductFieldRequestDto
141
+ */
142
+ 'legacyBfOrder'?: number;
143
+ /**
144
+ * Product field metadata object. The field may contain special data specific to the product.
145
+ * @type {object}
146
+ * @memberof RestUpdateProductFieldRequestDto
147
+ */
148
+ 'metadata'?: object;
149
+ /**
150
+ * Overrides automatic dependency check result (if this field is used in the premium calculation or not).
151
+ * @type {string}
152
+ * @memberof RestUpdateProductFieldRequestDto
153
+ */
154
+ 'usedInPremiumCalculationOverride'?: RestUpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum;
155
+ /**
156
+ * Overrides automatic dependency check result (if this field is used in the product field calculation or not).
157
+ * @type {string}
158
+ * @memberof RestUpdateProductFieldRequestDto
159
+ */
160
+ 'usedInFieldCalculationOverride'?: RestUpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum;
161
+ }
162
+
163
+ export const RestUpdateProductFieldRequestDtoTypeEntityEnum = {
164
+ SystemProductFieldType: 'system_product_field_type',
165
+ ProductFactorType: 'product_factor_type'
166
+ } as const;
167
+
168
+ export type RestUpdateProductFieldRequestDtoTypeEntityEnum = typeof RestUpdateProductFieldRequestDtoTypeEntityEnum[keyof typeof RestUpdateProductFieldRequestDtoTypeEntityEnum];
169
+ export const RestUpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum = {
170
+ Used: 'used',
171
+ NotUsed: 'not_used'
172
+ } as const;
173
+
174
+ export type RestUpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum = typeof RestUpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum[keyof typeof RestUpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum];
175
+ export const RestUpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum = {
176
+ Used: 'used',
177
+ NotUsed: 'not_used'
178
+ } as const;
179
+
180
+ export type RestUpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum = typeof RestUpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum[keyof typeof RestUpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum];
181
+
182
+
@@ -0,0 +1,56 @@
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 RestUpdateStatusTransitionRuleRequestDto
21
+ */
22
+ export interface RestUpdateStatusTransitionRuleRequestDto {
23
+ /**
24
+ * Entity type where the rule applies to.
25
+ * @type {string}
26
+ * @memberof RestUpdateStatusTransitionRuleRequestDto
27
+ */
28
+ 'entityType': RestUpdateStatusTransitionRuleRequestDtoEntityTypeEnum;
29
+ /**
30
+ * Current status of the entity.
31
+ * @type {string}
32
+ * @memberof RestUpdateStatusTransitionRuleRequestDto
33
+ */
34
+ 'currentStatus': string;
35
+ /**
36
+ * Array of next statuses of the entity.
37
+ * @type {Array<string>}
38
+ * @memberof RestUpdateStatusTransitionRuleRequestDto
39
+ */
40
+ 'nextStatuses': Array<string>;
41
+ /**
42
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
43
+ * @type {string}
44
+ * @memberof RestUpdateStatusTransitionRuleRequestDto
45
+ */
46
+ 'productSlug': string;
47
+ }
48
+
49
+ export const RestUpdateStatusTransitionRuleRequestDtoEntityTypeEnum = {
50
+ Lead: 'lead',
51
+ Policy: 'policy'
52
+ } as const;
53
+
54
+ export type RestUpdateStatusTransitionRuleRequestDtoEntityTypeEnum = typeof RestUpdateStatusTransitionRuleRequestDtoEntityTypeEnum[keyof typeof RestUpdateStatusTransitionRuleRequestDtoEntityTypeEnum];
55
+
56
+
@@ -0,0 +1,30 @@
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 SharedDeleteRequestDto
21
+ */
22
+ export interface SharedDeleteRequestDto {
23
+ /**
24
+ * Resource id.
25
+ * @type {number}
26
+ * @memberof SharedDeleteRequestDto
27
+ */
28
+ 'id': number;
29
+ }
30
+
@@ -134,6 +134,30 @@ export interface SharedProductFieldClass {
134
134
  * @memberof SharedProductFieldClass
135
135
  */
136
136
  'metadata'?: object;
137
+ /**
138
+ * Is this field is used the premium calculation?
139
+ * @type {boolean}
140
+ * @memberof SharedProductFieldClass
141
+ */
142
+ 'usedInPremiumCalculation': boolean;
143
+ /**
144
+ * Overrides automatic dependency check result (if this field is used in the premium calculation or not).
145
+ * @type {string}
146
+ * @memberof SharedProductFieldClass
147
+ */
148
+ 'usedInPremiumCalculationOverride': SharedProductFieldClassUsedInPremiumCalculationOverrideEnum;
149
+ /**
150
+ * Is this field is used the product field calculation?
151
+ * @type {boolean}
152
+ * @memberof SharedProductFieldClass
153
+ */
154
+ 'usedInFieldCalculation': boolean;
155
+ /**
156
+ * Overrides automatic dependency check result (if this field is used in the product field calculation or not).
157
+ * @type {string}
158
+ * @memberof SharedProductFieldClass
159
+ */
160
+ 'usedInFieldCalculationOverride': SharedProductFieldClassUsedInFieldCalculationOverrideEnum;
137
161
  /**
138
162
  * Time at which the object was created.
139
163
  * @type {string}
@@ -160,3 +184,17 @@ export interface SharedProductFieldClass {
160
184
  'updatedBy': string;
161
185
  }
162
186
 
187
+ export const SharedProductFieldClassUsedInPremiumCalculationOverrideEnum = {
188
+ Used: 'used',
189
+ NotUsed: 'not_used'
190
+ } as const;
191
+
192
+ export type SharedProductFieldClassUsedInPremiumCalculationOverrideEnum = typeof SharedProductFieldClassUsedInPremiumCalculationOverrideEnum[keyof typeof SharedProductFieldClassUsedInPremiumCalculationOverrideEnum];
193
+ export const SharedProductFieldClassUsedInFieldCalculationOverrideEnum = {
194
+ Used: 'used',
195
+ NotUsed: 'not_used'
196
+ } as const;
197
+
198
+ export type SharedProductFieldClassUsedInFieldCalculationOverrideEnum = typeof SharedProductFieldClassUsedInFieldCalculationOverrideEnum[keyof typeof SharedProductFieldClassUsedInFieldCalculationOverrideEnum];
199
+
200
+
@@ -152,6 +152,18 @@ export interface UpdateProductFieldRequestDto {
152
152
  * @memberof UpdateProductFieldRequestDto
153
153
  */
154
154
  'metadata'?: object;
155
+ /**
156
+ * Overrides automatic dependency check result (if this field is used in the premium calculation or not).
157
+ * @type {string}
158
+ * @memberof UpdateProductFieldRequestDto
159
+ */
160
+ 'usedInPremiumCalculationOverride'?: UpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum;
161
+ /**
162
+ * Overrides automatic dependency check result (if this field is used in the product field calculation or not).
163
+ * @type {string}
164
+ * @memberof UpdateProductFieldRequestDto
165
+ */
166
+ 'usedInFieldCalculationOverride'?: UpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum;
155
167
  }
156
168
 
157
169
  export const UpdateProductFieldRequestDtoTypeEntityEnum = {
@@ -160,5 +172,17 @@ export const UpdateProductFieldRequestDtoTypeEntityEnum = {
160
172
  } as const;
161
173
 
162
174
  export type UpdateProductFieldRequestDtoTypeEntityEnum = typeof UpdateProductFieldRequestDtoTypeEntityEnum[keyof typeof UpdateProductFieldRequestDtoTypeEntityEnum];
175
+ export const UpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum = {
176
+ Used: 'used',
177
+ NotUsed: 'not_used'
178
+ } as const;
179
+
180
+ export type UpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum = typeof UpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum[keyof typeof UpdateProductFieldRequestDtoUsedInPremiumCalculationOverrideEnum];
181
+ export const UpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum = {
182
+ Used: 'used',
183
+ NotUsed: 'not_used'
184
+ } as const;
185
+
186
+ export type UpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum = typeof UpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum[keyof typeof UpdateProductFieldRequestDtoUsedInFieldCalculationOverrideEnum];
163
187
 
164
188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.76.0",
3
+ "version": "1.76.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,53 +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 UpdateStatusTransitionRuleRequestDto
16
- */
17
- export interface UpdateStatusTransitionRuleRequestDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof UpdateStatusTransitionRuleRequestDto
22
- */
23
- 'code': string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof UpdateStatusTransitionRuleRequestDto
28
- */
29
- 'entityType': UpdateStatusTransitionRuleRequestDtoEntityTypeEnum;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof UpdateStatusTransitionRuleRequestDto
34
- */
35
- 'currentStatus': string;
36
- /**
37
- *
38
- * @type {Array<string>}
39
- * @memberof UpdateStatusTransitionRuleRequestDto
40
- */
41
- 'nextStatuses': Array<string>;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof UpdateStatusTransitionRuleRequestDto
46
- */
47
- 'productSlug': string;
48
- }
49
- export declare const UpdateStatusTransitionRuleRequestDtoEntityTypeEnum: {
50
- readonly Lead: "lead";
51
- readonly Policy: "policy";
52
- };
53
- export type UpdateStatusTransitionRuleRequestDtoEntityTypeEnum = typeof UpdateStatusTransitionRuleRequestDtoEntityTypeEnum[keyof typeof UpdateStatusTransitionRuleRequestDtoEntityTypeEnum];