Skip to content

T extends NumberType

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:134

Extends

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

iClaimActivityDoc<T>

Returns

ClaimActivityDoc<T>

Overrides

ActivityDoc.constructor

Properties

_docId

_docId: string

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:24

A unique stringified document ID

Implementation of

iClaimActivityDoc._docId

Inherited from

ActivityDoc._docId


_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

iClaimActivityDoc._id

Inherited from

ActivityDoc._id


_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

iClaimActivityDoc.block

Inherited from

ActivityDoc.block


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

iClaimActivityDoc.claimId


claimType?

optional claimType?: "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

iClaimActivityDoc.claimType


private?

optional private?: boolean

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:139

Only for private purposes?

Implementation of

iClaimActivityDoc.private


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

iClaimActivityDoc.success


timestamp

timestamp: T

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:21

The timestamp of the activity.

Implementation of

iClaimActivityDoc.timestamp

Inherited from

ActivityDoc.timestamp

Methods

clone()

clone(): ActivityDoc

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151

Deep copies the object and returns a new instance.

Returns

ActivityDoc

Inherited from

ActivityDoc.clone


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?

ConvertOptions

Returns

ClaimActivityDoc<U>

Overrides

ActivityDoc.convert


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

ActivityDoc.equals


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

ActivityDoc.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

ActivityDoc.toJson


toJsonString()

toJsonString(): string

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:143

Converts the object to a JSON string.

Returns

string

Inherited from

ActivityDoc.toJsonString

Edit this page on GitHub