123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- # -----------------------------------------------
- # !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
- # !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
- # -----------------------------------------------
- type ChannelFollowsInfo {
- follows: Int!
- id: ID!
- }
- type EntityViewsInfo {
- id: ID!
- views: Int!
- }
- 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!
- """Remove a single follow from the target channel"""
- unfollowChannel(channelId: ID!): ChannelFollowsInfo!
- }
- type Query {
- """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 follows count for a single channel"""
- channelFollows(channelId: ID!): ChannelFollowsInfo
- """Get views count for a single channel"""
- channelViews(channelId: ID!): EntityViewsInfo
- """Get most viewed list of categories"""
- mostViewedCategories(limit: Int, period: Int!): [EntityViewsInfo!]
- """Get most viewed list of categories of all time"""
- mostViewedCategoriesAllTime(limit: Int!): [EntityViewsInfo!]
- """Get most viewed list of channels"""
- mostViewedChannels(limit: Int, period: Int!): [EntityViewsInfo!]
- """Get most viewed list of channels of all time"""
- mostViewedChannelsAllTime(limit: Int!): [EntityViewsInfo!]
- """Get most viewed list of videos"""
- mostViewedVideos(limit: Int, period: Int!): [EntityViewsInfo!]
- """Get most viewed list of videos of all time"""
- mostViewedVideosAllTime(limit: Int!): [EntityViewsInfo!]
- """Get views count for a single video"""
- videoViews(videoId: ID!): EntityViewsInfo
- }
|