import { ColumnData , SelectAnalyzer } from '@salesforce/soql-model' ; import { JsonMap } from '@salesforce/ts-types' ; import { QueryResult } from 'jsforce' ; export interface ExtendedQueryData extends QueryResult < JsonMap > { columnData : ColumnData ; } export function extendQueryData ( queryText , queryData ) { return { ... queryData , columnData : new SelectAnalyzer ( queryText ) . getColumnData ( ) } ; }