@emilgroup/customer-sdk-node 1.3.0 → 1.6.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 (65) hide show
  1. package/.openapi-generator/FILES +15 -1
  2. package/README.md +2 -2
  3. package/api/customers-api.ts +798 -82
  4. package/base.ts +56 -13
  5. package/dist/api/customers-api.d.ts +456 -36
  6. package/dist/api/customers-api.js +579 -40
  7. package/dist/base.d.ts +1 -0
  8. package/dist/base.js +46 -8
  9. package/dist/models/account-class.d.ts +132 -0
  10. package/dist/models/account-class.js +15 -0
  11. package/dist/models/create-customer-request-dto.d.ts +0 -7
  12. package/dist/models/create-customer-response-class.d.ts +3 -2
  13. package/dist/models/customer-class.d.ts +67 -0
  14. package/dist/models/customer-class.js +15 -0
  15. package/dist/models/customer-document-class.d.ts +99 -0
  16. package/dist/models/customer-document-class.js +36 -0
  17. package/dist/models/get-customer-document-download-url-response-class.d.ts +24 -0
  18. package/dist/models/get-customer-document-download-url-response-class.js +15 -0
  19. package/dist/models/get-customer-response-class.d.ts +25 -0
  20. package/dist/models/get-customer-response-class.js +15 -0
  21. package/dist/models/index.d.ts +15 -1
  22. package/dist/models/index.js +15 -1
  23. package/dist/models/invoice-class.d.ts +135 -0
  24. package/dist/models/invoice-class.js +28 -0
  25. package/dist/models/list-documents-response-class.d.ts +31 -0
  26. package/dist/models/list-documents-response-class.js +15 -0
  27. package/dist/models/list-invoices-response-class.d.ts +3 -2
  28. package/dist/models/request-policy-update-request-dto.d.ts +42 -0
  29. package/dist/models/request-policy-update-request-dto.js +15 -0
  30. package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
  31. package/dist/models/shared-invoice-item-class.d.ts +102 -0
  32. package/dist/models/shared-invoice-item-class.js +15 -0
  33. package/dist/models/terminate-customer-policy-request-dto.d.ts +24 -0
  34. package/dist/models/terminate-customer-policy-request-dto.js +15 -0
  35. package/dist/models/terminate-customer-policy-response-class.d.ts +25 -0
  36. package/dist/models/terminate-customer-policy-response-class.js +15 -0
  37. package/dist/models/{create-account-request-dto.d.ts → update-account-request-dto.d.ts} +26 -32
  38. package/dist/models/{create-account-request-dto.js → update-account-request-dto.js} +2 -2
  39. package/dist/models/update-customer-request-dto.d.ts +31 -0
  40. package/dist/models/update-customer-request-dto.js +15 -0
  41. package/dist/models/update-customer-response-class.d.ts +25 -0
  42. package/dist/models/update-customer-response-class.js +15 -0
  43. package/dist/models/withdraw-customer-policy-response-class.d.ts +25 -0
  44. package/dist/models/withdraw-customer-policy-response-class.js +15 -0
  45. package/models/account-class.ts +138 -0
  46. package/models/create-customer-request-dto.ts +0 -7
  47. package/models/create-customer-response-class.ts +3 -2
  48. package/models/customer-class.ts +73 -0
  49. package/models/customer-document-class.ts +108 -0
  50. package/models/get-customer-document-download-url-response-class.ts +30 -0
  51. package/models/get-customer-response-class.ts +31 -0
  52. package/models/index.ts +15 -1
  53. package/models/invoice-class.ts +145 -0
  54. package/models/list-documents-response-class.ts +37 -0
  55. package/models/list-invoices-response-class.ts +3 -2
  56. package/models/request-policy-update-request-dto.ts +48 -0
  57. package/models/reset-password-by-customer-request-dto.ts +1 -1
  58. package/models/shared-invoice-item-class.ts +108 -0
  59. package/models/terminate-customer-policy-request-dto.ts +30 -0
  60. package/models/terminate-customer-policy-response-class.ts +31 -0
  61. package/models/{create-account-request-dto.ts → update-account-request-dto.ts} +26 -32
  62. package/models/update-customer-request-dto.ts +37 -0
  63. package/models/update-customer-response-class.ts +31 -0
  64. package/models/withdraw-customer-policy-response-class.ts +31 -0
  65. package/package.json +1 -1
