Skip to main content

Activity View Data Model

LMActivityViewData

VARIABLETYPEDESCRIPTIONOPTIONAL
idstringUnique identifier for the activity
isReadbooleanIndicates if the activity has been read
actionOnstringThe type of action that occurred
actionBystring[]List of user IDs who performed the action
entityTypeActivityEntityTypeType of the associated entity
entityIdstringID of the associated entity
entityOwnerIdstringID of the owner of the associated entity
actionActivityActionTypeThe action that has been taken
ctastringCall to action text
activityTextstringText describing the activity
activityEntityDataLMActivityEntityViewDataAdditional data related to the activity entity✔️
activityByUserLMUserViewDataUser who performed the activity
createdAtnumberTimestamp when the activity was created
updatedAtnumberTimestamp when the activity was last updated
uuidstringUnique universal identifier for the activity

LMActivityEntityViewData

VARIABLETYPEDESCRIPTIONOPTIONAL
idstringUnique identifier for the activity entity
textstringText content of the activity entity
deleteReasonstringReason for deletion✔️
deletedBystringIdentifier for the user who deleted the entity✔️
headingstringHeading for the activity entity✔️
attachmentsLMAttachmentViewData[]List of attachments associated with the entity✔️
communityIdnumberID of the community to which the entity belongs
isEditedbooleanIndicates if the activity entity has been edited
isPinnedbooleanIndicates if the activity entity is pinned✔️
userIdstringID of the user who created the entity
userLMUserViewDataUser details of the creator
repliesLMCommentViewData[]List of replies (comments) on the activity entity✔️
levelnumberDepth level of the entity in a thread✔️
createdAtnumberTimestamp of when the entity was created
updatedAtnumberTimestamp of when the entity was last updated
uuidstringUnique universal identifier for the entity
deletedByUUIDstringUUID of the user who deleted the entity✔️
postIdstringID of the related post✔️

ActivityActionType

KeyValue
CREATE_POST_PERMIT_ADDEDcreate_post_permit_added
CREATE_POST_PERMIT_REMOVEDcreate_post_permit_removed
CREATE_COMMENT_PERMIT_ADDEDcreate_comment_permit_added
CREATE_COMMENT_PERMIT_REMOVEDcreate_comment_permit_removed
CM_DELETED_YOUR_POSTcm_deleted_your_post
CM_DELETED_YOUR_COMMENTcm_deleted_your_comment
LIKE_ON_YOUR_POSTlike_on_your_post
COMMENT_ON_YOUR_POSTcomment_on_your_post
LIKE_ON_YOUR_COMMENTlike_on_your_comment
COMMENT_ON_YOUR_COMMENTcomment_on_your_comment
TAGGED_YOU_ON_POSTtagged_you_on_post
TAGGED_YOU_ON_COMMENTtagged_you_on_comment
ALSO_COMMENTED_ON_POST_YOU_COMMENTEDalso_commented_on_post_you_commented
REPOSTED_YOUR_POSTreposted_your_post
LIKE_ON_POSTlike_on_post
LIKE_ON_COMMENTlike_on_comment
COMMENT_ON_POSTcomment_on_post
COMMENT_ON_COMMENTcomment_on_comment

ActivityEntityType

KeyValue
POSTpost
COMMENTcomment
USERuser
PENDING_POSTpending_post