aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/schema/bug_operations.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'api/graphql/schema/bug_operations.graphql')
-rw-r--r--api/graphql/schema/bug_operations.graphql78
1 files changed, 78 insertions, 0 deletions
diff --git a/api/graphql/schema/bug_operations.graphql b/api/graphql/schema/bug_operations.graphql
new file mode 100644
index 00000000..93228d2a
--- /dev/null
+++ b/api/graphql/schema/bug_operations.graphql
@@ -0,0 +1,78 @@
+type BugCreateOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.CreateOperation") {
+ """The identifier of the operation"""
+ id: ID!
+ """The author of this object."""
+ author: Identity!
+ """The datetime when this operation was issued."""
+ date: Time! @goField(name: "Time")
+
+ title: String!
+ message: String!
+ files: [Hash!]!
+}
+
+type BugSetTitleOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetTitleOperation") {
+ """The identifier of the operation"""
+ id: ID!
+ """The author of this object."""
+ author: Identity!
+ """The datetime when this operation was issued."""
+ date: Time! @goField(name: "Time")
+
+ title: String!
+ was: String!
+}
+
+type BugAddCommentOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.AddCommentOperation") {
+ """The identifier of the operation"""
+ id: ID!
+ """The author of this object."""
+ author: Identity!
+ """The datetime when this operation was issued."""
+ date: Time! @goField(name: "Time")
+
+ message: String!
+ files: [Hash!]!
+}
+
+type BugEditCommentOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.EditCommentOperation") {
+ """The identifier of the operation"""
+ id: ID!
+ """The author of this object."""
+ author: Identity!
+ """The datetime when this operation was issued."""
+ date: Time! @goField(name: "Time")
+
+ target: String!
+ message: String!
+ files: [Hash!]!
+}
+
+type BugSetStatusOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.SetStatusOperation") {
+ """The identifier of the operation"""
+ id: ID!
+ """The author of this object."""
+ author: Identity!
+ """The datetime when this operation was issued."""
+ date: Time! @goField(name: "Time")
+
+ status: Status!
+}
+
+type BugLabelChangeOperation implements Operation & Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.LabelChangeOperation") {
+ """The identifier of the operation"""
+ id: ID!
+ """The author of this object."""
+ author: Identity!
+ """The datetime when this operation was issued."""
+ date: Time! @goField(name: "Time")
+
+ added: [Label!]!
+ removed: [Label!]!
+}