A unique stringified document ID
Optional
_idA unique document ID (Mongo DB ObjectID)
Details for the action to perform if the criteria is correct
Optional
approachThe expected approach for the claim. This is for display purposes for the frontend.
Available options:
Optional
assignAlgorithm to determine the claaim number indices
Optional
cacheFor 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.
Optional
categoriesThe categories of the claim
The CID (content ID) of the document. This is used behind the scenes to handle off-chain vs on-chain data races.
The collection ID of the document
The BitBadges address of the user who created this password
Optional
deletedDeleted at timestamp
True if the document is claimed by the collection
Optional
estimatedEstimated cost for the user
Optional
estimatedEstimated time to satisfy the claim's requirements
The BitBadges address of the user who is currently managing this
Optional
manualIf 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.
Optional
metadataMetadata for the claim
Optional
pluginFor query purposes, the plugin IDs
Dynamic checks to run in the form of plugins
Optional
rewardsRewards to be shown upon a successful claim. If you need further gating, you can do this in two-steps.
Optional
satisfyCustom success logic. If not provided, we will default to AND logic with all plugins.
Optional
showIf true, the claim will be shown in search results
The current state of each plugin
Optional
testOptional
trackerWhich challenge tracker is it tied to
Deep copies the object and returns a new instance.
Converts the object to a different NumberType equivalent.
Optional
options: ConvertOptionsCompares 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").
Optional
normalizeNumberTypes: booleanInternal helper method to convert the number fields of the object to a different NumberType equivalent.
Checks if the object has number fields.
Converts the object to a JSON object with all primitive types.
Converts the object to a JSON string.