setting up dashboard :)

This commit is contained in:
Riley Davis
2017-02-10 15:32:30 -07:00
parent 5c4daa72cb
commit d4e68de349
9 changed files with 112 additions and 14 deletions
+40
View File
@@ -167,6 +167,36 @@ interface ActionSummary {
current_user: Action
}
# A summary of actions for a specific action type on an Asset.
interface AssetActionSummary {
# Number of actions associated with actionable types on this this Asset.
actionCount: Int
# Number of unique actionable types that are referenced by the actions.
actionableItemCount: Int
}
# A summary of counts related to all the Likes on an Asset.
type LikeAssetActionSummary implements AssetActionSummary {
# Number of actions associated with actionable types on this this Asset.
actionCount: Int
# Number of unique actionable types that are referenced by the actions.
actionableItemCount: Int
}
# A summary of counts related to all the Flags on an Asset.
type FlagAssetActionSummary implements AssetActionSummary {
# Number of actions associated with actionable types on this this Asset.
actionCount: Int
# Number of unique actionable types that are referenced by the actions.
actionableItemCount: Int
}
# LikeAction is used by users who "like" a specific entity.
type LikeAction implements Action {
@@ -294,6 +324,13 @@ type Asset {
# The date that the asset was created.
created_at: Date
# Summary of all Actions against all entities associated with the Asset.
# (likes, flags, etc.)
action_summaries: [AssetActionSummary]
# Unique users that have commented on this Asset.
authorCount: Int
}
################################################################################
@@ -358,6 +395,9 @@ type RootQuery {
# The currently logged in user based on the request.
me: User
# metrics
metric: [Asset]
}
################################################################################