@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,681 @@
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 { CreateClaimPartnerRoleRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateClaimPartnerRoleResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetClaimPartnerRoleResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListClaimPartnerRolesResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateClaimPartnerRoleRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateClaimPartnerRoleResponseClass } from '../models';
35
+ // URLSearchParams not necessarily used
36
+ // @ts-ignore
37
+ import { URL, URLSearchParams } from 'url';
38
+ const FormData = require('form-data');
39
+ /**
40
+ * ClaimPartnerRolesApi - axios parameter creator
41
+ * @export
42
+ */
43
+ export const ClaimPartnerRolesApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ * This will create a claim partner role.
47
+ * @summary Create the claim partner role
48
+ * @param {CreateClaimPartnerRoleRequestDto} createClaimPartnerRoleRequestDto
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ createClaimPartnerRole: async (createClaimPartnerRoleRequestDto: CreateClaimPartnerRoleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ // verify required parameter 'createClaimPartnerRoleRequestDto' is not null or undefined
55
+ assertParamExists('createClaimPartnerRole', 'createClaimPartnerRoleRequestDto', createClaimPartnerRoleRequestDto)
56
+ const localVarPath = `/v1/claim-partner-roles`;
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(createClaimPartnerRoleRequestDto, localVarRequestOptions, configuration)
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
92
+ /**
93
+ * 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.
94
+ * @summary Delete the claim partner role
95
+ * @param {string} code Unique identifier for the object.
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
+ deleteClaimPartnerRole: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteClaimPartnerRole', 'code', code)
103
+ const localVarPath = `/v1/claim-partner-roles/{code}`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
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 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.
139
+ * @summary Retrieve the claim partner role
140
+ * @param {string} code Unique identifier for the object.
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 (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'code' is not null or undefined
147
+ assertParamExists('getClaimPartnerRole', 'code', code)
148
+ const localVarPath = `/v1/claim-partner-roles/{code}`
149
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
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 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.
184
+ * @summary List claim partner roles
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 {'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
189
+ * @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.
190
+ * @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.
191
+ * @param {number} [expand] This entity has no expand parameters
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
+ listClaimPartnerRole: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'name' | 'productSlug', search?: 'name' | 'productSlug', order?: 'id' | 'name' | 'productSlug' | 'createdAt' | 'updatedAt', expand?: number, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ const localVarPath = `/v1/claim-partner-roles`;
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
+ * Updates the specified claim partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
260
+ * @summary Update the claim partner role
261
+ * @param {string} code Unique identifier for the object.
262
+ * @param {UpdateClaimPartnerRoleRequestDto} updateClaimPartnerRoleRequestDto
263
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ updateClaimPartnerRole: async (code: string, updateClaimPartnerRoleRequestDto: UpdateClaimPartnerRoleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
268
+ // verify required parameter 'code' is not null or undefined
269
+ assertParamExists('updateClaimPartnerRole', 'code', code)
270
+ // verify required parameter 'updateClaimPartnerRoleRequestDto' is not null or undefined
271
+ assertParamExists('updateClaimPartnerRole', 'updateClaimPartnerRoleRequestDto', updateClaimPartnerRoleRequestDto)
272
+ const localVarPath = `/v1/claim-partner-roles/{code}`
273
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
274
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
275
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
276
+ let baseOptions;
277
+ let baseAccessToken;
278
+ if (configuration) {
279
+ baseOptions = configuration.baseOptions;
280
+ baseAccessToken = configuration.accessToken;
281
+ }
282
+
283
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
284
+ const localVarHeaderParameter = {} as any;
285
+ const localVarQueryParameter = {} as any;
286
+
287
+ // authentication bearer required
288
+ // http bearer authentication required
289
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
290
+
291
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
292
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
+ }
294
+
295
+
296
+
297
+ localVarHeaderParameter['Content-Type'] = 'application/json';
298
+
299
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
301
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
302
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClaimPartnerRoleRequestDto, localVarRequestOptions, configuration)
303
+
304
+ return {
305
+ url: toPathString(localVarUrlObj),
306
+ options: localVarRequestOptions,
307
+ };
308
+ },
309
+ }
310
+ };
311
+
312
+ /**
313
+ * ClaimPartnerRolesApi - functional programming interface
314
+ * @export
315
+ */
316
+ export const ClaimPartnerRolesApiFp = function(configuration?: Configuration) {
317
+ const localVarAxiosParamCreator = ClaimPartnerRolesApiAxiosParamCreator(configuration)
318
+ return {
319
+ /**
320
+ * This will create a claim partner role.
321
+ * @summary Create the claim partner role
322
+ * @param {CreateClaimPartnerRoleRequestDto} createClaimPartnerRoleRequestDto
323
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ async createClaimPartnerRole(createClaimPartnerRoleRequestDto: CreateClaimPartnerRoleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateClaimPartnerRoleResponseClass>> {
328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimPartnerRole(createClaimPartnerRoleRequestDto, authorization, options);
329
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
+ },
331
+ /**
332
+ * 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.
333
+ * @summary Delete the claim partner role
334
+ * @param {string} code Unique identifier for the object.
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ async deleteClaimPartnerRole(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimPartnerRole(code, authorization, options);
341
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
342
+ },
343
+ /**
344
+ * 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.
345
+ * @summary Retrieve the claim partner role
346
+ * @param {string} code Unique identifier for the object.
347
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ async getClaimPartnerRole(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClaimPartnerRoleResponseClass>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimPartnerRole(code, authorization, options);
353
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
354
+ },
355
+ /**
356
+ * 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.
357
+ * @summary List claim partner roles
358
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
360
+ * @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.
361
+ * @param {'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
362
+ * @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.
363
+ * @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.
364
+ * @param {number} [expand] This entity has no expand parameters
365
+ * @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.
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ async listClaimPartnerRole(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'name' | 'productSlug', search?: 'name' | 'productSlug', order?: 'id' | 'name' | 'productSlug' | 'createdAt' | 'updatedAt', expand?: number, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimPartnerRolesResponseClass>> {
370
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimPartnerRole(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
371
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
372
+ },
373
+ /**
374
+ * Updates the specified claim partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
375
+ * @summary Update the claim partner role
376
+ * @param {string} code Unique identifier for the object.
377
+ * @param {UpdateClaimPartnerRoleRequestDto} updateClaimPartnerRoleRequestDto
378
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ async updateClaimPartnerRole(code: string, updateClaimPartnerRoleRequestDto: UpdateClaimPartnerRoleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateClaimPartnerRoleResponseClass>> {
383
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaimPartnerRole(code, updateClaimPartnerRoleRequestDto, authorization, options);
384
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
385
+ },
386
+ }
387
+ };
388
+
389
+ /**
390
+ * ClaimPartnerRolesApi - factory interface
391
+ * @export
392
+ */
393
+ export const ClaimPartnerRolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
394
+ const localVarFp = ClaimPartnerRolesApiFp(configuration)
395
+ return {
396
+ /**
397
+ * This will create a claim partner role.
398
+ * @summary Create the claim partner role
399
+ * @param {CreateClaimPartnerRoleRequestDto} createClaimPartnerRoleRequestDto
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
+ createClaimPartnerRole(createClaimPartnerRoleRequestDto: CreateClaimPartnerRoleRequestDto, authorization?: string, options?: any): AxiosPromise<CreateClaimPartnerRoleResponseClass> {
405
+ return localVarFp.createClaimPartnerRole(createClaimPartnerRoleRequestDto, authorization, options).then((request) => request(axios, basePath));
406
+ },
407
+ /**
408
+ * 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.
409
+ * @summary Delete the claim partner role
410
+ * @param {string} code Unique identifier for the object.
411
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ deleteClaimPartnerRole(code: string, authorization?: string, options?: any): AxiosPromise<void> {
416
+ return localVarFp.deleteClaimPartnerRole(code, authorization, options).then((request) => request(axios, basePath));
417
+ },
418
+ /**
419
+ * 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.
420
+ * @summary Retrieve the claim partner role
421
+ * @param {string} code Unique identifier for the object.
422
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ getClaimPartnerRole(code: string, authorization?: string, options?: any): AxiosPromise<GetClaimPartnerRoleResponseClass> {
427
+ return localVarFp.getClaimPartnerRole(code, authorization, options).then((request) => request(axios, basePath));
428
+ },
429
+ /**
430
+ * 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.
431
+ * @summary List claim partner roles
432
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
434
+ * @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.
435
+ * @param {'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
436
+ * @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.
437
+ * @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.
438
+ * @param {number} [expand] This entity has no expand parameters
439
+ * @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.
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ listClaimPartnerRole(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'name' | 'productSlug', search?: 'name' | 'productSlug', order?: 'id' | 'name' | 'productSlug' | 'createdAt' | 'updatedAt', expand?: number, filters?: any, options?: any): AxiosPromise<ListClaimPartnerRolesResponseClass> {
444
+ return localVarFp.listClaimPartnerRole(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
445
+ },
446
+ /**
447
+ * Updates the specified claim partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
448
+ * @summary Update the claim partner role
449
+ * @param {string} code Unique identifier for the object.
450
+ * @param {UpdateClaimPartnerRoleRequestDto} updateClaimPartnerRoleRequestDto
451
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ updateClaimPartnerRole(code: string, updateClaimPartnerRoleRequestDto: UpdateClaimPartnerRoleRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateClaimPartnerRoleResponseClass> {
456
+ return localVarFp.updateClaimPartnerRole(code, updateClaimPartnerRoleRequestDto, authorization, options).then((request) => request(axios, basePath));
457
+ },
458
+ };
459
+ };
460
+
461
+ /**
462
+ * Request parameters for createClaimPartnerRole operation in ClaimPartnerRolesApi.
463
+ * @export
464
+ * @interface ClaimPartnerRolesApiCreateClaimPartnerRoleRequest
465
+ */
466
+ export interface ClaimPartnerRolesApiCreateClaimPartnerRoleRequest {
467
+ /**
468
+ *
469
+ * @type {CreateClaimPartnerRoleRequestDto}
470
+ * @memberof ClaimPartnerRolesApiCreateClaimPartnerRole
471
+ */
472
+ readonly createClaimPartnerRoleRequestDto: CreateClaimPartnerRoleRequestDto
473
+
474
+ /**
475
+ * Bearer Token: provided by the login endpoint under the name accessToken.
476
+ * @type {string}
477
+ * @memberof ClaimPartnerRolesApiCreateClaimPartnerRole
478
+ */
479
+ readonly authorization?: string
480
+ }
481
+
482
+ /**
483
+ * Request parameters for deleteClaimPartnerRole operation in ClaimPartnerRolesApi.
484
+ * @export
485
+ * @interface ClaimPartnerRolesApiDeleteClaimPartnerRoleRequest
486
+ */
487
+ export interface ClaimPartnerRolesApiDeleteClaimPartnerRoleRequest {
488
+ /**
489
+ * Unique identifier for the object.
490
+ * @type {string}
491
+ * @memberof ClaimPartnerRolesApiDeleteClaimPartnerRole
492
+ */
493
+ readonly code: string
494
+
495
+ /**
496
+ * Bearer Token: provided by the login endpoint under the name accessToken.
497
+ * @type {string}
498
+ * @memberof ClaimPartnerRolesApiDeleteClaimPartnerRole
499
+ */
500
+ readonly authorization?: string
501
+ }
502
+
503
+ /**
504
+ * Request parameters for getClaimPartnerRole operation in ClaimPartnerRolesApi.
505
+ * @export
506
+ * @interface ClaimPartnerRolesApiGetClaimPartnerRoleRequest
507
+ */
508
+ export interface ClaimPartnerRolesApiGetClaimPartnerRoleRequest {
509
+ /**
510
+ * Unique identifier for the object.
511
+ * @type {string}
512
+ * @memberof ClaimPartnerRolesApiGetClaimPartnerRole
513
+ */
514
+ readonly code: string
515
+
516
+ /**
517
+ * Bearer Token: provided by the login endpoint under the name accessToken.
518
+ * @type {string}
519
+ * @memberof ClaimPartnerRolesApiGetClaimPartnerRole
520
+ */
521
+ readonly authorization?: string
522
+ }
523
+
524
+ /**
525
+ * Request parameters for listClaimPartnerRole operation in ClaimPartnerRolesApi.
526
+ * @export
527
+ * @interface ClaimPartnerRolesApiListClaimPartnerRoleRequest
528
+ */
529
+ export interface ClaimPartnerRolesApiListClaimPartnerRoleRequest {
530
+ /**
531
+ * Bearer Token: provided by the login endpoint under the name accessToken.
532
+ * @type {string}
533
+ * @memberof ClaimPartnerRolesApiListClaimPartnerRole
534
+ */
535
+ readonly authorization?: string
536
+
537
+ /**
538
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
539
+ * @type {any}
540
+ * @memberof ClaimPartnerRolesApiListClaimPartnerRole
541
+ */
542
+ readonly pageSize?: any
543
+
544
+ /**
545
+ * 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.
546
+ * @type {any}
547
+ * @memberof ClaimPartnerRolesApiListClaimPartnerRole
548
+ */
549
+ readonly pageToken?: any
550
+
551
+ /**
552
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
553
+ * @type {'name' | 'productSlug'}
554
+ * @memberof ClaimPartnerRolesApiListClaimPartnerRole
555
+ */
556
+ readonly filter?: 'name' | 'productSlug'
557
+
558
+ /**
559
+ * 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.
560
+ * @type {'name' | 'productSlug'}
561
+ * @memberof ClaimPartnerRolesApiListClaimPartnerRole
562
+ */
563
+ readonly search?: 'name' | 'productSlug'
564
+
565
+ /**
566
+ * 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.
567
+ * @type {'id' | 'name' | 'productSlug' | 'createdAt' | 'updatedAt'}
568
+ * @memberof ClaimPartnerRolesApiListClaimPartnerRole
569
+ */
570
+ readonly order?: 'id' | 'name' | 'productSlug' | 'createdAt' | 'updatedAt'
571
+
572
+ /**
573
+ * This entity has no expand parameters
574
+ * @type {number}
575
+ * @memberof ClaimPartnerRolesApiListClaimPartnerRole
576
+ */
577
+ readonly expand?: number
578
+
579
+ /**
580
+ * 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.
581
+ * @type {any}
582
+ * @memberof ClaimPartnerRolesApiListClaimPartnerRole
583
+ */
584
+ readonly filters?: any
585
+ }
586
+
587
+ /**
588
+ * Request parameters for updateClaimPartnerRole operation in ClaimPartnerRolesApi.
589
+ * @export
590
+ * @interface ClaimPartnerRolesApiUpdateClaimPartnerRoleRequest
591
+ */
592
+ export interface ClaimPartnerRolesApiUpdateClaimPartnerRoleRequest {
593
+ /**
594
+ * Unique identifier for the object.
595
+ * @type {string}
596
+ * @memberof ClaimPartnerRolesApiUpdateClaimPartnerRole
597
+ */
598
+ readonly code: string
599
+
600
+ /**
601
+ *
602
+ * @type {UpdateClaimPartnerRoleRequestDto}
603
+ * @memberof ClaimPartnerRolesApiUpdateClaimPartnerRole
604
+ */
605
+ readonly updateClaimPartnerRoleRequestDto: UpdateClaimPartnerRoleRequestDto
606
+
607
+ /**
608
+ * Bearer Token: provided by the login endpoint under the name accessToken.
609
+ * @type {string}
610
+ * @memberof ClaimPartnerRolesApiUpdateClaimPartnerRole
611
+ */
612
+ readonly authorization?: string
613
+ }
614
+
615
+ /**
616
+ * ClaimPartnerRolesApi - object-oriented interface
617
+ * @export
618
+ * @class ClaimPartnerRolesApi
619
+ * @extends {BaseAPI}
620
+ */
621
+ export class ClaimPartnerRolesApi extends BaseAPI {
622
+ /**
623
+ * This will create a claim partner role.
624
+ * @summary Create the claim partner role
625
+ * @param {ClaimPartnerRolesApiCreateClaimPartnerRoleRequest} requestParameters Request parameters.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ * @memberof ClaimPartnerRolesApi
629
+ */
630
+ public createClaimPartnerRole(requestParameters: ClaimPartnerRolesApiCreateClaimPartnerRoleRequest, options?: AxiosRequestConfig) {
631
+ return ClaimPartnerRolesApiFp(this.configuration).createClaimPartnerRole(requestParameters.createClaimPartnerRoleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
632
+ }
633
+
634
+ /**
635
+ * 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.
636
+ * @summary Delete the claim partner role
637
+ * @param {ClaimPartnerRolesApiDeleteClaimPartnerRoleRequest} requestParameters Request parameters.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ * @memberof ClaimPartnerRolesApi
641
+ */
642
+ public deleteClaimPartnerRole(requestParameters: ClaimPartnerRolesApiDeleteClaimPartnerRoleRequest, options?: AxiosRequestConfig) {
643
+ return ClaimPartnerRolesApiFp(this.configuration).deleteClaimPartnerRole(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
644
+ }
645
+
646
+ /**
647
+ * 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.
648
+ * @summary Retrieve the claim partner role
649
+ * @param {ClaimPartnerRolesApiGetClaimPartnerRoleRequest} requestParameters Request parameters.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ * @memberof ClaimPartnerRolesApi
653
+ */
654
+ public getClaimPartnerRole(requestParameters: ClaimPartnerRolesApiGetClaimPartnerRoleRequest, options?: AxiosRequestConfig) {
655
+ return ClaimPartnerRolesApiFp(this.configuration).getClaimPartnerRole(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
656
+ }
657
+
658
+ /**
659
+ * 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.
660
+ * @summary List claim partner roles
661
+ * @param {ClaimPartnerRolesApiListClaimPartnerRoleRequest} requestParameters Request parameters.
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ * @memberof ClaimPartnerRolesApi
665
+ */
666
+ public listClaimPartnerRole(requestParameters: ClaimPartnerRolesApiListClaimPartnerRoleRequest = {}, options?: AxiosRequestConfig) {
667
+ return ClaimPartnerRolesApiFp(this.configuration).listClaimPartnerRole(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
668
+ }
669
+
670
+ /**
671
+ * Updates the specified claim partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
672
+ * @summary Update the claim partner role
673
+ * @param {ClaimPartnerRolesApiUpdateClaimPartnerRoleRequest} requestParameters Request parameters.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ * @memberof ClaimPartnerRolesApi
677
+ */
678
+ public updateClaimPartnerRole(requestParameters: ClaimPartnerRolesApiUpdateClaimPartnerRoleRequest, options?: AxiosRequestConfig) {
679
+ return ClaimPartnerRolesApiFp(this.configuration).updateClaimPartnerRole(requestParameters.code, requestParameters.updateClaimPartnerRoleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
680
+ }
681
+ }