@emilgroup/claim-sdk 1.17.2-beta.1 → 1.17.2-beta.2

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 (48) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/claim-partner-roles-api.ts +9 -9
  4. package/api/claim-regulations-api.ts +364 -0
  5. package/api/claim-statuses-api.ts +9 -9
  6. package/api.ts +2 -0
  7. package/base.ts +5 -1
  8. package/dist/api/claim-partner-roles-api.d.ts +9 -9
  9. package/dist/api/claim-partner-roles-api.js +3 -3
  10. package/dist/api/claim-regulations-api.d.ts +215 -0
  11. package/dist/api/claim-regulations-api.js +358 -0
  12. package/dist/api/claim-statuses-api.d.ts +9 -9
  13. package/dist/api/claim-statuses-api.js +3 -3
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/base.d.ts +1 -0
  17. package/dist/base.js +4 -1
  18. package/dist/models/create-regulation-item-request-dto.d.ts +75 -0
  19. package/dist/models/create-regulation-item-request-dto.js +21 -0
  20. package/dist/models/index.d.ts +9 -0
  21. package/dist/models/index.js +9 -0
  22. package/dist/models/payout-details-class.d.ts +90 -0
  23. package/dist/models/payout-details-class.js +26 -0
  24. package/dist/models/payout-details-dto.d.ts +60 -0
  25. package/dist/models/payout-details-dto.js +26 -0
  26. package/dist/models/regress-details-class.d.ts +81 -0
  27. package/dist/models/regress-details-class.js +29 -0
  28. package/dist/models/regress-details-dto.d.ts +51 -0
  29. package/dist/models/regress-details-dto.js +29 -0
  30. package/dist/models/regulation-item-class.d.ts +125 -0
  31. package/dist/models/regulation-item-class.js +34 -0
  32. package/dist/models/regulation-item-response-class.d.ts +25 -0
  33. package/dist/models/regulation-item-response-class.js +15 -0
  34. package/dist/models/reserve-details-class.d.ts +59 -0
  35. package/dist/models/reserve-details-class.js +20 -0
  36. package/dist/models/reserve-details-dto.d.ts +29 -0
  37. package/dist/models/reserve-details-dto.js +20 -0
  38. package/models/create-regulation-item-request-dto.ts +84 -0
  39. package/models/index.ts +9 -0
  40. package/models/payout-details-class.ts +100 -0
  41. package/models/payout-details-dto.ts +70 -0
  42. package/models/regress-details-class.ts +91 -0
  43. package/models/regress-details-dto.ts +61 -0
  44. package/models/regulation-item-class.ts +135 -0
  45. package/models/regulation-item-response-class.ts +31 -0
  46. package/models/reserve-details-class.ts +68 -0
  47. package/models/reserve-details-dto.ts +38 -0
  48. package/package.json +1 -1
