@pnp/cli-microsoft365 11.1.0-beta.d3fc85d → 11.1.0-beta.dce6352

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 (101) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +23 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/Auth.js +10 -7
  5. package/dist/Command.js +2 -2
  6. package/dist/auth/msalCachePlugin.js +6 -2
  7. package/dist/autocomplete.js +6 -2
  8. package/dist/chili/chili.js +2 -1
  9. package/dist/cli/cli.js +4 -2
  10. package/dist/config.js +0 -1
  11. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +2 -2
  12. package/dist/m365/app/commands/permission/permission-list.js +4 -2
  13. package/dist/m365/booking/commands/business/business-list.js +5 -0
  14. package/dist/m365/commands/setup.js +6 -3
  15. package/dist/m365/connection/commands/connection-list.js +5 -1
  16. package/dist/m365/entra/commands/app/app-role-add.js +1 -1
  17. package/dist/m365/entra/commands/group/group-add.js +1 -1
  18. package/dist/m365/entra/commands/group/group-set.js +1 -1
  19. package/dist/m365/entra/commands/m365group/m365group-add.js +0 -1
  20. package/dist/m365/file/commands/convert/convert-pdf.js +1 -6
  21. package/dist/m365/flow/commands/flow-export.js +8 -5
  22. package/dist/m365/flow/commands/run/run-get.js +3 -3
  23. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +1 -1
  24. package/dist/m365/onedrive/commands/onedrive-list.js +5 -0
  25. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +5 -0
  26. package/dist/m365/pa/commands/app/app-export.js +1 -1
  27. package/dist/m365/pa/commands/app/app-get.js +1 -1
  28. package/dist/m365/pa/commands/environment/environment-list.js +5 -0
  29. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +5 -0
  30. package/dist/m365/pp/commands/solution/solution-publisher-get.js +1 -1
  31. package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +5 -0
  32. package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +5 -0
  33. package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +5 -0
  34. package/dist/m365/spfx/commands/package/package-generate.js +3 -1
  35. package/dist/m365/spfx/commands/project/base-project-command.js +13 -5
  36. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021007_PKG_only_one_rush_stack_compiler_installed.js +1 -1
  37. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +6 -4
  38. package/dist/m365/spfx/commands/project/project-model/ScssFile.js +3 -1
  39. package/dist/m365/spfx/commands/project/project-model/TsFile.js +6 -2
  40. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
  41. package/dist/m365/spfx/commands/spfx-doctor.js +5 -5
  42. package/dist/m365/spo/commands/file/file-add.js +4 -2
  43. package/dist/m365/spo/commands/file/file-rename.js +3 -4
  44. package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -1
  45. package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +1 -1
  46. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +9 -5
  47. package/dist/m365/spo/commands/page/clientsidepages.js +12 -12
  48. package/dist/m365/spo/commands/page/page-add.js +4 -2
  49. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +1 -0
  50. package/dist/m365/spo/commands/page/page-set.js +4 -2
  51. package/dist/m365/spo/commands/page/page-text-add.js +1 -0
  52. package/dist/m365/spo/commands/propertybag/propertybag-base.js +34 -54
  53. package/dist/m365/spo/commands/site/site-alert-list.js +107 -0
  54. package/dist/m365/spo/commands/theme/theme-apply.js +1 -1
  55. package/dist/m365/spo/commands/web/web-reindex.js +17 -27
  56. package/dist/m365/spo/commands.js +1 -0
  57. package/dist/m365/teams/commands/tab/tab-add.js +9 -3
  58. package/dist/m365/viva/commands/connections/connections-app-create.js +1 -1
  59. package/dist/m365/viva/commands/engage/engage-community-user-add.js +1 -1
  60. package/dist/m365/viva/commands/engage/engage-community-user-remove.js +1 -1
  61. package/dist/telemetry.js +3 -1
  62. package/dist/utils/accessToken.js +4 -0
  63. package/dist/utils/cache.js +3 -2
  64. package/dist/utils/customAppScope.js +1 -1
  65. package/dist/utils/directoryExtension.js +1 -1
  66. package/dist/utils/entraAdministrativeUnit.js +1 -1
  67. package/dist/utils/entraApp.js +2 -2
  68. package/dist/utils/entraDevice.js +1 -1
  69. package/dist/utils/entraServicePrincipal.js +2 -2
  70. package/dist/utils/formatting.js +1 -1
  71. package/dist/utils/md.js +2 -2
  72. package/dist/utils/odata.js +2 -0
  73. package/dist/utils/planner.js +1 -1
  74. package/dist/utils/powerPlatform.js +2 -2
  75. package/dist/utils/roleDefinition.js +2 -2
  76. package/dist/utils/spo.js +10 -11
  77. package/dist/utils/urlUtil.js +1 -1
  78. package/dist/utils/validation.js +1 -1
  79. package/dist/utils/vivaEngage.js +3 -3
  80. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +14 -0
  81. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +15 -0
  82. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +14 -0
  83. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +14 -0
  84. package/docs/docs/cmd/entra/groupsetting/groupsetting-add.mdx +19 -0
  85. package/docs/docs/cmd/entra/groupsetting/groupsetting-get.mdx +19 -0
  86. package/docs/docs/cmd/entra/groupsetting/groupsetting-list.mdx +19 -0
  87. package/docs/docs/cmd/entra/groupsetting/groupsetting-remove.mdx +21 -0
  88. package/docs/docs/cmd/entra/groupsetting/groupsetting-set.mdx +21 -0
  89. package/docs/docs/cmd/entra/m365group/m365group-add.mdx +19 -0
  90. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +19 -0
  91. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +19 -0
  92. package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +21 -0
  93. package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +21 -0
  94. package/docs/docs/cmd/entra/m365group/m365group-set.mdx +21 -0
  95. package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +19 -0
  96. package/docs/docs/cmd/spo/site/site-alert-list.mdx +187 -0
  97. package/eslint-rules/lib/rules/correct-command-class-name.js +18 -2
  98. package/eslint.config.mjs +270 -0
  99. package/npm-shrinkwrap.json +1117 -2277
  100. package/package.json +22 -21
  101. package/.eslintrc.cjs +0 -289
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "11.1.0-beta.d3fc85d",
3
+ "version": "11.1.0-beta.dce6352",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -262,22 +262,22 @@
262
262
  "Zachariassen Laksafoss, Trygvi <trygvi.laksafoss@gmail.com>"
