@emilgroup/claim-sdk 1.41.0 → 1.41.1-beta.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 (102) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/claim-limit-usages-api.ts +644 -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 +1336 -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 +581 -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 +1177 -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,581 @@
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.ClaimLimitUsagesApi = exports.ClaimLimitUsagesApiFactory = exports.ClaimLimitUsagesApiFp = exports.ClaimLimitUsagesApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * ClaimLimitUsagesApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var ClaimLimitUsagesApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will get claim limit usage. **Required Permissions** \"claim-management.claims.view\"
97
+ * @summary Retrieve the claim limit usage
98
+ * @param {string} code
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ getClaimLimitUsage: function (code, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'code' is not null or undefined
111
+ (0, common_1.assertParamExists)('getClaimLimitUsage', 'code', code);
112
+ localVarPath = "/claimservice/v1/claim-limit-usages/{code}"
113
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
114
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
120
+ localVarHeaderParameter = {};
121
+ localVarQueryParameter = {};
122
+ // authentication bearer required
123
+ // http bearer authentication required
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
125
+ case 1:
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ _a.sent();
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ }
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ return [2 /*return*/, {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ }];
139
+ }
140
+ });
141
+ });
142
+ },
143
+ /**
144
+ * This will get claim limit usage. **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.
145
+ * @summary Retrieve the claim limit usage
146
+ * @param {string} code
147
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
148
+ * @param {*} [options] Override http request option.
149
+ * @deprecated
150
+ * @throws {RequiredError}
151
+ */
152
+ getClaimLimitUsage1: function (code, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'code' is not null or undefined
160
+ (0, common_1.assertParamExists)('getClaimLimitUsage1', 'code', code);
161
+ localVarPath = "/v1/claim-limit-usages/{code}"
162
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ /**
193
+ * Retrieves a list of claim limit usages. **Required Permissions** \"claim-management.claims.view\"
194
+ * @summary List claim limit usages
195
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
196
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
197
+ * @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.
198
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
199
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
200
+ * @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, createdAt, updatedAt, periodStart, periodEnd, remainingAmount&lt;/i&gt;
201
+ * @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;
202
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ listClaimLimitUsages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, 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
+ localVarPath = "/claimservice/v1/claim-limit-usages";
214
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
220
+ localVarHeaderParameter = {};
221
+ localVarQueryParameter = {};
222
+ // authentication bearer required
223
+ // http bearer authentication required
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
225
+ case 1:
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ _a.sent();
229
+ if (pageSize !== undefined) {
230
+ localVarQueryParameter['pageSize'] = pageSize;
231
+ }
232
+ if (pageToken !== undefined) {
233
+ localVarQueryParameter['pageToken'] = pageToken;
234
+ }
235
+ if (filter !== undefined) {
236
+ localVarQueryParameter['filter'] = filter;
237
+ }
238
+ if (search !== undefined) {
239
+ localVarQueryParameter['search'] = search;
240
+ }
241
+ if (order !== undefined) {
242
+ localVarQueryParameter['order'] = order;
243
+ }
244
+ if (expand !== undefined) {
245
+ localVarQueryParameter['expand'] = expand;
246
+ }
247
+ if (filters !== undefined) {
248
+ localVarQueryParameter['filters'] = filters;
249
+ }
250
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ }
253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
256
+ return [2 /*return*/, {
257
+ url: (0, common_1.toPathString)(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ }];
260
+ }
261
+ });
262
+ });
263
+ },
264
+ /**
265
+ * Retrieves a list of claim limit usages. **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.
266
+ * @summary List claim limit usages
267
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
268
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
269
+ * @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.
270
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
271
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
272
+ * @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, createdAt, updatedAt, periodStart, periodEnd, remainingAmount&lt;/i&gt;
273
+ * @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;
274
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
275
+ * @param {*} [options] Override http request option.
276
+ * @deprecated
277
+ * @throws {RequiredError}
278
+ */
279
+ listClaimLimitUsages1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
280
+ if (options === void 0) { options = {}; }
281
+ return __awaiter(_this, void 0, void 0, function () {
282
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
283
+ return __generator(this, function (_a) {
284
+ switch (_a.label) {
285
+ case 0:
286
+ localVarPath = "/v1/claim-limit-usages";
287
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
288
+ if (configuration) {
289
+ baseOptions = configuration.baseOptions;
290
+ baseAccessToken = configuration.accessToken;
291
+ }
292
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
293
+ localVarHeaderParameter = {};
294
+ localVarQueryParameter = {};
295
+ // authentication bearer required
296
+ // http bearer authentication required
297
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
298
+ case 1:
299
+ // authentication bearer required
300
+ // http bearer authentication required
301
+ _a.sent();
302
+ if (pageSize !== undefined) {
303
+ localVarQueryParameter['pageSize'] = pageSize;
304
+ }
305
+ if (pageToken !== undefined) {
306
+ localVarQueryParameter['pageToken'] = pageToken;
307
+ }
308
+ if (filter !== undefined) {
309
+ localVarQueryParameter['filter'] = filter;
310
+ }
311
+ if (search !== undefined) {
312
+ localVarQueryParameter['search'] = search;
313
+ }
314
+ if (order !== undefined) {
315
+ localVarQueryParameter['order'] = order;
316
+ }
317
+ if (expand !== undefined) {
318
+ localVarQueryParameter['expand'] = expand;
319
+ }
320
+ if (filters !== undefined) {
321
+ localVarQueryParameter['filters'] = filters;
322
+ }
323
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
324
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
325
+ }
326
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
327
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
328
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
329
+ return [2 /*return*/, {
330
+ url: (0, common_1.toPathString)(localVarUrlObj),
331
+ options: localVarRequestOptions,
332
+ }];
333
+ }
334
+ });
335
+ });
336
+ },
337
+ };
338
+ };
339
+ exports.ClaimLimitUsagesApiAxiosParamCreator = ClaimLimitUsagesApiAxiosParamCreator;
340
+ /**
341
+ * ClaimLimitUsagesApi - functional programming interface
342
+ * @export
343
+ */
344
+ var ClaimLimitUsagesApiFp = function (configuration) {
345
+ var localVarAxiosParamCreator = (0, exports.ClaimLimitUsagesApiAxiosParamCreator)(configuration);
346
+ return {
347
+ /**
348
+ * This will get claim limit usage. **Required Permissions** \"claim-management.claims.view\"
349
+ * @summary Retrieve the claim limit usage
350
+ * @param {string} code
351
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ getClaimLimitUsage: function (code, authorization, options) {
356
+ return __awaiter(this, void 0, void 0, function () {
357
+ var localVarAxiosArgs;
358
+ return __generator(this, function (_a) {
359
+ switch (_a.label) {
360
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimLimitUsage(code, authorization, options)];
361
+ case 1:
362
+ localVarAxiosArgs = _a.sent();
363
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
364
+ }
365
+ });
366
+ });
367
+ },
368
+ /**
369
+ * This will get claim limit usage. **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.
370
+ * @summary Retrieve the claim limit usage
371
+ * @param {string} code
372
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
373
+ * @param {*} [options] Override http request option.
374
+ * @deprecated
375
+ * @throws {RequiredError}
376
+ */
377
+ getClaimLimitUsage1: function (code, authorization, options) {
378
+ return __awaiter(this, void 0, void 0, function () {
379
+ var localVarAxiosArgs;
380
+ return __generator(this, function (_a) {
381
+ switch (_a.label) {
382
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimLimitUsage1(code, authorization, options)];
383
+ case 1:
384
+ localVarAxiosArgs = _a.sent();
385
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
386
+ }
387
+ });
388
+ });
389
+ },
390
+ /**
391
+ * Retrieves a list of claim limit usages. **Required Permissions** \"claim-management.claims.view\"
392
+ * @summary List claim limit usages
393
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
395
+ * @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.
396
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
397
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
398
+ * @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, createdAt, updatedAt, periodStart, periodEnd, remainingAmount&lt;/i&gt;
399
+ * @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;
400
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ listClaimLimitUsages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
405
+ return __awaiter(this, void 0, void 0, function () {
406
+ var localVarAxiosArgs;
407
+ return __generator(this, function (_a) {
408
+ switch (_a.label) {
409
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimLimitUsages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
410
+ case 1:
411
+ localVarAxiosArgs = _a.sent();
412
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
413
+ }
414
+ });
415
+ });
416
+ },
417
+ /**
418
+ * Retrieves a list of claim limit usages. **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.
419
+ * @summary List claim limit usages
420
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
421
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
422
+ * @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.
423
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
424
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
425
+ * @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, createdAt, updatedAt, periodStart, periodEnd, remainingAmount&lt;/i&gt;
426
+ * @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;
427
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
428
+ * @param {*} [options] Override http request option.
429
+ * @deprecated
430
+ * @throws {RequiredError}
431
+ */
432
+ listClaimLimitUsages1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
433
+ return __awaiter(this, void 0, void 0, function () {
434
+ var localVarAxiosArgs;
435
+ return __generator(this, function (_a) {
436
+ switch (_a.label) {
437
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimLimitUsages1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
438
+ case 1:
439
+ localVarAxiosArgs = _a.sent();
440
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
441
+ }
442
+ });
443
+ });
444
+ },
445
+ };
446
+ };
447
+ exports.ClaimLimitUsagesApiFp = ClaimLimitUsagesApiFp;
448
+ /**
449
+ * ClaimLimitUsagesApi - factory interface
450
+ * @export
451
+ */
452
+ var ClaimLimitUsagesApiFactory = function (configuration, basePath, axios) {
453
+ var localVarFp = (0, exports.ClaimLimitUsagesApiFp)(configuration);
454
+ return {
455
+ /**
456
+ * This will get claim limit usage. **Required Permissions** \"claim-management.claims.view\"
457
+ * @summary Retrieve the claim limit usage
458
+ * @param {string} code
459
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ getClaimLimitUsage: function (code, authorization, options) {
464
+ return localVarFp.getClaimLimitUsage(code, authorization, options).then(function (request) { return request(axios, basePath); });
465
+ },
466
+ /**
467
+ * This will get claim limit usage. **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.
468
+ * @summary Retrieve the claim limit usage
469
+ * @param {string} code
470
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
+ * @param {*} [options] Override http request option.
472
+ * @deprecated
473
+ * @throws {RequiredError}
474
+ */
475
+ getClaimLimitUsage1: function (code, authorization, options) {
476
+ return localVarFp.getClaimLimitUsage1(code, authorization, options).then(function (request) { return request(axios, basePath); });
477
+ },
478
+ /**
479
+ * Retrieves a list of claim limit usages. **Required Permissions** \"claim-management.claims.view\"
480
+ * @summary List claim limit usages
481
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
483
+ * @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.
484
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
485
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
486
+ * @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, createdAt, updatedAt, periodStart, periodEnd, remainingAmount&lt;/i&gt;
487
+ * @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;
488
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ listClaimLimitUsages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
493
+ return localVarFp.listClaimLimitUsages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
494
+ },
495
+ /**
496
+ * Retrieves a list of claim limit usages. **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.
497
+ * @summary List claim limit usages
498
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
499
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
500
+ * @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.
501
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
502
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
503
+ * @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, createdAt, updatedAt, periodStart, periodEnd, remainingAmount&lt;/i&gt;
504
+ * @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;
505
+ * @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, policyCode, type, tariffKey, categoryKey, period, claimCode, deductibleKey, periodStart, periodEnd, createdAt, updatedAt&lt;/i&gt;
506
+ * @param {*} [options] Override http request option.
507
+ * @deprecated
508
+ * @throws {RequiredError}
509
+ */
510
+ listClaimLimitUsages1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
511
+ return localVarFp.listClaimLimitUsages1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
512
+ },
513
+ };
514
+ };
515
+ exports.ClaimLimitUsagesApiFactory = ClaimLimitUsagesApiFactory;
516
+ /**
517
+ * ClaimLimitUsagesApi - object-oriented interface
518
+ * @export
519
+ * @class ClaimLimitUsagesApi
520
+ * @extends {BaseAPI}
521
+ */
522
+ var ClaimLimitUsagesApi = /** @class */ (function (_super) {
523
+ __extends(ClaimLimitUsagesApi, _super);
524
+ function ClaimLimitUsagesApi() {
525
+ return _super !== null && _super.apply(this, arguments) || this;
526
+ }
527
+ /**
528
+ * This will get claim limit usage. **Required Permissions** \"claim-management.claims.view\"
529
+ * @summary Retrieve the claim limit usage
530
+ * @param {ClaimLimitUsagesApiGetClaimLimitUsageRequest} requestParameters Request parameters.
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ * @memberof ClaimLimitUsagesApi
534
+ */
535
+ ClaimLimitUsagesApi.prototype.getClaimLimitUsage = function (requestParameters, options) {
536
+ var _this = this;
537
+ return (0, exports.ClaimLimitUsagesApiFp)(this.configuration).getClaimLimitUsage(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
538
+ };
539
+ /**
540
+ * This will get claim limit usage. **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.
541
+ * @summary Retrieve the claim limit usage
542
+ * @param {ClaimLimitUsagesApiGetClaimLimitUsage1Request} requestParameters Request parameters.
543
+ * @param {*} [options] Override http request option.
544
+ * @deprecated
545
+ * @throws {RequiredError}
546
+ * @memberof ClaimLimitUsagesApi
547
+ */
548
+ ClaimLimitUsagesApi.prototype.getClaimLimitUsage1 = function (requestParameters, options) {
549
+ var _this = this;
550
+ return (0, exports.ClaimLimitUsagesApiFp)(this.configuration).getClaimLimitUsage1(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
551
+ };
552
+ /**
553
+ * Retrieves a list of claim limit usages. **Required Permissions** \"claim-management.claims.view\"
554
+ * @summary List claim limit usages
555
+ * @param {ClaimLimitUsagesApiListClaimLimitUsagesRequest} requestParameters Request parameters.
556
+ * @param {*} [options] Override http request option.
557
+ * @throws {RequiredError}
558
+ * @memberof ClaimLimitUsagesApi
559
+ */
560
+ ClaimLimitUsagesApi.prototype.listClaimLimitUsages = function (requestParameters, options) {
561
+ var _this = this;
562
+ if (requestParameters === void 0) { requestParameters = {}; }
563
+ return (0, exports.ClaimLimitUsagesApiFp)(this.configuration).listClaimLimitUsages(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); });
564
+ };
565
+ /**
566
+ * Retrieves a list of claim limit usages. **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.
567
+ * @summary List claim limit usages
568
+ * @param {ClaimLimitUsagesApiListClaimLimitUsages1Request} requestParameters Request parameters.
569
+ * @param {*} [options] Override http request option.
570
+ * @deprecated
571
+ * @throws {RequiredError}
572
+ * @memberof ClaimLimitUsagesApi
573
+ */
574
+ ClaimLimitUsagesApi.prototype.listClaimLimitUsages1 = function (requestParameters, options) {
575
+ var _this = this;
576
+ if (requestParameters === void 0) { requestParameters = {}; }
577
+ return (0, exports.ClaimLimitUsagesApiFp)(this.configuration).listClaimLimitUsages1(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); });
578
+ };
579
+ return ClaimLimitUsagesApi;
580
+ }(base_1.BaseAPI));
581
+ exports.ClaimLimitUsagesApi = ClaimLimitUsagesApi;