@pnp/cli-microsoft365 12.0.0-beta.e4f7675 → 12.0.0-beta.f682e10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devproxy/generate-openapi-spec.json +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +2 -6
- package/dist/auth/FileTokenStorage.js +0 -3
- package/dist/auth/msalCachePlugin.js +201 -12
- package/dist/googleAnalytics.js +96 -0
- package/dist/m365/commands/logout.js +2 -4
- package/dist/m365/entra/commands/m365group/m365group-remove.js +4 -3
- package/dist/m365/spe/commands/container/container-remove.js +6 -7
- package/dist/m365/spo/commands/file/file-archive.js +1 -1
- package/dist/m365/spo/commands/file/file-get.js +4 -3
- package/dist/m365/spo/commands/file/file-remove.js +5 -5
- package/dist/m365/spo/commands/file/file-unarchive.js +1 -1
- package/dist/m365/spo/commands/folder/folder-archive.js +1 -1
- package/dist/m365/spo/commands/folder/folder-remove.js +5 -5
- package/dist/m365/spo/commands/folder/folder-unarchive.js +90 -0
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +5 -0
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +8 -26
- package/dist/m365/spo/commands/homesite/homesite-list.js +5 -0
- package/dist/m365/spo/commands/list/list-remove.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +5 -4
- package/dist/m365/spo/commands/listitem/listitem-get.js +1 -12
- package/dist/m365/spo/commands/listitem/listitem-remove.js +8 -5
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +6 -4
- package/dist/m365/spo/commands/page/page-remove.js +7 -7
- package/dist/m365/spo/commands/site/site-remove.js +7 -7
- package/dist/m365/spo/commands/spo-get.js +5 -0
- package/dist/m365/spo/commands/spo-set.js +10 -21
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
- package/dist/m365/spo/commands/user/user-ensure.js +24 -60
- package/dist/m365/spo/commands/user/user-get.js +25 -65
- package/dist/m365/spo/commands/user/user-list.js +10 -18
- package/dist/m365/spo/commands/user/user-remove.js +26 -68
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +10 -23
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +10 -19
- package/dist/m365/spo/commands/web/web-add.js +20 -55
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +10 -18
- package/dist/m365/spo/commands/web/web-get.js +12 -30
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +10 -18
- package/dist/m365/spo/commands/web/web-list.js +10 -18
- package/dist/m365/spo/commands/web/web-reindex.js +10 -18
- package/dist/m365/spo/commands/web/web-remove.js +11 -27
- package/dist/m365/spo/commands/web/web-retentionlabel-list.js +10 -18
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +40 -64
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +31 -58
- package/dist/m365/spo/commands/web/web-roleinheritance-break.js +12 -36
- package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +11 -29
- package/dist/m365/spo/commands/web/web-rule-get.js +47 -0
- package/dist/m365/spo/commands/web/web-rule-list.js +6 -4
- package/dist/m365/spo/commands/web/web-rule-remove.js +0 -3
- package/dist/m365/spo/commands/web/web-set.js +26 -96
- package/dist/m365/spo/commands.js +3 -3
- package/dist/m365/teams/commands/channel/channel-add.js +46 -57
- package/dist/m365/teams/commands/channel/channel-get.js +41 -48
- package/dist/m365/teams/commands/channel/channel-list.js +28 -42
- package/dist/m365/teams/commands/channel/channel-member-add.js +53 -54
- package/dist/m365/teams/commands/channel/channel-member-list.js +47 -55
- package/dist/m365/teams/commands/channel/channel-member-remove.js +62 -62
- package/dist/m365/teams/commands/channel/channel-member-set.js +61 -65
- package/dist/m365/teams/commands/channel/channel-remove.js +47 -49
- package/dist/m365/teams/commands/channel/channel-set.js +47 -54
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -28
- package/dist/telemetry.js +7 -11
- package/dist/utils/spo.js +1 -3
- package/dist/utils/urlUtil.js +2 -2
- package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +4 -4
- package/docs/docs/cmd/spe/container/container-remove.mdx +5 -5
- package/docs/docs/cmd/spo/file/file-archive.mdx +9 -1
- package/docs/docs/cmd/spo/file/file-remove.mdx +4 -4
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +21 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +23 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +21 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +21 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +23 -0
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +21 -0
- package/docs/docs/cmd/spo/file/file-unarchive.mdx +9 -1
- package/docs/docs/cmd/spo/folder/folder-archive.mdx +7 -1
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +4 -4
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +23 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +23 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx +21 -0
- package/docs/docs/cmd/spo/folder/folder-unarchive.mdx +76 -0
- package/docs/docs/cmd/spo/list/list-remove.mdx +4 -4
- package/docs/docs/cmd/spo/listitem/listitem-batch-remove.mdx +8 -2
- package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -6
- package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +8 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +37 -27
- package/docs/docs/cmd/spo/page/page-remove.mdx +4 -4
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +52 -21
- package/docs/docs/cmd/spo/site/site-remove.mdx +3 -3
- package/docs/docs/cmd/spo/web/web-rule-get.mdx +108 -0
- package/docs/docs/cmd/spo/web/web-rule-list.mdx +8 -12
- package/docs/docs/cmd/spo/web/web-rule-remove.mdx +0 -6
- package/docs/docs/cmd/teams/app/app-install.mdx +21 -0
- package/docs/docs/cmd/teams/app/app-list.mdx +19 -0
- package/docs/docs/cmd/teams/app/app-publish.mdx +17 -0
- package/docs/docs/cmd/teams/app/app-remove.mdx +19 -0
- package/docs/docs/cmd/teams/app/app-uninstall.mdx +21 -0
- package/docs/docs/cmd/teams/app/app-update.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +19 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +19 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +19 -0
- package/npm-shrinkwrap.json +1120 -3216
- package/package.json +23 -33
- package/dist/appInsights.js +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "12.0.0-beta.
|
|
3
|
+
"version": "12.0.0-beta.f682e10",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "tsc -p . && node scripts/write-all-commands.js && node scripts/copy-files.js",
|
|
25
|
-
"watch": "
|
|
24
|
+
"build": "node node_modules/typescript-native/bin/tsc -p . && node scripts/write-all-commands.js && node scripts/copy-files.js",
|
|
25
|
+
"watch": "node scripts/watch.js",
|
|
26
26
|
"clean": "rimraf ./dist",
|
|
27
27
|
"test": "npm run test:version && npm run lint && npm run test:cov",
|
|
28
28
|
"test:version": "node scripts/check-version.js",
|
|
@@ -285,54 +285,40 @@
|
|
|
285
285
|
},
|
|
286
286
|
"axios": {
|
|
287
287
|
"follow-redirects": "1.16.0"
|
|
288
|
-
},
|
|
289
|
-
"@grpc/proto-loader": {
|
|
290
|
-
"protobufjs": "7.6.0"
|
|
291
|
-
},
|
|
292
|
-
"@opentelemetry/otlp-transformer": {
|
|
293
|
-
"protobufjs": "7.6.0"
|
|
294
|
-
},
|
|
295
|
-
"@azure/monitor-opentelemetry": {
|
|
296
|
-
"@opentelemetry/sdk-node": "0.218.0",
|
|
297
|
-
"@opentelemetry/exporter-prometheus": "0.218.0"
|
|
298
|
-
},
|
|
299
|
-
"protobufjs": "7.6.0",
|
|
300
|
-
"applicationinsights": {
|
|
301
|
-
"uuid": "11.1.1"
|
|
302
288
|
}
|
|
303
289
|
},
|
|
304
290
|
"dependencies": {
|
|
305
|
-
"@azure/msal-common": "^16.
|
|
291
|
+
"@azure/msal-common": "^16.14.2",
|
|
306
292
|
"@azure/msal-node": "^5.6.0",
|
|
307
|
-
"@inquirer/confirm": "^6.2
|
|
308
|
-
"@inquirer/input": "^5.1.
|
|
309
|
-
"@inquirer/select": "^5.2.
|
|
293
|
+
"@inquirer/confirm": "^6.3.2",
|
|
294
|
+
"@inquirer/input": "^5.1.6",
|
|
295
|
+
"@inquirer/select": "^5.2.5",
|
|
310
296
|
"@xmldom/xmldom": "^0.9.12",
|
|
311
297
|
"adaptive-expressions": "^4.23.3",
|
|
312
298
|
"adaptivecards": "^3.0.6",
|
|
313
299
|
"adaptivecards-templating": "^2.3.1",
|
|
314
|
-
"adm-zip": "^0.6.
|
|
315
|
-
"applicationinsights": "^3.16.0",
|
|
300
|
+
"adm-zip": "^0.6.1",
|
|
316
301
|
"axios": "^1.20.0",
|
|
317
|
-
"chalk": "^6.0.
|
|
302
|
+
"chalk": "^6.0.1",
|
|
318
303
|
"clipboardy": "^5.3.2",
|
|
319
304
|
"configstore": "^8.0.0",
|
|
320
305
|
"csv-parse": "^6.2.1",
|
|
321
|
-
"csv-stringify": "^6.
|
|
306
|
+
"csv-stringify": "^6.9.0",
|
|
322
307
|
"easy-table": "^1.2.0",
|
|
323
308
|
"jmespath": "^0.16.0",
|
|
324
309
|
"json-to-ast": "^2.1.0",
|
|
325
310
|
"node-forge": "^1.4.0",
|
|
326
311
|
"omelette": "^0.4.17",
|
|
327
|
-
"open": "^11.0.
|
|
312
|
+
"open": "^11.0.4",
|
|
313
|
+
"proper-lockfile": "^4.1.2",
|
|
328
314
|
"semver": "^7.8.5",
|
|
329
315
|
"strip-json-comments": "^5.0.3",
|
|
330
316
|
"typescript": "^5.9.3",
|
|
331
317
|
"update-notifier": "^7.3.1",
|
|
332
318
|
"uuid": "^14.0.2",
|
|
333
|
-
"yaml": "^2.9.
|
|
319
|
+
"yaml": "^2.9.1",
|
|
334
320
|
"yargs-parser": "^22.0.0",
|
|
335
|
-
"zod": "^4.
|
|
321
|
+
"zod": "^4.6.5"
|
|
336
322
|
},
|
|
337
323
|
"devDependencies": {
|
|
338
324
|
"@actions/core": "^3.0.1",
|
|
@@ -344,24 +330,28 @@
|
|
|
344
330
|
"@types/json-schema": "^7.0.15",
|
|
345
331
|
"@types/json-to-ast": "^2.1.4",
|
|
346
332
|
"@types/mocha": "^10.0.10",
|
|
347
|
-
"@types/node": "^24.
|
|
333
|
+
"@types/node": "^24.19.1",
|
|
348
334
|
"@types/node-forge": "^1.3.14",
|
|
349
335
|
"@types/omelette": "^0.4.5",
|
|
336
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
350
337
|
"@types/semver": "^7.8.0",
|
|
351
338
|
"@types/sinon": "^22.0.0",
|
|
352
339
|
"@types/update-notifier": "^6.0.8",
|
|
353
340
|
"@types/uuid": "^10.0.0",
|
|
354
341
|
"@types/yargs-parser": "^21.0.3",
|
|
355
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
342
|
+
"@typescript-eslint/eslint-plugin": "^8.71.0",
|
|
356
343
|
"@typescript-eslint/parser": "^8.58.0",
|
|
357
344
|
"c8": "^12.0.0",
|
|
358
|
-
"eslint": "^10.
|
|
345
|
+
"eslint": "^10.12.0",
|
|
359
346
|
"eslint-plugin-mocha": "^11.3.0",
|
|
360
|
-
"globals": "^17.
|
|
347
|
+
"globals": "^17.13.0",
|
|
361
348
|
"mocha": "^11.8.0",
|
|
362
349
|
"rimraf": "^6.1.3",
|
|
363
350
|
"sinon": "^22.1.0",
|
|
364
351
|
"source-map-support": "^0.5.21",
|
|
365
|
-
"
|
|
352
|
+
"typescript-native": "npm:typescript@^7.0.2"
|
|
353
|
+
},
|
|
354
|
+
"optionalDependencies": {
|
|
355
|
+
"@azure/msal-node-extensions": "^5.5.0"
|
|
366
356
|
}
|
|
367
357
|
}
|
package/dist/appInsights.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// disable automatic third-party instrumentation for Application Insights
|
|
2
|
-
// speeds up execution by preventing loading unnecessary dependencies
|
|
3
|
-
process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = 'none';
|
|
4
|
-
// prevents tests from hanging
|
|
5
|
-
process.env.APPLICATION_INSIGHTS_NO_STATSBEAT = 'true';
|
|
6
|
-
// suppress all logging
|
|
7
|
-
process.env.APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL = 'NONE';
|
|
8
|
-
import appInsights from 'applicationinsights';
|
|
9
|
-
import crypto from 'crypto';
|
|
10
|
-
import fs from 'fs';
|
|
11
|
-
import os from 'os';
|
|
12
|
-
import path from 'path';
|
|
13
|
-
import url from 'url';
|
|
14
|
-
import { app } from './utils/app.js';
|
|
15
|
-
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
|
|
16
|
-
appInsights
|
|
17
|
-
.setup('InstrumentationKey=6b908c80-d09f-4cf6-8274-e54349a0149a;IngestionEndpoint=https://westeurope-3.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=d42020c6-da32-44f7-bbb7-666f0b3a664d')
|
|
18
|
-
.setAutoCollectRequests(false)
|
|
19
|
-
.setAutoCollectPerformance(false, false)
|
|
20
|
-
.setAutoCollectExceptions(false)
|
|
21
|
-
.setAutoCollectDependencies(false)
|
|
22
|
-
.setAutoCollectConsole(false, false)
|
|
23
|
-
.setAutoCollectPreAggregatedMetrics(false)
|
|
24
|
-
.setSendLiveMetrics(false)
|
|
25
|
-
.enableWebInstrumentation(false)
|
|
26
|
-
.setInternalLogging(false, false);
|
|
27
|
-
// append -dev to the version number when ran locally
|
|
28
|
-
// to distinguish production and dev version of the CLI
|
|
29
|
-
// in the telemetry
|
|
30
|
-
const version = `${app.packageJson().version}${fs.existsSync(path.join(__dirname, `..${path.sep}src`)) ? '-dev' : ''}`;
|
|
31
|
-
const env = process.env.CLIMICROSOFT365_ENV !== undefined ? process.env.CLIMICROSOFT365_ENV : '';
|
|
32
|
-
const appInsightsClient = appInsights.defaultClient;
|
|
33
|
-
appInsightsClient.commonProperties = {
|
|
34
|
-
version: version,
|
|
35
|
-
node: process.version,
|
|
36
|
-
env: env,
|
|
37
|
-
ci: Boolean(process.env.CI).toString()
|
|
38
|
-
};
|
|
39
|
-
appInsightsClient.context.tags[appInsightsClient.context.keys.cloudRoleInstance] = crypto.createHash('sha256').update(os.hostname()).digest('hex');
|
|
40
|
-
delete appInsightsClient.context.tags[appInsightsClient.context.keys.cloudRole];
|
|
41
|
-
delete appInsightsClient.context.tags['ai.cloud.roleName'];
|
|
42
|
-
export default appInsightsClient;
|
|
43
|
-
//# sourceMappingURL=appInsights.js.map
|