@emilgroup/insurance-sdk-node 1.51.0 → 1.53.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 (125) hide show
  1. package/.openapi-generator/FILES +33 -1
  2. package/README.md +18 -2
  3. package/api/commission-agreement-products-api.ts +710 -0
  4. package/api/commission-agreement-versions-api.ts +592 -0
  5. package/api/commission-agreements-api.ts +697 -0
  6. package/api/commission-recipients-api.ts +696 -0
  7. package/api/{default-api.ts → health-check-api.ts} +21 -17
  8. package/api/insured-objects-api.ts +5 -2
  9. package/api/leads-api.ts +4 -4
  10. package/api/policies-api.ts +176 -221
  11. package/api.ts +10 -2
  12. package/dist/api/commission-agreement-products-api.d.ts +403 -0
  13. package/dist/api/commission-agreement-products-api.js +652 -0
  14. package/dist/api/commission-agreement-versions-api.d.ts +337 -0
  15. package/dist/api/commission-agreement-versions-api.js +555 -0
  16. package/dist/api/commission-agreements-api.d.ts +394 -0
  17. package/dist/api/commission-agreements-api.js +646 -0
  18. package/dist/api/commission-recipients-api.d.ts +394 -0
  19. package/dist/api/commission-recipients-api.js +646 -0
  20. package/dist/api/health-check-api.d.ts +70 -0
  21. package/dist/api/{default-api.js → health-check-api.js} +30 -26
  22. package/dist/api/insured-objects-api.js +4 -2
  23. package/dist/api/leads-api.d.ts +4 -4
  24. package/dist/api/leads-api.js +4 -4
  25. package/dist/api/policies-api.d.ts +134 -161
  26. package/dist/api/policies-api.js +129 -151
  27. package/dist/api.d.ts +5 -1
  28. package/dist/api.js +5 -1
  29. package/dist/models/booking-funnel-class.d.ts +6 -0
  30. package/dist/models/commission-agreement-class.d.ts +89 -0
  31. package/dist/models/commission-agreement-class.js +23 -0
  32. package/dist/models/commission-agreement-item-class.d.ts +66 -0
  33. package/dist/models/commission-agreement-item-class.js +15 -0
  34. package/dist/models/commission-agreement-product-class.d.ts +72 -0
  35. package/dist/models/commission-agreement-product-class.js +15 -0
  36. package/dist/models/commission-agreement-version-class.d.ts +79 -0
  37. package/dist/models/commission-agreement-version-class.js +15 -0
  38. package/dist/models/commission-recipient-class.d.ts +78 -0
  39. package/dist/models/commission-recipient-class.js +15 -0
  40. package/dist/models/create-booking-funnel-request-dto.d.ts +6 -0
  41. package/dist/models/create-commission-agreement-item-dto.d.ts +36 -0
  42. package/dist/models/create-commission-agreement-item-dto.js +15 -0
  43. package/dist/models/create-commission-agreement-product-request-dto.d.ts +42 -0
  44. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  45. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  46. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  47. package/dist/models/create-commission-agreement-request-dto.d.ts +75 -0
  48. package/dist/models/create-commission-agreement-request-dto.js +23 -0
  49. package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
  50. package/dist/models/create-commission-agreement-response-class.js +15 -0
  51. package/dist/models/create-commission-agreement-version-request-dto.d.ts +49 -0
  52. package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
  53. package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
  54. package/dist/models/create-commission-agreement-version-response-class.js +15 -0
  55. package/dist/models/create-commission-recipient-request-dto.d.ts +48 -0
  56. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  57. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  58. package/dist/models/create-commission-recipient-response-class.js +15 -0
  59. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  60. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  61. package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
  62. package/dist/models/get-commission-agreement-response-class.js +15 -0
  63. package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
  64. package/dist/models/get-commission-agreement-version-response-class.js +15 -0
  65. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  66. package/dist/models/get-commission-recipient-response-class.js +15 -0
  67. package/dist/models/index.d.ts +28 -0
  68. package/dist/models/index.js +28 -0
  69. package/dist/models/list-commission-agreement-products-response-class.d.ts +31 -0
  70. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  71. package/dist/models/list-commission-agreement-versions-response-class.d.ts +31 -0
  72. package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
  73. package/dist/models/list-commission-agreements-response-class.d.ts +31 -0
  74. package/dist/models/list-commission-agreements-response-class.js +15 -0
  75. package/dist/models/list-commission-recipients-response-class.d.ts +31 -0
  76. package/dist/models/list-commission-recipients-response-class.js +15 -0
  77. package/dist/models/patch-booking-funnel-request-dto.d.ts +6 -0
  78. package/dist/models/update-booking-funnel-request-dto.d.ts +6 -0
  79. package/dist/models/update-commission-agreement-product-request-dto.d.ts +42 -0
  80. package/dist/models/update-commission-agreement-product-request-dto.js +15 -0
  81. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  82. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  83. package/dist/models/update-commission-agreement-request-dto.d.ts +44 -0
  84. package/dist/models/update-commission-agreement-request-dto.js +23 -0
  85. package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
  86. package/dist/models/update-commission-agreement-response-class.js +15 -0
  87. package/dist/models/update-commission-recipient-request-dto.d.ts +48 -0
  88. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  89. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  90. package/dist/models/update-commission-recipient-response-class.js +15 -0
  91. package/models/booking-funnel-class.ts +6 -0
  92. package/models/commission-agreement-class.ts +98 -0
  93. package/models/commission-agreement-item-class.ts +72 -0
  94. package/models/commission-agreement-product-class.ts +78 -0
  95. package/models/commission-agreement-version-class.ts +85 -0
  96. package/models/commission-recipient-class.ts +84 -0
  97. package/models/create-booking-funnel-request-dto.ts +6 -0
  98. package/models/create-commission-agreement-item-dto.ts +42 -0
  99. package/models/create-commission-agreement-product-request-dto.ts +48 -0
  100. package/models/create-commission-agreement-product-response-class.ts +31 -0
  101. package/models/create-commission-agreement-request-dto.ts +84 -0
  102. package/models/create-commission-agreement-response-class.ts +31 -0
  103. package/models/create-commission-agreement-version-request-dto.ts +55 -0
  104. package/models/create-commission-agreement-version-response-class.ts +31 -0
  105. package/models/create-commission-recipient-request-dto.ts +54 -0
  106. package/models/create-commission-recipient-response-class.ts +31 -0
  107. package/models/get-commission-agreement-product-response-class.ts +31 -0
  108. package/models/get-commission-agreement-response-class.ts +31 -0
  109. package/models/get-commission-agreement-version-response-class.ts +31 -0
  110. package/models/get-commission-recipient-response-class.ts +31 -0
  111. package/models/index.ts +28 -0
  112. package/models/list-commission-agreement-products-response-class.ts +37 -0
  113. package/models/list-commission-agreement-versions-response-class.ts +37 -0
  114. package/models/list-commission-agreements-response-class.ts +37 -0
  115. package/models/list-commission-recipients-response-class.ts +37 -0
  116. package/models/patch-booking-funnel-request-dto.ts +6 -0
  117. package/models/update-booking-funnel-request-dto.ts +6 -0
  118. package/models/update-commission-agreement-product-request-dto.ts +48 -0
  119. package/models/update-commission-agreement-product-response-class.ts +31 -0
  120. package/models/update-commission-agreement-request-dto.ts +53 -0
  121. package/models/update-commission-agreement-response-class.ts +31 -0
  122. package/models/update-commission-recipient-request-dto.ts +54 -0
  123. package/models/update-commission-recipient-response-class.ts +31 -0
  124. package/package.json +1 -1
  125. package/dist/api/default-api.d.ts +0 -66
