Activity
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
id | String | ID of the activity. | |
action | ActivityActionType | The action that has been taken | |
actionBy | String[] | List of unique ids of users whose actions are included in the activity. | |
actionOn | String | ID of the user for whom this activity is generated. | |
activityText | String | Text content for the activity. | |
createdAt | Int | Timestamp when the activity was created. | |
cta | String | Call to action for the activity. | |
entityId | String | ID of the entity for which activity is generated. | |
entityOwnerId | String | ID of the entity creator for which activity is generated. | |
entityType | ActivityEntityType | Type of the associated entity | |
isRead | Bool | True if the notification is read already, false otherwise. | |
updatedAt | Int | Timestamp when the activity was last updated. | |
activityEntityData | ActivityEntityData | Data of the entity. | ✔ |
uuid | String | Unique ID of like creator. |
Activity Entity Data
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
id | String | ID of the entity. | |
text | String | Text content in the entity. | |
deleteReason | String | Reason for deletion of entity. | ✔ |
deletedByUUID | String | ID of the user who delete the entity. | ✔ |
heading | String | Heading for the entity | ✔ |
attachments | Attachment[] | List of attachments in the entity. | ✔ |
communityId | Int | ID of the community where the entity was created. | |
isEdited | Bool | True if the entity was edited, false otherwise. | |
isPinned | Bool | True if entity was pinned false otherwise. | ✔ |
postId | String | ID of the post related to the entity. | ✔ |
userId | String | ID of the entity creator. | |
replies | Comment[] | List of replies to the entity. | ✔ |
level | Int | Level of comment if entity is a comment. | ✔ |
createdAt | Int | Timestamp when the entity was created. | |
updatedAt | Int | Timestamp when the entity was last updated. | |
uuid | String | Unique ID of entity creator. |
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 |