@emilgroup/customer-sdk-node 1.23.0 → 1.23.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.
package/api/claims-api.ts CHANGED
@@ -51,12 +51,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
51
51
  * @summary Create a new claim
52
52
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
53
53
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
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
54
  * @param {*} [options] Override http request option.
57
55
  * @throws {RequiredError}
58
56
  */
59
- createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
57
+ createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
60
58
  // verify required parameter 'customerCode' is not null or undefined
61
59
  assertParamExists('createCustomerClaim', 'customerCode', customerCode)
62
60
  // verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
@@ -76,13 +74,9 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
76
74
  const localVarHeaderParameter = {} as any;
77
75
  const localVarQueryParameter = {} as any;
78
76
 
79
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
80
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
81
- }
82
-
83
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
84
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
85
- }
77
+ // authentication bearer required
78
+ // http bearer authentication required
79
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
86
80
 
87
81
 
88
82
 
@@ -103,12 +97,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
103
97
  * @summary Get claim
104
98
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
105
99
  * @param {string} claimCode The claim code to identify a claim.
106
- * @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
100
  * @param {*} [options] Override http request option.
109
101
  * @throws {RequiredError}
110
102
  */
111
- getCustomerClaim: async (customerCode: string, claimCode: string, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ getCustomerClaim: async (customerCode: string, claimCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
112
104
  // verify required parameter 'customerCode' is not null or undefined
113
105
  assertParamExists('getCustomerClaim', 'customerCode', customerCode)
114
106
  // verify required parameter 'claimCode' is not null or undefined
@@ -129,13 +121,9 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
129
121
  const localVarHeaderParameter = {} as any;
130
122
  const localVarQueryParameter = {} as any;
131
123
 
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
- }
135
-
136
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
138
- }
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
139
127
 
140
128
 
141
129
 
@@ -152,18 +140,16 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
152
140
  * List claims by customer.
153
141
  * @summary List claims
154
142
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
155
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
156
143
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
157
144
  * @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.
158
145
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
159
146
  * @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
147
  * @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
148
  * @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
149
  * @param {*} [options] Override http request option.
164
150
  * @throws {RequiredError}
165
151
  */
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> => {
152
+ listCustomerClaims: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
167
153
  // verify required parameter 'customerCode' is not null or undefined
168
154
  assertParamExists('listCustomerClaims', 'customerCode', customerCode)
169
155
  const localVarPath = `/v1/customers/{customerCode}/claims`
@@ -181,6 +167,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
181
167
  const localVarHeaderParameter = {} as any;
182
168
  const localVarQueryParameter = {} as any;
183
169
 
170
+ // authentication bearer required
171
+ // http bearer authentication required
172
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
173
+
184
174
  if (pageSize !== undefined) {
185
175
  localVarQueryParameter['pageSize'] = pageSize;
186
176
  }
@@ -205,14 +195,6 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
205
195
  localVarQueryParameter['expand'] = expand;
206
196
  }
207
197
 
208
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
209
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
210
- }
211
-
212
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
213
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
214
- }
215
-
216
198
 
217
199
 
218
200
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -230,12 +212,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
230
212
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
231
213
  * @param {string} claimCode The claim code to identify a claim.
232
214
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
233
- * @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
215
  * @param {*} [options] Override http request option.
236
216
  * @throws {RequiredError}
237
217
  */
238
- updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
218
+ updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
239
219
  // verify required parameter 'customerCode' is not null or undefined
240
220
  assertParamExists('updateCustomerClaim', 'customerCode', customerCode)
241
221
  // verify required parameter 'claimCode' is not null or undefined
@@ -258,13 +238,9 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
258
238
  const localVarHeaderParameter = {} as any;
259
239
  const localVarQueryParameter = {} as any;
260
240
 
261
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
262
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
263
- }
264
-
265
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
266
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
267
- }
241
+ // authentication bearer required
242
+ // http bearer authentication required
243
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
268
244
 
269
245
 
270
246
 
@@ -286,12 +262,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
286
262
  * @param {string} customerCode
287
263
  * @param {string} claimCode The claim code to identify a claim.
288
264
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
289
- * @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
265
  * @param {*} [options] Override http request option.
292
266
  * @throws {RequiredError}
293
267
  */
294
- uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
268
+ uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
295
269
  // verify required parameter 'customerCode' is not null or undefined
296
270
  assertParamExists('uploadCustomerClaimDocuments', 'customerCode', customerCode)
