@emilgroup/claim-sdk-node 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +182 -61
  4. package/api/settlements-api.ts +760 -0
  5. package/api.ts +3 -1
  6. package/base.ts +1 -1
  7. package/common.ts +2 -2
  8. package/configuration.ts +1 -1
  9. package/dist/api/claims-api.d.ts +110 -50
  10. package/dist/api/claims-api.js +145 -44
  11. package/dist/api/settlements-api.d.ts +430 -0
  12. package/dist/api/settlements-api.js +681 -0
  13. package/dist/api.d.ts +2 -1
  14. package/dist/api.js +2 -1
  15. package/dist/base.d.ts +1 -1
  16. package/dist/base.js +1 -1
  17. package/dist/common.d.ts +2 -2
  18. package/dist/common.js +1 -1
  19. package/dist/configuration.d.ts +1 -1
  20. package/dist/configuration.js +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/models/claim-class.d.ts +144 -0
  24. package/dist/models/claim-class.js +15 -0
  25. package/dist/models/create-claim-request-dto.d.ts +7 -7
  26. package/dist/models/create-claim-request-dto.js +1 -1
  27. package/dist/models/create-claim-response-class.d.ts +25 -0
  28. package/dist/models/create-claim-response-class.js +15 -0
  29. package/dist/models/create-settlement-request-dto.d.ts +48 -0
  30. package/dist/models/create-settlement-request-dto.js +15 -0
  31. package/dist/models/create-settlement-response-class.d.ts +25 -0
  32. package/dist/models/create-settlement-response-class.js +15 -0
  33. package/dist/models/delete-response-class.d.ts +24 -0
  34. package/dist/models/delete-response-class.js +15 -0
  35. package/dist/models/delete-settlement-request-dto.d.ts +30 -0
  36. package/dist/models/delete-settlement-request-dto.js +15 -0
  37. package/dist/models/get-claim-response-class.d.ts +25 -0
  38. package/dist/models/get-claim-response-class.js +15 -0
  39. package/dist/models/get-settlement-response-class.d.ts +25 -0
  40. package/dist/models/get-settlement-response-class.js +15 -0
  41. package/dist/models/index.d.ts +14 -0
  42. package/dist/models/index.js +14 -0
  43. package/dist/models/list-claim-response-class.d.ts +31 -0
  44. package/dist/models/list-claim-response-class.js +15 -0
  45. package/dist/models/list-settlements-response-class.d.ts +31 -0
  46. package/dist/models/list-settlements-response-class.js +15 -0
  47. package/dist/models/settlement-class.d.ts +72 -0
  48. package/dist/models/settlement-class.js +15 -0
  49. package/dist/models/update-claim-request-dto.d.ts +7 -7
  50. package/dist/models/update-claim-request-dto.js +1 -1
  51. package/dist/models/update-claim-response-class.d.ts +25 -0
  52. package/dist/models/update-claim-response-class.js +15 -0
  53. package/dist/models/update-settlement-request-dto.d.ts +48 -0
  54. package/dist/models/update-settlement-request-dto.js +15 -0
  55. package/dist/models/update-settlement-response-class.d.ts +25 -0
  56. package/dist/models/update-settlement-response-class.js +15 -0
  57. package/index.ts +1 -1
  58. package/models/claim-class.ts +150 -0
  59. package/models/create-claim-request-dto.ts +7 -7
  60. package/models/create-claim-response-class.ts +31 -0
  61. package/models/create-settlement-request-dto.ts +54 -0
  62. package/models/create-settlement-response-class.ts +31 -0
  63. package/models/delete-response-class.ts +30 -0
  64. package/models/delete-settlement-request-dto.ts +36 -0
  65. package/models/get-claim-response-class.ts +31 -0
  66. package/models/get-settlement-response-class.ts +31 -0
  67. package/models/index.ts +14 -0
  68. package/models/list-claim-response-class.ts +37 -0
  69. package/models/list-settlements-response-class.ts +37 -0
  70. package/models/settlement-class.ts +78 -0
  71. package/models/update-claim-request-dto.ts +7 -7
  72. package/models/update-claim-response-class.ts +31 -0
  73. package/models/update-settlement-request-dto.ts +54 -0
  74. package/models/update-settlement-response-class.ts +31 -0
  75. package/package.json +1 -1
