123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- # -----------------------------------------------
- # !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
- # !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
- # -----------------------------------------------
- type CategoryFeaturedVideos {
- categoryId: ID!
- videos: [FeaturedVideo!]!
- }
- type ChannelFollowsInfo {
- follows: Int!
- id: ID!
- }
- type EntityViewsInfo {
- id: ID!
- views: Int!
- }
- type FeaturedVideo {
- videoCutUrl: String
- videoId: ID!
- }
- input FeaturedVideoInput {
- videoCutUrl: String
- videoId: ID!
- }
- type Mutation {
- """Add a single view to the target video's count"""
- addVideoView(categoryId: ID, channelId: ID!, videoId: ID!): EntityViewsInfo!
- """Add a single follow to the target channel"""
- followChannel(channelId: ID!): ChannelFollowsInfo!
- setCategoryFeaturedVideos(categoryId: ID!, videos: [FeaturedVideoInput!]!): [FeaturedVideo!]!
- setVideoHero(newVideoHero: VideoHeroInput!): VideoHero!
- """Remove a single follow from the target channel"""
- unfollowChannel(channelId: ID!): ChannelFollowsInfo!
- }
- type Query {
- """Get featured videos for all categories"""
- allCategoriesFeaturedVideos: [CategoryFeaturedVideos!]!
- """Get follows counts for a list of channels"""
- batchedChannelFollows(channelIdList: [ID!]!): [ChannelFollowsInfo]!
- """Get views counts for a list of channels"""
- batchedChannelsViews(channelIdList: [ID!]!): [EntityViewsInfo]!
- """Get views counts for a list of videos"""
- batchedVideoViews(videoIdList: [ID!]!): [EntityViewsInfo]!
- """Get featured videos for a given video category"""
- categoryFeaturedVideos(categoryId: ID!): [FeaturedVideo!]!
- """Get follows count for a single channel"""
- channelFollows(channelId: ID!): ChannelFollowsInfo
- """Get views count for a single channel"""
- channelViews(channelId: ID!): EntityViewsInfo
- """Get list of most followed channels"""
- mostFollowedChannels(
- limit: Int
- """timePeriodDays must take one of the following values: 7, 30"""
- timePeriodDays: Int!
- ): [ChannelFollowsInfo!]!
- """Get list of most followed channels of all time"""
- mostFollowedChannelsAllTime(limit: Int!): [ChannelFollowsInfo!]
- """Get list of most viewed categories in a given time period"""
- mostViewedCategories(
- limit: Int
- """timePeriodDays must take one of the following values: 7, 30"""
- timePeriodDays: Int!
- ): [EntityViewsInfo!]
- """Get list of most viewed categories of all time"""
- mostViewedCategoriesAllTime(limit: Int!): [EntityViewsInfo!]
- """Get list of most viewed channels in a given time period"""
- mostViewedChannels(
- limit: Int
- """timePeriodDays must take one of the following values: 7, 30"""
- timePeriodDays: Int!
- ): [EntityViewsInfo!]
- """Get list of most viewed channels of all time"""
- mostViewedChannelsAllTime(limit: Int!): [EntityViewsInfo!]
- """Get list of most viewed videos in a given time period"""
- mostViewedVideos(
- limit: Int
- """timePeriodDays must take one of the following values: 7, 30"""
- timePeriodDays: Int!
- ): [EntityViewsInfo!]
- """Get list of most viewed videos of all time"""
- mostViewedVideosAllTime(limit: Int!): [EntityViewsInfo!]
- """Get current video hero"""
- videoHero: VideoHero!
- """Get views count for a single video"""
- videoViews(videoId: ID!): EntityViewsInfo
- }
- type VideoHero {
- heroPosterUrl: String!
- heroTitle: String!
- heroVideoCutUrl: String!
- videoId: ID!
- }
- input VideoHeroInput {
- heroPosterUrl: String!
- heroTitle: String!
- heroVideoCutUrl: String!
- videoId: ID!
- }
|