123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- # Run codegen using: npm run generate
- # Make sure schema endpoint is accessible!
- schema:
- - https://orion.joystream.org/graphql # Atlas
- documents:
- - >
- query getVideoById($videoId: ID!) {
- videoByUniqueInput(where: {id: $videoId}) {
- ...VideoFields
- }
- }
- fragment VideoFields on Video {
- id
- title
- description
- reactions {
- id
- createdAt
- reaction
- memberId
- __typename
- }
- category {
- id
- name
- __typename
- }
- views
- duration
- createdAt
- isPublic
- isExplicit
- hasMarketing
- isCensored
- isCommentSectionEnabled
- commentsCount
- language {
- iso
- __typename
- }
- publishedBeforeJoystream
- mediaMetadata {
- ...VideoMediaMetadataFields
- __typename
- }
- media {
- ...StorageDataObjectFields
- __typename
- }
- thumbnailPhoto {
- ...StorageDataObjectFields
- __typename
- }
- channel {
- ...BasicChannelFields
- __typename
- }
- license {
- ...LicenseFields
- __typename
- }
- nft {
- ...AllNftFields
- __typename
- }
- __typename
- }
- fragment VideoMediaMetadataFields on VideoMediaMetadata {
- id
- pixelHeight
- pixelWidth
- __typename
- }
- fragment StorageDataObjectFields on StorageDataObject {
- id
- createdAt
- size
- isAccepted
- ipfsHash
- storageBag {
- id
- __typename
- }
- type {
- __typename
- }
- __typename
- }
- fragment BasicChannelFields on Channel {
- id
- title
- createdAt
- views
- follows
- avatarPhoto {
- ...StorageDataObjectFields
- __typename
- }
- ownerMember {
- ...BasicMembershipFields
- __typename
- }
- __typename
- }
- fragment BasicMembershipFields on Membership {
- id
- handle
- controllerAccount
- metadata {
- avatar {
- ... on AvatarObject {
- avatarObject {
- ...StorageDataObjectFields
- __typename
- }
- __typename
- }
- ... on AvatarUri {
- avatarUri
- __typename
- }
- __typename
- }
- about
- __typename
- }
- __typename
- }
- fragment LicenseFields on License {
- id
- code
- attribution
- customText
- __typename
- }
- fragment AllNftFields on OwnedNft {
- id
- createdAt
- creatorRoyalty
- lastSaleDate
- lastSalePrice
- ownerMember {
- ...BasicMembershipFields
- __typename
- }
- creatorChannel {
- ...BasicChannelFields
- __typename
- }
- transactionalStatusAuction {
- id
- auctionType {
- __typename
- ... on AuctionTypeEnglish {
- duration
- extensionPeriod
- minimalBidStep
- plannedEndAtBlock
- __typename
- }
- ... on AuctionTypeOpen {
- bidLockDuration
- __typename
- }
- }
- isCompleted
- initialOwner {
- ...BasicMembershipFields
- __typename
- }
- buyNowPrice
- startingPrice
- startsAtBlock
- endedAtBlock
- topBid {
- ...BasicBidFields
- __typename
- }
- bids {
- ...BasicBidFields
- __typename
- }
- whitelistedMembers {
- ...BasicMembershipFields
- __typename
- }
- __typename
- }
- transactionalStatus {
- __typename
- ... on TransactionalStatusIdle {
- dummy
- __typename
- }
- ... on TransactionalStatusBuyNow {
- price
- __typename
- }
- }
- video {
- ...BasicVideoFields
- __typename
- }
- __typename
- }
- fragment BasicBidFields on Bid {
- bidder {
- ...BasicMembershipFields
- __typename
- }
- amount
- createdAt
- isCanceled
- createdInBlock
- id
- __typename
- }
- fragment BasicVideoFields on Video {
- id
- title
- views
- createdAt
- duration
- title
- isPublic
- media {
- ...StorageDataObjectFields
- __typename
- }
- channel {
- ...BasicChannelFields
- __typename
- }
- thumbnailPhoto {
- ...StorageDataObjectFields
- __typename
- }
- nft {
- ...BasicNftFields
- __typename
- }
- __typename
- }
- fragment BasicNftFields on OwnedNft {
- id
- createdAt
- creatorRoyalty
- ownerMember {
- ...BasicMembershipFields
- __typename
- }
- transactionalStatus {
- __typename
- }
- __typename
- }
- - >
- query getDistributionBucketsWithOperators {
- distributionBuckets(limit: 50, where: {distributing_eq: true}) {
- id
- bags {
- id
- __typename
- }
- operators {
- ...DistributionBucketOperatorField
- __typename
- }
- __typename
- }
- }
- fragment DistributionBucketOperatorField on DistributionBucketOperator {
- id
- metadata {
- nodeEndpoint
- __typename
- }
- status
- __typename
- }
- generates:
- ./src/qntypes-atlas.ts:
- plugins:
- - typescript
- - typescript-operations
- - typescript-graphql-request
|