@emilgroup/insurance-sdk-node 1.10.1 → 1.12.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 (44) hide show
  1. package/.openapi-generator/FILES +5 -1
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +133 -15
  4. package/base.ts +1 -1
  5. package/dist/api/leads-api.d.ts +76 -10
  6. package/dist/api/leads-api.js +108 -11
  7. package/dist/base.js +1 -1
  8. package/dist/models/create-insured-object-request-dto.d.ts +20 -2
  9. package/dist/models/create-lead-request-dto.d.ts +18 -12
  10. package/dist/models/currency-class.d.ts +1 -1
  11. package/dist/models/grpc-patch-lead-request-dto.d.ts +77 -0
  12. package/dist/models/grpc-update-lead-request-dto.d.ts +89 -0
  13. package/dist/models/grpc-update-lead-request-dto.js +15 -0
  14. package/dist/models/index.d.ts +5 -1
  15. package/dist/models/index.js +5 -1
  16. package/dist/models/insured-object-class.d.ts +18 -0
  17. package/dist/models/invoice-item-class.d.ts +1 -1
  18. package/dist/models/invoice-status-class.d.ts +1 -1
  19. package/dist/models/lead-class.d.ts +9 -3
  20. package/dist/models/patch-lead-request-dto.d.ts +77 -0
  21. package/dist/models/patch-lead-request-dto.js +15 -0
  22. package/dist/models/patch-lead-response-class.d.ts +25 -0
  23. package/dist/models/patch-lead-response-class.js +15 -0
  24. package/dist/models/{invoice-class.d.ts → shared-invoice-class.d.ts} +40 -24
  25. package/dist/models/shared-invoice-class.js +30 -0
  26. package/dist/models/update-insured-object-request-dto.d.ts +18 -0
  27. package/dist/models/update-lead-request-dto.d.ts +7 -1
  28. package/models/create-insured-object-request-dto.ts +20 -2
  29. package/models/create-lead-request-dto.ts +18 -12
  30. package/models/currency-class.ts +1 -1
  31. package/models/grpc-patch-lead-request-dto.ts +83 -0
  32. package/models/grpc-update-lead-request-dto.ts +95 -0
  33. package/models/index.ts +5 -1
  34. package/models/insured-object-class.ts +18 -0
  35. package/models/invoice-item-class.ts +1 -1
  36. package/models/invoice-status-class.ts +1 -1
  37. package/models/lead-class.ts +9 -3
  38. package/models/patch-lead-request-dto.ts +83 -0
  39. package/models/patch-lead-response-class.ts +31 -0
  40. package/models/{invoice-class.ts → shared-invoice-class.ts} +44 -24
  41. package/models/update-insured-object-request-dto.ts +18 -0
  42. package/models/update-lead-request-dto.ts +7 -1
  43. package/package.json +2 -2
  44. /package/dist/models/{invoice-class.js → grpc-patch-lead-request-dto.js} +0 -0