@@ -0,0 +1,70 @@
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { InlineResponse200 } from '../models';
16
+ /**
17
+ * HealthCheckApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const HealthCheckApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
23
+ * @summary Health Check
24
+ * @param {*} [options] Override http request option.
25
+ * @throws {RequiredError}
26
+ */
27
+ check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ };
29
+ /**
30
+ * HealthCheckApi - functional programming interface
31
+ * @export
32
+ */
33
+ export declare const HealthCheckApiFp: (configuration?: Configuration) => {
34
+ /**
35
+ * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
36
+ * @summary Health Check
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
41
+ };
42
+ /**
43
+ * HealthCheckApi - factory interface
44
+ * @export
45
+ */
46
+ export declare const HealthCheckApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
+ /**
48
+ * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
49
+ * @summary Health Check
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ check(options?: any): AxiosPromise<InlineResponse200>;
54
+ };
55
+ /**
56
+ * HealthCheckApi - object-oriented interface
57
+ * @export
58
+ * @class HealthCheckApi
59
+ * @extends {BaseAPI}
60
+ */
61
+ export declare class HealthCheckApi extends BaseAPI {
62
+ /**
63
+ * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
64
+ * @summary Health Check
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ * @memberof HealthCheckApi
68
+ */
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
70
+ }
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
81
+ exports.HealthCheckApi = exports.HealthCheckApiFactory = exports.HealthCheckApiFp = exports.HealthCheckApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,14 +90,15 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * DefaultApi - axios parameter creator
93
+ * HealthCheckApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var DefaultApiAxiosParamCreator = function (configuration) {
96
+ var HealthCheckApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
100
+ * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
101
+ * @summary Health Check
101
102
  * @param {*} [options] Override http request option.
102
103
  * @throws {RequiredError}
103
104
  */
@@ -127,16 +128,17 @@ var DefaultApiAxiosParamCreator = function (configuration) {
127
128
  },
128
129
  };
129
130
  };
