A unique stringified document ID
Optional
_idA unique document ID (Mongo DB ObjectID)
Approval status - can be used for moderation
The categories of the listing
The paginated content for the listing
The time the listing was created
The BitBadges address of the user who created this listing
Optional
directThe direct link for the listing. If specified, we will skip the entire content / listing page. Thus, content and links should be empty [].
Optional
displayOptional time range for when the listing should be shown
Optional
estimatedThe estimated cost for this utility/service
Optional
estimatedThe estimated time to complete or deliver this utility/service
Optional
homeHome page view
Optional
inheritWhere to inherit metadata from? Only one can be specified.
Optional
lastThe last updated timestamp
Optional
linkedLinked details
The relevant links for the listing
The listing ID
Optional
localeLocale (ex: es, fr, etc.). If not specified, we assume en.
The BitBadges address of the user who is currently managing this
The overall metadata for the listing
Type of the listing
Optional
viewThe total view count for this listing. This is updated periodically from the view tracking document.
Optional
viewsOptional breakdown of views by time period for trending calculations
Visibility state of the listing
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.