schema.graphql 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # -----------------------------------------------
  2. # !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
  3. # !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
  4. # -----------------------------------------------
  5. type ChannelFollowsInfo {
  6. follows: Int!
  7. id: ID!
  8. }
  9. type EntityViewsInfo {
  10. id: ID!
  11. views: Int!
  12. }
  13. type Mutation {
  14. """Add a single view to the target video's count"""
  15. addVideoView(categoryId: ID, channelId: ID!, videoId: ID!): EntityViewsInfo!
  16. """Add a single follow to the target channel"""
  17. followChannel(channelId: ID!): ChannelFollowsInfo!
  18. """Remove a single follow from the target channel"""
  19. unfollowChannel(channelId: ID!): ChannelFollowsInfo!
  20. }
  21. type Query {
  22. """Get follows counts for a list of channels"""
  23. batchedChannelFollows(channelIdList: [ID!]!): [ChannelFollowsInfo]!
  24. """Get views counts for a list of channels"""
  25. batchedChannelsViews(channelIdList: [ID!]!): [EntityViewsInfo]!
  26. """Get views counts for a list of videos"""
  27. batchedVideoViews(videoIdList: [ID!]!): [EntityViewsInfo]!
  28. """Get follows count for a single channel"""
  29. channelFollows(channelId: ID!): ChannelFollowsInfo
  30. """Get views count for a single channel"""
  31. channelViews(channelId: ID!): EntityViewsInfo
  32. """Get list of most followed channels"""
  33. mostFollowedChannels(
  34. limit: Int
  35. """timePeriodDays must take one of the following values: 7, 30"""
  36. timePeriodDays: Int!
  37. ): [ChannelFollowsInfo!]!
  38. """Get list of most followed channels of all time"""
  39. mostFollowedChannelsAllTime(limit: Int!): [ChannelFollowsInfo!]
  40. """Get list of most viewed categories in a given time period"""
  41. mostViewedCategories(
  42. limit: Int
  43. """timePeriodDays must take one of the following values: 7, 30"""
  44. timePeriodDays: Int!
  45. ): [EntityViewsInfo!]
  46. """Get list of most viewed categories of all time"""
  47. mostViewedCategoriesAllTime(limit: Int!): [EntityViewsInfo!]
  48. """Get list of most viewed channels in a given time period"""
  49. mostViewedChannels(
  50. limit: Int
  51. """timePeriodDays must take one of the following values: 7, 30"""
  52. timePeriodDays: Int!
  53. ): [EntityViewsInfo!]
  54. """Get list of most viewed channels of all time"""
  55. mostViewedChannelsAllTime(limit: Int!): [EntityViewsInfo!]
  56. """Get list of most viewed videos in a given time period"""
  57. mostViewedVideos(
  58. limit: Int
  59. """timePeriodDays must take one of the following values: 7, 30"""
  60. timePeriodDays: Int!
  61. ): [EntityViewsInfo!]
  62. """Get list of most viewed videos of all time"""
  63. mostViewedVideosAllTime(limit: Int!): [EntityViewsInfo!]
  64. """Get views count for a single video"""
  65. videoViews(videoId: ID!): EntityViewsInfo
  66. }