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.

90 lines
1.8 KiB

  1. """
  2. A Comment represents a comment to a story chapter.
  3. """
  4. type Comment {
  5. "A unique ID of the change."
  6. id: String!
  7. "subject"
  8. subject: String!
  9. "The chapter ID the comment belongs to."
  10. chapterId: String!
  11. "The comment's author."
  12. author: String!
  13. "The displayed name of the character. This may be the same as character.name, but it does not need to be."
  14. characterName: String!
  15. "The character associated with the comment."
  16. character: Character
  17. "The fictional (IC) date of the comment."
  18. fictionalDate: Time
  19. "The date of creation."
  20. createdDate: Time!
  21. "The date of the last edit."
  22. editedDate: Time!
  23. "The markdown source of the comment."
  24. source: String!
  25. }
  26. """
  27. Input for the addComment mutation
  28. """
  29. input CommentAddInput {
  30. "What chapter to comment on."
  31. chapterId: String!
  32. "The markdown source of the comment."
  33. source: String!
  34. "The name of the character associated with this comment."
  35. characterName: String!
  36. "Optioanlly, a character ID."
  37. characterId: String
  38. "Optional in-universe date of the comment."
  39. fictionalDate: Time
  40. "Optional subject to add to the comment, only shown in some modes."
  41. subject: String
  42. }
  43. """
  44. Input for the editComment mutation
  45. """
  46. input CommentEditInput {
  47. "What comment to edit."
  48. commentId: String!
  49. "Change the markdown source."
  50. source: String
  51. "Change the name of the character associated with this comment."
  52. characterName: String
  53. "Change the character assocaited with this comment."
  54. characterId: String
  55. "Change the optional in-universe date of the comment."
  56. fictionalDate: Time
  57. "Set to clear the fictional date."
  58. clearFictionalDate: Boolean
  59. "Change the optional subject for the comment, only shown in some modes."
  60. subject: String
  61. }
  62. """
  63. Input for the removeComment mutation
  64. """
  65. input CommentRemoveInput {
  66. "What comment to edit."
  67. commentId: String!
  68. }