@emilgroup/claim-sdk 1.10.0 → 1.16.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 (125) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +2 -2
  3. package/api/claim-partner-roles-api.ts +677 -0
  4. package/api/claim-partners-api.ts +570 -0
  5. package/api/claim-statuses-api.ts +24 -10
  6. package/api/claims-api.ts +24 -10
  7. package/api/settlements-api.ts +24 -10
  8. package/api.ts +4 -0
  9. package/configuration.ts +1 -1
  10. package/dist/api/claim-partner-roles-api.d.ts +384 -0
  11. package/dist/api/claim-partner-roles-api.js +636 -0
  12. package/dist/api/claim-partners-api.d.ts +327 -0
  13. package/dist/api/claim-partners-api.js +543 -0
  14. package/dist/api/claim-statuses-api.d.ts +318 -0
  15. package/dist/api/claim-statuses-api.js +537 -0
  16. package/dist/api/claims-api.d.ts +450 -0
  17. package/dist/api/claims-api.js +735 -0
  18. package/dist/api/default-api.d.ts +66 -0
  19. package/dist/api/default-api.js +196 -0
  20. package/dist/api/settlements-api.d.ts +384 -0
  21. package/dist/api/settlements-api.js +636 -0
  22. package/dist/api.d.ts +17 -0
  23. package/dist/api.js +35 -0
  24. package/dist/base.d.ts +74 -0
  25. package/dist/base.js +298 -0
  26. package/dist/common.d.ts +91 -0
  27. package/dist/common.js +276 -0
  28. package/dist/configuration.d.ts +83 -0
  29. package/dist/configuration.js +51 -0
  30. package/dist/index.d.ts +15 -0
  31. package/dist/index.js +36 -0
  32. package/dist/models/claim-class.d.ts +168 -0
  33. package/dist/models/claim-class.js +15 -0
  34. package/dist/models/claim-partner-class.d.ts +61 -0
  35. package/dist/models/claim-partner-class.js +15 -0
  36. package/dist/models/claim-partner-role-class.d.ts +54 -0
  37. package/dist/models/claim-partner-role-class.js +15 -0
  38. package/dist/models/claim-status-class.d.ts +36 -0
  39. package/dist/models/claim-status-class.js +15 -0
  40. package/dist/models/create-claim-partner-request-dto.d.ts +36 -0
  41. package/dist/models/create-claim-partner-request-dto.js +15 -0
  42. package/dist/models/create-claim-partner-response-class.d.ts +25 -0
  43. package/dist/models/create-claim-partner-response-class.js +15 -0
  44. package/dist/models/create-claim-partner-role-request-dto.d.ts +30 -0
  45. package/dist/models/create-claim-partner-role-request-dto.js +15 -0
  46. package/dist/models/create-claim-partner-role-response-class.d.ts +25 -0
  47. package/dist/models/create-claim-partner-role-response-class.js +15 -0
  48. package/dist/models/create-claim-request-dto.d.ts +132 -0
  49. package/dist/models/create-claim-request-dto.js +15 -0
  50. package/dist/models/create-claim-response-class.d.ts +25 -0
  51. package/dist/models/create-claim-response-class.js +15 -0
  52. package/dist/models/create-claim-status-request-dto.d.ts +30 -0
  53. package/dist/models/create-claim-status-request-dto.js +15 -0
  54. package/dist/models/create-claim-status-response-class.d.ts +25 -0
  55. package/dist/models/create-claim-status-response-class.js +15 -0
  56. package/dist/models/create-settlement-request-dto.d.ts +48 -0
  57. package/dist/models/create-settlement-request-dto.js +15 -0
  58. package/dist/models/create-settlement-response-class.d.ts +25 -0
  59. package/dist/models/create-settlement-response-class.js +15 -0
  60. package/dist/models/get-claim-partner-response-class.d.ts +25 -0
  61. package/dist/models/get-claim-partner-response-class.js +15 -0
  62. package/dist/models/get-claim-partner-role-response-class.d.ts +25 -0
  63. package/dist/models/get-claim-partner-role-response-class.js +15 -0
  64. package/dist/models/get-claim-response-class.d.ts +25 -0
  65. package/dist/models/get-claim-response-class.js +15 -0
  66. package/dist/models/get-claim-status-response-class.d.ts +25 -0
  67. package/dist/models/get-claim-status-response-class.js +15 -0
  68. package/dist/models/get-settlement-response-class.d.ts +25 -0
  69. package/dist/models/get-settlement-response-class.js +15 -0
  70. package/dist/models/index.d.ts +35 -0
  71. package/dist/models/index.js +51 -0
  72. package/dist/models/inline-response200.d.ts +54 -0
  73. package/dist/models/inline-response200.js +15 -0
  74. package/dist/models/inline-response503.d.ts +54 -0
  75. package/dist/models/inline-response503.js +15 -0
  76. package/dist/models/list-claim-partner-roles-response-class.d.ts +31 -0
  77. package/dist/models/list-claim-partner-roles-response-class.js +15 -0
  78. package/dist/models/list-claim-partners-response-class.d.ts +31 -0
  79. package/dist/models/list-claim-partners-response-class.js +15 -0
  80. package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
  81. package/dist/models/list-claim-statuses-response-class.js +15 -0
  82. package/dist/models/list-claims-response-class.d.ts +31 -0
  83. package/dist/models/list-claims-response-class.js +15 -0
  84. package/dist/models/list-settlements-response-class.d.ts +31 -0
  85. package/dist/models/list-settlements-response-class.js +15 -0
  86. package/dist/models/patch-claim-request-dto.d.ts +126 -0
  87. package/dist/models/patch-claim-request-dto.js +15 -0
  88. package/dist/models/patch-claim-response-class.d.ts +25 -0
  89. package/dist/models/patch-claim-response-class.js +15 -0
  90. package/dist/models/settlement-class.d.ts +78 -0
  91. package/dist/models/settlement-class.js +15 -0
  92. package/dist/models/update-claim-partner-role-request-dto.d.ts +36 -0
  93. package/dist/models/update-claim-partner-role-request-dto.js +15 -0
  94. package/dist/models/update-claim-partner-role-response-class.d.ts +25 -0
  95. package/dist/models/update-claim-partner-role-response-class.js +15 -0
  96. package/dist/models/update-claim-request-dto.d.ts +126 -0
  97. package/dist/models/update-claim-request-dto.js +15 -0
  98. package/dist/models/update-claim-response-class.d.ts +25 -0
  99. package/dist/models/update-claim-response-class.js +15 -0
  100. package/dist/models/update-settlement-request-dto.d.ts +54 -0
  101. package/dist/models/update-settlement-request-dto.js +15 -0
  102. package/dist/models/update-settlement-response-class.d.ts +25 -0
  103. package/dist/models/update-settlement-response-class.js +15 -0
  104. package/models/claim-class.ts +13 -1
  105. package/models/claim-partner-class.ts +67 -0
  106. package/models/claim-partner-role-class.ts +60 -0
  107. package/models/claim-status-class.ts +1 -1
  108. package/models/create-claim-partner-request-dto.ts +42 -0
  109. package/models/create-claim-partner-response-class.ts +31 -0
  110. package/models/create-claim-partner-role-request-dto.ts +36 -0
  111. package/models/create-claim-partner-role-response-class.ts +31 -0
  112. package/models/create-claim-request-dto.ts +19 -13
  113. package/models/create-claim-status-request-dto.ts +1 -1
  114. package/models/get-claim-partner-response-class.ts +31 -0
  115. package/models/get-claim-partner-role-response-class.ts +31 -0
  116. package/models/index.ts +12 -0
  117. package/models/inline-response200.ts +6 -6
  118. package/models/inline-response503.ts +6 -6
  119. package/models/list-claim-partner-roles-response-class.ts +37 -0
  120. package/models/list-claim-partners-response-class.ts +37 -0
  121. package/models/patch-claim-request-dto.ts +8 -8
  122. package/models/update-claim-partner-role-request-dto.ts +42 -0
  123. package/models/update-claim-partner-role-response-class.ts +31 -0
  124. package/models/update-claim-request-dto.ts +20 -20
  125. package/package.json +1 -1
