import { DaffCustomerDriverInterface } from '@daffodil/customer/driver'
The customer driver is responsible for loading customers.
interface DaffCustomerDriverInterface<T extends DaffCustomer = DaffCustomer> {
get(): Observable<T>
update(customer: Partial<T>): Observable<T>
changeEmail(
email: string
password: string
): Observable<T>
changePassword(
oldPassword: string
newPassword: string
): Observable<void>
}
Observable<T>
Get the currently logged-in customer.
Observable<T>
Update the currently logged-in customer.
Parameter | customer: Partial |
---|---|
Description | The customer info to update. |
Observable<T>
Change the currently logged-in customer's email.
Parameter | email: string |
---|---|
Description |
Parameter | password: string |
---|---|
Description |
Observable<void>
Change the currently logged-in customer's password.
Parameter | oldPassword: string |
---|---|
Description |
Parameter | newPassword: string |
---|---|
Description |