@pnp/cli-microsoft365 10.10.0-beta.bd186ba → 10.10.0-beta.eb74779

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 (77) hide show
  1. package/.devproxy/api-specs/sharepoint-admin.yaml +67 -0
  2. package/.devproxy/api-specs/sharepoint.yaml +230 -0
  3. package/.devproxy/devproxyrc.json +48 -0
  4. package/.devproxy/generate-openapi-spec.json +24 -0
  5. package/.devproxy/spo-csom-types.json +54 -0
  6. package/.eslintrc.cjs +8 -0
  7. package/allCommands.json +1 -1
  8. package/allCommandsFull.json +1 -1
  9. package/dist/cli/cli.js +2 -2
  10. package/dist/m365/app/commands/permission/permission-add.js +8 -1
  11. package/dist/m365/base/SpoCommand.js +1 -0
  12. package/dist/m365/entra/commands/app/app-permission-add.js +5 -18
  13. package/dist/m365/file/commands/file-copy.js +2 -2
  14. package/dist/m365/file/commands/file-move.js +1 -1
  15. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +0 -3
  16. package/dist/m365/spo/commands/contenttype/contenttype-add.js +3 -65
  17. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +5 -50
  18. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +4 -48
  19. package/dist/m365/spo/commands/contenttype/contenttype-set.js +8 -58
  20. package/dist/m365/spo/commands/contenttype/contenttype-sync.js +2 -2
  21. package/dist/m365/spo/commands/folder/folder-sharinglink-add.js +1 -1
  22. package/dist/m365/spo/commands/folder/folder-sharinglink-clear.js +1 -1
  23. package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +1 -1
  24. package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +1 -1
  25. package/dist/m365/spo/commands/folder/folder-sharinglink-remove.js +1 -1
  26. package/dist/m365/spo/commands/folder/folder-sharinglink-set.js +1 -1
  27. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +3 -27
  28. package/dist/m365/spo/commands/page/Page.js +16 -1
  29. package/dist/m365/spo/commands/page/page-add.js +1 -1
  30. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -8
  31. package/dist/m365/spo/commands/page/page-control-remove.js +99 -0
  32. package/dist/m365/spo/commands/page/page-control-set.js +1 -1
  33. package/dist/m365/spo/commands/page/page-header-set.js +9 -40
  34. package/dist/m365/spo/commands/page/page-publish.js +2 -10
  35. package/dist/m365/spo/commands/page/page-section-add.js +2 -8
  36. package/dist/m365/spo/commands/page/page-set.js +1 -1
  37. package/dist/m365/spo/commands/site/site-admin-add.js +1 -12
  38. package/dist/m365/spo/commands/site/site-set.js +2 -2
  39. package/dist/m365/spo/commands.js +1 -0
  40. package/dist/utils/entraServicePrincipal.js +21 -0
  41. package/dist/utils/md.js +3 -3
  42. package/dist/utils/spo.js +87 -3
  43. package/docs/docs/cmd/_global.mdx +1 -1
  44. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +19 -0
  45. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +19 -0
  46. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +19 -0
  47. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +21 -0
  48. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +21 -0
  49. package/docs/docs/cmd/planner/plan/plan-add.mdx +19 -0
  50. package/docs/docs/cmd/planner/plan/plan-get.mdx +19 -0
  51. package/docs/docs/cmd/planner/plan/plan-list.mdx +19 -0
  52. package/docs/docs/cmd/planner/plan/plan-remove.mdx +21 -0
  53. package/docs/docs/cmd/planner/plan/plan-set.mdx +19 -0
  54. package/docs/docs/cmd/planner/roster/roster-add.mdx +19 -0
  55. package/docs/docs/cmd/planner/roster/roster-get.mdx +19 -0
  56. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +19 -0
  57. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +19 -0
  58. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +19 -0
  59. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +21 -0
  60. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +19 -0
  61. package/docs/docs/cmd/planner/roster/roster-remove.mdx +21 -0
  62. package/docs/docs/cmd/planner/task/task-add.mdx +19 -0
  63. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +19 -0
  64. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +19 -0
  65. package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +21 -0
  66. package/docs/docs/cmd/planner/task/task-get.mdx +27 -0
  67. package/docs/docs/cmd/planner/task/task-list.mdx +19 -0
  68. package/docs/docs/cmd/planner/task/task-reference-add.mdx +19 -0
  69. package/docs/docs/cmd/planner/task/task-reference-list.mdx +19 -0
  70. package/docs/docs/cmd/planner/task/task-reference-remove.mdx +21 -0
  71. package/docs/docs/cmd/planner/task/task-remove.mdx +21 -0
  72. package/docs/docs/cmd/planner/task/task-set.mdx +19 -0
  73. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +44 -7
  74. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +43 -8
  75. package/docs/docs/cmd/spo/page/page-control-remove.mdx +56 -0
  76. package/npm-shrinkwrap.json +2322 -534
  77. package/package.json +16 -13
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # planner task remove
4
6
 
