Class QueueDoc<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)

actionConfig?: any
activityDocId?: string
claimInfo?: {
    bitbadgesAddress: string;
    body: any;
    claimId: string;
    ip: undefined | string;
    session: any;
    [key: string]: any;
}
collectionId: T

The collection ID of the metadata to be fetched

deletedAt?: T

The timestamp of when this document was deleted (milliseconds since epoch)

emailMessage?: string
error?: string

The error message if this metadata failed to be fetched

faucetInfo?: {
    amount: NumberType;
    denom: string;
    recipient: string;
    txHash: string;
}
initiatedBy?: string

The BitBadges address of the user who initiated this fetch

lastFetchedAt?: T

The timestamp of when this metadata was last fetched (milliseconds since epoch)

loadBalanceId: T

The load balance ID of the metadata to be fetched. Only the node with the same load balance ID will fetch this metadata

nextFetchTime?: T

The timestamp of when this document should be fetched next (milliseconds since epoch)

notificationType?: string
numRetries: T

The number of times this metadata has been tried to be fetched but failed

pending?: boolean

Whether this document is pending to be fetched or not

recipientAddress?: string
refreshRequestTime: T

The timestamp of when this metadata was requested to be refreshed (milliseconds since epoch)

uri: string

The URI of the metadata to be fetched. If {id} is present, it will be replaced with each individual ID in badgeIds

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>
    • OptionalnormalizeNumberTypes: boolean

    Returns boolean