# Contribution domain operations
query GetContribution($id: ID!) {
  contribution(id: $id) {
    id
    name
    status
    createdAt
    updatedAt
    user { id username }
    work { id name }
    translation { id name }
  }
}

query Contributions($userId: ID, $workId: ID, $translationId: ID) {
  contributions(userId: $userId, workId: $workId, translationId: $translationId) {
    id
    name
    status
    createdAt
    updatedAt
  }
}

mutation CreateContribution($input: ContributionInput!) {
  createContribution(input: $input) {
    id
    name
    status
    createdAt
  }
}

mutation UpdateContribution($id: ID!, $input: ContributionInput!) {
  updateContribution(id: $id, input: $input) {
    id
    name
    status
    updatedAt
  }
}

mutation DeleteContribution($id: ID!) {
  deleteContribution(id: $id)
}

mutation ReviewContribution($id: ID!, $status: ContributionStatus!, $feedback: String) {
  reviewContribution(id: $id, status: $status, feedback: $feedback) {
    id
    status
    updatedAt
  }
}
