import { Connection } from "@salesforce/core" ; import QueryHelper from "../queryHelper/QueryHelper" ; export default class PermissionSetFetcher { constructor ( private username , private conn ) { } public async fetchAllPermsetAssignment ( ) { const query = `SELECT Id, PermissionSet.Name, Assignee.Username FROM PermissionSetAssignment WHERE Assignee.Username = '${ this . username }'` ; return QueryHelper . query < any > ( query , this . conn , false ) ; } }