@pnp/cli-microsoft365 11.7.0-beta.bd906c5 → 11.7.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 (51) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +53 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/m365/context/commands/option/option-list.js +6 -1
  5. package/dist/m365/entra/commands/resourcenamespace/resourcenamespace-list.js +6 -0
  6. package/dist/m365/external/commands/connection/connection-list.js +6 -0
  7. package/dist/m365/outlook/commands/calendar/calendar-set.js +132 -0
  8. package/dist/m365/outlook/commands/calendargroup/calendargroup-get.js +114 -0
  9. package/dist/m365/outlook/commands.js +2 -0
  10. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +13 -1
  11. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +24 -3
  12. package/dist/m365/spo/commands/brandcenter/brandcenter-colors-list.js +59 -0
  13. package/dist/m365/spo/commands/file/file-archive.js +83 -0
  14. package/dist/m365/spo/commands/propertybag/propertybag-set.js +3 -9
  15. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +20 -0
  16. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +27 -2
  17. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +5 -1
  18. package/dist/m365/spo/commands.js +2 -0
  19. package/dist/request.js +0 -16
  20. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +21 -0
  21. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +19 -0
  22. package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +21 -0
  23. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +21 -0
  24. package/docs/docs/cmd/entra/roledefinition/roledefinition-add.mdx +19 -0
  25. package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +19 -0
  26. package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +19 -0
  27. package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +21 -0
  28. package/docs/docs/cmd/entra/roledefinition/roledefinition-set.mdx +21 -0
  29. package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +21 -0
  30. package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +21 -0
  31. package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +19 -0
  32. package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +20 -0
  33. package/docs/docs/cmd/external/connection/connection-add.mdx +21 -0
  34. package/docs/docs/cmd/external/connection/connection-doctor.mdx +19 -0
  35. package/docs/docs/cmd/external/connection/connection-get.mdx +19 -0
  36. package/docs/docs/cmd/external/connection/connection-list.mdx +19 -0
  37. package/docs/docs/cmd/external/connection/connection-remove.mdx +21 -0
  38. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +21 -0
  39. package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +21 -0
  40. package/docs/docs/cmd/external/item/item-add.mdx +19 -0
  41. package/docs/docs/cmd/outlook/calendar/calendar-set.mdx +178 -0
  42. package/docs/docs/cmd/outlook/calendargroup/calendargroup-get.mdx +125 -0
  43. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +14 -11
  44. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +9 -6
  45. package/docs/docs/cmd/spo/brandcenter/brandcenter-colors-list.mdx +115 -0
  46. package/docs/docs/cmd/spo/file/file-archive.mdx +68 -0
  47. package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
  48. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +13 -10
  49. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +7 -4
  50. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +3 -0
  51. package/package.json +2 -2
