@emilgroup/claim-sdk-node 1.39.0 → 1.39.1-beta.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 (102) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/claim-limit-usages-api.ts +648 -0
  4. package/api/claim-partner-roles-api.ts +627 -0
  5. package/api/claim-partners-api.ts +520 -0
  6. package/api/claim-positions-api.ts +1340 -0
  7. package/api/claim-regulations-api.ts +644 -3
  8. package/api/claim-statuses-api.ts +752 -5
  9. package/api/claims-api.ts +863 -11
  10. package/api/health-check-api.ts +66 -0
  11. package/api/settlements-api.ts +627 -0
  12. package/api.ts +4 -0
  13. package/dist/api/claim-limit-usages-api.d.ts +378 -0
  14. package/dist/api/claim-limit-usages-api.js +585 -0
  15. package/dist/api/claim-partner-roles-api.d.ts +358 -0
  16. package/dist/api/claim-partner-roles-api.js +525 -0
  17. package/dist/api/claim-partners-api.d.ts +299 -0
  18. package/dist/api/claim-partners-api.js +428 -0
  19. package/dist/api/claim-positions-api.d.ts +760 -0
  20. package/dist/api/claim-positions-api.js +1181 -0
  21. package/dist/api/claim-regulations-api.d.ts +367 -0
  22. package/dist/api/claim-regulations-api.js +531 -0
  23. package/dist/api/claim-statuses-api.d.ts +426 -0
  24. package/dist/api/claim-statuses-api.js +642 -14
  25. package/dist/api/claims-api.d.ts +493 -8
  26. package/dist/api/claims-api.js +734 -10
  27. package/dist/api/health-check-api.d.ts +33 -0
  28. package/dist/api/health-check-api.js +73 -0
  29. package/dist/api/settlements-api.d.ts +358 -0
  30. package/dist/api/settlements-api.js +525 -0
  31. package/dist/api.d.ts +2 -0
  32. package/dist/api.js +2 -0
  33. package/dist/models/calculation-step-result-class.d.ts +72 -0
  34. package/dist/models/calculation-step-result-class.js +21 -0
  35. package/dist/models/claim-applied-deductible-class.d.ts +95 -0
  36. package/dist/models/claim-applied-deductible-class.js +20 -0
  37. package/dist/models/claim-class.d.ts +25 -0
  38. package/dist/models/claim-limit-usage-class.d.ts +143 -0
  39. package/dist/models/claim-limit-usage-class.js +30 -0
  40. package/dist/models/claim-limit-usage-result-class.d.ts +48 -0
  41. package/dist/models/claim-limit-usage-result-class.js +21 -0
  42. package/dist/models/claim-position-class.d.ts +151 -0
  43. package/dist/models/claim-position-class.js +20 -0
  44. package/dist/models/create-claim-position-request-dto.d.ts +66 -0
  45. package/dist/models/create-claim-position-request-dto.js +15 -0
  46. package/dist/models/create-claim-position-response-class.d.ts +25 -0
  47. package/dist/models/create-claim-position-response-class.js +15 -0
  48. package/dist/models/create-claim-request-dto.d.ts +6 -0
  49. package/dist/models/create-regulation-item-request-dto.d.ts +26 -3
  50. package/dist/models/create-regulation-item-request-dto.js +5 -1
  51. package/dist/models/get-claim-limit-usage-response-class.d.ts +25 -0
  52. package/dist/models/get-claim-limit-usage-response-class.js +15 -0
  53. package/dist/models/get-claim-position-response-class.d.ts +25 -0
  54. package/dist/models/get-claim-position-response-class.js +15 -0
  55. package/dist/models/index.d.ts +13 -0
  56. package/dist/models/index.js +13 -0
  57. package/dist/models/list-claim-limit-usages-response-class.d.ts +43 -0
  58. package/dist/models/list-claim-limit-usages-response-class.js +15 -0
  59. package/dist/models/list-claim-partner-roles-response-class.d.ts +12 -0
  60. package/dist/models/list-claim-partners-response-class.d.ts +12 -0
  61. package/dist/models/list-claim-positions-response-class.d.ts +43 -0
  62. package/dist/models/list-claim-positions-response-class.js +15 -0
  63. package/dist/models/list-claim-statuses-response-class.d.ts +13 -1
  64. package/dist/models/list-claims-response-class.d.ts +12 -0
  65. package/dist/models/list-regulations-response-class.d.ts +12 -0
  66. package/dist/models/patch-claim-request-dto.d.ts +39 -33
  67. package/dist/models/regulation-item-class.d.ts +35 -0
  68. package/dist/models/regulation-item-class.js +10 -1
  69. package/dist/models/update-claim-position-request-dto.d.ts +60 -0
  70. package/dist/models/update-claim-position-request-dto.js +15 -0
  71. package/dist/models/update-claim-position-response-class.d.ts +25 -0
  72. package/dist/models/update-claim-position-response-class.js +15 -0
  73. package/dist/models/update-claim-request-dto.d.ts +39 -33
  74. package/dist/models/update-regulation-item-request-dto.d.ts +12 -0
  75. package/dist/models/update-regulation-item-request-dto.js +6 -1
  76. package/models/calculation-step-result-class.ts +81 -0
  77. package/models/claim-applied-deductible-class.ts +104 -0
  78. package/models/claim-class.ts +25 -0
  79. package/models/claim-limit-usage-class.ts +154 -0
  80. package/models/claim-limit-usage-result-class.ts +57 -0
  81. package/models/claim-position-class.ts +160 -0
  82. package/models/create-claim-position-request-dto.ts +72 -0
  83. package/models/create-claim-position-response-class.ts +31 -0
  84. package/models/create-claim-request-dto.ts +6 -0
  85. package/models/create-regulation-item-request-dto.ts +27 -3
  86. package/models/get-claim-limit-usage-response-class.ts +31 -0
  87. package/models/get-claim-position-response-class.ts +31 -0
  88. package/models/index.ts +13 -0
  89. package/models/list-claim-limit-usages-response-class.ts +49 -0
  90. package/models/list-claim-partner-roles-response-class.ts +12 -0
  91. package/models/list-claim-partners-response-class.ts +12 -0
  92. package/models/list-claim-positions-response-class.ts +49 -0
  93. package/models/list-claim-statuses-response-class.ts +13 -1
  94. package/models/list-claims-response-class.ts +12 -0
  95. package/models/list-regulations-response-class.ts +12 -0
  96. package/models/patch-claim-request-dto.ts +39 -33
  97. package/models/regulation-item-class.ts +37 -0
  98. package/models/update-claim-position-request-dto.ts +66 -0
  99. package/models/update-claim-position-response-class.ts +31 -0
  100. package/models/update-claim-request-dto.ts +39 -33
  101. package/models/update-regulation-item-request-dto.ts +13 -0
  102. package/package.json +1 -1
