Interface iQueueDoc<T>

interface iQueueDoc<T> {
    _docId: string;
    _id?: string;
    activityDocId?: string;
    claimInfo?: {
        body: any;
        claimId: string;
        cosmosAddress: string;
        ip: undefined | string;
        session: any;
    };
    collectionId: T;
    deletedAt?: T;
    emailMessage?: string;
    error?: string;
    faucetInfo?: {
        amount: NumberType;
        recipient: string;
        txHash: string;
    };
    lastFetchedAt?: T;
    loadBalanceId: T;
    nextFetchTime?: T;
    notificationType?: string;
    numRetries: T;
    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)

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

Type declaration

  • body: any
  • claimId: string
  • cosmosAddress: 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;
    recipient: string;
    txHash: string;
}

Type declaration

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