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)

activityDocId?: string
claimInfo?: {
    body: any;
    claimId: string;
    cosmosAddress: string;
    session: any;
}

Type declaration

  • body: any
  • claimId: string
  • cosmosAddress: string
  • session: 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

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

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>
    • Optional normalizeNumberTypes: boolean

    Returns boolean