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.

59 lines
1.8 KiB

5 years ago
  1. """
  2. An activity is a measurable activity for a project. It can be measured.
  3. """
  4. type Activity {
  5. "The activity ID."
  6. id: String!
  7. "The activity name."
  8. name: String!
  9. "Whether the activity is countable."
  10. countable: Boolean!
  11. "Whether the time spent is the unit."
  12. unitIsTimeSpent: Boolean!
  13. "The name of the unit. If unitIsTime or countable is true, this value should be ignored."
  14. unitName: String
  15. "The value per unit."
  16. unitValue: Float!
  17. "The base score value for any performed activity. For uncountables, this is the only points scored."
  18. baseValue: Float!
  19. "Parent project."
  20. project: Project!
  21. }
  22. """
  23. Input for the createActivity mutation.
  24. """
  25. input ActivityCreateInput {
  26. "Project ID to associate it with."
  27. projectId: String!
  28. "Proejct name."
  29. name: String!
  30. "The base value of any activity performed. If uncountable, this should be non-zero."
  31. baseValue: Float!
  32. "Whether the activity is countable. Default: false"
  33. countable: Boolean
  34. "Whether time spent should be the unit of this activity."
  35. unitIsTimeSpent: Boolean
  36. "The unit name of the activity."
  37. unitName: String
  38. "The per-unit value of the activity."
  39. unitValue: Float
  40. }
  41. """
  42. Input for the editActivity mutation. Not all changes are available as they could create
  43. some serious issues with past goals and logs.
  44. """
  45. input ActivityEditInput {
  46. "The ID of the activity to edit."
  47. activityId: String!
  48. "Update the name of the activity."
  49. setName: String
  50. "Set the base value of the activity. This has an effect on current and past goals!"
  51. setBaseValue: Float
  52. "Set the unit name of the activity. This is only for countable, non time spent acitivities."
  53. setUnitName: String
  54. "Set the unit value of the activity. This has an effect on current and past goals!"
  55. setUnitValue: Float
  56. }