263
263
  ],
264
264
  "dependencies": {
265
- "@azure/msal-common": "^15.12.0",
266
- "@azure/msal-node": "^3.7.3",
267
- "@inquirer/confirm": "^5.1.16",
268
- "@inquirer/input": "^4.2.2",
269
- "@inquirer/select": "^4.3.2",
265
+ "@azure/msal-common": "^15.13.0",
266
+ "@azure/msal-node": "^3.8.0",
267
+ "@inquirer/confirm": "^5.1.18",
268
+ "@inquirer/input": "^4.2.4",
269
+ "@inquirer/select": "^4.3.4",
270
270
  "@xmldom/xmldom": "^0.9.8",
271
271
  "adaptive-expressions": "^4.23.3",
272
272
  "adaptivecards": "^3.0.5",
273
273
  "adaptivecards-templating": "^2.3.1",
274
274
  "adm-zip": "^0.5.16",
275
- "applicationinsights": "^3.9.0",
276
- "axios": "^1.11.0",
277
- "chalk": "^5.6.0",
278
- "clipboardy": "^4.0.0",
279
- "configstore": "^7.0.0",
280
- "csv-parse": "^5.6.0",
275
+ "applicationinsights": "^3.12.0",
276
+ "axios": "^1.12.2",
277
+ "chalk": "^5.6.2",
278
+ "clipboardy": "^5.0.0",
279
+ "configstore": "^7.1.0",
280
+ "csv-parse": "^6.1.0",
281
281
  "csv-stringify": "^6.6.0",
282
282
  "easy-table": "^1.2.0",
283
283
  "jmespath": "^0.16.0",
@@ -287,22 +287,23 @@
287
287
  "open": "^10.2.0",
288
288
  "semver": "^7.7.2",
289
289
  "strip-json-comments": "^5.0.3",
290
- "typescript": "^5.9.2",
290
+ "typescript": "^5.9.3",
291
291
  "update-notifier": "^7.3.1",
292
- "uuid": "^11.1.0",
292
+ "uuid": "^13.0.0",
293
293
  "yaml": "^2.8.1",
294
294
  "yargs-parser": "^22.0.0",
295
295
  "zod": "^3.25.76"
296
296
  },
