Activity View Data Model
LMActivityViewData
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
id | string | Unique identifier for the activity | |
isRead | boolean | Indicates if the activity has been read | |
actionOn | string | The type of action that occurred | |
actionBy | string[] | List of user IDs who performed the action | |
entityType | ActivityEntityType | Type of the associated entity | |
entityId | string | ID of the associated entity | |
entityOwnerId | string | ID of the owner of the associated entity | |
action | ActivityActionType | The action that has been taken | |
cta | string | Call to action text | |
activityText | string | Text describing the activity | |
activityEntityData | LMActivityEntityViewData | Additional data related to the activity entity | ✔️ |
activityByUser | LMUserViewData | User who performed the activity | |
createdAt | number | Timestamp when the activity was created | |
updatedAt | number | Timestamp when the activity was last updated | |
uuid | string | Unique universal identifier for the activity |
LMActivityEntityViewData
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
id | string | Unique identifier for the activity entity | |
text | string | Text content of the activity entity | |
deleteReason | string | Reason for deletion | ✔️ |
deletedBy | string | Identifier for the user who deleted the entity | ✔️ |
heading | string | Heading for the activity entity | ✔️ |
attachments | LMAttachmentViewData[] | List of attachments associated with the entity | ✔️ |
communityId | number | ID of the community to which the entity belongs | |
isEdited | boolean | Indicates if the activity entity has been edited | |
isPinned | boolean | Indicates if the activity entity is pinned | ✔️ |
userId | string | ID of the user who created the entity | |
user | LMUserViewData | User details of the creator | |
replies | LMCommentViewData[] | List of replies (comments) on the activity entity | ✔️ |
level | number | Depth level of the entity in a thread | ✔️ |
createdAt | number | Timestamp of when the entity was created | |
updatedAt | number | Timestamp of when the entity was last updated | |
uuid | string | Unique universal identifier for the entity | |
deletedByUUID | string | UUID of the user who deleted the entity | ✔️ |
postId | string | ID of the related post | ✔️ |
ActivityActionType
Key | Value |
---|---|
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 | cm_deleted_your_post |
CM_DELETED_YOUR_COMMENT | cm_deleted_your_comment |
LIKE_ON_YOUR_POST | like_on_your_post |
COMMENT_ON_YOUR_POST | comment_on_your_post |
LIKE_ON_YOUR_COMMENT | like_on_your_comment |
COMMENT_ON_YOUR_COMMENT | comment_on_your_comment |
TAGGED_YOU_ON_POST | tagged_you_on_post |
TAGGED_YOU_ON_COMMENT | tagged_you_on_comment |
ALSO_COMMENTED_ON_POST_YOU_COMMENTED | also_commented_on_post_you_commented |
REPOSTED_YOUR_POST | reposted_your_post |
LIKE_ON_POST | like_on_post |
LIKE_ON_COMMENT | like_on_comment |
COMMENT_ON_POST | comment_on_post |
COMMENT_ON_COMMENT | comment_on_comment |
ActivityEntityType
Key | Value |
---|---|
POST | post |
COMMENT | comment |
USER | user |
PENDING_POST | pending_post |