@emilgroup/claim-sdk-node 1.11.0 → 1.17.1

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 (76) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +2 -2
  3. package/api/claim-partner-roles-api.ts +681 -0
  4. package/api/claim-partners-api.ts +574 -0
  5. package/api/claim-statuses-api.ts +24 -10
  6. package/api/claims-api.ts +24 -10
  7. package/api/settlements-api.ts +24 -10
  8. package/api.ts +4 -0
  9. package/dist/api/claim-partner-roles-api.d.ts +384 -0
  10. package/dist/api/claim-partner-roles-api.js +640 -0
  11. package/dist/api/claim-partners-api.d.ts +327 -0
  12. package/dist/api/claim-partners-api.js +547 -0
  13. package/dist/api/claim-statuses-api.d.ts +16 -7
  14. package/dist/api/claim-statuses-api.js +15 -9
  15. package/dist/api/claims-api.d.ts +16 -7
  16. package/dist/api/claims-api.js +15 -9
  17. package/dist/api/settlements-api.d.ts +16 -7
  18. package/dist/api/settlements-api.js +15 -9
  19. package/dist/api.d.ts +2 -0
  20. package/dist/api.js +2 -0
  21. package/dist/models/claim-class.d.ts +13 -1
  22. package/dist/models/claim-partner-class.d.ts +61 -0
  23. package/dist/models/claim-partner-class.js +15 -0
  24. package/dist/models/claim-partner-role-class.d.ts +54 -0
  25. package/dist/models/claim-partner-role-class.js +15 -0
  26. package/dist/models/claim-status-class.d.ts +1 -1
  27. package/dist/models/create-claim-partner-request-dto.d.ts +36 -0
  28. package/dist/models/create-claim-partner-request-dto.js +15 -0
  29. package/dist/models/create-claim-partner-response-class.d.ts +25 -0
  30. package/dist/models/create-claim-partner-response-class.js +15 -0
  31. package/dist/models/create-claim-partner-role-request-dto.d.ts +30 -0
  32. package/dist/models/create-claim-partner-role-request-dto.js +15 -0
  33. package/dist/models/create-claim-partner-role-response-class.d.ts +25 -0
  34. package/dist/models/create-claim-partner-role-response-class.js +15 -0
  35. package/dist/models/create-claim-request-dto.d.ts +9 -3
  36. package/dist/models/create-claim-status-request-dto.d.ts +1 -1
  37. package/dist/models/get-claim-partner-response-class.d.ts +25 -0
  38. package/dist/models/get-claim-partner-response-class.js +15 -0
  39. package/dist/models/get-claim-partner-role-response-class.d.ts +25 -0
  40. package/dist/models/get-claim-partner-role-response-class.js +15 -0
  41. package/dist/models/index.d.ts +12 -0
  42. package/dist/models/index.js +12 -0
  43. package/dist/models/inline-response200.d.ts +6 -6
  44. package/dist/models/inline-response503.d.ts +6 -6
  45. package/dist/models/list-claim-partner-roles-response-class.d.ts +31 -0
  46. package/dist/models/list-claim-partner-roles-response-class.js +15 -0
  47. package/dist/models/list-claim-partners-response-class.d.ts +31 -0
  48. package/dist/models/list-claim-partners-response-class.js +15 -0
  49. package/dist/models/patch-claim-request-dto.d.ts +8 -2
  50. package/dist/models/update-claim-partner-role-request-dto.d.ts +36 -0
  51. package/dist/models/update-claim-partner-role-request-dto.js +15 -0
  52. package/dist/models/update-claim-partner-role-response-class.d.ts +25 -0
  53. package/dist/models/update-claim-partner-role-response-class.js +15 -0
  54. package/dist/models/update-claim-request-dto.d.ts +8 -2
  55. package/models/claim-class.ts +13 -1
  56. package/models/claim-partner-class.ts +67 -0
  57. package/models/claim-partner-role-class.ts +60 -0
  58. package/models/claim-status-class.ts +1 -1
  59. package/models/create-claim-partner-request-dto.ts +42 -0
  60. package/models/create-claim-partner-response-class.ts +31 -0
  61. package/models/create-claim-partner-role-request-dto.ts +36 -0
  62. package/models/create-claim-partner-role-response-class.ts +31 -0
  63. package/models/create-claim-request-dto.ts +9 -3
  64. package/models/create-claim-status-request-dto.ts +1 -1
  65. package/models/get-claim-partner-response-class.ts +31 -0
  66. package/models/get-claim-partner-role-response-class.ts +31 -0
  67. package/models/index.ts +12 -0
  68. package/models/inline-response200.ts +6 -6
  69. package/models/inline-response503.ts +6 -6
  70. package/models/list-claim-partner-roles-response-class.ts +37 -0
  71. package/models/list-claim-partners-response-class.ts +37 -0
  72. package/models/patch-claim-request-dto.ts +8 -2
  73. package/models/update-claim-partner-role-request-dto.ts +42 -0
  74. package/models/update-claim-partner-role-response-class.ts +31 -0
  75. package/models/update-claim-request-dto.ts +8 -2
  76. package/package.json +2 -2