@@ -54,6 +56,25 @@ When using `rosterId`, the command is based on an API that is currently in previ
54
56
 
55
57
  :::
56
58
 
59
+ ## Permissions
60
+
61
+ <Tabs>
62
+ <TabItem value="Delegated">
63
+
64
+ | Resource | Permissions |
65
+ |-----------------|---------------------------------------|
66
+ | Microsoft Graph | Tasks.ReadWrite, GroupMember.Read.All |
67
+
68
+ </TabItem>
69
+ <TabItem value="Application">
70
+
71
+ | Resource | Permissions |
72
+ |-----------------|-------------------------------------------|
73
+ | Microsoft Graph | Tasks.ReadWrite.All, GroupMember.Read.All |
74
+
75
+ </TabItem>
76
+ </Tabs>
77
+
57
78
  ## Examples
58
79
 
59
80
  Removes the Microsoft Planner task by ID.
@@ -100,6 +100,25 @@ When using `rosterId`, the command is based on an API that is currently in previ
100
100
 
101
101
  :::
102
102
 
103
+ ## Permissions
104
+
105
+ <Tabs>
106
+ <TabItem value="Delegated">
107
+
108
+ | Resource | Permissions |
109
+ |-----------------|--------------------------------------------------|
110
+ | Microsoft Graph | Tasks.ReadWrite, GroupMember.Read.All, User.Read |
111
+
112
+ </TabItem>
113
+ <TabItem value="Application">
114
+
115
+ | Resource | Permissions |
116
+ |-----------------|----------------------------------------------------------|
117
+ | Microsoft Graph | Tasks.ReadWrite.All, GroupMember.Read.All, User.Read.All |
118
+
119
+ </TabItem>
120
+ </Tabs>
121
+
103
122
  ## Examples
104
123
 
105
124
  Updates a Microsoft Planner task name of the specified task by ID.
@@ -18,13 +18,30 @@ m365 planner tenant settings list [options]
18
18
 
19
19
  ## Remarks
20
20
 
21
- :::info
21
+ After executing the command `planner tenant settings set`, it can take some time for all changes to propagate across the tenant. Because of this, executing this command right away can return some unexpected results.
22
22
 
23
- To use this command you must be a global administrator.
23
+ ## Permissions
24
24
 
25
- :::
25
+ <Tabs>
26
+ <TabItem value="Delegated">
26
27
 
27
- After executing the command `planner tenant settings set`, it can take some time for all changes to propagate across the tenant. Because of this, executing this command right away can return some unexpected results.
28
+ | Resource | Permissions |
29
+ |-----------------|-------------|
30
+ | Microsoft Graph | email |
31
+
32
+ :::info
33
+
34
+ To use this command you must be a **global administrator**.
35
+
36
+ :::
37
+
38
+ </TabItem>
39
+ <TabItem value="Application">
40
+
41
+ This command does not support application permissions.
42
+
43
+ </TabItem>
44
+ </Tabs>
28
45
 
29
46
  ## Examples
30
47
 
@@ -47,7 +64,17 @@ m365 planner tenant settings list
47
64
  "allowTenantMoveWithDataLoss": false,
