Adding api to get latest partition date for cube

Take timeDimension as the param that user gives and get its corresponding partition column to access partitions.