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

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 (86) 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/entra/commands/organization/organization-set.js +104 -0
  14. package/dist/m365/entra/commands.js +1 -0
  15. package/dist/m365/file/commands/file-copy.js +2 -2
  16. package/dist/m365/file/commands/file-move.js +1 -1
  17. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +0 -3
  18. package/dist/m365/spo/commands/contenttype/contenttype-add.js +3 -65
  19. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +5 -50
  20. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +4 -48
  21. package/dist/m365/spo/commands/contenttype/contenttype-set.js +8 -58
  22. package/dist/m365/spo/commands/contenttype/contenttype-sync.js +2 -2
  23. package/dist/m365/spo/commands/folder/folder-sharinglink-add.js +1 -1
  24. package/dist/m365/spo/commands/folder/folder-sharinglink-clear.js +1 -1
  25. package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +1 -1
  26. package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +1 -1
  27. package/dist/m365/spo/commands/folder/folder-sharinglink-remove.js +1 -1
  28. package/dist/m365/spo/commands/folder/folder-sharinglink-set.js +1 -1
  29. package/dist/m365/spo/commands/homesite/homesite-remove.js +57 -37
  30. package/dist/m365/spo/commands/list/list-view-add.js +140 -87
  31. package/dist/m365/spo/commands/listitem/listitem-batch-set.js +3 -27
  32. package/dist/m365/spo/commands/page/Page.js +16 -1
  33. package/dist/m365/spo/commands/page/clientsidepages.js +4 -0
  34. package/dist/m365/spo/commands/page/page-add.js +1 -1
  35. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -8
  36. package/dist/m365/spo/commands/page/page-control-remove.js +99 -0
  37. package/dist/m365/spo/commands/page/page-control-set.js +1 -1
  38. package/dist/m365/spo/commands/page/page-header-set.js +9 -40
  39. package/dist/m365/spo/commands/page/page-publish.js +2 -10
  40. package/dist/m365/spo/commands/page/page-section-add.js +75 -21
  41. package/dist/m365/spo/commands/page/page-set.js +1 -1
  42. package/dist/m365/spo/commands/site/site-admin-add.js +1 -12
  43. package/dist/m365/spo/commands/site/site-set.js +2 -2
  44. package/dist/m365/spo/commands.js +1 -0
  45. package/dist/utils/entraServicePrincipal.js +21 -0
  46. package/dist/utils/md.js +3 -3
  47. package/dist/utils/spo.js +87 -3
  48. package/docs/docs/cmd/_global.mdx +1 -1
  49. package/docs/docs/cmd/entra/organization/organization-set.mdx +84 -0
  50. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +19 -0
  51. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +19 -0
  52. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +19 -0
  53. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +21 -0
  54. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +21 -0
  55. package/docs/docs/cmd/planner/plan/plan-add.mdx +19 -0
  56. package/docs/docs/cmd/planner/plan/plan-get.mdx +19 -0
  57. package/docs/docs/cmd/planner/plan/plan-list.mdx +19 -0
  58. package/docs/docs/cmd/planner/plan/plan-remove.mdx +21 -0
  59. package/docs/docs/cmd/planner/plan/plan-set.mdx +19 -0
  60. package/docs/docs/cmd/planner/roster/roster-add.mdx +19 -0
  61. package/docs/docs/cmd/planner/roster/roster-get.mdx +19 -0
  62. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +19 -0
  63. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +19 -0
  64. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +19 -0
  65. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +21 -0
  66. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +19 -0
  67. package/docs/docs/cmd/planner/roster/roster-remove.mdx +21 -0
  68. package/docs/docs/cmd/planner/task/task-add.mdx +19 -0
  69. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +19 -0
  70. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +19 -0
  71. package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +21 -0
  72. package/docs/docs/cmd/planner/task/task-get.mdx +27 -0
  73. package/docs/docs/cmd/planner/task/task-list.mdx +19 -0
  74. package/docs/docs/cmd/planner/task/task-reference-add.mdx +19 -0
  75. package/docs/docs/cmd/planner/task/task-reference-list.mdx +19 -0
  76. package/docs/docs/cmd/planner/task/task-reference-remove.mdx +21 -0
  77. package/docs/docs/cmd/planner/task/task-remove.mdx +21 -0
  78. package/docs/docs/cmd/planner/task/task-set.mdx +19 -0
  79. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +44 -7
  80. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +43 -8
  81. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +6 -3
  82. package/docs/docs/cmd/spo/list/list-view-add.mdx +53 -10
  83. package/docs/docs/cmd/spo/page/page-control-remove.mdx +56 -0
  84. package/docs/docs/cmd/spo/page/page-section-add.mdx +22 -2
  85. package/npm-shrinkwrap.json +2322 -534
  86. package/package.json +17 -14