@@ -149,12 +149,12 @@ var LeadsApiAxiosParamCreator = function (configuration) {
149
149
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
150
150
  * @summary Retrieve the lead
151
151
  * @param {string} code Unique identifier for the object.
152
- * @param {string} expand
153
152
  * @param {string} [authorization] Bearer Token
153
+ * @param {string} [expand]
154
154
  * @param {*} [options] Override http request option.
155
155
  * @throws {RequiredError}
156
156
  */
157
- getLead: function (code, expand, authorization, options) {
157
+ getLead: function (code, authorization, expand, options) {
158
158
  if (options === void 0) { options = {}; }
159
159
  return __awaiter(_this, void 0, void 0, function () {
160
160
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -163,8 +163,6 @@ var LeadsApiAxiosParamCreator = function (configuration) {
163
163
  case 0:
164
164
  // verify required parameter 'code' is not null or undefined
165
165
  (0, common_1.assertParamExists)('getLead', 'code', code);
166
- // verify required parameter 'expand' is not null or undefined
167
- (0, common_1.assertParamExists)('getLead', 'expand', expand);
168
166
  localVarPath = "/insuranceservice/v1/leads/{code}"
169
167
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
170
168
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -267,6 +265,59 @@ var LeadsApiAxiosParamCreator = function (configuration) {
267
265
  });
268
266
  });
269
267
  },
268
+ /**
269
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
270
+ * @summary Update the lead
271
+ * @param {string} code Unique identifier for the object.
272
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
273
+ * @param {string} [authorization] Bearer Token
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ patchLead: function (code, patchLeadRequestDto, authorization, options) {
278
+ if (options === void 0) { options = {}; }
279
+ return __awaiter(_this, void 0, void 0, function () {
280
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
281
+ return __generator(this, function (_a) {
282
+ switch (_a.label) {
283
+ case 0:
284
+ // verify required parameter 'code' is not null or undefined
285
+ (0, common_1.assertParamExists)('patchLead', 'code', code);
286
+ // verify required parameter 'patchLeadRequestDto' is not null or undefined
287
+ (0, common_1.assertParamExists)('patchLead', 'patchLeadRequestDto', patchLeadRequestDto);
288
+ localVarPath = "/insuranceservice/v1/leads/{code}"
289
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
290
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
291
+ if (configuration) {
292
+ baseOptions = configuration.baseOptions;
293
+ baseAccessToken = configuration.accessToken;
294
+ }
295
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
296
+ localVarHeaderParameter = {};
297
+ localVarQueryParameter = {};
298
+ // authentication bearer required
299
+ // http bearer authentication required
300
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
301
+ case 1:
302
+ // authentication bearer required
303
+ // http bearer authentication required
304
+ _a.sent();
305
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
306
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
307
+ }
308
+ localVarHeaderParameter['Content-Type'] = 'application/json';
309
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
310
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
311
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
312
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchLeadRequestDto, localVarRequestOptions, configuration);
313
+ return [2 /*return*/, {
314
+ url: (0, common_1.toPathString)(localVarUrlObj),
315
+ options: localVarRequestOptions,
316
+ }];
317
+ }
318
+ });
319
+ });
320
+ },
270
321
  /**
271
322
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
272
323
  * @summary Update the lead
@@ -355,17 +406,17 @@ var LeadsApiFp = function (configuration) {
355
406
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
356
407
  * @summary Retrieve the lead
357
408
  * @param {string} code Unique identifier for the object.
358
- * @param {string} expand
359
409
  * @param {string} [authorization] Bearer Token
410
+ * @param {string} [expand]
360
411
  * @param {*} [options] Override http request option.
361
412
  * @throws {RequiredError}
362
413
  */
363
- getLead: function (code, expand, authorization, options) {
414
+ getLead: function (code, authorization, expand, options) {
364
415
  return __awaiter(this, void 0, void 0, function () {
365
416
  var localVarAxiosArgs;
366
417
  return __generator(this, function (_a) {
367
418
  switch (_a.label) {
368
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, expand, authorization, options)];
419
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, authorization, expand, options)];
369
420
  case 1:
370
421
  localVarAxiosArgs = _a.sent();
371
422
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -399,6 +450,28 @@ var LeadsApiFp = function (configuration) {
399
450
  });
400
451
  });
401
452
  },
453
+ /**
454
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
455
+ * @summary Update the lead
456
+ * @param {string} code Unique identifier for the object.
457
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
458
+ * @param {string} [authorization] Bearer Token
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ patchLead: function (code, patchLeadRequestDto, authorization, options) {
463
+ return __awaiter(this, void 0, void 0, function () {
464
+ var localVarAxiosArgs;
465
+ return __generator(this, function (_a) {
466
+ switch (_a.label) {
467
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchLead(code, patchLeadRequestDto, authorization, options)];
468
+ case 1:
469
+ localVarAxiosArgs = _a.sent();
470
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
471
+ }
472
+ });
473
+ });
474
+ },
402
475
  /**
403
476
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
404
477
  * @summary Update the lead
@@ -446,13 +519,13 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
446
519
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
447
520
  * @summary Retrieve the lead
448
521
  * @param {string} code Unique identifier for the object.
449
- * @param {string} expand
450
522
  * @param {string} [authorization] Bearer Token
523
+ * @param {string} [expand]
451
524
  * @param {*} [options] Override http request option.
452
525
  * @throws {RequiredError}
453
526
  */
