@emilgroup/customer-sdk-node 1.9.0 → 1.10.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 (47) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/authentication-api.ts +601 -0
  4. package/api/claims-api.ts +16 -16
  5. package/api/customers-api.ts +72 -1770
  6. package/api/documents-api.ts +442 -0
  7. package/api/invites-api.ts +443 -0
  8. package/api/invoices-api.ts +245 -0
  9. package/api/payments-api.ts +277 -0
  10. package/api/policies-api.ts +16 -16
  11. package/api/products-api.ts +19 -19
  12. package/api.ts +10 -0
  13. package/dist/api/authentication-api.d.ts +332 -0
  14. package/dist/api/authentication-api.js +604 -0
  15. package/dist/api/claims-api.d.ts +16 -16
  16. package/dist/api/claims-api.js +12 -12
  17. package/dist/api/customers-api.d.ts +0 -954
  18. package/dist/api/customers-api.js +20 -1381
  19. package/dist/api/documents-api.d.ts +262 -0
  20. package/dist/api/documents-api.js +417 -0
  21. package/dist/api/invites-api.d.ts +248 -0
  22. package/dist/api/invites-api.js +456 -0
  23. package/dist/api/invoices-api.d.ts +150 -0
  24. package/dist/api/invoices-api.js +253 -0
  25. package/dist/api/payments-api.d.ts +162 -0
  26. package/dist/api/payments-api.js +306 -0
  27. package/dist/api/policies-api.d.ts +16 -16
  28. package/dist/api/policies-api.js +12 -12
  29. package/dist/api/products-api.d.ts +20 -20
  30. package/dist/api/products-api.js +12 -12
  31. package/dist/api.d.ts +5 -0
  32. package/dist/api.js +5 -0
  33. package/dist/models/account-class.d.ts +26 -1
  34. package/dist/models/account-class.js +7 -0
  35. package/dist/models/create-account-request-dto.d.ts +39 -9
  36. package/dist/models/create-account-request-dto.js +11 -1
  37. package/dist/models/index.d.ts +1 -0
  38. package/dist/models/index.js +1 -0
  39. package/dist/models/list-policies-response-class.d.ts +4 -4
  40. package/dist/models/list-products-response-class.d.ts +31 -0
  41. package/dist/models/list-products-response-class.js +15 -0
  42. package/models/account-class.ts +29 -1
  43. package/models/create-account-request-dto.ts +41 -9
  44. package/models/index.ts +1 -0
  45. package/models/list-policies-response-class.ts +4 -4
  46. package/models/list-products-response-class.ts +37 -0
  47. package/package.json +2 -2
@@ -23,7 +23,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { GetProductResponseClass } from '../models';
25
25
  // @ts-ignore
26
- import { ListPoliciesResponseClass } from '../models';
26
+ import { ListProductsResponseClass } from '../models';
27
27
  // URLSearchParams not necessarily used
28
28
  // @ts-ignore
29
29
  import { URL, URLSearchParams } from 'url';
@@ -83,12 +83,12 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
83
83
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
84
84
  * @summary List products available to insure for a customer
85
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.
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
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
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.
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
92
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
93
  * @param {*} [options] Override http request option.
94
94
  * @throws {RequiredError}
@@ -177,17 +177,17 @@ export const ProductsApiFp = function(configuration?: Configuration) {
177
177
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
178
178
  * @summary List products available to insure for a customer
179
179
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
180
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
181
- * @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.
180
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
181
+ * @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.
182
182
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
183
183
  * @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.
184
- * @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.
185
- * @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.
184
+ * @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.
185
+ * @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.
186
186
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
187
  * @param {*} [options] Override http request option.
188
188
  * @throws {RequiredError}
189
189
  */
190
- async listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
190
+ async listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
191
191
  const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
192
192
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
193
193
  },
@@ -217,17 +217,17 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
217
217
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
218
218
  * @summary List products available to insure for a customer
219
219
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
220
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
221
- * @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.
220
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
221
+ * @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.
222
222
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
223
223
  * @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.
224
- * @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.
225
- * @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.
224
+ * @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.
225
+ * @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.
226
226
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
227
  * @param {*} [options] Override http request option.
228
228
  * @throws {RequiredError}
