1 | import { SPFI } from "../fi.js";
|
2 | import { Web } from "../webs/types.js";
|
3 | import { AppCatalog } from "./types.js";
|
4 | import "./web.js";
|
5 | export { App, AppCatalog, } from "./types.js";
|
6 | Reflect.defineProperty(SPFI.prototype, "tenantAppcatalog", {
|
7 | configurable: true,
|
8 | enumerable: true,
|
9 | get: function () {
|
10 | return this.create(AppCatalog, "_api/web/tenantappcatalog/AvailableApps");
|
11 | },
|
12 | });
|
13 | SPFI.prototype.getTenantAppCatalogWeb = async function () {
|
14 | const data = await Web(this._root, "_api/SP_TenantSettings_Current")();
|
15 | return Web([this._root, data.CorporateCatalogUrl]);
|
16 | };
|
17 |
|
\ | No newline at end of file |