@@ -0,0 +1,1181 @@
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.ClaimPositionsApi = exports.ClaimPositionsApiFactory = exports.ClaimPositionsApiFp = exports.ClaimPositionsApiAxiosParamCreator = 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
+ * ClaimPositionsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ClaimPositionsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
101
+ * @summary Create the claim position
102
+ * @param {CreateClaimPositionRequestDto} createClaimPositionRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createClaimPosition: function (createClaimPositionRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'createClaimPositionRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createClaimPosition', 'createClaimPositionRequestDto', createClaimPositionRequestDto);
116
+ localVarPath = "/claimservice/v1/claim-positions";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClaimPositionRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * This will create claim position. **Required Permissions** \"claim-management.claims.create\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
150
+ * @summary Create the claim position
151
+ * @param {CreateClaimPositionRequestDto} createClaimPositionRequestDto
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @deprecated
155
+ * @throws {RequiredError}
156
+ */
157
+ createClaimPosition1: function (createClaimPositionRequestDto, authorization, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ // verify required parameter 'createClaimPositionRequestDto' is not null or undefined
165
+ (0, common_1.assertParamExists)('createClaimPosition1', 'createClaimPositionRequestDto', createClaimPositionRequestDto);
166
+ localVarPath = "/v1/claim-positions";
167
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ baseAccessToken = configuration.accessToken;
171
+ }
172
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
173
+ localVarHeaderParameter = {};
174
+ localVarQueryParameter = {};
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ localVarHeaderParameter['Content-Type'] = 'application/json';
186
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
187
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
189
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClaimPositionRequestDto, localVarRequestOptions, configuration);
190
+ return [2 /*return*/, {
191
+ url: (0, common_1.toPathString)(localVarUrlObj),
192
+ options: localVarRequestOptions,
193
+ }];
194
+ }
195
+ });
196
+ });
197
+ },
198
+ /**
199
+ * This will delete claim position. **Required Permissions** \"claim-management.claims.delete\"
200
+ * @summary Delete the claim position
201
+ * @param {string} code Unique identifier for the object.
202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ deleteClaimPosition: function (code, authorization, options) {
207
+ if (options === void 0) { options = {}; }
208
+ return __awaiter(_this, void 0, void 0, function () {
209
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
+ return __generator(this, function (_a) {
211
+ switch (_a.label) {
212
+ case 0:
213
+ // verify required parameter 'code' is not null or undefined
214
+ (0, common_1.assertParamExists)('deleteClaimPosition', 'code', code);
215
+ localVarPath = "/claimservice/v1/claim-positions/{code}"
216
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
217
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
+ if (configuration) {
219
+ baseOptions = configuration.baseOptions;
220
+ baseAccessToken = configuration.accessToken;
221
+ }
222
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
223
+ localVarHeaderParameter = {};
224
+ localVarQueryParameter = {};
225
+ // authentication bearer required
226
+ // http bearer authentication required
227
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
228
+ case 1:
229
+ // authentication bearer required
230
+ // http bearer authentication required
231
+ _a.sent();
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ }
235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
238
+ return [2 /*return*/, {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ }];
242
+ }
243
+ });
244
+ });
245
+ },
246
+ /**
247
+ * This will delete claim position. **Required Permissions** \"claim-management.claims.delete\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
248
+ * @summary Delete the claim position
249
+ * @param {string} code Unique identifier for the object.
250
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
+ * @param {*} [options] Override http request option.
252
+ * @deprecated
253
+ * @throws {RequiredError}
254
+ */
255
+ deleteClaimPosition1: function (code, authorization, options) {
256
+ if (options === void 0) { options = {}; }
257
+ return __awaiter(_this, void 0, void 0, function () {
258
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
259
+ return __generator(this, function (_a) {
260
+ switch (_a.label) {
261
+ case 0:
262
+ // verify required parameter 'code' is not null or undefined
263
+ (0, common_1.assertParamExists)('deleteClaimPosition1', 'code', code);
264
+ localVarPath = "/v1/claim-positions/{code}"
265
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
266
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ baseAccessToken = configuration.accessToken;
270
+ }
271
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
272
+ localVarHeaderParameter = {};
273
+ localVarQueryParameter = {};
274
+ // authentication bearer required
275
+ // http bearer authentication required
276
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
277
+ case 1:
278
+ // authentication bearer required
279
+ // http bearer authentication required
280
+ _a.sent();
281
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
282
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
283
+ }
284
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
285
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
286
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
287
+ return [2 /*return*/, {
288
+ url: (0, common_1.toPathString)(localVarUrlObj),
289
+ options: localVarRequestOptions,
290
+ }];
291
+ }
292
+ });
293
+ });
294
+ },
295
+ /**
296
+ * This will get claim position. **Required Permissions** \"claim-management.claims.view\"
297
+ * @summary Retrieve the claim position
298
+ * @param {string} code
299
+ * @param {string} expand
300
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ */
304
+ getClaimPosition: function (code, expand, authorization, options) {
305
+ if (options === void 0) { options = {}; }
306
+ return __awaiter(_this, void 0, void 0, function () {
307
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
308
+ return __generator(this, function (_a) {
309
+ switch (_a.label) {
310
+ case 0:
311
+ // verify required parameter 'code' is not null or undefined
312
+ (0, common_1.assertParamExists)('getClaimPosition', 'code', code);
313
+ // verify required parameter 'expand' is not null or undefined
314
+ (0, common_1.assertParamExists)('getClaimPosition', 'expand', expand);
315
+ localVarPath = "/claimservice/v1/claim-positions/{code}"
316
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
317
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
318
+ if (configuration) {
319
+ baseOptions = configuration.baseOptions;
320
+ baseAccessToken = configuration.accessToken;
321
+ }
322
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
323
+ localVarHeaderParameter = {};
324
+ localVarQueryParameter = {};
325
+ // authentication bearer required
326
+ // http bearer authentication required
327
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
328
+ case 1:
329
+ // authentication bearer required
330
+ // http bearer authentication required
331
+ _a.sent();
332
+ if (expand !== undefined) {
333
+ localVarQueryParameter['expand'] = expand;
334
+ }
335
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
336
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
337
+ }
338
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
339
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
340
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
341
+ return [2 /*return*/, {
342
+ url: (0, common_1.toPathString)(localVarUrlObj),
343
+ options: localVarRequestOptions,
344
+ }];
345
+ }
346
+ });
347
+ });
348
+ },
349
+ /**
350
+ * This will get claim position. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
351
+ * @summary Retrieve the claim position
352
+ * @param {string} code
353
+ * @param {string} expand
354
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
+ * @param {*} [options] Override http request option.
356
+ * @deprecated
357
+ * @throws {RequiredError}
358
+ */
359
+ getClaimPosition1: function (code, expand, authorization, options) {
360
+ if (options === void 0) { options = {}; }
361
+ return __awaiter(_this, void 0, void 0, function () {
362
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
363
+ return __generator(this, function (_a) {
364
+ switch (_a.label) {
365
+ case 0:
366
+ // verify required parameter 'code' is not null or undefined
367
+ (0, common_1.assertParamExists)('getClaimPosition1', 'code', code);
368
+ // verify required parameter 'expand' is not null or undefined
369
+ (0, common_1.assertParamExists)('getClaimPosition1', 'expand', expand);
370
+ localVarPath = "/v1/claim-positions/{code}"
371
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
372
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
373
+ if (configuration) {
374
+ baseOptions = configuration.baseOptions;
375
+ baseAccessToken = configuration.accessToken;
376
+ }
377
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
378
+ localVarHeaderParameter = {};
379
+ localVarQueryParameter = {};
380
+ // authentication bearer required
381
+ // http bearer authentication required
382
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
383
+ case 1:
384
+ // authentication bearer required
385
+ // http bearer authentication required
386
+ _a.sent();
387
+ if (expand !== undefined) {
388
+ localVarQueryParameter['expand'] = expand;
389
+ }
390
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
391
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
392
+ }
393
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
394
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
395
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
396
+ return [2 /*return*/, {
397
+ url: (0, common_1.toPathString)(localVarUrlObj),
398
+ options: localVarRequestOptions,
399
+ }];
400
+ }
401
+ });
402
+ });
403
+ },
404
+ /**
405
+ * Retrieves a list of claim positions. **Required Permissions** \"claim-management.claims.view\"
406
+ * @summary List claim positions
407
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
409
+ * @param {string} [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.
410
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
411
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
412
+ * @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, code, order, createdAt, updatedAt, procedureDate&lt;/i&gt;
413
+ * @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;
414
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
415
+ * @param {*} [options] Override http request option.
416
+ * @throws {RequiredError}
417
+ */
418
+ listClaimPositions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
419
+ if (options === void 0) { options = {}; }
420
+ return __awaiter(_this, void 0, void 0, function () {
421
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
422
+ return __generator(this, function (_a) {
423
+ switch (_a.label) {
424
+ case 0:
425
+ localVarPath = "/claimservice/v1/claim-positions";
426
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
427
+ if (configuration) {
428
+ baseOptions = configuration.baseOptions;
429
+ baseAccessToken = configuration.accessToken;
430
+ }
431
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
432
+ localVarHeaderParameter = {};
433
+ localVarQueryParameter = {};
434
+ // authentication bearer required
435
+ // http bearer authentication required
436
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
437
+ case 1:
438
+ // authentication bearer required
439
+ // http bearer authentication required
440
+ _a.sent();
441
+ if (pageSize !== undefined) {
442
+ localVarQueryParameter['pageSize'] = pageSize;
443
+ }
444
+ if (pageToken !== undefined) {
445
+ localVarQueryParameter['pageToken'] = pageToken;
446
+ }
447
+ if (filter !== undefined) {
448
+ localVarQueryParameter['filter'] = filter;
449
+ }
450
+ if (search !== undefined) {
451
+ localVarQueryParameter['search'] = search;
452
+ }
453
+ if (order !== undefined) {
454
+ localVarQueryParameter['order'] = order;
455
+ }
456
+ if (expand !== undefined) {
457
+ localVarQueryParameter['expand'] = expand;
458
+ }
459
+ if (filters !== undefined) {
460
+ localVarQueryParameter['filters'] = filters;
461
+ }
462
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
463
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
464
+ }
465
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
466
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
467
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
468
+ return [2 /*return*/, {
469
+ url: (0, common_1.toPathString)(localVarUrlObj),
470
+ options: localVarRequestOptions,
471
+ }];
472
+ }
473
+ });
474
+ });
475
+ },
476
+ /**
477
+ * Retrieves a list of claim positions. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
478
+ * @summary List claim positions
479
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
480
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
481
+ * @param {string} [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.
482
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
483
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
484
+ * @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, code, order, createdAt, updatedAt, procedureDate&lt;/i&gt;
485
+ * @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;
486
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
487
+ * @param {*} [options] Override http request option.
488
+ * @deprecated
489
+ * @throws {RequiredError}
490
+ */
491
+ listClaimPositions1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
492
+ if (options === void 0) { options = {}; }
493
+ return __awaiter(_this, void 0, void 0, function () {
494
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
495
+ return __generator(this, function (_a) {
496
+ switch (_a.label) {
497
+ case 0:
498
+ localVarPath = "/v1/claim-positions";
499
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
500
+ if (configuration) {
501
+ baseOptions = configuration.baseOptions;
502
+ baseAccessToken = configuration.accessToken;
503
+ }
504
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
505
+ localVarHeaderParameter = {};
506
+ localVarQueryParameter = {};
507
+ // authentication bearer required
508
+ // http bearer authentication required
509
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
510
+ case 1:
511
+ // authentication bearer required
512
+ // http bearer authentication required
513
+ _a.sent();
514
+ if (pageSize !== undefined) {
515
+ localVarQueryParameter['pageSize'] = pageSize;
516
+ }
517
+ if (pageToken !== undefined) {
518
+ localVarQueryParameter['pageToken'] = pageToken;
519
+ }
520
+ if (filter !== undefined) {
521
+ localVarQueryParameter['filter'] = filter;
522
+ }
523
+ if (search !== undefined) {
524
+ localVarQueryParameter['search'] = search;
525
+ }
526
+ if (order !== undefined) {
527
+ localVarQueryParameter['order'] = order;
528
+ }
529
+ if (expand !== undefined) {
530
+ localVarQueryParameter['expand'] = expand;
531
+ }
532
+ if (filters !== undefined) {
533
+ localVarQueryParameter['filters'] = filters;
534
+ }
535
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
536
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
537
+ }
538
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
539
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
540
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
541
+ return [2 /*return*/, {
542
+ url: (0, common_1.toPathString)(localVarUrlObj),
543
+ options: localVarRequestOptions,
544
+ }];
545
+ }
546
+ });
547
+ });
548
+ },
549
+ /**
550
+ * This will update claim position. **Required Permissions** \"claim-management.claims.update\"
551
+ * @summary Update the claim position
552
+ * @param {string} code
553
+ * @param {UpdateClaimPositionRequestDto} updateClaimPositionRequestDto
554
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ updateClaimPosition: function (code, updateClaimPositionRequestDto, authorization, options) {
559
+ if (options === void 0) { options = {}; }
560
+ return __awaiter(_this, void 0, void 0, function () {
561
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
562
+ return __generator(this, function (_a) {
563
+ switch (_a.label) {
564
+ case 0:
565
+ // verify required parameter 'code' is not null or undefined
566
+ (0, common_1.assertParamExists)('updateClaimPosition', 'code', code);
567
+ // verify required parameter 'updateClaimPositionRequestDto' is not null or undefined
568
+ (0, common_1.assertParamExists)('updateClaimPosition', 'updateClaimPositionRequestDto', updateClaimPositionRequestDto);
569
+ localVarPath = "/claimservice/v1/claim-positions/{code}"
570
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
571
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
572
+ if (configuration) {
573
+ baseOptions = configuration.baseOptions;
574
+ baseAccessToken = configuration.accessToken;
575
+ }
576
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
577
+ localVarHeaderParameter = {};
578
+ localVarQueryParameter = {};
579
+ // authentication bearer required
580
+ // http bearer authentication required
581
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
582
+ case 1:
583
+ // authentication bearer required
584
+ // http bearer authentication required
585
+ _a.sent();
586
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
587
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
588
+ }
589
+ localVarHeaderParameter['Content-Type'] = 'application/json';
590
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
591
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
592
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
593
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClaimPositionRequestDto, localVarRequestOptions, configuration);
594
+ return [2 /*return*/, {
595
+ url: (0, common_1.toPathString)(localVarUrlObj),
596
+ options: localVarRequestOptions,
597
+ }];
598
+ }
599
+ });
600
+ });
601
+ },
602
+ /**
603
+ * This will update claim position. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
604
+ * @summary Update the claim position
605
+ * @param {string} code
606
+ * @param {UpdateClaimPositionRequestDto} updateClaimPositionRequestDto
607
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
608
+ * @param {*} [options] Override http request option.
609
+ * @deprecated
610
+ * @throws {RequiredError}
611
+ */
612
+ updateClaimPosition1: function (code, updateClaimPositionRequestDto, authorization, options) {
613
+ if (options === void 0) { options = {}; }
614
+ return __awaiter(_this, void 0, void 0, function () {
615
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
616
+ return __generator(this, function (_a) {
617
+ switch (_a.label) {
618
+ case 0:
619
+ // verify required parameter 'code' is not null or undefined
620
+ (0, common_1.assertParamExists)('updateClaimPosition1', 'code', code);
621
+ // verify required parameter 'updateClaimPositionRequestDto' is not null or undefined
622
+ (0, common_1.assertParamExists)('updateClaimPosition1', 'updateClaimPositionRequestDto', updateClaimPositionRequestDto);
623
+ localVarPath = "/v1/claim-positions/{code}"
624
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
625
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
626
+ if (configuration) {
627
+ baseOptions = configuration.baseOptions;
628
+ baseAccessToken = configuration.accessToken;
629
+ }
630
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
631
+ localVarHeaderParameter = {};
632
+ localVarQueryParameter = {};
633
+ // authentication bearer required
634
+ // http bearer authentication required
635
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
636
+ case 1:
637
+ // authentication bearer required
638
+ // http bearer authentication required
639
+ _a.sent();
640
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
641
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
642
+ }
643
+ localVarHeaderParameter['Content-Type'] = 'application/json';
644
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
645
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
646
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
647
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClaimPositionRequestDto, localVarRequestOptions, configuration);
648
+ return [2 /*return*/, {
649
+ url: (0, common_1.toPathString)(localVarUrlObj),
650
+ options: localVarRequestOptions,
651
+ }];
652
+ }
653
+ });
654
+ });
655
+ },
656
+ };
657
+ };
658
+ exports.ClaimPositionsApiAxiosParamCreator = ClaimPositionsApiAxiosParamCreator;
659
+ /**
660
+ * ClaimPositionsApi - functional programming interface
661
+ * @export
662
+ */
663
+ var ClaimPositionsApiFp = function (configuration) {
664
+ var localVarAxiosParamCreator = (0, exports.ClaimPositionsApiAxiosParamCreator)(configuration);
665
+ return {
666
+ /**
667
+ * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
668
+ * @summary Create the claim position
669
+ * @param {CreateClaimPositionRequestDto} createClaimPositionRequestDto
670
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
671
+ * @param {*} [options] Override http request option.
672
+ * @throws {RequiredError}
673
+ */
674
+ createClaimPosition: function (createClaimPositionRequestDto, authorization, options) {
675
+ return __awaiter(this, void 0, void 0, function () {
676
+ var localVarAxiosArgs;
677
+ return __generator(this, function (_a) {
678
+ switch (_a.label) {
679
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaimPosition(createClaimPositionRequestDto, authorization, options)];
680
+ case 1:
681
+ localVarAxiosArgs = _a.sent();
682
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
683
+ }
684
+ });
685
+ });
686
+ },
687
+ /**
688
+ * This will create claim position. **Required Permissions** \"claim-management.claims.create\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
689
+ * @summary Create the claim position
690
+ * @param {CreateClaimPositionRequestDto} createClaimPositionRequestDto
691
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
692
+ * @param {*} [options] Override http request option.
693
+ * @deprecated
694
+ * @throws {RequiredError}
695
+ */
696
+ createClaimPosition1: function (createClaimPositionRequestDto, authorization, options) {
697
+ return __awaiter(this, void 0, void 0, function () {
698
+ var localVarAxiosArgs;
699
+ return __generator(this, function (_a) {
700
+ switch (_a.label) {
701
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaimPosition1(createClaimPositionRequestDto, authorization, options)];
702
+ case 1:
703
+ localVarAxiosArgs = _a.sent();
704
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
705
+ }
706
+ });
707
+ });
708
+ },
709
+ /**
710
+ * This will delete claim position. **Required Permissions** \"claim-management.claims.delete\"
711
+ * @summary Delete the claim position
712
+ * @param {string} code Unique identifier for the object.
713
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ deleteClaimPosition: function (code, authorization, options) {
718
+ return __awaiter(this, void 0, void 0, function () {
719
+ var localVarAxiosArgs;
720
+ return __generator(this, function (_a) {
721
+ switch (_a.label) {
722
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaimPosition(code, authorization, options)];
723
+ case 1:
724
+ localVarAxiosArgs = _a.sent();
725
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
726
+ }
727
+ });
728
+ });
729
+ },
730
+ /**
731
+ * This will delete claim position. **Required Permissions** \"claim-management.claims.delete\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
732
+ * @summary Delete the claim position
733
+ * @param {string} code Unique identifier for the object.
734
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
735
+ * @param {*} [options] Override http request option.
736
+ * @deprecated
737
+ * @throws {RequiredError}
738
+ */
739
+ deleteClaimPosition1: function (code, authorization, options) {
740
+ return __awaiter(this, void 0, void 0, function () {
741
+ var localVarAxiosArgs;
742
+ return __generator(this, function (_a) {
743
+ switch (_a.label) {
744
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaimPosition1(code, authorization, options)];
745
+ case 1:
746
+ localVarAxiosArgs = _a.sent();
747
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
748
+ }
749
+ });
750
+ });
751
+ },
752
+ /**
753
+ * This will get claim position. **Required Permissions** \"claim-management.claims.view\"
754
+ * @summary Retrieve the claim position
755
+ * @param {string} code
756
+ * @param {string} expand
757
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ getClaimPosition: function (code, expand, authorization, options) {
762
+ return __awaiter(this, void 0, void 0, function () {
763
+ var localVarAxiosArgs;
764
+ return __generator(this, function (_a) {
765
+ switch (_a.label) {
766
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimPosition(code, expand, authorization, options)];
767
+ case 1:
768
+ localVarAxiosArgs = _a.sent();
769
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
770
+ }
771
+ });
772
+ });
773
+ },
774
+ /**
775
+ * This will get claim position. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
776
+ * @summary Retrieve the claim position
777
+ * @param {string} code
778
+ * @param {string} expand
779
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
780
+ * @param {*} [options] Override http request option.
781
+ * @deprecated
782
+ * @throws {RequiredError}
783
+ */
784
+ getClaimPosition1: function (code, expand, authorization, options) {
785
+ return __awaiter(this, void 0, void 0, function () {
786
+ var localVarAxiosArgs;
787
+ return __generator(this, function (_a) {
788
+ switch (_a.label) {
789
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimPosition1(code, expand, authorization, options)];
790
+ case 1:
791
+ localVarAxiosArgs = _a.sent();
792
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
793
+ }
794
+ });
795
+ });
796
+ },
797
+ /**
798
+ * Retrieves a list of claim positions. **Required Permissions** \"claim-management.claims.view\"
799
+ * @summary List claim positions
800
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
801
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
802
+ * @param {string} [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.
803
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
804
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
805
+ * @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, code, order, createdAt, updatedAt, procedureDate&lt;/i&gt;
806
+ * @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;
807
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
808
+ * @param {*} [options] Override http request option.
809
+ * @throws {RequiredError}
810
+ */
811
+ listClaimPositions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
812
+ return __awaiter(this, void 0, void 0, function () {
813
+ var localVarAxiosArgs;
814
+ return __generator(this, function (_a) {
815
+ switch (_a.label) {
816
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimPositions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
817
+ case 1:
818
+ localVarAxiosArgs = _a.sent();
819
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
820
+ }
821
+ });
822
+ });
823
+ },
824
+ /**
825
+ * Retrieves a list of claim positions. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
826
+ * @summary List claim positions
827
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
828
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
829
+ * @param {string} [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.
830
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
831
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
832
+ * @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, code, order, createdAt, updatedAt, procedureDate&lt;/i&gt;
833
+ * @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;
834
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
835
+ * @param {*} [options] Override http request option.
836
+ * @deprecated
837
+ * @throws {RequiredError}
838
+ */
839
+ listClaimPositions1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
840
+ return __awaiter(this, void 0, void 0, function () {
841
+ var localVarAxiosArgs;
842
+ return __generator(this, function (_a) {
843
+ switch (_a.label) {
844
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimPositions1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
845
+ case 1:
846
+ localVarAxiosArgs = _a.sent();
847
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
848
+ }
849
+ });
850
+ });
851
+ },
852
+ /**
853
+ * This will update claim position. **Required Permissions** \"claim-management.claims.update\"
854
+ * @summary Update the claim position
855
+ * @param {string} code
856
+ * @param {UpdateClaimPositionRequestDto} updateClaimPositionRequestDto
857
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ updateClaimPosition: function (code, updateClaimPositionRequestDto, authorization, options) {
862
+ return __awaiter(this, void 0, void 0, function () {
863
+ var localVarAxiosArgs;
864
+ return __generator(this, function (_a) {
865
+ switch (_a.label) {
866
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaimPosition(code, updateClaimPositionRequestDto, authorization, options)];
867
+ case 1:
868
+ localVarAxiosArgs = _a.sent();
869
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
870
+ }
871
+ });
872
+ });
873
+ },
874
+ /**
875
+ * This will update claim position. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
876
+ * @summary Update the claim position
877
+ * @param {string} code
878
+ * @param {UpdateClaimPositionRequestDto} updateClaimPositionRequestDto
879
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
880
+ * @param {*} [options] Override http request option.
881
+ * @deprecated
882
+ * @throws {RequiredError}
883
+ */
884
+ updateClaimPosition1: function (code, updateClaimPositionRequestDto, authorization, options) {
885
+ return __awaiter(this, void 0, void 0, function () {
886
+ var localVarAxiosArgs;
887
+ return __generator(this, function (_a) {
888
+ switch (_a.label) {
889
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaimPosition1(code, updateClaimPositionRequestDto, authorization, options)];
890
+ case 1:
891
+ localVarAxiosArgs = _a.sent();
892
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
893
+ }
894
+ });
895
+ });
896
+ },
897
+ };
898
+ };
899
+ exports.ClaimPositionsApiFp = ClaimPositionsApiFp;
900
+ /**
901
+ * ClaimPositionsApi - factory interface
902
+ * @export
903
+ */
904
+ var ClaimPositionsApiFactory = function (configuration, basePath, axios) {
905
+ var localVarFp = (0, exports.ClaimPositionsApiFp)(configuration);
906
+ return {
907
+ /**
908
+ * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
909
+ * @summary Create the claim position
910
+ * @param {CreateClaimPositionRequestDto} createClaimPositionRequestDto
911
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
912
+ * @param {*} [options] Override http request option.
913
+ * @throws {RequiredError}
914
+ */
915
+ createClaimPosition: function (createClaimPositionRequestDto, authorization, options) {
916
+ return localVarFp.createClaimPosition(createClaimPositionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
917
+ },
918
+ /**
919
+ * This will create claim position. **Required Permissions** \"claim-management.claims.create\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
920
+ * @summary Create the claim position
921
+ * @param {CreateClaimPositionRequestDto} createClaimPositionRequestDto
922
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
923
+ * @param {*} [options] Override http request option.
924
+ * @deprecated
925
+ * @throws {RequiredError}
926
+ */
927
+ createClaimPosition1: function (createClaimPositionRequestDto, authorization, options) {
928
+ return localVarFp.createClaimPosition1(createClaimPositionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
929
+ },
930
+ /**
931
+ * This will delete claim position. **Required Permissions** \"claim-management.claims.delete\"
932
+ * @summary Delete the claim position
933
+ * @param {string} code Unique identifier for the object.
934
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ deleteClaimPosition: function (code, authorization, options) {
939
+ return localVarFp.deleteClaimPosition(code, authorization, options).then(function (request) { return request(axios, basePath); });
940
+ },
941
+ /**
942
+ * This will delete claim position. **Required Permissions** \"claim-management.claims.delete\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
943
+ * @summary Delete the claim position
944
+ * @param {string} code Unique identifier for the object.
945
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
946
+ * @param {*} [options] Override http request option.
947
+ * @deprecated
948
+ * @throws {RequiredError}
949
+ */
950
+ deleteClaimPosition1: function (code, authorization, options) {
951
+ return localVarFp.deleteClaimPosition1(code, authorization, options).then(function (request) { return request(axios, basePath); });
952
+ },
953
+ /**
954
+ * This will get claim position. **Required Permissions** \"claim-management.claims.view\"
955
+ * @summary Retrieve the claim position
956
+ * @param {string} code
957
+ * @param {string} expand
958
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
959
+ * @param {*} [options] Override http request option.
960
+ * @throws {RequiredError}
961
+ */
962
+ getClaimPosition: function (code, expand, authorization, options) {
963
+ return localVarFp.getClaimPosition(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
964
+ },
965
+ /**
966
+ * This will get claim position. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
967
+ * @summary Retrieve the claim position
968
+ * @param {string} code
969
+ * @param {string} expand
970
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
971
+ * @param {*} [options] Override http request option.
972
+ * @deprecated
973
+ * @throws {RequiredError}
974
+ */
975
+ getClaimPosition1: function (code, expand, authorization, options) {
976
+ return localVarFp.getClaimPosition1(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
977
+ },
978
+ /**
979
+ * Retrieves a list of claim positions. **Required Permissions** \"claim-management.claims.view\"
980
+ * @summary List claim positions
981
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
982
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
983
+ * @param {string} [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.
984
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
985
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
986
+ * @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, code, order, createdAt, updatedAt, procedureDate&lt;/i&gt;
987
+ * @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;
988
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
989
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ */
992
+ listClaimPositions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
993
+ return localVarFp.listClaimPositions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
994
+ },
995
+ /**
996
+ * Retrieves a list of claim positions. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
997
+ * @summary List claim positions
998
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
999
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1000
+ * @param {string} [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.
1001
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
1002
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1003
+ * @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, code, order, createdAt, updatedAt, procedureDate&lt;/i&gt;
1004
+ * @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;
1005
+ * @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, code, claimCode, positionNumber, category, status, createdAt, updatedAt&lt;/i&gt;
1006
+ * @param {*} [options] Override http request option.
1007
+ * @deprecated
1008
+ * @throws {RequiredError}
1009
+ */
1010
+ listClaimPositions1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1011
+ return localVarFp.listClaimPositions1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1012
+ },
1013
+ /**
1014
+ * This will update claim position. **Required Permissions** \"claim-management.claims.update\"
1015
+ * @summary Update the claim position
1016
+ * @param {string} code
1017
+ * @param {UpdateClaimPositionRequestDto} updateClaimPositionRequestDto
1018
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1019
+ * @param {*} [options] Override http request option.
1020
+ * @throws {RequiredError}
1021
+ */
1022
+ updateClaimPosition: function (code, updateClaimPositionRequestDto, authorization, options) {
1023
+ return localVarFp.updateClaimPosition(code, updateClaimPositionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1024
+ },
1025
+ /**
1026
+ * This will update claim position. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1027
+ * @summary Update the claim position
1028
+ * @param {string} code
1029
+ * @param {UpdateClaimPositionRequestDto} updateClaimPositionRequestDto
1030
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1031
+ * @param {*} [options] Override http request option.
1032
+ * @deprecated
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ updateClaimPosition1: function (code, updateClaimPositionRequestDto, authorization, options) {
1036
+ return localVarFp.updateClaimPosition1(code, updateClaimPositionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1037
+ },
1038
+ };
1039
+ };
1040
+ exports.ClaimPositionsApiFactory = ClaimPositionsApiFactory;
1041
+ /**
1042
+ * ClaimPositionsApi - object-oriented interface
1043
+ * @export
1044
+ * @class ClaimPositionsApi
1045
+ * @extends {BaseAPI}
1046
+ */
1047
+ var ClaimPositionsApi = /** @class */ (function (_super) {
1048
+ __extends(ClaimPositionsApi, _super);
1049
+ function ClaimPositionsApi() {
1050
+ return _super !== null && _super.apply(this, arguments) || this;
1051
+ }
1052
+ /**
1053
+ * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
1054
+ * @summary Create the claim position
1055
+ * @param {ClaimPositionsApiCreateClaimPositionRequest} requestParameters Request parameters.
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ * @memberof ClaimPositionsApi
1059
+ */
1060
+ ClaimPositionsApi.prototype.createClaimPosition = function (requestParameters, options) {
1061
+ var _this = this;
1062
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).createClaimPosition(requestParameters.createClaimPositionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1063
+ };
1064
+ /**
1065
+ * This will create claim position. **Required Permissions** \"claim-management.claims.create\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1066
+ * @summary Create the claim position
1067
+ * @param {ClaimPositionsApiCreateClaimPosition1Request} requestParameters Request parameters.
1068
+ * @param {*} [options] Override http request option.
1069
+ * @deprecated
1070
+ * @throws {RequiredError}
1071
+ * @memberof ClaimPositionsApi
1072
+ */
1073
+ ClaimPositionsApi.prototype.createClaimPosition1 = function (requestParameters, options) {
1074
+ var _this = this;
1075
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).createClaimPosition1(requestParameters.createClaimPositionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1076
+ };
1077
+ /**
1078
+ * This will delete claim position. **Required Permissions** \"claim-management.claims.delete\"
1079
+ * @summary Delete the claim position
1080
+ * @param {ClaimPositionsApiDeleteClaimPositionRequest} requestParameters Request parameters.
1081
+ * @param {*} [options] Override http request option.
1082
+ * @throws {RequiredError}
1083
+ * @memberof ClaimPositionsApi
1084
+ */
1085
+ ClaimPositionsApi.prototype.deleteClaimPosition = function (requestParameters, options) {
1086
+ var _this = this;
1087
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).deleteClaimPosition(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1088
+ };
1089
+ /**
1090
+ * This will delete claim position. **Required Permissions** \"claim-management.claims.delete\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1091
+ * @summary Delete the claim position
1092
+ * @param {ClaimPositionsApiDeleteClaimPosition1Request} requestParameters Request parameters.
1093
+ * @param {*} [options] Override http request option.
1094
+ * @deprecated
1095
+ * @throws {RequiredError}
1096
+ * @memberof ClaimPositionsApi
1097
+ */
1098
+ ClaimPositionsApi.prototype.deleteClaimPosition1 = function (requestParameters, options) {
1099
+ var _this = this;
1100
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).deleteClaimPosition1(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1101
+ };
1102
+ /**
1103
+ * This will get claim position. **Required Permissions** \"claim-management.claims.view\"
1104
+ * @summary Retrieve the claim position
1105
+ * @param {ClaimPositionsApiGetClaimPositionRequest} requestParameters Request parameters.
1106
+ * @param {*} [options] Override http request option.
1107
+ * @throws {RequiredError}
1108
+ * @memberof ClaimPositionsApi
1109
+ */
1110
+ ClaimPositionsApi.prototype.getClaimPosition = function (requestParameters, options) {
1111
+ var _this = this;
1112
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).getClaimPosition(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1113
+ };
1114
+ /**
1115
+ * This will get claim position. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1116
+ * @summary Retrieve the claim position
1117
+ * @param {ClaimPositionsApiGetClaimPosition1Request} requestParameters Request parameters.
1118
+ * @param {*} [options] Override http request option.
1119
+ * @deprecated
1120
+ * @throws {RequiredError}
1121
+ * @memberof ClaimPositionsApi
1122
+ */
1123
+ ClaimPositionsApi.prototype.getClaimPosition1 = function (requestParameters, options) {
1124
+ var _this = this;
1125
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).getClaimPosition1(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1126
+ };
1127
+ /**
1128
+ * Retrieves a list of claim positions. **Required Permissions** \"claim-management.claims.view\"
1129
+ * @summary List claim positions
1130
+ * @param {ClaimPositionsApiListClaimPositionsRequest} requestParameters Request parameters.
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ * @memberof ClaimPositionsApi
1134
+ */
1135
+ ClaimPositionsApi.prototype.listClaimPositions = function (requestParameters, options) {
1136
+ var _this = this;
1137
+ if (requestParameters === void 0) { requestParameters = {}; }
1138
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).listClaimPositions(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); });
1139
+ };
1140
+ /**
1141
+ * Retrieves a list of claim positions. **Required Permissions** \"claim-management.claims.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1142
+ * @summary List claim positions
1143
+ * @param {ClaimPositionsApiListClaimPositions1Request} requestParameters Request parameters.
1144
+ * @param {*} [options] Override http request option.
1145
+ * @deprecated
1146
+ * @throws {RequiredError}
1147
+ * @memberof ClaimPositionsApi
1148
+ */
1149
+ ClaimPositionsApi.prototype.listClaimPositions1 = function (requestParameters, options) {
1150
+ var _this = this;
1151
+ if (requestParameters === void 0) { requestParameters = {}; }
1152
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).listClaimPositions1(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); });
1153
+ };
1154
+ /**
1155
+ * This will update claim position. **Required Permissions** \"claim-management.claims.update\"
1156
+ * @summary Update the claim position
1157
+ * @param {ClaimPositionsApiUpdateClaimPositionRequest} requestParameters Request parameters.
1158
+ * @param {*} [options] Override http request option.
1159
+ * @throws {RequiredError}
1160
+ * @memberof ClaimPositionsApi
1161
+ */
1162
+ ClaimPositionsApi.prototype.updateClaimPosition = function (requestParameters, options) {
1163
+ var _this = this;
1164
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).updateClaimPosition(requestParameters.code, requestParameters.updateClaimPositionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1165
+ };
1166
+ /**
1167
+ * This will update claim position. **Required Permissions** \"claim-management.claims.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1168
+ * @summary Update the claim position
1169
+ * @param {ClaimPositionsApiUpdateClaimPosition1Request} requestParameters Request parameters.
1170
+ * @param {*} [options] Override http request option.
1171
+ * @deprecated
1172
+ * @throws {RequiredError}
1173
+ * @memberof ClaimPositionsApi
1174
+ */
1175
+ ClaimPositionsApi.prototype.updateClaimPosition1 = function (requestParameters, options) {
1176
+ var _this = this;
1177
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).updateClaimPosition1(requestParameters.code, requestParameters.updateClaimPositionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1178
+ };
1179
+ return ClaimPositionsApi;
1180
+ }(base_1.BaseAPI));
1181
+ exports.ClaimPositionsApi = ClaimPositionsApi;