Class: ClaimBuilderDoc<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1399
Extends
BaseNumberTypeClass<ClaimBuilderDoc<T>>
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new ClaimBuilderDoc<
T>(data):ClaimBuilderDoc<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1433
Parameters
data
Returns
ClaimBuilderDoc<T>
Overrides
BaseNumberTypeClass.constructor
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1400
A unique stringified document ID
Implementation of
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1401
A unique document ID (Mongo DB ObjectID)
Implementation of
action
action:
object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1413
Details for the action to perform if the criteria is correct
seedCode?
optionalseedCode?:string
siwbbClaim?
optionalsiwbbClaim?:boolean
Implementation of
approach?
optionalapproach?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1408
The expected approach for the claim. This is for display purposes for the frontend.
Available options:
- in-site: The claim is expected to be completed in-site.
- api: The claim is expected to be completed via an API call.
- zapier: The claim is expected to be completed via Zapier auto-completion.
Implementation of
assignMethod?
optionalassignMethod?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1421
Algorithm to determine the claaim number indices
Implementation of
cachePolicy?
optionalcachePolicy?:ClaimCachePolicy<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1431
For on-demand claims, we cache the result per user for a short period.
To help optimize performance, please provide a cache policy.
This is only applicable to on-demand claims.
Implementation of
categories?
optionalcategories?:string[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1428
The categories of the claim
Implementation of
cid
cid:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1402
The CID (content ID) of the document. This is used behind the scenes to handle off-chain vs on-chain data races.
Implementation of
collectionId
collectionId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1406
The collection ID of the document
Implementation of
createdAt
createdAt:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1420
Implementation of
createdBy
createdBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1403
The BitBadges address of the user who created this password
Implementation of
deletedAt?
optionaldeletedAt?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1407
Deleted at timestamp
Implementation of
docClaimed
docClaimed:
boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1405
True if the document is claimed by the collection
Implementation of
estimatedCost?
optionalestimatedCost?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1425
Estimated cost for the user
Implementation of
iClaimBuilderDoc.estimatedCost
estimatedTime?
optionalestimatedTime?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1429
Estimated time to satisfy the claim's requirements
Implementation of
iClaimBuilderDoc.estimatedTime
lastUpdated
lastUpdated:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1419
Implementation of
managedBy
managedBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1404
The BitBadges address of the user who is currently managing this
Implementation of
manualDistribution?
optionalmanualDistribution?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1409
If true, the claim codes are to be distributed manually. This doc will only be used for storage purposes. Only in use for legacy on-chain claims.
Deprecated
Implementation of
iClaimBuilderDoc.manualDistribution
metadata?
optionalmetadata?:Metadata<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1418
Metadata for the claim
Implementation of
pluginIds?
optionalpluginIds?:string[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1411
For query purposes, the plugin IDs
Implementation of
plugins
plugins:
IntegrationPluginParams<string>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1410
Dynamic checks to run in the form of plugins
Implementation of
rewards?
optionalrewards?:ClaimReward<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1424
Rewards to be shown upon a successful claim. If you need further gating, you can do this in two-steps.
Implementation of
satisfyMethod?
optionalsatisfyMethod?:SatisfyMethod
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1430
Custom success logic. If not provided, we will default to AND logic with all plugins.
Implementation of
iClaimBuilderDoc.satisfyMethod
showInSearchResults?
optionalshowInSearchResults?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1427
If true, the claim will be shown in search results
Implementation of
iClaimBuilderDoc.showInSearchResults
state
state:
object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1412
The current state of each plugin
Index Signature
[pluginId: string]: any
Implementation of
testOnly?
optionaltestOnly?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1423
Implementation of
trackerDetails?
optionaltrackerDetails?:ChallengeTrackerIdDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1417
Which challenge tracker is it tied to
Implementation of
iClaimBuilderDoc.trackerDetails
version
version:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1422
Implementation of
Methods
clone()
clone():
ClaimBuilderDoc
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
ClaimBuilderDoc
Inherited from
convert()
convert<
U>(convertFunction,options?):ClaimBuilderDoc<U>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1472
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
ClaimBuilderDoc<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:1468
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