From e72a32cd2ddaa74761d40cac876a2b8677e3feb4 Mon Sep 17 00:00:00 2001 From: Julie Turner Date: Wed, 22 May 2024 16:43:53 +0000 Subject: [PATCH] SPFX debugging update and added docs for sp-admin --- debug/spfx/package-lock.json | 145 +++++++++++++++++++++++++---------- debug/spfx/package.json | 9 ++- docs/sp-admin/index.md | 2 +- 3 files changed, 111 insertions(+), 45 deletions(-) diff --git a/debug/spfx/package-lock.json b/debug/spfx/package-lock.json index 9d2a3d4aa..71ac6b990 100644 --- a/debug/spfx/package-lock.json +++ b/debug/spfx/package-lock.json @@ -14,10 +14,11 @@ "@microsoft/sp-office-ui-fabric-core": "1.18.2", "@microsoft/sp-property-pane": "1.18.2", "@microsoft/sp-webpart-base": "1.18.2", - "@pnp/core": "^4.0.0-alpha0-v4nightly.20240412", - "@pnp/graph": "^4.0.0-alpha0-v4nightly.20240412", - "@pnp/logging": "^4.0.0-alpha0-v4nightly.20240412", - "@pnp/sp": "^4.0.0-alpha0-v4nightly.20240412", + "@pnp/core": "^4.0.1", + "@pnp/graph": "^4.0.1", + "@pnp/logging": "^4.0.1", + "@pnp/sp": "^4.0.1", + "@pnp/sp-admin": "^4.0.1", "tslib": "2.3.1" }, "devDependencies": { @@ -37,6 +38,66 @@ "node": ">=16.13.0 <17.0.0 || >=18.17.1 <19.0.0" } }, + "../..": { + "name": "@pnp/monorepo", + "version": "4.0.1", + "license": "MIT", + "devDependencies": { + "@azure/identity": "4.1.0", + "@azure/msal-browser": "3.13.0", + "@azure/msal-node": "2.7.0", + "@microsoft/microsoft-graph-types": "2.40.0", + "@pnp/buildsystem": "^4.0.1", + "@pnp/logging": "^3.24.0", + "@types/chai": "4.3.14", + "@types/chai-as-promised": "7.1.8", + "@types/core-js": "2.5.8", + "@types/findup-sync": "4.0.5", + "@types/mocha": "10.0.6", + "@types/node": "18.11.9", + "@types/webpack": "5.28.5", + "@types/yargs": "17.0.32", + "@typescript-eslint/eslint-plugin": "6.21.0", + "@typescript-eslint/parser": "6.21.0", + "chai": "4.3.10", + "chai-as-promised": "7.1.1", + "del-cli": "5.1.0", + "eslint": "8.57.0", + "findup-sync": "5.0.0", + "globby": "^14.0.1", + "mocha": "10.4.0", + "node-fetch": "3.3.2", + "prettyjson": "1.2.5", + "string-replace-loader": "3.1.0", + "tslib": "2.6.2", + "typescript": "4.9.5", + "webpack": "5.91.0", + "webpack-cli": "5.1.4", + "webpack-dev-server": "5.0.4", + "yargs": "17.7.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "../../dist/packages/sp-admin": { + "name": "@pnp/sp-admin", + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@pnp/core": "4.0.1", + "@pnp/queryable": "4.0.1", + "@pnp/sp": "4.0.1", + "tslib": "2.6.2" + }, + "engines": { + "node": ">=18.12.0" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/patrick-rodgers/" + } + }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", @@ -4941,11 +5002,11 @@ } }, "node_modules/@pnp/core": { - "version": "4.0.0-alpha0-v4nightly.20240412", - "resolved": "https://registry.npmjs.org/@pnp/core/-/core-4.0.0-alpha0-v4nightly.20240412.tgz", - "integrity": "sha512-CETGc6aYHRPSQtKRXLUKv5COLVy28QhKfjeqTEXmaleweRfRghvf3X0AYijYROQJL6//m5pHusA84skSwEI1iw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@pnp/core/-/core-4.0.1.tgz", + "integrity": "sha512-Z+FiQDR1BPLuzoU8IpL3rmpiPa4+kvu997uVDfTmOhXv7YWlCOgTQa0scJoqGDZZCkTUwl07KGZ8A6nT76gA5w==", "dependencies": { - "tslib": "2.4.1" + "tslib": "2.6.2" }, "engines": { "node": ">=18.12.0" @@ -4956,18 +5017,18 @@ } }, "node_modules/@pnp/core/node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/@pnp/graph": { - "version": "4.0.0-alpha0-v4nightly.20240412", - "resolved": "https://registry.npmjs.org/@pnp/graph/-/graph-4.0.0-alpha0-v4nightly.20240412.tgz", - "integrity": "sha512-6XsUED+ad0W7gnkQYK0W1DHBXB4veTP8QuPwtcDSrMzH48/bHHWRKudgwrGJGyj9rK1Fz3eaYyxFAj0lXhiTvQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@pnp/graph/-/graph-4.0.1.tgz", + "integrity": "sha512-7h+nZIkutcYtXzx8z64nSCBX62pfrbif1C+JZ+EAPsF19i2lhsB1cZTMsVSgyJRjt0cU/yb/XqBs0c63HwMMwg==", "dependencies": { "@microsoft/microsoft-graph-types": "2.40.0", - "@pnp/core": "4.0.0-alpha0-v4nightly.20240412", - "@pnp/queryable": "4.0.0-alpha0-v4nightly.20240412", + "@pnp/core": "4.0.1", + "@pnp/queryable": "4.0.1", "tslib": "2.6.2" }, "engines": { @@ -4984,11 +5045,11 @@ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/@pnp/logging": { - "version": "4.0.0-alpha0-v4nightly.20240412", - "resolved": "https://registry.npmjs.org/@pnp/logging/-/logging-4.0.0-alpha0-v4nightly.20240412.tgz", - "integrity": "sha512-l9QLYZaXgRFQBIJN6R7EQFD2h/s9r3i6arQPSNM4IHzHpq1TDKuFz/WK/EmPYyYLrAf3OeOp4/8CsGyD1FAeCw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@pnp/logging/-/logging-4.0.1.tgz", + "integrity": "sha512-+HVb3EFvSuEis2Wn7kHVhReEyFsB8Vtb2PfRWGcHQiCXGuje9y2oJb8HLxpV5+IdS2qoqpktrZa6ADf8+EkOVQ==", "dependencies": { - "tslib": "2.4.1" + "tslib": "2.6.2" }, "engines": { "node": ">=18.12.0" @@ -4999,17 +5060,17 @@ } }, "node_modules/@pnp/logging/node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/@pnp/queryable": { - "version": "4.0.0-alpha0-v4nightly.20240412", - "resolved": "https://registry.npmjs.org/@pnp/queryable/-/queryable-4.0.0-alpha0-v4nightly.20240412.tgz", - "integrity": "sha512-lKExbFgeccpSzs7qPSsN4qX8vS8Sp2BAT/FjECYNjyPjKhgP9wox1zC0BVR6W0gbAdHE+nAhBn6DxL/8vdtMEQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@pnp/queryable/-/queryable-4.0.1.tgz", + "integrity": "sha512-n/oq5jjjCf+IAreEUsFUQ2EjXuAjSBUxO5usQVi3tjStUca50DPDIxzJTiPTGcqnpwTiEqJiyqEmKIbZfzWSqg==", "dependencies": { - "@pnp/core": "4.0.0-alpha0-v4nightly.20240412", - "tslib": "2.4.1" + "@pnp/core": "4.0.1", + "tslib": "2.6.2" }, "engines": { "node": ">=18.12.0" @@ -5020,18 +5081,18 @@ } }, "node_modules/@pnp/queryable/node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/@pnp/sp": { - "version": "4.0.0-alpha0-v4nightly.20240412", - "resolved": "https://registry.npmjs.org/@pnp/sp/-/sp-4.0.0-alpha0-v4nightly.20240412.tgz", - "integrity": "sha512-M8KBzH3+R5odmeefrR6KKh6BOquXKxfIGJ6wXp67qDtdifE8cOY18ObFPyLOnReaA80R0VKrYhrrM1vPsrWY1g==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@pnp/sp/-/sp-4.0.1.tgz", + "integrity": "sha512-EpDfxgKoHESi+04pJKwfxSxNYPRnYfsXKEK3uDNrwf1TObM/oWXzoumaXD8A8h4rW7DlI0vIUQiXdsJT7sQUwQ==", "dependencies": { - "@pnp/core": "4.0.0-alpha0-v4nightly.20240412", - "@pnp/queryable": "4.0.0-alpha0-v4nightly.20240412", - "tslib": "2.4.1" + "@pnp/core": "4.0.1", + "@pnp/queryable": "4.0.1", + "tslib": "2.6.2" }, "engines": { "node": ">=18.12.0" @@ -5041,10 +5102,14 @@ "url": "https://github.com/sponsors/patrick-rodgers/" } }, + "node_modules/@pnp/sp-admin": { + "resolved": "../../dist/packages/sp-admin", + "link": true + }, "node_modules/@pnp/sp/node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/@pnpm/crypto.base32-hash": { "version": "2.0.0", diff --git a/debug/spfx/package.json b/debug/spfx/package.json index 5b56ce540..12c254d75 100644 --- a/debug/spfx/package.json +++ b/debug/spfx/package.json @@ -18,10 +18,11 @@ "@microsoft/sp-office-ui-fabric-core": "1.18.2", "@microsoft/sp-property-pane": "1.18.2", "@microsoft/sp-webpart-base": "1.18.2", - "@pnp/core": "^4.0.0-alpha0-v4nightly.20240412", - "@pnp/graph": "^4.0.0-alpha0-v4nightly.20240412", - "@pnp/logging": "^4.0.0-alpha0-v4nightly.20240412", - "@pnp/sp": "^4.0.0-alpha0-v4nightly.20240412", + "@pnp/core": "^4.0.1", + "@pnp/graph": "^4.0.1", + "@pnp/logging": "^4.0.1", + "@pnp/sp": "^4.0.1", + "@pnp/sp-admin": "^4.0.1", "tslib": "2.3.1" }, "devDependencies": { diff --git a/docs/sp-admin/index.md b/docs/sp-admin/index.md index 765db8df2..83e3fd103 100644 --- a/docs/sp-admin/index.md +++ b/docs/sp-admin/index.md @@ -6,7 +6,7 @@ The `@pnp/sp-admin` library enables you to call the static SharePoint admin API' - `_api/Microsoft.Online.SharePoint.TenantAdministration.SiteProperties` - `_api/Microsoft.Online.SharePoint.TenantAdministration.Tenant` -These APIs typically require an elevated level of permissions and should not be relied upon in general user facing solutions. Before using this library please understand the impact of what you are doing as you are updating settings at the tenant level for all users. +These APIs typically require an elevated level of permissions and should not be relied upon in general user facing solutions. Before using this library please understand the impact of what you are doing as you are updating settings at the tenant level for all users. Also keep in mind these endpoints do not support application permissions, therefore you will need to get a user token for delegated access, ergo they cannot be used unattended. !!! warning These APIs are officially not documented which means there is no SLA provided by Microsoft. Furthermore, they can be updated without notification.