feat(F-105): completed feature
This commit is contained in:
@@ -6,14 +6,32 @@ export interface Profile {
|
||||
userId: string;
|
||||
displayName: string | null;
|
||||
phone: string | null;
|
||||
preferences: UserPreferences;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
/** Preferencias gestionadas por el cliente desde su cuenta. */
|
||||
export interface UserPreferences {
|
||||
/** Aviso por email de cambios de estado de pedidos. */
|
||||
orderUpdates: boolean;
|
||||
/** Boletín de novedades. */
|
||||
newsletter: boolean;
|
||||
/** Ofertas y promociones. */
|
||||
promos: boolean;
|
||||
}
|
||||
|
||||
export const DEFAULT_PREFERENCES: UserPreferences = {
|
||||
orderUpdates: true,
|
||||
newsletter: false,
|
||||
promos: false,
|
||||
};
|
||||
|
||||
/** Fields a profile update may set. Undefined = leave unchanged. */
|
||||
export interface ProfilePatch {
|
||||
displayName?: string | null;
|
||||
phone?: string | null;
|
||||
preferences?: Partial<UserPreferences>;
|
||||
}
|
||||
|
||||
/** Joined identity_users + users_profiles row for admin customer listing. */
|
||||
|
||||
Reference in New Issue
Block a user