schema.graphql 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. # -----------------------------------------------
  2. # !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
  3. # !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
  4. # -----------------------------------------------
  5. type CategoryFeaturedVideos {
  6. categoryId: ID!
  7. videos: [FeaturedVideo!]!
  8. }
  9. type ChannelFollowsInfo {
  10. follows: Int!
  11. id: ID!
  12. }
  13. type EntityViewsInfo {
  14. id: ID!
  15. views: Int!
  16. }
  17. type FeaturedVideo {
  18. videoCutUrl: String
  19. videoId: ID!
  20. }
  21. input FeaturedVideoInput {
  22. videoCutUrl: String
  23. videoId: ID!
  24. }
  25. type Mutation {
  26. """Add a single view to the target video's count"""
  27. addVideoView(categoryId: ID, channelId: ID!, videoId: ID!): EntityViewsInfo!
  28. """Add a single follow to the target channel"""
  29. followChannel(channelId: ID!): ChannelFollowsInfo!
  30. setCategoryFeaturedVideos(categoryId: ID!, videos: [FeaturedVideoInput!]!): [FeaturedVideo!]!
  31. setVideoHero(newVideoHero: VideoHeroInput!): VideoHero!
  32. """Remove a single follow from the target channel"""
  33. unfollowChannel(channelId: ID!): ChannelFollowsInfo!
  34. }
  35. type Query {
  36. """Get featured videos for all categories"""
  37. allCategoriesFeaturedVideos: [CategoryFeaturedVideos!]!
  38. """Get follows counts for a list of channels"""
  39. batchedChannelFollows(channelIdList: [ID!]!): [ChannelFollowsInfo]!
  40. """Get views counts for a list of channels"""
  41. batchedChannelsViews(channelIdList: [ID!]!): [EntityViewsInfo]!
  42. """Get views counts for a list of videos"""
  43. batchedVideoViews(videoIdList: [ID!]!): [EntityViewsInfo]!
  44. """Get featured videos for a given video category"""
  45. categoryFeaturedVideos(categoryId: ID!): [FeaturedVideo!]!
  46. """Get follows count for a single channel"""
  47. channelFollows(channelId: ID!): ChannelFollowsInfo
  48. """Get views count for a single channel"""
  49. channelViews(channelId: ID!): EntityViewsInfo
  50. """Get list of most followed channels"""
  51. mostFollowedChannels(
  52. limit: Int
  53. """timePeriodDays must take one of the following values: 7, 30"""
  54. timePeriodDays: Int!
  55. ): [ChannelFollowsInfo!]!
  56. """Get list of most followed channels of all time"""
  57. mostFollowedChannelsAllTime(limit: Int!): [ChannelFollowsInfo!]
  58. """Get list of most viewed categories in a given time period"""
  59. mostViewedCategories(
  60. limit: Int
  61. """timePeriodDays must take one of the following values: 7, 30"""
  62. timePeriodDays: Int!
  63. ): [EntityViewsInfo!]
  64. """Get list of most viewed categories of all time"""
  65. mostViewedCategoriesAllTime(limit: Int!): [EntityViewsInfo!]
  66. """Get list of most viewed channels in a given time period"""
  67. mostViewedChannels(
  68. limit: Int
  69. """timePeriodDays must take one of the following values: 7, 30"""
  70. timePeriodDays: Int!
  71. ): [EntityViewsInfo!]
  72. """Get list of most viewed channels of all time"""
  73. mostViewedChannelsAllTime(limit: Int!): [EntityViewsInfo!]
  74. """Get list of most viewed videos in a given time period"""
  75. mostViewedVideos(
  76. limit: Int
  77. """timePeriodDays must take one of the following values: 7, 30"""
  78. timePeriodDays: Int!
  79. ): [EntityViewsInfo!]
  80. """Get list of most viewed videos of all time"""
  81. mostViewedVideosAllTime(limit: Int!): [EntityViewsInfo!]
  82. """Get current video hero"""
  83. videoHero: VideoHero!
  84. """Get views count for a single video"""
  85. videoViews(videoId: ID!): EntityViewsInfo
  86. }
  87. type VideoHero {
  88. heroPosterUrl: String!
  89. heroTitle: String!
  90. heroVideoCutUrl: String!
  91. videoId: ID!
  92. }
  93. input VideoHeroInput {
  94. heroPosterUrl: String!
  95. heroTitle: String!
  96. heroVideoCutUrl: String!
  97. videoId: ID!
  98. }