import { Org } from "@salesforce/core" ; import PreRequisiteCheck from "./prequisitecheck/PreRequisiteCheck" ; export abstract class PoolBaseImpl { protected hubOrg : Org ; constructor ( hubOrg ) { this . hubOrg = hubOrg ; } public async execute ( ) { let prerequisiteCheck = new PreRequisiteCheck ( this . hubOrg ) ; let prerequisiteResult = await prerequisiteCheck . checkForPrerequisites ( ) ; if ( prerequisiteResult . isErr ( ) ) return prerequisiteResult ; else return this . onExec ( ) ; } protected abstract onExec ( ) ; }