Make JS repoApi aware of editEntity's "new" parameter

Bug: 49526
Change-Id: If4a37d5de31c930d9227bdacbddf2fc6b9efa7ae
Merge "Make JS repoApi aware of editEntity's "new" parameter"