Class: ClaimActivityDoc<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:134
Extends
ActivityDoc<T>
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new ClaimActivityDoc<
T>(data):ClaimActivityDoc<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:142
Parameters
data
Returns
ClaimActivityDoc<T>
Overrides
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:24
A unique stringified document ID
Implementation of
Inherited from
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:25
A unique document ID (Mongo DB ObjectID)
Implementation of
Inherited from
_notificationsHandled?
optional_notificationsHandled?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:23
Whether or not the notifications have been handled by the indexer or not.
Implementation of
iClaimActivityDoc._notificationsHandled
Inherited from
ActivityDoc._notificationsHandled
bitbadgesAddress
bitbadgesAddress:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:137
The BitBadges address of the user who attempted the claim
Implementation of
iClaimActivityDoc.bitbadgesAddress
block
block:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:22
The block number of the activity.
Implementation of
Inherited from
claimAttemptId
claimAttemptId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:138
The claim attempt ID of the claim attempt
Implementation of
iClaimActivityDoc.claimAttemptId
claimId
claimId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:136
The claim ID of the claim attempt
Implementation of
claimType?
optionalclaimType?:"collection"|"standalone"|"list"
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:140
The claim type of the claim attempt
Implementation of
private?
optionalprivate?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:139
Only for private purposes?
Implementation of
success
success:
boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:135
Whether the claim attempt was successful or not
Implementation of
timestamp
timestamp:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:21
The timestamp of the activity.
Implementation of
Inherited from
Methods
clone()
clone():
ActivityDoc
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
Inherited from
convert()
convert<
U>(convertFunction,options?):ClaimActivityDoc<U>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:152
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
ClaimActivityDoc<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/activity.ts:36
Internal helper method to convert the number fields of the object to a different NumberType equivalent.
Returns
string[]
Inherited from
ActivityDoc.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
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