Class: DynamicDataDoc<Q, T>
Q extends DynamicDataHandlerType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1829
Extends
BaseNumberTypeClass<DynamicDataDoc<Q,T>>
Type Parameters
Q
Q extends DynamicDataHandlerType
T
T extends NumberType
Implements
iDynamicDataDoc<Q,T>
Constructors
Constructor
new DynamicDataDoc<
Q,T>(data):DynamicDataDoc<Q,T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1846
Parameters
data
iDynamicDataDoc<Q, T>
Returns
DynamicDataDoc<Q, T>
Overrides
BaseNumberTypeClass.constructor
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1833
A unique stringified document ID
Implementation of
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1834
A unique document ID (Mongo DB ObjectID)
Implementation of
createdAt?
optionalcreatedAt?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1843
The time the dynamic data store was created
Implementation of
createdBy
createdBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1840
The creator of the dynamic data store
Implementation of
data
data:
DynamicDataHandlerData<Q>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1839
The data itself.
Implementation of
dataSecret
dataSecret:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1838
The data secret. Used in cases where you are not signed in as creator. This authenticates the request. Not applicable to public stores
Implementation of
dynamicDataId
dynamicDataId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1837
The dynamic data ID. The ID of the store.
Implementation of
handlerId
handlerId:
Q
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1835
The handler ID. Can also be thought of as the type of dynamic data ("addresses", "email", ...)
Implementation of
label
label:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1836
The label of the data store
Implementation of
lastUpdated?
optionallastUpdated?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1844
The time the dynamic data store was last updated
Implementation of
managedBy
managedBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1841
The manager of the dynamic data store
Implementation of
publicUseInClaims?
optionalpublicUseInClaims?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1842
Whether the dynamic data store is public. If true, the data can be accessed without authentication.
Implementation of
iDynamicDataDoc.publicUseInClaims
Methods
clone()
clone():
DynamicDataDoc<Q,T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1870
Deep copies the object and returns a new instance.
Returns
DynamicDataDoc<Q, T>
Overrides
convert()
convert<
U>(convertFunction,options?):DynamicDataDoc<Q,U>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1866
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
DynamicDataDoc<Q, 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:1862
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