package/dist/base.d.ts CHANGED
@@ -50,6 +50,7 @@ export declare class BaseAPI {
50
50
  protected basePath: string;
51
51
  protected axios: AxiosInstance;
52
52
  protected configuration: Configuration | undefined;
53
+ private lastRequestConfig?;
53
54
  private username?;
54
55
  private password?;
55
56
  private isCustomerToken;
package/dist/base.js CHANGED
@@ -130,6 +130,7 @@ var Environment;
130
130
  Environment["Production"] = "https://apiv2.emil.de";
131
131
  Environment["Test"] = "https://apiv2-test.emil.de";
132
132
  })(Environment = exports.Environment || (exports.Environment = {}));
133
+ var NETWORK_ERROR_MESSAGE = "Network Error";
133
134
  /**
134
135
  *
135
136
  * @export
@@ -254,9 +255,9 @@ var BaseAPI = /** @class */ (function () {
254
255
  case 1:
255
256
  response = _a.sent();
256
257
  accessToken = response.data.accessToken;
257
- refreshToken = this.extractRefreshToken(response);
258
258
  this.configuration.username = username;
259
259
  this.configuration.accessToken = "Bearer ".concat(accessToken);
260
+ refreshToken = this.extractRefreshToken(response);
260
261
  this.configuration.refreshToken = refreshToken;
261
262
  return [2 /*return*/];
262
263
  }
@@ -288,12 +289,12 @@ var BaseAPI = /** @class */ (function () {
288
289
  response = _a.sent();
289
290
  if (response.data.authenticationResult) {
290
291
  accessToken = response.data.authenticationResult.accessToken;
291
- refreshToken = this.extractRefreshToken(response);
292
292
  this.configuration.username = username;
293
293
  this.configuration.tenantSlug = tenantSlug;
294
294
  this.configuration.accessToken = "Bearer ".concat(accessToken);
295
- this.configuration.refreshToken = refreshToken;
296
295
  this.isCustomerToken = true;
296
+ refreshToken = this.extractRefreshToken(response);
297
+ this.configuration.refreshToken = refreshToken;
297
298
  }
298
299
  return [2 /*return*/, response];
299
300
  }
@@ -318,10 +319,10 @@ var BaseAPI = /** @class */ (function () {
318
319
  response = _a.sent();
319
320
  if (response.data.authenticationResult) {
320
321
  accessToken = response.data.authenticationResult.accessToken;
321
- refreshToken = this.extractRefreshToken(response);
322
322
  this.configuration.accessToken = "Bearer ".concat(accessToken);
323
- this.configuration.refreshToken = refreshToken;
324
323
  this.isCustomerToken = true;
324
+ refreshToken = this.extractRefreshToken(response);
325
+ this.configuration.refreshToken = refreshToken;
325
326
  }
326
327
  return [2 /*return*/, response];
327
328
  }
@@ -393,10 +394,17 @@ var BaseAPI = /** @class */ (function () {
393
394
  };
394
395
  BaseAPI.prototype.attachInterceptor = function (axios) {
395
396
  var _this = this;
397
+ axios.interceptors.request.use(function (config) {
398
+ var _a;
399
+ if (((_a = config.url) === null || _a === void 0 ? void 0 : _a.indexOf('refresh-token')) === -1) {
400
+ _this.lastRequestConfig = config;
401
+ }
402
+ return config;
403
+ });
396
404
  axios.interceptors.response.use(function (res) {
397
405
  return res;
398
406
  }, function (err) { return __awaiter(_this, void 0, void 0, function () {
399
- var originalConfig, tokenString, accessToken, localVarHeaderParameter, _error_1;
407
+ var originalConfig, tokenString, accessToken, localVarHeaderParameter, _error_1, tokenString, accessToken, localVarHeaderParameter, _error_2;
400
408
  return __generator(this, function (_a) {
401
409
  switch (_a.label) {
402
410
  case 0:
@@ -434,8 +442,38 @@ var BaseAPI = /** @class */ (function () {
434
442
  if (err.response.status === 403 && err.response.data) {
435
443
  return [2 /*return*/, Promise.reject(err.response.data)];
436
444
  }
437
- _a.label = 8;
438
- case 8: return [2 /*return*/, Promise.reject(err)];
445
+ return [3 /*break*/, 15];
446
+ case 8:
447
+ if (!(err.message === NETWORK_ERROR_MESSAGE && !originalConfig._retry)) return [3 /*break*/, 15];
448
+ _a.label = 9;
449
+ case 9:
450
+ _a.trys.push([9, 14, , 15]);
451
+ tokenString = void 0;
452
+ if (!this.isCustomerToken) return [3 /*break*/, 11];
453
+ return [4 /*yield*/, this.refreshTokenCustomer()];
454
+ case 10:
455
+ tokenString = _a.sent();
456
+ return [3 /*break*/, 13];
457
+ case 11: return [4 /*yield*/, this.refreshTokenTenant()];
458
+ case 12:
459
+ tokenString = _a.sent();
460
+ _a.label = 13;
461
+ case 13:
462
+ accessToken = "Bearer ".concat(tokenString);
463
+ localVarHeaderParameter = {};
464
+ localVarHeaderParameter['Authorization'] = accessToken;
465
+ this.lastRequestConfig.headers = __assign(__assign({}, originalConfig.headers), localVarHeaderParameter);
466
+ originalConfig = __assign({}, this.lastRequestConfig);
467
+ originalConfig._retry = true;
468
+ this.configuration.accessToken = accessToken;
469
+ return [2 /*return*/, axios(originalConfig)];
470
+ case 14:
471
+ _error_2 = _a.sent();
472
+ if (_error_2.response && _error_2.response.data) {
473
+ return [2 /*return*/, Promise.reject(_error_2.response.data)];
474
+ }
475
+ return [2 /*return*/, Promise.reject(_error_2)];
476
+ case 15: return [2 /*return*/, Promise.reject(err)];
439
477
  }
440
478
  });
441
479
  }); });
@@ -0,0 +1,132 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 AccountClass
16
+ */
17
+ export interface AccountClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof AccountClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof AccountClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Optional field in order to use a specific account number.
32
+ * @type {string}
33
+ * @memberof AccountClass
34
+ */
35
+ 'accountNumber': string;
36
+ /**
37
+ * The account\'s first name.
38
+ * @type {string}
39
+ * @memberof AccountClass
40
+ */
41
+ 'firstName': string;
42
+ /**
43
+ * The account\'s last name.
44
+ * @type {string}
45
+ * @memberof AccountClass
46
+ */
47
+ 'lastName': string;
48
+ /**
49
+ * The account\'s email address, It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
50
+ * @type {string}
51
+ * @memberof AccountClass
52
+ */
53
+ 'email': string;
54
+ /**
55
+ * The account\'s gender.
56
+ * @type {string}
57
+ * @memberof AccountClass
58
+ */
59
+ 'gender': string;
60
+ /**
61
+ * The account\'s street name.
62
+ * @type {string}
63
+ * @memberof AccountClass
64
+ */
65
+ 'street': string;
66
+ /**
67
+ * The account\'s house number.
68
+ * @type {string}
69
+ * @memberof AccountClass
70
+ */
71
+ 'houseNumber': string;
72
+ /**
73
+ * The account\'s ZIP or postal code
74
+ * @type {string}
75
+ * @memberof AccountClass
76
+ */
77
+ 'zipCode': string;
78
+ /**
79
+ * The account\'s city, district, suburb, town, or village.
80
+ * @type {string}
81
+ * @memberof AccountClass
82
+ */
83
+ 'city': string;
84
+ /**
85
+ * The account\'s date of birth
86
+ * @type {string}
87
+ * @memberof AccountClass
88
+ */
89
+ 'birthDate': string;
90
+ /**
91
+ * The account\'s phone number.
92
+ * @type {string}
93
+ * @memberof AccountClass
94
+ */
95
+ 'phone': string;
96
+ /**
97
+ * The account\'s version.
98
+ * @type {number}
99
+ * @memberof AccountClass
100
+ */
101
+ 'version': number;
102
+ /**
103
+ * Time at which the object was created.
104
+ * @type {string}
105
+ * @memberof AccountClass
106
+ */
107
+ 'createdAt': string;
108
+ /**
109
+ * Time at which the object was updated.
110
+ * @type {string}
111
+ * @memberof AccountClass
112
+ */
113
+ 'updatedAt': string;
114
+ /**
115
+ * Policies linked to the account.
116
+ * @type {Array<string>}
117
+ * @memberof AccountClass
118
+ */
119
+ 'policies': Array<string>;
120
+ /**
121
+ * Optional field contain extra information
122
+ * @type {object}
123
+ * @memberof AccountClass
124
+ */
125
+ 'metadata': object;
126
+ /**
127
+ * Optional field contain custom fields
128
+ * @type {object}
129
+ * @memberof AccountClass
130
+ */
131
+ 'customFields': object;
132
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CreateAccountRequestDto } from './create-account-request-dto';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -34,10 +33,4 @@ export interface CreateCustomerRequestDto {
34
33
  * @memberof CreateCustomerRequestDto
35
34
  */
36
35
  'isEulaAccepted': boolean;
37
- /**
38
- * Optional account data
39
- * @type {CreateAccountRequestDto}
40
- * @memberof CreateCustomerRequestDto
41
- */
42
- 'account'?: CreateAccountRequestDto;
43
36
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CustomerClass } from './customer-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,8 +18,8 @@
17
18
  export interface CreateCustomerResponseClass {
18
19
  /**
19
20
  * Customer object
20
- * @type {object}
21
+ * @type {CustomerClass}
21
22
  * @memberof CreateCustomerResponseClass
22
23
  */
23
- 'customer': object;
24
+ 'customer': CustomerClass;
24
25
  }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 { AccountClass } from './account-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CustomerClass
17
+ */
18
+ export interface CustomerClass {
19
+ /**
20
+ * Customer account information
21
+ * @type {AccountClass}
22
+ * @memberof CustomerClass
23
+ */
24
+ 'account': AccountClass;
25
+ /**
26
+ * Unique identifier for the object.
27
+ * @type {string}
28
+ * @memberof CustomerClass
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * Internal unique identifier for the object. Use code instead.
33
+ * @type {number}
34
+ * @memberof CustomerClass
35
+ */
36
+ 'id': number;
37
+ /**
38
+ * Customer status
39
+ * @type {string}
40
+ * @memberof CustomerClass
41
+ */
42
+ 'status': string;
43
+ /**
44
+ * Customer unique identifier
45
+ * @type {string}
46
+ * @memberof CustomerClass
47
+ */
48
+ 'sub': string;
49
+ /**
50
+ * Tenants short name in EIS
51
+ * @type {string}
52
+ * @memberof CustomerClass
53
+ */
54
+ 'tenantSlug': string;
55
+ /**
56
+ * Time at which the object was created.
57
+ * @type {string}
58
+ * @memberof CustomerClass
59
+ */
60
+ 'createdAt': string;
61
+ /**
62
+ * Time at which the object was updated.
63
+ * @type {string}
64
+ * @memberof CustomerClass
65
+ */
66
+ 'updatedAt': string;
67
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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,99 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 CustomerDocumentClass
16
+ */
17
+ export interface CustomerDocumentClass {
18
+ /**
19
+ * Document code
20
+ * @type {string}
21
+ * @memberof CustomerDocumentClass
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Template slug
26
+ * @type {string}
27
+ * @memberof CustomerDocumentClass
28
+ */
29
+ 'templateSlug': string;
30
+ /**
31
+ * Document entity type
32
+ * @type {string}
33
+ * @memberof CustomerDocumentClass
34
+ */
35
+ 'entityType': string;
36
+ /**
37
+ * Policy code
38
+ * @type {string}
39
+ * @memberof CustomerDocumentClass
40
+ */
41
+ 'policyCode': string;
42
+ /**
43
+ * Account code
44
+ * @type {string}
45
+ * @memberof CustomerDocumentClass
46
+ */
47
+ 'accountCode': string;
48
+ /**
49
+ * Document content type
50
+ * @type {string}
51
+ * @memberof CustomerDocumentClass
52
+ */
53
+ 'contentType': CustomerDocumentClassContentTypeEnum;
54
+ /**
55
+ * Entity id
56
+ * @type {number}
57
+ * @memberof CustomerDocumentClass
58
+ */
59
+ 'entityId': number;
60
+ /**
61
+ * Optional file name
62
+ * @type {string}
63
+ * @memberof CustomerDocumentClass
64
+ */
65
+ 'filename': string;
66
+ /**
67
+ * Document description
68
+ * @type {string}
69
+ * @memberof CustomerDocumentClass
70
+ */
71
+ 'description': string;
72
+ /**
73
+ * Document created at
74
+ * @type {string}
75
+ * @memberof CustomerDocumentClass
76
+ */
77
+ 'createdAt': string;
78
+ }
79
+ export declare const CustomerDocumentClassContentTypeEnum: {
80
+ readonly Pdf: "pdf";
81
+ readonly Jpg: "jpg";
82
+ readonly Png: "png";
83
+ readonly Gz: "gz";
84
+ readonly Csv: "csv";
85
+ readonly Doc: "doc";
86
+ readonly Docx: "docx";
87
+ readonly Html: "html";
88
+ readonly Json: "json";
89
+ readonly Xml: "xml";
90
+ readonly Txt: "txt";
91
+ readonly Zip: "zip";
92
+ readonly Tar: "tar";
93
+ readonly Rar: "rar";
94
+ readonly Mp4: "MP4";
95
+ readonly Mov: "MOV";
96
+ readonly Wmv: "WMV";
97
+ readonly Avi: "AVI";
98
+ };
99
+ export declare type CustomerDocumentClassContentTypeEnum = typeof CustomerDocumentClassContentTypeEnum[keyof typeof CustomerDocumentClassContentTypeEnum];
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CustomerDocumentClassContentTypeEnum = void 0;
17
+ exports.CustomerDocumentClassContentTypeEnum = {
18
+ Pdf: 'pdf',
19
+ Jpg: 'jpg',
20
+ Png: 'png',
21
+ Gz: 'gz',
22
+ Csv: 'csv',
23
+ Doc: 'doc',
24
+ Docx: 'docx',
25
+ Html: 'html',
26
+ Json: 'json',
27
+ Xml: 'xml',
28
+ Txt: 'txt',
29
+ Zip: 'zip',
30
+ Tar: 'tar',
31
+ Rar: 'rar',
32
+ Mp4: 'MP4',
33
+ Mov: 'MOV',
34
+ Wmv: 'WMV',
35
+ Avi: 'AVI'
36
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 GetCustomerDocumentDownloadUrlResponseClass
16
+ */
17
+ export interface GetCustomerDocumentDownloadUrlResponseClass {
18
+ /**
19
+ * Pre-signed Url
20
+ * @type {string}
21
+ * @memberof GetCustomerDocumentDownloadUrlResponseClass
22
+ */
23
+ 'url': string;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
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 { CustomerClass } from './customer-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetCustomerResponseClass
17
+ */
18
+ export interface GetCustomerResponseClass {
19
+ /**
20
+ * Customer object
21
+ * @type {CustomerClass}
22
+ * @memberof GetCustomerResponseClass
23
+ */
24
+ 'customer': CustomerClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
@@ -1,8 +1,12 @@
1
+ export * from './account-class';
1
2
  export * from './authentication-result-class';
2
- export * from './create-account-request-dto';
3
3
  export * from './create-customer-request-dto';
4
4
  export * from './create-customer-response-class';
5
+ export * from './customer-class';
6
+ export * from './customer-document-class';
5
7
  export * from './forgot-password-request-dto';
8
+ export * from './get-customer-document-download-url-response-class';
9
+ export * from './get-customer-response-class';
6
10
  export * from './get-policy-response-class';
7
11
  export * from './initiate-auth-request-dto';
8
12
  export * from './initiate-auth-response-class';
@@ -10,6 +14,8 @@ export * from './invite-by-customer-request-dto';
10
14
  export * from './invite-by-customer-response-class';
11
15
  export * from './invite-by-tenant-response-class';
12
16
  export * from './invite-class';
17
+ export * from './invoice-class';
18
+ export * from './list-documents-response-class';
13
19
  export * from './list-invoices-response-class';
14
20
  export * from './list-policies-response-class';
15
21
  export * from './policy-class';
@@ -18,9 +24,17 @@ export * from './policy-premium-class';
18
24
  export * from './policy-premium-item-class';
19
25
  export * from './policy-version-class';
20
26
  export * from './refresh-token-dto';
27
+ export * from './request-policy-update-request-dto';
21
28
  export * from './request-policy-update-response-class';
22
29
  export * from './reset-password-by-customer-request-dto';
23
30
  export * from './respond-to-auth-challenge-class';
24
31
  export * from './respond-to-auth-challenge-request-dto';
32
+ export * from './shared-invoice-item-class';
33
+ export * from './terminate-customer-policy-request-dto';
34
+ export * from './terminate-customer-policy-response-class';
25
35
  export * from './timeslice-class';
36
+ export * from './update-account-request-dto';
37
+ export * from './update-customer-request-dto';
38
+ export * from './update-customer-response-class';
26
39
  export * from './verify-customer-invite-response-class';
40
+ export * from './withdraw-customer-policy-response-class';