@@ -0,0 +1,547 @@
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.ClaimPartnersApi = exports.ClaimPartnersApiFactory = exports.ClaimPartnersApiFp = exports.ClaimPartnersApiAxiosParamCreator = 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
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * ClaimPartnersApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ClaimPartnersApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will create a claim partner.
101
+ * @summary Create the claim partner
102
+ * @param {string} claimCode Unique identifier for the claim object.
103
+ * @param {CreateClaimPartnerRequestDto} createClaimPartnerRequestDto
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ createClaimPartner: function (claimCode, createClaimPartnerRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'claimCode' is not null or undefined
116
+ (0, common_1.assertParamExists)('createClaimPartner', 'claimCode', claimCode);
117
+ // verify required parameter 'createClaimPartnerRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('createClaimPartner', 'createClaimPartnerRequestDto', createClaimPartnerRequestDto);
119
+ localVarPath = "/v1/claims/{claimCode}/partner"
120
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClaimPartnerRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ /**
153
+ * Permanently deletes the claim partner. Supply the unique id that was returned when you created the claim partner and this will delete it.
154
+ * @summary Delete the claim partner
155
+ * @param {number} id
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ deleteClaimPartner: function (id, authorization, options) {
161
+ if (options === void 0) { options = {}; }
162
+ return __awaiter(_this, void 0, void 0, function () {
163
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
164
+ return __generator(this, function (_a) {
165
+ switch (_a.label) {
166
+ case 0:
167
+ // verify required parameter 'id' is not null or undefined
168
+ (0, common_1.assertParamExists)('deleteClaimPartner', 'id', id);
169
+ localVarPath = "/v1/claim-partners/{id}"
170
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
171
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ baseAccessToken = configuration.accessToken;
175
+ }
176
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
177
+ localVarHeaderParameter = {};
178
+ localVarQueryParameter = {};
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
+ case 1:
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ _a.sent();
186
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ }
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ return [2 /*return*/, {
193
+ url: (0, common_1.toPathString)(localVarUrlObj),
194
+ options: localVarRequestOptions,
195
+ }];
196
+ }
197
+ });
198
+ });
199
+ },
200
+ /**
201
+ * Retrieves the details of the claim partner that was previously created. Supply the unique claim partner id that was returned when you created it and Emil Api will return the corresponding claim partner information.
202
+ * @summary Retrieve the claim partner
203
+ * @param {number} id
204
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ getClaimPartnerRole: function (id, authorization, options) {
209
+ if (options === void 0) { options = {}; }
210
+ return __awaiter(_this, void 0, void 0, function () {
211
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
+ return __generator(this, function (_a) {
213
+ switch (_a.label) {
214
+ case 0:
215
+ // verify required parameter 'id' is not null or undefined
216
+ (0, common_1.assertParamExists)('getClaimPartnerRole', 'id', id);
217
+ localVarPath = "/v1/claim-partners/{id}"
218
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
219
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
220
+ if (configuration) {
221
+ baseOptions = configuration.baseOptions;
222
+ baseAccessToken = configuration.accessToken;
223
+ }
224
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
225
+ localVarHeaderParameter = {};
226
+ localVarQueryParameter = {};
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
+ case 1:
231
+ // authentication bearer required
232
+ // http bearer authentication required
233
+ _a.sent();
234
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
+ }
237
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
240
+ return [2 /*return*/, {
241
+ url: (0, common_1.toPathString)(localVarUrlObj),
242
+ options: localVarRequestOptions,
243
+ }];
244
+ }
245
+ });
246
+ });
247
+ },
248
+ /**
249
+ * Returns a list of claim partners you have previously created. The claim partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
250
+ * @summary List claim partners
251
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
+ * @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.
254
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
255
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
256
+ * @param {'id' | 'createdAt' | 'updatedAt'} [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.
257
+ * @param {'role' | 'partner'} [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.
258
+ * @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.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ listClaimPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
263
+ if (options === void 0) { options = {}; }
264
+ return __awaiter(_this, void 0, void 0, function () {
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
+ return __generator(this, function (_a) {
267
+ switch (_a.label) {
268
+ case 0:
269
+ localVarPath = "/v1/claim-partners";
270
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ baseAccessToken = configuration.accessToken;
274
+ }
275
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
276
+ localVarHeaderParameter = {};
277
+ localVarQueryParameter = {};
278
+ // authentication bearer required
279
+ // http bearer authentication required
280
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
281
+ case 1:
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ _a.sent();
285
+ if (pageSize !== undefined) {
286
+ localVarQueryParameter['pageSize'] = pageSize;
287
+ }
288
+ if (pageToken !== undefined) {
289
+ localVarQueryParameter['pageToken'] = pageToken;
290
+ }
291
+ if (filter !== undefined) {
292
+ localVarQueryParameter['filter'] = filter;
293
+ }
294
+ if (search !== undefined) {
295
+ localVarQueryParameter['search'] = search;
296
+ }
297
+ if (order !== undefined) {
298
+ localVarQueryParameter['order'] = order;
299
+ }
300
+ if (expand !== undefined) {
301
+ localVarQueryParameter['expand'] = expand;
302
+ }
303
+ if (filters !== undefined) {
304
+ localVarQueryParameter['filters'] = filters;
305
+ }
306
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
307
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
308
+ }
309
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
310
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
311
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
312
+ return [2 /*return*/, {
313
+ url: (0, common_1.toPathString)(localVarUrlObj),
314
+ options: localVarRequestOptions,
315
+ }];
316
+ }
317
+ });
318
+ });
319
+ },
320
+ };
321
+ };
322
+ exports.ClaimPartnersApiAxiosParamCreator = ClaimPartnersApiAxiosParamCreator;
323
+ /**
324
+ * ClaimPartnersApi - functional programming interface
325
+ * @export
326
+ */
327
+ var ClaimPartnersApiFp = function (configuration) {
328
+ var localVarAxiosParamCreator = (0, exports.ClaimPartnersApiAxiosParamCreator)(configuration);
329
+ return {
330
+ /**
331
+ * This will create a claim partner.
332
+ * @summary Create the claim partner
333
+ * @param {string} claimCode Unique identifier for the claim object.
334
+ * @param {CreateClaimPartnerRequestDto} createClaimPartnerRequestDto
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ createClaimPartner: function (claimCode, createClaimPartnerRequestDto, authorization, options) {
340
+ return __awaiter(this, void 0, void 0, function () {
341
+ var localVarAxiosArgs;
342
+ return __generator(this, function (_a) {
343
+ switch (_a.label) {
344
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaimPartner(claimCode, createClaimPartnerRequestDto, authorization, options)];
345
+ case 1:
346
+ localVarAxiosArgs = _a.sent();
347
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
348
+ }
349
+ });
350
+ });
351
+ },
352
+ /**
353
+ * Permanently deletes the claim partner. Supply the unique id that was returned when you created the claim partner and this will delete it.
354
+ * @summary Delete the claim partner
355
+ * @param {number} id
356
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ deleteClaimPartner: function (id, authorization, options) {
361
+ return __awaiter(this, void 0, void 0, function () {
362
+ var localVarAxiosArgs;
363
+ return __generator(this, function (_a) {
364
+ switch (_a.label) {
365
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaimPartner(id, authorization, options)];
366
+ case 1:
367
+ localVarAxiosArgs = _a.sent();
368
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
369
+ }
370
+ });
371
+ });
372
+ },
373
+ /**
374
+ * Retrieves the details of the claim partner that was previously created. Supply the unique claim partner id that was returned when you created it and Emil Api will return the corresponding claim partner information.
375
+ * @summary Retrieve the claim partner
376
+ * @param {number} id
377
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ */
381
+ getClaimPartnerRole: function (id, authorization, options) {
382
+ return __awaiter(this, void 0, void 0, function () {
383
+ var localVarAxiosArgs;
384
+ return __generator(this, function (_a) {
385
+ switch (_a.label) {
386
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimPartnerRole(id, authorization, options)];
387
+ case 1:
388
+ localVarAxiosArgs = _a.sent();
389
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
390
+ }
391
+ });
392
+ });
393
+ },
394
+ /**
395
+ * Returns a list of claim partners you have previously created. The claim partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
396
+ * @summary List claim partners
397
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
398
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
399
+ * @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.
400
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
401
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
402
+ * @param {'id' | 'createdAt' | 'updatedAt'} [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.
403
+ * @param {'role' | 'partner'} [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.
404
+ * @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.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ listClaimPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
409
+ return __awaiter(this, void 0, void 0, function () {
410
+ var localVarAxiosArgs;
411
+ return __generator(this, function (_a) {
412
+ switch (_a.label) {
413
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
414
+ case 1:
415
+ localVarAxiosArgs = _a.sent();
416
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
417
+ }
418
+ });
419
+ });
420
+ },
421
+ };
422
+ };
423
+ exports.ClaimPartnersApiFp = ClaimPartnersApiFp;
424
+ /**
425
+ * ClaimPartnersApi - factory interface
426
+ * @export
427
+ */
428
+ var ClaimPartnersApiFactory = function (configuration, basePath, axios) {
429
+ var localVarFp = (0, exports.ClaimPartnersApiFp)(configuration);
430
+ return {
431
+ /**
432
+ * This will create a claim partner.
433
+ * @summary Create the claim partner
434
+ * @param {string} claimCode Unique identifier for the claim object.
435
+ * @param {CreateClaimPartnerRequestDto} createClaimPartnerRequestDto
436
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ createClaimPartner: function (claimCode, createClaimPartnerRequestDto, authorization, options) {
441
+ return localVarFp.createClaimPartner(claimCode, createClaimPartnerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
442
+ },
443
+ /**
444
+ * Permanently deletes the claim partner. Supply the unique id that was returned when you created the claim partner and this will delete it.
445
+ * @summary Delete the claim partner
446
+ * @param {number} id
447
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ deleteClaimPartner: function (id, authorization, options) {
452
+ return localVarFp.deleteClaimPartner(id, authorization, options).then(function (request) { return request(axios, basePath); });
453
+ },
454
+ /**
455
+ * Retrieves the details of the claim partner that was previously created. Supply the unique claim partner id that was returned when you created it and Emil Api will return the corresponding claim partner information.
456
+ * @summary Retrieve the claim partner
457
+ * @param {number} id
458
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ getClaimPartnerRole: function (id, authorization, options) {
463
+ return localVarFp.getClaimPartnerRole(id, authorization, options).then(function (request) { return request(axios, basePath); });
464
+ },
465
+ /**
466
+ * Returns a list of claim partners you have previously created. The claim partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
467
+ * @summary List claim partners
468
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
469
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
470
+ * @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.
471
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
472
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
473
+ * @param {'id' | 'createdAt' | 'updatedAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
474
+ * @param {'role' | 'partner'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
475
+ * @param {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.
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ listClaimPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
480
+ return localVarFp.listClaimPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
481
+ },
482
+ };
483
+ };
484
+ exports.ClaimPartnersApiFactory = ClaimPartnersApiFactory;
485
+ /**
486
+ * ClaimPartnersApi - object-oriented interface
487
+ * @export
488
+ * @class ClaimPartnersApi
489
+ * @extends {BaseAPI}
490
+ */
491
+ var ClaimPartnersApi = /** @class */ (function (_super) {
492
+ __extends(ClaimPartnersApi, _super);
493
+ function ClaimPartnersApi() {
494
+ return _super !== null && _super.apply(this, arguments) || this;
495
+ }
496
+ /**
497
+ * This will create a claim partner.
498
+ * @summary Create the claim partner
499
+ * @param {ClaimPartnersApiCreateClaimPartnerRequest} requestParameters Request parameters.
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ * @memberof ClaimPartnersApi
503
+ */
504
+ ClaimPartnersApi.prototype.createClaimPartner = function (requestParameters, options) {
505
+ var _this = this;
506
+ return (0, exports.ClaimPartnersApiFp)(this.configuration).createClaimPartner(requestParameters.claimCode, requestParameters.createClaimPartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
507
+ };
508
+ /**
509
+ * Permanently deletes the claim partner. Supply the unique id that was returned when you created the claim partner and this will delete it.
510
+ * @summary Delete the claim partner
511
+ * @param {ClaimPartnersApiDeleteClaimPartnerRequest} requestParameters Request parameters.
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ * @memberof ClaimPartnersApi
515
+ */
516
+ ClaimPartnersApi.prototype.deleteClaimPartner = function (requestParameters, options) {
517
+ var _this = this;
518
+ return (0, exports.ClaimPartnersApiFp)(this.configuration).deleteClaimPartner(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
519
+ };
520
+ /**
521
+ * Retrieves the details of the claim partner that was previously created. Supply the unique claim partner id that was returned when you created it and Emil Api will return the corresponding claim partner information.
522
+ * @summary Retrieve the claim partner
523
+ * @param {ClaimPartnersApiGetClaimPartnerRoleRequest} requestParameters Request parameters.
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ * @memberof ClaimPartnersApi
527
+ */
528
+ ClaimPartnersApi.prototype.getClaimPartnerRole = function (requestParameters, options) {
529
+ var _this = this;
530
+ return (0, exports.ClaimPartnersApiFp)(this.configuration).getClaimPartnerRole(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
531
+ };
532
+ /**
533
+ * Returns a list of claim partners you have previously created. The claim partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
534
+ * @summary List claim partners
535
+ * @param {ClaimPartnersApiListClaimPartnersRequest} requestParameters Request parameters.
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ * @memberof ClaimPartnersApi
539
+ */
540
+ ClaimPartnersApi.prototype.listClaimPartners = function (requestParameters, options) {
541
+ var _this = this;
542
+ if (requestParameters === void 0) { requestParameters = {}; }
543
+ return (0, exports.ClaimPartnersApiFp)(this.configuration).listClaimPartners(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); });
544
+ };
545
+ return ClaimPartnersApi;
546
+ }(base_1.BaseAPI));
547
+ exports.ClaimPartnersApi = ClaimPartnersApi;
@@ -52,16 +52,17 @@ export declare const ClaimStatusesApiAxiosParamCreator: (configuration?: Configu
52
52
  * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
53
53
  * @summary List claim statuses
54
54
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
55
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
55
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
56
56
  * @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.
57
57
  * @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
58
58
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
59
59
  * @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.
60
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.
61
+ * @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.
61
62
  * @param {*} [options] Override http request option.
62
63
  * @throws {RequiredError}
63
64
  */
64
- listClaimStatuses: (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
+ listClaimStatuses: (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
66
  };
66
67
  /**
67
68
  * ClaimStatusesApi - functional programming interface
@@ -99,16 +100,17 @@ export declare const ClaimStatusesApiFp: (configuration?: Configuration) => {
99
100
  * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
100
101
  * @summary List claim statuses
101
102
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
103
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
103
104
  * @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.
104
105
  * @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
105
106
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
106
107
  * @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.
107
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.
109
+ * @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.
108
110
  * @param {*} [options] Override http request option.
109
111
  * @throws {RequiredError}
110
112
  */
111
- listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>>;
113
+ listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>>;
112
114
  };
113
115
  /**
114
116
  * ClaimStatusesApi - factory interface
@@ -146,16 +148,17 @@ export declare const ClaimStatusesApiFactory: (configuration?: Configuration, ba
146
148
  * Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
147
149
  * @summary List claim statuses
148
150
  * @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 100. Default: 10.
151
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
150
152
  * @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
153
  * @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
152
154
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
153
155
  * @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
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.
157
+ * @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.
155
158
  * @param {*} [options] Override http request option.
156
159
  * @throws {RequiredError}
157
160
  */
158
- listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListClaimStatusesResponseClass>;
161
+ listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListClaimStatusesResponseClass>;
159
162
  };
160
163
  /**
161
164
  * Request parameters for createClaimStatus operation in ClaimStatusesApi.
@@ -227,7 +230,7 @@ export interface ClaimStatusesApiListClaimStatusesRequest {
227
230
  */
228
231
  readonly authorization?: string;
229
232
  /**
230
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
233
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
231
234
  * @type {any}
232
235
  * @memberof ClaimStatusesApiListClaimStatuses
233
236
  */
@@ -262,6 +265,12 @@ export interface ClaimStatusesApiListClaimStatusesRequest {
262
265
  * @memberof ClaimStatusesApiListClaimStatuses
263
266
  */
264
267
  readonly expand?: any;
268
+ /**
269
+ * 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.
270
+ * @type {any}
271
+ * @memberof ClaimStatusesApiListClaimStatuses
272
+ */
273
+ readonly filters?: any;
265
274
  }
266
275
  /**
267
276
  * ClaimStatusesApi - object-oriented interface