Activity
Key | Type | Description | Optional |
---|---|---|---|
id | string | Unique identifier for the activity. | |
action | ActivityActionType | Action type associated with the activity. | |
actionBy | string[] | List of user IDs who performed the action. | |
actionOn | string | Target entity of the action (e.g., a post or comment). | |
activityEntityData | ActivityEntityData | Details of the entity related to the activity. | |
activityText | string | Descriptive text about the activity. | |
createdAt | number | Timestamp for when the activity was created. | |
cta | string | Call to action associated with the activity. | |
entityId | string | ID of the related entity. | |
entityOwnerId | string | ID of the owner of the related entity. | |
entityType | ActivityEntityType | Type of the entity (e.g., post, comment, etc.). | |
isRead | boolean | Whether the activity has been marked as read. | |
updatedAt | number | Timestamp for the last update to the activity. | |
uuid | string | Unique identifier for the activity (UUID format). |
Activity Entity Data
Key | Type | Description | Optional |
---|---|---|---|
id | string | Unique identifier for the entity associated with the activity. | |
attachments | Attachment[] | List of attachments related to the activity. | |
commentIds | null | Currently set to null , can represent a list of comment IDs in the future. | ✔️ |
commentsCount | number | Total number of comments on the entity. | |
communityId | number | ID of the community where the activity occurred. | |
createdAt | number | Timestamp for when the entity was created. | |
deleteReason | string | Reason for deletion, if applicable. | ✔️ |
deletedBy | string | ID of the user who deleted the entity, if applicable. | ✔️ |
deletedByUuid | string | UUID of the user who deleted the entity, if applicable. | ✔️ |
heading | string | Heading or title of the entity. | |
isDeleted | boolean | Whether the entity has been deleted. | ✔️ |
isEdited | boolean | Whether the entity has been edited. | |
isLiked | boolean | Whether the entity is liked by the user. | |
isPinned | boolean | Whether the entity is pinned. | |
isRepost | boolean | Whether the entity is a repost. | |
isRepostedByUser | boolean | Whether the entity has been reposted by the current user. | |
isSaved | boolean | Whether the entity is saved by the user. | |
likesCount | number | Number of likes on the entity. | |
menuItems | MenuItem[] | Menu items available for the entity. | |
repostCount | number | Number of reposts of the entity. | |
tempId | string | null | Temporary ID used for internal operations, can be null . | ✔️ |
text | string | Text content of the entity. | |
topics | string[] | Topics related to the entity. | |
updatedAt | number | Timestamp for when the entity was last updated. | |
userId | string | ID of the user who created the entity. | |
uuid | string | UUID of the entity. |
ActivityActionType
Value | Description |
---|---|
CREATE_POST_PERMIT_ADDED | Create post permit added. |
CREATE_POST_PERMIT_REMOVED | Create post permit removed. |
CREATE_COMMENT_PERMIT_ADDED | Create comment permit added. |
CREATE_COMMENT_PERMIT_REMOVED | Create comment permit removed. |
CM_DELETED_YOUR_POST | Community manager deleted your post. |
CM_DELETED_YOUR_COMMENT | Community manager deleted your comment. |
LIKE_ON_YOUR_POST | Someone liked your post. |
COMMENT_ON_YOUR_POST | Someone commented on your post. |
LIKE_ON_YOUR_COMMENT | Someone liked your comment. |
COMMENT_ON_YOUR_COMMENT | Someone commented on your comment. |
TAGGED_YOU_ON_POST | You were tagged in a post. |
TAGGED_YOU_ON_COMMENT | You were tagged in a comment. |
ALSO_COMMENTED_ON_POST_YOU_COMMENTED | Someone also commented on a post you commented on. |
REPOSTED_YOUR_POST | Someone reposted your post. |
LIKE_ON_POST | Like on a post. |
LIKE_ON_COMMENT | Like on a comment. |
COMMENT_ON_POST | Comment on a post. |
COMMENT_ON_COMMENT | Comment on a comment. |
ActivityEntityType
Value | Description |
---|---|
POST | Represents a post. |
COMMENT | Represents a comment. |
USER | Represents a user. |
PENDING_POST | Represents a pending post. |