@@ -0,0 +1,68 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo file archive
6
+
7
+ Archives a file
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo file archive [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the site where the file is located.
20
+
21
+ `--url [url]`
22
+ : The server- or site-relative decoded URL of the file to archive. Specify either `url` or `id`, but not both.
23
+
24
+ `-i, --id [id]`
25
+ : The UniqueId (GUID) of the file to archive. Specify either `url` or `id`, but not both.
26
+
27
+ `-f, --force`
28
+ : Don't prompt for confirmation.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |------------|----------------|
40
+ | SharePoint | AllSites.Write |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |------------|---------------------|
47
+ | SharePoint | Sites.ReadWrite.All |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
52
+ ## Examples
53
+
54
+ Archive a file by id without prompting for confirmation
55
+
56
+ ```sh
57
+ m365 spo file archive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
58
+ ```
59
+
60
+ Archive a file by URL with prompting for confirmation
61
+
62
+ ```sh
63
+ m365 spo file archive --webUrl https://contoso.sharepoint.com/sites/Marketing --url '/sites/Marketing/shared documents/document.docx'
64
+ ```
65
+
66
+ ## Response
67
+
68
+ The command won't return a response on success.
@@ -30,7 +30,7 @@ m365 spo propertybag set [options]
30
30
 
31
31
  ## Remarks
32
32
 
33
- SharePoint Online supports setting property bag values only in classic sites. On modern sites you will get a _Site has NoScript enabled, and setting property bag values is not supported_ error.
33
+ If a site has NoScript enabled, setting property bag values may result in an _Access is denied_ error. To resolve this, you can configure a tenant-wide property to allow property bag updates on NoScript sites.
34
34
 
35
35
  ## Examples
36
36
 
@@ -2,7 +2,7 @@ import Global from '../../_global.mdx';
2
2
 
3
3
  # spo tenant applicationcustomizer add
4
4
 
5
- Add an application customizer as a tenant-wide extension
5
+ Add an Application Customizer as a tenant-wide extension
6
6
 
7
7
  ## Usage
8
8
 
@@ -17,13 +17,16 @@ m365 spo tenant applicationcustomizer add [options]
17
17
  : The title of the Application Customizer.
18
18
 
19
19
  `-i, --clientSideComponentId <clientSideComponentId>`
20
- : The Client Side Component Id (GUID) of the application customizer.
20
+ : The Client Side Component Id (GUID) of the Application Customizer.
21
21
 
22
22
  `-p, --clientSideComponentProperties [clientSideComponentProperties]`
23
- : The Client Side Component properties of the application customizer.
23
+ : The Client Side Component properties of the Application Customizer.
24
+
25
+ `--hostProperties [hostProperties]`
26
+ : Set the host properties of the Application Customizer.
24
27
 
25
28
  `-w, --webTemplate [webTemplate]`
26
- : Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the application customizer is registered on.
29
+ : Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the Application Customizer is registered on.
27
30
  ```
28
31
 
29
32
  <Global />
@@ -40,7 +43,7 @@ Note, how the clientSideComponentProperties option has escaped double quotes `'{
40
43
 
41
44
  :::warning[Escaping JSON in PowerShell]
42
45
 
43
- When using the `--clientSideComponentProperties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
46
+ When using the `--clientSideComponentProperties` or `--hostProperties` options it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
44
47
 
45
48
  :::
46
49
 
@@ -50,20 +53,20 @@ To use this command, you need to be a SharePoint Admin.
50
53
 
51
54
  :::
52
55
 
53
- This command can be used for configuring a tenant-wide application customizer. To configure an application customizer on a specific site, view our dedicated [spo applicationcustomizer add](../applicationcustomizer/applicationcustomizer-add.mdx) command.
56
+ This command can be used for configuring a tenant-wide Application Customizer. To configure an Application Customizer on a specific site, view our dedicated [spo applicationcustomizer add](../applicationcustomizer/applicationcustomizer-add.mdx) command.
54
57
 
55
58
  ## Examples
56
59
 
57
- Adds an application customizer that's deployed tenant wide
60
+ Adds an Application Customizer that's deployed tenant wide
58
61
 
59
62
  ```sh
60
- m365 spo tenant applicationcustomizer add --title "Some customizer" --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc
63
+ m365 spo tenant applicationcustomizer add --title "Some customizer" --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc
61
64
  ```
62
65
 
63
- Adds an application customizer that is configured for all communication sites.
66
+ Adds an Application Customizer that is configured for all communication sites.
64
67
 
65
68
  ```sh
66
- m365 spo tenant applicationcustomizer add --title "Some customizer" --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc --webTemplate "SITEPAGEPUBLISHING#0"
69
+ m365 spo tenant applicationcustomizer add --title "Some customizer" --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc --webTemplate "SITEPAGEPUBLISHING#0"
67
70
  ```
68
71
 
69
72
  ## Response
@@ -31,25 +31,28 @@ m365 spo tenant applicationcustomizer set [options]
31
31
  `-p, --clientSideComponentProperties [clientSideComponentProperties]`
32
32
  : The Client Side Component properties of the Application Customizer.
33
33
 
34
+ `--hostProperties [hostProperties]`
35
+ : Set the host properties of the Application Customizer. Set to an empty string to clear the value.
36
+
34
37
  `-w, --webTemplate [webTemplate]`
35
- : Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the application customizer is registered on.
38
+ : Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the Application Customizer is registered on.
36
39
  ```
37
40
 
38
41
  <Global />
39
42
 
40
43
  ## Remarks
41
44
 
42
- Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for clientSideComponentProperties option that has JSON value because the command shell treats quotes differently. For example, this is how Application Customizer can be updated from the Windows cmd.exe:
45
+ Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for `clientSideComponentProperties` and `hostProperties` options that have JSON values because the command shell treats quotes differently. For example, this is how Application Customizer can be updated from the Windows cmd.exe:
43
46
 
44
47
  ```sh
45
48
  m365 spo tenant applicationcustomizer set --id 3 --clientSideComponentProperties '{\"someProperty\":\"Some value\"}'
46
49
  ```
47
50
 
48
- Note, how the clientSideComponentProperties option (--clientSideComponentProperties) has escaped double quotes `'{\"someProperty\":\"Some value\"}'` compared to execution from bash `'{"someProperty": "Some value"}'`.
51
+ Note, how the `--clientSideComponentProperties` option has escaped double quotes `'{\"someProperty\":\"Some value\"}'` compared to execution from bash `'{"someProperty": "Some value"}'`.
49
52
 
50
53
  :::warning[Escaping JSON in PowerShell]
51
54
 
52
- When using the `--clientSideComponentProperties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
55
+ When using the `--clientSideComponentProperties` or `--hostProperties` options it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
53
56
 
54
57
  :::
55
58
 
@@ -267,6 +267,9 @@ m365 spo tenant settings set [options]
267
267
 
268
268
  `--SyncAadB2BManagementPolicy [SyncAadB2BManagementPolicy]`
269
269
  : Syncs Azure B2B Management Policies. Allowed values `true`, `false`. For more information, see [SharePoint and OneDrive integration with Microsoft Entra B2B](https://aka.ms/spo-b2b-integration).
270
+
271
+ `--AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled [AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled]`
272
+ : Enables or disables web property bag updates when DenyAddAndCustomizePages is enabled. Allowed values `true`, `false`.
270
273
  ```
271
274
 
272
275
  <Global />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "11.7.0-beta.bd906c5",
3
+ "version": "11.7.0",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -341,4 +341,4 @@
341
341
  "source-map-support": "^0.5.21",
342
342
  "tsc-watch": "^7.2.0"
343
343
  }
344
- }
344
+ }