Interface: IntegrationPluginDetailsUpdate<T>
T extends ClaimIntegrationPluginType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1008
Extends
Type Parameters
T
T extends ClaimIntegrationPluginType
Properties
instanceId
instanceId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:979
The ID of the plugin instance. This is a unique identifier for referencing this instance of the plugin within this claim (e.g. differentiate between duplicates of the same plugin type).
This is different from the pluginId, which is a unique identifier for the plugin itself. All instances of the same plugin will have the same pluginId.
Inherited from
IntegrationPluginParams.instanceId
metadata?
optionalmetadata?:object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:992
Custom display metadata for the plugin. This will override the default metadata for the plugin.
description
description:
string
image?
optionalimage?:string
name
name:
string
Inherited from
IntegrationPluginParams.metadata
newState?
optionalnewState?:ClaimIntegrationPublicStateType<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1019
If newState is present, we will set the state to the new state. Incompatible with resetState. Can be used alongside onlyUpdateProvidedNewState. By default, we will overwrite the whole state. If onlyUpdateProvidedNewState is true, we will only update the specific provided fields.
Warning: This is an advanced feature and should be used with caution. Misconfiguring this can lead to unexpected behavior of this plugin.
Note: Each plugin may have different state schemas. Please refer to the documentation of the plugin you are updating for more information.
onlyUpdateProvidedNewState?
optionalonlyUpdateProvidedNewState?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1028
If true, we will only update the specific fields provided in newState. If falsy, we will overwrite the whole state with newState.
Only applicable if newState is present.
Note that we do this on a recursive level. If you have nested objects, we will only update the specific fields provided for those nested objects and leave all else as-is.
pluginId
pluginId:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:984
The ID of the plugin (e.g. "numUses"). This is the reusable plugin ID. Do not use this as a unique identifier for the plugin instance as there could be duplicate pluginIds. Use instanceId instead.
Inherited from
IntegrationPluginParams.pluginId
privateParams
privateParams:
ClaimIntegrationPrivateParamsType<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:990
The parameters of the plugin that are not visible to the public. These are custom per plugin type.
Inherited from
IntegrationPluginParams.privateParams
publicParams
publicParams:
ClaimIntegrationPublicParamsType<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:988
The parameters of the plugin that are visible to the public. These are custom per plugin type.
Inherited from
IntegrationPluginParams.publicParams
resetState?
optionalresetState?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1010
If resetState = true, we will reset the state of the plugin back to default. If false, we will keep the current state. Incompatible with newState.
version
version:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:986
The version of the plugin