229
229
  */
230
- listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
230
+ listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
231
231
  return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
232
232
  },
233
233
  };
@@ -275,14 +275,14 @@ export interface ProductsApiListProductsRequest {
275
275
  readonly customerCode: string
276
276
 
277
277
  /**
278
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
278
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
279
279
  * @type {any}
280
280
  * @memberof ProductsApiListProducts
281
281
  */
282
282
  readonly pageSize?: any
283
283
 
284
284
  /**
285
- * 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.
285
+ * 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.
286
286
  * @type {any}
287
287
  * @memberof ProductsApiListProducts
288
288
  */
@@ -303,14 +303,14 @@ export interface ProductsApiListProductsRequest {
303
303
  readonly search?: any
304
304
 
305
305
  /**
306
- * 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.
306
+ * 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.
307
307
  * @type {any}
308
308
  * @memberof ProductsApiListProducts
309
309
  */
310
310
  readonly order?: any
311
311
 
312
312
  /**
313
- * 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.
313
+ * 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.
314
314
  * @type {any}
315
315
  * @memberof ProductsApiListProducts
316
316
  */
package/api.ts CHANGED
@@ -24,14 +24,24 @@ 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 { AuthenticationApi } from './api';
27
28
  import { ClaimsApi } from './api';
28
29
  import { CustomersApi } from './api';
30
+ import { DocumentsApi } from './api';
31
+ import { InvitesApi } from './api';
32
+ import { InvoicesApi } from './api';
33
+ import { PaymentsApi } from './api';
29
34
  import { PoliciesApi } from './api';
30
35
  import { ProductsApi } from './api';
31
36
 
32
37
 
38
+ export * from './api/authentication-api';
33
39
  export * from './api/claims-api';
34
40
  export * from './api/customers-api';
41
+ export * from './api/documents-api';
42
+ export * from './api/invites-api';
43
+ export * from './api/invoices-api';
44
+ export * from './api/payments-api';
35
45
  export * from './api/policies-api';
36
46
  export * from './api/products-api';
37
47
 
@@ -0,0 +1,332 @@
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 { ForgotPasswordRequestDto } from '../models';
16
+ import { InitiateAuthRequestDto } from '../models';
17
+ import { InitiateAuthResponseClass } from '../models';
18
+ import { RefreshTokenDto } from '../models';
19
+ import { ResetPasswordByCustomerRequestDto } from '../models';
20
+ import { RespondToAuthChallengeClass } from '../models';
21
+ import { RespondToAuthChallengeRequestDto } from '../models';
22
+ /**
23
+ * AuthenticationApi - axios parameter creator
24
+ * @export
25
+ */
26
+ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
27
+ /**
28
+ * Send a customer a reset-password token via email.
29
+ * @summary Forgot password by customer
30
+ * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ forgotPassword: (forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ /**
36
+ * Start auth process to get new access token, refresh token after successful login.
37
+ * @summary Initiate auth by customer
38
+ * @param {InitiateAuthRequestDto} initiateAuthRequestDto
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ initiateAuth: (initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
+ /**
44
+ * Get new access token, new refresh token.
45
+ * @summary Refresh token by customer
46
+ * @param {RefreshTokenDto} refreshTokenDto
47
+ * @param {string} [cookie] HTTP only cookie that was sent during login.
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ refreshToken: (refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ /**
53
+ * Change customer\'s password using the token provided by the reset password endpoint.
54
+ * @summary Change password by customer
55
+ * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ resetPassword: (resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
60
+ /**
61
+ * Respond to the auth challenge to get new access token, refresh token after successful login.
62
+ * @summary Respond to auth challenge by customer
63
+ * @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ respondToAuthChallenge: (respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ /**
69
+ * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
70
+ * @summary Verify a reset password token
71
+ * @param {string} resetToken reset password token
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ verifyResetPasswordToken: (resetToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
+ };
77
+ /**
78
+ * AuthenticationApi - functional programming interface
79
+ * @export
80
+ */
81
+ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
82
+ /**
83
+ * Send a customer a reset-password token via email.
84
+ * @summary Forgot password by customer
85
+ * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
90
+ /**
91
+ * Start auth process to get new access token, refresh token after successful login.
92
+ * @summary Initiate auth by customer
93
+ * @param {InitiateAuthRequestDto} initiateAuthRequestDto
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>>;
98
+ /**
99
+ * Get new access token, new refresh token.
100
+ * @summary Refresh token by customer
101
+ * @param {RefreshTokenDto} refreshTokenDto
102
+ * @param {string} [cookie] HTTP only cookie that was sent during login.
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
107
+ /**
108
+ * Change customer\'s password using the token provided by the reset password endpoint.
109
+ * @summary Change password by customer
110
+ * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
115
+ /**
116
+ * Respond to the auth challenge to get new access token, refresh token after successful login.
117
+ * @summary Respond to auth challenge by customer
118
+ * @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RespondToAuthChallengeClass>>;
123
+ /**
124
+ * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
125
+ * @summary Verify a reset password token
126
+ * @param {string} resetToken reset password token
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ verifyResetPasswordToken(resetToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
131
+ };
132
+ /**
133
+ * AuthenticationApi - factory interface
134
+ * @export
135
+ */
136
+ export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
137
+ /**
138
+ * Send a customer a reset-password token via email.
139
+ * @summary Forgot password by customer
140
+ * @param {ForgotPasswordRequestDto} forgotPasswordRequestDto
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void>;
145
+ /**
146
+ * Start auth process to get new access token, refresh token after successful login.
147
+ * @summary Initiate auth by customer
148
+ * @param {InitiateAuthRequestDto} initiateAuthRequestDto
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: any): AxiosPromise<InitiateAuthResponseClass>;
153
+ /**
154
+ * Get new access token, new refresh token.
155
+ * @summary Refresh token by customer
156
+ * @param {RefreshTokenDto} refreshTokenDto
157
+ * @param {string} [cookie] HTTP only cookie that was sent during login.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void>;
162
+ /**
163
+ * Change customer\'s password using the token provided by the reset password endpoint.
164
+ * @summary Change password by customer
165
+ * @param {ResetPasswordByCustomerRequestDto} resetPasswordByCustomerRequestDto
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ resetPassword(resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto, options?: any): AxiosPromise<void>;
170
+ /**
171
+ * Respond to the auth challenge to get new access token, refresh token after successful login.
172
+ * @summary Respond to auth challenge by customer
173
+ * @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: any): AxiosPromise<RespondToAuthChallengeClass>;
178
+ /**
179
+ * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
180
+ * @summary Verify a reset password token
181
+ * @param {string} resetToken reset password token
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
186
+ };
187
+ /**
188
+ * Request parameters for forgotPassword operation in AuthenticationApi.
189
+ * @export
190
+ * @interface AuthenticationApiForgotPasswordRequest
191
+ */
192
+ export interface AuthenticationApiForgotPasswordRequest {
193
+ /**
194
+ *
195
+ * @type {ForgotPasswordRequestDto}
196
+ * @memberof AuthenticationApiForgotPassword
197
+ */
198
+ readonly forgotPasswordRequestDto: ForgotPasswordRequestDto;
199
+ }
200
+ /**
201
+ * Request parameters for initiateAuth operation in AuthenticationApi.
202
+ * @export
203
+ * @interface AuthenticationApiInitiateAuthRequest
204
+ */
205
+ export interface AuthenticationApiInitiateAuthRequest {
206
+ /**
207
+ *
208
+ * @type {InitiateAuthRequestDto}
209
+ * @memberof AuthenticationApiInitiateAuth
210
+ */
211
+ readonly initiateAuthRequestDto: InitiateAuthRequestDto;
212
+ }
213
+ /**
214
+ * Request parameters for refreshToken operation in AuthenticationApi.
215
+ * @export
216
+ * @interface AuthenticationApiRefreshTokenRequest
217
+ */
218
+ export interface AuthenticationApiRefreshTokenRequest {
219
+ /**
220
+ *
221
+ * @type {RefreshTokenDto}
222
+ * @memberof AuthenticationApiRefreshToken
223
+ */
224
+ readonly refreshTokenDto: RefreshTokenDto;
225
+ /**
226
+ * HTTP only cookie that was sent during login.
227
+ * @type {string}
228
+ * @memberof AuthenticationApiRefreshToken
229
+ */
230
+ readonly cookie?: string;
231
+ }
232
+ /**
233
+ * Request parameters for resetPassword operation in AuthenticationApi.
234
+ * @export
235
+ * @interface AuthenticationApiResetPasswordRequest
236
+ */
237
+ export interface AuthenticationApiResetPasswordRequest {
238
+ /**
239
+ *
240
+ * @type {ResetPasswordByCustomerRequestDto}
241
+ * @memberof AuthenticationApiResetPassword
242
+ */
243
+ readonly resetPasswordByCustomerRequestDto: ResetPasswordByCustomerRequestDto;
244
+ }
245
+ /**
246
+ * Request parameters for respondToAuthChallenge operation in AuthenticationApi.
247
+ * @export
248
+ * @interface AuthenticationApiRespondToAuthChallengeRequest
249
+ */
250
+ export interface AuthenticationApiRespondToAuthChallengeRequest {
251
+ /**
252
+ *
253
+ * @type {RespondToAuthChallengeRequestDto}
254
+ * @memberof AuthenticationApiRespondToAuthChallenge
255
+ */
256
+ readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto;
257
+ }
258
+ /**
259
+ * Request parameters for verifyResetPasswordToken operation in AuthenticationApi.
260
+ * @export
261
+ * @interface AuthenticationApiVerifyResetPasswordTokenRequest
262
+ */
263
+ export interface AuthenticationApiVerifyResetPasswordTokenRequest {
264
+ /**
265
+ * reset password token
266
+ * @type {string}
267
+ * @memberof AuthenticationApiVerifyResetPasswordToken
268
+ */
269
+ readonly resetToken: string;
270
+ }
271
+ /**
272
+ * AuthenticationApi - object-oriented interface
273
+ * @export
274
+ * @class AuthenticationApi
275
+ * @extends {BaseAPI}
276
+ */
277
+ export declare class AuthenticationApi extends BaseAPI {
278
+ /**
279
+ * Send a customer a reset-password token via email.
280
+ * @summary Forgot password by customer
281
+ * @param {AuthenticationApiForgotPasswordRequest} requestParameters Request parameters.
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ * @memberof AuthenticationApi
285
+ */
286
+ forgotPassword(requestParameters: AuthenticationApiForgotPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
287
+ /**
288
+ * Start auth process to get new access token, refresh token after successful login.
289
+ * @summary Initiate auth by customer
290
+ * @param {AuthenticationApiInitiateAuthRequest} requestParameters Request parameters.
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ * @memberof AuthenticationApi
294
+ */
295
+ initiateAuth(requestParameters: AuthenticationApiInitiateAuthRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateAuthResponseClass, any>>;
296
+ /**
297
+ * Get new access token, new refresh token.
298
+ * @summary Refresh token by customer
299
+ * @param {AuthenticationApiRefreshTokenRequest} requestParameters Request parameters.
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ * @memberof AuthenticationApi
303
+ */
304
+ refreshToken(requestParameters: AuthenticationApiRefreshTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
305
+ /**
306
+ * Change customer\'s password using the token provided by the reset password endpoint.
307
+ * @summary Change password by customer
308
+ * @param {AuthenticationApiResetPasswordRequest} requestParameters Request parameters.
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ * @memberof AuthenticationApi
312
+ */
313
+ resetPassword(requestParameters: AuthenticationApiResetPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
314
+ /**
315
+ * Respond to the auth challenge to get new access token, refresh token after successful login.
316
+ * @summary Respond to auth challenge by customer
317
+ * @param {AuthenticationApiRespondToAuthChallengeRequest} requestParameters Request parameters.
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ * @memberof AuthenticationApi
321
+ */
322
+ respondToAuthChallenge(requestParameters: AuthenticationApiRespondToAuthChallengeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RespondToAuthChallengeClass, any>>;
323
+ /**
324
+ * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
325
+ * @summary Verify a reset password token
326
+ * @param {AuthenticationApiVerifyResetPasswordTokenRequest} requestParameters Request parameters.
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ * @memberof AuthenticationApi
330
+ */
331
+ verifyResetPasswordToken(requestParameters: AuthenticationApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
332
+ }