Interface: iUtilityPageDoc<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1148
Extends
Type Parameters
T
T extends NumberType
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/base.ts:13
A unique stringified document ID
Inherited from
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/base.ts:16
A unique document ID (Mongo DB ObjectID)
Inherited from
approvalStatus
approvalStatus:
object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1194
Approval status - can be used for moderation
featuredPriority?
optionalfeaturedPriority?:number
Featured Priority
isApproved
isApproved:
boolean
Whether the listing is approved
isFeatured?
optionalisFeatured?:boolean
Is Featured
reason?
optionalreason?:string
Optional reason if not approved
rejected?
optionalrejected?:boolean
Rejected or just pending
updatedBy?
optionalupdatedBy?:string
Address of who last updated the approval status
categories
categories:
string[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1191
The categories of the listing
content
content:
iUtilityPageContent[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1179
The paginated content for the listing
createdAt
createdAt:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1167
The time the listing was created
createdBy
createdBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1158
The BitBadges address of the user who created this listing
directLink?
optionaldirectLink?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1164
The direct link for the listing. If specified, we will skip the entire content / listing page. Thus, content and links should be empty [].
displayTimes?
optionaldisplayTimes?:iUintRange<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1185
Optional time range for when the listing should be shown
estimatedCost?
optionalestimatedCost?:iEstimatedCost<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1213
The estimated cost for this utility/service
estimatedTime?
optionalestimatedTime?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1216
The estimated time to complete or deliver this utility/service
homePageView?
optionalhomePageView?:object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1237
Home page view
category
category:
string
type
type:
"tokens"|"lists"|"claims"|"applications"
inheritMetadataFrom?
optionalinheritMetadataFrom?:iInheritMetadataFrom<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1176
Where to inherit metadata from? Only one can be specified.
lastUpdated?
optionallastUpdated?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1170
The last updated timestamp
linkedTo?
optionallinkedTo?:iLinkedTo<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1231
Linked details
links
links:
iUtilityPageLink<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1182
The relevant links for the listing
listingId
listingId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1150
The listing ID
locale?
optionallocale?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1234
Locale (ex: es, fr, etc.). If not specified, we assume en.
managedBy
managedBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1161
The BitBadges address of the user who is currently managing this
metadata
metadata:
iMetadata<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1173
The overall metadata for the listing
type
type:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1155
Type of the listing
viewCount?
optionalviewCount?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1210
The total view count for this listing. This is updated periodically from the view tracking document.
viewsByPeriod?
optionalviewsByPeriod?:object
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1219
Optional breakdown of views by time period for trending calculations
daily
daily:
number
Views in the last 24 hours
hourly
hourly:
number
Views in the last hour
monthly
monthly:
number
Views in the last 30 days
weekly
weekly:
number
Views in the last 7 days
visibility
visibility:
"public"|"private"|"unlisted"
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/interfaces.ts:1188
Visibility state of the listing