GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.6 KiB

  1. # A Post is a part of a log
  2. type Post {
  3. # The post's ID
  4. id: String!
  5. # The post's Log ID. This is the closest thing to a link back since this API graph doesn't have any cycles.
  6. logId: String!
  7. # The date and time of posting
  8. time: String!
  9. # The kind of post this is. Only "text", "scene" and "action" are RP, while others are annotations and 'commands'.
  10. kind: String!
  11. # The character nick
  12. nick: String!
  13. # The post's text, which purpose depends on the kind
  14. text: String!
  15. # The post's index, which is used to sort posts
  16. index: Int!
  17. }
  18. # Input for the addPost mutation
  19. input AddPostInput {
  20. # The log's ID that this post should be a part of
  21. logId: String!
  22. # The date and time of posting, in a RFC3339 format with up to a nanosecond's precision
  23. time: String!
  24. # The kind of post this is. Only "text", "scene" and "action" are RP, while others are annotations and 'commands'.
  25. kind: String!
  26. # The character nick, or command invoker for non-RP stuff
  27. nick: String!
  28. # The post's text, which purpose depends on the kind
  29. text: String!
  30. }
  31. # Input for the editPost mutation
  32. input EditPostInput {
  33. # The Post ID
  34. id: String!
  35. # The date and time of posting, in a RFC3339 format with up to a nanosecond's precision
  36. time: String
  37. # The kind of post this is. Only "text", "scene" and "action" are RP, while others are annotations and 'commands'.
  38. kind: String
  39. # The character nick, or command invoker for non-RP stuff
  40. nick: String
  41. # The post's text, which purpose depends on the kind
  42. text: String
  43. }
  44. # Input for the movePost mutation
  45. input MovePostInput {
  46. # The Post ID
  47. id: String!
  48. # Target index
  49. targetIndex: Int!
  50. }