from __future__ import annotations


def kvs_place_members_query() -> str:
    return """
query placeMembers($id: String!) {
  place(id: $id) {
    results {
      id
      members {
        id
        parent_id
        user { id username }
      }
    }
  }
}
""".strip()


def add_user_to_place_mutation() -> str:
    return """
mutation AddUserToPlace($input: AddUserToPlaceDTO!) {
  addUserToPlace(dto: $input)
}
""".strip()


def kvs_members_query() -> str:
    return """
query membersByPlace($place_id: String!) {
  members(filters: { place_id: $place_id }) {
    results {
      id
      status
    }
  }
}
""".strip()


def update_member_status_mutation() -> str:
    return """
mutation updatememberUser($dto: UpdateMemberStatusDto!) {
  updateMemberStatus(dto: $dto)
}
""".strip()

