stufflog graphql server
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.

109 lines
2.5 KiB

5 years ago
  1. """
  2. A log is a chunk of logged work, on one or more issues.
  3. """
  4. type Log {
  5. "The log's ID."
  6. id: String!
  7. "When the log is taking place."
  8. date: Time!
  9. "A description of the log."
  10. description: String!
  11. "The user that logged the work."
  12. user: User!
  13. "The tasks logged."
  14. tasks: [LogTask!]!
  15. "The items changed."
  16. items: [LogItem!]!
  17. }
  18. type LogTask {
  19. "Parent issue of the task."
  20. issue: Issue!
  21. "The issue task logged."
  22. task: IssueTask!
  23. "How many units of work is done, if applicable."
  24. units: Int
  25. "Time spent on the issue."
  26. duration: Duration!
  27. }
  28. """
  29. Log items are item changes related to a log.
  30. """
  31. type LogItem {
  32. "Parent issue of the item."
  33. issue: Issue!
  34. "The item that has been acquired."
  35. item: IssueItem!
  36. "The amount of items acquired."
  37. amount: Int!
  38. }
  39. "Filter for the logs query."
  40. input LogFilter {
  41. "Log IDs to select."
  42. logIds: [String!]
  43. "Limit to the user IDs."
  44. userIds: [String!]
  45. "The issue IDs to limit to."
  46. issueIds: [String!]
  47. "The issue task IDs to limit to."
  48. issueTaskIds: [String!]
  49. "The issue item IDs to limit to."
  50. issueItemIds: [String!]
  51. "Earliest date to get logs from (inclusive)."
  52. fromDate: Time
  53. "Latest date to get logs from (inclusive)."
  54. toDate: Time
  55. }
  56. "Input for the createLog mutation."
  57. input LogCreateInput {
  58. "When did it take place."
  59. date: Time!
  60. "Describe the logged work."
  61. description: String!
  62. "Add issue items to the log."
  63. items: [LogItemInput!]
  64. "Add issue tasks to the log."
  65. tasks: [LogTaskInput!]
  66. }
  67. "Input for the editLog mutation."
  68. input LogEditInput {
  69. "The log to update."
  70. logId: String!
  71. "Update the time of the log."
  72. setDate: Time
  73. "Update the description of the log."
  74. setDescription: String
  75. "Add/update one or more items to the log."
  76. updateItems: [LogItemInput!]
  77. "Remove one or more items from the log."
  78. removeItems: [String!]
  79. "Add/update one or more items to the log."
  80. updateTasks: [LogTaskInput!]
  81. "Remove one or more items from the log."
  82. removeTasks: [String!]
  83. }
  84. "Sub-input for the createLog and editLog mutation."
  85. input LogItemInput {
  86. "The issue item to log ID."
  87. issueItemId: String!
  88. "The amount of items acquired."
  89. amount: Int!
  90. }
  91. "Sub-input for the createLog and editLog mutation."
  92. input LogTaskInput {
  93. "The issue item to log ID."
  94. issueTaskId: String!
  95. "The amount of units done, if applicable."
  96. units: Int
  97. "How long did it take?"
  98. duration: Duration!
  99. }