UNPKG

@pnp/sp

Version:

pnp - provides a fluent api for working with SharePoint REST

12 lines 457 B
import { _Site, Site } from "../sites/types.js"; import { spPost } from "../operations.js"; _Site.prototype.joinHubSite = async function (siteId) { await spPost(Site(this, `joinHubSite('${siteId}')`)); }; _Site.prototype.registerHubSite = async function () { await spPost(Site(this, "registerHubSite")); }; _Site.prototype.unRegisterHubSite = async function () { await spPost(Site(this, "unRegisterHubSite")); }; //# sourceMappingURL=site.js.map