@emilgroup/public-api-sdk 1.6.0 → 1.8.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 (45) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/api/address-completions-validations-api.ts +348 -0
  4. package/api/documents-api.ts +189 -14
  5. package/api.ts +2 -0
  6. package/dist/api/address-completions-validations-api.d.ts +197 -0
  7. package/dist/api/address-completions-validations-api.js +357 -0
  8. package/dist/api/documents-api.d.ts +111 -10
  9. package/dist/api/documents-api.js +131 -8
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/address-completion-item-class.d.ts +49 -0
  13. package/dist/models/address-completion-item-class.js +15 -0
  14. package/dist/models/address-completion-response-class.d.ts +25 -0
  15. package/dist/models/address-completion-response-class.js +15 -0
  16. package/dist/models/address-field-score-class.d.ts +48 -0
  17. package/dist/models/address-field-score-class.js +15 -0
  18. package/dist/models/create-lead-request-dto.d.ts +12 -12
  19. package/dist/models/index.d.ts +8 -0
  20. package/dist/models/index.js +8 -0
  21. package/dist/models/insured-object-class.d.ts +7 -7
  22. package/dist/models/lead-class.d.ts +6 -0
  23. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  24. package/dist/models/list-product-documents-response-class.js +15 -0
  25. package/dist/models/product-document-class.d.ts +91 -0
  26. package/dist/models/product-document-class.js +28 -0
  27. package/dist/models/structured-address-class.d.ts +54 -0
  28. package/dist/models/structured-address-class.js +15 -0
  29. package/dist/models/suggested-address-details-class.d.ts +90 -0
  30. package/dist/models/suggested-address-details-class.js +15 -0
  31. package/dist/models/validate-address-response-class.d.ts +50 -0
  32. package/dist/models/validate-address-response-class.js +15 -0
  33. package/models/address-completion-item-class.ts +55 -0
  34. package/models/address-completion-response-class.ts +31 -0
  35. package/models/address-field-score-class.ts +54 -0
  36. package/models/create-lead-request-dto.ts +12 -12
  37. package/models/index.ts +8 -0
  38. package/models/insured-object-class.ts +7 -7
  39. package/models/lead-class.ts +6 -0
  40. package/models/list-product-documents-response-class.ts +37 -0
  41. package/models/product-document-class.ts +100 -0
  42. package/models/structured-address-class.ts +60 -0
  43. package/models/suggested-address-details-class.ts +96 -0
  44. package/models/validate-address-response-class.ts +56 -0
  45. package/package.json +1 -1
@@ -192,6 +192,73 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
192
192
  /**
193
193
  * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
194
194
  * @summary List documents
195
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
196
+ * @param {string} [authorization] Bearer Token
197
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
198
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
199
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
200
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
205
+ if (options === void 0) { options = {}; }
206
+ return __awaiter(_this, void 0, void 0, function () {
207
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ // verify required parameter 'filter' is not null or undefined
212
+ (0, common_1.assertParamExists)('listDocuments', 'filter', filter);
213
+ localVarPath = "/publicapi/v1/documents";
214
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
220
+ localVarHeaderParameter = {};
221
+ localVarQueryParameter = {};
222
+ // authentication bearer required
223
+ // http bearer authentication required
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
225
+ case 1:
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ _a.sent();
229
+ if (pageSize !== undefined) {
230
+ localVarQueryParameter['pageSize'] = pageSize;
231
+ }
232
+ if (pageToken !== undefined) {
233
+ localVarQueryParameter['pageToken'] = pageToken;
234
+ }
235
+ if (filter !== undefined) {
236
+ localVarQueryParameter['filter'] = filter;
237
+ }
238
+ if (order !== undefined) {
239
+ localVarQueryParameter['order'] = order;
240
+ }
241
+ if (expand !== undefined) {
242
+ localVarQueryParameter['expand'] = expand;
243
+ }
244
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
246
+ }
247
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
248
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
250
+ return [2 /*return*/, {
251
+ url: (0, common_1.toPathString)(localVarUrlObj),
252
+ options: localVarRequestOptions,
253
+ }];
254
+ }
255
+ });
256
+ });
257
+ },
258
+ /**
259
+ * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
260
+ * @summary List product documents
261
+ * @param {string} productCode
195
262
  * @param {string} [authorization] Bearer Token
196
263
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
197
264
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -202,14 +269,17 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
202
269
  * @param {*} [options] Override http request option.
203
270
  * @throws {RequiredError}
204
271
  */
