Star Wars has received two novelisations, one by Alan Dean Foster (generally described as the "official novelisation" and a second "Junior" novelisation by Michael Kogge which was released several days after the film (entitled Star Wars: The Force Awakens - A Junior novel).
Was the "Junior" novel based on the screenplay, the film or the official novelisation?