@emilgroup/customer-sdk-node 1.25.0 → 1.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/api/authentication-api.d.ts +332 -0
- package/dist/api/authentication-api.js +604 -0
- package/dist/api/claims-api.d.ts +431 -0
- package/dist/api/claims-api.js +670 -0
- package/dist/api/customers-api.d.ts +271 -0
- package/dist/api/customers-api.js +425 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/documents-api.d.ts +262 -0
- package/dist/api/documents-api.js +417 -0
- package/dist/api/invites-api.d.ts +249 -0
- package/dist/api/invites-api.js +456 -0
- package/dist/api/invoices-api.d.ts +150 -0
- package/dist/api/invoices-api.js +253 -0
- package/dist/api/leads-api.d.ts +365 -0
- package/dist/api/leads-api.js +571 -0
- package/dist/api/payments-api.d.ts +162 -0
- package/dist/api/payments-api.js +306 -0
- package/dist/api/policies-api.d.ts +578 -0
- package/dist/api/policies-api.js +808 -0
- package/dist/api/products-api.d.ts +215 -0
- package/dist/api/products-api.js +341 -0
- package/dist/api.d.ts +22 -0
- package/dist/api.js +40 -0
- package/dist/base.d.ts +82 -0
- package/dist/base.js +502 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +45 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/account-class.d.ts +169 -0
- package/dist/models/account-class.js +26 -0
- package/dist/models/account-policy-class.d.ts +30 -0
- package/dist/models/account-policy-class.js +15 -0
- package/dist/models/authentication-result-class.d.ts +30 -0
- package/dist/models/authentication-result-class.js +15 -0
- package/dist/models/claim-class.d.ts +156 -0
- package/dist/models/claim-class.js +15 -0
- 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 +132 -0
- package/dist/models/create-account-request-dto.js +31 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-customer-claim-request-dto.d.ts +114 -0
- package/dist/models/create-customer-claim-request-dto.js +15 -0
- package/dist/models/create-customer-claim-response-class.d.ts +25 -0
- package/dist/models/create-customer-claim-response-class.js +15 -0
- package/dist/models/create-customer-request-dto.d.ts +43 -0
- package/dist/models/create-customer-request-dto.js +15 -0
- package/dist/models/create-customer-response-class.d.ts +25 -0
- package/dist/models/create-customer-response-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +83 -0
- package/dist/models/create-lead-request-dto.js +15 -0
- package/dist/models/create-lead-response-class.d.ts +25 -0
- package/dist/models/create-lead-response-class.js +15 -0
- package/dist/models/create-payment-method-request-dto.d.ts +31 -0
- package/dist/models/create-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-request-dto.d.ts +56 -0
- package/dist/models/create-policy-request-dto.js +15 -0
- 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 +73 -0
- package/dist/models/customer-class.js +15 -0
- package/dist/models/customer-document-class.d.ts +99 -0
- package/dist/models/customer-document-class.js +36 -0
- package/dist/models/customer-product-class.d.ts +54 -0
- package/dist/models/customer-product-class.js +15 -0
- package/dist/models/forgot-password-request-dto.d.ts +30 -0
- package/dist/models/forgot-password-request-dto.js +15 -0
- package/dist/models/get-customer-claim-response-class.d.ts +25 -0
- package/dist/models/get-customer-claim-response-class.js +15 -0
- package/dist/models/get-customer-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-customer-document-download-url-response-class.js +15 -0
- package/dist/models/get-customer-response-class.d.ts +25 -0
- package/dist/models/get-customer-response-class.js +15 -0
- package/dist/models/get-lead-response-class.d.ts +25 -0
- package/dist/models/get-lead-response-class.js +15 -0
- package/dist/models/get-policy-response-class.d.ts +25 -0
- package/dist/models/get-policy-response-class.js +15 -0
- package/dist/models/get-product-response-class.d.ts +25 -0
- package/dist/models/get-product-response-class.js +15 -0
- package/dist/models/grpc-update-lead-request-dto.d.ts +50 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- package/dist/models/index.d.ts +85 -0
- package/dist/models/index.js +101 -0
- package/dist/models/initiate-auth-request-dto.d.ts +36 -0
- package/dist/models/initiate-auth-request-dto.js +15 -0
- package/dist/models/initiate-auth-response-class.d.ts +43 -0
- package/dist/models/initiate-auth-response-class.js +15 -0
- 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/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/invite-by-customer-request-dto.d.ts +30 -0
- package/dist/models/invite-by-customer-request-dto.js +15 -0
- package/dist/models/invite-by-customer-response-class.d.ts +25 -0
- package/dist/models/invite-by-customer-response-class.js +15 -0
- package/dist/models/invite-by-tenant-request-dto.d.ts +24 -0
- package/dist/models/invite-by-tenant-request-dto.js +15 -0
- package/dist/models/invite-by-tenant-response-class.d.ts +25 -0
- package/dist/models/invite-by-tenant-response-class.js +15 -0
- package/dist/models/invite-class.d.ts +54 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invoice-class.d.ts +148 -0
- package/dist/models/invoice-class.js +28 -0
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +121 -0
- package/dist/models/lead-class.js +15 -0
- package/dist/models/list-customer-claims-response-class.d.ts +31 -0
- package/dist/models/list-customer-claims-response-class.js +15 -0
- package/dist/models/list-documents-response-class.d.ts +31 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/list-invoices-response-class.d.ts +31 -0
- package/dist/models/list-invoices-response-class.js +15 -0
- package/dist/models/list-leads-response-class.d.ts +43 -0
- package/dist/models/list-leads-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +43 -0
- package/dist/models/list-policies-response-class.js +15 -0
- package/dist/models/list-products-response-class.d.ts +31 -0
- package/dist/models/list-products-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +80 -0
- package/dist/models/policy-class.js +15 -0
- package/dist/models/policy-object-class.d.ts +54 -0
- package/dist/models/policy-object-class.js +15 -0
- package/dist/models/policy-object-dto.d.ts +42 -0
- package/dist/models/policy-object-dto.js +15 -0
- package/dist/models/policy-premium-class.d.ts +43 -0
- package/dist/models/policy-premium-class.js +15 -0
- package/dist/models/policy-premium-item-class.d.ts +36 -0
- package/dist/models/policy-premium-item-class.js +15 -0
- package/dist/models/policy-version-class.d.ts +49 -0
- package/dist/models/policy-version-class.js +15 -0
- package/dist/models/premium-override-dto.d.ts +55 -0
- package/dist/models/premium-override-dto.js +27 -0
- package/dist/models/premium-override-request-class.d.ts +25 -0
- package/dist/models/premium-override-request-class.js +15 -0
- package/dist/models/premium-override-request-dto.d.ts +25 -0
- package/dist/models/premium-override-request-dto.js +15 -0
- package/dist/models/refresh-token-dto.d.ts +30 -0
- package/dist/models/refresh-token-dto.js +15 -0
- package/dist/models/request-policy-update-request-dto.d.ts +43 -0
- package/dist/models/request-policy-update-request-dto.js +15 -0
- package/dist/models/request-policy-update-response-class.d.ts +25 -0
- package/dist/models/request-policy-update-response-class.js +15 -0
- package/dist/models/reset-password-by-customer-request-dto.d.ts +36 -0
- package/dist/models/reset-password-by-customer-request-dto.js +15 -0
- package/dist/models/respond-to-auth-challenge-class.d.ts +43 -0
- package/dist/models/respond-to-auth-challenge-class.js +15 -0
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +42 -0
- package/dist/models/respond-to-auth-challenge-request-dto.js +15 -0
- package/dist/models/sepa-dto.d.ts +30 -0
- package/dist/models/sepa-dto.js +15 -0
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +36 -0
- package/dist/models/shared-customer-policy-object-request-dto.js +15 -0
- package/dist/models/shared-invoice-item-class.d.ts +129 -0
- package/dist/models/shared-invoice-item-class.js +24 -0
- package/dist/models/shared-invoice-status-class.d.ts +47 -0
- package/dist/models/shared-invoice-status-class.js +20 -0
- package/dist/models/terminate-customer-policy-request-dto.d.ts +24 -0
- package/dist/models/terminate-customer-policy-request-dto.js +15 -0
- package/dist/models/terminate-customer-policy-response-class.d.ts +25 -0
- package/dist/models/terminate-customer-policy-response-class.js +15 -0
- package/dist/models/timeslice-class.d.ts +56 -0
- package/dist/models/timeslice-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +113 -0
- package/dist/models/update-account-request-dto.js +25 -0
- 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-claim-response-class.d.ts +25 -0
- package/dist/models/update-customer-claim-response-class.js +15 -0
- package/dist/models/update-customer-request-dto.d.ts +31 -0
- package/dist/models/update-customer-request-dto.js +15 -0
- package/dist/models/update-customer-response-class.d.ts +25 -0
- package/dist/models/update-customer-response-class.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +44 -0
- package/dist/models/update-lead-request-dto.js +15 -0
- package/dist/models/update-lead-response-class.d.ts +25 -0
- package/dist/models/update-lead-response-class.js +15 -0
- 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/uploaded-document-dto.d.ts +24 -0
- package/dist/models/uploaded-document-dto.js +15 -0
- package/dist/models/verify-customer-invite-response-class.d.ts +36 -0
- package/dist/models/verify-customer-invite-response-class.js +15 -0
- package/dist/models/withdraw-customer-policy-response-class.d.ts +25 -0
- package/dist/models/withdraw-customer-policy-response-class.js +15 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.25.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.25.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.25.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.25.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
|
@@ -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 by customer to get new access token, refresh token after successful login.
|
|
62
|
+
* @summary Respond to auth challenge
|
|
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 by customer to get new access token, refresh token after successful login.
|
|
117
|
+
* @summary Respond to auth challenge
|
|
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 by customer to get new access token, refresh token after successful login.
|
|
172
|
+
* @summary Respond to auth challenge
|
|
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 by customer to get new access token, refresh token after successful login.
|
|
316
|
+
* @summary Respond to auth challenge
|
|
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
|
+
}
|