130
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
131
+ exports.HealthCheckApiAxiosParamCreator = HealthCheckApiAxiosParamCreator;
131
132
  /**
132
- * DefaultApi - functional programming interface
133
+ * HealthCheckApi - functional programming interface
133
134
  * @export
134
135
  */
135
- var DefaultApiFp = function (configuration) {
136
- var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
136
+ var HealthCheckApiFp = function (configuration) {
137
+ var localVarAxiosParamCreator = (0, exports.HealthCheckApiAxiosParamCreator)(configuration);
137
138
  return {
138
139
  /**
139
- *
140
+ * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
141
+ * @summary Health Check
140
142
  * @param {*} [options] Override http request option.
141
143
  * @throws {RequiredError}
142
144
  */
@@ -155,16 +157,17 @@ var DefaultApiFp = function (configuration) {
155
157
  },
156
158
  };
157
159
  };
158
- exports.DefaultApiFp = DefaultApiFp;
160
+ exports.HealthCheckApiFp = HealthCheckApiFp;
159
161
  /**
160
- * DefaultApi - factory interface
162
+ * HealthCheckApi - factory interface
161
163
  * @export
162
164
  */
163
- var DefaultApiFactory = function (configuration, basePath, axios) {
164
- var localVarFp = (0, exports.DefaultApiFp)(configuration);
165
+ var HealthCheckApiFactory = function (configuration, basePath, axios) {
166
+ var localVarFp = (0, exports.HealthCheckApiFp)(configuration);
165
167
  return {
166
168
  /**
167
- *
169
+ * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
170
+ * @summary Health Check
168
171
  * @param {*} [options] Override http request option.
169
172
  * @throws {RequiredError}
170
173
  */
@@ -173,28 +176,29 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
173
176
  },
174
177
  };
175
178
  };
176
- exports.DefaultApiFactory = DefaultApiFactory;
179
+ exports.HealthCheckApiFactory = HealthCheckApiFactory;
177
180
  /**
178
- * DefaultApi - object-oriented interface
181
+ * HealthCheckApi - object-oriented interface
179
182
  * @export
180
- * @class DefaultApi
183
+ * @class HealthCheckApi
181
184
  * @extends {BaseAPI}
182
185
  */
183
- var DefaultApi = /** @class */ (function (_super) {
184
- __extends(DefaultApi, _super);
185
- function DefaultApi() {
186
+ var HealthCheckApi = /** @class */ (function (_super) {
187
+ __extends(HealthCheckApi, _super);
188
+ function HealthCheckApi() {
186
189
  return _super !== null && _super.apply(this, arguments) || this;
187
190
  }
188
191
  /**
189
- *
192
+ * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
193
+ * @summary Health Check
190
194
  * @param {*} [options] Override http request option.
191
195
  * @throws {RequiredError}
192
- * @memberof DefaultApi
196
+ * @memberof HealthCheckApi
193
197
  */
194
- DefaultApi.prototype.check = function (options) {
198
+ HealthCheckApi.prototype.check = function (options) {
195
199
  var _this = this;
196
- return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
200
+ return (0, exports.HealthCheckApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
197
201
  };
198
- return DefaultApi;
202
+ return HealthCheckApi;
199
203
  }(base_1.BaseAPI));
200
- exports.DefaultApi = DefaultApi;
204
+ exports.HealthCheckApi = HealthCheckApi;
@@ -212,8 +212,7 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
212
212
  // verify required parameter 'id' is not null or undefined
213
213
  (0, common_1.assertParamExists)('getInsuredObject', 'id', id);
214
214
  localVarPath = "/insuranceservice/v1/insured-objects/{id}"
215
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
216
- .replace("{".concat("expand", "}"), encodeURIComponent(String(expand)));
215
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
217
216
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
217
  if (configuration) {
219
218
  baseOptions = configuration.baseOptions;
@@ -229,6 +228,9 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
229
228
  // authentication bearer required
230
229
  // http bearer authentication required
231
230
  _a.sent();
231
+ if (expand !== undefined) {
232
+ localVarQueryParameter['expand'] = expand;
233
+ }
232
234
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
235
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
236
  }
@@ -30,7 +30,7 @@ import { UpdateLeadResponseClass } from '../models';
30
30
  export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration) => {
31
31
  /**
32
32
  * This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
33
- * @summary Create the lead
33
+ * @summary Clone the lead
34
34
  * @param {string} code Unique identifier for the object.
35
35
  * @param {CloneLeadRequestDto} cloneLeadRequestDto
36
36
  * @param {string} [authorization] Bearer Token
@@ -137,7 +137,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
137
137
  export declare const LeadsApiFp: (configuration?: Configuration) => {
138
138
  /**
139
139
  * This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
140
- * @summary Create the lead
140
+ * @summary Clone the lead
141
141
  * @param {string} code Unique identifier for the object.
142
142
  * @param {CloneLeadRequestDto} cloneLeadRequestDto
143
143
  * @param {string} [authorization] Bearer Token
@@ -244,7 +244,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
244
244
  export declare const LeadsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
245
245
  /**
246
246
  * This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
247
- * @summary Create the lead
247
+ * @summary Clone the lead
248
248
  * @param {string} code Unique identifier for the object.
249
249
  * @param {CloneLeadRequestDto} cloneLeadRequestDto
250
250
  * @param {string} [authorization] Bearer Token
@@ -609,7 +609,7 @@ export interface LeadsApiUpdateLeadSyncRequest {
609
609
  export declare class LeadsApi extends BaseAPI {
610
610
  /**
611
611
  * This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
612
- * @summary Create the lead
612
+ * @summary Clone the lead
613
613
  * @param {LeadsApiCloneLeadRequest} requestParameters Request parameters.
614
614
  * @param {*} [options] Override http request option.
615
615
  * @throws {RequiredError}
@@ -98,7 +98,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
98
98
  return {
99
99
  /**
100
100
  * This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
101
- * @summary Create the lead
101
+ * @summary Clone the lead
102
102
  * @param {string} code Unique identifier for the object.
103
103
  * @param {CloneLeadRequestDto} cloneLeadRequestDto
104
104
  * @param {string} [authorization] Bearer Token
@@ -639,7 +639,7 @@ var LeadsApiFp = function (configuration) {
639
639
  return {
640
640
  /**
641
641
  * This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
642
- * @summary Create the lead
642
+ * @summary Clone the lead
643
643
  * @param {string} code Unique identifier for the object.
644
644
  * @param {CloneLeadRequestDto} cloneLeadRequestDto
645
645
  * @param {string} [authorization] Bearer Token
@@ -870,7 +870,7 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
870
870
  return {
871
871
  /**
872
872
  * This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
873
- * @summary Create the lead
873
+ * @summary Clone the lead
874
874
  * @param {string} code Unique identifier for the object.
875
875
  * @param {CloneLeadRequestDto} cloneLeadRequestDto
876
876
  * @param {string} [authorization] Bearer Token
@@ -1005,7 +1005,7 @@ var LeadsApi = /** @class */ (function (_super) {
1005
1005
  }
1006
1006
  /**
1007
1007
  * This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
1008
- * @summary Create the lead
1008
+ * @summary Clone the lead
1009
1009
  * @param {LeadsApiCloneLeadRequest} requestParameters Request parameters.
1010
1010
  * @param {*} [options] Override http request option.
1011
1011
  * @throws {RequiredError}