import { ISiteManager } from "../../@types/lib" ; import { ITargetInfoProps } from "../../@types/utils" ; import { Base , Request } from "../utils" ; /**
 * Site Manager
 */ export const SiteManager = ( ( url ? , targetInfo ? ) => { let siteMgr = new Base ( targetInfo ) ; siteMgr . targetInfo . defaultToWebFl = true ; siteMgr . targetInfo . endpoint = "SPSiteManager" ; if ( url ) { siteMgr . targetInfo . url = url ; } Request . addMethods ( siteMgr , { __metadata : { type : "Microsoft.SharePoint.Portal.SPSiteManager" } } ) ; return siteMgr ; } ) as any as ISiteManager ;