@emilgroup/insurance-sdk-node 1.24.1 → 1.25.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 (61) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +326 -0
  4. package/api/premium-formulas-api.ts +107 -0
  5. package/api/products-api.ts +122 -4
  6. package/dist/api/leads-api.d.ts +176 -0
  7. package/dist/api/leads-api.js +285 -0
  8. package/dist/api/premium-formulas-api.d.ts +57 -0
  9. package/dist/api/premium-formulas-api.js +93 -0
  10. package/dist/api/products-api.d.ts +68 -4
  11. package/dist/api/products-api.js +103 -3
  12. package/dist/models/create-lead-async-response-class.d.ts +24 -0
  13. package/dist/models/create-lead-async-response-class.js +15 -0
  14. package/dist/models/create-lead-policy-request-dto.d.ts +1 -1
  15. package/dist/models/create-lead-request-dto.d.ts +7 -7
  16. package/dist/models/create-lead-sync-response-class.d.ts +24 -0
  17. package/dist/models/create-lead-sync-response-class.js +15 -0
  18. package/dist/models/create-premium-formula-request-dto.d.ts +12 -0
  19. package/dist/models/empty-response-class.d.ts +24 -0
  20. package/dist/models/empty-response-class.js +15 -0
  21. package/dist/models/get-product-request-dto.d.ts +10 -4
  22. package/dist/models/grpc-patch-lead-request-dto.d.ts +1 -1
  23. package/dist/models/grpc-update-lead-request-dto.d.ts +7 -7
  24. package/dist/models/index.d.ts +4 -0
  25. package/dist/models/index.js +4 -0
  26. package/dist/models/lead-class.d.ts +6 -0
  27. package/dist/models/list-leads-response-class.d.ts +12 -0
  28. package/dist/models/list-policies-response-class.d.ts +12 -0
  29. package/dist/models/patch-lead-request-dto.d.ts +1 -1
  30. package/dist/models/policy-object-dto.d.ts +1 -1
  31. package/dist/models/premium-formula-class.d.ts +12 -0
  32. package/dist/models/shared-create-lead-policy-request-dto.d.ts +1 -1
  33. package/dist/models/shared-lead-policy-object-dto.d.ts +1 -1
  34. package/dist/models/shared-update-premium-formula-request-dto.d.ts +12 -0
  35. package/dist/models/swap-premium-formulas-order-request-dto.d.ts +30 -0
  36. package/dist/models/swap-premium-formulas-order-request-dto.js +15 -0
  37. package/dist/models/update-lead-request-dto.d.ts +7 -7
  38. package/dist/models/update-premium-formula-request-dto.d.ts +12 -0
  39. package/models/create-lead-async-response-class.ts +30 -0
  40. package/models/create-lead-policy-request-dto.ts +1 -1
  41. package/models/create-lead-request-dto.ts +7 -7
  42. package/models/create-lead-sync-response-class.ts +30 -0
  43. package/models/create-premium-formula-request-dto.ts +12 -0
  44. package/models/empty-response-class.ts +30 -0
  45. package/models/get-product-request-dto.ts +10 -4
  46. package/models/grpc-patch-lead-request-dto.ts +1 -1
  47. package/models/grpc-update-lead-request-dto.ts +7 -7
  48. package/models/index.ts +4 -0
  49. package/models/lead-class.ts +6 -0
  50. package/models/list-leads-response-class.ts +12 -0
  51. package/models/list-policies-response-class.ts +12 -0
  52. package/models/patch-lead-request-dto.ts +1 -1
  53. package/models/policy-object-dto.ts +1 -1
  54. package/models/premium-formula-class.ts +12 -0
  55. package/models/shared-create-lead-policy-request-dto.ts +1 -1
  56. package/models/shared-lead-policy-object-dto.ts +1 -1
  57. package/models/shared-update-premium-formula-request-dto.ts +12 -0
  58. package/models/swap-premium-formulas-order-request-dto.ts +36 -0
  59. package/models/update-lead-request-dto.ts +7 -7
  60. package/models/update-premium-formula-request-dto.ts +12 -0
  61. package/package.json +1 -1
@@ -46,13 +46,23 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
46
46
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
47
47
  * @summary Retrieve the product
48
48
  * @param {string} code Unique identifier for the object.
