publication.graphql 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # A resource publication represents information about the publication of a resource.
  2. # An instance of ResourcePublication, unlike ResourcePublicationV2, can be neither published or scheduled to be published.
  3. #
  4. # See ResourcePublicationV2 for more context.
  5. type ResourcePublication {
  6. # Whether the resource publication is published. Also returns true if the resource publication is scheduled to be published.
  7. # If false, then the resource publication is neither published nor scheduled to be published.
  8. isPublished: Boolean!
  9. # The publication the resource publication is published to.
  10. publication: Publication!
  11. # The date that the resource publication was or is going to be published to the publication.
  12. publishDate: DateTime!
  13. # The resource published to the publication.
  14. publishable: Publishable!
  15. }
  16. # A resource publication represents information about the publication of a resource.
  17. # Unlike ResourcePublication, an instance of ResourcePublicationV2 can't be unpublished. It must either be published or scheduled to be published.
  18. #
  19. # See ResourcePublication for more context.
  20. type ResourcePublicationV2 {
  21. # Whether the resource publication is published. If true, then the resource publication is published to the publication.
  22. # If false, then the resource publication is staged to be published to the publication.
  23. isPublished: Boolean!
  24. # The publication the resource publication is published to.
  25. publication: Publication!
  26. # The date that the resource publication was or is going to be published to the publication.
  27. publishDate: DateTime
  28. # The resource published to the publication.
  29. publishable: Publishable!
  30. }
  31. # An auto-generated type for paginating through multiple ResourcePublications.
  32. type ResourcePublicationConnection {
  33. # A list of edges.
  34. edges: [ResourcePublicationEdge!]!
  35. # A list of the nodes contained in ResourcePublicationEdge.
  36. nodes: [ResourcePublication!]!
  37. # Information to aid in pagination.
  38. pageInfo: PageInfo!
  39. }
  40. # An auto-generated type which holds one ResourcePublication and a cursor during pagination.
  41. type ResourcePublicationEdge {
  42. # A cursor for use in pagination.
  43. cursor: String!
  44. # The item at the end of ResourcePublicationEdge.
  45. node: ResourcePublication!
  46. }
  47. # An auto-generated type for paginating through multiple ResourcePublicationV2s.
  48. type ResourcePublicationV2Connection {
  49. # A list of edges.
  50. edges: [ResourcePublicationV2Edge!]!
  51. # A list of the nodes contained in ResourcePublicationV2Edge.
  52. nodes: [ResourcePublicationV2!]!
  53. # Information to aid in pagination.
  54. pageInfo: PageInfo!
  55. }
  56. # An auto-generated type which holds one ResourcePublicationV2 and a cursor during pagination.
  57. type ResourcePublicationV2Edge {
  58. # A cursor for use in pagination.
  59. cursor: String!
  60. # The item at the end of ResourcePublicationV2Edge.
  61. node: ResourcePublicationV2!
  62. }
  63. # An auto-generated type for paginating through multiple Publications.
  64. type PublicationConnection {
  65. # A list of edges.
  66. edges: [PublicationEdge!]!
  67. # A list of the nodes contained in PublicationEdge.
  68. nodes: [Publication!]!
  69. # Information to aid in pagination.
  70. pageInfo: PageInfo!
  71. }
  72. # An auto-generated type which holds one Publication and a cursor during pagination.
  73. type PublicationEdge {
  74. # A cursor for use in pagination.
  75. cursor: String!
  76. # The item at the end of PublicationEdge.
  77. node: Publication!
  78. }