@@ -0,0 +1,636 @@
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.ClaimPartnerRolesApi = exports.ClaimPartnerRolesApiFactory = exports.ClaimPartnerRolesApiFp = exports.ClaimPartnerRolesApiAxiosParamCreator = 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
+ * ClaimPartnerRolesApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var ClaimPartnerRolesApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will create a claim partner role.
97
+ * @summary Create the claim partner role
98
+ * @param {CreateClaimPartnerRoleRequestDto} createClaimPartnerRoleRequestDto
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
+ createClaimPartnerRole: function (createClaimPartnerRoleRequestDto, 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 'createClaimPartnerRoleRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createClaimPartnerRole', 'createClaimPartnerRoleRequestDto', createClaimPartnerRoleRequestDto);
112
+ localVarPath = "/v1/claim-partner-roles";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClaimPartnerRoleRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * Permanently deletes the claim partner role. Supply the unique code that was returned when you created the claim partner role and this will delete it.
146
+ * @summary Delete the claim partner role
147
+ * @param {string} code Unique identifier for the object.
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ deleteClaimPartnerRole: 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)('deleteClaimPartnerRole', 'code', code);
161
+ localVarPath = "/v1/claim-partner-roles/{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: 'DELETE' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ /**
193
+ * Retrieves the details of the claim partner role that was previously created. Supply the unique claim partner role code that was returned when you created it and Emil Api will return the corresponding claim partner role information.
194
+ * @summary Retrieve the claim partner role
195
+ * @param {string} code Unique identifier for the object.
196
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ getClaimPartnerRole: function (code, authorization, options) {
201
+ if (options === void 0) { options = {}; }
202
+ return __awaiter(_this, void 0, void 0, function () {
203
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0:
207
+ // verify required parameter 'code' is not null or undefined
208
+ (0, common_1.assertParamExists)('getClaimPartnerRole', 'code', code);
209
+ localVarPath = "/v1/claim-partner-roles/{code}"
210
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ baseAccessToken = configuration.accessToken;
215
+ }
216
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
217
+ localVarHeaderParameter = {};
218
+ localVarQueryParameter = {};
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
+ case 1:
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ _a.sent();
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ }
229
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ return [2 /*return*/, {
233
+ url: (0, common_1.toPathString)(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ }];
236
+ }
237
+ });
238
+ });
239
+ },
240
+ /**
241
+ * Returns a list of claim partner roles you have previously created. The claim partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
242
+ * @summary List claim partner roles
243
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
245
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
246
+ * @param {'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
247
+ * @param {'name' | 'productSlug'} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
248
+ * @param {'id' | 'name' | 'productSlug' | 'createdAt' | 'updatedAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
249
+ * @param {number} [expand] This entity has no expand parameters
250
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ listClaimPartnerRole: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
255
+ if (options === void 0) { options = {}; }
256
+ return __awaiter(_this, void 0, void 0, function () {
257
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
258
+ return __generator(this, function (_a) {
259
+ switch (_a.label) {
260
+ case 0:
261
+ localVarPath = "/v1/claim-partner-roles";
262
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
263
+ if (configuration) {
264
+ baseOptions = configuration.baseOptions;
265
+ baseAccessToken = configuration.accessToken;
266
+ }
267
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
268
+ localVarHeaderParameter = {};
269
+ localVarQueryParameter = {};
270
+ // authentication bearer required
271
+ // http bearer authentication required
272
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
273
+ case 1:
274
+ // authentication bearer required
275
+ // http bearer authentication required
276
+ _a.sent();
277
+ if (pageSize !== undefined) {
278
+ localVarQueryParameter['pageSize'] = pageSize;
279
+ }
280
+ if (pageToken !== undefined) {
281
+ localVarQueryParameter['pageToken'] = pageToken;
282
+ }
283
+ if (filter !== undefined) {
284
+ localVarQueryParameter['filter'] = filter;
285
+ }
286
+ if (search !== undefined) {
287
+ localVarQueryParameter['search'] = search;
288
+ }
289
+ if (order !== undefined) {
290
+ localVarQueryParameter['order'] = order;
291
+ }
292
+ if (expand !== undefined) {
293
+ localVarQueryParameter['expand'] = expand;
294
+ }
295
+ if (filters !== undefined) {
296
+ localVarQueryParameter['filters'] = filters;
297
+ }
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ }
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
+ return [2 /*return*/, {
305
+ url: (0, common_1.toPathString)(localVarUrlObj),
306
+ options: localVarRequestOptions,
307
+ }];
308
+ }
309
+ });
310
+ });
311
+ },
312
+ /**
313
+ * Updates the specified claim partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
314
+ * @summary Update the claim partner role
315
+ * @param {string} code Unique identifier for the object.
316
+ * @param {UpdateClaimPartnerRoleRequestDto} updateClaimPartnerRoleRequestDto
317
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ updateClaimPartnerRole: function (code, updateClaimPartnerRoleRequestDto, authorization, options) {
322
+ if (options === void 0) { options = {}; }
323
+ return __awaiter(_this, void 0, void 0, function () {
324
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
325
+ return __generator(this, function (_a) {
326
+ switch (_a.label) {
327
+ case 0:
328
+ // verify required parameter 'code' is not null or undefined
329
+ (0, common_1.assertParamExists)('updateClaimPartnerRole', 'code', code);
330
+ // verify required parameter 'updateClaimPartnerRoleRequestDto' is not null or undefined
331
+ (0, common_1.assertParamExists)('updateClaimPartnerRole', 'updateClaimPartnerRoleRequestDto', updateClaimPartnerRoleRequestDto);
332
+ localVarPath = "/v1/claim-partner-roles/{code}"
333
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
334
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
335
+ if (configuration) {
336
+ baseOptions = configuration.baseOptions;
337
+ baseAccessToken = configuration.accessToken;
338
+ }
339
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
340
+ localVarHeaderParameter = {};
341
+ localVarQueryParameter = {};
342
+ // authentication bearer required
343
+ // http bearer authentication required
344
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
345
+ case 1:
346
+ // authentication bearer required
347
+ // http bearer authentication required
348
+ _a.sent();
349
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
351
+ }
352
+ localVarHeaderParameter['Content-Type'] = 'application/json';
353
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
354
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
356
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClaimPartnerRoleRequestDto, localVarRequestOptions, configuration);
357
+ return [2 /*return*/, {
358
+ url: (0, common_1.toPathString)(localVarUrlObj),
359
+ options: localVarRequestOptions,
360
+ }];
361
+ }
362
+ });
363
+ });
364
+ },
365
+ };
366
+ };
367
+ exports.ClaimPartnerRolesApiAxiosParamCreator = ClaimPartnerRolesApiAxiosParamCreator;
368
+ /**
369
+ * ClaimPartnerRolesApi - functional programming interface
370
+ * @export
371
+ */
372
+ var ClaimPartnerRolesApiFp = function (configuration) {
373
+ var localVarAxiosParamCreator = (0, exports.ClaimPartnerRolesApiAxiosParamCreator)(configuration);
374
+ return {
375
+ /**
376
+ * This will create a claim partner role.
377
+ * @summary Create the claim partner role
378
+ * @param {CreateClaimPartnerRoleRequestDto} createClaimPartnerRoleRequestDto
379
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ createClaimPartnerRole: function (createClaimPartnerRoleRequestDto, authorization, options) {
384
+ return __awaiter(this, void 0, void 0, function () {
385
+ var localVarAxiosArgs;
386
+ return __generator(this, function (_a) {
387
+ switch (_a.label) {
388
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaimPartnerRole(createClaimPartnerRoleRequestDto, authorization, options)];
389
+ case 1:
390
+ localVarAxiosArgs = _a.sent();
391
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
392
+ }
393
+ });
394
+ });
395
+ },
396
+ /**
397
+ * Permanently deletes the claim partner role. Supply the unique code that was returned when you created the claim partner role and this will delete it.
398
+ * @summary Delete the claim partner role
399
+ * @param {string} code Unique identifier for the object.
400
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ deleteClaimPartnerRole: function (code, authorization, 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.deleteClaimPartnerRole(code, authorization, 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 the details of the claim partner role that was previously created. Supply the unique claim partner role code that was returned when you created it and Emil Api will return the corresponding claim partner role information.
419
+ * @summary Retrieve the claim partner role
420
+ * @param {string} code Unique identifier for the object.
421
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ getClaimPartnerRole: function (code, authorization, options) {
426
+ return __awaiter(this, void 0, void 0, function () {
427
+ var localVarAxiosArgs;
428
+ return __generator(this, function (_a) {
429
+ switch (_a.label) {
430
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimPartnerRole(code, authorization, options)];
431
+ case 1:
432
+ localVarAxiosArgs = _a.sent();
433
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
434
+ }
435
+ });
436
+ });
437
+ },
438
+ /**
439
+ * Returns a list of claim partner roles you have previously created. The claim partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
440
+ * @summary List claim partner roles
441
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
444
+ * @param {'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
445
+ * @param {'name' | 'productSlug'} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
446
+ * @param {'id' | 'name' | 'productSlug' | 'createdAt' | 'updatedAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
447
+ * @param {number} [expand] This entity has no expand parameters
448
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ listClaimPartnerRole: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
453
+ return __awaiter(this, void 0, void 0, function () {
454
+ var localVarAxiosArgs;
455
+ return __generator(this, function (_a) {
456
+ switch (_a.label) {
457
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimPartnerRole(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
458
+ case 1:
459
+ localVarAxiosArgs = _a.sent();
460
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
461
+ }
462
+ });
463
+ });
464
+ },
465
+ /**
466
+ * Updates the specified claim partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
467
+ * @summary Update the claim partner role
468
+ * @param {string} code Unique identifier for the object.
469
+ * @param {UpdateClaimPartnerRoleRequestDto} updateClaimPartnerRoleRequestDto
470
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ updateClaimPartnerRole: function (code, updateClaimPartnerRoleRequestDto, authorization, options) {
475
+ return __awaiter(this, void 0, void 0, function () {
476
+ var localVarAxiosArgs;
477
+ return __generator(this, function (_a) {
478
+ switch (_a.label) {
479
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaimPartnerRole(code, updateClaimPartnerRoleRequestDto, authorization, options)];
480
+ case 1:
481
+ localVarAxiosArgs = _a.sent();
482
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
483
+ }
484
+ });
485
+ });
486
+ },
487
+ };
488
+ };
489
+ exports.ClaimPartnerRolesApiFp = ClaimPartnerRolesApiFp;
490
+ /**
491
+ * ClaimPartnerRolesApi - factory interface
492
+ * @export
493
+ */
494
+ var ClaimPartnerRolesApiFactory = function (configuration, basePath, axios) {
495
+ var localVarFp = (0, exports.ClaimPartnerRolesApiFp)(configuration);
496
+ return {
497
+ /**
498
+ * This will create a claim partner role.
499
+ * @summary Create the claim partner role
500
+ * @param {CreateClaimPartnerRoleRequestDto} createClaimPartnerRoleRequestDto
501
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ createClaimPartnerRole: function (createClaimPartnerRoleRequestDto, authorization, options) {
506
+ return localVarFp.createClaimPartnerRole(createClaimPartnerRoleRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
507
+ },
508
+ /**
509
+ * Permanently deletes the claim partner role. Supply the unique code that was returned when you created the claim partner role and this will delete it.
510
+ * @summary Delete the claim partner role
511
+ * @param {string} code Unique identifier for the object.
512
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ deleteClaimPartnerRole: function (code, authorization, options) {
517
+ return localVarFp.deleteClaimPartnerRole(code, authorization, options).then(function (request) { return request(axios, basePath); });
518
+ },
519
+ /**
520
+ * Retrieves the details of the claim partner role that was previously created. Supply the unique claim partner role code that was returned when you created it and Emil Api will return the corresponding claim partner role information.
521
+ * @summary Retrieve the claim partner role
522
+ * @param {string} code Unique identifier for the object.
523
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ getClaimPartnerRole: function (code, authorization, options) {
528
+ return localVarFp.getClaimPartnerRole(code, authorization, options).then(function (request) { return request(axios, basePath); });
529
+ },
530
+ /**
531
+ * Returns a list of claim partner roles you have previously created. The claim partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
532
+ * @summary List claim partner roles
533
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
534
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
535
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
536
+ * @param {'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
537
+ * @param {'name' | 'productSlug'} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
538
+ * @param {'id' | 'name' | 'productSlug' | 'createdAt' | 'updatedAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
539
+ * @param {number} [expand] This entity has no expand parameters
540
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ */
544
+ listClaimPartnerRole: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
545
+ return localVarFp.listClaimPartnerRole(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
546
+ },
547
+ /**
548
+ * Updates the specified claim partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
549
+ * @summary Update the claim partner role
550
+ * @param {string} code Unique identifier for the object.
551
+ * @param {UpdateClaimPartnerRoleRequestDto} updateClaimPartnerRoleRequestDto
552
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ */
556
+ updateClaimPartnerRole: function (code, updateClaimPartnerRoleRequestDto, authorization, options) {
557
+ return localVarFp.updateClaimPartnerRole(code, updateClaimPartnerRoleRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
558
+ },
559
+ };
560
+ };
561
+ exports.ClaimPartnerRolesApiFactory = ClaimPartnerRolesApiFactory;
562
+ /**
563
+ * ClaimPartnerRolesApi - object-oriented interface
564
+ * @export
565
+ * @class ClaimPartnerRolesApi
566
+ * @extends {BaseAPI}
567
+ */
568
+ var ClaimPartnerRolesApi = /** @class */ (function (_super) {
569
+ __extends(ClaimPartnerRolesApi, _super);
570
+ function ClaimPartnerRolesApi() {
571
+ return _super !== null && _super.apply(this, arguments) || this;
572
+ }
573
+ /**
574
+ * This will create a claim partner role.
575
+ * @summary Create the claim partner role
576
+ * @param {ClaimPartnerRolesApiCreateClaimPartnerRoleRequest} requestParameters Request parameters.
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ * @memberof ClaimPartnerRolesApi
580
+ */
581
+ ClaimPartnerRolesApi.prototype.createClaimPartnerRole = function (requestParameters, options) {
582
+ var _this = this;
583
+ return (0, exports.ClaimPartnerRolesApiFp)(this.configuration).createClaimPartnerRole(requestParameters.createClaimPartnerRoleRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
584
+ };
585
+ /**
586
+ * Permanently deletes the claim partner role. Supply the unique code that was returned when you created the claim partner role and this will delete it.
587
+ * @summary Delete the claim partner role
588
+ * @param {ClaimPartnerRolesApiDeleteClaimPartnerRoleRequest} requestParameters Request parameters.
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ * @memberof ClaimPartnerRolesApi
592
+ */
593
+ ClaimPartnerRolesApi.prototype.deleteClaimPartnerRole = function (requestParameters, options) {
594
+ var _this = this;
595
+ return (0, exports.ClaimPartnerRolesApiFp)(this.configuration).deleteClaimPartnerRole(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
596
+ };
597
+ /**
598
+ * Retrieves the details of the claim partner role that was previously created. Supply the unique claim partner role code that was returned when you created it and Emil Api will return the corresponding claim partner role information.
599
+ * @summary Retrieve the claim partner role
600
+ * @param {ClaimPartnerRolesApiGetClaimPartnerRoleRequest} requestParameters Request parameters.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ * @memberof ClaimPartnerRolesApi
604
+ */
605
+ ClaimPartnerRolesApi.prototype.getClaimPartnerRole = function (requestParameters, options) {
606
+ var _this = this;
607
+ return (0, exports.ClaimPartnerRolesApiFp)(this.configuration).getClaimPartnerRole(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
+ };
609
+ /**
610
+ * Returns a list of claim partner roles you have previously created. The claim partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
611
+ * @summary List claim partner roles
612
+ * @param {ClaimPartnerRolesApiListClaimPartnerRoleRequest} requestParameters Request parameters.
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ * @memberof ClaimPartnerRolesApi
616
+ */
617
+ ClaimPartnerRolesApi.prototype.listClaimPartnerRole = function (requestParameters, options) {
618
+ var _this = this;
619
+ if (requestParameters === void 0) { requestParameters = {}; }
620
+ return (0, exports.ClaimPartnerRolesApiFp)(this.configuration).listClaimPartnerRole(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); });
621
+ };
622
+ /**
623
+ * Updates the specified claim partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
624
+ * @summary Update the claim partner role
625
+ * @param {ClaimPartnerRolesApiUpdateClaimPartnerRoleRequest} requestParameters Request parameters.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ * @memberof ClaimPartnerRolesApi
629
+ */
630
+ ClaimPartnerRolesApi.prototype.updateClaimPartnerRole = function (requestParameters, options) {
631
+ var _this = this;
632
+ return (0, exports.ClaimPartnerRolesApiFp)(this.configuration).updateClaimPartnerRole(requestParameters.code, requestParameters.updateClaimPartnerRoleRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
633
+ };
634
+ return ClaimPartnerRolesApi;
635
+ }(base_1.BaseAPI));
636
+ exports.ClaimPartnerRolesApi = ClaimPartnerRolesApi;