205
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
272
+ listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
206
273
  if (options === void 0) { options = {}; }
207
274
  return __awaiter(_this, void 0, void 0, function () {
208
275
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
276
  return __generator(this, function (_a) {
210
277
  switch (_a.label) {
211
278
  case 0:
212
- localVarPath = "/publicapi/v1/documents";
279
+ // verify required parameter 'productCode' is not null or undefined
280
+ (0, common_1.assertParamExists)('listProductDocuments', 'productCode', productCode);
281
+ localVarPath = "/publicapi/v1/documents/{productCode}"
282
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
213
283
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
214
284
  if (configuration) {
215
285
  baseOptions = configuration.baseOptions;
@@ -312,6 +382,32 @@ var DocumentsApiFp = function (configuration) {
312
382
  /**
313
383
  * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
314
384
  * @summary List documents
385
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
386
+ * @param {string} [authorization] Bearer Token
387
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
388
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
389
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
390
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
395
+ return __awaiter(this, void 0, void 0, function () {
396
+ var localVarAxiosArgs;
397
+ return __generator(this, function (_a) {
398
+ switch (_a.label) {
399
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options)];
400
+ case 1:
401
+ localVarAxiosArgs = _a.sent();
402
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
403
+ }
404
+ });
405
+ });
406
+ },
407
+ /**
408
+ * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
409
+ * @summary List product documents
410
+ * @param {string} productCode
315
411
  * @param {string} [authorization] Bearer Token
316
412
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
317
413
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -322,12 +418,12 @@ var DocumentsApiFp = function (configuration) {
322
418
  * @param {*} [options] Override http request option.
323
419
  * @throws {RequiredError}
324
420
  */
325
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
421
+ listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
326
422
  return __awaiter(this, void 0, void 0, function () {
327
423
  var localVarAxiosArgs;
328
424
  return __generator(this, function (_a) {
329
425
  switch (_a.label) {
330
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options)];
426
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options)];
331
427
  case 1:
332
428
  localVarAxiosArgs = _a.sent();
333
429
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -370,6 +466,22 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
370
466
  /**
371
467
  * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
372
468
  * @summary List documents
469
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
470
+ * @param {string} [authorization] Bearer Token
471
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
472
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
473
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
474
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
479
+ return localVarFp.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options).then(function (request) { return request(axios, basePath); });
480
+ },
481
+ /**
482
+ * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
483
+ * @summary List product documents
484
+ * @param {string} productCode
373
485
  * @param {string} [authorization] Bearer Token
374
486
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
375
487
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -380,8 +492,8 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
380
492
  * @param {*} [options] Override http request option.
381
493
  * @throws {RequiredError}
382
494
  */
383
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
384
- return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
495
+ listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
496
+ return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
385
497
  },
386
498
  };
387
499
  };
@@ -431,8 +543,19 @@ var DocumentsApi = /** @class */ (function (_super) {
431
543
  */
432
544
  DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
433
545
  var _this = this;
434
- if (requestParameters === void 0) { requestParameters = {}; }
435
- return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
546
+ return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
547
+ };
548
+ /**
549
+ * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
550
+ * @summary List product documents
551
+ * @param {DocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ * @memberof DocumentsApi
555
+ */
556
+ DocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
557
+ var _this = this;
558
+ return (0, exports.DocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
436
559
  };
437
560
  return DocumentsApi;
438
561
  }(base_1.BaseAPI));
package/dist/api.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/address-completions-validations-api';
12
13
  export * from './api/documents-api';
13
14
  export * from './api/leads-api';
14
15
  export * from './api/notifications-api';
package/dist/api.js CHANGED
@@ -27,6 +27,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/address-completions-validations-api"), exports);
30
31
  __exportStar(require("./api/documents-api"), exports);
31
32
  __exportStar(require("./api/leads-api"), exports);
32
33
  __exportStar(require("./api/notifications-api"), exports);
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public 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 { SuggestedAddressDetailsClass } from './suggested-address-details-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AddressCompletionItemClass
17
+ */
18
+ export interface AddressCompletionItemClass {
19
+ /**
20
+ * Detailed breakdown of the address suggestion
21
+ * @type {SuggestedAddressDetailsClass}
22
+ * @memberof AddressCompletionItemClass
23
+ */
24
+ 'addressDetails': SuggestedAddressDetailsClass;
25
+ /**
26
+ * The Suggestion ID
27
+ * @type {string}
28
+ * @memberof AddressCompletionItemClass
29
+ */
30
+ 'id': string;
31
+ /**
32
+ * Language of the suggestion
33
+ * @type {string}
34
+ * @memberof AddressCompletionItemClass
35
+ */
36
+ 'language': string;
37
+ /**
38
+ * Title of the suggestion, one liner address
39
+ * @type {string}
40
+ * @memberof AddressCompletionItemClass
41
+ */
42
+ 'title': string;
43
+ /**
44
+ * Indicates the granularity of the suggestion to a street or a house number
45
+ * @type {string}
46
+ * @memberof AddressCompletionItemClass
47
+ */
48
+ 'resultType'?: string;
49
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public 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 });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public 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 { AddressCompletionItemClass } from './address-completion-item-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AddressCompletionResponseClass
17
+ */
18
+ export interface AddressCompletionResponseClass {
19
+ /**
20
+ * List of completion suggestions
21
+ * @type {AddressCompletionItemClass}
22
+ * @memberof AddressCompletionResponseClass
23
+ */
24
+ 'items': AddressCompletionItemClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public 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 });
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public 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 AddressFieldScoreClass
16
+ */
17
+ export interface AddressFieldScoreClass {
18
+ /**
19
+ * Score for the city field
20
+ * @type {object}
21
+ * @memberof AddressFieldScoreClass
22
+ */
23
+ 'city'?: object;
24
+ /**
25
+ * Score for the city field
26
+ * @type {object}
27
+ * @memberof AddressFieldScoreClass
28
+ */
29
+ 'country'?: object;
30
+ /**
31
+ * Score for the city field
32
+ * @type {object}
33
+ * @memberof AddressFieldScoreClass
34
+ */
35
+ 'houseNumber'?: object;
36
+ /**
37
+ * Score for the city field
38
+ * @type {object}
39
+ * @memberof AddressFieldScoreClass
40
+ */
41
+ 'postalCode'?: object;
42
+ /**
43
+ * Score for the city field
44
+ * @type {object}
45
+ * @memberof AddressFieldScoreClass
46
+ */
47
+ 'street'?: object;
48
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public 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 });
@@ -38,6 +38,18 @@ export interface CreateLeadRequestDto {
38
38
  * @memberof CreateLeadRequestDto
39
39
  */
40
40
  'productCode': 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
+ * Account code. The create lead request should either contain accountCode or account.
49
+ * @type {string}
50
+ * @memberof CreateLeadRequestDto
51
+ */
52
+ 'accountCode'?: string;
41
53
  /**
42
54
  *
43
55
  * @type {Array<PolicyObjectRequestDto>}
@@ -74,16 +86,4 @@ export interface CreateLeadRequestDto {
74
86
  * @memberof CreateLeadRequestDto
75
87
  */
76
88
  'premiumOverride'?: PremiumOverrideRequestDto;
77
- /**
78
- *
79
- * @type {CreateAccountRequestDto}
80
- * @memberof CreateLeadRequestDto
81
- */
82
- 'account'?: CreateAccountRequestDto;
83
- /**
84
- *
85
- * @type {string}
86
- * @memberof CreateLeadRequestDto
87
- */
88
- 'accountCode': string;
89
89
  }
@@ -1,3 +1,6 @@
1
+ export * from './address-completion-item-class';
2
+ export * from './address-completion-response-class';
3
+ export * from './address-field-score-class';
1
4
  export * from './complete-braintree-payment-setup-request-dto';
2
5
  export * from './complete-payment-setup-request-dto';
3
6
  export * from './complete-payment-setup-response-class';
@@ -33,17 +36,22 @@ export * from './lead-class';
33
36
  export * from './lead-policy-class';
34
37
  export * from './lead-policy-object-class';
35
38
  export * from './list-documents-response-class';
39
+ export * from './list-product-documents-response-class';
36
40
  export * from './list-products-response-class';
37
41
  export * from './payment-method-class';
38
42
  export * from './policy-object-request-dto';
39
43
  export * from './premium-override-dto';
40
44
  export * from './premium-override-request-dto';
41
45
  export * from './product-class';
46
+ export * from './product-document-class';
42
47
  export * from './product-factor-class';
43
48
  export * from './product-field-class';
44
49
  export * from './product-version-class';
45
50
  export * from './send-notification-request-dto';
46
51
  export * from './send-notification-response-class';
52
+ export * from './structured-address-class';
53
+ export * from './suggested-address-details-class';
47
54
  export * from './update-lead-request-dto';
48
55
  export * from './update-lead-response-class';
49
56
  export * from './uploaded-document-dto';
57
+ export * from './validate-address-response-class';
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./address-completion-item-class"), exports);
18
+ __exportStar(require("./address-completion-response-class"), exports);
19
+ __exportStar(require("./address-field-score-class"), exports);
17
20
  __exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
18
21
  __exportStar(require("./complete-payment-setup-request-dto"), exports);
19
22
  __exportStar(require("./complete-payment-setup-response-class"), exports);
@@ -49,17 +52,22 @@ __exportStar(require("./lead-class"), exports);
49
52
  __exportStar(require("./lead-policy-class"), exports);
50
53
  __exportStar(require("./lead-policy-object-class"), exports);
51
54
  __exportStar(require("./list-documents-response-class"), exports);
55
+ __exportStar(require("./list-product-documents-response-class"), exports);
52
56
  __exportStar(require("./list-products-response-class"), exports);
53
57
  __exportStar(require("./payment-method-class"), exports);
54
58
  __exportStar(require("./policy-object-request-dto"), exports);
55
59
  __exportStar(require("./premium-override-dto"), exports);
56
60
  __exportStar(require("./premium-override-request-dto"), exports);
57
61
  __exportStar(require("./product-class"), exports);
62
+ __exportStar(require("./product-document-class"), exports);
58
63
  __exportStar(require("./product-factor-class"), exports);
59
64
  __exportStar(require("./product-field-class"), exports);
60
65
  __exportStar(require("./product-version-class"), exports);
61
66
  __exportStar(require("./send-notification-request-dto"), exports);
62
67
  __exportStar(require("./send-notification-response-class"), exports);
68
+ __exportStar(require("./structured-address-class"), exports);
69
+ __exportStar(require("./suggested-address-details-class"), exports);
63
70
  __exportStar(require("./update-lead-request-dto"), exports);
64
71
  __exportStar(require("./update-lead-response-class"), exports);
65
72
  __exportStar(require("./uploaded-document-dto"), exports);
73
+ __exportStar(require("./validate-address-response-class"), exports);
@@ -53,23 +53,23 @@ export interface InsuredObjectClass {
53
53
  */
54
54
  'productFields': Array<ProductFieldClass>;
55
55
  /**
56
- * Insured object count default to 1.
57
- * @type {number}
56
+ * A boolean value indicating whether the current insured object is multiple or not default to false.
57
+ * @type {boolean}
58
58
  * @memberof InsuredObjectClass
59
59
  */
60
- 'count': number;
60
+ 'isMultiInsuredObject': boolean;
61
61
  /**
62
- * Minimum insured object count default to 0.
62
+ * Minimum insured objects count
63
63
  * @type {number}
64
64
  * @memberof InsuredObjectClass
65
65
  */
66
- 'min': number;
66
+ 'minInsuredObjectsCount'?: number;
67
67
  /**
68
- * Maximum insured object count default to 1.
68
+ * Maximum insured objects count
69
69
  * @type {number}
70
70
  * @memberof InsuredObjectClass
71
71
  */
72
- 'max': number;
72
+ 'maxInsuredObjectsCount'?: number;
73
73
  /**
74
74
  * Time at which the object was created.
75
75
  * @type {string}
@@ -81,6 +81,12 @@ export interface LeadClass {
81
81
  * @memberof LeadClass
82
82
  */
83
83
  'quote': InvoiceClass;
84
+ /**
85
+ * ERN of the organization that created the lead.
86
+ * @type {string}
87
+ * @memberof LeadClass
88
+ */
89
+ 'ern': string;
84
90
  /**
85
91
  * Time at which the object was created.
86
92
  * @type {string}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public 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 { ProductDocumentClass } from './product-document-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListProductDocumentsResponseClass
17
+ */
18
+ export interface ListProductDocumentsResponseClass {
19
+ /**
20
+ * The list of documents.
21
+ * @type {Array<ProductDocumentClass>}
22
+ * @memberof ListProductDocumentsResponseClass
23
+ */
24
+ 'items': Array<ProductDocumentClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListProductDocumentsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public 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 });