@@ -0,0 +1,358 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService 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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.ClaimRegulationsApi = exports.ClaimRegulationsApiFactory = exports.ClaimRegulationsApiFp = exports.ClaimRegulationsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * ClaimRegulationsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This endpoint will create a new regulation item for a claim
97
+ * @summary Create the claim regulation item
98
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createClaimRegulation: function (createRegulationItemRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createRegulationItemRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createClaimRegulation', 'createRegulationItemRequestDto', createRegulationItemRequestDto);
112
+ localVarPath = "/v1/claims/regulations";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createRegulationItemRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
146
+ * @summary Retrieve the claim regulation item
147
+ * @param {string} code
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
150
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
151
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
152
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
153
+ * @param {any} [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.
154
+ * @param {'partners'} [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.
155
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ getClaimRegulation: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
160
+ if (options === void 0) { options = {}; }
161
+ return __awaiter(_this, void 0, void 0, function () {
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0:
166
+ // verify required parameter 'code' is not null or undefined
167
+ (0, common_1.assertParamExists)('getClaimRegulation', 'code', code);
168
+ localVarPath = "/v1/claims/regulations/{code}"
169
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
170
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ if (pageSize !== undefined) {
186
+ localVarQueryParameter['pageSize'] = pageSize;
187
+ }
188
+ if (pageToken !== undefined) {
189
+ localVarQueryParameter['pageToken'] = pageToken;
190
+ }
191
+ if (filter !== undefined) {
192
+ localVarQueryParameter['filter'] = filter;
193
+ }
194
+ if (search !== undefined) {
195
+ localVarQueryParameter['search'] = search;
196
+ }
197
+ if (order !== undefined) {
198
+ localVarQueryParameter['order'] = order;
199
+ }
200
+ if (expand !== undefined) {
201
+ localVarQueryParameter['expand'] = expand;
202
+ }
203
+ if (filters !== undefined) {
204
+ localVarQueryParameter['filters'] = filters;
205
+ }
206
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
207
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
208
+ }
209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
210
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
212
+ return [2 /*return*/, {
213
+ url: (0, common_1.toPathString)(localVarUrlObj),
214
+ options: localVarRequestOptions,
215
+ }];
216
+ }
217
+ });
218
+ });
219
+ },
220
+ };
221
+ };
222
+ exports.ClaimRegulationsApiAxiosParamCreator = ClaimRegulationsApiAxiosParamCreator;
223
+ /**
224
+ * ClaimRegulationsApi - functional programming interface
225
+ * @export
226
+ */
227
+ var ClaimRegulationsApiFp = function (configuration) {
228
+ var localVarAxiosParamCreator = (0, exports.ClaimRegulationsApiAxiosParamCreator)(configuration);
229
+ return {
230
+ /**
231
+ * This endpoint will create a new regulation item for a claim
232
+ * @summary Create the claim regulation item
233
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
234
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ createClaimRegulation: function (createRegulationItemRequestDto, authorization, options) {
239
+ return __awaiter(this, void 0, void 0, function () {
240
+ var localVarAxiosArgs;
241
+ return __generator(this, function (_a) {
242
+ switch (_a.label) {
243
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaimRegulation(createRegulationItemRequestDto, authorization, options)];
244
+ case 1:
245
+ localVarAxiosArgs = _a.sent();
246
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
247
+ }
248
+ });
249
+ });
250
+ },
251
+ /**
252
+ * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
253
+ * @summary Retrieve the claim regulation item
254
+ * @param {string} code
255
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
257
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
258
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
259
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
260
+ * @param {any} [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.
261
+ * @param {'partners'} [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.
262
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ getClaimRegulation: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
267
+ return __awaiter(this, void 0, void 0, function () {
268
+ var localVarAxiosArgs;
269
+ return __generator(this, function (_a) {
270
+ switch (_a.label) {
271
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
272
+ case 1:
273
+ localVarAxiosArgs = _a.sent();
274
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
275
+ }
276
+ });
277
+ });
278
+ },
279
+ };
280
+ };
281
+ exports.ClaimRegulationsApiFp = ClaimRegulationsApiFp;
282
+ /**
283
+ * ClaimRegulationsApi - factory interface
284
+ * @export
285
+ */
286
+ var ClaimRegulationsApiFactory = function (configuration, basePath, axios) {
287
+ var localVarFp = (0, exports.ClaimRegulationsApiFp)(configuration);
288
+ return {
289
+ /**
290
+ * This endpoint will create a new regulation item for a claim
291
+ * @summary Create the claim regulation item
292
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
293
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ createClaimRegulation: function (createRegulationItemRequestDto, authorization, options) {
298
+ return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
299
+ },
300
+ /**
301
+ * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
302
+ * @summary Retrieve the claim regulation item
303
+ * @param {string} code
304
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
305
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
306
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
307
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
308
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
309
+ * @param {any} [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.
310
+ * @param {'partners'} [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.
311
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ getClaimRegulation: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
316
+ return localVarFp.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
317
+ },
318
+ };
319
+ };
320
+ exports.ClaimRegulationsApiFactory = ClaimRegulationsApiFactory;
321
+ /**
322
+ * ClaimRegulationsApi - object-oriented interface
323
+ * @export
324
+ * @class ClaimRegulationsApi
325
+ * @extends {BaseAPI}
326
+ */
327
+ var ClaimRegulationsApi = /** @class */ (function (_super) {
328
+ __extends(ClaimRegulationsApi, _super);
329
+ function ClaimRegulationsApi() {
330
+ return _super !== null && _super.apply(this, arguments) || this;
331
+ }
332
+ /**
333
+ * This endpoint will create a new regulation item for a claim
334
+ * @summary Create the claim regulation item
335
+ * @param {ClaimRegulationsApiCreateClaimRegulationRequest} requestParameters Request parameters.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ * @memberof ClaimRegulationsApi
339
+ */
340
+ ClaimRegulationsApi.prototype.createClaimRegulation = function (requestParameters, options) {
341
+ var _this = this;
342
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
343
+ };
344
+ /**
345
+ * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information.
346
+ * @summary Retrieve the claim regulation item
347
+ * @param {ClaimRegulationsApiGetClaimRegulationRequest} requestParameters Request parameters.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ * @memberof ClaimRegulationsApi
351
+ */
352
+ ClaimRegulationsApi.prototype.getClaimRegulation = function (requestParameters, options) {
353
+ var _this = this;
354
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
355
+ };
356
+ return ClaimRegulationsApi;
357
+ }(base_1.BaseAPI));
358
+ exports.ClaimRegulationsApi = ClaimRegulationsApi;
@@ -57,12 +57,12 @@ export declare const ClaimStatusesApiAxiosParamCreator: (configuration?: Configu
57
57
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
58
58
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
59
59
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id&lt;/i&gt;
60
- * @param {any} [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.
60
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
61
61
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
62
62
  * @param {*} [options] Override http request option.
63
63
  * @throws {RequiredError}
64
64
  */
65
- listClaimStatuses: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
+ listClaimStatuses: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
66
  };
67
67
  /**
68
68
  * ClaimStatusesApi - functional programming interface
@@ -105,12 +105,12 @@ export declare const ClaimStatusesApiFp: (configuration?: Configuration) => {
105
105
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
106
106
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
107
107
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id&lt;/i&gt;
108
- * @param {any} [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.
108
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
109
109
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
110
110
  * @param {*} [options] Override http request option.
111
111
  * @throws {RequiredError}
112
112
  */
113
- listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>>;
113
+ listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>>;
114
114
  };
115
115
  /**
116
116
  * ClaimStatusesApi - factory interface
@@ -153,12 +153,12 @@ export declare const ClaimStatusesApiFactory: (configuration?: Configuration, ba
153
153
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
154
154
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
155
155
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id&lt;/i&gt;
156
- * @param {any} [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.
156
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
157
157
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
160
160
  */
161
- listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListClaimStatusesResponseClass>;
161
+ listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListClaimStatusesResponseClass>;
162
162
  };
163
163
  /**
164
164
  * Request parameters for createClaimStatus operation in ClaimStatusesApi.
@@ -260,11 +260,11 @@ export interface ClaimStatusesApiListClaimStatusesRequest {
260
260
  */
261
261
  readonly order?: string;
262
262
  /**
263
- * 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.
264
- * @type {any}
263
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
264
+ * @type {string}
265
265
  * @memberof ClaimStatusesApiListClaimStatuses
266
266
  */
267
- readonly expand?: any;
267
+ readonly expand?: string;
268
268
  /**
269
269
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
270
270
  * @type {string}
@@ -246,7 +246,7 @@ var ClaimStatusesApiAxiosParamCreator = function (configuration) {
246
246
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
247
247
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
248
248
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id&lt;/i&gt;
249
- * @param {any} [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.
249
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
250
250
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
251
251
  * @param {*} [options] Override http request option.
252
252
  * @throws {RequiredError}
@@ -391,7 +391,7 @@ var ClaimStatusesApiFp = function (configuration) {
391
391
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
392
392
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
393
393
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id&lt;/i&gt;
394
- * @param {any} [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.
394
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
395
395
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
396
396
  * @param {*} [options] Override http request option.
397
397
  * @throws {RequiredError}
@@ -461,7 +461,7 @@ var ClaimStatusesApiFactory = function (configuration, basePath, axios) {
461
461
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
462
462
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
463
463
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id&lt;/i&gt;
464
- * @param {any} [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.
464
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: .&lt;i&gt;
465
465
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, name, productSlug&lt;/i&gt;
466
466
  * @param {*} [options] Override http request option.
467
467
  * @throws {RequiredError}
package/dist/api.d.ts CHANGED
@@ -11,6 +11,7 @@
11
11
  */
12
12
  export * from './api/claim-partner-roles-api';
13
13
  export * from './api/claim-partners-api';
14
+ export * from './api/claim-regulations-api';
14
15
  export * from './api/claim-statuses-api';
15
16
  export * from './api/claims-api';
16
17
  export * from './api/default-api';
package/dist/api.js CHANGED
@@ -29,6 +29,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/claim-partner-roles-api"), exports);
31
31
  __exportStar(require("./api/claim-partners-api"), exports);
32
+ __exportStar(require("./api/claim-regulations-api"), exports);
32
33
  __exportStar(require("./api/claim-statuses-api"), exports);
33
34
  __exportStar(require("./api/claims-api"), exports);
34
35
  __exportStar(require("./api/default-api"), exports);
package/dist/base.d.ts CHANGED
@@ -54,6 +54,7 @@ export declare class BaseAPI {
54
54
  private tokenData?;
55
55
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
56
56
  selectEnvironment(env: Environment): void;
57
+ selectBasePath(path: string): void;
57
58
  authorize(username: string, password: string): Promise<void>;
58
59
  refreshTokenInternal(): Promise<string>;
59
60
  private storeTokenData;
package/dist/base.js CHANGED
@@ -138,7 +138,10 @@ var BaseAPI = /** @class */ (function () {
138
138
  this.attachInterceptor(axios);
139
139
  }
140
140
  BaseAPI.prototype.selectEnvironment = function (env) {
141
- this.configuration.basePath = env;
141
+ this.selectBasePath(env);
142
+ };
143
+ BaseAPI.prototype.selectBasePath = function (path) {
144
+ this.configuration.basePath = path;
142
145
  };
143
146
  BaseAPI.prototype.authorize = function (username, password) {
144
147
  return __awaiter(this, void 0, void 0, function () {
@@ -0,0 +1,75 @@
1
+ /**
2
+ * EMIL ClaimService
3
+ * The EMIL ClaimService 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 { PayoutDetailsDto } from './payout-details-dto';
13
+ import { RegressDetailsDto } from './regress-details-dto';
14
+ import { ReserveDetailsDto } from './reserve-details-dto';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface CreateRegulationItemRequestDto
19
+ */
20
+ export interface CreateRegulationItemRequestDto {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof CreateRegulationItemRequestDto
25
+ */
26
+ 'regulationItemType': CreateRegulationItemRequestDtoRegulationItemTypeEnum;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof CreateRegulationItemRequestDto
31
+ */
32
+ 'amount': number;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof CreateRegulationItemRequestDto
37
+ */
38
+ 'currency': string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof CreateRegulationItemRequestDto
43
+ */
44
+ 'bookingDate': string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof CreateRegulationItemRequestDto
49
+ */
50
+ 'claimCode': string;
51
+ /**
52
+ *
53
+ * @type {PayoutDetailsDto}
54
+ * @memberof CreateRegulationItemRequestDto
55
+ */
56
+ 'payoutDetails'?: PayoutDetailsDto;
57
+ /**
58
+ *
59
+ * @type {ReserveDetailsDto}
60
+ * @memberof CreateRegulationItemRequestDto
61
+ */
62
+ 'reserveDetails'?: ReserveDetailsDto;
63
+ /**
64
+ *
65
+ * @type {RegressDetailsDto}
66
+ * @memberof CreateRegulationItemRequestDto
67
+ */
68
+ 'regressDetails'?: RegressDetailsDto;
69
+ }
70
+ export declare const CreateRegulationItemRequestDtoRegulationItemTypeEnum: {
71
+ readonly Payout: "PAYOUT";
72
+ readonly Regress: "REGRESS";
73
+ readonly Reserve: "RESERVE";
74
+ };
75
+ export type CreateRegulationItemRequestDtoRegulationItemTypeEnum = typeof CreateRegulationItemRequestDtoRegulationItemTypeEnum[keyof typeof CreateRegulationItemRequestDtoRegulationItemTypeEnum];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL ClaimService
6
+ * The EMIL ClaimService 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 });
16
+ exports.CreateRegulationItemRequestDtoRegulationItemTypeEnum = void 0;
17
+ exports.CreateRegulationItemRequestDtoRegulationItemTypeEnum = {
18
+ Payout: 'PAYOUT',
19
+ Regress: 'REGRESS',
20
+ Reserve: 'RESERVE'
21
+ };
@@ -10,6 +10,7 @@ export * from './create-claim-request-dto';
10
10
  export * from './create-claim-response-class';
11
11
  export * from './create-claim-status-request-dto';
12
12
  export * from './create-claim-status-response-class';
13
+ export * from './create-regulation-item-request-dto';
13
14
  export * from './create-settlement-request-dto';
14
15
  export * from './create-settlement-response-class';
15
16
  export * from './get-claim-partner-response-class';
@@ -26,6 +27,14 @@ export * from './list-claims-response-class';
26
27
  export * from './list-settlements-response-class';
27
28
  export * from './patch-claim-request-dto';
28
29
  export * from './patch-claim-response-class';
30
+ export * from './payout-details-class';
31
+ export * from './payout-details-dto';
32
+ export * from './regress-details-class';
33
+ export * from './regress-details-dto';
34
+ export * from './regulation-item-class';
35
+ export * from './regulation-item-response-class';
36
+ export * from './reserve-details-class';
37
+ export * from './reserve-details-dto';
29
38
  export * from './settlement-class';
30
39
  export * from './update-claim-partner-role-request-dto';
31
40
  export * from './update-claim-partner-role-response-class';