Skip to content

DoCurious API Reference / types / FeedItem

Interface: FeedItem

Defined in: types/community.types.ts:194

A single item in a community feed (Bucket List, Track Record, or Discussion).

Remarks

The type field determines which feed tab this item appears in and what referenced entities are populated (trackRecordId for TR feed, challengeId for Bucket List feed, etc.).

Extends

Properties

author?

optional author: object

Defined in: types/community.types.ts:216

avatarUrl?

optional avatarUrl: string

displayName

displayName: string

id

id: string


authorUserId

authorUserId: string

Defined in: types/community.types.ts:196


challengeId?

optional challengeId: string

Defined in: types/community.types.ts:205

Referenced Challenge (for bucket_list and challenge_share types)


commentCount

commentCount: number

Defined in: types/community.types.ts:213


communityId

communityId: string

Defined in: types/community.types.ts:195


createdAt

createdAt: string

Defined in: types/common.types.ts:154

ISO 8601 datetime when the entity was created

Inherited from

BaseEntity.createdAt


id

id: string

Defined in: types/common.types.ts:167

Inherited from

BaseEntity.id


isAnnouncement

isAnnouncement: boolean

Defined in: types/community.types.ts:210

Whether this is an admin announcement (always pinned, special styling)


isPinned

isPinned: boolean

Defined in: types/community.types.ts:208

Whether this item is pinned to the top of its feed


likeCount

likeCount: number

Defined in: types/community.types.ts:212


textContent?

optional textContent: string

Defined in: types/community.types.ts:200

User-authored text content (optional for TR shares which use the TR itself)


trackRecord?

optional trackRecord: TrackRecord

Defined in: types/community.types.ts:221


trackRecordId?

optional trackRecordId: string

Defined in: types/community.types.ts:203

Referenced Track Record (for track_record and milestone types)


type

type: FeedItemType

Defined in: types/community.types.ts:197


updatedAt

updatedAt: string

Defined in: types/common.types.ts:156

ISO 8601 datetime when the entity was last modified

Inherited from

BaseEntity.updatedAt

DoCurious Platform Documentation