@emilgroup/customer-sdk-node 1.23.0 → 1.23.2

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.
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/customer-sdk-node@1.23.0 --save
20
+ npm install @emilgroup/customer-sdk-node@1.23.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/customer-sdk-node@1.23.0
24
+ yarn add @emilgroup/customer-sdk-node@1.23.2
25
25
  ```
26
26
 
27
27
  And then you can import `CustomersApi`.
package/api/claims-api.ts CHANGED
@@ -52,11 +52,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
52
52
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
53
53
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
54
54
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
55
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
56
55
  * @param {*} [options] Override http request option.
57
56
  * @throws {RequiredError}
58
57
  */
59
- createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
60
59
  // verify required parameter 'customerCode' is not null or undefined
61
60
  assertParamExists('createCustomerClaim', 'customerCode', customerCode)
62
61
  // verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
@@ -76,14 +75,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
76
75
  const localVarHeaderParameter = {} as any;
77
76
  const localVarQueryParameter = {} as any;
78
77
 
78
+ // authentication bearer required
79
+ // http bearer authentication required
80
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
81
+
79
82
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
80
83
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
81
84
  }
82
85
 
83
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
84
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
85
- }
86
-
87
86
 
88
87
 
89
88
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -104,11 +103,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
104
103
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
105
104
  * @param {string} claimCode The claim code to identify a claim.
106
105
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
107
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
108
106
  * @param {*} [options] Override http request option.
109
107
  * @throws {RequiredError}
110
108
  */
111
- getCustomerClaim: async (customerCode: string, claimCode: string, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
109
+ getCustomerClaim: async (customerCode: string, claimCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
112
110
  // verify required parameter 'customerCode' is not null or undefined
113
111
  assertParamExists('getCustomerClaim', 'customerCode', customerCode)
114
112
  // verify required parameter 'claimCode' is not null or undefined
@@ -129,14 +127,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
129
127
  const localVarHeaderParameter = {} as any;
130
128
  const localVarQueryParameter = {} as any;
131
129
 
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
133
+
132
134
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
135
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
136
  }
135
137
 
136
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
138
- }
139
-
140
138
 
141
139
 
142
140
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -159,11 +157,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
159
157
  * @param {any} [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.
160
158
  * @param {any} [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.
161
159
  * @param {any} [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.
162
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
163
160
  * @param {*} [options] Override http request option.
164
161
  * @throws {RequiredError}
165
162
  */
166
- listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
163
+ listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
167
164
  // verify required parameter 'customerCode' is not null or undefined
168
165
  assertParamExists('listCustomerClaims', 'customerCode', customerCode)
169
166
  const localVarPath = `/v1/customers/{customerCode}/claims`
@@ -181,6 +178,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
181
178
  const localVarHeaderParameter = {} as any;
182
179
  const localVarQueryParameter = {} as any;
183
180
 
181
+ // authentication bearer required
182
+ // http bearer authentication required
183
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
184
+
184
185
  if (pageSize !== undefined) {
185
186
  localVarQueryParameter['pageSize'] = pageSize;
186
187
  }
@@ -209,10 +210,6 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
209
210
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
210
211
  }
211
212
 
212
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
213
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
214
- }
215
-
216
213
 
217
214
 
218
215
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -231,11 +228,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
231
228
  * @param {string} claimCode The claim code to identify a claim.
232
229
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
233
230
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
234
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
235
231
  * @param {*} [options] Override http request option.
236
232
  * @throws {RequiredError}
237
233
  */
238
- updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
234
+ updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
239
235
  // verify required parameter 'customerCode' is not null or undefined
240
236
  assertParamExists('updateCustomerClaim', 'customerCode', customerCode)
241
237
  // verify required parameter 'claimCode' is not null or undefined
@@ -258,14 +254,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
258
254
  const localVarHeaderParameter = {} as any;
259
255
  const localVarQueryParameter = {} as any;
260
256
 
257
+ // authentication bearer required
258
+ // http bearer authentication required
259
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
260
+
261
261
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
262
262
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
263
263
  }
264
264
 
265
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
266
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
267
- }
268
-
269
265
 
270
266
 
271
267
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -287,11 +283,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
287
283
  * @param {string} claimCode The claim code to identify a claim.
288
284
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
289
285
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
290
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
291
286
  * @param {*} [options] Override http request option.
292
287
  * @throws {RequiredError}
293
288
  */
294
- uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
289
+ uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
295
290
  // verify required parameter 'customerCode' is not null or undefined
296
291
  assertParamExists('uploadCustomerClaimDocuments', 'customerCode', customerCode)
297
292
  // verify required parameter 'claimCode' is not null or undefined
@@ -314,14 +309,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
314
309
  const localVarHeaderParameter = {} as any;
315
310
  const localVarQueryParameter = {} as any;
316
311
 
312
+ // authentication bearer required
313
+ // http bearer authentication required
314
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
315
+
317
316
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
318
317
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
319
318
  }
320
319
 
321
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
322
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
323
- }
324
-
325
320
 
326
321
 
327
322
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -352,12 +347,11 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
352
347
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
353
348
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
354
349
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
356
350
  * @param {*} [options] Override http request option.
357
351
  * @throws {RequiredError}
358
352
  */
359
- async createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerClaimResponseClass>> {
360
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options);
353
+ async createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerClaimResponseClass>> {
354
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, options);
361
355
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
356
  },
363
357
  /**
@@ -366,12 +360,11 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
366
360
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
367
361
  * @param {string} claimCode The claim code to identify a claim.
368
362
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
369
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
370
363
  * @param {*} [options] Override http request option.
371
364
  * @throws {RequiredError}
372
365
  */
373
- async getCustomerClaim(customerCode: string, claimCode: string, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerClaimResponseClass>> {
374
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, authorization, authorization2, options);
366
+ async getCustomerClaim(customerCode: string, claimCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerClaimResponseClass>> {
367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, authorization, options);
375
368
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
376
369
  },
377
370
  /**
@@ -385,12 +378,11 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
385
378
  * @param {any} [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.
386
379
  * @param {any} [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.
387
380
  * @param {any} [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.
388
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
389
381
  * @param {*} [options] Override http request option.
390
382
  * @throws {RequiredError}
391
383
  */
392
- async listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
393
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options);
384
+ async listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options);
394
386
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
395
387
  },
396
388
  /**
@@ -400,12 +392,11 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
400
392
  * @param {string} claimCode The claim code to identify a claim.
401
393
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
402
394
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
403
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
404
395
  * @param {*} [options] Override http request option.
405
396
  * @throws {RequiredError}
406
397
  */
407
- async updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerClaimResponseClass>> {
408
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options);
398
+ async updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerClaimResponseClass>> {
399
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options);
409
400
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
410
401
  },
411
402
  /**
@@ -415,12 +406,11 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
415
406
  * @param {string} claimCode The claim code to identify a claim.
416
407
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
417
408
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
418
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
419
409
  * @param {*} [options] Override http request option.
420
410
  * @throws {RequiredError}
421
411
  */
422
- async uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
423
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options);
412
+ async uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
413
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options);
424
414
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
425
415
  },
426
416
  }
@@ -439,12 +429,11 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
439
429
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
440
430
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
441
431
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
443
432
  * @param {*} [options] Override http request option.
444
433
  * @throws {RequiredError}
445
434
  */
446
- createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreateCustomerClaimResponseClass> {
447
- return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
435
+ createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomerClaimResponseClass> {
436
+ return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, options).then((request) => request(axios, basePath));
448
437
  },
449
438
  /**
450
439
  * Get claim for customer.
@@ -452,12 +441,11 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
452
441
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
453
442
  * @param {string} claimCode The claim code to identify a claim.
454
443
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
455
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
456
444
  * @param {*} [options] Override http request option.
457
445
  * @throws {RequiredError}
458
446
  */
459
- getCustomerClaim(customerCode: string, claimCode: string, authorization?: string, authorization2?: string, options?: any): AxiosPromise<GetCustomerClaimResponseClass> {
460
- return localVarFp.getCustomerClaim(customerCode, claimCode, authorization, authorization2, options).then((request) => request(axios, basePath));
447
+ getCustomerClaim(customerCode: string, claimCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerClaimResponseClass> {
448
+ return localVarFp.getCustomerClaim(customerCode, claimCode, authorization, options).then((request) => request(axios, basePath));
461
449
  },
462
450
  /**
463
451
  * List claims by customer.
@@ -470,12 +458,11 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
470
458
  * @param {any} [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.
471
459
  * @param {any} [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.
472
460
  * @param {any} [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.
473
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
474
461
  * @param {*} [options] Override http request option.
475
462
  * @throws {RequiredError}
476
463
  */
477
- listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
478
- return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options).then((request) => request(axios, basePath));
464
+ listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
465
+ return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
479
466
  },
480
467
  /**
481
468
  * Update claim for customer.
@@ -484,12 +471,11 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
484
471
  * @param {string} claimCode The claim code to identify a claim.
485
472
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
486
473
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
487
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
488
474
  * @param {*} [options] Override http request option.
489
475
  * @throws {RequiredError}
490
476
  */
491
- updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<UpdateCustomerClaimResponseClass> {
492
- return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
477
+ updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerClaimResponseClass> {
478
+ return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options).then((request) => request(axios, basePath));
493
479
  },
494
480
  /**
495
481
  * API to upload and attach documents to a claim.
@@ -498,12 +484,11 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
498
484
  * @param {string} claimCode The claim code to identify a claim.
499
485
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
500
486
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
502
487
  * @param {*} [options] Override http request option.
503
488
  * @throws {RequiredError}
504
489
  */
505
- uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
506
- return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
490
+ uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
491
+ return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options).then((request) => request(axios, basePath));
507
492
  },
508
493
  };
509
494
  };
@@ -534,13 +519,6 @@ export interface ClaimsApiCreateCustomerClaimRequest {
534
519
  * @memberof ClaimsApiCreateCustomerClaim
535
520
  */
536
521
  readonly authorization?: string
537
-
538
- /**
539
- * Bearer Token: provided by the login endpoint under the name accessToken.
540
- * @type {string}
541
- * @memberof ClaimsApiCreateCustomerClaim
542
- */
543
- readonly authorization2?: string
544
522
  }
545
523
 
546
524
  /**
@@ -569,13 +547,6 @@ export interface ClaimsApiGetCustomerClaimRequest {
569
547
  * @memberof ClaimsApiGetCustomerClaim
570
548
  */
571
549
  readonly authorization?: string
572
-
573
- /**
574
- * Bearer Token: provided by the login endpoint under the name accessToken.
575
- * @type {string}
576
- * @memberof ClaimsApiGetCustomerClaim
577
- */
578
- readonly authorization2?: string
579
550
  }
580
551
 
581
552
  /**
@@ -639,13 +610,6 @@ export interface ClaimsApiListCustomerClaimsRequest {
639
610
  * @memberof ClaimsApiListCustomerClaims
640
611
  */
641
612
  readonly expand?: any
642
-
643
- /**
644
- * Bearer Token: provided by the login endpoint under the name accessToken.
645
- * @type {string}
646
- * @memberof ClaimsApiListCustomerClaims
647
- */
648
- readonly authorization2?: string
649
613
  }
650
614
 
651
615
  /**
@@ -681,13 +645,6 @@ export interface ClaimsApiUpdateCustomerClaimRequest {
681
645
  * @memberof ClaimsApiUpdateCustomerClaim
682
646
  */
683
647
  readonly authorization?: string
684
-
685
- /**
686
- * Bearer Token: provided by the login endpoint under the name accessToken.
687
- * @type {string}
688
- * @memberof ClaimsApiUpdateCustomerClaim
689
- */
690
- readonly authorization2?: string
691
648
  }
692
649
 
693
650
  /**
@@ -723,13 +680,6 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
723
680
  * @memberof ClaimsApiUploadCustomerClaimDocuments
724
681
  */
725
682
  readonly authorization?: string
726
-
727
- /**
728
- * Bearer Token: provided by the login endpoint under the name accessToken.
729
- * @type {string}
730
- * @memberof ClaimsApiUploadCustomerClaimDocuments
731
- */
732
- readonly authorization2?: string
733
683
  }
734
684
 
735
685
  /**
@@ -748,7 +698,7 @@ export class ClaimsApi extends BaseAPI {
748
698
  * @memberof ClaimsApi
749
699
  */
750
700
  public createCustomerClaim(requestParameters: ClaimsApiCreateCustomerClaimRequest, options?: AxiosRequestConfig) {
751
- return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
701
+ return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
752
702
  }
753
703
 
754
704
  /**
@@ -760,7 +710,7 @@ export class ClaimsApi extends BaseAPI {
760
710
  * @memberof ClaimsApi
761
711
  */
762
712
  public getCustomerClaim(requestParameters: ClaimsApiGetCustomerClaimRequest, options?: AxiosRequestConfig) {
763
- return ClaimsApiFp(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
713
+ return ClaimsApiFp(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
764
714
  }
765
715
 
766
716
  /**
@@ -772,7 +722,7 @@ export class ClaimsApi extends BaseAPI {
772
722
  * @memberof ClaimsApi
773
723
  */
774
724
  public listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig) {
775
- return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
725
+ return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
776
726
  }
777
727
 
778
728
  /**
@@ -784,7 +734,7 @@ export class ClaimsApi extends BaseAPI {
784
734
  * @memberof ClaimsApi
785
735
  */
786
736
  public updateCustomerClaim(requestParameters: ClaimsApiUpdateCustomerClaimRequest, options?: AxiosRequestConfig) {
787
- return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
737
+ return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
788
738
  }
789
739
 
790
740
  /**
@@ -796,6 +746,6 @@ export class ClaimsApi extends BaseAPI {
796
746
  * @memberof ClaimsApi
797
747
  */
798
748
  public uploadCustomerClaimDocuments(requestParameters: ClaimsApiUploadCustomerClaimDocumentsRequest, options?: AxiosRequestConfig) {
799
- return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
749
+ return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
800
750
  }
801
751
  }
package/base.ts CHANGED
@@ -22,7 +22,7 @@ import * as fs from 'fs';
22
22
  import * as path from 'path';
23
23
  import * as os from 'os';
24
24
 
25
- export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
25
+ export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
26
26
  const CONFIG_DIRECTORY = '.emil';
27
27
  const CONFIG_FILENAME = 'credentials';
28
28
  const KEY_USERNAME = 'emil_username';