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