@emilgroup/customer-sdk-node 1.6.1 → 1.9.0-beta.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/.openapi-generator/FILES +17 -0
- package/README.md +2 -2
- package/api/claims-api.ts +557 -0
- package/api/customers-api.ts +248 -712
- package/api/policies-api.ts +856 -0
- package/api.ts +5 -1
- package/base.ts +24 -32
- package/common.ts +2 -1
- package/configuration.ts +1 -1
- package/dist/api/claims-api.d.ts +327 -0
- package/dist/api/claims-api.js +508 -0
- package/dist/api/customers-api.d.ts +171 -448
- package/dist/api/customers-api.js +189 -508
- package/dist/api/policies-api.d.ts +505 -0
- package/dist/api/policies-api.js +714 -0
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/base.d.ts +2 -3
- package/dist/base.js +20 -21
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/account-policy-class.d.ts +1 -1
- package/dist/models/account-policy-class.js +1 -1
- package/dist/models/authentication-result-class.d.ts +1 -1
- package/dist/models/authentication-result-class.js +1 -1
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-psp-request.d.ts +32 -0
- package/dist/models/complete-payment-setup-psp-request.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +24 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +96 -0
- package/dist/models/create-account-request-dto.js +21 -0
- package/dist/models/create-customer-claim-request-dto.d.ts +108 -0
- package/dist/models/create-customer-claim-request-dto.js +15 -0
- package/dist/models/create-customer-request-dto.d.ts +8 -1
- package/dist/models/create-customer-request-dto.js +1 -1
- package/dist/models/create-customer-response-class.d.ts +1 -1
- package/dist/models/create-customer-response-class.js +1 -1
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/customer-class.d.ts +8 -2
- package/dist/models/customer-class.js +1 -1
- package/dist/models/customer-document-class.d.ts +2 -2
- package/dist/models/customer-document-class.js +1 -1
- package/dist/models/forgot-password-request-dto.d.ts +1 -1
- package/dist/models/forgot-password-request-dto.js +1 -1
- package/dist/models/get-customer-document-download-url-response-class.d.ts +1 -1
- package/dist/models/get-customer-document-download-url-response-class.js +1 -1
- package/dist/models/get-customer-response-class.d.ts +1 -1
- package/dist/models/get-customer-response-class.js +1 -1
- package/dist/models/get-policy-response-class.d.ts +1 -1
- package/dist/models/get-policy-response-class.js +1 -1
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/models/initiate-auth-request-dto.d.ts +1 -1
- package/dist/models/initiate-auth-request-dto.js +1 -1
- package/dist/models/initiate-auth-response-class.d.ts +1 -1
- package/dist/models/initiate-auth-response-class.js +1 -1
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/invite-by-customer-request-dto.d.ts +1 -1
- package/dist/models/invite-by-customer-request-dto.js +1 -1
- package/dist/models/invite-by-customer-response-class.d.ts +1 -1
- package/dist/models/invite-by-customer-response-class.js +1 -1
- package/dist/models/invite-by-tenant-response-class.d.ts +1 -1
- package/dist/models/invite-by-tenant-response-class.js +1 -1
- package/dist/models/invite-class.d.ts +1 -1
- package/dist/models/invite-class.js +1 -1
- package/dist/models/invoice-class.d.ts +3 -3
- package/dist/models/invoice-class.js +1 -1
- package/dist/models/list-documents-response-class.d.ts +1 -1
- package/dist/models/list-documents-response-class.js +1 -1
- package/dist/models/list-invoices-response-class.d.ts +1 -1
- package/dist/models/list-invoices-response-class.js +1 -1
- package/dist/models/list-policies-response-class.d.ts +1 -1
- package/dist/models/list-policies-response-class.js +1 -1
- package/dist/models/policy-class.d.ts +14 -1
- package/dist/models/policy-class.js +1 -1
- package/dist/models/policy-object-class.d.ts +1 -1
- package/dist/models/policy-object-class.js +1 -1
- package/dist/models/policy-premium-class.d.ts +1 -1
- package/dist/models/policy-premium-class.js +1 -1
- package/dist/models/policy-premium-item-class.d.ts +1 -1
- package/dist/models/policy-premium-item-class.js +1 -1
- package/dist/models/policy-version-class.d.ts +1 -1
- package/dist/models/policy-version-class.js +1 -1
- package/dist/models/refresh-token-dto.d.ts +1 -1
- package/dist/models/refresh-token-dto.js +1 -1
- package/dist/models/request-policy-update-request-dto.d.ts +1 -1
- package/dist/models/request-policy-update-request-dto.js +1 -1
- package/dist/models/request-policy-update-response-class.d.ts +1 -1
- package/dist/models/request-policy-update-response-class.js +1 -1
- package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
- package/dist/models/reset-password-by-customer-request-dto.js +1 -1
- package/dist/models/respond-to-auth-challenge-class.d.ts +1 -1
- package/dist/models/respond-to-auth-challenge-class.js +1 -1
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +1 -1
- package/dist/models/respond-to-auth-challenge-request-dto.js +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.js +1 -1
- package/dist/models/shared-customer-product-class.d.ts +54 -0
- package/dist/models/shared-customer-product-class.js +15 -0
- package/dist/models/shared-invoice-item-class.d.ts +1 -1
- package/dist/models/shared-invoice-item-class.js +1 -1
- package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
- package/dist/models/terminate-customer-policy-request-dto.js +1 -1
- package/dist/models/terminate-customer-policy-response-class.d.ts +1 -1
- package/dist/models/terminate-customer-policy-response-class.js +1 -1
- package/dist/models/timeslice-class.d.ts +1 -1
- package/dist/models/timeslice-class.js +1 -1
- package/dist/models/to-grpc-customer-product-class.d.ts +54 -0
- package/dist/models/to-grpc-customer-product-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +2 -2
- package/dist/models/update-account-request-dto.js +1 -1
- package/dist/models/update-customer-claim-request-dto.d.ts +120 -0
- package/dist/models/update-customer-claim-request-dto.js +15 -0
- package/dist/models/update-customer-request-dto.d.ts +1 -1
- package/dist/models/update-customer-request-dto.js +1 -1
- package/dist/models/update-customer-response-class.d.ts +1 -1
- package/dist/models/update-customer-response-class.js +1 -1
- package/dist/models/upload-customer-claim-documents-request-dto.d.ts +36 -0
- package/dist/models/upload-customer-claim-documents-request-dto.js +15 -0
- package/dist/models/upload-customer-policy-documents-request-dto.d.ts +47 -0
- package/dist/models/upload-customer-policy-documents-request-dto.js +20 -0
- package/dist/models/verify-customer-invite-response-class.d.ts +1 -1
- package/dist/models/verify-customer-invite-response-class.js +1 -1
- package/dist/models/withdraw-customer-policy-response-class.d.ts +1 -1
- package/dist/models/withdraw-customer-policy-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/account-class.ts +1 -1
- package/models/account-policy-class.ts +1 -1
- package/models/authentication-result-class.ts +1 -1
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-psp-request.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +30 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
- package/models/create-account-request-dto.ts +105 -0
- package/models/create-customer-claim-request-dto.ts +114 -0
- package/models/create-customer-request-dto.ts +8 -1
- package/models/create-customer-response-class.ts +1 -1
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/customer-class.ts +8 -2
- package/models/customer-document-class.ts +1 -1
- package/models/forgot-password-request-dto.ts +1 -1
- package/models/get-customer-document-download-url-response-class.ts +1 -1
- package/models/get-customer-response-class.ts +1 -1
- package/models/get-policy-response-class.ts +1 -1
- package/models/index.ts +15 -0
- package/models/initiate-auth-request-dto.ts +1 -1
- package/models/initiate-auth-response-class.ts +1 -1
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/invite-by-customer-request-dto.ts +1 -1
- package/models/invite-by-customer-response-class.ts +1 -1
- package/models/invite-by-tenant-response-class.ts +1 -1
- package/models/invite-class.ts +1 -1
- package/models/invoice-class.ts +1 -1
- package/models/list-documents-response-class.ts +1 -1
- package/models/list-invoices-response-class.ts +1 -1
- package/models/list-policies-response-class.ts +1 -1
- package/models/policy-class.ts +14 -1
- package/models/policy-object-class.ts +1 -1
- package/models/policy-premium-class.ts +1 -1
- package/models/policy-premium-item-class.ts +1 -1
- package/models/policy-version-class.ts +1 -1
- package/models/refresh-token-dto.ts +1 -1
- package/models/request-policy-update-request-dto.ts +1 -1
- package/models/request-policy-update-response-class.ts +1 -1
- package/models/reset-password-by-customer-request-dto.ts +1 -1
- package/models/respond-to-auth-challenge-class.ts +1 -1
- package/models/respond-to-auth-challenge-request-dto.ts +1 -1
- package/models/shared-customer-policy-object-request-dto.ts +1 -1
- package/models/shared-customer-product-class.ts +60 -0
- package/models/shared-invoice-item-class.ts +1 -1
- package/models/terminate-customer-policy-request-dto.ts +1 -1
- package/models/terminate-customer-policy-response-class.ts +1 -1
- package/models/timeslice-class.ts +1 -1
- package/models/to-grpc-customer-product-class.ts +60 -0
- package/models/update-account-request-dto.ts +1 -1
- package/models/update-customer-claim-request-dto.ts +126 -0
- package/models/update-customer-request-dto.ts +1 -1
- package/models/update-customer-response-class.ts +1 -1
- package/models/upload-customer-claim-documents-request-dto.ts +42 -0
- package/models/upload-customer-policy-documents-request-dto.ts +56 -0
- package/models/verify-customer-invite-response-class.ts +1 -1
- package/models/withdraw-customer-policy-response-class.ts +1 -1
- package/package.json +2 -3
package/api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL CustomerService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -24,10 +24,14 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
+
import { ClaimsApi } from './api';
|
|
27
28
|
import { CustomersApi } from './api';
|
|
29
|
+
import { PoliciesApi } from './api';
|
|
28
30
|
|
|
29
31
|
|
|
32
|
+
export * from './api/claims-api';
|
|
30
33
|
export * from './api/customers-api';
|
|
34
|
+
export * from './api/policies-api';
|
|
31
35
|
|
|
32
36
|
|
|
33
37
|
export enum Environment {
|
package/base.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL CustomerService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -43,7 +43,6 @@ export const COLLECTION_FORMATS = {
|
|
|
43
43
|
export interface LoginClass {
|
|
44
44
|
accessToken: string;
|
|
45
45
|
permissions: Array<string>;
|
|
46
|
-
newPasswordRequired: boolean;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
export enum Environment {
|
|
@@ -51,6 +50,13 @@ export enum Environment {
|
|
|
51
50
|
Test = 'https://apiv2-test.emil.de',
|
|
52
51
|
}
|
|
53
52
|
|
|
53
|
+
let _retry_count = 0
|
|
54
|
+
let _retry = null
|
|
55
|
+
|
|
56
|
+
export function resetRetry() {
|
|
57
|
+
_retry_count = 0
|
|
58
|
+
}
|
|
59
|
+
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @export
|
|
@@ -70,7 +76,6 @@ const NETWORK_ERROR_MESSAGE = "Network Error";
|
|
|
70
76
|
*/
|
|
71
77
|
export class BaseAPI {
|
|
72
78
|
protected configuration: Configuration | undefined;
|
|
73
|
-
private lastRequestConfig?: AxiosRequestConfig;
|
|
74
79
|
private username?: string;
|
|
75
80
|
private password?: string;
|
|
76
81
|
private isCustomerToken = false;
|
|
@@ -245,6 +250,7 @@ export class BaseAPI {
|
|
|
245
250
|
data: { username: username },
|
|
246
251
|
withCredentials: true,
|
|
247
252
|
};
|
|
253
|
+
|
|
248
254
|
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
249
255
|
|
|
250
256
|
return accessToken;
|
|
@@ -268,7 +274,7 @@ export class BaseAPI {
|
|
|
268
274
|
withCredentials: true,
|
|
269
275
|
};
|
|
270
276
|
|
|
271
|
-
|
|
277
|
+
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
272
278
|
|
|
273
279
|
return accessToken;
|
|
274
280
|
}
|
|
@@ -284,13 +290,6 @@ export class BaseAPI {
|
|
|
284
290
|
}
|
|
285
291
|
|
|
286
292
|
private attachInterceptor(axios: AxiosInstance) {
|
|
287
|
-
axios.interceptors.request.use((config) => {
|
|
288
|
-
if (config.url?.indexOf('refresh-token') === -1) {
|
|
289
|
-
this.lastRequestConfig = config;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
return config;
|
|
293
|
-
});
|
|
294
293
|
axios.interceptors.response.use(
|
|
295
294
|
(res) => {
|
|
296
295
|
return res;
|
|
@@ -310,13 +309,9 @@ export class BaseAPI {
|
|
|
310
309
|
}
|
|
311
310
|
const accessToken = `Bearer ${tokenString}`;
|
|
312
311
|
|
|
313
|
-
|
|
314
|
-
localVarHeaderParameter['Authorization'] = accessToken;
|
|
312
|
+
delete originalConfig.headers['Authorization']
|
|
315
313
|
|
|
316
|
-
originalConfig.headers =
|
|
317
|
-
...originalConfig.headers,
|
|
318
|
-
...localVarHeaderParameter,
|
|
319
|
-
};
|
|
314
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
320
315
|
|
|
321
316
|
this.configuration.accessToken = accessToken;
|
|
322
317
|
|
|
@@ -331,7 +326,12 @@ export class BaseAPI {
|
|
|
331
326
|
if (err.response.status === 403 && err.response.data) {
|
|
332
327
|
return Promise.reject(err.response.data);
|
|
333
328
|
}
|
|
334
|
-
} else if
|
|
329
|
+
} else if(err.message === NETWORK_ERROR_MESSAGE
|
|
330
|
+
&& err.isAxiosError
|
|
331
|
+
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
332
|
+
&& _retry_count < 4
|
|
333
|
+
){
|
|
334
|
+
_retry_count++;
|
|
335
335
|
try {
|
|
336
336
|
let tokenString: string;
|
|
337
337
|
if (this.isCustomerToken) {
|
|
@@ -341,23 +341,14 @@ export class BaseAPI {
|
|
|
341
341
|
}
|
|
342
342
|
const accessToken = `Bearer ${tokenString}`;
|
|
343
343
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
this.lastRequestConfig.headers = {
|
|
348
|
-
...originalConfig.headers,
|
|
349
|
-
...localVarHeaderParameter,
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
originalConfig = {
|
|
353
|
-
...this.lastRequestConfig,
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
originalConfig._retry = true;
|
|
344
|
+
_retry = true;
|
|
345
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
357
346
|
|
|
358
347
|
this.configuration.accessToken = accessToken;
|
|
359
348
|
|
|
360
|
-
return axios(
|
|
349
|
+
return axios.request({
|
|
350
|
+
...originalConfig,
|
|
351
|
+
});
|
|
361
352
|
} catch (_error) {
|
|
362
353
|
if (_error.response && _error.response.data) {
|
|
363
354
|
return Promise.reject(_error.response.data);
|
|
@@ -383,3 +374,4 @@ export class RequiredError extends Error {
|
|
|
383
374
|
super(msg);
|
|
384
375
|
}
|
|
385
376
|
}
|
|
377
|
+
|
package/common.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL CustomerService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -137,3 +137,4 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
137
137
|
return axios.request<T, R>(axiosRequestArgs);
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
+
|
package/configuration.ts
CHANGED
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateCustomerClaimRequestDto } from '../models';
|
|
16
|
+
import { CreatePresignedPostResponseClass } from '../models';
|
|
17
|
+
import { UpdateCustomerClaimRequestDto } from '../models';
|
|
18
|
+
import { UploadCustomerClaimDocumentsRequestDto } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* ClaimsApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const ClaimsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
* Create a new claim for customer.
|
|
26
|
+
* @summary Create a new claim for customer
|
|
27
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
28
|
+
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
createCustomerClaim: (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
/**
|
|
34
|
+
* List claims by customer.
|
|
35
|
+
* @summary List claims by customer
|
|
36
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
37
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
38
|
+
* @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.
|
|
39
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
40
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
41
|
+
* @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.
|
|
42
|
+
* @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.
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
listCustomerClaims: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
/**
|
|
48
|
+
* Update claim for customer.
|
|
49
|
+
* @summary Update claim for customer
|
|
50
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
51
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
52
|
+
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
updateCustomerClaim: (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
/**
|
|
58
|
+
* API to upload and attach documents to a claim.
|
|
59
|
+
* @summary Upload claim documents
|
|
60
|
+
* @param {string} customerCode
|
|
61
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
62
|
+
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
uploadCustomerClaimDocuments: (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* ClaimsApi - functional programming interface
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const ClaimsApiFp: (configuration?: Configuration) => {
|
|
73
|
+
/**
|
|
74
|
+
* Create a new claim for customer.
|
|
75
|
+
* @summary Create a new claim for customer
|
|
76
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
77
|
+
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
82
|
+
/**
|
|
83
|
+
* List claims by customer.
|
|
84
|
+
* @summary List claims by customer
|
|
85
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
86
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
87
|
+
* @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.
|
|
88
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
89
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
90
|
+
* @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.
|
|
91
|
+
* @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.
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
96
|
+
/**
|
|
97
|
+
* Update claim for customer.
|
|
98
|
+
* @summary Update claim for customer
|
|
99
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
100
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
101
|
+
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
106
|
+
/**
|
|
107
|
+
* API to upload and attach documents to a claim.
|
|
108
|
+
* @summary Upload claim documents
|
|
109
|
+
* @param {string} customerCode
|
|
110
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
111
|
+
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* ClaimsApi - factory interface
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export declare const ClaimsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
122
|
+
/**
|
|
123
|
+
* Create a new claim for customer.
|
|
124
|
+
* @summary Create a new claim for customer
|
|
125
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
126
|
+
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
130
|
+
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: any): AxiosPromise<object>;
|
|
131
|
+
/**
|
|
132
|
+
* List claims by customer.
|
|
133
|
+
* @summary List claims by customer
|
|
134
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
135
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
136
|
+
* @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.
|
|
137
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
138
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
139
|
+
* @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.
|
|
140
|
+
* @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.
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<object>;
|
|
145
|
+
/**
|
|
146
|
+
* Update claim for customer.
|
|
147
|
+
* @summary Update claim for customer
|
|
148
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
149
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
150
|
+
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: any): AxiosPromise<object>;
|
|
155
|
+
/**
|
|
156
|
+
* API to upload and attach documents to a claim.
|
|
157
|
+
* @summary Upload claim documents
|
|
158
|
+
* @param {string} customerCode
|
|
159
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
160
|
+
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Request parameters for createCustomerClaim operation in ClaimsApi.
|
|
168
|
+
* @export
|
|
169
|
+
* @interface ClaimsApiCreateCustomerClaimRequest
|
|
170
|
+
*/
|
|
171
|
+
export interface ClaimsApiCreateCustomerClaimRequest {
|
|
172
|
+
/**
|
|
173
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
174
|
+
* @type {string}
|
|
175
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
176
|
+
*/
|
|
177
|
+
readonly customerCode: string;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {CreateCustomerClaimRequestDto}
|
|
181
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
182
|
+
*/
|
|
183
|
+
readonly createCustomerClaimRequestDto: CreateCustomerClaimRequestDto;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Request parameters for listCustomerClaims operation in ClaimsApi.
|
|
187
|
+
* @export
|
|
188
|
+
* @interface ClaimsApiListCustomerClaimsRequest
|
|
189
|
+
*/
|
|
190
|
+
export interface ClaimsApiListCustomerClaimsRequest {
|
|
191
|
+
/**
|
|
192
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
195
|
+
*/
|
|
196
|
+
readonly customerCode: string;
|
|
197
|
+
/**
|
|
198
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
199
|
+
* @type {any}
|
|
200
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
201
|
+
*/
|
|
202
|
+
readonly pageSize?: any;
|
|
203
|
+
/**
|
|
204
|
+
* 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.
|
|
205
|
+
* @type {any}
|
|
206
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
207
|
+
*/
|
|
208
|
+
readonly pageToken?: any;
|
|
209
|
+
/**
|
|
210
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
211
|
+
* @type {any}
|
|
212
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
213
|
+
*/
|
|
214
|
+
readonly filter?: any;
|
|
215
|
+
/**
|
|
216
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
217
|
+
* @type {any}
|
|
218
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
219
|
+
*/
|
|
220
|
+
readonly search?: any;
|
|
221
|
+
/**
|
|
222
|
+
* 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.
|
|
223
|
+
* @type {any}
|
|
224
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
225
|
+
*/
|
|
226
|
+
readonly order?: any;
|
|
227
|
+
/**
|
|
228
|
+
* 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.
|
|
229
|
+
* @type {any}
|
|
230
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
231
|
+
*/
|
|
232
|
+
readonly expand?: any;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Request parameters for updateCustomerClaim operation in ClaimsApi.
|
|
236
|
+
* @export
|
|
237
|
+
* @interface ClaimsApiUpdateCustomerClaimRequest
|
|
238
|
+
*/
|
|
239
|
+
export interface ClaimsApiUpdateCustomerClaimRequest {
|
|
240
|
+
/**
|
|
241
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
242
|
+
* @type {string}
|
|
243
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
244
|
+
*/
|
|
245
|
+
readonly customerCode: string;
|
|
246
|
+
/**
|
|
247
|
+
* The claim code to identify a claim.
|
|
248
|
+
* @type {string}
|
|
249
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
250
|
+
*/
|
|
251
|
+
readonly claimCode: string;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @type {UpdateCustomerClaimRequestDto}
|
|
255
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
256
|
+
*/
|
|
257
|
+
readonly updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Request parameters for uploadCustomerClaimDocuments operation in ClaimsApi.
|
|
261
|
+
* @export
|
|
262
|
+
* @interface ClaimsApiUploadCustomerClaimDocumentsRequest
|
|
263
|
+
*/
|
|
264
|
+
export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
* @type {string}
|
|
268
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
269
|
+
*/
|
|
270
|
+
readonly customerCode: string;
|
|
271
|
+
/**
|
|
272
|
+
* The claim code to identify a claim.
|
|
273
|
+
* @type {string}
|
|
274
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
275
|
+
*/
|
|
276
|
+
readonly claimCode: string;
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @type {UploadCustomerClaimDocumentsRequestDto}
|
|
280
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
281
|
+
*/
|
|
282
|
+
readonly uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* ClaimsApi - object-oriented interface
|
|
286
|
+
* @export
|
|
287
|
+
* @class ClaimsApi
|
|
288
|
+
* @extends {BaseAPI}
|
|
289
|
+
*/
|
|
290
|
+
export declare class ClaimsApi extends BaseAPI {
|
|
291
|
+
/**
|
|
292
|
+
* Create a new claim for customer.
|
|
293
|
+
* @summary Create a new claim for customer
|
|
294
|
+
* @param {ClaimsApiCreateCustomerClaimRequest} requestParameters Request parameters.
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
* @memberof ClaimsApi
|
|
298
|
+
*/
|
|
299
|
+
createCustomerClaim(requestParameters: ClaimsApiCreateCustomerClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
300
|
+
/**
|
|
301
|
+
* List claims by customer.
|
|
302
|
+
* @summary List claims by customer
|
|
303
|
+
* @param {ClaimsApiListCustomerClaimsRequest} requestParameters Request parameters.
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
* @memberof ClaimsApi
|
|
307
|
+
*/
|
|
308
|
+
listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
309
|
+
/**
|
|
310
|
+
* Update claim for customer.
|
|
311
|
+
* @summary Update claim for customer
|
|
312
|
+
* @param {ClaimsApiUpdateCustomerClaimRequest} requestParameters Request parameters.
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
* @memberof ClaimsApi
|
|
316
|
+
*/
|
|
317
|
+
updateCustomerClaim(requestParameters: ClaimsApiUpdateCustomerClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
318
|
+
/**
|
|
319
|
+
* API to upload and attach documents to a claim.
|
|
320
|
+
* @summary Upload claim documents
|
|
321
|
+
* @param {ClaimsApiUploadCustomerClaimDocumentsRequest} requestParameters Request parameters.
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
* @memberof ClaimsApi
|
|
325
|
+
*/
|
|
326
|
+
uploadCustomerClaimDocuments(requestParameters: ClaimsApiUploadCustomerClaimDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
|
|
327
|
+
}
|