Adding api to get latest partition date for cube

Lets change the param name also.