CMS-2830 Create TS-equivalent classes for TermsAggregation