@@ -4,13 +4,28 @@
4
4
  README.md
5
5
  api.ts
6
6
  api/claims-api.ts
7
+ api/settlements-api.ts
7
8
  base.ts
8
9
  common.ts
9
10
  configuration.ts
10
11
  git_push.sh
11
12
  index.ts
13
+ models/claim-class.ts
12
14
  models/create-claim-request-dto.ts
15
+ models/create-claim-response-class.ts
16
+ models/create-settlement-request-dto.ts
17
+ models/create-settlement-response-class.ts
18
+ models/delete-response-class.ts
19
+ models/delete-settlement-request-dto.ts
20
+ models/get-claim-response-class.ts
21
+ models/get-settlement-response-class.ts
13
22
  models/index.ts
23
+ models/list-claim-response-class.ts
24
+ models/list-settlements-response-class.ts
25
+ models/settlement-class.ts
14
26
  models/update-claim-request-dto.ts
27
+ models/update-claim-response-class.ts
28
+ models/update-settlement-request-dto.ts
29
+ models/update-settlement-response-class.ts
15
30
  package.json
16
31
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/claim-sdk-node@1.3.0 --save
20
+ npm install @emilgroup/claim-sdk-node@1.4.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/claim-sdk-node@1.3.0
24
+ yarn add @emilgroup/claim-sdk-node@1.4.0
25
25
  ```
26
26
 
27
27
  And then you can import `ClaimsApi`.
package/api/claims-api.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL ClaimService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -23,7 +23,17 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CreateClaimRequestDto } from '../models';
25
25
  // @ts-ignore
26
+ import { CreateClaimResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetClaimResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListClaimResponseClass } from '../models';
33
+ // @ts-ignore
26
34
  import { UpdateClaimRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateClaimResponseClass } from '../models';
27
37
  // URLSearchParams not necessarily used
28
38
  // @ts-ignore
29
39
  import { URL, URLSearchParams } from 'url';
@@ -37,15 +47,17 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
37
47
  /**
38
48
  * This will create a claim in the database
39
49
  * @summary Create the claim
50
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
40
51
  * @param {CreateClaimRequestDto} createClaimRequestDto
41
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
52
  * @param {*} [options] Override http request option.
43
53
  * @throws {RequiredError}
44
54
  */
45
- createClaim: async (createClaimRequestDto: CreateClaimRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
55
+ createClaim: async (authorization: string, createClaimRequestDto: CreateClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
56
+ // verify required parameter 'authorization' is not null or undefined
57
+ assertParamExists('createClaim', 'authorization', authorization)
46
58
  // verify required parameter 'createClaimRequestDto' is not null or undefined
47
59
  assertParamExists('createClaim', 'createClaimRequestDto', createClaimRequestDto)
48
- const localVarPath = `/v1/claims/`;
60
+ const localVarPath = `/v1/claims`;
49
61
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
62
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
63
  let baseOptions;
@@ -81,18 +93,67 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
81
93
  options: localVarRequestOptions,
82
94
  };
83
95
  },
96
+ /**
97
+ * This will delete the requested claim from the database.
98
+ * @summary Delete the claim
99
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {string} code
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ deleteClaim: async (authorization: string, code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
+ // verify required parameter 'authorization' is not null or undefined
106
+ assertParamExists('deleteClaim', 'authorization', authorization)
107
+ // verify required parameter 'code' is not null or undefined
108
+ assertParamExists('deleteClaim', 'code', code)
109
+ const localVarPath = `/v1/claims/{code}`
110
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ let baseOptions;
114
+ let baseAccessToken;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+
120
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
121
+ const localVarHeaderParameter = {} as any;
122
+ const localVarQueryParameter = {} as any;
123
+
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
127
+
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+
132
+
133
+
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
137
+
138
+ return {
139
+ url: toPathString(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ },
84
143
  /**
85
144
  * This will fetch the identified claim from the database by code
86
145
  * @summary Retrieve the claim
146
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
87
147
  * @param {string} code
88
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
89
148
  * @param {*} [options] Override http request option.
90
149
  * @throws {RequiredError}
91
150
  */
92
- getClaim: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
+ getClaim: async (authorization: string, code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
152
+ // verify required parameter 'authorization' is not null or undefined
153
+ assertParamExists('getClaim', 'authorization', authorization)
93
154
  // verify required parameter 'code' is not null or undefined
94
155
  assertParamExists('getClaim', 'code', code)
95
- const localVarPath = `/v1/claims//{code}`
156
+ const localVarPath = `/v1/claims/{code}`
96
157
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
97
158
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
159
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -127,9 +188,9 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
127
188
  };
