Class: UtilityPageDoc<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1308
Extends
BaseNumberTypeClass<UtilityPageDoc<T>>
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new UtilityPageDoc<
T>(data):UtilityPageDoc<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1344
Parameters
data
Returns
UtilityPageDoc<T>
Overrides
BaseNumberTypeClass.constructor
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1309
A unique stringified document ID
Implementation of
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1310
A unique document ID (Mongo DB ObjectID)
Implementation of
approvalStatus
approvalStatus:
object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1323
Approval status - can be used for moderation
featuredPriority?
optionalfeaturedPriority?:number
isApproved
isApproved:
boolean
isFeatured?
optionalisFeatured?:boolean
reason?
optionalreason?:string
rejected?
optionalrejected?:boolean
updatedBy?
optionalupdatedBy?:string
Implementation of
iUtilityPageDoc.approvalStatus
categories
categories:
string[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1313
The categories of the listing
Implementation of
content
content:
UtilityPageContent[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1318
The paginated content for the listing
Implementation of
createdAt
createdAt:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1317
The time the listing was created
Implementation of
createdBy
createdBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1315
The BitBadges address of the user who created this listing
Implementation of
directLink?
optionaldirectLink?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1314
The direct link for the listing. If specified, we will skip the entire content / listing page. Thus, content and links should be empty [].
Implementation of
displayTimes?
optionaldisplayTimes?:UintRange<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1331
Optional time range for when the listing should be shown
Implementation of
estimatedCost?
optionalestimatedCost?:EstimatedCost<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1337
The estimated cost for this utility/service
Implementation of
estimatedTime?
optionalestimatedTime?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1338
The estimated time to complete or deliver this utility/service
Implementation of
homePageView?
optionalhomePageView?:object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1339
Home page view
category
category:
string
type
type:
"tokens"|"lists"|"claims"|"applications"
Implementation of
inheritMetadataFrom?
optionalinheritMetadataFrom?:InheritMetadataFrom<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1335
Where to inherit metadata from? Only one can be specified.
Implementation of
iUtilityPageDoc.inheritMetadataFrom
lastUpdated?
optionallastUpdated?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1322
The last updated timestamp
Implementation of
linkedTo?
optionallinkedTo?:LinkedTo<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1334
Linked details
Implementation of
links
links:
UtilityPageLink<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1319
The relevant links for the listing
Implementation of
listingId
listingId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1311
The listing ID
Implementation of
locale?
optionallocale?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1336
Locale (ex: es, fr, etc.). If not specified, we assume en.
Implementation of
managedBy
managedBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1316
The BitBadges address of the user who is currently managing this
Implementation of
metadata
metadata:
iMetadata<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1320
The overall metadata for the listing
Implementation of
type
type:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1312
Type of the listing
Implementation of
viewCount?
optionalviewCount?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1332
The total view count for this listing. This is updated periodically from the view tracking document.
Implementation of
viewsByPeriod?
optionalviewsByPeriod?:object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1333
Optional breakdown of views by time period for trending calculations
daily
daily:
number
hourly
hourly:
number
monthly
monthly:
number
weekly
weekly:
number
Implementation of
visibility
visibility:
"public"|"private"|"unlisted"
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1321
Visibility state of the listing
Implementation of
Methods
clone()
clone():
UtilityPageDoc
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
UtilityPageDoc
Inherited from
convert()
convert<
U>(convertFunction,options?):UtilityPageDoc<U>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1376
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
UtilityPageDoc<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:1372
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