297
297
  "devDependencies": {
298
298
  "@actions/core": "^1.11.1",
299
- "@microsoft/microsoft-graph-types": "^2.40.0",
299
+ "@microsoft/microsoft-graph-types": "^2.43.0",
300
+ "@stylistic/eslint-plugin": "^5.3.1",
300
301
  "@types/adm-zip": "^0.5.7",
301
302
  "@types/jmespath": "^0.15.2",
302
303
  "@types/json-schema": "^7.0.15",
303
304
  "@types/json-to-ast": "^2.1.4",
304
305
  "@types/mocha": "^10.0.10",
305
- "@types/node": "^22.18.1",
306
+ "@types/node": "^22.18.8",
306
307
  "@types/node-forge": "^1.3.14",
307
308
  "@types/omelette": "^0.4.5",
308
309
  "@types/semver": "^7.7.1",
@@ -310,13 +311,13 @@
310
311
  "@types/update-notifier": "^6.0.8",
311
312
  "@types/uuid": "^10.0.0",
312
313
  "@types/yargs-parser": "^21.0.3",
313
- "@typescript-eslint/eslint-plugin": "^7.18.0",
314
- "@typescript-eslint/parser": "^7.18.0",
314
+ "@typescript-eslint/eslint-plugin": "^8.42.0",
315
+ "@typescript-eslint/parser": "^8.42.0",
315
316
  "c8": "^10.1.3",
316
- "eslint": "^8.57.1",
317
+ "eslint": "^9.34.0",
317
318
  "eslint-plugin-cli-microsoft365": "file:eslint-rules",
318
- "eslint-plugin-mocha": "^10.5.0",
319
- "mocha": "^11.7.2",
319
+ "eslint-plugin-mocha": "^11.1.0",
320
+ "mocha": "^11.7.4",
320
321
  "rimraf": "^6.0.1",
321
322
  "sinon": "^21.0.0",
322
323
  "source-map-support": "^0.5.21"
package/.eslintrc.cjs DELETED
@@ -1,289 +0,0 @@
1
- // list of words used in command names used for word breaking
2
- // sorted alphabetically for easy maintenance
3
- const dictionary = [
4
- 'access',
5
- 'activation',
6
- 'activations',
7
- 'adaptive',
8
- 'administrative',
9
- 'ai',
10
- 'app',
11
- 'application',
12
- 'apply',
13
- 'approve',
14
- 'assessment',
15
- 'assets',
16
- 'assignment',
17
- 'audit',
18
- 'azure',
19
- 'bin',
20
- 'builder',
21
- 'call',
22
- 'card',
23
- 'catalog',
24
- 'checklist',
25
- 'client',
26
- 'comm',
27
- 'command',
28
- 'community',
29
- 'container',
30
- 'content',
31
- 'conversation',
32
- 'custom',
33
- 'customizer',
34
- 'dataverse',
35
- 'default',
36
- 'definition',
37
- 'dev',
38
- 'details',
39
- 'directory',
40
- 'eligibility',
41
- 'enterprise',
42
- 'entra',
43
- 'event',
44
- 'eventreceiver',
45
- 'external',
46
- 'externalize',
47
- 'folder',
48
- 'fun',
49
- 'group',
50
- 'groupify',
51
- 'groupmembership',
52
- 'guest',
53
- 'health',
54
- 'hide',
55
- 'historical',
56
- 'home',
57
- 'hub',
58
- 'in',
59
- 'info',
60
- 'inheritance',
61
- 'init',
62
- 'install',
63
- 'installed',
64
- 'is',
65
- 'issue',
66
- 'item',
67
- 'label',
68
- 'list',
69
- 'link',
70
- 'log',
71
- 'login',
72
- 'logout',
73
- 'mailbox',
74
- 'management',
75
- 'member',
76
- 'membership',
77
- 'messaging',
78
- 'model',
79
- 'multitenant',
80
- 'm365',
81
- 'news',
82
- 'oauth2',
83
- 'office365',
84
- 'one',
85
- 'open',
86
- 'ops',
87
- 'org',
88
- 'organization',
89
- 'owner',
90
- 'permission',
91
- 'pim',
92
- 'place',
93
- 'policy',
94
- 'profile',
95
- 'pronouns',
96
- 'property',
97
- 'record',
98
- 'records',
99
- 'recycle',
100
- 'registration',
101
- 'request',
102
- 'resolver',
103
- 'retention',
104
- 'revoke',
105
- 'role',
106
- 'room',
107
- 'schema',
108
- 'search',
109
- 'sensitivity',
110
- 'service',
111
- 'session',
112
- 'set',
113
- 'setting',
114
- 'settings',
115
- 'setup',
116
- 'sharing',
117
- 'side',
118
- 'site',
119
- 'status',
120
- 'storage',
121
- 'table',
122
- 'teams',
123
- 'threat',
124
- 'to',
125
- 'todo',
126
- 'token',
127
- 'type',
128
- 'unit',
129
- 'url',
130
- 'user',
131
- 'value',
132
- 'web',
133
- 'webhook'
134
- ];
135
-
136
- // list of words that should be capitalized in a specific way
137
- const capitalized = [
138
- 'OAuth2'
139
- ];
140
-
141
- // sort dictionary to put the longest words first
142
- const sortedDictionary = dictionary.sort((a, b) => b.length - a.length);
143
-
144
- module.exports = {
145
- "root": true,
146
- "env": {
147
- "node": true,
148
- "es2021": true,
149
- "commonjs": true,
150
- "mocha": true
151
- },
152
- "globals": {
153
- "NodeJS": true
154
- },
155
- "extends": [
156
- "plugin:@typescript-eslint/recommended"
157
- ],
158
- "parser": "@typescript-eslint/parser",
159
- "parserOptions": {
160
- "ecmaVersion": 2015,
161
- "sourceType": "module",
162
- "project": "./tsconfig.json"
163
- },
164
- "plugins": [
165
- "@typescript-eslint",
166
- "cli-microsoft365",
167
- "mocha"
168
- ],
169
- "ignorePatterns": [
170
- "**/package-generate/assets/**",
171
- "**/test-projects/**",
172
- "clientsidepages.ts",
173
- "*.d.ts",
174
- "*.js",
175
- "*.cjs"
176
- ],
177
- "rules": {
178
- "cli-microsoft365/correct-command-class-name": ["error", sortedDictionary, capitalized],
179
- "cli-microsoft365/correct-command-name": "error",
180
- "cli-microsoft365/no-by-server-relative-url-usage": "error",
181
- "indent": "off",
182
- "@typescript-eslint/indent": [
183
- "error",
184
- 2
185
- ],
186
- "semi": "off",
187
- "@typescript-eslint/semi": [
188
- "error"
189
- ],
190
- "@typescript-eslint/no-explicit-any": "off",
191
- "@typescript-eslint/no-var-requires": "off",
192
- "@typescript-eslint/no-inferrable-types": "off",
193
- "@typescript-eslint/no-non-null-assertion": "off",
194
- "@typescript-eslint/explicit-module-boundary-types": [
195
- "error",
196
- {
197
- "allowArgumentsExplicitlyTypedAsAny": true
198
- }
199
- ],
200
- "@typescript-eslint/no-unused-vars": [
201
- "error",
202
- {
203
- "argsIgnorePattern": "^_"
204
- }
205
- ],
206
- "brace-style": [
207
- "error",
208
- "stroustrup",
209
- {
210
- "allowSingleLine": true
211
- }
212
- ],
213
- "camelcase": [
214
- "error",
215
- {
216
- "allow": [
217
- "child_process",
218
- "error_description",
219
- "_Child_Items_",
220
- "_Object_Type_",
221
- "FN\\d+",
222
- "OData__.*",
223
- "vti_.*",
224
- "Query.*",
225
- "app_displayname",
226
- "access_token",
227
- "expires_on",
228
- "extension_*"
229
- ]
230
- }
231
- ],
232
- "comma-dangle": [
233
- "error",
234
- "never"
235
- ],
236
- "curly": [
237
- "error",
238
- "all"
239
- ],
240
- "eqeqeq": [
241
- "error",
242
- "always"
243
- ],
244
- "@typescript-eslint/naming-convention": [
245
- "error",
246
- {
247
- "selector": [
248
- "method"
249
- ],
250
- "format": [
251
- "camelCase"
252
- ]
253
- }
254
- ],
255
- "@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
256
- "mocha/no-identical-title": "error",
257
- "@typescript-eslint/no-floating-promises": "error"
258
- },
259
- "overrides": [
260
- {
261
- "files": [
262
- "*.spec.ts"
263
- ],
264
- "rules": {
265
- "no-console": "error",
266
- "@typescript-eslint/no-empty-function": "off",
267
- "cli-microsoft365/correct-command-class-name": "off",
268
- "cli-microsoft365/correct-command-name": "off",
269
- "@typescript-eslint/explicit-function-return-type": "off"
270
- }
271
- },
272
- {
273
- "files": [
274
- "**/viva/commands/engage/**"
275
- ],
276
- "rules": {
277
- "camelcase": "off"
278
- }
279
- },
280
- {
281
- "files": [
282
- "*.mjs"
283
- ],
284
- "rules": {
285
- "@typescript-eslint/explicit-function-return-type": "off"
286
- }
287
- }
288
- ]
289
- };