Class ProfileDoc<T>

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

_docId: string

A unique stringified document ID

_id?: string

A unique document ID (Mongo DB ObjectID)

approvedSignInMethods?: {
    discord?: {
        discriminator?: string;
        id: string;
        scopes: string[];
        username: string;
    };
    github?: {
        id: string;
        scopes: string[];
        username: string;
    };
    google?: {
        id: string;
        scopes: string[];
        username: string;
    };
    twitter?: {
        id: string;
        scopes: string[];
        username: string;
    };
}

Approved ways to sign in

Type declaration

  • Optional discord?: {
        discriminator?: string;
        id: string;
        scopes: string[];
        username: string;
    }
    • Optional discriminator?: string
    • id: string
    • scopes: string[]
    • username: string
  • Optional github?: {
        id: string;
        scopes: string[];
        username: string;
    }
    • id: string
    • scopes: string[]
    • username: string
  • Optional google?: {
        id: string;
        scopes: string[];
        username: string;
    }
    • id: string
    • scopes: string[]
    • username: string
  • Optional twitter?: {
        id: string;
        scopes: string[];
        username: string;
    }
    • id: string
    • scopes: string[]
    • username: string
createdAt?: T

The timestamp of when this account was created (milliseconds since epoch)

customLinks?: iCustomLink[]

The custom links of the account

customPages?: {
    badges: CustomPage<T>[];
    lists: CustomListPage[];
}

The custom pages of the account

Type declaration

discord?: string

The Discord username of the account

fetchedProfile?: boolean

Whether we have already fetched the profile or not

github?: string

The GitHub username of the account

hiddenBadges?: BatchBadgeDetailsArray<T>

The hidden badges of the account

hiddenLists?: string[]

The hidden lists of the account

latestSignedInChain?: SupportedChain

The latest chain the user signed in with

notifications?: NotificationPreferences<T>

The notifications of the account

profilePicUrl?: string

The profile picture URL of the account

readme?: string

The readme of the account

seenActivity?: T

The timestamp of the last activity seen for this account (milliseconds since epoch)

socialConnections?: SocialConnections<T>

Social connections stored for the account

solAddress?: string

The Solana address of the profile, if applicable (bc we need it to convert)

telegram?: string

The Telegram username of the account

twitter?: string

The Twitter username of the account

username?: string

The username of the account

watchlists?: {
    badges: CustomPage<T>[];
    lists: CustomListPage[];
}

The watched lists of the account's portfolio

Type declaration

Methods

  • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

    If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

    Type Parameters

    Parameters

    • other: undefined | null | CustomType<U>
    • Optional normalizeNumberTypes: boolean

    Returns boolean