@emilgroup/claim-sdk 1.11.0 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) 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/base.ts +1 -0
  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 +16 -7
  15. package/dist/api/claim-statuses-api.js +15 -9
  16. package/dist/api/claims-api.d.ts +16 -7
  17. package/dist/api/claims-api.js +15 -9
  18. package/dist/api/settlements-api.d.ts +16 -7
  19. package/dist/api/settlements-api.js +15 -9
  20. package/dist/api.d.ts +2 -0
  21. package/dist/api.js +2 -0
  22. package/dist/base.js +1 -0
  23. package/dist/models/claim-class.d.ts +13 -1
  24. package/dist/models/claim-partner-class.d.ts +61 -0
  25. package/dist/models/claim-partner-class.js +15 -0
  26. package/dist/models/claim-partner-role-class.d.ts +54 -0
  27. package/dist/models/claim-partner-role-class.js +15 -0
  28. package/dist/models/claim-status-class.d.ts +1 -1
  29. package/dist/models/create-claim-partner-request-dto.d.ts +36 -0
  30. package/dist/models/create-claim-partner-request-dto.js +15 -0
  31. package/dist/models/create-claim-partner-response-class.d.ts +25 -0
  32. package/dist/models/create-claim-partner-response-class.js +15 -0
  33. package/dist/models/create-claim-partner-role-request-dto.d.ts +30 -0
  34. package/dist/models/create-claim-partner-role-request-dto.js +15 -0
  35. package/dist/models/create-claim-partner-role-response-class.d.ts +25 -0
  36. package/dist/models/create-claim-partner-role-response-class.js +15 -0
  37. package/dist/models/create-claim-request-dto.d.ts +9 -3
  38. package/dist/models/create-claim-status-request-dto.d.ts +1 -1
  39. package/dist/models/get-claim-partner-response-class.d.ts +25 -0
  40. package/dist/models/get-claim-partner-response-class.js +15 -0
  41. package/dist/models/get-claim-partner-role-response-class.d.ts +25 -0
  42. package/dist/models/get-claim-partner-role-response-class.js +15 -0
  43. package/dist/models/index.d.ts +12 -0
  44. package/dist/models/index.js +12 -0
  45. package/dist/models/inline-response200.d.ts +6 -6
  46. package/dist/models/inline-response503.d.ts +6 -6
  47. package/dist/models/list-claim-partner-roles-response-class.d.ts +31 -0
  48. package/dist/models/list-claim-partner-roles-response-class.js +15 -0
  49. package/dist/models/list-claim-partners-response-class.d.ts +31 -0
  50. package/dist/models/list-claim-partners-response-class.js +15 -0
  51. package/dist/models/patch-claim-request-dto.d.ts +8 -2
  52. package/dist/models/update-claim-partner-role-request-dto.d.ts +36 -0
  53. package/dist/models/update-claim-partner-role-request-dto.js +15 -0
  54. package/dist/models/update-claim-partner-role-response-class.d.ts +25 -0
  55. package/dist/models/update-claim-partner-role-response-class.js +15 -0
  56. package/dist/models/update-claim-request-dto.d.ts +8 -2
  57. package/models/claim-class.ts +13 -1
  58. package/models/claim-partner-class.ts +67 -0
  59. package/models/claim-partner-role-class.ts +60 -0
  60. package/models/claim-status-class.ts +1 -1
  61. package/models/create-claim-partner-request-dto.ts +42 -0
  62. package/models/create-claim-partner-response-class.ts +31 -0
  63. package/models/create-claim-partner-role-request-dto.ts +36 -0
  64. package/models/create-claim-partner-role-response-class.ts +31 -0
  65. package/models/create-claim-request-dto.ts +9 -3
  66. package/models/create-claim-status-request-dto.ts +1 -1
  67. package/models/get-claim-partner-response-class.ts +31 -0
  68. package/models/get-claim-partner-role-response-class.ts +31 -0
  69. package/models/index.ts +12 -0
  70. package/models/inline-response200.ts +6 -6
  71. package/models/inline-response503.ts +6 -6
  72. package/models/list-claim-partner-roles-response-class.ts +37 -0
  73. package/models/list-claim-partners-response-class.ts +37 -0
  74. package/models/patch-claim-request-dto.ts +8 -2
  75. package/models/update-claim-partner-role-request-dto.ts +42 -0
  76. package/models/update-claim-partner-role-response-class.ts +31 -0
  77. package/models/update-claim-request-dto.ts +8 -2
  78. package/package.json +1 -2
