@pnp/cli-microsoft365 5.2.0-beta.dc50ce6 → 5.3.0-beta.99da27d
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/.eslintrc.js +1 -0
- package/dist/m365/planner/commands/bucket/bucket-remove.js +214 -0
- package/dist/m365/planner/commands/bucket/bucket-set.js +208 -0
- package/dist/m365/planner/commands/task/task-get.js +150 -7
- package/dist/m365/planner/commands.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.15.0-beta.1.js → upgrade-1.15.0-beta.6.js} +27 -27
- package/dist/m365/spfx/commands/project/project-upgrade.js +1 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -105
- package/dist/m365/spo/commands/field/field-list.js +84 -0
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +84 -0
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +76 -0
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/channel/channel-member-remove.js +214 -0
- package/dist/m365/teams/commands.js +2 -0
- package/dist/m365/tenant/commands/security/security-alerts-list.js +71 -0
- package/dist/m365/tenant/commands.js +1 -0
- package/docs/docs/cmd/planner/bucket/bucket-remove.md +60 -0
- package/docs/docs/cmd/planner/bucket/bucket-set.md +57 -0
- package/docs/docs/cmd/planner/task/task-get.md +30 -3
- package/docs/docs/cmd/planner/task/task-set.md +2 -2
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spfx/spfx-doctor.md +1 -1
- package/docs/docs/cmd/spo/field/field-list.md +51 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +55 -0
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +36 -0
- package/docs/docs/cmd/spo/listitem/listitem-list.md +2 -2
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +57 -0
- package/docs/docs/cmd/tenant/security/security-alerts-list.md +30 -0
- package/npm-shrinkwrap.json +1517 -1284
- package/package.json +26 -24
|
@@ -30,34 +30,34 @@ const FN006004_CFG_PS_developer_1 = require("./rules/FN006004_CFG_PS_developer")
|
|
|
30
30
|
const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
|
|
31
31
|
const FN023002_GITIGNORE_heft_1 = require("./rules/FN023002_GITIGNORE_heft");
|
|
32
32
|
module.exports = [
|
|
33
|
-
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.15.0-beta.
|
|
34
|
-
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.15.0-beta.
|
|
35
|
-
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.15.0-beta.
|
|
36
|
-
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.15.0-beta.
|
|
37
|
-
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.15.0-beta.
|
|
38
|
-
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.15.0-beta.
|
|
39
|
-
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.15.0-beta.
|
|
40
|
-
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.15.0-beta.
|
|
41
|
-
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.15.0-beta.
|
|
42
|
-
new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('7.
|
|
43
|
-
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.15.0-beta.
|
|
44
|
-
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.15.0-beta.
|
|
45
|
-
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.15.0-beta.
|
|
46
|
-
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.15.0-beta.
|
|
47
|
-
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.15.0-beta.
|
|
48
|
-
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.15.0-beta.
|
|
49
|
-
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.15.0-beta.
|
|
50
|
-
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.15.0-beta.
|
|
51
|
-
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.15.0-beta.
|
|
52
|
-
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.15.0-beta.
|
|
53
|
-
new FN001033_DEP_tslib_1.FN001033_DEP_tslib('
|
|
54
|
-
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.15.0-beta.
|
|
55
|
-
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.15.0-beta.
|
|
33
|
+
new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.15.0-beta.6'),
|
|
34
|
+
new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.15.0-beta.6'),
|
|
35
|
+
new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.15.0-beta.6'),
|
|
36
|
+
new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.15.0-beta.6'),
|
|
37
|
+
new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.15.0-beta.6'),
|
|
38
|
+
new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.15.0-beta.6'),
|
|
39
|
+
new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.15.0-beta.6'),
|
|
40
|
+
new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.15.0-beta.6'),
|
|
41
|
+
new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.15.0-beta.6'),
|
|
42
|
+
new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('7.183.1'),
|
|
43
|
+
new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.15.0-beta.6'),
|
|
44
|
+
new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.15.0-beta.6'),
|
|
45
|
+
new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.15.0-beta.6'),
|
|
46
|
+
new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.15.0-beta.6'),
|
|
47
|
+
new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.15.0-beta.6'),
|
|
48
|
+
new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.15.0-beta.6'),
|
|
49
|
+
new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.15.0-beta.6'),
|
|
50
|
+
new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.15.0-beta.6'),
|
|
51
|
+
new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.15.0-beta.6'),
|
|
52
|
+
new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.15.0-beta.6'),
|
|
53
|
+
new FN001033_DEP_tslib_1.FN001033_DEP_tslib('2.3.1'),
|
|
54
|
+
new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.15.0-beta.6'),
|
|
55
|
+
new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.15.0-beta.6'),
|
|
56
56
|
new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('6.12.5'),
|
|
57
|
-
new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('1.15.0-beta.
|
|
57
|
+
new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('1.15.0-beta.6'),
|
|
58
58
|
new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('1.15.2'),
|
|
59
|
-
new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.15.0-beta.
|
|
60
|
-
new FN010001_YORC_version_1.FN010001_YORC_version('1.15.0-beta.
|
|
59
|
+
new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.15.0-beta.6'),
|
|
60
|
+
new FN010001_YORC_version_1.FN010001_YORC_version('1.15.0-beta.6'),
|
|
61
61
|
new FN023002_GITIGNORE_heft_1.FN023002_GITIGNORE_heft()
|
|
62
62
|
];
|
|
63
|
-
//# sourceMappingURL=upgrade-1.15.0-beta.
|
|
63
|
+
//# sourceMappingURL=upgrade-1.15.0-beta.6.js.map
|
|
@@ -63,10 +63,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
63
63
|
range: '^6',
|
|
64
64
|
fix: 'Install Node.js v6'
|
|
65
65
|
},
|
|
66
|
-
react: {
|
|
67
|
-
range: '^15',
|
|
68
|
-
fix: 'npm i react@15'
|
|
69
|
-
},
|
|
70
66
|
sp: SharePointVersion.All,
|
|
71
67
|
yo: {
|
|
72
68
|
range: '^3',
|
|
@@ -82,10 +78,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
82
78
|
range: '^6',
|
|
83
79
|
fix: 'Install Node.js v6'
|
|
84
80
|
},
|
|
85
|
-
react: {
|
|
86
|
-
range: '^15',
|
|
87
|
-
fix: 'npm i react@15'
|
|
88
|
-
},
|
|
89
81
|
sp: SharePointVersion.All,
|
|
90
82
|
yo: {
|
|
91
83
|
range: '^3',
|
|
@@ -101,10 +93,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
101
93
|
range: '^6',
|
|
102
94
|
fix: 'Install Node.js v6'
|
|
103
95
|
},
|
|
104
|
-
react: {
|
|
105
|
-
range: '^15',
|
|
106
|
-
fix: 'npm i react@15'
|
|
107
|
-
},
|
|
108
96
|
sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
|
|
109
97
|
yo: {
|
|
110
98
|
range: '^3',
|
|
@@ -120,10 +108,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
120
108
|
range: '^6',
|
|
121
109
|
fix: 'Install Node.js v6'
|
|
122
110
|
},
|
|
123
|
-
react: {
|
|
124
|
-
range: '^15',
|
|
125
|
-
fix: 'npm i react@15'
|
|
126
|
-
},
|
|
127
111
|
sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
|
|
128
112
|
yo: {
|
|
129
113
|
range: '^3',
|
|
@@ -139,10 +123,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
139
123
|
range: '^6 || ^8',
|
|
140
124
|
fix: 'Install Node.js v8'
|
|
141
125
|
},
|
|
142
|
-
react: {
|
|
143
|
-
range: '^15',
|
|
144
|
-
fix: 'npm i react@15'
|
|
145
|
-
},
|
|
146
126
|
sp: SharePointVersion.SP2019 | SharePointVersion.SPO,
|
|
147
127
|
yo: {
|
|
148
128
|
range: '^3',
|
|
@@ -158,10 +138,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
158
138
|
range: '^6 || ^8',
|
|
159
139
|
fix: 'Install Node.js v8'
|
|
160
140
|
},
|
|
161
|
-
react: {
|
|
162
|
-
range: '^15',
|
|
163
|
-
fix: 'npm i react@15'
|
|
164
|
-
},
|
|
165
141
|
sp: SharePointVersion.SPO,
|
|
166
142
|
yo: {
|
|
167
143
|
range: '^3',
|
|
@@ -177,10 +153,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
177
153
|
range: '^6 || ^8',
|
|
178
154
|
fix: 'Install Node.js v8'
|
|
179
155
|
},
|
|
180
|
-
react: {
|
|
181
|
-
range: '^15',
|
|
182
|
-
fix: 'npm i react@15'
|
|
183
|
-
},
|
|
184
156
|
sp: SharePointVersion.SPO,
|
|
185
157
|
yo: {
|
|
186
158
|
range: '^3',
|
|
@@ -196,10 +168,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
196
168
|
range: '^6 || ^8',
|
|
197
169
|
fix: 'Install Node.js v8'
|
|
198
170
|
},
|
|
199
|
-
react: {
|
|
200
|
-
range: '^15',
|
|
201
|
-
fix: 'npm i react@15'
|
|
202
|
-
},
|
|
203
171
|
sp: SharePointVersion.SPO,
|
|
204
172
|
yo: {
|
|
205
173
|
range: '^3',
|
|
@@ -215,10 +183,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
215
183
|
range: '^8',
|
|
216
184
|
fix: 'Install Node.js v8'
|
|
217
185
|
},
|
|
218
|
-
react: {
|
|
219
|
-
range: '16.3.2',
|
|
220
|
-
fix: 'npm i react@16.3.2'
|
|
221
|
-
},
|
|
222
186
|
sp: SharePointVersion.SPO,
|
|
223
187
|
yo: {
|
|
224
188
|
range: '^3',
|
|
@@ -234,10 +198,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
234
198
|
range: '^8',
|
|
235
199
|
fix: 'Install Node.js v8'
|
|
236
200
|
},
|
|
237
|
-
react: {
|
|
238
|
-
range: '16.3.2',
|
|
239
|
-
fix: 'npm i react@16.3.2'
|
|
240
|
-
},
|
|
241
201
|
sp: SharePointVersion.SPO,
|
|
242
202
|
yo: {
|
|
243
203
|
range: '^3',
|
|
@@ -253,10 +213,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
253
213
|
range: '^8',
|
|
254
214
|
fix: 'Install Node.js v8'
|
|
255
215
|
},
|
|
256
|
-
react: {
|
|
257
|
-
range: '16.7.0',
|
|
258
|
-
fix: 'npm i react@16.7.0'
|
|
259
|
-
},
|
|
260
216
|
sp: SharePointVersion.SPO,
|
|
261
217
|
yo: {
|
|
262
218
|
range: '^3',
|
|
@@ -272,10 +228,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
272
228
|
range: '^8',
|
|
273
229
|
fix: 'Install Node.js v8'
|
|
274
230
|
},
|
|
275
|
-
react: {
|
|
276
|
-
range: '16.7.0',
|
|
277
|
-
fix: 'npm i react@16.7.0'
|
|
278
|
-
},
|
|
279
231
|
sp: SharePointVersion.SPO,
|
|
280
232
|
yo: {
|
|
281
233
|
range: '^3',
|
|
@@ -291,10 +243,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
291
243
|
range: '^8 || ^10',
|
|
292
244
|
fix: 'Install Node.js v10'
|
|
293
245
|
},
|
|
294
|
-
react: {
|
|
295
|
-
range: '16.7.0',
|
|
296
|
-
fix: 'npm i react@16.7.0'
|
|
297
|
-
},
|
|
298
246
|
sp: SharePointVersion.SPO,
|
|
299
247
|
yo: {
|
|
300
248
|
range: '^3',
|
|
@@ -310,10 +258,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
310
258
|
range: '^8 || ^10',
|
|
311
259
|
fix: 'Install Node.js v10'
|
|
312
260
|
},
|
|
313
|
-
react: {
|
|
314
|
-
range: '16.8.5',
|
|
315
|
-
fix: 'npm i react@16.8.5'
|
|
316
|
-
},
|
|
317
261
|
sp: SharePointVersion.SPO,
|
|
318
262
|
yo: {
|
|
319
263
|
range: '^3',
|
|
@@ -329,10 +273,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
329
273
|
range: '^10',
|
|
330
274
|
fix: 'Install Node.js v10'
|
|
331
275
|
},
|
|
332
|
-
react: {
|
|
333
|
-
range: '16.8.5',
|
|
334
|
-
fix: 'npm i react@16.8.5'
|
|
335
|
-
},
|
|
336
276
|
sp: SharePointVersion.SPO,
|
|
337
277
|
yo: {
|
|
338
278
|
range: '^3',
|
|
@@ -348,10 +288,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
348
288
|
range: '^10',
|
|
349
289
|
fix: 'Install Node.js v10'
|
|
350
290
|
},
|
|
351
|
-
react: {
|
|
352
|
-
range: '16.8.5',
|
|
353
|
-
fix: 'npm i react@16.8.5'
|
|
354
|
-
},
|
|
355
291
|
sp: SharePointVersion.SPO,
|
|
356
292
|
yo: {
|
|
357
293
|
range: '^3',
|
|
@@ -367,10 +303,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
367
303
|
range: '^10',
|
|
368
304
|
fix: 'Install Node.js v10'
|
|
369
305
|
},
|
|
370
|
-
react: {
|
|
371
|
-
range: '16.8.5',
|
|
372
|
-
fix: 'npm i react@16.8.5'
|
|
373
|
-
},
|
|
374
306
|
sp: SharePointVersion.SPO,
|
|
375
307
|
yo: {
|
|
376
308
|
range: '^3',
|
|
@@ -386,10 +318,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
386
318
|
range: '^12',
|
|
387
319
|
fix: 'Install Node.js v12'
|
|
388
320
|
},
|
|
389
|
-
react: {
|
|
390
|
-
range: '16.9.0',
|
|
391
|
-
fix: 'npm i react@16.9.0'
|
|
392
|
-
},
|
|
393
321
|
sp: SharePointVersion.SPO,
|
|
394
322
|
yo: {
|
|
395
323
|
range: '^3',
|
|
@@ -405,10 +333,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
405
333
|
range: '^12 || ^14',
|
|
406
334
|
fix: 'Install Node.js v12 or v14'
|
|
407
335
|
},
|
|
408
|
-
react: {
|
|
409
|
-
range: '16.9.36',
|
|
410
|
-
fix: 'npm i react@16.9.36'
|
|
411
|
-
},
|
|
412
336
|
sp: SharePointVersion.SPO,
|
|
413
337
|
yo: {
|
|
414
338
|
range: '^3',
|
|
@@ -424,10 +348,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
424
348
|
range: '^12 || ^14',
|
|
425
349
|
fix: 'Install Node.js v12 or v14'
|
|
426
350
|
},
|
|
427
|
-
react: {
|
|
428
|
-
range: '16.9.51',
|
|
429
|
-
fix: 'npm i react@16.9.51'
|
|
430
|
-
},
|
|
431
351
|
sp: SharePointVersion.SPO,
|
|
432
352
|
yo: {
|
|
433
353
|
range: '^4',
|
|
@@ -443,10 +363,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
443
363
|
range: '^12 || ^14',
|
|
444
364
|
fix: 'Install Node.js v12 or v14'
|
|
445
365
|
},
|
|
446
|
-
react: {
|
|
447
|
-
range: '16.9.51',
|
|
448
|
-
fix: 'npm i react@16.9.51'
|
|
449
|
-
},
|
|
450
366
|
sp: SharePointVersion.SPO,
|
|
451
367
|
yo: {
|
|
452
368
|
range: '^4',
|
|
@@ -462,10 +378,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
462
378
|
range: '^12 || ^14',
|
|
463
379
|
fix: 'Install Node.js v12 or v14'
|
|
464
380
|
},
|
|
465
|
-
react: {
|
|
466
|
-
range: '16.9.51',
|
|
467
|
-
fix: 'npm i react@16.9.51'
|
|
468
|
-
},
|
|
469
381
|
sp: SharePointVersion.SPO,
|
|
470
382
|
yo: {
|
|
471
383
|
range: '^4',
|
|
@@ -511,7 +423,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
511
423
|
.then(_ => this.checkNodeVersion(prerequisites, fixes, logger))
|
|
512
424
|
.then(_ => this.checkYo(prerequisites, fixes, logger))
|
|
513
425
|
.then(_ => this.checkGulp(prerequisites, fixes, logger))
|
|
514
|
-
.then(_ => this.checkReact(prerequisites, fixes, logger))
|
|
515
426
|
.then(_ => this.checkTypeScript(fixes, logger))
|
|
516
427
|
.then(_ => {
|
|
517
428
|
if (fixes.length > 0) {
|
|
@@ -586,13 +497,6 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
586
497
|
}
|
|
587
498
|
});
|
|
588
499
|
}
|
|
589
|
-
checkReact(prerequisites, fixes, logger) {
|
|
590
|
-
return this
|
|
591
|
-
.getPackageVersion('react', PackageSearchMode.LocalOnly, HandlePromise.Continue, logger)
|
|
592
|
-
.then((reactVersion) => {
|
|
593
|
-
this.checkStatus('react', reactVersion, prerequisites.react, OptionalOrRequired.Optional, fixes, logger);
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
500
|
checkTypeScript(fixes, logger) {
|
|
597
501
|
return this
|
|
598
502
|
.getPackageVersion('typescript', PackageSearchMode.LocalOnly, HandlePromise.Continue, logger)
|
|
@@ -713,15 +617,7 @@ class SpfxDoctorCommand extends AnonymousCommand_1.default {
|
|
|
713
617
|
return process.version.substr(1);
|
|
714
618
|
}
|
|
715
619
|
checkStatus(what, versionFound, versionCheck, optionalOrRequired, fixes, logger) {
|
|
716
|
-
if (
|
|
717
|
-
// TODO: we might need this code in the future if SPFx introduces required
|
|
718
|
-
// prerequisites with a specific version
|
|
719
|
-
// if (optionalOrRequired === OptionalOrRequired.Required) {
|
|
720
|
-
// logger.log(this.getStatus(CheckStatus.Failure, `${what} not found, v${versionCheck.range} required`));
|
|
721
|
-
// fixes.push(versionCheck.fix);
|
|
722
|
-
// }
|
|
723
|
-
}
|
|
724
|
-
else {
|
|
620
|
+
if (versionFound) {
|
|
725
621
|
if ((0, semver_1.satisfies)(versionFound, versionCheck.range)) {
|
|
726
622
|
logger.log(this.getStatus(CheckStatus.Success, `${what} v${versionFound}`));
|
|
727
623
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
|
+
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
|
+
const commands_1 = require("../../commands");
|
|
7
|
+
class SpoFieldListCommand extends SpoCommand_1.default {
|
|
8
|
+
get name() {
|
|
9
|
+
return commands_1.default.FIELD_LIST;
|
|
10
|
+
}
|
|
11
|
+
get description() {
|
|
12
|
+
return 'Retrieves columns for the specified list or site';
|
|
13
|
+
}
|
|
14
|
+
getTelemetryProperties(args) {
|
|
15
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
16
|
+
telemetryProps.listId = typeof args.options.listId !== 'undefined';
|
|
17
|
+
telemetryProps.listTitle = typeof args.options.listTitle !== 'undefined';
|
|
18
|
+
telemetryProps.listUrl = typeof args.options.listUrl !== 'undefined';
|
|
19
|
+
return telemetryProps;
|
|
20
|
+
}
|
|
21
|
+
defaultProperties() {
|
|
22
|
+
return ['Id', 'Title', 'Group', 'Hidden'];
|
|
23
|
+
}
|
|
24
|
+
commandAction(logger, args, cb) {
|
|
25
|
+
let listUrl = '';
|
|
26
|
+
if (args.options.listId) {
|
|
27
|
+
listUrl = `lists(guid'${encodeURIComponent(args.options.listId)}')/`;
|
|
28
|
+
}
|
|
29
|
+
else if (args.options.listTitle) {
|
|
30
|
+
listUrl = `lists/getByTitle('${encodeURIComponent(args.options.listTitle)}')/`;
|
|
31
|
+
}
|
|
32
|
+
else if (args.options.listUrl) {
|
|
33
|
+
const listServerRelativeUrl = utils_1.urlUtil.getServerRelativePath(args.options.webUrl, args.options.listUrl);
|
|
34
|
+
listUrl = `GetList('${encodeURIComponent(listServerRelativeUrl)}')/`;
|
|
35
|
+
}
|
|
36
|
+
const requestOptions = {
|
|
37
|
+
url: `${args.options.webUrl}/_api/web/${listUrl}fields`,
|
|
38
|
+
headers: {
|
|
39
|
+
accept: 'application/json;odata=nometadata'
|
|
40
|
+
},
|
|
41
|
+
responseType: 'json'
|
|
42
|
+
};
|
|
43
|
+
request_1.default
|
|
44
|
+
.get(requestOptions)
|
|
45
|
+
.then((res) => {
|
|
46
|
+
logger.log(res.value);
|
|
47
|
+
cb();
|
|
48
|
+
}, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
49
|
+
}
|
|
50
|
+
options() {
|
|
51
|
+
const options = [
|
|
52
|
+
{
|
|
53
|
+
option: '-u, --webUrl <webUrl>'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
option: '-t, --listTitle [listTitle]'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
option: '-i, --listId [listId]'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
option: '--listUrl [listUrl]'
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
const parentOptions = super.options();
|
|
66
|
+
return options.concat(parentOptions);
|
|
67
|
+
}
|
|
68
|
+
validate(args) {
|
|
69
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
70
|
+
if (isValidSharePointUrl !== true) {
|
|
71
|
+
return isValidSharePointUrl;
|
|
72
|
+
}
|
|
73
|
+
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
74
|
+
return `${args.options.listId} is not a valid GUID`;
|
|
75
|
+
}
|
|
76
|
+
const listOptions = [args.options.listId, args.options.listTitle, args.options.listUrl];
|
|
77
|
+
if (listOptions.some(item => item !== undefined) && listOptions.filter(item => item !== undefined).length > 1) {
|
|
78
|
+
return `Specify either list id or title or list url`;
|
|
79
|
+
}
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
module.exports = new SpoFieldListCommand();
|
|
84
|
+
//# sourceMappingURL=field-list.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
|
+
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
|
+
const commands_1 = require("../../commands");
|
|
7
|
+
class SpoListRoleInheritanceBreakCommand extends SpoCommand_1.default {
|
|
8
|
+
get name() {
|
|
9
|
+
return commands_1.default.LIST_ROLEINHERITANCE_BREAK;
|
|
10
|
+
}
|
|
11
|
+
get description() {
|
|
12
|
+
return 'Breaks role inheritance on list or library';
|
|
13
|
+
}
|
|
14
|
+
optionSets() {
|
|
15
|
+
return [
|
|
16
|
+
['listId', 'listTitle']
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
getTelemetryProperties(args) {
|
|
20
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
21
|
+
telemetryProps.listId = typeof args.options.listId !== 'undefined';
|
|
22
|
+
telemetryProps.listTitle = typeof args.options.listTitle !== 'undefined';
|
|
23
|
+
telemetryProps.clearExistingPermissions = args.options.clearExistingPermissions === true;
|
|
24
|
+
return telemetryProps;
|
|
25
|
+
}
|
|
26
|
+
commandAction(logger, args, cb) {
|
|
27
|
+
if (this.verbose) {
|
|
28
|
+
logger.logToStderr(`Breaking role inheritance of list in site at ${args.options.webUrl}...`);
|
|
29
|
+
}
|
|
30
|
+
let requestUrl = `${args.options.webUrl}/_api/web/lists`;
|
|
31
|
+
if (args.options.listId) {
|
|
32
|
+
requestUrl += `(guid'${encodeURIComponent(args.options.listId)}')`;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
requestUrl += `/getbytitle('${encodeURIComponent(args.options.listTitle)}')`;
|
|
36
|
+
}
|
|
37
|
+
let keepExistingPermissions = true;
|
|
38
|
+
if (args.options.clearExistingPermissions) {
|
|
39
|
+
keepExistingPermissions = !args.options.clearExistingPermissions;
|
|
40
|
+
}
|
|
41
|
+
const requestOptions = {
|
|
42
|
+
url: `${requestUrl}/breakroleinheritance(${keepExistingPermissions})`,
|
|
43
|
+
method: 'POST',
|
|
44
|
+
headers: {
|
|
45
|
+
'accept': 'application/json;odata=nometadata',
|
|
46
|
+
'content-type': 'application/json'
|
|
47
|
+
},
|
|
48
|
+
responseType: 'json'
|
|
49
|
+
};
|
|
50
|
+
request_1.default
|
|
51
|
+
.post(requestOptions)
|
|
52
|
+
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
53
|
+
}
|
|
54
|
+
options() {
|
|
55
|
+
const options = [
|
|
56
|
+
{
|
|
57
|
+
option: '-u, --webUrl <webUrl>'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
option: '-i, --listId [listId]'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
option: '-t, --listTitle [listTitle]'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
option: '-c, --clearExistingPermissions'
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
const parentOptions = super.options();
|
|
70
|
+
return options.concat(parentOptions);
|
|
71
|
+
}
|
|
72
|
+
validate(args) {
|
|
73
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
74
|
+
if (isValidSharePointUrl !== true) {
|
|
75
|
+
return isValidSharePointUrl;
|
|
76
|
+
}
|
|
77
|
+
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
78
|
+
return `${args.options.listId} is not a valid GUID`;
|
|
79
|
+
}
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
module.exports = new SpoListRoleInheritanceBreakCommand();
|
|
84
|
+
//# sourceMappingURL=list-roleinheritance-break.js.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const request_1 = require("../../../../request");
|
|
4
|
+
const utils_1 = require("../../../../utils");
|
|
5
|
+
const SpoCommand_1 = require("../../../base/SpoCommand");
|
|
6
|
+
const commands_1 = require("../../commands");
|
|
7
|
+
class SpoListRoleInheritanceResetCommand extends SpoCommand_1.default {
|
|
8
|
+
get name() {
|
|
9
|
+
return commands_1.default.LIST_ROLEINHERITANCE_RESET;
|
|
10
|
+
}
|
|
11
|
+
get description() {
|
|
12
|
+
return 'Restores role inheritance on list or library';
|
|
13
|
+
}
|
|
14
|
+
optionSets() {
|
|
15
|
+
return [
|
|
16
|
+
['listId', 'listTitle']
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
getTelemetryProperties(args) {
|
|
20
|
+
const telemetryProps = super.getTelemetryProperties(args);
|
|
21
|
+
telemetryProps.listId = typeof args.options.listId !== 'undefined';
|
|
22
|
+
telemetryProps.listTitle = typeof args.options.listTitle !== 'undefined';
|
|
23
|
+
return telemetryProps;
|
|
24
|
+
}
|
|
25
|
+
commandAction(logger, args, cb) {
|
|
26
|
+
if (this.verbose) {
|
|
27
|
+
logger.logToStderr(`Restore role inheritance of list in site at ${args.options.webUrl}...`);
|
|
28
|
+
}
|
|
29
|
+
let requestUrl = `${args.options.webUrl}/_api/web/lists`;
|
|
30
|
+
if (args.options.listId) {
|
|
31
|
+
requestUrl += `(guid'${encodeURIComponent(args.options.listId)}')`;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
requestUrl += `/getbytitle('${encodeURIComponent(args.options.listTitle)}')`;
|
|
35
|
+
}
|
|
36
|
+
const requestOptions = {
|
|
37
|
+
url: `${requestUrl}/resetroleinheritance`,
|
|
38
|
+
method: 'POST',
|
|
39
|
+
headers: {
|
|
40
|
+
'accept': 'application/json;odata=nometadata',
|
|
41
|
+
'content-type': 'application/json'
|
|
42
|
+
},
|
|
43
|
+
responseType: 'json'
|
|
44
|
+
};
|
|
45
|
+
request_1.default
|
|
46
|
+
.post(requestOptions)
|
|
47
|
+
.then(_ => cb(), (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
|
|
48
|
+
}
|
|
49
|
+
options() {
|
|
50
|
+
const options = [
|
|
51
|
+
{
|
|
52
|
+
option: '-u, --webUrl <webUrl>'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
option: '-i, --listId [listId]'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
option: '-t, --listTitle [listTitle]'
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
const parentOptions = super.options();
|
|
62
|
+
return options.concat(parentOptions);
|
|
63
|
+
}
|
|
64
|
+
validate(args) {
|
|
65
|
+
const isValidSharePointUrl = utils_1.validation.isValidSharePointUrl(args.options.webUrl);
|
|
66
|
+
if (isValidSharePointUrl !== true) {
|
|
67
|
+
return isValidSharePointUrl;
|
|
68
|
+
}
|
|
69
|
+
if (args.options.listId && !utils_1.validation.isValidGuid(args.options.listId)) {
|
|
70
|
+
return `${args.options.listId} is not a valid GUID`;
|
|
71
|
+
}
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
module.exports = new SpoListRoleInheritanceResetCommand();
|
|
76
|
+
//# sourceMappingURL=list-roleinheritance-reset.js.map
|
|
@@ -41,6 +41,7 @@ exports.default = {
|
|
|
41
41
|
FEATURE_LIST: `${prefix} feature list`,
|
|
42
42
|
FIELD_ADD: `${prefix} field add`,
|
|
43
43
|
FIELD_GET: `${prefix} field get`,
|
|
44
|
+
FIELD_LIST: `${prefix} field list`,
|
|
44
45
|
FIELD_REMOVE: `${prefix} field remove`,
|
|
45
46
|
FIELD_SET: `${prefix} field set`,
|
|
46
47
|
FILE_ADD: `${prefix} file add`,
|
|
@@ -95,6 +96,8 @@ exports.default = {
|
|
|
95
96
|
LIST_LABEL_SET: `${prefix} list label set`,
|
|
96
97
|
LIST_LIST: `${prefix} list list`,
|
|
97
98
|
LIST_REMOVE: `${prefix} list remove`,
|
|
99
|
+
LIST_ROLEINHERITANCE_BREAK: `${prefix} list roleinheritance break`,
|
|
100
|
+
LIST_ROLEINHERITANCE_RESET: `${prefix} list roleinheritance reset`,
|
|
98
101
|
LIST_SET: `${prefix} list set`,
|
|
99
102
|
LIST_SITESCRIPT_GET: `${prefix} list sitescript get`,
|
|
100
103
|
LIST_VIEW_GET: `${prefix} list view get`,
|