@pnp/cli-microsoft365 12.0.0-beta.10c5833 → 12.0.0-beta.4ac11a7
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 +15 -1
- package/dist/googleAnalytics.js +96 -0
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +15 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0-rc.0.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js +43 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027002_OVERRIDES_qs.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027003_OVERRIDES_uuid.js +33 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.0-rc.0.js +77 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
- package/dist/m365/spo/commands/app/app-add.js +35 -56
- package/dist/m365/spo/commands/app/app-deploy.js +41 -59
- package/dist/m365/spo/commands/app/app-get.js +40 -56
- package/dist/m365/spo/commands/app/app-install.js +20 -41
- package/dist/m365/spo/commands/app/app-instance-list.js +12 -24
- package/dist/m365/spo/commands/app/app-list.js +26 -44
- package/dist/m365/spo/commands/app/app-remove.js +32 -52
- package/dist/m365/spo/commands/app/app-retract.js +32 -51
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +35 -54
- package/dist/m365/spo/commands/app/app-uninstall.js +21 -44
- package/dist/m365/spo/commands/app/app-upgrade.js +20 -41
- package/dist/m365/spo/commands/feature/feature-disable.js +20 -50
- package/dist/m365/spo/commands/feature/feature-enable.js +22 -50
- package/dist/m365/spo/commands/feature/feature-list.js +11 -36
- package/dist/m365/spo/commands/field/field-add.js +33 -62
- package/dist/m365/spo/commands/field/field-get.js +30 -57
- package/dist/m365/spo/commands/field/field-list.js +21 -46
- package/dist/m365/spo/commands/field/field-remove.js +32 -63
- package/dist/m365/spo/commands/field/field-set.js +34 -66
- package/dist/m365/spo/commands/file/file-get.js +4 -3
- package/dist/m365/spo/commands/folder/folder-unarchive.js +90 -0
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +38 -63
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +11 -27
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +25 -47
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +25 -37
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +12 -24
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +10 -18
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +14 -32
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +12 -29
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +19 -46
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +11 -27
- package/dist/m365/spo/commands/listitem/listitem-get.js +1 -12
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +74 -120
- package/dist/m365/spo/commands/navigation/navigation-node-get.js +4 -13
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +6 -4
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +53 -114
- package/dist/m365/spo/commands/page/page-unpublish.js +53 -0
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +22 -37
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +9 -26
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +5 -0
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +9 -33
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +29 -56
- package/dist/m365/spo/commands.js +3 -1
- package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +5 -0
- package/dist/m365/spp/commands/model/model-get.js +25 -45
- package/dist/m365/spp/commands/model/model-list.js +12 -23
- package/dist/m365/spp/commands/model/model-remove.js +25 -45
- 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/teams/commands/chat/chat-get.js +30 -45
- package/dist/m365/teams/commands/chat/chat-list.js +22 -42
- package/dist/m365/teams/commands/chat/chat-member-add.js +43 -64
- package/dist/m365/teams/commands/chat/chat-member-list.js +10 -23
- package/dist/m365/teams/commands/chat/chat-member-remove.js +28 -50
- package/dist/m365/teams/commands/chat/chat-message-send.js +32 -55
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -28
- package/dist/telemetry.js +7 -11
- package/dist/utils/spo.js +40 -3
- package/dist/utils/urlUtil.js +2 -2
- package/docs/docs/cmd/login.mdx +15 -2
- package/docs/docs/cmd/spo/file/file-archive.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-copy.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-get.mdx +6 -6
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +24 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +24 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +22 -1
- package/docs/docs/cmd/spo/file/file-unarchive.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-archive.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-get.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +22 -1
- 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 +22 -1
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +24 -1
- 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/listitem/listitem-get.mdx +0 -6
- package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +45 -30
- package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +64 -42
- package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +37 -27
- package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +10 -8
- package/docs/docs/cmd/spo/page/page-unpublish.mdx +63 -0
- package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
- package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-add.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-list.mdx +19 -0
- package/docs/docs/cmd/teams/tab/tab-remove.mdx +21 -0
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +17 -0
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +19 -0
- package/npm-shrinkwrap.json +702 -3230
- package/package.json +21 -38
- 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.4ac11a7",
|
|
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",
|
|
@@ -111,11 +111,6 @@
|
|
|
111
111
|
"name": "Milan Holemans",
|
|
112
112
|
"email": "11723921+milanholemans@users.noreply.github.com",
|
|
113
113
|
"web": "https://github.com/milanholemans"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "Mathijs Verbeeck",
|
|
117
|
-
"email": "verbeeckmathijs@gmail.com",
|
|
118
|
-
"web": "https://github.com/MathijsVerbeeck"
|
|
119
114
|
}
|
|
120
115
|
],
|
|
121
116
|
"contributors": [
|
|
@@ -161,6 +156,7 @@
|
|
|
161
156
|
"Honen, Nicholas <nickhonen@gmail.com>",
|
|
162
157
|
"Högberg, Joakim <joakim.hogberg@bravero.se>",
|
|
163
158
|
"Hunt, Geoffrey <info@runningdeveloper.com>",
|
|
159
|
+
"Hutzli, Fabian <136681117+fabianhutzli@users.noreply.github.com>",
|
|
164
160
|
"Hvam, Allan <ahp@delegate.dk>",
|
|
165
161
|
"Jaakke, Robert <robert.jaakke@mavention.nl>",
|
|
166
162
|
"Jain, Ayush <urayushjain@gmail.com>",
|
|
@@ -233,6 +229,7 @@
|
|
|
233
229
|
"Shafi, Danish <33339824+builtbydans@users.noreply.github.com>",
|
|
234
230
|
"Shah, Dipen <Dips365@hotmail.com>",
|
|
235
231
|
"Sharma, Dushyant <dushyantsharma17117@gmail.com>",
|
|
232
|
+
"Shreshtha, Sarthak <78229815+Sarthak-Shreshtha01@users.noreply.github.com>",
|
|
236
233
|
"Siatka, Piotr <piotr@valointranet.com>",
|
|
237
234
|
"Sinha, Kislay <kislay_sinha@outlook.com>",
|
|
238
235
|
"Sitaraman, Rajesh <rajesh.sitaraman@outlook.com>",
|
|
@@ -245,6 +242,7 @@
|
|
|
245
242
|
"Svenson, Mikael <miksvenson@gmail.com>",
|
|
246
243
|
"Tane, Peter <peter.tane@gmail.come>",
|
|
247
244
|
"Tatti, Anoop <anoop@live.co.uk>",
|
|
245
|
+
"Thakur, Anikesh <44468436+Anikesh348@users.noreply.github.com>",
|
|
248
246
|
"Thangavel, Sekar <sekar.thangavel@gmail.com>",
|
|
249
247
|
"Thorild, Fredrik <fredrik.thorild@sogeti.com>",
|
|
250
248
|
"Trinder, Garry <garry.trinder@live.com>",
|
|
@@ -285,55 +283,40 @@
|
|
|
285
283
|
},
|
|
286
284
|
"axios": {
|
|
287
285
|
"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
286
|
}
|
|
303
287
|
},
|
|
304
288
|
"dependencies": {
|
|
305
|
-
"@azure/msal-common": "^16.
|
|
289
|
+
"@azure/msal-common": "^16.14.2",
|
|
306
290
|
"@azure/msal-node": "^5.6.0",
|
|
307
|
-
"@inquirer/confirm": "^6.2
|
|
308
|
-
"@inquirer/input": "^5.1.
|
|
309
|
-
"@inquirer/select": "^5.2.
|
|
291
|
+
"@inquirer/confirm": "^6.3.2",
|
|
292
|
+
"@inquirer/input": "^5.1.6",
|
|
293
|
+
"@inquirer/select": "^5.2.5",
|
|
310
294
|
"@xmldom/xmldom": "^0.9.12",
|
|
311
295
|
"adaptive-expressions": "^4.23.3",
|
|
312
296
|
"adaptivecards": "^3.0.6",
|
|
313
297
|
"adaptivecards-templating": "^2.3.1",
|
|
314
|
-
"adm-zip": "^0.6.
|
|
315
|
-
"applicationinsights": "^3.16.0",
|
|
298
|
+
"adm-zip": "^0.6.1",
|
|
316
299
|
"axios": "^1.20.0",
|
|
317
|
-
"chalk": "^6.0.
|
|
300
|
+
"chalk": "^6.0.1",
|
|
318
301
|
"clipboardy": "^5.3.2",
|
|
319
302
|
"configstore": "^8.0.0",
|
|
320
303
|
"csv-parse": "^6.2.1",
|
|
321
|
-
"csv-stringify": "^6.
|
|
304
|
+
"csv-stringify": "^6.9.0",
|
|
322
305
|
"easy-table": "^1.2.0",
|
|
323
306
|
"jmespath": "^0.16.0",
|
|
324
307
|
"json-to-ast": "^2.1.0",
|
|
325
308
|
"node-forge": "^1.4.0",
|
|
326
309
|
"omelette": "^0.4.17",
|
|
327
|
-
"open": "^11.0.
|
|
310
|
+
"open": "^11.0.4",
|
|
328
311
|
"proper-lockfile": "^4.1.2",
|
|
329
312
|
"semver": "^7.8.5",
|
|
330
313
|
"strip-json-comments": "^5.0.3",
|
|
331
314
|
"typescript": "^5.9.3",
|
|
332
315
|
"update-notifier": "^7.3.1",
|
|
333
316
|
"uuid": "^14.0.2",
|
|
334
|
-
"yaml": "^2.9.
|
|
317
|
+
"yaml": "^2.9.1",
|
|
335
318
|
"yargs-parser": "^22.0.0",
|
|
336
|
-
"zod": "^4.
|
|
319
|
+
"zod": "^4.6.5"
|
|
337
320
|
},
|
|
338
321
|
"devDependencies": {
|
|
339
322
|
"@actions/core": "^3.0.1",
|
|
@@ -345,7 +328,7 @@
|
|
|
345
328
|
"@types/json-schema": "^7.0.15",
|
|
346
329
|
"@types/json-to-ast": "^2.1.4",
|
|
347
330
|
"@types/mocha": "^10.0.10",
|
|
348
|
-
"@types/node": "^24.
|
|
331
|
+
"@types/node": "^24.19.1",
|
|
349
332
|
"@types/node-forge": "^1.3.14",
|
|
350
333
|
"@types/omelette": "^0.4.5",
|
|
351
334
|
"@types/proper-lockfile": "^4.1.4",
|
|
@@ -354,17 +337,17 @@
|
|
|
354
337
|
"@types/update-notifier": "^6.0.8",
|
|
355
338
|
"@types/uuid": "^10.0.0",
|
|
356
339
|
"@types/yargs-parser": "^21.0.3",
|
|
357
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
340
|
+
"@typescript-eslint/eslint-plugin": "^8.71.0",
|
|
358
341
|
"@typescript-eslint/parser": "^8.58.0",
|
|
359
342
|
"c8": "^12.0.0",
|
|
360
|
-
"eslint": "^10.
|
|
343
|
+
"eslint": "^10.12.0",
|
|
361
344
|
"eslint-plugin-mocha": "^11.3.0",
|
|
362
|
-
"globals": "^17.
|
|
345
|
+
"globals": "^17.13.0",
|
|
363
346
|
"mocha": "^11.8.0",
|
|
364
347
|
"rimraf": "^6.1.3",
|
|
365
348
|
"sinon": "^22.1.0",
|
|
366
349
|
"source-map-support": "^0.5.21",
|
|
367
|
-
"
|
|
350
|
+
"typescript-native": "npm:typescript@^7.0.2"
|
|
368
351
|
},
|
|
369
352
|
"optionalDependencies": {
|
|
370
353
|
"@azure/msal-node-extensions": "^5.5.0"
|
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
|