@emilgroup/claim-sdk 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/claim-statuses-api.ts +543 -0
  6. package/api/claims-api.ts +783 -0
  7. package/api/default-api.ts +120 -0
  8. package/api/settlements-api.ts +663 -0
  9. package/api.ts +33 -0
  10. package/base.ts +250 -0
  11. package/common.ts +198 -0
  12. package/configuration.ts +101 -0
  13. package/dist/api/claim-statuses-api.d.ts +309 -0
  14. package/dist/api/claim-statuses-api.js +531 -0
  15. package/dist/api/claims-api.d.ts +441 -0
  16. package/dist/api/claims-api.js +729 -0
  17. package/dist/api/default-api.d.ts +66 -0
  18. package/dist/api/default-api.js +196 -0
  19. package/dist/api/settlements-api.d.ts +375 -0
  20. package/dist/api/settlements-api.js +630 -0
  21. package/dist/api.d.ts +15 -0
  22. package/dist/api.js +33 -0
  23. package/dist/base.d.ts +73 -0
  24. package/dist/base.js +297 -0
  25. package/dist/common.d.ts +91 -0
  26. package/dist/common.js +276 -0
  27. package/dist/configuration.d.ts +83 -0
  28. package/dist/configuration.js +44 -0
  29. package/dist/index.d.ts +15 -0
  30. package/dist/index.js +36 -0
  31. package/dist/models/claim-class.d.ts +156 -0
  32. package/dist/models/claim-class.js +15 -0
  33. package/dist/models/claim-status-class.d.ts +36 -0
  34. package/dist/models/claim-status-class.js +15 -0
  35. package/dist/models/create-claim-request-dto.d.ts +126 -0
  36. package/dist/models/create-claim-request-dto.js +15 -0
  37. package/dist/models/create-claim-response-class.d.ts +25 -0
  38. package/dist/models/create-claim-response-class.js +15 -0
  39. package/dist/models/create-claim-status-request-dto.d.ts +30 -0
  40. package/dist/models/create-claim-status-request-dto.js +15 -0
  41. package/dist/models/create-claim-status-response-class.d.ts +25 -0
  42. package/dist/models/create-claim-status-response-class.js +15 -0
  43. package/dist/models/create-settlement-request-dto.d.ts +48 -0
  44. package/dist/models/create-settlement-request-dto.js +15 -0
  45. package/dist/models/create-settlement-response-class.d.ts +25 -0
  46. package/dist/models/create-settlement-response-class.js +15 -0
  47. package/dist/models/get-claim-response-class.d.ts +25 -0
  48. package/dist/models/get-claim-response-class.js +15 -0
  49. package/dist/models/get-claim-status-response-class.d.ts +25 -0
  50. package/dist/models/get-claim-status-response-class.js +15 -0
  51. package/dist/models/get-settlement-response-class.d.ts +25 -0
  52. package/dist/models/get-settlement-response-class.js +15 -0
  53. package/dist/models/index.d.ts +23 -0
  54. package/dist/models/index.js +39 -0
  55. package/dist/models/inline-response200.d.ts +54 -0
  56. package/dist/models/inline-response200.js +15 -0
  57. package/dist/models/inline-response503.d.ts +54 -0
  58. package/dist/models/inline-response503.js +15 -0
  59. package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
  60. package/dist/models/list-claim-statuses-response-class.js +15 -0
  61. package/dist/models/list-claims-response-class.d.ts +31 -0
  62. package/dist/models/list-claims-response-class.js +15 -0
  63. package/dist/models/list-settlements-response-class.d.ts +31 -0
  64. package/dist/models/list-settlements-response-class.js +15 -0
  65. package/dist/models/patch-claim-request-dto.d.ts +126 -0
  66. package/dist/models/patch-claim-request-dto.js +15 -0
  67. package/dist/models/patch-claim-response-class.d.ts +25 -0
  68. package/dist/models/patch-claim-response-class.js +15 -0
  69. package/dist/models/settlement-class.d.ts +78 -0
  70. package/dist/models/settlement-class.js +15 -0
  71. package/dist/models/update-claim-request-dto.d.ts +126 -0
  72. package/dist/models/update-claim-request-dto.js +15 -0
  73. package/dist/models/update-claim-response-class.d.ts +25 -0
  74. package/dist/models/update-claim-response-class.js +15 -0
  75. package/dist/models/update-settlement-request-dto.d.ts +54 -0
  76. package/dist/models/update-settlement-request-dto.js +15 -0
  77. package/dist/models/update-settlement-response-class.d.ts +25 -0
  78. package/dist/models/update-settlement-response-class.js +15 -0
  79. package/git_push.sh +57 -0
  80. package/index.ts +19 -0
  81. package/models/claim-class.ts +162 -0
  82. package/models/claim-status-class.ts +42 -0
  83. package/models/create-claim-request-dto.ts +132 -0
  84. package/models/create-claim-response-class.ts +31 -0
  85. package/models/create-claim-status-request-dto.ts +36 -0
  86. package/models/create-claim-status-response-class.ts +31 -0
  87. package/models/create-settlement-request-dto.ts +54 -0
  88. package/models/create-settlement-response-class.ts +31 -0
  89. package/models/get-claim-response-class.ts +31 -0
  90. package/models/get-claim-status-response-class.ts +31 -0
  91. package/models/get-settlement-response-class.ts +31 -0
  92. package/models/index.ts +23 -0
  93. package/models/inline-response200.ts +48 -0
  94. package/models/inline-response503.ts +48 -0
  95. package/models/list-claim-statuses-response-class.ts +37 -0
  96. package/models/list-claims-response-class.ts +37 -0
  97. package/models/list-settlements-response-class.ts +37 -0
  98. package/models/patch-claim-request-dto.ts +132 -0
  99. package/models/patch-claim-response-class.ts +31 -0
  100. package/models/settlement-class.ts +84 -0
  101. package/models/update-claim-request-dto.ts +132 -0
  102. package/models/update-claim-response-class.ts +31 -0
  103. package/models/update-settlement-request-dto.ts +60 -0
  104. package/models/update-settlement-response-class.ts +31 -0
  105. package/package.json +27 -0
  106. package/tsconfig.json +22 -0
