Class: ProfileDoc<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:546
Extends
BaseNumberTypeClass<ProfileDoc<T>>
Extended by
Type Parameters
T
T extends NumberType
Implements
iProfileDoc<T>
Constructors
Constructor
new ProfileDoc<
T>(data):ProfileDoc<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:564
Parameters
data
iProfileDoc<T>
Returns
ProfileDoc<T>
Overrides
BaseNumberTypeClass.constructor
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:547
A unique stringified document ID
Implementation of
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:548
A unique document ID (Mongo DB ObjectID)
Implementation of
bannerImage?
optionalbannerImage?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:562
The banner image URL of the account
Implementation of
createdAt?
optionalcreatedAt?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:551
The timestamp of when this account was created (milliseconds since epoch)
Implementation of
discord?
optionaldiscord?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:552
The Discord username of the account
Implementation of
fetchedProfile?
optionalfetchedProfile?:"full"|"partial"
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:549
Whether we have already fetched the profile or not
Implementation of
github?
optionalgithub?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:554
The GitHub username of the account
Implementation of
hiddenTokens?
optionalhiddenTokens?:BatchTokenDetailsArray<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:557
The hidden tokens of the account
Implementation of
latestSignedInChain?
optionallatestSignedInChain?:SupportedChain
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:560
The latest chain the user signed in with
Implementation of
iProfileDoc.latestSignedInChain
notifications?
optionalnotifications?:NotificationPreferences<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:561
The notifications of the account
Implementation of
profilePicUrl?
optionalprofilePicUrl?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:558
The profile picture URL of the account
Implementation of
readme?
optionalreadme?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:556
The readme of the account
Implementation of
seenActivity?
optionalseenActivity?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:550
The timestamp of the last activity seen for this account (milliseconds since epoch)
Implementation of
telegram?
optionaltelegram?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:555
The Telegram username of the account
Implementation of
twitter?
optionaltwitter?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:553
The Twitter username of the account
Implementation of
username?
optionalusername?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:559
The username of the account
Implementation of
Methods
clone()
clone():
ProfileDoc
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
ProfileDoc
Inherited from
convert()
convert<
U>(convertFunction,options?):ProfileDoc<U>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:588
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
ProfileDoc<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:584
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