@emilgroup/customer-sdk-node 1.23.1 → 1.24.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.
- package/README.md +2 -2
- package/api/claims-api.ts +100 -30
- package/base.ts +1 -1
- package/dist/api/claims-api.d.ts +60 -15
- package/dist/api/claims-api.js +60 -30
- package/dist/base.js +1 -1
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/create-account-request-dto.d.ts +1 -1
- package/models/account-class.ts +1 -1
- package/models/create-account-request-dto.ts +1 -1
- package/package.json +1 -1
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.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.24.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.24.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/claims-api.ts
CHANGED
|
@@ -51,10 +51,11 @@ 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.
|
|
54
55
|
* @param {*} [options] Override http request option.
|
|
55
56
|
* @throws {RequiredError}
|
|
56
57
|
*/
|
|
57
|
-
createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58
|
+
createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58
59
|
// verify required parameter 'customerCode' is not null or undefined
|
|
59
60
|
assertParamExists('createCustomerClaim', 'customerCode', customerCode)
|
|
60
61
|
// verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
|
|
@@ -78,6 +79,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
78
79
|
// http bearer authentication required
|
|
79
80
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
80
81
|
|
|
82
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
83
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
84
|
+
}
|
|
85
|
+
|
|
81
86
|
|
|
82
87
|
|
|
83
88
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -97,10 +102,11 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
97
102
|
* @summary Get claim
|
|
98
103
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
99
104
|
* @param {string} claimCode The claim code to identify a claim.
|
|
105
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
106
|
* @param {*} [options] Override http request option.
|
|
101
107
|
* @throws {RequiredError}
|
|
102
108
|
*/
|
|
103
|
-
getCustomerClaim: async (customerCode: string, claimCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
109
|
+
getCustomerClaim: async (customerCode: string, claimCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
104
110
|
// verify required parameter 'customerCode' is not null or undefined
|
|
105
111
|
assertParamExists('getCustomerClaim', 'customerCode', customerCode)
|
|
106
112
|
// verify required parameter 'claimCode' is not null or undefined
|
|
@@ -125,6 +131,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
125
131
|
// http bearer authentication required
|
|
126
132
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
127
133
|
|
|
134
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
136
|
+
}
|
|
137
|
+
|
|
128
138
|
|
|
129
139
|
|
|
130
140
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -140,6 +150,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
140
150
|
* List claims by customer.
|
|
141
151
|
* @summary List claims
|
|
142
152
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
153
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
143
154
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
144
155
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
145
156
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -149,7 +160,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
149
160
|
* @param {*} [options] Override http request option.
|
|
150
161
|
* @throws {RequiredError}
|
|
151
162
|
*/
|
|
152
|
-
listCustomerClaims: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, 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> => {
|
|
153
164
|
// verify required parameter 'customerCode' is not null or undefined
|
|
154
165
|
assertParamExists('listCustomerClaims', 'customerCode', customerCode)
|
|
155
166
|
const localVarPath = `/v1/customers/{customerCode}/claims`
|
|
@@ -195,6 +206,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
195
206
|
localVarQueryParameter['expand'] = expand;
|
|
196
207
|
}
|
|
197
208
|
|
|
209
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
210
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
211
|
+
}
|
|
212
|
+
|
|
198
213
|
|
|
199
214
|
|
|
200
215
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -212,10 +227,11 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
212
227
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
213
228
|
* @param {string} claimCode The claim code to identify a claim.
|
|
214
229
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
230
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
215
231
|
* @param {*} [options] Override http request option.
|
|
216
232
|
* @throws {RequiredError}
|
|
217
233
|
*/
|
|
218
|
-
updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
234
|
+
updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
219
235
|
// verify required parameter 'customerCode' is not null or undefined
|
|
220
236
|
assertParamExists('updateCustomerClaim', 'customerCode', customerCode)
|
|
221
237
|
// verify required parameter 'claimCode' is not null or undefined
|
|
@@ -242,6 +258,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
242
258
|
// http bearer authentication required
|
|
243
259
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
244
260
|
|
|
261
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
262
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
263
|
+
}
|
|
264
|
+
|
|
245
265
|
|
|
246
266
|
|
|
247
267
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -262,10 +282,11 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
262
282
|
* @param {string} customerCode
|
|
263
283
|
* @param {string} claimCode The claim code to identify a claim.
|
|
264
284
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
285
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
265
286
|
* @param {*} [options] Override http request option.
|
|
266
287
|
* @throws {RequiredError}
|
|
267
288
|
*/
|
|
268
|
-
uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
289
|
+
uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
269
290
|
// verify required parameter 'customerCode' is not null or undefined
|
|
270
291
|
assertParamExists('uploadCustomerClaimDocuments', 'customerCode', customerCode)
|
|
271
292
|
// verify required parameter 'claimCode' is not null or undefined
|
|
@@ -292,6 +313,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
292
313
|
// http bearer authentication required
|
|
293
314
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
294
315
|
|
|
316
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
317
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
318
|
+
}
|
|
319
|
+
|
|
295
320
|
|
|
296
321
|
|
|
297
322
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -321,11 +346,12 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
321
346
|
* @summary Create a new claim
|
|
322
347
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
323
348
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
349
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
324
350
|
* @param {*} [options] Override http request option.
|
|
325
351
|
* @throws {RequiredError}
|
|
326
352
|
*/
|
|
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);
|
|
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);
|
|
329
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
356
|
},
|
|
331
357
|
/**
|
|
@@ -333,17 +359,19 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
333
359
|
* @summary Get claim
|
|
334
360
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
335
361
|
* @param {string} claimCode The claim code to identify a claim.
|
|
362
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
363
|
* @param {*} [options] Override http request option.
|
|
337
364
|
* @throws {RequiredError}
|
|
338
365
|
*/
|
|
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);
|
|
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);
|
|
341
368
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
369
|
},
|
|
343
370
|
/**
|
|
344
371
|
* List claims by customer.
|
|
345
372
|
* @summary List claims
|
|
346
373
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
374
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
347
375
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
348
376
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
349
377
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -353,8 +381,8 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
353
381
|
* @param {*} [options] Override http request option.
|
|
354
382
|
* @throws {RequiredError}
|
|
355
383
|
*/
|
|
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);
|
|
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);
|
|
358
386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
359
387
|
},
|
|
360
388
|
/**
|
|
@@ -363,11 +391,12 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
363
391
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
364
392
|
* @param {string} claimCode The claim code to identify a claim.
|
|
365
393
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
394
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
366
395
|
* @param {*} [options] Override http request option.
|
|
367
396
|
* @throws {RequiredError}
|
|
368
397
|
*/
|
|
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);
|
|
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);
|
|
371
400
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
372
401
|
},
|
|
373
402
|
/**
|
|
@@ -376,11 +405,12 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
376
405
|
* @param {string} customerCode
|
|
377
406
|
* @param {string} claimCode The claim code to identify a claim.
|
|
378
407
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
408
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
379
409
|
* @param {*} [options] Override http request option.
|
|
380
410
|
* @throws {RequiredError}
|
|
381
411
|
*/
|
|
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);
|
|
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);
|
|
384
414
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
385
415
|
},
|
|
386
416
|
}
|
|
@@ -398,27 +428,30 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
398
428
|
* @summary Create a new claim
|
|
399
429
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
400
430
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
431
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
401
432
|
* @param {*} [options] Override http request option.
|
|
402
433
|
* @throws {RequiredError}
|
|
403
434
|
*/
|
|
404
|
-
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: any): AxiosPromise<CreateCustomerClaimResponseClass> {
|
|
405
|
-
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, 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));
|
|
406
437
|
},
|
|
407
438
|
/**
|
|
408
439
|
* Get claim for customer.
|
|
409
440
|
* @summary Get claim
|
|
410
441
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
411
442
|
* @param {string} claimCode The claim code to identify a claim.
|
|
443
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
412
444
|
* @param {*} [options] Override http request option.
|
|
413
445
|
* @throws {RequiredError}
|
|
414
446
|
*/
|
|
415
|
-
getCustomerClaim(customerCode: string, claimCode: string, options?: any): AxiosPromise<GetCustomerClaimResponseClass> {
|
|
416
|
-
return localVarFp.getCustomerClaim(customerCode, claimCode, 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));
|
|
417
449
|
},
|
|
418
450
|
/**
|
|
419
451
|
* List claims by customer.
|
|
420
452
|
* @summary List claims
|
|
421
453
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
454
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
422
455
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
423
456
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
424
457
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -428,8 +461,8 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
428
461
|
* @param {*} [options] Override http request option.
|
|
429
462
|
* @throws {RequiredError}
|
|
430
463
|
*/
|
|
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));
|
|
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));
|
|
433
466
|
},
|
|
434
467
|
/**
|
|
435
468
|
* Update claim for customer.
|
|
@@ -437,11 +470,12 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
437
470
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
438
471
|
* @param {string} claimCode The claim code to identify a claim.
|
|
439
472
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
473
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
440
474
|
* @param {*} [options] Override http request option.
|
|
441
475
|
* @throws {RequiredError}
|
|
442
476
|
*/
|
|
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));
|
|
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));
|
|
445
479
|
},
|
|
446
480
|
/**
|
|
447
481
|
* API to upload and attach documents to a claim.
|
|
@@ -449,11 +483,12 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
449
483
|
* @param {string} customerCode
|
|
450
484
|
* @param {string} claimCode The claim code to identify a claim.
|
|
451
485
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
486
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
452
487
|
* @param {*} [options] Override http request option.
|
|
453
488
|
* @throws {RequiredError}
|
|
454
489
|
*/
|
|
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));
|
|
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));
|
|
457
492
|
},
|
|
458
493
|
};
|
|
459
494
|
};
|
|
@@ -477,6 +512,13 @@ export interface ClaimsApiCreateCustomerClaimRequest {
|
|
|
477
512
|
* @memberof ClaimsApiCreateCustomerClaim
|
|
478
513
|
*/
|
|
479
514
|
readonly createCustomerClaimRequestDto: CreateCustomerClaimRequestDto
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
518
|
+
* @type {string}
|
|
519
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
520
|
+
*/
|
|
521
|
+
readonly authorization?: string
|
|
480
522
|
}
|
|
481
523
|
|
|
482
524
|
/**
|
|
@@ -498,6 +540,13 @@ export interface ClaimsApiGetCustomerClaimRequest {
|
|
|
498
540
|
* @memberof ClaimsApiGetCustomerClaim
|
|
499
541
|
*/
|
|
500
542
|
readonly claimCode: string
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
546
|
+
* @type {string}
|
|
547
|
+
* @memberof ClaimsApiGetCustomerClaim
|
|
548
|
+
*/
|
|
549
|
+
readonly authorization?: string
|
|
501
550
|
}
|
|
502
551
|
|
|
503
552
|
/**
|
|
@@ -513,6 +562,13 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
513
562
|
*/
|
|
514
563
|
readonly customerCode: string
|
|
515
564
|
|
|
565
|
+
/**
|
|
566
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
567
|
+
* @type {string}
|
|
568
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
569
|
+
*/
|
|
570
|
+
readonly authorization?: string
|
|
571
|
+
|
|
516
572
|
/**
|
|
517
573
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
518
574
|
* @type {any}
|
|
@@ -582,6 +638,13 @@ export interface ClaimsApiUpdateCustomerClaimRequest {
|
|
|
582
638
|
* @memberof ClaimsApiUpdateCustomerClaim
|
|
583
639
|
*/
|
|
584
640
|
readonly updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
644
|
+
* @type {string}
|
|
645
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
646
|
+
*/
|
|
647
|
+
readonly authorization?: string
|
|
585
648
|
}
|
|
586
649
|
|
|
587
650
|
/**
|
|
@@ -610,6 +673,13 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
|
|
|
610
673
|
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
611
674
|
*/
|
|
612
675
|
readonly uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
679
|
+
* @type {string}
|
|
680
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
681
|
+
*/
|
|
682
|
+
readonly authorization?: string
|
|
613
683
|
}
|
|
614
684
|
|
|
615
685
|
/**
|
|
@@ -628,7 +698,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
628
698
|
* @memberof ClaimsApi
|
|
629
699
|
*/
|
|
630
700
|
public createCustomerClaim(requestParameters: ClaimsApiCreateCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
631
|
-
return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, 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));
|
|
632
702
|
}
|
|
633
703
|
|
|
634
704
|
/**
|
|
@@ -640,7 +710,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
640
710
|
* @memberof ClaimsApi
|
|
641
711
|
*/
|
|
642
712
|
public getCustomerClaim(requestParameters: ClaimsApiGetCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
643
|
-
return ClaimsApiFp(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, 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));
|
|
644
714
|
}
|
|
645
715
|
|
|
646
716
|
/**
|
|
@@ -652,7 +722,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
652
722
|
* @memberof ClaimsApi
|
|
653
723
|
*/
|
|
654
724
|
public listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig) {
|
|
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));
|
|
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));
|
|
656
726
|
}
|
|
657
727
|
|
|
658
728
|
/**
|
|
@@ -664,7 +734,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
664
734
|
* @memberof ClaimsApi
|
|
665
735
|
*/
|
|
666
736
|
public updateCustomerClaim(requestParameters: ClaimsApiUpdateCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
667
|
-
return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, 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));
|
|
668
738
|
}
|
|
669
739
|
|
|
670
740
|
/**
|
|
@@ -676,6 +746,6 @@ export class ClaimsApi extends BaseAPI {
|
|
|
676
746
|
* @memberof ClaimsApi
|
|
677
747
|
*/
|
|
678
748
|
public uploadCustomerClaimDocuments(requestParameters: ClaimsApiUploadCustomerClaimDocumentsRequest, options?: AxiosRequestConfig) {
|
|
679
|
-
return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, 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));
|
|
680
750
|
}
|
|
681
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 = "
|
|
25
|
+
export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
26
26
|
const CONFIG_DIRECTORY = '.emil';
|
|
27
27
|
const CONFIG_FILENAME = 'credentials';
|
|
28
28
|
const KEY_USERNAME = 'emil_username';
|
package/dist/api/claims-api.d.ts
CHANGED
|
@@ -30,23 +30,26 @@ export declare const ClaimsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
30
30
|
* @summary Create a new claim
|
|
31
31
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
32
32
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
33
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
33
34
|
* @param {*} [options] Override http request option.
|
|
34
35
|
* @throws {RequiredError}
|
|
35
36
|
*/
|
|
36
|
-
createCustomerClaim: (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
+
createCustomerClaim: (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
38
|
/**
|
|
38
39
|
* Get claim for customer.
|
|
39
40
|
* @summary Get claim
|
|
40
41
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
41
42
|
* @param {string} claimCode The claim code to identify a claim.
|
|
43
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
44
|
* @param {*} [options] Override http request option.
|
|
43
45
|
* @throws {RequiredError}
|
|
44
46
|
*/
|
|
45
|
-
getCustomerClaim: (customerCode: string, claimCode: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
getCustomerClaim: (customerCode: string, claimCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
48
|
/**
|
|
47
49
|
* List claims by customer.
|
|
48
50
|
* @summary List claims
|
|
49
51
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
52
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
53
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
51
54
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
52
55
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -56,27 +59,29 @@ export declare const ClaimsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
56
59
|
* @param {*} [options] Override http request option.
|
|
57
60
|
* @throws {RequiredError}
|
|
58
61
|
*/
|
|
59
|
-
listCustomerClaims: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
|
+
listCustomerClaims: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
63
|
/**
|
|
61
64
|
* Update claim for customer.
|
|
62
65
|
* @summary Update claim
|
|
63
66
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
64
67
|
* @param {string} claimCode The claim code to identify a claim.
|
|
65
68
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
69
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
66
70
|
* @param {*} [options] Override http request option.
|
|
67
71
|
* @throws {RequiredError}
|
|
68
72
|
*/
|
|
69
|
-
updateCustomerClaim: (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
73
|
+
updateCustomerClaim: (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
74
|
/**
|
|
71
75
|
* API to upload and attach documents to a claim.
|
|
72
76
|
* @summary Upload claim documents
|
|
73
77
|
* @param {string} customerCode
|
|
74
78
|
* @param {string} claimCode The claim code to identify a claim.
|
|
75
79
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
80
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
81
|
* @param {*} [options] Override http request option.
|
|
77
82
|
* @throws {RequiredError}
|
|
78
83
|
*/
|
|
79
|
-
uploadCustomerClaimDocuments: (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
84
|
+
uploadCustomerClaimDocuments: (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
85
|
};
|
|
81
86
|
/**
|
|
82
87
|
* ClaimsApi - functional programming interface
|
|
@@ -88,23 +93,26 @@ export declare const ClaimsApiFp: (configuration?: Configuration) => {
|
|
|
88
93
|
* @summary Create a new claim
|
|
89
94
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
90
95
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
91
97
|
* @param {*} [options] Override http request option.
|
|
92
98
|
* @throws {RequiredError}
|
|
93
99
|
*/
|
|
94
|
-
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerClaimResponseClass>>;
|
|
100
|
+
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerClaimResponseClass>>;
|
|
95
101
|
/**
|
|
96
102
|
* Get claim for customer.
|
|
97
103
|
* @summary Get claim
|
|
98
104
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
99
105
|
* @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.
|
|
100
107
|
* @param {*} [options] Override http request option.
|
|
101
108
|
* @throws {RequiredError}
|
|
102
109
|
*/
|
|
103
|
-
getCustomerClaim(customerCode: string, claimCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerClaimResponseClass>>;
|
|
110
|
+
getCustomerClaim(customerCode: string, claimCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerClaimResponseClass>>;
|
|
104
111
|
/**
|
|
105
112
|
* List claims by customer.
|
|
106
113
|
* @summary List claims
|
|
107
114
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
115
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
108
116
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
109
117
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
110
118
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -114,27 +122,29 @@ export declare const ClaimsApiFp: (configuration?: Configuration) => {
|
|
|
114
122
|
* @param {*} [options] Override http request option.
|
|
115
123
|
* @throws {RequiredError}
|
|
116
124
|
*/
|
|
117
|
-
listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>>;
|
|
125
|
+
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>>;
|
|
118
126
|
/**
|
|
119
127
|
* Update claim for customer.
|
|
120
128
|
* @summary Update claim
|
|
121
129
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
122
130
|
* @param {string} claimCode The claim code to identify a claim.
|
|
123
131
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
132
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
124
133
|
* @param {*} [options] Override http request option.
|
|
125
134
|
* @throws {RequiredError}
|
|
126
135
|
*/
|
|
127
|
-
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerClaimResponseClass>>;
|
|
136
|
+
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerClaimResponseClass>>;
|
|
128
137
|
/**
|
|
129
138
|
* API to upload and attach documents to a claim.
|
|
130
139
|
* @summary Upload claim documents
|
|
131
140
|
* @param {string} customerCode
|
|
132
141
|
* @param {string} claimCode The claim code to identify a claim.
|
|
133
142
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
143
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
134
144
|
* @param {*} [options] Override http request option.
|
|
135
145
|
* @throws {RequiredError}
|
|
136
146
|
*/
|
|
137
|
-
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
147
|
+
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
138
148
|
};
|
|
139
149
|
/**
|
|
140
150
|
* ClaimsApi - factory interface
|
|
@@ -146,23 +156,26 @@ export declare const ClaimsApiFactory: (configuration?: Configuration, basePath?
|
|
|
146
156
|
* @summary Create a new claim
|
|
147
157
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
148
158
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
159
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
160
|
* @param {*} [options] Override http request option.
|
|
150
161
|
* @throws {RequiredError}
|
|
151
162
|
*/
|
|
152
|
-
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: any): AxiosPromise<CreateCustomerClaimResponseClass>;
|
|
163
|
+
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomerClaimResponseClass>;
|
|
153
164
|
/**
|
|
154
165
|
* Get claim for customer.
|
|
155
166
|
* @summary Get claim
|
|
156
167
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
157
168
|
* @param {string} claimCode The claim code to identify a claim.
|
|
169
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
170
|
* @param {*} [options] Override http request option.
|
|
159
171
|
* @throws {RequiredError}
|
|
160
172
|
*/
|
|
161
|
-
getCustomerClaim(customerCode: string, claimCode: string, options?: any): AxiosPromise<GetCustomerClaimResponseClass>;
|
|
173
|
+
getCustomerClaim(customerCode: string, claimCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerClaimResponseClass>;
|
|
162
174
|
/**
|
|
163
175
|
* List claims by customer.
|
|
164
176
|
* @summary List claims
|
|
165
177
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
178
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
166
179
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
167
180
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
168
181
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -172,27 +185,29 @@ export declare const ClaimsApiFactory: (configuration?: Configuration, basePath?
|
|
|
172
185
|
* @param {*} [options] Override http request option.
|
|
173
186
|
* @throws {RequiredError}
|
|
174
187
|
*/
|
|
175
|
-
listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass>;
|
|
188
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass>;
|
|
176
189
|
/**
|
|
177
190
|
* Update claim for customer.
|
|
178
191
|
* @summary Update claim
|
|
179
192
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
180
193
|
* @param {string} claimCode The claim code to identify a claim.
|
|
181
194
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
195
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
182
196
|
* @param {*} [options] Override http request option.
|
|
183
197
|
* @throws {RequiredError}
|
|
184
198
|
*/
|
|
185
|
-
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: any): AxiosPromise<UpdateCustomerClaimResponseClass>;
|
|
199
|
+
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerClaimResponseClass>;
|
|
186
200
|
/**
|
|
187
201
|
* API to upload and attach documents to a claim.
|
|
188
202
|
* @summary Upload claim documents
|
|
189
203
|
* @param {string} customerCode
|
|
190
204
|
* @param {string} claimCode The claim code to identify a claim.
|
|
191
205
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
206
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
192
207
|
* @param {*} [options] Override http request option.
|
|
193
208
|
* @throws {RequiredError}
|
|
194
209
|
*/
|
|
195
|
-
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
210
|
+
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
196
211
|
};
|
|
197
212
|
/**
|
|
198
213
|
* Request parameters for createCustomerClaim operation in ClaimsApi.
|
|
@@ -212,6 +227,12 @@ export interface ClaimsApiCreateCustomerClaimRequest {
|
|
|
212
227
|
* @memberof ClaimsApiCreateCustomerClaim
|
|
213
228
|
*/
|
|
214
229
|
readonly createCustomerClaimRequestDto: CreateCustomerClaimRequestDto;
|
|
230
|
+
/**
|
|
231
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
232
|
+
* @type {string}
|
|
233
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
234
|
+
*/
|
|
235
|
+
readonly authorization?: string;
|
|
215
236
|
}
|
|
216
237
|
/**
|
|
217
238
|
* Request parameters for getCustomerClaim operation in ClaimsApi.
|
|
@@ -231,6 +252,12 @@ export interface ClaimsApiGetCustomerClaimRequest {
|
|
|
231
252
|
* @memberof ClaimsApiGetCustomerClaim
|
|
232
253
|
*/
|
|
233
254
|
readonly claimCode: string;
|
|
255
|
+
/**
|
|
256
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
|
+
* @type {string}
|
|
258
|
+
* @memberof ClaimsApiGetCustomerClaim
|
|
259
|
+
*/
|
|
260
|
+
readonly authorization?: string;
|
|
234
261
|
}
|
|
235
262
|
/**
|
|
236
263
|
* Request parameters for listCustomerClaims operation in ClaimsApi.
|
|
@@ -244,6 +271,12 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
244
271
|
* @memberof ClaimsApiListCustomerClaims
|
|
245
272
|
*/
|
|
246
273
|
readonly customerCode: string;
|
|
274
|
+
/**
|
|
275
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
276
|
+
* @type {string}
|
|
277
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
278
|
+
*/
|
|
279
|
+
readonly authorization?: string;
|
|
247
280
|
/**
|
|
248
281
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
249
282
|
* @type {any}
|
|
@@ -305,6 +338,12 @@ export interface ClaimsApiUpdateCustomerClaimRequest {
|
|
|
305
338
|
* @memberof ClaimsApiUpdateCustomerClaim
|
|
306
339
|
*/
|
|
307
340
|
readonly updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto;
|
|
341
|
+
/**
|
|
342
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
343
|
+
* @type {string}
|
|
344
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
345
|
+
*/
|
|
346
|
+
readonly authorization?: string;
|
|
308
347
|
}
|
|
309
348
|
/**
|
|
310
349
|
* Request parameters for uploadCustomerClaimDocuments operation in ClaimsApi.
|
|
@@ -330,6 +369,12 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
|
|
|
330
369
|
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
331
370
|
*/
|
|
332
371
|
readonly uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto;
|
|
372
|
+
/**
|
|
373
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
376
|
+
*/
|
|
377
|
+
readonly authorization?: string;
|
|
333
378
|
}
|
|
334
379
|
/**
|
|
335
380
|
* ClaimsApi - object-oriented interface
|
package/dist/api/claims-api.js
CHANGED
|
@@ -101,10 +101,11 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
* @summary Create a new claim
|
|
102
102
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
103
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
104
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
105
|
* @param {*} [options] Override http request option.
|
|
105
106
|
* @throws {RequiredError}
|
|
106
107
|
*/
|
|
107
|
-
createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
|
|
108
|
+
createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, options) {
|
|
108
109
|
if (options === void 0) { options = {}; }
|
|
109
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
111
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -132,6 +133,9 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
132
133
|
// authentication bearer required
|
|
133
134
|
// http bearer authentication required
|
|
134
135
|
_a.sent();
|
|
136
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
138
|
+
}
|
|
135
139
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
140
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
141
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -150,10 +154,11 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
150
154
|
* @summary Get claim
|
|
151
155
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
152
156
|
* @param {string} claimCode The claim code to identify a claim.
|
|
157
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
158
|
* @param {*} [options] Override http request option.
|
|
154
159
|
* @throws {RequiredError}
|
|
155
160
|
*/
|
|
156
|
-
getCustomerClaim: function (customerCode, claimCode, options) {
|
|
161
|
+
getCustomerClaim: function (customerCode, claimCode, authorization, options) {
|
|
157
162
|
if (options === void 0) { options = {}; }
|
|
158
163
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -182,6 +187,9 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
182
187
|
// authentication bearer required
|
|
183
188
|
// http bearer authentication required
|
|
184
189
|
_a.sent();
|
|
190
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
192
|
+
}
|
|
185
193
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
194
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
195
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -197,6 +205,7 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
197
205
|
* List claims by customer.
|
|
198
206
|
* @summary List claims
|
|
199
207
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
208
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
200
209
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
201
210
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
202
211
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -206,7 +215,7 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
206
215
|
* @param {*} [options] Override http request option.
|
|
207
216
|
* @throws {RequiredError}
|
|
208
217
|
*/
|
|
209
|
-
listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
|
|
218
|
+
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
210
219
|
if (options === void 0) { options = {}; }
|
|
211
220
|
return __awaiter(_this, void 0, void 0, function () {
|
|
212
221
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -250,6 +259,9 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
250
259
|
if (expand !== undefined) {
|
|
251
260
|
localVarQueryParameter['expand'] = expand;
|
|
252
261
|
}
|
|
262
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
263
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
264
|
+
}
|
|
253
265
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
266
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
267
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -267,10 +279,11 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
267
279
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
268
280
|
* @param {string} claimCode The claim code to identify a claim.
|
|
269
281
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
282
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
270
283
|
* @param {*} [options] Override http request option.
|
|
271
284
|
* @throws {RequiredError}
|
|
272
285
|
*/
|
|
273
|
-
updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
|
|
286
|
+
updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options) {
|
|
274
287
|
if (options === void 0) { options = {}; }
|
|
275
288
|
return __awaiter(_this, void 0, void 0, function () {
|
|
276
289
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -301,6 +314,9 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
301
314
|
// authentication bearer required
|
|
302
315
|
// http bearer authentication required
|
|
303
316
|
_a.sent();
|
|
317
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
318
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
319
|
+
}
|
|
304
320
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
305
321
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
322
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -320,10 +336,11 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
320
336
|
* @param {string} customerCode
|
|
321
337
|
* @param {string} claimCode The claim code to identify a claim.
|
|
322
338
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
339
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
323
340
|
* @param {*} [options] Override http request option.
|
|
324
341
|
* @throws {RequiredError}
|
|
325
342
|
*/
|
|
326
|
-
uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
|
|
343
|
+
uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options) {
|
|
327
344
|
if (options === void 0) { options = {}; }
|
|
328
345
|
return __awaiter(_this, void 0, void 0, function () {
|
|
329
346
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -354,6 +371,9 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
354
371
|
// authentication bearer required
|
|
355
372
|
// http bearer authentication required
|
|
356
373
|
_a.sent();
|
|
374
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
375
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
376
|
+
}
|
|
357
377
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
358
378
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
359
379
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -382,15 +402,16 @@ var ClaimsApiFp = function (configuration) {
|
|
|
382
402
|
* @summary Create a new claim
|
|
383
403
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
384
404
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
405
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
385
406
|
* @param {*} [options] Override http request option.
|
|
386
407
|
* @throws {RequiredError}
|
|
387
408
|
*/
|
|
388
|
-
createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
|
|
409
|
+
createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, options) {
|
|
389
410
|
return __awaiter(this, void 0, void 0, function () {
|
|
390
411
|
var localVarAxiosArgs;
|
|
391
412
|
return __generator(this, function (_a) {
|
|
392
413
|
switch (_a.label) {
|
|
393
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options)];
|
|
414
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, options)];
|
|
394
415
|
case 1:
|
|
395
416
|
localVarAxiosArgs = _a.sent();
|
|
396
417
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -403,15 +424,16 @@ var ClaimsApiFp = function (configuration) {
|
|
|
403
424
|
* @summary Get claim
|
|
404
425
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
405
426
|
* @param {string} claimCode The claim code to identify a claim.
|
|
427
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
406
428
|
* @param {*} [options] Override http request option.
|
|
407
429
|
* @throws {RequiredError}
|
|
408
430
|
*/
|
|
409
|
-
getCustomerClaim: function (customerCode, claimCode, options) {
|
|
431
|
+
getCustomerClaim: function (customerCode, claimCode, authorization, options) {
|
|
410
432
|
return __awaiter(this, void 0, void 0, function () {
|
|
411
433
|
var localVarAxiosArgs;
|
|
412
434
|
return __generator(this, function (_a) {
|
|
413
435
|
switch (_a.label) {
|
|
414
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, options)];
|
|
436
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, authorization, options)];
|
|
415
437
|
case 1:
|
|
416
438
|
localVarAxiosArgs = _a.sent();
|
|
417
439
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -423,6 +445,7 @@ var ClaimsApiFp = function (configuration) {
|
|
|
423
445
|
* List claims by customer.
|
|
424
446
|
* @summary List claims
|
|
425
447
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
448
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
449
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
427
450
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
428
451
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -432,12 +455,12 @@ var ClaimsApiFp = function (configuration) {
|
|
|
432
455
|
* @param {*} [options] Override http request option.
|
|
433
456
|
* @throws {RequiredError}
|
|
434
457
|
*/
|
|
435
|
-
listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
|
|
458
|
+
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
436
459
|
return __awaiter(this, void 0, void 0, function () {
|
|
437
460
|
var localVarAxiosArgs;
|
|
438
461
|
return __generator(this, function (_a) {
|
|
439
462
|
switch (_a.label) {
|
|
440
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options)];
|
|
463
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
441
464
|
case 1:
|
|
442
465
|
localVarAxiosArgs = _a.sent();
|
|
443
466
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -451,15 +474,16 @@ var ClaimsApiFp = function (configuration) {
|
|
|
451
474
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
452
475
|
* @param {string} claimCode The claim code to identify a claim.
|
|
453
476
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
477
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
454
478
|
* @param {*} [options] Override http request option.
|
|
455
479
|
* @throws {RequiredError}
|
|
456
480
|
*/
|
|
457
|
-
updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
|
|
481
|
+
updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options) {
|
|
458
482
|
return __awaiter(this, void 0, void 0, function () {
|
|
459
483
|
var localVarAxiosArgs;
|
|
460
484
|
return __generator(this, function (_a) {
|
|
461
485
|
switch (_a.label) {
|
|
462
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options)];
|
|
486
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options)];
|
|
463
487
|
case 1:
|
|
464
488
|
localVarAxiosArgs = _a.sent();
|
|
465
489
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -473,15 +497,16 @@ var ClaimsApiFp = function (configuration) {
|
|
|
473
497
|
* @param {string} customerCode
|
|
474
498
|
* @param {string} claimCode The claim code to identify a claim.
|
|
475
499
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
500
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
476
501
|
* @param {*} [options] Override http request option.
|
|
477
502
|
* @throws {RequiredError}
|
|
478
503
|
*/
|
|
479
|
-
uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
|
|
504
|
+
uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options) {
|
|
480
505
|
return __awaiter(this, void 0, void 0, function () {
|
|
481
506
|
var localVarAxiosArgs;
|
|
482
507
|
return __generator(this, function (_a) {
|
|
483
508
|
switch (_a.label) {
|
|
484
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options)];
|
|
509
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options)];
|
|
485
510
|
case 1:
|
|
486
511
|
localVarAxiosArgs = _a.sent();
|
|
487
512
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -504,27 +529,30 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
504
529
|
* @summary Create a new claim
|
|
505
530
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
506
531
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
532
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
507
533
|
* @param {*} [options] Override http request option.
|
|
508
534
|
* @throws {RequiredError}
|
|
509
535
|
*/
|
|
510
|
-
createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
|
|
511
|
-
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
536
|
+
createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, options) {
|
|
537
|
+
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
512
538
|
},
|
|
513
539
|
/**
|
|
514
540
|
* Get claim for customer.
|
|
515
541
|
* @summary Get claim
|
|
516
542
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
517
543
|
* @param {string} claimCode The claim code to identify a claim.
|
|
544
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
518
545
|
* @param {*} [options] Override http request option.
|
|
519
546
|
* @throws {RequiredError}
|
|
520
547
|
*/
|
|
521
|
-
getCustomerClaim: function (customerCode, claimCode, options) {
|
|
522
|
-
return localVarFp.getCustomerClaim(customerCode, claimCode, options).then(function (request) { return request(axios, basePath); });
|
|
548
|
+
getCustomerClaim: function (customerCode, claimCode, authorization, options) {
|
|
549
|
+
return localVarFp.getCustomerClaim(customerCode, claimCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
523
550
|
},
|
|
524
551
|
/**
|
|
525
552
|
* List claims by customer.
|
|
526
553
|
* @summary List claims
|
|
527
554
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
555
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
528
556
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
529
557
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
530
558
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -534,8 +562,8 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
534
562
|
* @param {*} [options] Override http request option.
|
|
535
563
|
* @throws {RequiredError}
|
|
536
564
|
*/
|
|
537
|
-
listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
|
|
538
|
-
return localVarFp.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
565
|
+
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
566
|
+
return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
539
567
|
},
|
|
540
568
|
/**
|
|
541
569
|
* Update claim for customer.
|
|
@@ -543,11 +571,12 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
543
571
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
544
572
|
* @param {string} claimCode The claim code to identify a claim.
|
|
545
573
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
574
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
546
575
|
* @param {*} [options] Override http request option.
|
|
547
576
|
* @throws {RequiredError}
|
|
548
577
|
*/
|
|
549
|
-
updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
|
|
550
|
-
return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
578
|
+
updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options) {
|
|
579
|
+
return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
551
580
|
},
|
|
552
581
|
/**
|
|
553
582
|
* API to upload and attach documents to a claim.
|
|
@@ -555,11 +584,12 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
555
584
|
* @param {string} customerCode
|
|
556
585
|
* @param {string} claimCode The claim code to identify a claim.
|
|
557
586
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
587
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
558
588
|
* @param {*} [options] Override http request option.
|
|
559
589
|
* @throws {RequiredError}
|
|
560
590
|
*/
|
|
561
|
-
uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
|
|
562
|
-
return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
591
|
+
uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options) {
|
|
592
|
+
return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
563
593
|
},
|
|
564
594
|
};
|
|
565
595
|
};
|
|
@@ -585,7 +615,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
585
615
|
*/
|
|
586
616
|
ClaimsApi.prototype.createCustomerClaim = function (requestParameters, options) {
|
|
587
617
|
var _this = this;
|
|
588
|
-
return (0, exports.ClaimsApiFp)(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
618
|
+
return (0, exports.ClaimsApiFp)(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
589
619
|
};
|
|
590
620
|
/**
|
|
591
621
|
* Get claim for customer.
|
|
@@ -597,7 +627,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
597
627
|
*/
|
|
598
628
|
ClaimsApi.prototype.getCustomerClaim = function (requestParameters, options) {
|
|
599
629
|
var _this = this;
|
|
600
|
-
return (0, exports.ClaimsApiFp)(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
630
|
+
return (0, exports.ClaimsApiFp)(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
601
631
|
};
|
|
602
632
|
/**
|
|
603
633
|
* List claims by customer.
|
|
@@ -609,7 +639,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
609
639
|
*/
|
|
610
640
|
ClaimsApi.prototype.listCustomerClaims = function (requestParameters, options) {
|
|
611
641
|
var _this = this;
|
|
612
|
-
return (0, exports.ClaimsApiFp)(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
642
|
+
return (0, exports.ClaimsApiFp)(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
643
|
};
|
|
614
644
|
/**
|
|
615
645
|
* Update claim for customer.
|
|
@@ -621,7 +651,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
621
651
|
*/
|
|
622
652
|
ClaimsApi.prototype.updateCustomerClaim = function (requestParameters, options) {
|
|
623
653
|
var _this = this;
|
|
624
|
-
return (0, exports.ClaimsApiFp)(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
654
|
+
return (0, exports.ClaimsApiFp)(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
625
655
|
};
|
|
626
656
|
/**
|
|
627
657
|
* API to upload and attach documents to a claim.
|
|
@@ -633,7 +663,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
633
663
|
*/
|
|
634
664
|
ClaimsApi.prototype.uploadCustomerClaimDocuments = function (requestParameters, options) {
|
|
635
665
|
var _this = this;
|
|
636
|
-
return (0, exports.ClaimsApiFp)(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
666
|
+
return (0, exports.ClaimsApiFp)(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
637
667
|
};
|
|
638
668
|
return ClaimsApi;
|
|
639
669
|
}(base_1.BaseAPI));
|
package/dist/base.js
CHANGED
|
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
109
109
|
var fs = __importStar(require("fs"));
|
|
110
110
|
var path = __importStar(require("path"));
|
|
111
111
|
var os = __importStar(require("os"));
|
|
112
|
-
exports.BASE_PATH = "
|
|
112
|
+
exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
113
113
|
var CONFIG_DIRECTORY = '.emil';
|
|
114
114
|
var CONFIG_FILENAME = 'credentials';
|
|
115
115
|
var KEY_USERNAME = 'emil_username';
|
package/models/account-class.ts
CHANGED