@emilgroup/claim-sdk-node 1.39.1-beta.8 → 1.40.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 (87) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/claim-limit-usages-api.ts +24 -24
  4. package/api/claim-partner-roles-api.ts +24 -24
  5. package/api/claim-partners-api.ts +24 -24
  6. package/api/claim-positions-api.ts +496 -16
  7. package/api/claim-regulations-api.ts +24 -24
  8. package/api/claim-statuses-api.ts +24 -24
  9. package/api/claims-api.ts +48 -48
  10. package/api/settlements-api.ts +24 -24
  11. package/dist/api/claim-limit-usages-api.d.ts +24 -24
  12. package/dist/api/claim-limit-usages-api.js +18 -18
  13. package/dist/api/claim-partner-roles-api.d.ts +24 -24
  14. package/dist/api/claim-partner-roles-api.js +20 -20
  15. package/dist/api/claim-partners-api.d.ts +24 -24
  16. package/dist/api/claim-partners-api.js +20 -20
  17. package/dist/api/claim-positions-api.d.ts +284 -16
  18. package/dist/api/claim-positions-api.js +416 -12
  19. package/dist/api/claim-regulations-api.d.ts +24 -24
  20. package/dist/api/claim-regulations-api.js +20 -20
  21. package/dist/api/claim-statuses-api.d.ts +24 -24
  22. package/dist/api/claim-statuses-api.js +20 -20
  23. package/dist/api/claims-api.d.ts +48 -48
  24. package/dist/api/claims-api.js +38 -38
  25. package/dist/api/settlements-api.d.ts +24 -24
  26. package/dist/api/settlements-api.js +20 -20
  27. package/dist/models/batch-upsert-claim-position-input-dto.d.ts +72 -0
  28. package/dist/models/batch-upsert-claim-position-input-dto.js +15 -0
  29. package/dist/models/batch-upsert-claim-positions-request-dto.d.ts +31 -0
  30. package/dist/models/batch-upsert-claim-positions-request-dto.js +15 -0
  31. package/dist/models/batch-upsert-claim-positions-response-class.d.ts +32 -0
  32. package/dist/models/batch-upsert-claim-positions-response-class.js +15 -0
  33. package/dist/models/calculate-claim-positions-request-dto.d.ts +31 -0
  34. package/dist/models/calculate-claim-positions-request-dto.js +15 -0
  35. package/dist/models/calculate-claim-positions-response-class.d.ts +32 -0
  36. package/dist/models/calculate-claim-positions-response-class.js +15 -0
  37. package/dist/models/calculated-claim-position-class.d.ts +74 -0
  38. package/dist/models/calculated-claim-position-class.js +15 -0
  39. package/dist/models/calculation-totals-class.d.ts +30 -0
  40. package/dist/models/calculation-totals-class.js +15 -0
  41. package/dist/models/claim-applied-deductible-class.d.ts +1 -1
  42. package/dist/models/claim-class.d.ts +24 -0
  43. package/dist/models/claim-limit-usage-class.d.ts +8 -0
  44. package/dist/models/claim-limit-usage-class.js +2 -0
  45. package/dist/models/claim-position-calculation-input-dto.d.ts +48 -0
  46. package/dist/models/claim-position-calculation-input-dto.js +15 -0
  47. package/dist/models/claim-position-class.d.ts +8 -1
  48. package/dist/models/claim-position-class.js +3 -2
  49. package/dist/models/create-claim-position-response-class.d.ts +1 -1
  50. package/dist/models/create-claim-request-dto.d.ts +12 -0
  51. package/dist/models/create-regulation-item-request-dto.d.ts +4 -3
  52. package/dist/models/get-claim-position-response-class.d.ts +1 -1
  53. package/dist/models/index.d.ts +8 -0
  54. package/dist/models/index.js +8 -0
  55. package/dist/models/list-claim-positions-response-class.d.ts +1 -1
  56. package/dist/models/patch-claim-request-dto.d.ts +12 -0
  57. package/dist/models/regulation-item-class.d.ts +6 -0
  58. package/dist/models/update-claim-position-request-dto.d.ts +6 -0
  59. package/dist/models/update-claim-position-response-class.d.ts +1 -1
  60. package/dist/models/update-claim-request-dto.d.ts +12 -0
  61. package/dist/models/update-regulation-item-request-dto.d.ts +24 -0
  62. package/dist/models/update-regulation-item-request-dto.js +5 -1
  63. package/models/batch-upsert-claim-position-input-dto.ts +78 -0
  64. package/models/batch-upsert-claim-positions-request-dto.ts +37 -0
  65. package/models/batch-upsert-claim-positions-response-class.ts +38 -0
  66. package/models/calculate-claim-positions-request-dto.ts +37 -0
  67. package/models/calculate-claim-positions-response-class.ts +38 -0
  68. package/models/calculated-claim-position-class.ts +80 -0
  69. package/models/calculation-totals-class.ts +36 -0
  70. package/models/claim-applied-deductible-class.ts +1 -1
  71. package/models/claim-class.ts +24 -0
  72. package/models/claim-limit-usage-class.ts +8 -0
  73. package/models/claim-position-calculation-input-dto.ts +54 -0
  74. package/models/claim-position-class.ts +9 -2
  75. package/models/create-claim-position-response-class.ts +1 -1
  76. package/models/create-claim-request-dto.ts +12 -0
  77. package/models/create-regulation-item-request-dto.ts +4 -3
  78. package/models/get-claim-position-response-class.ts +1 -1
  79. package/models/index.ts +8 -0
  80. package/models/list-claim-positions-response-class.ts +1 -1
  81. package/models/patch-claim-request-dto.ts +12 -0
  82. package/models/regulation-item-class.ts +6 -0
  83. package/models/update-claim-position-request-dto.ts +6 -0
  84. package/models/update-claim-position-response-class.ts +1 -1
  85. package/models/update-claim-request-dto.ts +12 -0
  86. package/models/update-regulation-item-request-dto.ts +25 -0
  87. package/package.json +1 -1
