@pnp/cli-microsoft365 12.0.0-beta.bf446c8 → 12.0.0-beta.d0b29c1

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.
Files changed (109) hide show
  1. package/.devproxy/generate-openapi-spec.json +1 -1
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/googleAnalytics.js +96 -0
  5. package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +15 -0
  6. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0-rc.0.js +19 -0
  7. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  8. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js +43 -0
  9. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027002_OVERRIDES_qs.js +33 -0
  10. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027003_OVERRIDES_uuid.js +33 -0
  11. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.0-rc.0.js +77 -0
  12. package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
  13. package/dist/m365/spo/commands/app/app-add.js +35 -56
  14. package/dist/m365/spo/commands/app/app-deploy.js +41 -59
  15. package/dist/m365/spo/commands/app/app-get.js +40 -56
  16. package/dist/m365/spo/commands/app/app-install.js +20 -41
  17. package/dist/m365/spo/commands/app/app-instance-list.js +12 -24
  18. package/dist/m365/spo/commands/app/app-list.js +26 -44
  19. package/dist/m365/spo/commands/app/app-remove.js +32 -52
  20. package/dist/m365/spo/commands/app/app-retract.js +32 -51
  21. package/dist/m365/spo/commands/app/app-teamspackage-download.js +35 -54
  22. package/dist/m365/spo/commands/app/app-uninstall.js +21 -44
  23. package/dist/m365/spo/commands/app/app-upgrade.js +20 -41
  24. package/dist/m365/spo/commands/feature/feature-disable.js +20 -50
  25. package/dist/m365/spo/commands/feature/feature-enable.js +22 -50
  26. package/dist/m365/spo/commands/feature/feature-list.js +11 -36
  27. package/dist/m365/spo/commands/field/field-add.js +33 -62
  28. package/dist/m365/spo/commands/field/field-get.js +30 -57
  29. package/dist/m365/spo/commands/field/field-list.js +21 -46
  30. package/dist/m365/spo/commands/field/field-remove.js +32 -63
  31. package/dist/m365/spo/commands/field/field-set.js +34 -66
  32. package/dist/m365/spo/commands/file/file-get.js +4 -3
  33. package/dist/m365/spo/commands/folder/folder-unarchive.js +90 -0
  34. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +38 -63
  35. package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +11 -27
  36. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +25 -47
  37. package/dist/m365/spo/commands/hubsite/hubsite-get.js +25 -37
  38. package/dist/m365/spo/commands/hubsite/hubsite-list.js +12 -24
  39. package/dist/m365/spo/commands/hubsite/hubsite-register.js +10 -18
  40. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +14 -32
  41. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +12 -29
  42. package/dist/m365/spo/commands/hubsite/hubsite-set.js +19 -46
  43. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +11 -27
  44. package/dist/m365/spo/commands/navigation/navigation-node-add.js +74 -120
  45. package/dist/m365/spo/commands/navigation/navigation-node-get.js +4 -13
  46. package/dist/m365/spo/commands/navigation/navigation-node-set.js +53 -114
  47. package/dist/m365/spo/commands/page/page-unpublish.js +53 -0
  48. package/dist/m365/spo/commands.js +3 -1
  49. package/dist/m365/teams/commands/chat/chat-get.js +30 -45
  50. package/dist/m365/teams/commands/chat/chat-list.js +22 -42
  51. package/dist/m365/teams/commands/chat/chat-member-add.js +43 -64
  52. package/dist/m365/teams/commands/chat/chat-member-list.js +10 -23
  53. package/dist/m365/teams/commands/chat/chat-member-remove.js +28 -50
  54. package/dist/m365/teams/commands/chat/chat-message-send.js +32 -55
  55. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -28
  56. package/dist/telemetry.js +7 -11
  57. package/dist/utils/spo.js +39 -0
  58. package/docs/docs/cmd/spo/file/file-archive.mdx +1 -1
  59. package/docs/docs/cmd/spo/file/file-checkin.mdx +2 -2
  60. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
  61. package/docs/docs/cmd/spo/file/file-checkout.mdx +2 -2
  62. package/docs/docs/cmd/spo/file/file-copy.mdx +2 -2
  63. package/docs/docs/cmd/spo/file/file-get.mdx +6 -6
  64. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  65. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
  66. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
  67. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  68. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +3 -3
  69. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +2 -2
  70. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +2 -2
  71. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
  72. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
  73. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
  74. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
  75. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
  76. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
  77. package/docs/docs/cmd/spo/file/file-unarchive.mdx +1 -1
  78. package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
  79. package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
  80. package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
  81. package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
  82. package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
  83. package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
  84. package/docs/docs/cmd/spo/folder/folder-archive.mdx +1 -1
  85. package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
  86. package/docs/docs/cmd/spo/folder/folder-get.mdx +2 -2
  87. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  88. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
  89. package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +1 -1
  90. package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +1 -1
  91. package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +1 -1
  92. package/docs/docs/cmd/spo/folder/folder-unarchive.mdx +76 -0
  93. package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +45 -30
  94. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +64 -42
  95. package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +10 -8
  96. package/docs/docs/cmd/spo/page/page-unpublish.mdx +63 -0
  97. package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
  98. package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
  99. package/docs/docs/cmd/teams/tab/tab-add.mdx +19 -0
  100. package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -0
  101. package/docs/docs/cmd/teams/tab/tab-list.mdx +19 -0
  102. package/docs/docs/cmd/teams/tab/tab-remove.mdx +21 -0
  103. package/docs/docs/cmd/viva/engage/engage-message-add.mdx +17 -0
  104. package/docs/docs/cmd/viva/engage/engage-message-get.mdx +17 -0
  105. package/docs/docs/cmd/viva/engage/engage-message-list.mdx +17 -0
  106. package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +19 -0
  107. package/npm-shrinkwrap.json +324 -3116
  108. package/package.json +17 -35
  109. 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.bf446c8",
