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.

81 lines
1.8 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: Time!
  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 position, used for reordering
  16. position: Int!
  17. }
  18. # Input for the addPost mutation
  19. input PostAddInput {
  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: Time!
  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 PostEditInput {
  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: Time
  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 PostMoveInput {
  46. # The Post ID
  47. id: String!
  48. # Target index
  49. toPosition: Int!
  50. }
  51. # Input for the removePost mutation
  52. input PostRemoveInput {
  53. # The Post ID
  54. id: String!
  55. }
  56. # Filter for posts query
  57. input PostsFilter {
  58. ids: [String!]
  59. kinds: [String!]
  60. logId: String
  61. limit: Int
  62. }