added new closeAsset mutation and support in UI

This commit is contained in:
Wyatt Johnson
2018-01-17 16:04:32 -07:00
parent 08b1cada7e
commit ac62cbf348
6 changed files with 104 additions and 21 deletions
+11
View File
@@ -1111,6 +1111,14 @@ type UpdateAssetStatusResponse implements Response {
errors: [UserError!]
}
# CloseAssetResponse is the response returned with possibly some errors
# relating to the update status attempt.
type CloseAssetResponse implements Response {
# An array of errors relating to the mutation that occurred.
errors: [UserError!]
}
# UpdateAssetSettingsResponse is the response returned with possibly some errors
# relating to the update settings attempt.
type UpdateAssetSettingsResponse implements Response {
@@ -1446,6 +1454,9 @@ type RootMutation {
# Mutation is restricted.
updateAssetStatus(id: ID!, input: UpdateAssetStatusInput!): UpdateAssetStatusResponse
# closeAsset will close the asset for commenting based on server time.
closeAsset(id: ID!): CloseAssetResponse
# updateSettings will update the global settings.
# Mutation is restricted.
updateSettings(input: UpdateSettingsInput!): UpdateSettingsResponse