297
271
  // verify required parameter 'claimCode' is not null or undefined
@@ -314,13 +288,9 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
314
288
  const localVarHeaderParameter = {} as any;
315
289
  const localVarQueryParameter = {} as any;
316
290
 
317
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
318
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
319
- }
320
-
321
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
322
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
323
- }
291
+ // authentication bearer required
292
+ // http bearer authentication required
293
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
324
294
 
325
295
 
326
296
 
@@ -351,13 +321,11 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
351
321
  * @summary Create a new claim
352
322
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
353
323
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
354
- * @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
324
  * @param {*} [options] Override http request option.
357
325
  * @throws {RequiredError}
358
326
  */
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);
327
+ async createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerClaimResponseClass>> {
328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options);
361
329
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
330
  },
363
331
  /**
@@ -365,32 +333,28 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
365
333
  * @summary Get claim
366
334
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
367
335
  * @param {string} claimCode The claim code to identify a claim.
368
- * @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
336
  * @param {*} [options] Override http request option.
371
337
  * @throws {RequiredError}
372
338
  */
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);
339
+ async getCustomerClaim(customerCode: string, claimCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerClaimResponseClass>> {
340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, options);
375
341
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
376
342
  },
377
343
  /**
378
344
  * List claims by customer.
379
345
  * @summary List claims
380
346
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
381
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
382
347
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
383
348
  * @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.
384
349
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
385
350
  * @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
351
  * @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
352
  * @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
353
  * @param {*} [options] Override http request option.
390
354
  * @throws {RequiredError}
391
355
  */
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);
356
+ async listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
357
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options);
394
358
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
395
359
  },
396
360
  /**
@@ -399,13 +363,11 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
399
363
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
400
364
  * @param {string} claimCode The claim code to identify a claim.
401
365
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
402
- * @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
366
  * @param {*} [options] Override http request option.
405
367
  * @throws {RequiredError}
406
368
  */
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);
369
+ async updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerClaimResponseClass>> {
370
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options);
409
371
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
410
372
  },
411
373
  /**
@@ -414,13 +376,11 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
414
376
  * @param {string} customerCode
415
377
  * @param {string} claimCode The claim code to identify a claim.
416
378
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
417
- * @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
379
  * @param {*} [options] Override http request option.
420
380
  * @throws {RequiredError}
421
381
  */
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);
382
+ async uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
383
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options);
424
384
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
425
385
  },
426
386
  }
@@ -438,44 +398,38 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
438
398
  * @summary Create a new claim
439
399
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
440
400
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
441
- * @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
401
  * @param {*} [options] Override http request option.
444
402
  * @throws {RequiredError}
445
403
  */
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));
404
+ createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: any): AxiosPromise<CreateCustomerClaimResponseClass> {
405
+ return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options).then((request) => request(axios, basePath));
448
406
  },
449
407
  /**
450
408
  * Get claim for customer.
451
409
  * @summary Get claim
452
410
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
453
411
  * @param {string} claimCode The claim code to identify a claim.
454
- * @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
412
  * @param {*} [options] Override http request option.
457
413
  * @throws {RequiredError}
458
414
  */
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));
415
+ getCustomerClaim(customerCode: string, claimCode: string, options?: any): AxiosPromise<GetCustomerClaimResponseClass> {
416
+ return localVarFp.getCustomerClaim(customerCode, claimCode, options).then((request) => request(axios, basePath));
461
417
  },
462
418
  /**
463
419
  * List claims by customer.
464
420
  * @summary List claims
465
421
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
466
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
422
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
468
423
  * @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.
469
424
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
470
425
  * @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
426
  * @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
427
  * @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
428
  * @param {*} [options] Override http request option.
475
429
  * @throws {RequiredError}
476
430
  */
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));
431
+ listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
432
+ return localVarFp.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
479
433
  },
480
434
  /**
481
435
  * Update claim for customer.
@@ -483,13 +437,11 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
483
437
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
484
438
  * @param {string} claimCode The claim code to identify a claim.
485
439
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
486
- * @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
440
  * @param {*} [options] Override http request option.
489
441
  * @throws {RequiredError}
490
442
  */
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));
443
+ updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: any): AxiosPromise<UpdateCustomerClaimResponseClass> {
444
+ return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options).then((request) => request(axios, basePath));
493
445
  },