48
65
  "allowTenantMoveWithDataMigration": false,
49
66
  "allowRosterCreation": true,
50
- "allowPlannerMobilePushNotifications": true
67
+ "allowPlannerMobilePushNotifications": true,
68
+ "allowFileRecommendations": true,
69
+ "enforceClientLicenseCheck": false,
70
+ "allowDataFlowToDataverse": true,
71
+ "allowPlannerCopilot": true,
72
+ "disallowedSharedWithContainerTypes": [
73
+ {
74
+ "hostContainerType": "group",
75
+ "sharedWithContainerType": "roster"
76
+ }
77
+ ]
51
78
  }
52
79
  ```
53
80
 
@@ -56,10 +83,16 @@ m365 planner tenant settings list
56
83
 
57
84
  ```txt
58
85
  allowCalendarSharing : true
86
+ allowDataFlowToDataverse : true
87
+ allowFileRecommendations : true
88
+ allowPlannerCopilot : true
59
89
  allowPlannerMobilePushNotifications: true
60
90
  allowRosterCreation : true
61
91
  allowTenantMoveWithDataLoss : false
62
92
  allowTenantMoveWithDataMigration : false
93
+ disallowedSharedWithContainerTypes : [{"hostContainerType":"group","sharedWithContainerType":"roster"}]
94
+ enforceClientLicenseCheck : false
95
+ id : 1
63
96
  isPlannerAllowed : true
64
97
  ```
65
98
 
@@ -67,8 +100,8 @@ m365 planner tenant settings list
67
100
  <TabItem value="CSV">
68
101
 
69
102
  ```csv
70
- isPlannerAllowed,allowCalendarSharing,allowTenantMoveWithDataLoss,allowTenantMoveWithDataMigration,allowRosterCreation,allowPlannerMobilePushNotifications
71
- 1,1,,,1,1
103
+ id,isPlannerAllowed,allowCalendarSharing,allowTenantMoveWithDataLoss,allowTenantMoveWithDataMigration,allowRosterCreation,allowPlannerMobilePushNotifications,allowFileRecommendations,enforceClientLicenseCheck,allowDataFlowToDataverse,allowPlannerCopilot
104
+ 1,1,1,0,0,1,1,1,0,1,1
72
105
  ```
73
106
 
74
107
  </TabItem>
@@ -90,6 +123,10 @@ m365 planner tenant settings list
90
123
  allowTenantMoveWithDataMigration | false
91
124
  allowRosterCreation | true
92
125
  allowPlannerMobilePushNotifications | true
126
+ allowFileRecommendations | true
127
+ enforceClientLicenseCheck | false
128
+ allowDataFlowToDataverse | true
129
+ allowPlannerCopilot | true
93
130
  ```
94
131
 
95
132
  </TabItem>
@@ -36,13 +36,28 @@ m365 planner tenant settings set [options]
36
36
 
37
37
  <Global />
38
38
 
39
- ## Remarks
39
+ ## Permissions
40
40
 
41
- :::info
41
+ <Tabs>
42
+ <TabItem value="Delegated">
43
+
44
+ | Resource | Permissions |
45
+ |-----------------|-------------|
46
+ | Microsoft Graph | email |
47
+
48
+ :::info
42
49
 
43
- To use this command you must be a global administrator.
50
+ To use this command you must be a **global administrator**.
44
51
 
45
- :::
52
+ :::
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ This command does not support application permissions.
58
+
59
+ </TabItem>
60
+ </Tabs>
46
61
 
47
62
  ## Examples
48
63
 
@@ -77,7 +92,17 @@ m365 planner tenant settings set --isPlannerAllowed true --allowRosterCreation f
77
92
  "allowTenantMoveWithDataLoss": false,
78
93
  "allowTenantMoveWithDataMigration": false,
79
94
  "allowRosterCreation": true,