@@ -96,6 +96,220 @@ var FormData = require('form-data');
96
96
  var ClaimPositionsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
+ /**
100
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
101
+ * @summary Batch upsert claim positions
102
+ * @param {string} claimCode Unique identifier for the object.
103
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ batchUpsertClaimPositions: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'claimCode' is not null or undefined
116
+ (0, common_1.assertParamExists)('batchUpsertClaimPositions', 'claimCode', claimCode);
117
+ // verify required parameter 'batchUpsertClaimPositionsRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('batchUpsertClaimPositions', 'batchUpsertClaimPositionsRequestDto', batchUpsertClaimPositionsRequestDto);
119
+ localVarPath = "/claimservice/v1/claim-positions/batch/{claimCode}"
120
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchUpsertClaimPositionsRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ /**
153
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **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.
154
+ * @summary Batch upsert claim positions
155
+ * @param {string} claimCode Unique identifier for the object.
156
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
157
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
158
+ * @param {*} [options] Override http request option.
159
+ * @deprecated
160
+ * @throws {RequiredError}
161
+ */
162
+ batchUpsertClaimPositions1: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
163
+ if (options === void 0) { options = {}; }
164
+ return __awaiter(_this, void 0, void 0, function () {
165
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
+ return __generator(this, function (_a) {
167
+ switch (_a.label) {
168
+ case 0:
169
+ // verify required parameter 'claimCode' is not null or undefined
170
+ (0, common_1.assertParamExists)('batchUpsertClaimPositions1', 'claimCode', claimCode);
171
+ // verify required parameter 'batchUpsertClaimPositionsRequestDto' is not null or undefined
172
+ (0, common_1.assertParamExists)('batchUpsertClaimPositions1', 'batchUpsertClaimPositionsRequestDto', batchUpsertClaimPositionsRequestDto);
173
+ localVarPath = "/v1/claim-positions/batch/{claimCode}"
174
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
175
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
176
+ if (configuration) {
177
+ baseOptions = configuration.baseOptions;
178
+ baseAccessToken = configuration.accessToken;
179
+ }
180
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
181
+ localVarHeaderParameter = {};
182
+ localVarQueryParameter = {};
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
186
+ case 1:
187
+ // authentication bearer required
188
+ // http bearer authentication required
189
+ _a.sent();
190
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
+ }
193
+ localVarHeaderParameter['Content-Type'] = 'application/json';
194
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
195
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
197
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchUpsertClaimPositionsRequestDto, localVarRequestOptions, configuration);
198
+ return [2 /*return*/, {
199
+ url: (0, common_1.toPathString)(localVarUrlObj),
200
+ options: localVarRequestOptions,
201
+ }];
202
+ }
203
+ });
204
+ });
205
+ },
206
+ /**
207
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
208
+ * @summary Calculate claim positions
209
+ * @param {string} claimCode Unique identifier for the object.
210
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
211
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ calculateClaimPositions: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
216
+ if (options === void 0) { options = {}; }
217
+ return __awaiter(_this, void 0, void 0, function () {
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
219
+ return __generator(this, function (_a) {
220
+ switch (_a.label) {
221
+ case 0:
222
+ // verify required parameter 'claimCode' is not null or undefined
223
+ (0, common_1.assertParamExists)('calculateClaimPositions', 'claimCode', claimCode);
224
+ // verify required parameter 'calculateClaimPositionsRequestDto' is not null or undefined
225
+ (0, common_1.assertParamExists)('calculateClaimPositions', 'calculateClaimPositionsRequestDto', calculateClaimPositionsRequestDto);
226
+ localVarPath = "/claimservice/v1/claim-positions/calculate/{claimCode}"
227
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
228
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
229
+ if (configuration) {
230
+ baseOptions = configuration.baseOptions;
231
+ baseAccessToken = configuration.accessToken;
232
+ }
233
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
234
+ localVarHeaderParameter = {};
235
+ localVarQueryParameter = {};
236
+ // authentication bearer required
237
+ // http bearer authentication required
238
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
239
+ case 1:
240
+ // authentication bearer required
241
+ // http bearer authentication required
242
+ _a.sent();
243
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
244
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
+ }
246
+ localVarHeaderParameter['Content-Type'] = 'application/json';
247
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
248
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
250
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(calculateClaimPositionsRequestDto, localVarRequestOptions, configuration);
251
+ return [2 /*return*/, {
252
+ url: (0, common_1.toPathString)(localVarUrlObj),
253
+ options: localVarRequestOptions,
254
+ }];
255
+ }
256
+ });
257
+ });
258
+ },
259
+ /**
260
+ * Calculates the reimbursement amount for all open claim positions in a claim. **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.
261
+ * @summary Calculate claim positions
262
+ * @param {string} claimCode Unique identifier for the object.
263
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
264
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
265
+ * @param {*} [options] Override http request option.
266
+ * @deprecated
267
+ * @throws {RequiredError}
268
+ */
269
+ calculateClaimPositions1: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
270
+ if (options === void 0) { options = {}; }
271
+ return __awaiter(_this, void 0, void 0, function () {
272
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
273
+ return __generator(this, function (_a) {
274
+ switch (_a.label) {
275
+ case 0:
276
+ // verify required parameter 'claimCode' is not null or undefined
277
+ (0, common_1.assertParamExists)('calculateClaimPositions1', 'claimCode', claimCode);
278
+ // verify required parameter 'calculateClaimPositionsRequestDto' is not null or undefined
279
+ (0, common_1.assertParamExists)('calculateClaimPositions1', 'calculateClaimPositionsRequestDto', calculateClaimPositionsRequestDto);
280
+ localVarPath = "/v1/claim-positions/calculate/{claimCode}"
281
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
282
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
283
+ if (configuration) {
284
+ baseOptions = configuration.baseOptions;
285
+ baseAccessToken = configuration.accessToken;
286
+ }
287
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
288
+ localVarHeaderParameter = {};
289
+ localVarQueryParameter = {};
290
+ // authentication bearer required
291
+ // http bearer authentication required
292
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
293
+ case 1:
294
+ // authentication bearer required
295
+ // http bearer authentication required
296
+ _a.sent();
297
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
298
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
299
+ }
300
+ localVarHeaderParameter['Content-Type'] = 'application/json';
301
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
302
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
303
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
304
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(calculateClaimPositionsRequestDto, localVarRequestOptions, configuration);
305
+ return [2 /*return*/, {
306
+ url: (0, common_1.toPathString)(localVarUrlObj),
307
+ options: localVarRequestOptions,
308
+ }];
309
+ }
310
+ });
311
+ });
312
+ },
99
313
  /**
100
314
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
101
315
  * @summary Create the claim position
@@ -407,11 +621,11 @@ var ClaimPositionsApiAxiosParamCreator = function (configuration) {
407
621
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
622
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
409
623
  * @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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
624
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
411
625
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
412
626
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, order, createdAt, updatedAt, procedureDate</i>
413
627
  * @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.<br/> <br/>
414
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
628
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
415
629
  * @param {*} [options] Override http request option.
416
630
  * @throws {RequiredError}
417
631
  */
