@emilgroup/public-api-sdk-node 1.8.0 → 1.10.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 +352 -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 +361 -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
@@ -196,6 +196,73 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
196
196
  /**
197
197
  * 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.
198
198
  * @summary List documents
199
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
200
+ * @param {string} [authorization] Bearer Token
201
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
202
+ * @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.
203
+ * @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.
204
+ * @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.
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
209
+ if (options === void 0) { options = {}; }
210
+ return __awaiter(_this, void 0, void 0, function () {
211
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
+ return __generator(this, function (_a) {
213
+ switch (_a.label) {
214
+ case 0:
215
+ // verify required parameter 'filter' is not null or undefined
216
+ (0, common_1.assertParamExists)('listDocuments', 'filter', filter);
217
+ localVarPath = "/publicapi/v1/documents";
218
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
219
+ if (configuration) {
220
+ baseOptions = configuration.baseOptions;
221
+ baseAccessToken = configuration.accessToken;
222
+ }
223
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
224
+ localVarHeaderParameter = {};
225
+ localVarQueryParameter = {};
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
229
+ case 1:
230
+ // authentication bearer required
231
+ // http bearer authentication required
232
+ _a.sent();
233
+ if (pageSize !== undefined) {
234
+ localVarQueryParameter['pageSize'] = pageSize;
235
+ }
236
+ if (pageToken !== undefined) {
237
+ localVarQueryParameter['pageToken'] = pageToken;
238
+ }
239
+ if (filter !== undefined) {
240
+ localVarQueryParameter['filter'] = filter;
241
+ }
242
+ if (order !== undefined) {
243
+ localVarQueryParameter['order'] = order;
244
+ }
245
+ if (expand !== undefined) {
246
+ localVarQueryParameter['expand'] = expand;
247
+ }
248
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
249
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
+ }
251
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
252
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
254
+ return [2 /*return*/, {
255
+ url: (0, common_1.toPathString)(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ }];
258
+ }
259
+ });
260
+ });
261
+ },
262
+ /**
263
+ * 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.
264
+ * @summary List product documents
265
+ * @param {string} productCode
199
266
  * @param {string} [authorization] Bearer Token
200
267
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
201
268
  * @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.
@@ -206,14 +273,17 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
206
273
  * @param {*} [options] Override http request option.
207
274
  * @throws {RequiredError}
208
275
  */
209
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
276
+ listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
210
277
  if (options === void 0) { options = {}; }
211
278
  return __awaiter(_this, void 0, void 0, function () {
212
279
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
280
  return __generator(this, function (_a) {
214
281
  switch (_a.label) {
215
282
  case 0:
216
- localVarPath = "/publicapi/v1/documents";
283
+ // verify required parameter 'productCode' is not null or undefined
284
+ (0, common_1.assertParamExists)('listProductDocuments', 'productCode', productCode);
285
+ localVarPath = "/publicapi/v1/documents/{productCode}"
286
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
217
287
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
288
  if (configuration) {
219
289
  baseOptions = configuration.baseOptions;
@@ -316,6 +386,32 @@ var DocumentsApiFp = function (configuration) {
316
386
  /**
317
387
  * 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.
318
388
  * @summary List documents
389
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
390
+ * @param {string} [authorization] Bearer Token
391
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
392
+ * @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.
393
+ * @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.
394
+ * @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.
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ */
398
+ listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
399
+ return __awaiter(this, void 0, void 0, function () {
400
+ var localVarAxiosArgs;
401
+ return __generator(this, function (_a) {
402
+ switch (_a.label) {
403
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options)];
404
+ case 1:
405
+ localVarAxiosArgs = _a.sent();
406
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
407
+ }
408
+ });
409
+ });
410
+ },
411
+ /**
412
+ * 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.
413
+ * @summary List product documents
414
+ * @param {string} productCode
319
415
  * @param {string} [authorization] Bearer Token
320
416
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
321
417
  * @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.
@@ -326,12 +422,12 @@ var DocumentsApiFp = function (configuration) {
326
422
  * @param {*} [options] Override http request option.
327
423
  * @throws {RequiredError}
328
424
  */
329
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
425
+ listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
330
426
  return __awaiter(this, void 0, void 0, function () {
331
427
  var localVarAxiosArgs;
332
428
  return __generator(this, function (_a) {
333
429
  switch (_a.label) {
334
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options)];
430
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options)];
335
431
  case 1:
336
432
  localVarAxiosArgs = _a.sent();
337
433
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -374,6 +470,22 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
374
470
  /**
375
471
  * 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.
376
472
  * @summary List documents
473
+ * @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
474
+ * @param {string} [authorization] Bearer Token
475
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
476
+ * @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.
477
+ * @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.
478
+ * @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.
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
483
+ return localVarFp.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options).then(function (request) { return request(axios, basePath); });
484
+ },
485
+ /**
486
+ * 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.
487
+ * @summary List product documents
488
+ * @param {string} productCode
377
489
  * @param {string} [authorization] Bearer Token
378
490
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
379
491
  * @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.
@@ -384,8 +496,8 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
384
496
  * @param {*} [options] Override http request option.
385
497
  * @throws {RequiredError}
386
498
  */
387
- listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
388
- return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
499
+ listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
500
+ return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
389
501
  },
390
502
  };
391
503
  };
@@ -435,8 +547,19 @@ var DocumentsApi = /** @class */ (function (_super) {
435
547
  */
436
548
  DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
437
549
  var _this = this;
438
- if (requestParameters === void 0) { requestParameters = {}; }
439
- 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); });
550
+ 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); });
551
+ };
552
+ /**
553
+ * 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.
554
+ * @summary List product documents
555
+ * @param {DocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
556
+ * @param {*} [options] Override http request option.
557
+ * @throws {RequiredError}
558
+ * @memberof DocumentsApi
559
+ */
560
+ DocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
561
+ var _this = this;
562
+ 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); });
440
563
  };
441
564
  return DocumentsApi;
442
565
  }(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 });