49
- * @param {number} id Product id
49
+ * @param {number} id Unique identifier referencing the product.
50
50
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
51
51
  * @param {string} [expand] Fields to expand response by
52
52
  * @param {*} [options] Override http request option.
53
53
  * @throws {RequiredError}
54
54
  */
55
55
  getProductByCode: (code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
+ /**
57
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
58
+ * @summary Retrieve the product
59
+ * @param {number} id Unique identifier referencing the product.
60
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
61
+ * @param {string} [expand] Fields to expand response by
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ getProductByIdentifier: (id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
66
  /**
57
67
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
58
68
  * @summary List products
@@ -105,13 +115,23 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
105
115
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
106
116
  * @summary Retrieve the product
107
117
  * @param {string} code Unique identifier for the object.
108
- * @param {number} id Product id
118
+ * @param {number} id Unique identifier referencing the product.
109
119
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
110
120
  * @param {string} [expand] Fields to expand response by
111
121
  * @param {*} [options] Override http request option.
112
122
  * @throws {RequiredError}
113
123
  */
114
124
  getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
125
+ /**
126
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
127
+ * @summary Retrieve the product
128
+ * @param {number} id Unique identifier referencing the product.
129
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
130
+ * @param {string} [expand] Fields to expand response by
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
115
135
  /**
116
136
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
117
137
  * @summary List products
@@ -164,13 +184,23 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
164
184
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
165
185
  * @summary Retrieve the product
166
186
  * @param {string} code Unique identifier for the object.
167
- * @param {number} id Product id
187
+ * @param {number} id Unique identifier referencing the product.
168
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
169
189
  * @param {string} [expand] Fields to expand response by
170
190
  * @param {*} [options] Override http request option.
171
191
  * @throws {RequiredError}
172
192
  */
173
193
  getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
194
+ /**
195
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
196
+ * @summary Retrieve the product
197
+ * @param {number} id Unique identifier referencing the product.
198
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
+ * @param {string} [expand] Fields to expand response by
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
174
204
  /**
175
205
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
176
206
  * @summary List products
@@ -247,7 +277,7 @@ export interface ProductsApiGetProductByCodeRequest {
247
277
  */
248
278
  readonly code: string;
249
279
  /**
250
- * Product id
280
+ * Unique identifier referencing the product.
251
281
  * @type {number}
252
282
  * @memberof ProductsApiGetProductByCode
253
283
  */
@@ -265,6 +295,31 @@ export interface ProductsApiGetProductByCodeRequest {
265
295
  */
266
296
  readonly expand?: string;
267
297
  }
298
+ /**
299
+ * Request parameters for getProductByIdentifier operation in ProductsApi.
300
+ * @export
301
+ * @interface ProductsApiGetProductByIdentifierRequest
302
+ */
303
+ export interface ProductsApiGetProductByIdentifierRequest {
304
+ /**
305
+ * Unique identifier referencing the product.
306
+ * @type {number}
307
+ * @memberof ProductsApiGetProductByIdentifier
308
+ */
309
+ readonly id: number;
310
+ /**
311
+ * Bearer Token: provided by the login endpoint under the name accessToken.
312
+ * @type {string}
313
+ * @memberof ProductsApiGetProductByIdentifier
314
+ */
315
+ readonly authorization?: string;
316
+ /**
317
+ * Fields to expand response by
318
+ * @type {string}
319
+ * @memberof ProductsApiGetProductByIdentifier
320
+ */
321
+ readonly expand?: string;
322
+ }
268
323
  /**
269
324
  * Request parameters for listProducts operation in ProductsApi.
270
325
  * @export
@@ -373,6 +428,15 @@ export declare class ProductsApi extends BaseAPI {
373
428
  * @memberof ProductsApi
374
429
  */
375
430
  getProductByCode(requestParameters: ProductsApiGetProductByCodeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
431
+ /**
432
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
433
+ * @summary Retrieve the product
434
+ * @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ * @memberof ProductsApi
438
+ */
439
+ getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
376
440
  /**
377
441
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
378
442
  * @summary List products
@@ -197,7 +197,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
197
197
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
198
198
  * @summary Retrieve the product
199
199
  * @param {string} code Unique identifier for the object.
200
- * @param {number} id Product id
200
+ * @param {number} id Unique identifier referencing the product.
201
201
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
202
202
  * @param {string} [expand] Fields to expand response by
203
203
  * @param {*} [options] Override http request option.
@@ -251,6 +251,60 @@ var ProductsApiAxiosParamCreator = function (configuration) {
251
251
  });
252
252
  });
253
253
  },
254
+ /**
255
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
256
+ * @summary Retrieve the product
257
+ * @param {number} id Unique identifier referencing the product.
258
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
+ * @param {string} [expand] Fields to expand response by
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ getProductByIdentifier: function (id, authorization, expand, options) {
264
+ if (options === void 0) { options = {}; }
265
+ return __awaiter(_this, void 0, void 0, function () {
266
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
+ return __generator(this, function (_a) {
268
+ switch (_a.label) {
269
+ case 0:
270
+ // verify required parameter 'id' is not null or undefined
271
+ (0, common_1.assertParamExists)('getProductByIdentifier', 'id', id);
272
+ localVarPath = "/insuranceservice/v1/products/get-by-identifier";
273
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ baseAccessToken = configuration.accessToken;
277
+ }
278
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
279
+ localVarHeaderParameter = {};
280
+ localVarQueryParameter = {};
281
+ // authentication bearer required
282
+ // http bearer authentication required
283
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
284
+ case 1:
285
+ // authentication bearer required
286
+ // http bearer authentication required
287
+ _a.sent();
288
+ if (id !== undefined) {
289
+ localVarQueryParameter['id'] = id;
290
+ }
291
+ if (expand !== undefined) {
292
+ localVarQueryParameter['expand'] = expand;
293
+ }
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
+ }
297
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
300
+ return [2 /*return*/, {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ }];
304
+ }
305
+ });
306
+ });
307
+ },
254
308
  /**
255
309
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
256
310
  * @summary List products
@@ -428,7 +482,7 @@ var ProductsApiFp = function (configuration) {
428
482
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
429
483
  * @summary Retrieve the product
430
484
  * @param {string} code Unique identifier for the object.
431
- * @param {number} id Product id
485
+ * @param {number} id Unique identifier referencing the product.
432
486
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
487
  * @param {string} [expand] Fields to expand response by
434
488
  * @param {*} [options] Override http request option.
@@ -447,6 +501,28 @@ var ProductsApiFp = function (configuration) {
447
501
  });
448
502
  });
449
503
  },
504
+ /**
505
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
506
+ * @summary Retrieve the product
507
+ * @param {number} id Unique identifier referencing the product.
508
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
509
+ * @param {string} [expand] Fields to expand response by
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ getProductByIdentifier: function (id, authorization, expand, options) {
514
+ return __awaiter(this, void 0, void 0, function () {
515
+ var localVarAxiosArgs;
516
+ return __generator(this, function (_a) {
517
+ switch (_a.label) {
518
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByIdentifier(id, authorization, expand, options)];
519
+ case 1:
520
+ localVarAxiosArgs = _a.sent();
521
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
522
+ }
523
+ });
524
+ });
525
+ },
450
526
  /**
451
527
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
452
528
  * @summary List products
@@ -531,7 +607,7 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
531
607
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
532
608
  * @summary Retrieve the product
533
609
  * @param {string} code Unique identifier for the object.
534
- * @param {number} id Product id
610
+ * @param {number} id Unique identifier referencing the product.
535
611
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
536
612
  * @param {string} [expand] Fields to expand response by
537
613
  * @param {*} [options] Override http request option.
@@ -540,6 +616,18 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
540
616
  getProductByCode: function (code, id, authorization, expand, options) {
541
617
  return localVarFp.getProductByCode(code, id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
542
618
  },
619
+ /**
620
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
621
+ * @summary Retrieve the product
622
+ * @param {number} id Unique identifier referencing the product.
623
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
624
+ * @param {string} [expand] Fields to expand response by
625
+ * @param {*} [options] Override http request option.
626
+ * @throws {RequiredError}
627
+ */
628
+ getProductByIdentifier: function (id, authorization, expand, options) {
629
+ return localVarFp.getProductByIdentifier(id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
630
+ },
543
631
  /**
544
632
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
545
633
  * @summary List products
@@ -618,6 +706,18 @@ var ProductsApi = /** @class */ (function (_super) {
618
706
  var _this = this;
619
707
  return (0, exports.ProductsApiFp)(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
620
708
  };
709
+ /**
710
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
711
+ * @summary Retrieve the product
712
+ * @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
713
+ * @param {*} [options] Override http request option.
714
+ * @throws {RequiredError}
715
+ * @memberof ProductsApi
716
+ */
717
+ ProductsApi.prototype.getProductByIdentifier = function (requestParameters, options) {
718
+ var _this = this;
719
+ return (0, exports.ProductsApiFp)(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
720
+ };
621
721
  /**
622
722
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
623
723
  * @summary List products
@@ -0,0 +1,24 @@
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 CreateLeadAsyncResponseClass
16
+ */
17
+ export interface CreateLeadAsyncResponseClass {
18
+ /**
19
+ * Unique identifier of the lead that this object belongs to.
20
+ * @type {string}
21
+ * @memberof CreateLeadAsyncResponseClass
22
+ */
23
+ 'code': string;
24
+ }
@@ -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 });
@@ -42,7 +42,7 @@ export interface CreateLeadPolicyRequestDto {
42
42
  */
43
43
  'policyObjects'?: Array<SharedLeadPolicyObjectDto>;
44
44
  /**
45
- * 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.
45
+ * 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.
46
46
  * @type {PremiumOverrideRequestDto}
47
47
  * @memberof CreateLeadPolicyRequestDto
48
48
  */
@@ -34,7 +34,7 @@ export interface CreateLeadRequestDto {
34
34
  */
35
35
  'productVersionId'?: number;
36
36
  /**
37
- * 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.
37
+ * 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.
38
38
  * @type {string}
39
39
  * @memberof CreateLeadRequestDto
40
40
  */
@@ -52,31 +52,31 @@ export interface CreateLeadRequestDto {
52
52
  */
53
53
  'policy': SharedCreateLeadPolicyRequestDto;
54
54
  /**
55
- * 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.
55
+ * 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.
56
56
  * @type {CreateBankAccountRequestDto}
57
57
  * @memberof CreateLeadRequestDto
58
58
  */
59
59
  'bankAccount'?: CreateBankAccountRequestDto;
60
60
  /**
61
- * 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
61
+ * 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
62
62
  * @type {object}
63
63
  * @memberof CreateLeadRequestDto
64
64
  */
65
65
  'customData'?: object;
66
66
  /**
67
- * 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.
67
+ * 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.
68
68
  * @type {UploadedDocumentDto}
69
69
  * @memberof CreateLeadRequestDto
70
70
  */
71
71
  'uploadedDocument'?: UploadedDocumentDto;
72
72
  /**
73
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
73
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
74
74
  * @type {string}
75
75
  * @memberof CreateLeadRequestDto
76
76
  */
77
77
  'status'?: string;
78
78
  /**
79
- * 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.
79
+ * 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.
80
80
  * @type {Array<PremiumOverrideRequestDto>}
81
81
  * @memberof CreateLeadRequestDto
82
82
  */
@@ -88,7 +88,7 @@ export interface CreateLeadRequestDto {
88
88
  */
89
89
  'paymentMethod'?: CreatePaymentMethodRequestDto;
90
90
  /**
91
- * 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.
91
+ * 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.
92
92
  * @type {boolean}
93
93
  * @memberof CreateLeadRequestDto
94
94
  */
@@ -0,0 +1,24 @@
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 CreateLeadSyncResponseClass
16
+ */
17
+ export interface CreateLeadSyncResponseClass {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof CreateLeadSyncResponseClass
22
+ */
23
+ 'variables': object;
24
+ }
@@ -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 });
@@ -63,6 +63,18 @@ export interface CreatePremiumFormulaRequestDto {
63
63
  * @memberof CreatePremiumFormulaRequestDto
64
64
  */
65
65
  'visibility'?: CreatePremiumFormulaRequestDtoVisibilityEnum;
66
+ /**
67
+ * Name of the variable this Premium item value is referenced by in the other items formulas.
68
+ * @type {string}
69
+ * @memberof CreatePremiumFormulaRequestDto
70
+ */
71
+ 'variableName'?: string;
72
+ /**
73
+ * order index for the Premium item, used to define the order the items are calculated in.
74
+ * @type {number}
75
+ * @memberof CreatePremiumFormulaRequestDto
76
+ */
77
+ 'order': number;
66
78
  }
67
79
  export declare const CreatePremiumFormulaRequestDtoTypeEnum: {
68
80
  readonly Time: "time";
@@ -0,0 +1,24 @@
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 EmptyResponseClass
16
+ */
17
+ export interface EmptyResponseClass {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof EmptyResponseClass
22
+ */
23
+ 'response': object;
24
+ }
@@ -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 });
@@ -16,17 +16,23 @@
16
16
  */
17
17
  export interface GetProductRequestDto {
18
18
  /**
19
- * Product id
19
+ * Unique identifier referencing the product.
20
20
  * @type {number}
21
21
  * @memberof GetProductRequestDto
22
22
  */
23
23
  'id': number;
24
24
  /**
25
- * Product code
26
- * @type {string}
25
+ * Unique identifier of the product that this object belongs to.
26
+ * @type {object}
27
+ * @memberof GetProductRequestDto
28
+ */
29
+ 'code': object;
30
+ /**
31
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
32
+ * @type {object}
27
33
  * @memberof GetProductRequestDto
28
34
  */
29
- 'code': string;
35
+ 'slug': object;
30
36
  /**
31
37
  * Fields to expand response by
32
38
  * @type {string}
@@ -40,7 +40,7 @@ export interface GrpcPatchLeadRequestDto {
40
40
  */
41
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 GrpcPatchLeadRequestDto
46
46
  */
@@ -40,37 +40,37 @@ export interface GrpcUpdateLeadRequestDto {
40
40
  */
41
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 GrpcUpdateLeadRequestDto
46
46
  */
47
47
  'status': string;
48
48
  /**
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.
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
50
  * @type {CreateBankAccountRequestDto}
51
51
  * @memberof GrpcUpdateLeadRequestDto
52
52
  */
53
53
  'bankAccount'?: CreateBankAccountRequestDto;
54
54
  /**
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
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
56
  * @type {object}
57
57
  * @memberof GrpcUpdateLeadRequestDto
58
58
  */
59
59
  'customData'?: object;
60
60
  /**
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.
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
62
  * @type {UploadedDocumentDto}
63
63
  * @memberof GrpcUpdateLeadRequestDto
64
64
  */
65
65
  'uploadedDocument'?: UploadedDocumentDto;
66
66
  /**
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.
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
68
  * @type {Array<PremiumOverrideRequestDto>}
69
69
  * @memberof GrpcUpdateLeadRequestDto
70
70
  */
71
71
  'premiumOverride'?: Array<PremiumOverrideRequestDto>;
72
72
  /**
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.
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
74
  * @type {string}
75
75
  * @memberof GrpcUpdateLeadRequestDto
76
76
  */
@@ -82,7 +82,7 @@ export interface GrpcUpdateLeadRequestDto {
82
82
  */
83
83
  'paymentMethod'?: CreatePaymentMethodRequestDto;
84
84
  /**
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.
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
86
  * @type {boolean}
87
87
  * @memberof GrpcUpdateLeadRequestDto
88
88
  */
@@ -7,11 +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-async-response-class';
10
11
  export * from './create-lead-policy-request-dto';
11
12
  export * from './create-lead-request-dto';
12
13
  export * from './create-lead-response-class';
13
14
  export * from './create-lead-status-request-dto';
14
15
  export * from './create-lead-status-response-class';
16
+ export * from './create-lead-sync-response-class';
15
17
  export * from './create-named-range-request-dto';
16
18
  export * from './create-named-range-response-class';
17
19
  export * from './create-named-request-s3-data-class';
@@ -27,6 +29,7 @@ export * from './create-product-response-class';
27
29
  export * from './csv-product-factor-dto';
28
30
  export * from './delete-request-dto';
29
31
  export * from './delete-response-class';
32
+ export * from './empty-response-class';
30
33
  export * from './get-insured-object-response-class';
31
34
  export * from './get-lead-response-class';
32
35
  export * from './get-lead-status-response-class';
@@ -103,6 +106,7 @@ export * from './store-product-factors-request-dto';
103
106
  export * from './store-product-factors-response-class';
104
107
  export * from './suspend-policy-request-dto';
105
108
  export * from './suspend-policy-response-class';
109
+ export * from './swap-premium-formulas-order-request-dto';
106
110
  export * from './terminate-policy-request-dto';
107
111
  export * from './terminate-policy-response-class';
108
112
  export * from './timeslice-class';