@@ -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.
@@ -20,7 +20,7 @@ m365 spo page section add [options]
20
20
  : URL of the site where the page to retrieve is located.
21
21
 
22
22
  `-t, --sectionTemplate <sectionTemplate>`
23
- : Type of section to add. Allowed values `OneColumn`, `OneColumnFullWidth`, `TwoColumn`, `ThreeColumn`, `TwoColumnLeft`, `TwoColumnRight`, `Vertical`.
23
+ : Type of section to add. Allowed values `OneColumn`, `OneColumnFullWidth`, `TwoColumn`, `ThreeColumn`, `TwoColumnLeft`, `TwoColumnRight`, `Vertical`, `Flexible`.
24
24
 
25
25
  `--order [order]`
26
26
  : Order of the section to add.
@@ -43,6 +43,9 @@ m365 spo page section add [options]
43
43
  `--isExpanded`
44
44
  : Sets the default display state of the collapsible section. Sets `false` if not specified.
45
45
 
46
+ `--headingLevel [headingLevel]`
47
+ : Heading level of collapsible section Allowed values `2`, `3`, `4`.
48
+
46
49
  `--gradientText [gradientText]`
47
50
  : Sets the gradient setting of the background of a section. Required when `zoneEmphasis` is `Gradient`.
48
51
 
@@ -68,7 +71,13 @@ m365 spo page section add [options]
68
71
  : The overlay opacity for the background. Applied only when `zoneEmphasis` is `Image` or `Gradient`. Sets `60` value if not specified.
69
72
 
70
73
  `--collapsibleTitle [collapsibleTitle]`
71
- : The display name of the collapsible section
74
+ : The display name of the collapsible section.
75
+
76
+ `--zoneReflowStrategy [zoneReflowStrategy]`
77
+ : Mobile and email reflow. Allowed values `TopToBottom`, `LeftToRight`. Applied only for `Flexible` section.
78
+
79
+ `--zoneHeight [zoneHeight]`
80
+ : Section height. Minimum value is `34`. Applied only for `Flexible` section.
72
81
  ```
73
82
 
74
83
  <Global />
@@ -115,6 +124,12 @@ Add OneColumn section as a collapsible section as expanded with icon aligned to
115
124
  m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --isExpanded --iconAlignment Left
116
125
  ```
117
126
 
127
+ Add OneColumn section as a collapsible section as expanded with headingLevel 3
128
+
129
+ ```sh
130
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --isExpanded --headingLevel 3
131
+ ```
132
+
118
133
  Add TwoColumn section with Image background
119
134
 
120
135
  ```sh
@@ -127,6 +142,11 @@ Add OneColumn section with Gradient background
127
142
  m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate TwoColumn --zoneEmphasis Gradient --gradientText "linear-gradient(72.44deg, #E6FBFE 0%, #EDDDFB 100%)"
128
143
  ```
129
144
 
145
+ Add a Flexible section to the modern page with mobile and email reflow and section height.
146
+
147
+ ```sh
148
+ m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate Flexible --zoneHeight 100 --zoneReflowStrategy LeftToRight
149
+ ```
130
150
 
131
151
  ## Response
132
152