123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- "Category of media channel"
- type ChannelCategory @entity {
- id: ID!
- "The name of the category"
- name: String @fulltext(query: "channelCategoriesByName")
- "Count of channel's videos with an uploaded asset that are public and not censored."
- activeVideosCounter: Int!
- channels: [Channel!]! @derivedFrom(field: "category")
- createdInBlock: Int!
- }
- type Language @entity {
- "Runtime entity identifier (EntityId)"
- id: ID!
- "Language identifier ISO 639-1"
- iso: String!
- createdInBlock: Int!
- }
- type Channel @entity {
- "Runtime entity identifier (EntityId)"
- id: ID!
- "Member owning the channel (if any)"
- ownerMember: Membership
- "Curator group owning the channel (if any)"
- ownerCuratorGroup: CuratorGroup
- category: ChannelCategory
- "Reward account where revenue is sent if set."
- rewardAccount: String
- "The title of the Channel"
- title: String @fulltext(query: "search")
- "The description of a Channel"
- description: String
- "Count of channel's videos with an uploaded asset that are public and not censored."
- activeVideosCounter: Int!
- "Channel's cover (background) photo asset. Recommended ratio: 16:9."
- coverPhoto: StorageDataObject
- "Channel's avatar photo asset."
- avatarPhoto: StorageDataObject
- ##########################
- "Flag signaling whether a channel is public."
- isPublic: Boolean
- "Flag signaling whether a channel is censored."
- isCensored: Boolean!
- "The primary langauge of the channel's content"
- language: Language
- "List of videos that belong to the channel"
- videos: [Video!]! @derivedFrom(field: "channel")
- "Number of the block the channel was created in"
- createdInBlock: Int!
- "List of channel collaborators (members)"
- collaborators: [Membership!]
- }
- type VideoCategory @entity {
- "Runtime identifier"
- id: ID!
- "The name of the category"
- name: String @fulltext(query: "videoCategoriesByName")
- "Count of channel's videos with an uploaded asset that are public and not censored."
- activeVideosCounter: Int!
- videos: [Video!]! @derivedFrom(field: "category")
- createdInBlock: Int!
- }
- type Video @entity {
- "Runtime identifier"
- id: ID!
- "Reference to member's channel"
- channel: Channel!
- "Reference to a video category"
- category: VideoCategory
- "The title of the video"
- title: String @fulltext(query: "search")
- "The description of the Video"
- description: String
- "Video duration in seconds"
- duration: Int
- "Video thumbnail asset (recommended ratio: 16:9)"
- thumbnailPhoto: StorageDataObject
- ##########################
- "Video's main langauge"
- language: Language
- "Whether or not Video contains marketing"
- hasMarketing: Boolean
- "If the Video was published on other platform before beeing published on Joystream - the original publication date"
- publishedBeforeJoystream: DateTime
- "Whether the Video is supposed to be publically displayed"
- isPublic: Boolean
- "Flag signaling whether a video is censored."
- isCensored: Boolean!
- "Video NFT details"
- nft: OwnedNft
- "Whether the Video contains explicit material."
- isExplicit: Boolean
- "License under the video is published"
- license: License
- "Video media asset"
- media: StorageDataObject
- ##########################
- "Video file metadata"
- mediaMetadata: VideoMediaMetadata
- createdInBlock: Int!
- "Is video featured or not"
- isFeatured: Boolean!
- }
- type VideoMediaMetadata @entity {
- "Unique identifier"
- id: ID!
- "Encoding of the video media object"
- encoding: VideoMediaEncoding
- "Video media width in pixels"
- pixelWidth: Int
- "Video media height in pixels"
- pixelHeight: Int
- "Video media size in bytes"
- size: BigInt
- video: Video @derivedFrom(field: "mediaMetadata")
- createdInBlock: Int!
- }
- type VideoMediaEncoding @entity {
- "Encoding of the video media object"
- codecName: String
- "Media container format"
- container: String
- "Content MIME type"
- mimeMediaType: String
- }
- type License @entity {
- "Unique identifier"
- id: ID!
- "License code defined by Joystream"
- code: Int
- "Attribution (if required by the license)"
- attribution: String
- "Custom license content"
- custom_text: String
- }
|