@withpotter/blog — module reference

A support module — it mounts no HTTP routes of its own but contributes the internal building blocks below. See the package internal architecture for how the layers fit together.

Internals

Entities

Sequelize models owned by this module.

BlogClap — table blog_claps

FieldType
idstring
tenantIdstring
tenantTenant
postSlugstring
sessionIdstring
userIdstring | null
countnumber
eventIdstring | null
createdAtDate

BlogComment — table blog_comments

FieldType
idstring
tenantIdstring
tenantTenant
postSlugstring
parentIdstring | null
authorNamestring
authorEmailstring
bodystring
statusCommentStatus
userIdstring | null
eventIdstring | null
createdAtDate

BlogEngagementEvent — table blog_engagement_events

FieldType
idstring
tenantIdstring
tenantTenant
postSlugstring
eventTypeBlogEngagementEventType
attributionBlogEngagementEventAttribution | null
memberIdstring | null
visitorIdstring | null
utmSourcestring | null
utmMediumstring | null
utmCampaignstring | null
utmTermstring | null
utmContentstring | null
referrerHoststring | null
referrerPathstring | null
deviceTypeBlogEngagementDeviceType | null
browserstring | null
osstring | null
countrystring | null
regionstring | null
citystring | null
latitudenumber | null
longitudenumber | null
timezonestring | null
occurredAtDate

BlogReaction — table blog_reactions

FieldType
idstring
tenantIdstring
tenantTenant
postSlugstring
kindReactionKind
sessionIdstring
userIdstring | null
eventIdstring | null
createdAtDate

Repositories

Data-access classes wrapping the entities.

BlogEngagementRepository

getEngagement · findClap · upsertClap · findReaction · toggleReaction · createComment · findCommentById · listComments · updateCommentStatus · recordEvent · findRecentViewEvent · rollupBy

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.