@emilgroup/customer-sdk-node 1.6.0 → 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.
Files changed (201) hide show
  1. package/.openapi-generator/FILES +19 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +557 -0
  4. package/api/customers-api.ts +248 -712
  5. package/api/policies-api.ts +856 -0
  6. package/api.ts +5 -1
  7. package/base.ts +24 -32
  8. package/common.ts +2 -1
  9. package/configuration.ts +1 -1
  10. package/dist/api/claims-api.d.ts +327 -0
  11. package/dist/api/claims-api.js +508 -0
  12. package/dist/api/customers-api.d.ts +171 -448
  13. package/dist/api/customers-api.js +189 -508
  14. package/dist/api/policies-api.d.ts +505 -0
  15. package/dist/api/policies-api.js +714 -0
  16. package/dist/api.d.ts +3 -1
  17. package/dist/api.js +3 -1
  18. package/dist/base.d.ts +2 -3
  19. package/dist/base.js +20 -21
  20. package/dist/common.d.ts +1 -1
  21. package/dist/common.js +2 -2
  22. package/dist/configuration.d.ts +1 -1
  23. package/dist/configuration.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/models/account-class.d.ts +4 -3
  27. package/dist/models/account-class.js +1 -1
  28. package/dist/models/account-policy-class.d.ts +30 -0
  29. package/dist/models/account-policy-class.js +15 -0
  30. package/dist/models/authentication-result-class.d.ts +1 -1
  31. package/dist/models/authentication-result-class.js +1 -1
  32. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  33. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  34. package/dist/models/complete-payment-setup-psp-request.d.ts +32 -0
  35. package/dist/models/complete-payment-setup-psp-request.js +15 -0
  36. package/dist/models/complete-payment-setup-response-class.d.ts +24 -0
  37. package/dist/models/complete-payment-setup-response-class.js +15 -0
  38. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  39. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  40. package/dist/models/create-account-request-dto.d.ts +96 -0
  41. package/dist/models/create-account-request-dto.js +21 -0
  42. package/dist/models/create-customer-claim-request-dto.d.ts +108 -0
  43. package/dist/models/create-customer-claim-request-dto.js +15 -0
  44. package/dist/models/create-customer-request-dto.d.ts +8 -1
  45. package/dist/models/create-customer-request-dto.js +1 -1
  46. package/dist/models/create-customer-response-class.d.ts +1 -1
  47. package/dist/models/create-customer-response-class.js +1 -1
  48. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  49. package/dist/models/create-presigned-post-response-class.js +15 -0
  50. package/dist/models/customer-class.d.ts +8 -2
  51. package/dist/models/customer-class.js +1 -1
  52. package/dist/models/customer-document-class.d.ts +2 -2
  53. package/dist/models/customer-document-class.js +1 -1
  54. package/dist/models/forgot-password-request-dto.d.ts +1 -1
  55. package/dist/models/forgot-password-request-dto.js +1 -1
  56. package/dist/models/get-customer-document-download-url-response-class.d.ts +1 -1
  57. package/dist/models/get-customer-document-download-url-response-class.js +1 -1
  58. package/dist/models/get-customer-response-class.d.ts +1 -1
  59. package/dist/models/get-customer-response-class.js +1 -1
  60. package/dist/models/get-policy-response-class.d.ts +1 -1
  61. package/dist/models/get-policy-response-class.js +1 -1
  62. package/dist/models/index.d.ts +17 -0
  63. package/dist/models/index.js +17 -0
  64. package/dist/models/initiate-auth-request-dto.d.ts +1 -1
  65. package/dist/models/initiate-auth-request-dto.js +1 -1
  66. package/dist/models/initiate-auth-response-class.d.ts +1 -1
  67. package/dist/models/initiate-auth-response-class.js +1 -1
  68. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  69. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  70. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  71. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  72. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  73. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  74. package/dist/models/invite-by-customer-request-dto.d.ts +1 -1
  75. package/dist/models/invite-by-customer-request-dto.js +1 -1
  76. package/dist/models/invite-by-customer-response-class.d.ts +1 -1
  77. package/dist/models/invite-by-customer-response-class.js +1 -1
  78. package/dist/models/invite-by-tenant-response-class.d.ts +1 -1
  79. package/dist/models/invite-by-tenant-response-class.js +1 -1
  80. package/dist/models/invite-class.d.ts +1 -1
  81. package/dist/models/invite-class.js +1 -1
  82. package/dist/models/invoice-class.d.ts +3 -3
  83. package/dist/models/invoice-class.js +1 -1
  84. package/dist/models/list-documents-response-class.d.ts +1 -1
  85. package/dist/models/list-documents-response-class.js +1 -1
  86. package/dist/models/list-invoices-response-class.d.ts +1 -1
  87. package/dist/models/list-invoices-response-class.js +1 -1
  88. package/dist/models/list-policies-response-class.d.ts +1 -1
  89. package/dist/models/list-policies-response-class.js +1 -1
  90. package/dist/models/policy-class.d.ts +14 -1
  91. package/dist/models/policy-class.js +1 -1
  92. package/dist/models/policy-object-class.d.ts +1 -1
  93. package/dist/models/policy-object-class.js +1 -1
  94. package/dist/models/policy-premium-class.d.ts +1 -1
  95. package/dist/models/policy-premium-class.js +1 -1
  96. package/dist/models/policy-premium-item-class.d.ts +1 -1
  97. package/dist/models/policy-premium-item-class.js +1 -1
  98. package/dist/models/policy-version-class.d.ts +1 -1
  99. package/dist/models/policy-version-class.js +1 -1
  100. package/dist/models/refresh-token-dto.d.ts +1 -1
  101. package/dist/models/refresh-token-dto.js +1 -1
  102. package/dist/models/request-policy-update-request-dto.d.ts +4 -3
  103. package/dist/models/request-policy-update-request-dto.js +1 -1
  104. package/dist/models/request-policy-update-response-class.d.ts +1 -1
  105. package/dist/models/request-policy-update-response-class.js +1 -1
  106. package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
  107. package/dist/models/reset-password-by-customer-request-dto.js +1 -1
  108. package/dist/models/respond-to-auth-challenge-class.d.ts +1 -1
  109. package/dist/models/respond-to-auth-challenge-class.js +1 -1
  110. package/dist/models/respond-to-auth-challenge-request-dto.d.ts +1 -1
  111. package/dist/models/respond-to-auth-challenge-request-dto.js +1 -1
  112. package/dist/models/shared-customer-policy-object-request-dto.d.ts +30 -0
  113. package/dist/models/shared-customer-policy-object-request-dto.js +15 -0
  114. package/dist/models/shared-customer-product-class.d.ts +54 -0
  115. package/dist/models/shared-customer-product-class.js +15 -0
  116. package/dist/models/shared-invoice-item-class.d.ts +1 -1
  117. package/dist/models/shared-invoice-item-class.js +1 -1
  118. package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
  119. package/dist/models/terminate-customer-policy-request-dto.js +1 -1
  120. package/dist/models/terminate-customer-policy-response-class.d.ts +1 -1
  121. package/dist/models/terminate-customer-policy-response-class.js +1 -1
  122. package/dist/models/timeslice-class.d.ts +1 -1
  123. package/dist/models/timeslice-class.js +1 -1
  124. package/dist/models/to-grpc-customer-product-class.d.ts +54 -0
  125. package/dist/models/to-grpc-customer-product-class.js +15 -0
  126. package/dist/models/update-account-request-dto.d.ts +2 -2
  127. package/dist/models/update-account-request-dto.js +1 -1
  128. package/dist/models/update-customer-claim-request-dto.d.ts +120 -0
  129. package/dist/models/update-customer-claim-request-dto.js +15 -0
  130. package/dist/models/update-customer-request-dto.d.ts +1 -1
  131. package/dist/models/update-customer-request-dto.js +1 -1
  132. package/dist/models/update-customer-response-class.d.ts +1 -1
  133. package/dist/models/update-customer-response-class.js +1 -1
  134. package/dist/models/upload-customer-claim-documents-request-dto.d.ts +36 -0
  135. package/dist/models/upload-customer-claim-documents-request-dto.js +15 -0
  136. package/dist/models/upload-customer-policy-documents-request-dto.d.ts +47 -0
  137. package/dist/models/upload-customer-policy-documents-request-dto.js +20 -0
  138. package/dist/models/verify-customer-invite-response-class.d.ts +1 -1
  139. package/dist/models/verify-customer-invite-response-class.js +1 -1
  140. package/dist/models/withdraw-customer-policy-response-class.d.ts +1 -1
  141. package/dist/models/withdraw-customer-policy-response-class.js +1 -1
  142. package/index.ts +1 -1
  143. package/models/account-class.ts +4 -3
  144. package/models/account-policy-class.ts +36 -0
  145. package/models/authentication-result-class.ts +1 -1
  146. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  147. package/models/complete-payment-setup-psp-request.ts +38 -0
  148. package/models/complete-payment-setup-response-class.ts +30 -0
  149. package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
  150. package/models/create-account-request-dto.ts +105 -0
  151. package/models/create-customer-claim-request-dto.ts +114 -0
  152. package/models/create-customer-request-dto.ts +8 -1
  153. package/models/create-customer-response-class.ts +1 -1
  154. package/models/create-presigned-post-response-class.ts +36 -0
  155. package/models/customer-class.ts +8 -2
  156. package/models/customer-document-class.ts +1 -1
  157. package/models/forgot-password-request-dto.ts +1 -1
  158. package/models/get-customer-document-download-url-response-class.ts +1 -1
  159. package/models/get-customer-response-class.ts +1 -1
  160. package/models/get-policy-response-class.ts +1 -1
  161. package/models/index.ts +17 -0
  162. package/models/initiate-auth-request-dto.ts +1 -1
  163. package/models/initiate-auth-response-class.ts +1 -1
  164. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  165. package/models/initiate-payment-setup-response-class.ts +38 -0
  166. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  167. package/models/invite-by-customer-request-dto.ts +1 -1
  168. package/models/invite-by-customer-response-class.ts +1 -1
  169. package/models/invite-by-tenant-response-class.ts +1 -1
  170. package/models/invite-class.ts +1 -1
  171. package/models/invoice-class.ts +1 -1
  172. package/models/list-documents-response-class.ts +1 -1
  173. package/models/list-invoices-response-class.ts +1 -1
  174. package/models/list-policies-response-class.ts +1 -1
  175. package/models/policy-class.ts +14 -1
  176. package/models/policy-object-class.ts +1 -1
  177. package/models/policy-premium-class.ts +1 -1
  178. package/models/policy-premium-item-class.ts +1 -1
  179. package/models/policy-version-class.ts +1 -1
  180. package/models/refresh-token-dto.ts +1 -1
  181. package/models/request-policy-update-request-dto.ts +4 -3
  182. package/models/request-policy-update-response-class.ts +1 -1
  183. package/models/reset-password-by-customer-request-dto.ts +1 -1
  184. package/models/respond-to-auth-challenge-class.ts +1 -1
  185. package/models/respond-to-auth-challenge-request-dto.ts +1 -1
  186. package/models/shared-customer-policy-object-request-dto.ts +36 -0
  187. package/models/shared-customer-product-class.ts +60 -0
  188. package/models/shared-invoice-item-class.ts +1 -1
  189. package/models/terminate-customer-policy-request-dto.ts +1 -1
  190. package/models/terminate-customer-policy-response-class.ts +1 -1
  191. package/models/timeslice-class.ts +1 -1
  192. package/models/to-grpc-customer-product-class.ts +60 -0
  193. package/models/update-account-request-dto.ts +1 -1
  194. package/models/update-customer-claim-request-dto.ts +126 -0
  195. package/models/update-customer-request-dto.ts +1 -1
  196. package/models/update-customer-response-class.ts +1 -1
  197. package/models/upload-customer-claim-documents-request-dto.ts +42 -0
  198. package/models/upload-customer-policy-documents-request-dto.ts +56 -0
  199. package/models/verify-customer-invite-response-class.ts +1 -1
  200. package/models/withdraw-customer-policy-response-class.ts +1 -1
  201. 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
- const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
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
- const localVarHeaderParameter = {} as any;
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 (err.message === NETWORK_ERROR_MESSAGE && !originalConfig._retry) {
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
- const localVarHeaderParameter = {} as any;
345
- localVarHeaderParameter['Authorization'] = accessToken;
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(originalConfig);
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
@@ -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
@@ -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 \&quot;me\&quot; 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 \&quot;me\&quot; 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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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 \&quot;me\&quot; 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 \&quot;me\&quot; 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 \&quot;me\&quot; 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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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 \&quot;me\&quot; 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 \&quot;me\&quot; 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 \&quot;me\&quot; 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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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 \&quot;me\&quot; 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 \&quot;me\&quot; 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 \&quot;me\&quot; 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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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 \&quot;me\&quot; 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
+ }