ActivitiesQuery

ActivitiesQuery

# new ActivitiesQuery(ids)

Creates an ActivitiesQuery
Parameters:
Name Type Description
ids CommunitiesIds Entity IDs.

Methods

# (static) bookmarkedActivities() → {ActivitiesQuery}

Get bookmarked activities.
Returns:
A new query.
Type
ActivitiesQuery

# (static) commentsToActivity(id) → {ActivitiesQuery}

Get comments to a certain activity.
Parameters:
Name Type Description
id string Activity ID.
Returns:
A new query.
Type
ActivitiesQuery

# (static) everywhere() → {ActivitiesQuery}

Get all activities.
Returns:
A new query.
Type
ActivitiesQuery

# (static) feedOf(id) → {ActivitiesQuery}

Get activities in user feed.
Parameters:
Name Type Description
id UserId User ID.
Returns:
A new query.
Type
ActivitiesQuery

# (static) inAllTopics() → {ActivitiesQuery}

Get activities from all topics.
Returns:
A new query.
Type
ActivitiesQuery

# (static) inGroup(id) → {ActivitiesQuery}

Get activities in a group.
Parameters:
Name Type Description
id string Group ID.
Returns:
A new query.
Type
ActivitiesQuery

# (static) inTopic(id) → {ActivitiesQuery}

Get activities in a topic.
Parameters:
Name Type Description
id string Topic ID.
Returns:
A new query.
Type
ActivitiesQuery

# (static) reactedActivities(reactions) → {ActivitiesQuery}

Get activities that match given reaction(s).
Parameters:
Name Type Description
reactions Array.<string> Reactions
Returns:
new query.
Type
ActivitiesQuery

# (static) timeline() → {ActivitiesQuery}

Get activities in user's timeline.
Returns:
A new query.
Type
ActivitiesQuery

# (static) votedActivities(options) → {ActivitiesQuery}

Get polls voted with the given option(s).
Parameters:
Name Type Description
options Array.<string> Options
Returns:
new query.
Type
ActivitiesQuery

# byUser(id) → {ActivitiesQuery}

Get activities of a specific user.
Parameters:
Name Type Description
id UserId Activities' Author ID.
Returns:
Same query.
Type
ActivitiesQuery

# onlyTrending(trending) → {ActivitiesQuery}

Get only trending activities.
Parameters:
Name Type Description
trending boolean Only trending activities or all.
Returns:
Same query.
Type
ActivitiesQuery

# withLabels(labels) → {ActivitiesQuery}

Get activities matching the specified labels.
Parameters:
Name Type Description
labels Array.<string> Labels list.
Returns:
same query.
Type
ActivitiesQuery

# withMentions(mentions) → {ActivitiesQuery}

Get activities matching the specified mentions.
Parameters:
Name Type Description
mentions Array.<UserId> User IDs.
Returns:
same query.
Type
ActivitiesQuery

# withPollStatus(status) → {ActivitiesQuery}

Get activities with the specified poll status.
Parameters:
Name Type Description
status number Poll status.
Returns:
Same query.
Type
ActivitiesQuery

# withProperties(properties) → {ActivitiesQuery}

Get activities matching the specified properties.
Parameters:
Name Type Description
properties Object.<string, string> Properties.
Returns:
same query.
Type
ActivitiesQuery

# withTag(tag) → {ActivitiesQuery}

Get activities with a specific tag.
Parameters:
Name Type Description
tag string tag in activity text.
Returns:
Same query.
Type
ActivitiesQuery

# withText(searchTerm) → {ActivitiesQuery}

Get activities matching the specified text.
Parameters:
Name Type Description
searchTerm string Text.
Returns:
same query.
Type
ActivitiesQuery