import { Connection } from "@salesforce/core" ; import QueryHelper from "../queryHelper/QueryHelper" ; export default class ApexClassFetcher { constructor ( private conn ) { } param classNames returns public async fetchApexClassByName ( classNames ) { let collection = classNames . map ( ( name ) => `'${ name }'` ) . toString ( ) ; let query = `SELECT ID, Name FROM ApexClass WHERE Name IN (${ collection })` ; return QueryHelper . query < { Id : string ; Name : string ; } > ( query , this . conn , false ) ; } }