Interface iQueueDoc<T>

interface iQueueDoc<T> {
    _docId: string;
    _id?: string;
    actionConfig?: any;
    activityDocId?: string;
    claimInfo?: {
        bitbadgesAddress: string;
        body: any;
        claimId: string;
        ip: undefined | string;
        session: any;
    };
    collectionId: T;
    deletedAt?: T;
    emailMessage?: string;
    error?: string;
    faucetInfo?: {
        amount: NumberType;
        denom: string;
        recipient: string;
        txHash: string;
    };
    lastFetchedAt?: T;
    loadBalanceId: T;
    nextFetchTime?: T;
    notificationType?: string;
    numRetries: T;
    pending?: boolean;
    recipientAddress?: string;
    refreshRequestTime: T;
    uri: string;
}

Type Parameters

Hierarchy (view full)

Implemented by

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;
}
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;
}
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