@@ -479,11 +693,11 @@ var ClaimPositionsApiAxiosParamCreator = function (configuration) {
479
693
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
480
694
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
481
695
  * @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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
696
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
483
697
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
484
698
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, order, createdAt, updatedAt, procedureDate</i>
485
699
  * @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.<br/> <br/>
486
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
700
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
487
701
  * @param {*} [options] Override http request option.
488
702
  * @deprecated
489
703
  * @throws {RequiredError}
@@ -663,6 +877,96 @@ exports.ClaimPositionsApiAxiosParamCreator = ClaimPositionsApiAxiosParamCreator;
663
877
  var ClaimPositionsApiFp = function (configuration) {
664
878
  var localVarAxiosParamCreator = (0, exports.ClaimPositionsApiAxiosParamCreator)(configuration);
665
879
  return {
880
+ /**
881
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
882
+ * @summary Batch upsert claim positions
883
+ * @param {string} claimCode Unique identifier for the object.
884
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
885
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ */
889
+ batchUpsertClaimPositions: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
890
+ return __awaiter(this, void 0, void 0, function () {
891
+ var localVarAxiosArgs;
892
+ return __generator(this, function (_a) {
893
+ switch (_a.label) {
894
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.batchUpsertClaimPositions(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options)];
895
+ case 1:
896
+ localVarAxiosArgs = _a.sent();
897
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
898
+ }
899
+ });
900
+ });
901
+ },
902
+ /**
903
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **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.
904
+ * @summary Batch upsert claim positions
905
+ * @param {string} claimCode Unique identifier for the object.
906
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
907
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
908
+ * @param {*} [options] Override http request option.
909
+ * @deprecated
910
+ * @throws {RequiredError}
911
+ */
912
+ batchUpsertClaimPositions1: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
913
+ return __awaiter(this, void 0, void 0, function () {
914
+ var localVarAxiosArgs;
915
+ return __generator(this, function (_a) {
916
+ switch (_a.label) {
917
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options)];
918
+ case 1:
919
+ localVarAxiosArgs = _a.sent();
920
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
921
+ }
922
+ });
923
+ });
924
+ },
925
+ /**
926
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
927
+ * @summary Calculate claim positions
928
+ * @param {string} claimCode Unique identifier for the object.
929
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
930
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ */
934
+ calculateClaimPositions: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
935
+ return __awaiter(this, void 0, void 0, function () {
936
+ var localVarAxiosArgs;
937
+ return __generator(this, function (_a) {
938
+ switch (_a.label) {
939
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.calculateClaimPositions(claimCode, calculateClaimPositionsRequestDto, authorization, options)];
940
+ case 1:
941
+ localVarAxiosArgs = _a.sent();
942
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
943
+ }
944
+ });
945
+ });
946
+ },
947
+ /**
948
+ * Calculates the reimbursement amount for all open claim positions in a claim. **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.
949
+ * @summary Calculate claim positions
950
+ * @param {string} claimCode Unique identifier for the object.
951
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
952
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
953
+ * @param {*} [options] Override http request option.
954
+ * @deprecated
955
+ * @throws {RequiredError}
956
+ */
957
+ calculateClaimPositions1: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
958
+ return __awaiter(this, void 0, void 0, function () {
959
+ var localVarAxiosArgs;
960
+ return __generator(this, function (_a) {
961
+ switch (_a.label) {
962
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.calculateClaimPositions1(claimCode, calculateClaimPositionsRequestDto, authorization, options)];
963
+ case 1:
964
+ localVarAxiosArgs = _a.sent();
965
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
966
+ }
967
+ });
968
+ });
969
+ },
666
970
  /**
667
971
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
668
972
  * @summary Create the claim position
@@ -800,11 +1104,11 @@ var ClaimPositionsApiFp = function (configuration) {
800
1104
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
801
1105
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
802
1106
  * @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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1107
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
804
1108
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
805
1109
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, order, createdAt, updatedAt, procedureDate</i>
806
1110
  * @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.<br/> <br/>
807
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1111
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
808
1112
  * @param {*} [options] Override http request option.
809
1113
  * @throws {RequiredError}
810
1114
  */