@@ -0,0 +1,570 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL ClaimService
5
+ * The EMIL ClaimService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateClaimPartnerRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateClaimPartnerResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetClaimPartnerResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListClaimPartnersResponseClass } from '../models';
31
+ /**
32
+ * ClaimPartnersApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const ClaimPartnersApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * This will create a claim partner.
39
+ * @summary Create the claim partner
40
+ * @param {string} claimCode Unique identifier for the claim object.
41
+ * @param {CreateClaimPartnerRequestDto} createClaimPartnerRequestDto
42
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ createClaimPartner: async (claimCode: string, createClaimPartnerRequestDto: CreateClaimPartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'claimCode' is not null or undefined
48
+ assertParamExists('createClaimPartner', 'claimCode', claimCode)
49
+ // verify required parameter 'createClaimPartnerRequestDto' is not null or undefined
50
+ assertParamExists('createClaimPartner', 'createClaimPartnerRequestDto', createClaimPartnerRequestDto)
51
+ const localVarPath = `/v1/claims/{claimCode}/partner`
52
+ .replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createClaimPartnerRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * Permanently deletes the claim partner. Supply the unique id that was returned when you created the claim partner and this will delete it.
90
+ * @summary Delete the claim partner
91
+ * @param {number} id
92
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ deleteClaimPartner: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'id' is not null or undefined
98
+ assertParamExists('deleteClaimPartner', 'id', id)
99
+ const localVarPath = `/v1/claim-partners/{id}`
100
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
+ let baseOptions;
104
+ let baseAccessToken;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ baseAccessToken = configuration.accessToken;
108
+ }
109
+
110
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
111
+ const localVarHeaderParameter = {} as any;
112
+ const localVarQueryParameter = {} as any;
113
+
114
+ // authentication bearer required
115
+ // http bearer authentication required
116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
+
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ }
121
+
122
+
123
+
124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
127
+
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ /**
134
+ * Retrieves the details of the claim partner that was previously created. Supply the unique claim partner id that was returned when you created it and Emil Api will return the corresponding claim partner information.
135
+ * @summary Retrieve the claim partner
136
+ * @param {number} id
137
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ getClaimPartnerRole: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ // verify required parameter 'id' is not null or undefined
143
+ assertParamExists('getClaimPartnerRole', 'id', id)
144
+ const localVarPath = `/v1/claim-partners/{id}`
145
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
178
+ /**
179
+ * Returns a list of claim partners you have previously created. The claim partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
180
+ * @summary List claim partners
181
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
182
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
183
+ * @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.
184
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
185
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [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.
186
+ * @param {'id' | '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.
187
+ * @param {'role' | 'partner'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
188
+ * @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.
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ listClaimPartners: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'partnerCode' | 'claimPartnerRoleCode' | 'claimCode', search?: 'partnerCode' | 'claimPartnerRoleCode' | 'claimCode', order?: 'id' | 'createdAt' | 'updatedAt', expand?: 'role' | 'partner', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
+ const localVarPath = `/v1/claim-partners`;
194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
196
+ let baseOptions;
197
+ let baseAccessToken;
198
+ if (configuration) {
199
+ baseOptions = configuration.baseOptions;
200
+ baseAccessToken = configuration.accessToken;
201
+ }
202
+
203
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
204
+ const localVarHeaderParameter = {} as any;
205
+ const localVarQueryParameter = {} as any;
206
+
207
+ // authentication bearer required
208
+ // http bearer authentication required
209
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
210
+
211
+ if (pageSize !== undefined) {
212
+ localVarQueryParameter['pageSize'] = pageSize;
213
+ }
214
+
215
+ if (pageToken !== undefined) {
216
+ localVarQueryParameter['pageToken'] = pageToken;
217
+ }
218
+
219
+ if (filter !== undefined) {
220
+ localVarQueryParameter['filter'] = filter;
221
+ }
222
+
223
+ if (search !== undefined) {
224
+ localVarQueryParameter['search'] = search;
225
+ }
226
+
227
+ if (order !== undefined) {
228
+ localVarQueryParameter['order'] = order;
229
+ }
230
+
231
+ if (expand !== undefined) {
232
+ localVarQueryParameter['expand'] = expand;
233
+ }
234
+
235
+ if (filters !== undefined) {
236
+ localVarQueryParameter['filters'] = filters;
237
+ }
238
+
239
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
+ }
242
+
243
+
244
+
245
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
248
+
249
+ return {
250
+ url: toPathString(localVarUrlObj),
251
+ options: localVarRequestOptions,
252
+ };
253
+ },
254
+ }
255
+ };
256
+
257
+ /**
258
+ * ClaimPartnersApi - functional programming interface
259
+ * @export
260
+ */
261
+ export const ClaimPartnersApiFp = function(configuration?: Configuration) {
262
+ const localVarAxiosParamCreator = ClaimPartnersApiAxiosParamCreator(configuration)
263
+ return {
264
+ /**
265
+ * This will create a claim partner.
266
+ * @summary Create the claim partner
267
+ * @param {string} claimCode Unique identifier for the claim object.
268
+ * @param {CreateClaimPartnerRequestDto} createClaimPartnerRequestDto
269
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ async createClaimPartner(claimCode: string, createClaimPartnerRequestDto: CreateClaimPartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateClaimPartnerResponseClass>> {
274
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimPartner(claimCode, createClaimPartnerRequestDto, authorization, options);
275
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
276
+ },
277
+ /**
278
+ * Permanently deletes the claim partner. Supply the unique id that was returned when you created the claim partner and this will delete it.
279
+ * @summary Delete the claim partner
280
+ * @param {number} id
281
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ async deleteClaimPartner(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimPartner(id, authorization, options);
287
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
288
+ },
289
+ /**
290
+ * Retrieves the details of the claim partner that was previously created. Supply the unique claim partner id that was returned when you created it and Emil Api will return the corresponding claim partner information.
291
+ * @summary Retrieve the claim partner
292
+ * @param {number} id
293
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ async getClaimPartnerRole(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClaimPartnerResponseClass>> {
298
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimPartnerRole(id, authorization, options);
299
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
300
+ },
301
+ /**
302
+ * Returns a list of claim partners you have previously created. The claim partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
303
+ * @summary List claim partners
304
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
305
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
306
+ * @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.
307
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
308
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [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.
309
+ * @param {'id' | '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.
310
+ * @param {'role' | 'partner'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
311
+ * @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.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ async listClaimPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'partnerCode' | 'claimPartnerRoleCode' | 'claimCode', search?: 'partnerCode' | 'claimPartnerRoleCode' | 'claimCode', order?: 'id' | 'createdAt' | 'updatedAt', expand?: 'role' | 'partner', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimPartnersResponseClass>> {
316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
317
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
318
+ },
319
+ }
320
+ };
321
+
322
+ /**
323
+ * ClaimPartnersApi - factory interface
324
+ * @export
325
+ */
326
+ export const ClaimPartnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
327
+ const localVarFp = ClaimPartnersApiFp(configuration)
328
+ return {
329
+ /**
330
+ * This will create a claim partner.
331
+ * @summary Create the claim partner
332
+ * @param {string} claimCode Unique identifier for the claim object.
333
+ * @param {CreateClaimPartnerRequestDto} createClaimPartnerRequestDto
334
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ createClaimPartner(claimCode: string, createClaimPartnerRequestDto: CreateClaimPartnerRequestDto, authorization?: string, options?: any): AxiosPromise<CreateClaimPartnerResponseClass> {
339
+ return localVarFp.createClaimPartner(claimCode, createClaimPartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
340
+ },
341
+ /**
342
+ * Permanently deletes the claim partner. Supply the unique id that was returned when you created the claim partner and this will delete it.
343
+ * @summary Delete the claim partner
344
+ * @param {number} id
345
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ deleteClaimPartner(id: number, authorization?: string, options?: any): AxiosPromise<void> {
350
+ return localVarFp.deleteClaimPartner(id, authorization, options).then((request) => request(axios, basePath));
351
+ },
352
+ /**
353
+ * Retrieves the details of the claim partner that was previously created. Supply the unique claim partner id that was returned when you created it and Emil Api will return the corresponding claim partner information.
354
+ * @summary Retrieve the claim partner
355
+ * @param {number} id
356
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ getClaimPartnerRole(id: number, authorization?: string, options?: any): AxiosPromise<GetClaimPartnerResponseClass> {
361
+ return localVarFp.getClaimPartnerRole(id, authorization, options).then((request) => request(axios, basePath));
362
+ },
363
+ /**
364
+ * Returns a list of claim partners you have previously created. The claim partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
365
+ * @summary List claim partners
366
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @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.
369
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
370
+ * @param {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'} [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.
371
+ * @param {'id' | '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.
372
+ * @param {'role' | 'partner'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
373
+ * @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.
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ listClaimPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'partnerCode' | 'claimPartnerRoleCode' | 'claimCode', search?: 'partnerCode' | 'claimPartnerRoleCode' | 'claimCode', order?: 'id' | 'createdAt' | 'updatedAt', expand?: 'role' | 'partner', filters?: any, options?: any): AxiosPromise<ListClaimPartnersResponseClass> {
378
+ return localVarFp.listClaimPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
379
+ },
380
+ };
381
+ };
382
+
383
+ /**
384
+ * Request parameters for createClaimPartner operation in ClaimPartnersApi.
385
+ * @export
386
+ * @interface ClaimPartnersApiCreateClaimPartnerRequest
387
+ */
388
+ export interface ClaimPartnersApiCreateClaimPartnerRequest {
389
+ /**
390
+ * Unique identifier for the claim object.
391
+ * @type {string}
392
+ * @memberof ClaimPartnersApiCreateClaimPartner
393
+ */
394
+ readonly claimCode: string
395
+
396
+ /**
397
+ *
398
+ * @type {CreateClaimPartnerRequestDto}
399
+ * @memberof ClaimPartnersApiCreateClaimPartner
400
+ */
401
+ readonly createClaimPartnerRequestDto: CreateClaimPartnerRequestDto
402
+
403
+ /**
404
+ * Bearer Token: provided by the login endpoint under the name accessToken.
405
+ * @type {string}
406
+ * @memberof ClaimPartnersApiCreateClaimPartner
407
+ */
408
+ readonly authorization?: string
409
+ }
410
+
411
+ /**
412
+ * Request parameters for deleteClaimPartner operation in ClaimPartnersApi.
413
+ * @export
414
+ * @interface ClaimPartnersApiDeleteClaimPartnerRequest
415
+ */
416
+ export interface ClaimPartnersApiDeleteClaimPartnerRequest {
417
+ /**
418
+ *
419
+ * @type {number}
420
+ * @memberof ClaimPartnersApiDeleteClaimPartner
421
+ */
422
+ readonly id: number
423
+
424
+ /**
425
+ * Bearer Token: provided by the login endpoint under the name accessToken.
426
+ * @type {string}
427
+ * @memberof ClaimPartnersApiDeleteClaimPartner
428
+ */
429
+ readonly authorization?: string
430
+ }
431
+
432
+ /**
433
+ * Request parameters for getClaimPartnerRole operation in ClaimPartnersApi.
434
+ * @export
435
+ * @interface ClaimPartnersApiGetClaimPartnerRoleRequest
436
+ */
437
+ export interface ClaimPartnersApiGetClaimPartnerRoleRequest {
438
+ /**
439
+ *
440
+ * @type {number}
441
+ * @memberof ClaimPartnersApiGetClaimPartnerRole
442
+ */
443
+ readonly id: number
444
+
445
+ /**
446
+ * Bearer Token: provided by the login endpoint under the name accessToken.
447
+ * @type {string}
448
+ * @memberof ClaimPartnersApiGetClaimPartnerRole
449
+ */
450
+ readonly authorization?: string
451
+ }
452
+
453
+ /**
454
+ * Request parameters for listClaimPartners operation in ClaimPartnersApi.
455
+ * @export
456
+ * @interface ClaimPartnersApiListClaimPartnersRequest
457
+ */
458
+ export interface ClaimPartnersApiListClaimPartnersRequest {
459
+ /**
460
+ * Bearer Token: provided by the login endpoint under the name accessToken.
461
+ * @type {string}
462
+ * @memberof ClaimPartnersApiListClaimPartners
463
+ */
464
+ readonly authorization?: string
465
+
466
+ /**
467
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
468
+ * @type {any}
469
+ * @memberof ClaimPartnersApiListClaimPartners
470
+ */
471
+ readonly pageSize?: any
472
+
473
+ /**
474
+ * 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.
475
+ * @type {any}
476
+ * @memberof ClaimPartnersApiListClaimPartners
477
+ */
478
+ readonly pageToken?: any
479
+
480
+ /**
481
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
482
+ * @type {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'}
483
+ * @memberof ClaimPartnersApiListClaimPartners
484
+ */
485
+ readonly filter?: 'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'
486
+
487
+ /**
488
+ * 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.
489
+ * @type {'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'}
490
+ * @memberof ClaimPartnersApiListClaimPartners
491
+ */
492
+ readonly search?: 'partnerCode' | 'claimPartnerRoleCode' | 'claimCode'
493
+
494
+ /**
495
+ * 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.
496
+ * @type {'id' | 'createdAt' | 'updatedAt'}
497
+ * @memberof ClaimPartnersApiListClaimPartners
498
+ */
499
+ readonly order?: 'id' | 'createdAt' | 'updatedAt'
500
+
501
+ /**
502
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
503
+ * @type {'role' | 'partner'}
504
+ * @memberof ClaimPartnersApiListClaimPartners
505
+ */
506
+ readonly expand?: 'role' | 'partner'
507
+
508
+ /**
509
+ * 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.
510
+ * @type {any}
511
+ * @memberof ClaimPartnersApiListClaimPartners
512
+ */
513
+ readonly filters?: any
514
+ }
515
+
516
+ /**
517
+ * ClaimPartnersApi - object-oriented interface
518
+ * @export
519
+ * @class ClaimPartnersApi
520
+ * @extends {BaseAPI}
521
+ */
522
+ export class ClaimPartnersApi extends BaseAPI {
523
+ /**
524
+ * This will create a claim partner.
525
+ * @summary Create the claim partner
526
+ * @param {ClaimPartnersApiCreateClaimPartnerRequest} requestParameters Request parameters.
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ * @memberof ClaimPartnersApi
530
+ */
531
+ public createClaimPartner(requestParameters: ClaimPartnersApiCreateClaimPartnerRequest, options?: AxiosRequestConfig) {
532
+ return ClaimPartnersApiFp(this.configuration).createClaimPartner(requestParameters.claimCode, requestParameters.createClaimPartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
533
+ }
534
+
535
+ /**
536
+ * Permanently deletes the claim partner. Supply the unique id that was returned when you created the claim partner and this will delete it.
537
+ * @summary Delete the claim partner
538
+ * @param {ClaimPartnersApiDeleteClaimPartnerRequest} requestParameters Request parameters.
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ * @memberof ClaimPartnersApi
542
+ */
543
+ public deleteClaimPartner(requestParameters: ClaimPartnersApiDeleteClaimPartnerRequest, options?: AxiosRequestConfig) {
544
+ return ClaimPartnersApiFp(this.configuration).deleteClaimPartner(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
545
+ }
546
+
547
+ /**
548
+ * Retrieves the details of the claim partner that was previously created. Supply the unique claim partner id that was returned when you created it and Emil Api will return the corresponding claim partner information.
549
+ * @summary Retrieve the claim partner
550
+ * @param {ClaimPartnersApiGetClaimPartnerRoleRequest} requestParameters Request parameters.
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ * @memberof ClaimPartnersApi
554
+ */
555
+ public getClaimPartnerRole(requestParameters: ClaimPartnersApiGetClaimPartnerRoleRequest, options?: AxiosRequestConfig) {
556
+ return ClaimPartnersApiFp(this.configuration).getClaimPartnerRole(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
557
+ }
558
+
559
+ /**
560
+ * Returns a list of claim partners you have previously created. The claim partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
561
+ * @summary List claim partners
562
+ * @param {ClaimPartnersApiListClaimPartnersRequest} requestParameters Request parameters.
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ * @memberof ClaimPartnersApi
566
+ */
567
+ public listClaimPartners(requestParameters: ClaimPartnersApiListClaimPartnersRequest = {}, options?: AxiosRequestConfig) {
568
+ return ClaimPartnersApiFp(this.configuration).listClaimPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
569
+ }
570
+ }