@@ -0,0 +1,531 @@
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.ClaimStatusesApi = exports.ClaimStatusesApiFactory = exports.ClaimStatusesApiFp = exports.ClaimStatusesApiAxiosParamCreator = 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
+ * ClaimStatusesApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var ClaimStatusesApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This creates a claim status in the database
97
+ * @summary Create the claim status
98
+ * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
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
+ createClaimStatus: function (createClaimStatusRequestDto, 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 'createClaimStatusRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createClaimStatus', 'createClaimStatusRequestDto', createClaimStatusRequestDto);
112
+ localVarPath = "/v1/claim-statuses";
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)(createClaimStatusRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
146
+ * @summary Delete the claim status
147
+ * @param {number} id
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ deleteClaimStatus: function (id, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'id' is not null or undefined
160
+ (0, common_1.assertParamExists)('deleteClaimStatus', 'id', id);
161
+ localVarPath = "/v1/claim-statuses/{id}"
162
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ /**
193
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
194
+ * @summary Retrieve the claim status
195
+ * @param {number} id
196
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ getClaimStatus: function (id, authorization, options) {
201
+ if (options === void 0) { options = {}; }
202
+ return __awaiter(_this, void 0, void 0, function () {
203
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0:
207
+ // verify required parameter 'id' is not null or undefined
208
+ (0, common_1.assertParamExists)('getClaimStatus', 'id', id);
209
+ localVarPath = "/v1/claim-statuses/{id}"
210
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ baseAccessToken = configuration.accessToken;
215
+ }
216
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
217
+ localVarHeaderParameter = {};
218
+ localVarQueryParameter = {};
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
+ case 1:
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ _a.sent();
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ }
229
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ return [2 /*return*/, {
233
+ url: (0, common_1.toPathString)(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ }];
236
+ }
237
+ });
238
+ });
239
+ },
240
+ /**
241
+ * 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.
242
+ * @summary List claim statuses
243
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
245
+ * @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.
246
+ * @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.
247
+ * @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.
248
+ * @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.
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.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ listClaimStatuses: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
254
+ if (options === void 0) { options = {}; }
255
+ return __awaiter(_this, void 0, void 0, function () {
256
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
257
+ return __generator(this, function (_a) {
258
+ switch (_a.label) {
259
+ case 0:
260
+ localVarPath = "/v1/claim-statuses";
261
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
262
+ if (configuration) {
263
+ baseOptions = configuration.baseOptions;
264
+ baseAccessToken = configuration.accessToken;
265
+ }
266
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
267
+ localVarHeaderParameter = {};
268
+ localVarQueryParameter = {};
269
+ // authentication bearer required
270
+ // http bearer authentication required
271
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
272
+ case 1:
273
+ // authentication bearer required
274
+ // http bearer authentication required
275
+ _a.sent();
276
+ if (pageSize !== undefined) {
277
+ localVarQueryParameter['pageSize'] = pageSize;
278
+ }
279
+ if (pageToken !== undefined) {
280
+ localVarQueryParameter['pageToken'] = pageToken;
281
+ }
282
+ if (filter !== undefined) {
283
+ localVarQueryParameter['filter'] = filter;
284
+ }
285
+ if (search !== undefined) {
286
+ localVarQueryParameter['search'] = search;
287
+ }
288
+ if (order !== undefined) {
289
+ localVarQueryParameter['order'] = order;
290
+ }
291
+ if (expand !== undefined) {
292
+ localVarQueryParameter['expand'] = expand;
293
+ }
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
+ }
297
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
300
+ return [2 /*return*/, {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ }];
304
+ }
305
+ });
306
+ });
307
+ },
308
+ };
309
+ };
310
+ exports.ClaimStatusesApiAxiosParamCreator = ClaimStatusesApiAxiosParamCreator;
311
+ /**
312
+ * ClaimStatusesApi - functional programming interface
313
+ * @export
314
+ */
315
+ var ClaimStatusesApiFp = function (configuration) {
316
+ var localVarAxiosParamCreator = (0, exports.ClaimStatusesApiAxiosParamCreator)(configuration);
317
+ return {
318
+ /**
319
+ * This creates a claim status in the database
320
+ * @summary Create the claim status
321
+ * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
322
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ createClaimStatus: function (createClaimStatusRequestDto, authorization, options) {
327
+ return __awaiter(this, void 0, void 0, function () {
328
+ var localVarAxiosArgs;
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
331
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaimStatus(createClaimStatusRequestDto, authorization, options)];
332
+ case 1:
333
+ localVarAxiosArgs = _a.sent();
334
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
335
+ }
336
+ });
337
+ });
338
+ },
339
+ /**
340
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
341
+ * @summary Delete the claim status
342
+ * @param {number} id
343
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ deleteClaimStatus: function (id, authorization, options) {
348
+ return __awaiter(this, void 0, void 0, function () {
349
+ var localVarAxiosArgs;
350
+ return __generator(this, function (_a) {
351
+ switch (_a.label) {
352
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaimStatus(id, authorization, options)];
353
+ case 1:
354
+ localVarAxiosArgs = _a.sent();
355
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
356
+ }
357
+ });
358
+ });
359
+ },
360
+ /**
361
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
362
+ * @summary Retrieve the claim status
363
+ * @param {number} id
364
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ getClaimStatus: function (id, authorization, options) {
369
+ return __awaiter(this, void 0, void 0, function () {
370
+ var localVarAxiosArgs;
371
+ return __generator(this, function (_a) {
372
+ switch (_a.label) {
373
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimStatus(id, authorization, options)];
374
+ case 1:
375
+ localVarAxiosArgs = _a.sent();
376
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
377
+ }
378
+ });
379
+ });
380
+ },
381
+ /**
382
+ * 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.
383
+ * @summary List claim statuses
384
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
385
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
386
+ * @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.
387
+ * @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.
388
+ * @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.
389
+ * @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.
390
+ * @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.
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ listClaimStatuses: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
395
+ return __awaiter(this, void 0, void 0, function () {
396
+ var localVarAxiosArgs;
397
+ return __generator(this, function (_a) {
398
+ switch (_a.label) {
399
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, options)];
400
+ case 1:
401
+ localVarAxiosArgs = _a.sent();
402
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
403
+ }
404
+ });
405
+ });
406
+ },
407
+ };
408
+ };
409
+ exports.ClaimStatusesApiFp = ClaimStatusesApiFp;
410
+ /**
411
+ * ClaimStatusesApi - factory interface
412
+ * @export
413
+ */
414
+ var ClaimStatusesApiFactory = function (configuration, basePath, axios) {
415
+ var localVarFp = (0, exports.ClaimStatusesApiFp)(configuration);
416
+ return {
417
+ /**
418
+ * This creates a claim status in the database
419
+ * @summary Create the claim status
420
+ * @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
421
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ createClaimStatus: function (createClaimStatusRequestDto, authorization, options) {
426
+ return localVarFp.createClaimStatus(createClaimStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
427
+ },
428
+ /**
429
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
430
+ * @summary Delete the claim status
431
+ * @param {number} id
432
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ deleteClaimStatus: function (id, authorization, options) {
437
+ return localVarFp.deleteClaimStatus(id, authorization, options).then(function (request) { return request(axios, basePath); });
438
+ },
439
+ /**
440
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
441
+ * @summary Retrieve the claim status
442
+ * @param {number} id
443
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ getClaimStatus: function (id, authorization, options) {
448
+ return localVarFp.getClaimStatus(id, authorization, options).then(function (request) { return request(axios, basePath); });
449
+ },
450
+ /**
451
+ * 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.
452
+ * @summary List claim statuses
453
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
454
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
455
+ * @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.
456
+ * @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.
457
+ * @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.
458
+ * @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.
459
+ * @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.
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ listClaimStatuses: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
464
+ return localVarFp.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
465
+ },
466
+ };
467
+ };
468
+ exports.ClaimStatusesApiFactory = ClaimStatusesApiFactory;
469
+ /**
470
+ * ClaimStatusesApi - object-oriented interface
471
+ * @export
472
+ * @class ClaimStatusesApi
473
+ * @extends {BaseAPI}
474
+ */
475
+ var ClaimStatusesApi = /** @class */ (function (_super) {
476
+ __extends(ClaimStatusesApi, _super);
477
+ function ClaimStatusesApi() {
478
+ return _super !== null && _super.apply(this, arguments) || this;
479
+ }
480
+ /**
481
+ * This creates a claim status in the database
482
+ * @summary Create the claim status
483
+ * @param {ClaimStatusesApiCreateClaimStatusRequest} requestParameters Request parameters.
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ * @memberof ClaimStatusesApi
487
+ */
488
+ ClaimStatusesApi.prototype.createClaimStatus = function (requestParameters, options) {
489
+ var _this = this;
490
+ return (0, exports.ClaimStatusesApiFp)(this.configuration).createClaimStatus(requestParameters.createClaimStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
491
+ };
492
+ /**
493
+ * Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
494
+ * @summary Delete the claim status
495
+ * @param {ClaimStatusesApiDeleteClaimStatusRequest} requestParameters Request parameters.
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ * @memberof ClaimStatusesApi
499
+ */
500
+ ClaimStatusesApi.prototype.deleteClaimStatus = function (requestParameters, options) {
501
+ var _this = this;
502
+ return (0, exports.ClaimStatusesApiFp)(this.configuration).deleteClaimStatus(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
503
+ };
504
+ /**
505
+ * Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
506
+ * @summary Retrieve the claim status
507
+ * @param {ClaimStatusesApiGetClaimStatusRequest} requestParameters Request parameters.
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ * @memberof ClaimStatusesApi
511
+ */
512
+ ClaimStatusesApi.prototype.getClaimStatus = function (requestParameters, options) {
513
+ var _this = this;
514
+ return (0, exports.ClaimStatusesApiFp)(this.configuration).getClaimStatus(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
515
+ };
516
+ /**
517
+ * 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.
518
+ * @summary List claim statuses
519
+ * @param {ClaimStatusesApiListClaimStatusesRequest} requestParameters Request parameters.
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ * @memberof ClaimStatusesApi
523
+ */
524
+ ClaimStatusesApi.prototype.listClaimStatuses = function (requestParameters, options) {
525
+ var _this = this;
526
+ if (requestParameters === void 0) { requestParameters = {}; }
527
+ return (0, exports.ClaimStatusesApiFp)(this.configuration).listClaimStatuses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
528
+ };
529
+ return ClaimStatusesApi;
530
+ }(base_1.BaseAPI));
531
+ exports.ClaimStatusesApi = ClaimStatusesApi;