494
446
  /**
495
447
  * API to upload and attach documents to a claim.
@@ -497,13 +449,11 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
497
449
  * @param {string} customerCode
498
450
  * @param {string} claimCode The claim code to identify a claim.
499
451
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
500
- * @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
452
  * @param {*} [options] Override http request option.
503
453
  * @throws {RequiredError}
504
454
  */
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));
455
+ uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
456
+ return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options).then((request) => request(axios, basePath));
507
457
  },
508
458
  };
509
459
  };
@@ -527,20 +477,6 @@ export interface ClaimsApiCreateCustomerClaimRequest {
527
477
  * @memberof ClaimsApiCreateCustomerClaim
528
478
  */
529
479
  readonly createCustomerClaimRequestDto: CreateCustomerClaimRequestDto
530
-
531
- /**
532
- * Bearer Token: provided by the login endpoint under the name accessToken.
533
- * @type {string}
534
- * @memberof ClaimsApiCreateCustomerClaim
535
- */
536
- 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
480
  }
545
481
 
546
482
  /**
@@ -562,20 +498,6 @@ export interface ClaimsApiGetCustomerClaimRequest {
562
498
  * @memberof ClaimsApiGetCustomerClaim
563
499
  */
564
500
  readonly claimCode: string
565
-
566
- /**
567
- * Bearer Token: provided by the login endpoint under the name accessToken.
568
- * @type {string}
569
- * @memberof ClaimsApiGetCustomerClaim
570
- */
571
- 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
501
  }
580
502
 
581
503
  /**
@@ -591,13 +513,6 @@ export interface ClaimsApiListCustomerClaimsRequest {
591
513
  */
592
514
  readonly customerCode: string
593
515
 
594
- /**
595
- * Bearer Token: provided by the login endpoint under the name accessToken.
596
- * @type {string}
597
- * @memberof ClaimsApiListCustomerClaims
598
- */
599
- readonly authorization?: string
600
-
601
516
  /**
602
517
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
603
518
  * @type {any}
@@ -639,13 +554,6 @@ export interface ClaimsApiListCustomerClaimsRequest {
639
554
  * @memberof ClaimsApiListCustomerClaims
640
555
  */
641
556
  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
557
  }
650
558
 
651
559
  /**
@@ -674,20 +582,6 @@ export interface ClaimsApiUpdateCustomerClaimRequest {
674
582
  * @memberof ClaimsApiUpdateCustomerClaim
675
583
  */
676
584
  readonly updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto
677
-
678
- /**
679
- * Bearer Token: provided by the login endpoint under the name accessToken.
680
- * @type {string}
681
- * @memberof ClaimsApiUpdateCustomerClaim
682
- */
683
- 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
585
  }
692
586
 
693
587
  /**
@@ -716,20 +610,6 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
716
610
  * @memberof ClaimsApiUploadCustomerClaimDocuments
717
611
  */
718
612
  readonly uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto
719
-
720
- /**
721
- * Bearer Token: provided by the login endpoint under the name accessToken.
722
- * @type {string}
723
- * @memberof ClaimsApiUploadCustomerClaimDocuments
724
- */
725
- 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
613
  }
734
614
 
735
615
  /**
@@ -748,7 +628,7 @@ export class ClaimsApi extends BaseAPI {
748
628
  * @memberof ClaimsApi
749
629
  */
750
630
  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));
631
+ return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
752
632
  }
753
633
 
754
634
  /**
@@ -760,7 +640,7 @@ export class ClaimsApi extends BaseAPI {
760
640
  * @memberof ClaimsApi
761
641
  */
762
642
  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));
643
+ return ClaimsApiFp(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, options).then((request) => request(this.axios, this.basePath));
764
644
  }
765
645
 
766
646
  /**
@@ -772,7 +652,7 @@ export class ClaimsApi extends BaseAPI {
772
652
  * @memberof ClaimsApi
773
653
  */
774
654
  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));
655
+ return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
776
656
  }
777
657
 
778
658
  /**
@@ -784,7 +664,7 @@ export class ClaimsApi extends BaseAPI {
784
664
  * @memberof ClaimsApi
785
665
  */
786
666
  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));
667
+ return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
788
668
  }
789
669
 
790
670
  /**
@@ -796,6 +676,6 @@ export class ClaimsApi extends BaseAPI {
796
676
  * @memberof ClaimsApi
797
677
  */
798
678
  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));
679
+ return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, options).then((request) => request(this.axios, this.basePath));
800
680
  }
801
681
  }
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';