# new NotificationsQuery(params)
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | Query parameters
Properties
|
Methods
# (static) withAllStatus() → {NotificationsCountQuery}
Creates a new notifications count query with all the available statuses.
Returns:
New query instance.
- Type
- NotificationsCountQuery
# (static) withStatus(statuses) → {NotificationsQuery}
Creates a new notifications query with the provided statuses.
Parameters:
Name | Type | Description |
---|---|---|
statuses |
Array.<string> | statuses to filter for. |
Returns:
New query instance.
- Type
- NotificationsQuery
# ofTypes(newTypes) → {NotificationsQuery}
Sets types to filter for.
Parameters:
Name | Type | Description |
---|---|---|
newTypes |
Array.<string> | Types to filter for. |
Returns:
Same instance.
- Type
- NotificationsQuery
# withActions(newActions) → {NotificationsQuery}
Sets actions to filter for.
Parameters:
Name | Type | Description |
---|---|---|
newActions |
Array.<string> | Actions to filter for. |
Returns:
Same instance.
- Type
- NotificationsQuery