454
- getLead: function (code, expand, authorization, options) {
455
- return localVarFp.getLead(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
527
+ getLead: function (code, authorization, expand, options) {
528
+ return localVarFp.getLead(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
456
529
  },
457
530
  /**
458
531
  * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -470,6 +543,18 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
470
543
  listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
471
544
  return localVarFp.listLeads(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
472
545
  },
546
+ /**
547
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
548
+ * @summary Update the lead
549
+ * @param {string} code Unique identifier for the object.
550
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
551
+ * @param {string} [authorization] Bearer Token
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ */
555
+ patchLead: function (code, patchLeadRequestDto, authorization, options) {
556
+ return localVarFp.patchLead(code, patchLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
557
+ },
473
558
  /**
474
559
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
475
560
  * @summary Update the lead
@@ -518,7 +603,7 @@ var LeadsApi = /** @class */ (function (_super) {
518
603
  */
519
604
  LeadsApi.prototype.getLead = function (requestParameters, options) {
520
605
  var _this = this;
521
- return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
606
+ return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
522
607
  };
523
608
  /**
524
609
  * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -533,6 +618,18 @@ var LeadsApi = /** @class */ (function (_super) {
533
618
  if (requestParameters === void 0) { requestParameters = {}; }
534
619
  return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
535
620
  };
621
+ /**
622
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
623
+ * @summary Update the lead
624
+ * @param {LeadsApiPatchLeadRequest} requestParameters Request parameters.
625
+ * @param {*} [options] Override http request option.
626
+ * @throws {RequiredError}
627
+ * @memberof LeadsApi
628
+ */
629
+ LeadsApi.prototype.patchLead = function (requestParameters, options) {
630
+ var _this = this;
631
+ return (0, exports.LeadsApiFp)(this.configuration).patchLead(requestParameters.code, requestParameters.patchLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
632
+ };
536
633
  /**
537
634
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
538
635
  * @summary Update the lead
package/dist/base.js CHANGED
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
109
109
  var fs = __importStar(require("fs"));
110
110
  var path = __importStar(require("path"));
111
111
  var os = __importStar(require("os"));
112
- exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
112
+ exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
113
113
  var CONFIG_DIRECTORY = '.emil';
114
114
  var CONFIG_FILENAME = 'credentials';
115
115
  var KEY_USERNAME = 'emil_username';
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface CreateInsuredObjectRequestDto {
18
18
  /**
19
- * Unique identifier referencing the product version.
19
+ * Unique identifier referencing the Product version.
20
20
  * @type {number}
21
21
  * @memberof CreateInsuredObjectRequestDto
22
22
  */
@@ -34,9 +34,27 @@ export interface CreateInsuredObjectRequestDto {
34
34
  */
35
35
  'label': string;
36
36
  /**
37
- * Unique identifier referencing the insured object type.
37
+ * Unique identifier referencing the Insured object type.
38
38
  * @type {number}
39
39
  * @memberof CreateInsuredObjectRequestDto
40
40
  */
41
41
  'insuredObjectTypeId': number;
42
+ /**
43
+ * Insured object count.
44
+ * @type {number}
45
+ * @memberof CreateInsuredObjectRequestDto
46
+ */
47
+ 'count'?: number;
48
+ /**
49
+ * Minimum insured object count.
50
+ * @type {number}
51
+ * @memberof CreateInsuredObjectRequestDto
52
+ */
53
+ 'min'?: number;
54
+ /**
55
+ * Maximum insured object count.
56
+ * @type {number}
57
+ * @memberof CreateInsuredObjectRequestDto
58
+ */
59
+ 'max'?: number;
42
60
  }
@@ -32,6 +32,24 @@ export interface CreateLeadRequestDto {
32
32
  * @memberof CreateLeadRequestDto
33
33
  */
34
34
  'productVersionId'?: number;
35
+ /**
36
+ * Account code. The create lead request should either contain accountCode or account.
37
+ * @type {string}
38
+ * @memberof CreateLeadRequestDto
39
+ */
40
+ 'accountCode'?: string;
41
+ /**
42
+ * Account. The create lead request should either contain accountCode or account.
43
+ * @type {CreateAccountRequestDto}
44
+ * @memberof CreateLeadRequestDto
45
+ */
46
+ 'account'?: CreateAccountRequestDto;
47
+ /**
48
+ * Policy
49
+ * @type {CreatePolicyRequestDto}
50
+ * @memberof CreateLeadRequestDto
51
+ */
52
+ 'policy': CreatePolicyRequestDto;
35
53
  /**
36
54
  * Bank account details.
37
55
  * @type {CreateBankAccountRequestDto}
@@ -62,16 +80,4 @@ export interface CreateLeadRequestDto {
62
80
  * @memberof CreateLeadRequestDto
63
81
  */
64
82
  'premiumOverride'?: PremiumOverrideRequestDto;
65
- /**
66
- *
67
- * @type {CreateAccountRequestDto}
68
- * @memberof CreateLeadRequestDto
69
- */
70
- 'account': CreateAccountRequestDto;
71
- /**
72
- *
73
- * @type {CreatePolicyRequestDto}
74
- * @memberof CreateLeadRequestDto
75
- */
76
- 'policy': CreatePolicyRequestDto;
77
83
  }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface CurrencyClass {
18
18
  /**
19
- * Unique identifier referencing the currency.
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
20
  * @type {number}
21
21
  * @memberof CurrencyClass
22
22
  */
@@ -0,0 +1,77 @@
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
+ import { CreateAccountRequestDto } from './create-account-request-dto';
13
+ import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
14
+ import { CreatePolicyRequestDto } from './create-policy-request-dto';
15
+ import { PremiumOverrideRequestDto } from './premium-override-request-dto';
16
+ import { UploadedDocumentDto } from './uploaded-document-dto';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface GrpcPatchLeadRequestDto
21
+ */
22
+ export interface GrpcPatchLeadRequestDto {
23
+ /**
24
+ * Unique identifier referencing the product version.
25
+ * @type {number}
26
+ * @memberof GrpcPatchLeadRequestDto
27
+ */
28
+ 'productVersionId'?: number;
29
+ /**
30
+ * Account
31
+ * @type {CreateAccountRequestDto}
32
+ * @memberof GrpcPatchLeadRequestDto
33
+ */
34
+ 'account'?: CreateAccountRequestDto;
35
+ /**
36
+ * Policy
37
+ * @type {CreatePolicyRequestDto}
38
+ * @memberof GrpcPatchLeadRequestDto
39
+ */
40
+ 'policy'?: CreatePolicyRequestDto;
41
+ /**
42
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
43
+ * @type {string}
44
+ * @memberof GrpcPatchLeadRequestDto
45
+ */
46
+ 'status'?: string;
47
+ /**
48
+ * Bank account
49
+ * @type {CreateBankAccountRequestDto}
50
+ * @memberof GrpcPatchLeadRequestDto
51
+ */
52
+ 'bankAccount'?: CreateBankAccountRequestDto;
53
+ /**
54
+ * Custom data.
55
+ * @type {object}
56
+ * @memberof GrpcPatchLeadRequestDto
57
+ */
58
+ 'customData'?: object;
59
+ /**
60
+ * Upload document
61
+ * @type {UploadedDocumentDto}
62
+ * @memberof GrpcPatchLeadRequestDto
63
+ */
64
+ 'uploadedDocument'?: UploadedDocumentDto;
65
+ /**
66
+ * Premium Override
67
+ * @type {PremiumOverrideRequestDto}
68
+ * @memberof GrpcPatchLeadRequestDto
69
+ */
70
+ 'premiumOverride'?: PremiumOverrideRequestDto;
71
+ /**
72
+ * Unique identifier of the account that this object belongs to.
73
+ * @type {string}
74
+ * @memberof GrpcPatchLeadRequestDto
75
+ */
76
+ 'accountCode'?: string;
77
+ }
@@ -0,0 +1,89 @@
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
+ import { CreateAccountRequestDto } from './create-account-request-dto';
13
+ import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
14
+ import { CreatePolicyRequestDto } from './create-policy-request-dto';
15
+ import { PremiumOverrideRequestDto } from './premium-override-request-dto';
16
+ import { UploadedDocumentDto } from './uploaded-document-dto';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface GrpcUpdateLeadRequestDto
21
+ */
22
+ export interface GrpcUpdateLeadRequestDto {
23
+ /**
24
+ * Unique identifier referencing the product version.
25
+ * @type {number}
26
+ * @memberof GrpcUpdateLeadRequestDto
27
+ */
28
+ 'productVersionId'?: number;
29
+ /**
30
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
31
+ * @type {string}
32
+ * @memberof GrpcUpdateLeadRequestDto
33
+ */
34
+ 'status': string;
35
+ /**
36
+ * Custom data.
37
+ * @type {object}
38
+ * @memberof GrpcUpdateLeadRequestDto
39
+ */
40
+ 'customData'?: object;
41
+ /**
42
+ * Premium Override
43
+ * @type {Array<PremiumOverrideRequestDto>}
44
+ * @memberof GrpcUpdateLeadRequestDto
45
+ */
46
+ 'premiumOverride'?: Array<PremiumOverrideRequestDto>;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof GrpcUpdateLeadRequestDto
51
+ */
52
+ 'code': string;
53
+ /**
54
+ *
55
+ * @type {CreateAccountRequestDto}
56
+ * @memberof GrpcUpdateLeadRequestDto
57
+ */
58
+ 'account': CreateAccountRequestDto;
59
+ /**
60
+ *
61
+ * @type {CreatePolicyRequestDto}
62
+ * @memberof GrpcUpdateLeadRequestDto
63
+ */
64
+ 'policy': CreatePolicyRequestDto;
65
+ /**
66
+ *
67
+ * @type {boolean}
68
+ * @memberof GrpcUpdateLeadRequestDto
69
+ */
70
+ 'shouldTriggerWorkflow'?: boolean;
71
+ /**
72
+ *
73
+ * @type {CreateBankAccountRequestDto}
74
+ * @memberof GrpcUpdateLeadRequestDto
75
+ */
76
+ 'bankAccount'?: CreateBankAccountRequestDto;
77
+ /**
78
+ *
79
+ * @type {UploadedDocumentDto}
80
+ * @memberof GrpcUpdateLeadRequestDto
81
+ */
82
+ 'uploadedDocument'?: UploadedDocumentDto;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof GrpcUpdateLeadRequestDto
87
+ */
88
+ 'accountCode'?: string;
89
+ }
@@ -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 });
@@ -45,9 +45,10 @@ export * from './get-product-version-response-class';
45
45
  export * from './grouped-product-factor-class';
46
46
  export * from './grouped-product-factor-value-class';
47
47
  export * from './grouped-product-factors-response-class';
48
+ export * from './grpc-patch-lead-request-dto';
49
+ export * from './grpc-update-lead-request-dto';
48
50
  export * from './insured-object-class';
49
51
  export * from './insured-object-type-class';
50
- export * from './invoice-class';
51
52
  export * from './invoice-item-class';
52
53
  export * from './invoice-status-class';
53
54
  export * from './lead-bank-account-class';
@@ -64,6 +65,8 @@ export * from './list-product-field-types-response-class';
64
65
  export * from './list-product-fields-response-class';
65
66
  export * from './list-products-response-class';
66
67
  export * from './list-request-dto';
68
+ export * from './patch-lead-request-dto';
69
+ export * from './patch-lead-response-class';
67
70
  export * from './policy-class';
68
71
  export * from './policy-object-class';
69
72
  export * from './policy-object-dto';
@@ -80,6 +83,7 @@ export * from './product-factor-value-class';
80
83
  export * from './product-field-class';
81
84
  export * from './product-field-type-class';
82
85
  export * from './product-version-class';
86
+ export * from './shared-invoice-class';
83
87
  export * from './shared-product-field-class';
84
88
  export * from './shared-update-premium-formula-request-dto';
85
89
  export * from './store-product-factors-request-dto';
@@ -61,9 +61,10 @@ __exportStar(require("./get-product-version-response-class"), exports);
61
61
  __exportStar(require("./grouped-product-factor-class"), exports);
62
62
  __exportStar(require("./grouped-product-factor-value-class"), exports);
63
63
  __exportStar(require("./grouped-product-factors-response-class"), exports);
64
+ __exportStar(require("./grpc-patch-lead-request-dto"), exports);
65
+ __exportStar(require("./grpc-update-lead-request-dto"), exports);
64
66
  __exportStar(require("./insured-object-class"), exports);
65
67
  __exportStar(require("./insured-object-type-class"), exports);
66
- __exportStar(require("./invoice-class"), exports);
67
68
  __exportStar(require("./invoice-item-class"), exports);
68
69
  __exportStar(require("./invoice-status-class"), exports);
69
70
  __exportStar(require("./lead-bank-account-class"), exports);
@@ -80,6 +81,8 @@ __exportStar(require("./list-product-field-types-response-class"), exports);
80
81
  __exportStar(require("./list-product-fields-response-class"), exports);
81
82
  __exportStar(require("./list-products-response-class"), exports);
82
83
  __exportStar(require("./list-request-dto"), exports);
84
+ __exportStar(require("./patch-lead-request-dto"), exports);
85
+ __exportStar(require("./patch-lead-response-class"), exports);
83
86
  __exportStar(require("./policy-class"), exports);
84
87
  __exportStar(require("./policy-object-class"), exports);
85
88
  __exportStar(require("./policy-object-dto"), exports);
@@ -96,6 +99,7 @@ __exportStar(require("./product-factor-value-class"), exports);
96
99
  __exportStar(require("./product-field-class"), exports);
97
100
  __exportStar(require("./product-field-type-class"), exports);
98
101
  __exportStar(require("./product-version-class"), exports);
102
+ __exportStar(require("./shared-invoice-class"), exports);
99
103
  __exportStar(require("./shared-product-field-class"), exports);
100
104
  __exportStar(require("./shared-update-premium-formula-request-dto"), exports);
101
105
  __exportStar(require("./store-product-factors-request-dto"), exports);
@@ -46,6 +46,24 @@ export interface InsuredObjectClass {
46
46
  * @memberof InsuredObjectClass
47
47
  */
48
48
  'insuredObjectTypeId': number;
49
+ /**
50
+ * Insured object count default to 1.
51
+ * @type {number}
52
+ * @memberof InsuredObjectClass
53
+ */
54
+ 'count': number;
55
+ /**
56
+ * Minimum insured object count default to 0.
57
+ * @type {number}
58
+ * @memberof InsuredObjectClass
59
+ */
60
+ 'min': number;
61
+ /**
62
+ * Maximum insured object count default to 1.
63
+ * @type {number}
64
+ * @memberof InsuredObjectClass
65
+ */
66
+ 'max': number;
49
67
  /**
50
68
  * Product fields.
51
69
  * @type {Array<SharedProductFieldClass>}
@@ -40,7 +40,7 @@ export interface InvoiceItemClass {
40
40
  */
41
41
  'taxCode': string;
42
42
  /**
43
- * Unit of Premium. Premium units are determined based on time or distance.
43
+ * Unit of Premium units are determined based on time or distance.
44
44
  * @type {string}
45
45
  * @memberof InvoiceItemClass
46
46
  */
@@ -38,7 +38,7 @@ export interface InvoiceStatusClass {
38
38
  * @type {string}
39
39
  * @memberof InvoiceStatusClass
40
40
  */
41
- 'createdAt'?: string;
41
+ 'createdAt': string;
42
42
  }
43
43
  export declare const InvoiceStatusClassStatusEnum: {
44
44
  readonly Open: "open";
@@ -11,9 +11,9 @@
11
11
  */
12
12
  import { CreateAccountRequestDto } from './create-account-request-dto';
13
13
  import { CreatePolicyRequestDto } from './create-policy-request-dto';
14
- import { InvoiceClass } from './invoice-class';
15
14
  import { LeadBankAccountClass } from './lead-bank-account-class';
16
15
  import { PremiumOverrideRequestClass } from './premium-override-request-class';
16
+ import { SharedInvoiceClass } from './shared-invoice-class';
17
17
  import { UploadedDocumentDto } from './uploaded-document-dto';
18
18
  /**
19
19
  *
@@ -33,6 +33,12 @@ export interface LeadClass {
33
33
  * @memberof LeadClass
34
34
  */
35
35
  'code'?: string;
36
+ /**
37
+ * Unique identifier of the account that this object belongs to.
38
+ * @type {string}
39
+ * @memberof LeadClass
40
+ */
41
+ 'accountCode'?: string;
36
42
  /**
37
43
  * Lead status.
38
44
  * @type {string}
@@ -95,8 +101,8 @@ export interface LeadClass {
95
101
  'updatedAt': string;
96
102
  /**
97
103
  * Quote or price details.
98
- * @type {InvoiceClass}
104
+ * @type {SharedInvoiceClass}
99
105
  * @memberof LeadClass
100
106
  */
101
- 'quote': InvoiceClass;
107
+ 'quote': SharedInvoiceClass;
102
108
  }