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.
60 lines
1.8 KiB
60 lines
1.8 KiB
"""
|
|
An activity is a measurable activity for a project. It can be measured.
|
|
"""
|
|
type Activity {
|
|
"The activity ID."
|
|
id: String!
|
|
"The activity name."
|
|
name: String!
|
|
"Whether the activity is countable."
|
|
countable: Boolean!
|
|
"Whether the time spent is the unit."
|
|
unitIsTimeSpent: Boolean!
|
|
"The name of the unit. If unitIsTime or countable is true, this value should be ignored."
|
|
unitName: String
|
|
"The value per unit."
|
|
unitValue: Float!
|
|
"The base score value for any performed activity. For uncountables, this is the only points scored."
|
|
baseValue: Float!
|
|
|
|
"Parent project."
|
|
project: Project!
|
|
}
|
|
|
|
"""
|
|
Input for the createActivity mutation.
|
|
"""
|
|
input ActivityCreateInput {
|
|
"Project ID to associate it with."
|
|
projectId: String!
|
|
"Proejct name."
|
|
name: String!
|
|
"The base value of any activity performed. If uncountable, this should be non-zero."
|
|
baseValue: Float!
|
|
"Whether the activity is countable. Default: false"
|
|
countable: Boolean
|
|
"Whether time spent should be the unit of this activity."
|
|
unitIsTimeSpent: Boolean
|
|
"The unit name of the activity."
|
|
unitName: String
|
|
"The per-unit value of the activity."
|
|
unitValue: Float
|
|
}
|
|
|
|
"""
|
|
Input for the editActivity mutation. Not all changes are available as they could create
|
|
some serious issues with past goals and logs.
|
|
"""
|
|
input ActivityEditInput {
|
|
"The ID of the activity to edit."
|
|
activityId: String!
|
|
|
|
"Update the name of the activity."
|
|
setName: String
|
|
"Set the base value of the activity. This has an effect on current and past goals!"
|
|
setBaseValue: Float
|
|
"Set the unit name of the activity. This is only for countable, non time spent acitivities."
|
|
setUnitName: String
|
|
"Set the unit value of the activity. This has an effect on current and past goals!"
|
|
setUnitValue: Float
|
|
}
|