128
189
  },
129
190
  /**
130
- * This will fetch list of claims from the database
131
- * @summary Retrieve the claim
132
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
191
+ * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
192
+ * @summary List claims
193
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
133
194
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
134
195
  * @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.
135
196
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -139,8 +200,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
139
200
  * @param {*} [options] Override http request option.
140
201
  * @throws {RequiredError}
141
202
  */
142
- listClaims: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
- const localVarPath = `/v1/claims/`;
203
+ listClaims: async (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
+ // verify required parameter 'authorization' is not null or undefined
205
+ assertParamExists('listClaims', 'authorization', authorization)
206
+ const localVarPath = `/v1/claims`;
144
207
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
145
208
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146
209
  let baseOptions;
@@ -200,18 +263,20 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
200
263
  /**
201
264
  * This will update the identified claim in the database
202
265
  * @summary Update the claim
266
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
203
267
  * @param {string} code
204
268
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
205
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
269
  * @param {*} [options] Override http request option.
207
270
  * @throws {RequiredError}
208
271
  */
209
- updateClaim: async (code: string, updateClaimRequestDto: UpdateClaimRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
272
+ updateClaim: async (authorization: string, code: string, updateClaimRequestDto: UpdateClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
273
+ // verify required parameter 'authorization' is not null or undefined
274
+ assertParamExists('updateClaim', 'authorization', authorization)
210
275
  // verify required parameter 'code' is not null or undefined
211
276
  assertParamExists('updateClaim', 'code', code)
212
277
  // verify required parameter 'updateClaimRequestDto' is not null or undefined
213
278
  assertParamExists('updateClaim', 'updateClaimRequestDto', updateClaimRequestDto)
214
- const localVarPath = `/v1/claims//{code}`
279
+ const localVarPath = `/v1/claims/{code}`
215
280
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
216
281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
217
282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -261,31 +326,43 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
261
326
  /**
262
327
  * This will create a claim in the database
263
328
  * @summary Create the claim
329
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
264
330
  * @param {CreateClaimRequestDto} createClaimRequestDto
265
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
266
331
  * @param {*} [options] Override http request option.
267
332
  * @throws {RequiredError}
268
333
  */
269
- async createClaim(createClaimRequestDto: CreateClaimRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
270
- const localVarAxiosArgs = await localVarAxiosParamCreator.createClaim(createClaimRequestDto, authorization, options);
334
+ async createClaim(authorization: string, createClaimRequestDto: CreateClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateClaimResponseClass>> {
335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClaim(authorization, createClaimRequestDto, options);
336
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
+ },
338
+ /**
339
+ * This will delete the requested claim from the database.
340
+ * @summary Delete the claim
341
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
342
+ * @param {string} code
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ async deleteClaim(authorization: string, code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaim(authorization, code, options);
271
348
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
272
349
  },
273
350
  /**
274
351
  * This will fetch the identified claim from the database by code
275
352
  * @summary Retrieve the claim
353
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
276
354
  * @param {string} code
277
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
355
  * @param {*} [options] Override http request option.
279
356
  * @throws {RequiredError}
280
357
  */
281
- async getClaim(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
282
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClaim(code, authorization, options);
358
+ async getClaim(authorization: string, code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClaimResponseClass>> {
359
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaim(authorization, code, options);
283
360
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
284
361
  },
285
362
  /**
286
- * This will fetch list of claims from the database
287
- * @summary Retrieve the claim
288
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
363
+ * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
364
+ * @summary List claims
365
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
289
366
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
290
367
  * @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.
291
368
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -295,21 +372,21 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
295
372
  * @param {*} [options] Override http request option.
296
373
  * @throws {RequiredError}
297
374
  */
298
- async listClaims(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
375
+ async listClaims(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimResponseClass>> {
299
376
  const localVarAxiosArgs = await localVarAxiosParamCreator.listClaims(authorization, pageSize, pageToken, filter, search, order, expand, options);
300
377
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
301
378
  },
302
379
  /**
303
380
  * This will update the identified claim in the database
304
381
  * @summary Update the claim
382
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
305
383
  * @param {string} code
306
384
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
307
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
385
  * @param {*} [options] Override http request option.
309
386
  * @throws {RequiredError}
310
387
  */
311
- async updateClaim(code: string, updateClaimRequestDto: UpdateClaimRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
312
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaim(code, updateClaimRequestDto, authorization, options);
388
+ async updateClaim(authorization: string, code: string, updateClaimRequestDto: UpdateClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateClaimResponseClass>> {
389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaim(authorization, code, updateClaimRequestDto, options);
313
390
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
314
391
  },
315
392
  }
@@ -325,29 +402,40 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
325
402
  /**
326
403
  * This will create a claim in the database
327
404
  * @summary Create the claim
405
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
328
406
  * @param {CreateClaimRequestDto} createClaimRequestDto
329
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
330
407
  * @param {*} [options] Override http request option.
331
408
  * @throws {RequiredError}
332
409
  */
333
- createClaim(createClaimRequestDto: CreateClaimRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
334
- return localVarFp.createClaim(createClaimRequestDto, authorization, options).then((request) => request(axios, basePath));
410
+ createClaim(authorization: string, createClaimRequestDto: CreateClaimRequestDto, options?: any): AxiosPromise<CreateClaimResponseClass> {
411
+ return localVarFp.createClaim(authorization, createClaimRequestDto, options).then((request) => request(axios, basePath));
412
+ },
413
+ /**
414
+ * This will delete the requested claim from the database.
415
+ * @summary Delete the claim
416
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
417
+ * @param {string} code
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ deleteClaim(authorization: string, code: string, options?: any): AxiosPromise<DeleteResponseClass> {
422
+ return localVarFp.deleteClaim(authorization, code, options).then((request) => request(axios, basePath));
335
423
  },
336
424
  /**
337
425
  * This will fetch the identified claim from the database by code
338
426
  * @summary Retrieve the claim
427
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
339
428
  * @param {string} code
340
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
341
429
  * @param {*} [options] Override http request option.
342
430
  * @throws {RequiredError}
343
431
  */
344
- getClaim(code: string, authorization?: string, options?: any): AxiosPromise<object> {
345
- return localVarFp.getClaim(code, authorization, options).then((request) => request(axios, basePath));
432
+ getClaim(authorization: string, code: string, options?: any): AxiosPromise<GetClaimResponseClass> {
433
+ return localVarFp.getClaim(authorization, code, options).then((request) => request(axios, basePath));
346
434
  },
347
435
  /**
348
- * This will fetch list of claims from the database
349
- * @summary Retrieve the claim
350
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
436
+ * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
437
+ * @summary List claims
438
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
351
439
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
352
440
  * @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.
353
441
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -357,20 +445,20 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
357
445
  * @param {*} [options] Override http request option.
358
446
  * @throws {RequiredError}
359
447
  */
360
- listClaims(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<object> {
448
+ listClaims(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListClaimResponseClass> {
361
449
  return localVarFp.listClaims(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
362
450
  },
363
451
  /**
364
452
  * This will update the identified claim in the database
365
453
  * @summary Update the claim
454
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
366
455
  * @param {string} code
367
456
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
368
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
369
457
  * @param {*} [options] Override http request option.
370
458
  * @throws {RequiredError}
371
459
  */
372
- updateClaim(code: string, updateClaimRequestDto: UpdateClaimRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
373
- return localVarFp.updateClaim(code, updateClaimRequestDto, authorization, options).then((request) => request(axios, basePath));
460
+ updateClaim(authorization: string, code: string, updateClaimRequestDto: UpdateClaimRequestDto, options?: any): AxiosPromise<UpdateClaimResponseClass> {
461
+ return localVarFp.updateClaim(authorization, code, updateClaimRequestDto, options).then((request) => request(axios, basePath));
374
462
  },
375
463
  };
376
464
  };
@@ -381,19 +469,40 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
381
469
  * @interface ClaimsApiCreateClaimRequest
382
470
  */
383
471
  export interface ClaimsApiCreateClaimRequest {
472
+ /**
473
+ * Bearer Token: provided by the login endpoint under the name accessToken.
474
+ * @type {string}
475
+ * @memberof ClaimsApiCreateClaim
476
+ */
477
+ readonly authorization: string
478
+
384
479
  /**
385
480
  *
386
481
  * @type {CreateClaimRequestDto}
387
482
  * @memberof ClaimsApiCreateClaim
388
483
  */
389
484
  readonly createClaimRequestDto: CreateClaimRequestDto
485
+ }
390
486
 
487
+ /**
488
+ * Request parameters for deleteClaim operation in ClaimsApi.
489
+ * @export
490
+ * @interface ClaimsApiDeleteClaimRequest
491
+ */
492
+ export interface ClaimsApiDeleteClaimRequest {
391
493
  /**
392
494
  * Bearer Token: provided by the login endpoint under the name accessToken.
393
495
  * @type {string}
394
- * @memberof ClaimsApiCreateClaim
496
+ * @memberof ClaimsApiDeleteClaim
395
497
  */
396
- readonly authorization?: string
498
+ readonly authorization: string
499
+
500
+ /**
501
+ *
502
+ * @type {string}
503
+ * @memberof ClaimsApiDeleteClaim
504
+ */
505
+ readonly code: string
397
506
  }
398
507
 
399
508
  /**
@@ -403,18 +512,18 @@ export interface ClaimsApiCreateClaimRequest {
403
512
  */
404
513
  export interface ClaimsApiGetClaimRequest {
405
514
  /**
406
- *
515
+ * Bearer Token: provided by the login endpoint under the name accessToken.
407
516
  * @type {string}
408
517
  * @memberof ClaimsApiGetClaim
409
518
  */
410
- readonly code: string
519
+ readonly authorization: string
411
520
 
412
521
  /**
413
- * Bearer Token: provided by the login endpoint under the name accessToken.
522
+ *
414
523
  * @type {string}
415
524
  * @memberof ClaimsApiGetClaim
416
525
  */
417
- readonly authorization?: string
526
+ readonly code: string
418
527
  }
419
528
 
420
529
  /**
@@ -428,7 +537,7 @@ export interface ClaimsApiListClaimsRequest {
428
537
  * @type {string}
429
538
  * @memberof ClaimsApiListClaims
430
539
  */
431
- readonly authorization?: string
540
+ readonly authorization: string
432
541
 
433
542
  /**
434
543
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -480,25 +589,25 @@ export interface ClaimsApiListClaimsRequest {
480
589
  */
481
590
  export interface ClaimsApiUpdateClaimRequest {
482
591
  /**
483
- *
592
+ * Bearer Token: provided by the login endpoint under the name accessToken.
484
593
  * @type {string}
485
594
  * @memberof ClaimsApiUpdateClaim
486
595
  */
487
- readonly code: string
596
+ readonly authorization: string
488
597
 
489
598
  /**
490
599
  *
491
- * @type {UpdateClaimRequestDto}
600
+ * @type {string}
492
601
  * @memberof ClaimsApiUpdateClaim
493
602
  */
494
- readonly updateClaimRequestDto: UpdateClaimRequestDto
603
+ readonly code: string
495
604
 
496
605
  /**
497
- * Bearer Token: provided by the login endpoint under the name accessToken.
498
- * @type {string}
606
+ *
607
+ * @type {UpdateClaimRequestDto}
499
608
  * @memberof ClaimsApiUpdateClaim
500
609
  */
501
- readonly authorization?: string
610
+ readonly updateClaimRequestDto: UpdateClaimRequestDto
502
611
  }
503
612
 
504
613
  /**
@@ -517,7 +626,19 @@ export class ClaimsApi extends BaseAPI {
517
626
  * @memberof ClaimsApi
518
627
  */
519
628
  public createClaim(requestParameters: ClaimsApiCreateClaimRequest, options?: AxiosRequestConfig) {
520
- return ClaimsApiFp(this.configuration).createClaim(requestParameters.createClaimRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
629
+ return ClaimsApiFp(this.configuration).createClaim(requestParameters.authorization, requestParameters.createClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
630
+ }
631
+
632
+ /**
633
+ * This will delete the requested claim from the database.
634
+ * @summary Delete the claim
635
+ * @param {ClaimsApiDeleteClaimRequest} requestParameters Request parameters.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ * @memberof ClaimsApi
639
+ */
640
+ public deleteClaim(requestParameters: ClaimsApiDeleteClaimRequest, options?: AxiosRequestConfig) {
641
+ return ClaimsApiFp(this.configuration).deleteClaim(requestParameters.authorization, requestParameters.code, options).then((request) => request(this.axios, this.basePath));
521
642
  }
522
643
 
523
644
  /**
@@ -529,18 +650,18 @@ export class ClaimsApi extends BaseAPI {
529
650
  * @memberof ClaimsApi
530
651
  */
531
652
  public getClaim(requestParameters: ClaimsApiGetClaimRequest, options?: AxiosRequestConfig) {
532
- return ClaimsApiFp(this.configuration).getClaim(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
653
+ return ClaimsApiFp(this.configuration).getClaim(requestParameters.authorization, requestParameters.code, options).then((request) => request(this.axios, this.basePath));
533
654
  }
534
655
 
535
656
  /**
536
- * This will fetch list of claims from the database
537
- * @summary Retrieve the claim
657
+ * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
658
+ * @summary List claims
538
659
  * @param {ClaimsApiListClaimsRequest} requestParameters Request parameters.
539
660
  * @param {*} [options] Override http request option.
540
661
  * @throws {RequiredError}
541
662
  * @memberof ClaimsApi
542
663
  */
543
- public listClaims(requestParameters: ClaimsApiListClaimsRequest = {}, options?: AxiosRequestConfig) {
664
+ public listClaims(requestParameters: ClaimsApiListClaimsRequest, options?: AxiosRequestConfig) {
544
665
  return ClaimsApiFp(this.configuration).listClaims(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
545
666
  }
546
667
 
@@ -553,6 +674,6 @@ export class ClaimsApi extends BaseAPI {
553
674
  * @memberof ClaimsApi
554
675
  */
555
676
  public updateClaim(requestParameters: ClaimsApiUpdateClaimRequest, options?: AxiosRequestConfig) {
556
- return ClaimsApiFp(this.configuration).updateClaim(requestParameters.code, requestParameters.updateClaimRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
677
+ return ClaimsApiFp(this.configuration).updateClaim(requestParameters.authorization, requestParameters.code, requestParameters.updateClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
557
678
  }
558
679
  }