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