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>
}
ObservableGet the currently logged-in customer.
ObservableUpdate the currently logged-in customer.
| Parameter | customer: Partial |
|---|---|
| Description | The customer info to update. |
ObservableChange the currently logged-in customer's email.
| Parameter | email: string |
|---|---|
| Description |
| Parameter | password: string |
|---|---|
| Description |
ObservableChange the currently logged-in customer's password.
| Parameter | oldPassword: string |
|---|---|
| Description |
| Parameter | newPassword: string |
|---|---|
| Description |