80
- "allowPlannerMobilePushNotifications": true
95
+ "allowPlannerMobilePushNotifications": true,
96
+ "allowFileRecommendations": true,
97
+ "enforceClientLicenseCheck": false,
98
+ "allowDataFlowToDataverse": true,
99
+ "allowPlannerCopilot": true,
100
+ "disallowedSharedWithContainerTypes": [
101
+ {
102
+ "hostContainerType": "group",
103
+ "sharedWithContainerType": "roster"
104
+ }
105
+ ]
81
106
  }
82
107
  ```
83
108
 
@@ -86,10 +111,16 @@ m365 planner tenant settings set --isPlannerAllowed true --allowRosterCreation f
86
111
 
87
112
  ```txt
88
113
  allowCalendarSharing : true
114
+ allowDataFlowToDataverse : true
115
+ allowFileRecommendations : true
116
+ allowPlannerCopilot : true
89
117
  allowPlannerMobilePushNotifications: true
90
118
  allowRosterCreation : true
91
119
  allowTenantMoveWithDataLoss : false
92
120
  allowTenantMoveWithDataMigration : false
121
+ disallowedSharedWithContainerTypes : [{"hostContainerType":"group","sharedWithContainerType":"roster"}]
122
+ enforceClientLicenseCheck : false
123
+ id : 1
93
124
  isPlannerAllowed : true
94
125
  ```
95
126
 
@@ -97,15 +128,15 @@ m365 planner tenant settings set --isPlannerAllowed true --allowRosterCreation f
97
128
  <TabItem value="CSV">
98
129
 
99
130
  ```csv
100
- isPlannerAllowed,allowCalendarSharing,allowTenantMoveWithDataLoss,allowTenantMoveWithDataMigration,allowRosterCreation,allowPlannerMobilePushNotifications
101
- 1,1,,,1,1
131
+ id,isPlannerAllowed,allowCalendarSharing,allowTenantMoveWithDataLoss,allowTenantMoveWithDataMigration,allowRosterCreation,allowPlannerMobilePushNotifications,allowFileRecommendations,enforceClientLicenseCheck,allowDataFlowToDataverse,allowPlannerCopilot
132
+ 1,1,1,0,0,1,1,1,0,1,1
102
133
  ```
103
134
 
104
135
  </TabItem>
105
136
  <TabItem value="Markdown">
106
137
 
107
138
  ```md
108
- # planner tenant settings list
139
+ # planner tenant settings set --isPlannerAllowed true
109
140
 
110
141
  Date: 4/2/2023
111
142
 
@@ -120,6 +151,10 @@ m365 planner tenant settings set --isPlannerAllowed true --allowRosterCreation f
120
151
  allowTenantMoveWithDataMigration | false
121
152
  allowRosterCreation | true
122
153
  allowPlannerMobilePushNotifications | true
154
+ allowFileRecommendations | true
155
+ enforceClientLicenseCheck | false
156
+ allowDataFlowToDataverse | true
157
+ allowPlannerCopilot | true
123
158
  ```
124
159
 
125
160
  </TabItem>
@@ -0,0 +1,56 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # spo page control remove
4
+
5
+ Removes a control from a modern page
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 spo page control remove [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-u, --webUrl <webUrl>`
17
+ : URL of the site where the page is located.
18
+
19
+ `-n, --pageName <pageName>`
20
+ : Name of the page where the control is located.
21
+
22
+ `-i, --id <id>`
23
+ : The ID of the control to be removed.
24
+
25
+ `--draft`
26
+ : Save the page as draft instead of republishing it.
27
+
28
+ `-f, --force`
29
+ : Don't prompt for confirmation.
30
+ ```
31
+
32
+ <Global />
33
+
34
+ ## Examples
35
+
36
+ Remove a control from a SharePoint page, with confirmation
37
+
38
+ ```sh
39
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName home.aspx --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1
40
+ ```
41
+
42
+ Remove a control from a SharePoint page and don't republish the page
43
+
44
+ ```sh
45
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName "home.aspx" --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1 --draft
46
+ ```
47
+
48
+ Remove a control from a SharePoint page, that is located in a folder
49
+
50
+ ```sh
51
+ m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName "Archive/home.aspx" --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1
52
+ ```
53
+
54
+ ## Response
55
+
56
+ The command won't return a response on success.