Updating consumer applicability api to add ability to specify optional repoids and optional units, also changing the format in which units are specified for the ease of queries by type_id