@@ -827,11 +1131,11 @@ var ClaimPositionsApiFp = function (configuration) {
827
1131
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
828
1132
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
829
1133
  * @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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1134
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
831
1135
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
832
1136
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, order, createdAt, updatedAt, procedureDate</i>
833
1137
  * @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.<br/> <br/>
834
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1138
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
835
1139
  * @param {*} [options] Override http request option.
836
1140
  * @deprecated
837
1141
  * @throws {RequiredError}
@@ -904,6 +1208,56 @@ exports.ClaimPositionsApiFp = ClaimPositionsApiFp;
904
1208
  var ClaimPositionsApiFactory = function (configuration, basePath, axios) {
905
1209
  var localVarFp = (0, exports.ClaimPositionsApiFp)(configuration);
906
1210
  return {
1211
+ /**
1212
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
1213
+ * @summary Batch upsert claim positions
1214
+ * @param {string} claimCode Unique identifier for the object.
1215
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
1216
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1217
+ * @param {*} [options] Override http request option.
1218
+ * @throws {RequiredError}
1219
+ */
1220
+ batchUpsertClaimPositions: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
1221
+ return localVarFp.batchUpsertClaimPositions(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1222
+ },
1223
+ /**
1224
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **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.
1225
+ * @summary Batch upsert claim positions
1226
+ * @param {string} claimCode Unique identifier for the object.
1227
+ * @param {BatchUpsertClaimPositionsRequestDto} batchUpsertClaimPositionsRequestDto
1228
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1229
+ * @param {*} [options] Override http request option.
1230
+ * @deprecated
1231
+ * @throws {RequiredError}
1232
+ */
1233
+ batchUpsertClaimPositions1: function (claimCode, batchUpsertClaimPositionsRequestDto, authorization, options) {
1234
+ return localVarFp.batchUpsertClaimPositions1(claimCode, batchUpsertClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1235
+ },
1236
+ /**
1237
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
1238
+ * @summary Calculate claim positions
1239
+ * @param {string} claimCode Unique identifier for the object.
1240
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
1241
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1242
+ * @param {*} [options] Override http request option.
1243
+ * @throws {RequiredError}
1244
+ */
1245
+ calculateClaimPositions: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
1246
+ return localVarFp.calculateClaimPositions(claimCode, calculateClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1247
+ },
1248
+ /**
1249
+ * Calculates the reimbursement amount for all open claim positions in a claim. **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.
1250
+ * @summary Calculate claim positions
1251
+ * @param {string} claimCode Unique identifier for the object.
1252
+ * @param {CalculateClaimPositionsRequestDto} calculateClaimPositionsRequestDto
1253
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1254
+ * @param {*} [options] Override http request option.
1255
+ * @deprecated
1256
+ * @throws {RequiredError}
1257
+ */
1258
+ calculateClaimPositions1: function (claimCode, calculateClaimPositionsRequestDto, authorization, options) {
1259
+ return localVarFp.calculateClaimPositions1(claimCode, calculateClaimPositionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1260
+ },
907
1261
  /**
908
1262
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
909
1263
  * @summary Create the claim position
@@ -981,11 +1335,11 @@ var ClaimPositionsApiFactory = function (configuration, basePath, axios) {
981
1335
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
982
1336
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
983
1337
  * @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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1338
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
985
1339
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
986
1340
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, order, createdAt, updatedAt, procedureDate</i>
987
1341
  * @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.<br/> <br/>
988
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1342
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
989
1343
  * @param {*} [options] Override http request option.
990
1344
  * @throws {RequiredError}
991
1345
  */
@@ -998,11 +1352,11 @@ var ClaimPositionsApiFactory = function (configuration, basePath, axios) {
998
1352
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
999
1353
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1000
1354
  * @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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1355
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1002
1356
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
1003
1357
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, order, createdAt, updatedAt, procedureDate</i>
1004
1358
  * @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.<br/> <br/>
1005
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1359
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, claimCode, positionNumber, category, status, createdAt, updatedAt</i>
1006
1360
  * @param {*} [options] Override http request option.
1007
1361
  * @deprecated
1008
1362
  * @throws {RequiredError}
@@ -1049,6 +1403,56 @@ var ClaimPositionsApi = /** @class */ (function (_super) {
1049
1403
  function ClaimPositionsApi() {
1050
1404
  return _super !== null && _super.apply(this, arguments) || this;
1051
1405
  }
1406
+ /**
1407
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **Required Permissions** \"claim-management.claims.update\"
1408
+ * @summary Batch upsert claim positions
1409
+ * @param {ClaimPositionsApiBatchUpsertClaimPositionsRequest} requestParameters Request parameters.
1410
+ * @param {*} [options] Override http request option.
1411
+ * @throws {RequiredError}
1412
+ * @memberof ClaimPositionsApi
1413
+ */
1414
+ ClaimPositionsApi.prototype.batchUpsertClaimPositions = function (requestParameters, options) {
1415
+ var _this = this;
1416
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).batchUpsertClaimPositions(requestParameters.claimCode, requestParameters.batchUpsertClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1417
+ };
1418
+ /**
1419
+ * Batch upsert claim positions for a claim. Creates new positions, updates existing ones by code, and deletes positions by code in a single request. **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.
1420
+ * @summary Batch upsert claim positions
1421
+ * @param {ClaimPositionsApiBatchUpsertClaimPositions1Request} requestParameters Request parameters.
1422
+ * @param {*} [options] Override http request option.
1423
+ * @deprecated
1424
+ * @throws {RequiredError}
1425
+ * @memberof ClaimPositionsApi
1426
+ */
1427
+ ClaimPositionsApi.prototype.batchUpsertClaimPositions1 = function (requestParameters, options) {
1428
+ var _this = this;
1429
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).batchUpsertClaimPositions1(requestParameters.claimCode, requestParameters.batchUpsertClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1430
+ };
1431
+ /**
1432
+ * Calculates the reimbursement amount for all open claim positions in a claim. **Required Permissions** \"claim-management.claims.view\"
1433
+ * @summary Calculate claim positions
1434
+ * @param {ClaimPositionsApiCalculateClaimPositionsRequest} requestParameters Request parameters.
1435
+ * @param {*} [options] Override http request option.
1436
+ * @throws {RequiredError}
1437
+ * @memberof ClaimPositionsApi
1438
+ */
1439
+ ClaimPositionsApi.prototype.calculateClaimPositions = function (requestParameters, options) {
1440
+ var _this = this;
1441
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).calculateClaimPositions(requestParameters.claimCode, requestParameters.calculateClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1442
+ };
1443
+ /**
1444
+ * Calculates the reimbursement amount for all open claim positions in a claim. **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.
1445
+ * @summary Calculate claim positions
1446
+ * @param {ClaimPositionsApiCalculateClaimPositions1Request} requestParameters Request parameters.
1447
+ * @param {*} [options] Override http request option.
1448
+ * @deprecated
1449
+ * @throws {RequiredError}
1450
+ * @memberof ClaimPositionsApi
1451
+ */
1452
+ ClaimPositionsApi.prototype.calculateClaimPositions1 = function (requestParameters, options) {
1453
+ var _this = this;
1454
+ return (0, exports.ClaimPositionsApiFp)(this.configuration).calculateClaimPositions1(requestParameters.claimCode, requestParameters.calculateClaimPositionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1455
+ };
1052
1456
  /**
1053
1457
  * This will create claim position. **Required Permissions** \"claim-management.claims.create\"
1054
1458
  * @summary Create the claim position