← Files WixARCHIVED FILE
skills/wix-headless-templates/members/app/wix/members/types.ts
854 Bytes · Oct 8, 2026 · 12:02 UTC
// Members DTOs — the serializable shapes every hook, component, and page consumes.
// Plain JSON: safe as Astro island props or across server/client boundaries. The photo is a
// resolved https URL.
/** The logged-in member as the header/account surfaces need it. */
export interface CurrentMember {
id: string;
/** Email the member logs in with ("" when the fieldset hides it). */
loginEmail: string;
/** Best display name: nickname → first+last → the login email's local part. */
displayName: string;
firstName: string;
lastName: string;
nickname: string;
/** Resolved https URL ("" when the member has no photo). */
photoUrl: string;
/** Contact-list id — the key for member-owned CMS/content lookups. */
contactId: string;
/** "YYYY-MM-DD" the membership was created ("" when unknown). */
memberSince: string;
}
SHA-256: a73d4bb657168202ebe66e988e5e7984a792542077ef580a450f0b26f8dbfffd