Class: QueueDoc<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:597
Extends
BaseNumberTypeClass<QueueDoc<T>>
Type Parameters
T
T extends NumberType
Implements
iQueueDoc<T>
Constructors
Constructor
new QueueDoc<
T>(data):QueueDoc<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:628
Parameters
data
iQueueDoc<T>
Returns
QueueDoc<T>
Overrides
BaseNumberTypeClass.constructor
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:598
A unique stringified document ID
Implementation of
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:599
A unique document ID (Mongo DB ObjectID)
Implementation of
actionConfig?
optionalactionConfig?:any
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:625
For use for post-claim actions
Implementation of
activityDocId?
optionalactivityDocId?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:612
Implementation of
claimInfo?
optionalclaimInfo?:object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:614
For use for claim completion
Index Signature
[key: string]: any
bitbadgesAddress
bitbadgesAddress:
string
body
body:
any
claimId
claimId:
string
ip
ip:
string|undefined
session
session:
any
Implementation of
collectionId
collectionId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:601
The collection ID of the metadata to be fetched
Implementation of
deletedAt?
optionaldeletedAt?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:608
The timestamp of when this document was deleted (milliseconds since epoch)
Implementation of
emailMessage?
optionalemailMessage?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:610
Implementation of
error?
optionalerror?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:607
The error message if this metadata failed to be fetched
Implementation of
faucetInfo?
optionalfaucetInfo?:object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:624
For use for airdrops
amount
amount:
NumberType
denom
denom:
string
recipient
recipient:
string
txHash
txHash:
string
Implementation of
initiatedBy?
optionalinitiatedBy?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:626
The BitBadges address of the user who initiated this fetch
Implementation of
lastFetchedAt?
optionallastFetchedAt?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:606
The timestamp of when this metadata was last fetched (milliseconds since epoch)
Implementation of
loadBalanceId
loadBalanceId:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:602
The load balance ID of the metadata to be fetched. Only the node with the same load balance ID will fetch this metadata
Implementation of
nextFetchTime?
optionalnextFetchTime?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:609
The timestamp of when this document should be fetched next (milliseconds since epoch)
Implementation of
notificationType?
optionalnotificationType?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:613
Type of the doc / purpose
Implementation of
numRetries
numRetries:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:605
The number of times this metadata has been tried to be fetched but failed
Implementation of
pending?
optionalpending?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:603
Whether this document is pending to be fetched or not
Implementation of
recipientAddress?
optionalrecipientAddress?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:611
Implementation of
refreshRequestTime
refreshRequestTime:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:604
The timestamp of when this metadata was requested to be refreshed (milliseconds since epoch)
Implementation of
uri
uri:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:600
The URI of the metadata to be fetched. If {id} is present, it will be replaced with each individual ID in tokenIds
Implementation of
Methods
clone()
clone():
QueueDoc
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
QueueDoc
Inherited from
convert()
convert<
U>(convertFunction,options?):QueueDoc<U>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:656
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
QueueDoc<U>
Overrides
equals()
equals<
U>(other,normalizeNumberTypes?):boolean
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:147
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
U
U extends CustomType<U>
Parameters
other
CustomType<U> | null | undefined
normalizeNumberTypes?
boolean
Returns
boolean
Inherited from
getNumberFieldNames()
getNumberFieldNames():
string[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:652
Internal helper method to convert the number fields of the object to a different NumberType equivalent.
Returns
string[]
Overrides
BaseNumberTypeClass.getNumberFieldNames
hasNumberFields()
hasNumberFields():
boolean
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:161
Checks if the object has number fields.
Returns
boolean
Inherited from
BaseNumberTypeClass.hasNumberFields
toJson()
toJson():
JsonObject
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:139
Converts the object to a JSON object with all primitive types.
Returns
JsonObject
Inherited from
toJsonString()
toJsonString():
string
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:143
Converts the object to a JSON string.
Returns
string