Class: ClaimDetails<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:141
Extends
BaseNumberTypeClass<ClaimDetails<T>>
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new ClaimDetails<
T>(data):ClaimDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:170
Parameters
data
Returns
ClaimDetails<T>
Overrides
BaseNumberTypeClass.constructor
Properties
_includesPrivateParams
_includesPrivateParams:
boolean
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:162
Whether the claim fetch includes private params
Implementation of
iClaimDetails._includesPrivateParams
_templateInfo?
optional_templateInfo?:object
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:163
Internal
For internal use by the frontend.
completedTemplateStep?
optionalcompletedTemplateStep?:boolean
pluginId?
optionalpluginId?:string
supportedApproaches?
optionalsupportedApproaches?:string[]
Implementation of
approach?
optionalapproach?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:145
How the claim is expected to be completed. This is for display purposes for the frontend.
Available options:
- in-site (default): 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.
Typically, you will use the in-site approach
Implementation of
assignMethod?
optionalassignMethod?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:148
Algorithm to determine the claim number order. Blank is just incrementing claim numbers.
For most cases, you will not need to specify this.
Implementation of
cachePolicy?
optionalcachePolicy?:ClaimCachePolicy<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:168
Cache policy for the claim. Only needed for on-demand claims.
Implementation of
categories?
optionalcategories?:string[]
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:158
The categories of the claim
Implementation of
claimId
claimId:
string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:142
Unique claim ID.
Implementation of
collectionId?
optionalcollectionId?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:152
Collection ID that the claim is for (if applicable - collection claims).
Implementation of
createdBy?
optionalcreatedBy?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:160
The original creator of the claim
Implementation of
estimatedCost?
optionalestimatedCost?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:155
Estimated cost for the claim.
Implementation of
estimatedTime?
optionalestimatedTime?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:156
Estimated time to satisfy the claim's requirements.
Implementation of
lastUpdated?
optionallastUpdated?:T
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:150
Last updated timestamp for the claim.
Implementation of
managedBy?
optionalmanagedBy?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:161
The BitBadges address of the user who is currently managing this
Implementation of
manualDistribution?
optionalmanualDistribution?:boolean
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:144
If manual distribution is enabled, we do not handle any distribution of claim codes. We leave that up to the claim creator.
Only applicable for on-chain token claims. This is only used in advanced self-hosted cases.
Implementation of
iClaimDetails.manualDistribution
metadata?
optionalmetadata?:Metadata<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:147
Metadata for the claim.
Implementation of
plugins
plugins:
IntegrationPluginDetails<string>[]
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:143
Claim plugins. These are the criteria that must pass for a user to claim.
Implementation of
rewards?
optionalrewards?:ClaimReward<T>[]
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:154
Rewards for the claim.
Implementation of
satisfyMethod?
optionalsatisfyMethod?:SatisfyMethod
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:149
Custom satisfaction logic.
If left blank, all plugins must pass for the claim to be satisfied. Otherwise, you can specify a custom method to determine if the claim is satisfied.
Implementation of
seedCode?
optionalseedCode?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:146
Seed code for the claim. Only used for on-chain token claims.
This is how we produce all reserved codes for the on-chain merkle challenge / proofs.
Implementation of
showInSearchResults?
optionalshowInSearchResults?:boolean
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:157
If true, the claim will be shown in search results
Implementation of
iClaimDetails.showInSearchResults
standaloneClaim?
optionalstandaloneClaim?:boolean
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:153
Standalone claims are not linked with a token or list.
Implementation of
trackerDetails?
optionaltrackerDetails?:ChallengeTrackerIdDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:159
The tracker details for the claim (if applicable - collection claims).
Implementation of
version
version:
T
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:151
The version of the claim.
Implementation of
Methods
clone()
clone():
ClaimDetails
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
ClaimDetails
Inherited from
convert()
convert<
U>(convertFunction,options?):ClaimDetails<U>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:197
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(val) => U
options?
Returns
ClaimDetails<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/core/approvals.ts:201
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