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

Bug: 49526
Change-Id: If4a37d5de31c930d9227bdacbddf2fc6b9efa7ae
Fix client's add-link-widget

* this was broken due to a change in the editEntity API module

Change-Id: I2565b330a3d57307e13090c4e7faa6b27ed8db0f