3
+ "version": "12.0.0-beta.d0b29c1",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.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": [
@@ -233,6 +228,7 @@
233
228
  "Shafi, Danish <33339824+builtbydans@users.noreply.github.com>",
234
229
  "Shah, Dipen <Dips365@hotmail.com>",
235
230
  "Sharma, Dushyant <dushyantsharma17117@gmail.com>",
231
+ "Shreshtha, Sarthak <78229815+Sarthak-Shreshtha01@users.noreply.github.com>",
236
232
  "Siatka, Piotr <piotr@valointranet.com>",
237
233
  "Sinha, Kislay <kislay_sinha@outlook.com>",
238
234
  "Sitaraman, Rajesh <rajesh.sitaraman@outlook.com>",
@@ -245,6 +241,7 @@
245
241
  "Svenson, Mikael <miksvenson@gmail.com>",
246
242
  "Tane, Peter <peter.tane@gmail.come>",
247
243
  "Tatti, Anoop <anoop@live.co.uk>",
244
+ "Thakur, Anikesh <44468436+Anikesh348@users.noreply.github.com>",
248
245
  "Thangavel, Sekar <sekar.thangavel@gmail.com>",
249
246
  "Thorild, Fredrik <fredrik.thorild@sogeti.com>",
250
247
  "Trinder, Garry <garry.trinder@live.com>",
@@ -285,55 +282,40 @@
285
282
  },
286
283
  "axios": {
287
284
  "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
285
  }
303
286
  },
304
287
  "dependencies": {
305
- "@azure/msal-common": "^16.13.0",
288
+ "@azure/msal-common": "^16.14.2",
306
289
  "@azure/msal-node": "^5.6.0",
307
- "@inquirer/confirm": "^6.2.0",
308
- "@inquirer/input": "^5.1.3",
309
- "@inquirer/select": "^5.2.2",
290
+ "@inquirer/confirm": "^6.3.2",
291
+ "@inquirer/input": "^5.1.6",
292
+ "@inquirer/select": "^5.2.5",
310
293
  "@xmldom/xmldom": "^0.9.12",
311
294
  "adaptive-expressions": "^4.23.3",
312
295
  "adaptivecards": "^3.0.6",
313
296
  "adaptivecards-templating": "^2.3.1",
314
- "adm-zip": "^0.6.0",
315
- "applicationinsights": "^3.16.0",
297
+ "adm-zip": "^0.6.1",
316
298
  "axios": "^1.20.0",
317
- "chalk": "^6.0.0",
299
+ "chalk": "^6.0.1",
318
300
  "clipboardy": "^5.3.2",
319
301
  "configstore": "^8.0.0",
320
302
  "csv-parse": "^6.2.1",
321
- "csv-stringify": "^6.8.3",
303
+ "csv-stringify": "^6.9.0",
322
304
  "easy-table": "^1.2.0",
323
305
  "jmespath": "^0.16.0",
324
306
  "json-to-ast": "^2.1.0",
325
307
  "node-forge": "^1.4.0",
326
308
  "omelette": "^0.4.17",
327
- "open": "^11.0.1",
309
+ "open": "^11.0.4",
328
310
  "proper-lockfile": "^4.1.2",
329
311
  "semver": "^7.8.5",
330
312
  "strip-json-comments": "^5.0.3",
331
313
  "typescript": "^5.9.3",
332
314
  "update-notifier": "^7.3.1",
333
315
  "uuid": "^14.0.2",
334
- "yaml": "^2.9.0",
316
+ "yaml": "^2.9.1",
335
317
  "yargs-parser": "^22.0.0",
336
- "zod": "^4.4.3"
318
+ "zod": "^4.6.5"
337
319
  },
338
320
  "devDependencies": {
339
321
  "@actions/core": "^3.0.1",
@@ -345,7 +327,7 @@
345
327
  "@types/json-schema": "^7.0.15",
346
328
  "@types/json-to-ast": "^2.1.4",
347
329
  "@types/mocha": "^10.0.10",
348
- "@types/node": "^24.13.3",
330
+ "@types/node": "^24.19.1",
349
331
  "@types/node-forge": "^1.3.14",
350
332
  "@types/omelette": "^0.4.5",
351
333
  "@types/proper-lockfile": "^4.1.4",
@@ -354,12 +336,12 @@
354
336
  "@types/update-notifier": "^6.0.8",
355
337
  "@types/uuid": "^10.0.0",
356
338
  "@types/yargs-parser": "^21.0.3",
357
- "@typescript-eslint/eslint-plugin": "^8.68.0",
339
+ "@typescript-eslint/eslint-plugin": "^8.71.0",
358
340
  "@typescript-eslint/parser": "^8.58.0",
359
341
  "c8": "^12.0.0",
360
- "eslint": "^10.9.1",
342
+ "eslint": "^10.12.0",
361
343
  "eslint-plugin-mocha": "^11.3.0",
362
- "globals": "^17.11.0",
344
+ "globals": "^17.13.0",
363
345
  "mocha": "^11.8.0",
364
346
  "rimraf": "^6.1.3",
365
347
  "sinon": "^22.1.0",
@@ -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