@pnp/sp
Version:
pnp - provides a fluent api for working with SharePoint REST
17 lines • 632 B
JavaScript
import { SPFI } from "../fi.js";
import { Web } from "../webs/types.js";
import { AppCatalog } from "./types.js";
import "./web.js";
export { App, AppCatalog, } from "./types.js";
Reflect.defineProperty(SPFI.prototype, "tenantAppcatalog", {
configurable: true,
enumerable: true,
get: function () {
return this.create(AppCatalog, "_api/web/tenantappcatalog/AvailableApps");
},
});
SPFI.prototype.getTenantAppCatalogWeb = async function () {
const data = await Web(this._root, "_api/SP_TenantSettings_Current")();
return Web([this._root, data.CorporateCatalogUrl]);
};
//# sourceMappingURL=index.js.map