bitbadgesjs-sdk - v0.22.7
    Preparing search index...

    Class ListingViewsDoc<T>

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _docId: string

    A unique stringified document ID

    _id?: string

    A unique document ID (Mongo DB ObjectID)

    lastUpdated: T

    The last time this view count was updated

    listingId: string

    The listing ID this view count is for

    viewCount: T

    The total number of views

    viewsByPeriod?: {
        daily: number;
        hourly: number;
        monthly: number;
        weekly: number;
    }

    Optional breakdown of views by time period for trending calculations

    Methods