delete Item.
This commit is contained in:
@@ -24,8 +24,6 @@ type Issue {
|
||||
status: ProjectStatus!
|
||||
"Issue tasks."
|
||||
tasks(filter: IssueTaskFilter): [IssueTask!]!
|
||||
"Issue items."
|
||||
items(filter: IssueIssueItemFilter): [IssueItem!]!
|
||||
"Logs related to this issue."
|
||||
logs: [Log!]!
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
"""
|
||||
An issue item is a requirement of an item under an issue.
|
||||
"""
|
||||
type IssueItem {
|
||||
"ID of the issue item listing."
|
||||
id: String!
|
||||
"The amount of the item associated with an issue."
|
||||
quantity: Int!
|
||||
"Whether the full quantity of item has been acquired."
|
||||
acquired: Boolean!
|
||||
|
||||
"Parent issue of the issue item."
|
||||
issue: Issue!
|
||||
"The item associated with the issue."
|
||||
item: Item!
|
||||
"The amount of items remaining."
|
||||
remaining: Int!
|
||||
}
|
||||
|
||||
"Input for the items query."
|
||||
input IssueItemFilter {
|
||||
"Filter to only these IDs, used primarily by IDs."
|
||||
issueItemIds: [String!]
|
||||
"Filter to only these issues."
|
||||
issueIds: [String!]
|
||||
"Filter to only issues where these are the asignees."
|
||||
issueAssignees: [String!]
|
||||
"Filter to only issues where these are the owners."
|
||||
issueOwners: [String!]
|
||||
"Filter by issue minimum stage (inclusive)."
|
||||
issueMinStage: Int
|
||||
"Filter by issue maximum stage (inclusive)."
|
||||
issueMaxStage: Int
|
||||
"Filter to only list issue items with these items."
|
||||
itemIds: [String!]
|
||||
"Filter to only list issue items where the item has these tags."
|
||||
itemTags: [String!]
|
||||
"Only listed acquired or non-acquired items."
|
||||
acquired: Boolean
|
||||
}
|
||||
|
||||
"Input for the items query."
|
||||
input IssueIssueItemFilter {
|
||||
"Filter to only these IDs, used primarily by IDs."
|
||||
issueItemIds: [String!]
|
||||
"Filter to only list issue items with these items."
|
||||
itemIds: [String!]
|
||||
"Filter to only list issue items where the item has these tags."
|
||||
itemTags: [String!]
|
||||
"Only listed acquired or non-acquired items."
|
||||
acquired: Boolean
|
||||
}
|
||||
|
||||
"Input for the createIssueItem mutation."
|
||||
input IssueItemCreateInput {
|
||||
"Parent issue."
|
||||
issueId: String!
|
||||
"Item to associate with."
|
||||
itemId: String!
|
||||
"Quantity of the item."
|
||||
quanitty: Int!
|
||||
"Whether the item has already been acquired."
|
||||
acquired: Boolean
|
||||
}
|
||||
|
||||
"Input for the editIssueItem mutation."
|
||||
input IssueItemEditInput {
|
||||
"The ID of the issue item to edit."
|
||||
issueItemId: String!
|
||||
"Update the quantity of the item."
|
||||
setQuanitty: Int
|
||||
"Update whether the item has been acquired."
|
||||
setAcquired: Boolean
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
"""
|
||||
An item that can be required for an issue.
|
||||
"""
|
||||
type Item {
|
||||
"The item's unique ID."
|
||||
id: String!
|
||||
"Name of the item."
|
||||
name: String!
|
||||
"A description of the item."
|
||||
description: String!
|
||||
"Item tags."
|
||||
tags: [String!]!
|
||||
"Quantity unit. Usually absent, but otherwise most often 'g' or 'ml'"
|
||||
quantityUnit: String
|
||||
"URL for the image, if available."
|
||||
imageUrl: String
|
||||
}
|
||||
|
||||
"Filter for the items query."
|
||||
input ItemFilter {
|
||||
"Get these item IDs. Mostly used internally."
|
||||
itemIds: [String!]
|
||||
"Limit to items with any of the following tags."
|
||||
tags: [String!]
|
||||
}
|
||||
|
||||
"Input for the createItem mutation."
|
||||
input ItemCreateInput {
|
||||
"Put a name on it."
|
||||
name: String!
|
||||
"Describe it for me."
|
||||
description: String!
|
||||
"Add a tag or a few"
|
||||
tags: [String!]!
|
||||
"Optional: Quanity unit."
|
||||
quantityUnit: String
|
||||
"Optional: Upload an image."
|
||||
image: Upload
|
||||
}
|
||||
|
||||
"Input for the editItem mutation."
|
||||
input ItemEditInput {
|
||||
"The item to edit."
|
||||
itemId: String!
|
||||
|
||||
"Update the name."
|
||||
setName: String
|
||||
"Update the description."
|
||||
setDescription: String
|
||||
"Add new tags. The tags are added after removeTag tags are removed."
|
||||
addTags: [String!]
|
||||
"Remove existing tags. If a tag exists both here and in addTags, it will not be removed."
|
||||
removeTags: [String!]
|
||||
"Update quantity unit."
|
||||
setQuantityUnit: String
|
||||
"Clear quantity unit."
|
||||
clearQuantityUnit: Boolean
|
||||
"Update the image URL with a new image."
|
||||
updateImage: Upload
|
||||
}
|
||||
@@ -13,8 +13,6 @@ type Log {
|
||||
user: User!
|
||||
"The tasks logged."
|
||||
tasks: [LogTask!]!
|
||||
"The items changed."
|
||||
items: [LogItem!]!
|
||||
}
|
||||
|
||||
type LogTask {
|
||||
@@ -28,18 +26,6 @@ type LogTask {
|
||||
duration: Duration!
|
||||
}
|
||||
|
||||
"""
|
||||
Log items are item changes related to a log.
|
||||
"""
|
||||
type LogItem {
|
||||
"Parent issue of the item."
|
||||
issue: Issue!
|
||||
"The item that has been acquired."
|
||||
item: IssueItem!
|
||||
"The amount of items acquired."
|
||||
amount: Int!
|
||||
}
|
||||
|
||||
"Filter for the logs query."
|
||||
input LogFilter {
|
||||
"Log IDs to select."
|
||||
|
||||
@@ -9,12 +9,6 @@ type Mutation {
|
||||
"Edit an activity."
|
||||
editActivity(input: ActivityEditInput!): Activity!
|
||||
|
||||
# ITEM
|
||||
"Create an item."
|
||||
createItem(input: ItemCreateInput): Item!
|
||||
"Edit an item."
|
||||
editItem(input: ItemEditInput): Item!
|
||||
|
||||
# ISSUE
|
||||
"Create a new issue."
|
||||
createIssue(input: IssueCreateInput!): Issue!
|
||||
@@ -25,11 +19,6 @@ type Mutation {
|
||||
createIssueTask(input: IssueTaskCreateInput!): IssueTask!
|
||||
"Edit an issue task."
|
||||
editIssueTask(input: IssueTaskEditInput!): IssueTask!
|
||||
# ISSUE ITEM
|
||||
"Create an issue item."
|
||||
createIssueItem(input: IssueItemCreateInput!): IssueItem!
|
||||
"Edit an issue item."
|
||||
editIssueItem(input: IssueItemEditInput!): IssueItem!
|
||||
|
||||
# LOG
|
||||
"Create a log."
|
||||
|
||||
@@ -4,18 +4,6 @@ type Query {
|
||||
"List issues."
|
||||
issues(filter: IssueFilter): [Issue!]!
|
||||
|
||||
"Find item."
|
||||
item(id: String!): Item!
|
||||
"List items."
|
||||
items(filter: ItemFilter): [Item!]!
|
||||
"List item tags."
|
||||
itemTags: [String!]!
|
||||
|
||||
"Find issue item."
|
||||
issueItem(id: String!): IssueItem!
|
||||
"List issue items."
|
||||
issueItems(filter: IssueItemFilter): [IssueItem!]!
|
||||
|
||||
"Find project."
|
||||
project(id: String!): Project!
|
||||
"List projects."
|
||||
|
||||
Reference in New Issue
Block a user