schema.graphql 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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(limit: Int, period: Int!): [ChannelFollowsInfo!]!
  34. """Get list of most followed channels of all time"""
  35. mostFollowedChannelsAllTime(limit: Int!): [ChannelFollowsInfo!]
  36. """Get list of most viewed categories in a given time period"""
  37. mostViewedCategories(
  38. limit: Int
  39. """timePeriodDays must take one of the following values: 7, 30"""
  40. timePeriodDays: Int!
  41. ): [EntityViewsInfo!]
  42. """Get list of most viewed categories of all time"""
  43. mostViewedCategoriesAllTime(limit: Int!): [EntityViewsInfo!]
  44. """Get list of most viewed channels in a given time period"""
  45. mostViewedChannels(
  46. limit: Int
  47. """timePeriodDays must take one of the following values: 7, 30"""
  48. timePeriodDays: Int!
  49. ): [EntityViewsInfo!]
  50. """Get list of most viewed channels of all time"""
  51. mostViewedChannelsAllTime(limit: Int!): [EntityViewsInfo!]
  52. """Get list of most viewed videos in a given time period"""
  53. mostViewedVideos(
  54. limit: Int
  55. """timePeriodDays must take one of the following values: 7, 30"""
  56. timePeriodDays: Int!
  57. ): [EntityViewsInfo!]
  58. """Get list of most viewed videos of all time"""
  59. mostViewedVideosAllTime(limit: Int!): [EntityViewsInfo!]
  60. """Get views count for a single video"""
  61. videoViews(videoId: ID!): EntityViewsInfo
  62. }